Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

Entries from 2005-12-27 to 1 day

「Rubyレシピブック 268の技」正誤情報?

「017 alias と undef (p.31)」に alias 元の名前 別名とあるけれど alias 別名 元の名前の間違いでは? irb(main):001:0> def hoge irb(main):002:1> print "hoge\n" irb(main):003:1> end => nil irb(main):004:0> alias hoge piyo NameError: undefined m…

1 と 2, 3 と 4, ... を対象に実行

「Rubyレシピブック 268の技」を読んでいるところ。 6.times { |i, j| print "[#{i}/#{j}]" } => [0/][1/][2/][3/][4/][5/][0/1][2/3][4/5] という出力を得たいなら…… 0.step(5,2) {|i| print "[#{i}/#{i+1}]" } => [0/1][2/3][4/5]よく見たら、リファレンス…

Zebedee と ZigBee

Zebedee (トンネリング用のプログラム)と ZigBee (無線通信の物理規格)ってごっちゃになりませんか? あと、間違えて "BigZee" とかって検索してみたり。