Rippleについて考えたこと

BTC、BTH、ETH、RIPPLE・・・待ってください、RIPPLEを仮想通貨だと思ったら、大間違いです。RIPPLEは次世代のペイメントネットワークだと思っていただければよいと思います。

Rippleはペイメントネットワークとして伝統の銀行とかなりの違いがあります。Rippleの世界においては、口座にいくらが入っているかではなく、あなたがいくらの借金を背負っているか、あるいは他人があたなからいくらを借りたかの情報を記録する仕組みになります。つまり、Rippleがあらゆる参加者間の債務関係をあらわしているわけです。

では、ペイメントネットワークとしてのRippleはどの通貨が使えますでしょうか?答えは世界中のすべての通貨が使用可能です。さらにすべての仮想通貨も通用することです(理論上)。

 

続き。。。

Remark for plotting axis in R

x <- 1:10
y <- c(2, 1, 3, 2, 4, 8, 14, 20, 22, 29)
z <- c(2, 1, 3, 5, 7, 7, 6, 5, 4, 6)

# 二つ目の y 軸を描くために余白を調整
par(oma = c(0, 0, 0, 2))

# x と y のプロット
plot(x, y, xlim = c(0, 10), ylim = c(0, 30),
xlab = "x", ylab = "y", type = "l", col = "orange", lwd = 2, # いろいろなオプション
axes = FALSE) # 座標軸を描かないようにする
axis(1) # 下の横軸を表示
axis(2) # 左の縦軸を表示

# 次のグラフを重ね合わせるための作業
par(new = TRUE)

# x と z のプロット
plot(x, z, xlim = c(0, 10), ylim = c(0, 10),
xlab = "", ylab = "", type = "l", col = "cyan", lwd = 2,
axes = FALSE)
mtext("z",side = 4, line = 3) # 右の縦軸のラベル
axis(4) # 右の縦軸を表示

# プロット全体に枠線で囲む
box()

# 凡例
legend("topleft", legend = c("y", "z"), col = c("orange", "cyan"), lty = 1)

*******************************************************************************************

x <- 1:10
y <- c(2, 1, 3, 2, 4, 8, 14, 20, 22, 29)
z <- c(2, 1, 3, 5, 7, 7, 6, 5, 4, 6)

# 二つ目の y 軸を描くための余白を調整
par(mar = c(5, 8, 3, 2))

# x と y のプロット
plot(x, y, xlim = c(0, 10), ylim = c(0, 30),
xlab = "", ylab = "", type = "l", col = "orange", lwd = 2, # いろいろなオプション
axes = FALSE) # 座標軸を描かないようにする
axis(1) # 下の横軸を表示
mtext(1, text = "x", line = 3) # 下の縦軸 y のラベル
axis(2, ylim = c(0, 30), line = 1, col = "orange") # 左の縦軸 y を表示
mtext(2, text = "y", line = 3) # 左の縦軸 y のラベル

# 次のグラフを重ね合わせるための作業
par(new = TRUE)

# xとzのプロット
plot(x, z, xlim = c(0, 10), ylim = c(0, 10),
xlab = "", ylab = "", type = "l", col = "cyan", lwd = 2,
axes = FALSE)
axis(2, ylim = c(0, 10), line = 5, col = "cyan") # 左の縦軸 z を表示
mtext("z",side = 2, line = 7) # 左の縦軸 z のラベル

Static method should be accessed in a static way

take a look the following piece of code:

public class Parent{
       public void sayHello(){
           System.out.println(" Called from parent class.");
}
}

public class Child extends Parent{
       public void sayHello(){
           System.out.println(" Called from child class.");
}
}

public static void main(String[] args){
       Child c = new Child();
       c.sayHello(); // this will print " Called from child class."

       Parent p = new Child();
       p.sayHello(); // this will print " Called from child class."
}

see what gonna happen if I modify these two methods to be static

public static void Parent(){ ... }

public static void Child extends Parent(){ ... }

public static void main(String[] args){
       Child c = new Child();
       c.sayHello(); // this will print " Called from child class."

       Parent p = new Child();
       p.sayHello(); // this will print " Called from parent class."
}

a source of potential error, it's a good coding practice to use class name when invoking a static method.
This is whats meant with the warning, " a static method(sayHello) should be accessed in a static way "(via the class name Parent or Child)