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

今日の単語: crop

ぼくらは林檎摘みをしている。 きれいな林檎の実をあつめている。 もう6カゴぶん集めたらようやく休憩していいことになってるんだ。 We are picking apples. We have a fine apple crop. Six more baskets and we will be allowed a break. My First Dictio…

モンティ・ホール問題

モンティ・ホール問題についてくわしくは Wikipedia を読んでもらうとして、モンティがあけなかった扉を選んだ時に、もとの扉のままの二倍の勝率になる、ということをモンテカルロ法によって確認できないかとざっとコードを書いてみた。 自分が選んだ最初の…

今日の単語: different

テリーは変わり者だ。 ほかのプレーヤーには似ても似つかない。 Terry is different. He is not like the other players. My First Dictionary: Today's word is different

iPod touch で pdf を閲覧する

検索してみるといろいろな人たちが悩んでいる様子。なんで iTunes で転送できるようにしてくれないんだろうねえ、 Apple。 Twitter でゆるく尋ねてみたらヘビーなユーザーの方からいくつか示唆をいただけたのでまとめてご紹介: Air Sharing http://twitter.c…

今日の単語: pretty

炎は、いい。 おかげで学校がすばらしく感じられる。 傷つけられたことすべてを追いやってくれる。 The flames are pretty. They make the school look nice. They make all the hurt go away. My First Dictionary: Today's word is pretty

今日の単語: untie

おじばばって、おじさんとおばさんの組み合わせってこと。 ぼくのおじばばがお茶を淹れてくれてる。 An untie is a cross between an uncle and an auntie. My untie is making me some tea. My First Dictionary: Today's word is untie (訳注: 本来 untie …

MazesOfMonad

Twitter 経由で Haskell で実装されたローグライクゲーム MazesOfMonad があると知り、早速試してみた。まずコンパイルしないと話にならない。 cabal という haskell のビルドシステムを使っているので configure, build, install の 3 ステップが必要。しか…

今日の単語: picky

スクラッフィーは節操なしだ。 だれの足にもむしゃぶりついて離さない。 Scruffy is not picky. He will give anybody's leg a go. My First Dictionary: Today's word is picky

今日の単語: early

今日は学校が早めにおわった。 いつもより前に。 School finished early today. It finished before the usual time. My First Dictionary: Today's word is early

今日の単語: upside

たいてい物事にはいい側面がある。 ご利益があるってことだ。 ビリーが死んだことのいい側面は兄弟が二段ベッドの上にあがれたことだろう。 Most situations have an upside. They have a benefit. The upside of Billy's death is that his brother can hav…

今日の単語: mix

ヒラリーはパイナップルとパセリを混ぜた飲み物を作ろうとしている。 その混合物は薬草の中絶薬と呼ばれている。 Hilary will mix pineapple and parsley to make a drink. The mixture is called a herbal abortion. My First Dictionary: Today's word is …

今日の単語: multitasking

キャンディスはマルチタスクだ。 ルビーの不備をあげつらうのに、彼女の自信を砕き、生まれに疑念をはさみ、灰皿をつくる、…を同時にこなす。 Candice is multitasking. She is highlighting Ruby's inadequacies, whilst chipping away at her confidence, …

openssl コマンドで https サーバー証明書検証をする方法

openssl の s_client サブコマンドで https サーバー証明書のチェインおよび失効リスト (CRL) の確認ができる。たとえば twitter.com の証明書を検証するには openssl s_client -connect twitter.com:443 -no_ssl2 -showcerts -crl_check_all とすればよい。…

今日の単語: feed

マクシーヌは赤ちゃんに食べさせる。 マクシーヌは何か食べるものを赤ちゃんにあげる。 あげるのはパンの耳だけ。 Maxine will feed Baby. Maxine will give Baby some food. She is saving him the crusts. My First Dictionary: Today's word is feed

今日の単語: dot

ドットは小さな円のことである。 レナのドレスに赤いドットがいくつもついている。 引き金をひくときはもっと離れないと。 A dot is a small circle. There are red dots on Lena's dress. She should have stepped away to pull the trigger. My First Dict…

javascript の日付オブジェクトを YYYY/MM/DD hh:mm:ss 形式文字列に変換する

javascript の Date オブジェクトを文字列化すると ctime 形式の文字列に変換されるけれど YYYY/MM/DD hh:mm:ss 形式にしたいこともある。ということで変換処理を書いてみた。 function myDateToString(d) { var ns = ["getYear","getMonth","getDate", "get…

今日の単語: influence

こういった広告はあなたに影響をおよぼそうとしている。 考えを変えてやろうとしているってわけだ。 そんなときにもっとイイ言葉がはじめての辞書にあるから早く戻っておいで。 Advertisements like these try to influence you. They try to affect your op…

今日の単語: hear

おじいちゃんは耳が遠い。 音がはっきり聞こえないのだ。 だから銀行でみんなが、彼が an old count と考えているようにおもえるのがわからない。 Grandpa does not hear well. His ears do not get sounds clearly. He has no idea why the people at the b…

今日の単語: impractical

ドナのあたらしいロッカーは使い物にならない。 棚一つ、ハンガー無し、死体を隠すに足るひろさもない。 隠せないだろう。 Donna's new locker is impractical. One shelf, no hooks and barely enough room to hide a body. It will not do. My First Dicti…

「MFD]今日の単語: out

母さんの蓄えはつきようとしている。 家を手放し食料品を買うのだ。 Mother is going out. She is leaving the house to go and buy some groceries. My First Dictionary: Today's word is out

今日の単語: nervous

シャーリーはオーディションのことで滅入っている。 だれもストリップショーを楽しんでくれないんじゃないかと案じているのだ。 Shirley is nervous about the talent show. She is worried no one will like her striptease. My First Dictionary: Today's …

今日の単語: blister

ジャックは水ぶくれができた。 かきむしりすぎてこすりすぎで炎症をおこしたのである。 Jack has a blister. It is a sore caused too much rubbing. My First Dictionary: Today's word is blister (ナニをこすりすぎたのかな…)

今日の単語: concise

オリバーの書くものは簡明である。 その脅迫状はまこと正鵠を射たものである。 Oliver's writing is concise. His threatening letters get right to the point. My First Dictionary: Today's word is concise

今日の単語: notorious

マンディーのいじめっぷりは有名。 ほんとうに悪名高いのである。 Mandy's character assassinations are notorious. They are famously vicious. My First Dictionary: Today's word is notorious

今日の単語: variation

ジャックは左手でバリエーションを生みだす。 ものごとを楽しみつづけられるから。 Jack uses his left hand for variation. It keeps things interesting. My First Dictionary: Today's word is variation

今日の単語: stroke

1. ねこちゃんがブラッシングしてもらっている 2. おじいちゃんは卒中をおこしている 1. Pussy is having a stroke. 2. Grandpa is having a stroke. My First Dictionary: Today's word is stroke