これは、イイ!ここのリンクから「登録」すれば、注文可能になった時に amazon さんが教えてくれるって!!
wired の記事 の写真もぜひ見てほしい!どれも、これも、かわいいなー。ひとつあげるとしたら、緑のやつが好き。
でも、僕はいまのモレスキンを使い終わるまでは新しいのは買えないな。いくら、これが限定品でも...
IcedCoffeeScript (ICS) adds two new keywords: await and defer. These additions simply and powerfully streamline asynchronous control flow, both on the server and on the browser. Say goodbye to callback pyramids; say adios to massive code rewrites when synchronization requirements change slightly. Say hello to clean, readable, maintainable control flow for network and asynchronous operations!await と defer というふたつのキーワードを使って、非同期な処理をきれいにかけるみたい。これはよさそうだ。TameJS ってのの CoffeeScript 版。CoffeeScript に pull request を出したのが去年の12月。そのときはこの拡張機能のことを "Tame" って呼んでたけど、つい昨日(?) "IcedCoffeeScript" って名前にしたんだねー。
As for the voting, looks like it's about +10, and negative infinity, so unless we find a higher order of positive infinity, this is all moot.
「Ken Thompson さんと Dennis Ritchie さんが PDP-11 上で UNIX を開発してた時に、OS が大きくなってひとつのディスクに収まらなくなったから、ユーザのホームディレクトリを置いてあるふたつめのディスクに /bin, /sbin, /lib, /tmp などなどのディレクトリを作って OS のファイルを移した。ひとつめのディスクにはふたつめのディスクをマウントするのに必要なもの、例えば mount はひとつめのディスクに配置した。」んだそうで。へー。とはいえ、initrd とか initramfs がでてきたり、shared library のせいで /bin と /usr/bin を独立に扱えなくなったり(バージョンがあってないといけないってことだと思う)、そもそもディスクが安くなったりしたことで、上で書いた理由はもはや意味をなさなくなったらしい。だけど、おもしろいのは、次のところ。
Of course once the split existed, some people made other rules to justify it.「AT&T 由来のものは / (root) に置いて、各ディストロ(IBM AIX, Dec Ultrix, SGI Irix)のファイルは /usr に置いて、各ユーザがインストールしたものは /usr/local や /opt に置くようになった」と続けてる。
Another great example is git commit --amend. If you want to modify the most recent commit, to add something you forgot or just change the commit message, git commit --amend will create a whole new set of file objects, tree objects, and a commit object. After it’s done those things, it updates the branch pointer. If you then decide that that wasn’t really what you wanted to do, you can just point the branch pointer back at the previous commit with git reset --hard HEAD@{1} (or by looking through the reflog for the commit hash that the branch used to point at).以下、Jason Chu さんの記事を読みながらとったメモ:
![]() |
http://www.imwatch.it/en-en/smartwatch/specs/ |
> ["deadbeef"].pack("H*").unpack("C*").join(".")数値リテラルの 0xdeadbeef をドット区切りの10進数文字列に変換したい場合は、Fixnum#to_s を使って16進数文字列に変換すれば、上で書いた方法でドット区切りの10進数文字列に変換できる。
=> "222.173.190.239"
> [0xdeadbeef.to_s(16)].pack("H*").unpack("C*").join(".")手元の Ruby のバージョンはこちら。もっといい方法あるのかな。に、しても、Array#pack と String#unpack は便利だなー。
=> "222.173.190.239"
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553)
Each time you load a web page, Silk makes a dynamic decision about which of these subsystems will run locally and which will execute remotely. In short, Amazon Silk extends the boundaries of the browser, coupling the capabilities and interactivity of your local device with the massive computing power, memory, and network connectivity of our cloud.Silk、おもしろいなあ。触ってみたい-。