2009-05-01から1ヶ月間の記事一覧

非コミュ指数指数テスト

http://www5.big.or.jp/~seraph/zero/discomm.cgi やってみた。結果、非コミュ指数: 51(レベル2/中度非コミュ/オタク型) とのこと。 オタクで強度の人間不信、それでいて人と関係を結びたくてしかたなく、言ってみれば不器用…。 わっ!みんな、逃げてー!

今日の単語: reach

毒消しはジェリーの手が届かないところにある。 触れない。 あまりに高いところにあるから手が届かないのだ。 The antidote is out of Jerry's reach. He cannot reach it. He cannot put his hand on it because it is so high. My First Dictionary: Today…

今日の単語: concentrate

(it will end up in Father's face をどう訳せばいいのかわかってません…) お母さんはとても集中して紅茶をいれている。 ほかのことを考えてはいけない。 でないとお父さんの顔で終わっちゃうから。 Mother must concentrate on making the tea. She must …

スタックプロテクターは alloca 割り当てを使うプログラムも守ってくれるか?

先だって同僚からそんな疑問を受け、気になっていたので調べた。結論から言うと、守ってくれる。 そもそもスタックプロテクターは、関数呼び出し時にスタックフレーム内の戻りアドレスの直上にカナリア変数を置き、呼び出し元に返る前にカナリア変数がオーバ…

今日の単語: inside

ポールは雪玉をつくった。 その中に驚きを仕込んで。 Paul has made a snow ball. There is a surprise inside it. My First Dictionary: Today's word is inside

snprintf の戻り値

C99 規格で定義されている snprintf は、二番目の引数でバッファサイズを受け取る。その戻り値はバッファサイズを超えうる、ということを昨日知った。というのは、戻り値はフォーマットした結果あるべき出力結果の文字列長さを返すから。つまり、次のソース…

今日の単語: somewhat

ティモシーはある意味見栄っ張りである。 だいたいにおいてほとんど見栄っ張りでないから。 Timothy is somewhat pretentious. He is a little pretentious at times. My First Dictionary: Today's word is somewhat

今日の単語: afire

孤児院に火がついた。 燃えているのである。 The orphanage is afire. It is burning. My First Dictionary: Today's word is afire

今日の単語: weapon

武器はケガのもと。 たくさんのものがいい武器になる。 いくつ見つけられるかな? 野球のバット 沸騰する水 ハサミ A weapon causes injury. Lots of things make good weapons. How many can you find? baseball bat boiling water scissors My First Dicti…

今日の単語: time

チコは間違った時に殻をやぶってしまった。 タイミング最悪だと言わざるをえない。 Chico has picked a bad time to hatch. His timing is poor. My First Dictionary: Today's word is time

今日の単語: together

フランクと、ジョアン、ベティーはみんなで風呂に入る。 一緒に入る。 みんなで楽しむことがたくさんあるんだ。 Frank, Joan and Betty bathe together. They all bathe at the same time. They have lots of fun together. My First Dictionary: Today's wo…

今日の単語: suddenly

トビーは急に起き上がった。 立っていたのはほんのちょっとだった。 そして死んで横たわった。 Toby sat up suddenly. He sat up in an instant. Then he dropped dead. My First Dictionary: Today's word is suddenly

Trivia: Reading Test (Udder Buffoonery Production LLC)

Reading TestI cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdgnieg. - THE PAOMNNEHAL PWEOR OF THE HMUAN MNIDAoccdrnig to a rscheearch at Cmabridge Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the ol…

不確実なセキュリティは回避される

たまらんっ!風のタクト

今日の単語: still

ぼくらがガイルズを雪だるまにしているあいだ、やつはじっとうごかない。 はじめは震えを止められなかったようだ。 いまや、とてもうまくやっていてかっちりしている。 Giles is standing still while we turn him into a snowman. At first, he would not s…

今日の単語: triumph

ミリーの計画は大成功! うまくいった。 階段にローラースケート靴かたいっぽう、そして今や赤ちゃんはいなくなった! Milly's plah was a triumph. It was a success. One roller skate on the stairs, and now there will be no new baby. My First Dictio…

今日の単語: enthrall

大きくて屈強な労働者がお父さんをめろめろにしちゃった。 彼らを見に、デボラを毎日連れて行くの。 The big strong workmen enthrall Daddy. He brings Deborah to watch them every day. My First Dictionary: Today's word is enthrall

WSH JScript による XMLHTTPRequest で更新日取得

lambda が渡せるので、とても楽しい…! function check(url, out) { var bf2wk = new Date(new Date() - (14 * 24 * 60 * 60 * 1000)); var req = new ActiveXObject("Msxml2.XMLHTTP"); req.onreadystatechange = function() { switch(req.readyState) { ca…

今日の単語: weary

スクラッフィーは疲れきっている。 キャロル・アンと遊んでいてへとへとなのだ。 彼女を掘り起こすには相当の努力がいるから。 Scruffy is weary. He is tired from playing with Carol Ann. It took a lot of effort to dig her up. My First Dictionary: T…

今日の単語: naive

ヘレンとマシューはウブだ。 父さんが買ったレモネードでべろんべろんになったとおもっている。 Helen and Matthew are naive. They think Daddy actually drank the lemonade he bought. My First Dictionary: Today's word is naive

open_uri でレスポンスヘッダー情報を見る

#require 'open-uri' open("http://....") {|r| r.meta.each_pair {|k,v| puts "#{k}: #{v}"} }

×設定を確認してください ○設定を変えてから元に戻してみてください

「お前のやり方が間違っている」と感じさせずに、「ソフトウェアがちゃんと動くようにするために」と伝える、と。なるほどー。 Instead of telling them to check a setting, tell them to change the setting and then change it back “just to make sure t…

今日の単語: play

ぼく、タールで遊ぶのが好き。 とってもおもしろいんだから。 タールで遊んでるぼくを見て。 熱くってねばねば。 I like to play in the tar. I am having lots of fun. Look at me playing with the tar. It tastes all hot and sticky. My First Dictionar…

今日の単語: new

ローズに新しい友達ができた。 今日は彼に会う。 遊びにいくのは今日が初めて。 Rose has a new friend. She met him today. They are going to play for the first time. My First Dictionary: Today's word is new 友達をどう定義したものか。遊びに出かけ…

今日の単語: zombie

ゾンビーは死んだ人なんだけど、人肉の饗宴のためによみがえった。 ゾンビーは死の腐臭をはなつ。 A zombie is a dead person who has come back to feast on human flesh. Zombies reek of death. My First Dictionary: Today's word is zombie

#if 0 hacks

ネタ元: d:id:Seasons:20090504:1241390314 さっそく試してみた。たしかに楽しい。 $ cat << EOF > a.c > #if 0 > src=\$0; dst=\${src%.*}; gcc -o \$dst \$src && ./\$dst; exit > #endif > #include <stdio.h> > int main(void) { return puts("hello, world."), 0</stdio.h>…

今日の単語: glove

グローブは手を覆うもの。 ルーシーのは白手袋。 ボブのはボクシンググローブ。 どっちが勝つとおもう? A glove is a covering for the hand. Lucy has white gloves. Bob has boxing gloves. Who do you think will win? My First Dictionary: Today's wor…

今日の単語: empty

母さんのサイフはからっぽ。 何にも入っていない。 じゃあナニーばあやのを見てみないとね、とドロシーは考えている。 Mother's purse is empty. There is nothing in it. Dorothy will have to try Nanny's instead. My First Dictionary: Today's word is …

今日の単語: pretend

その女性はわたしたちに家族を装わせた。 警官を信じさせたいがために。 The lady wants us to pretend to be a family. She wants us to make-berieve for the policeman. My First Dictionary: Today's word is pretend (悪者を女性だけにしたんですね)