123
 123

Mon 04 February, 2008

Click here to bookmark this link.Channel Image08:08 IronRuby, Sun, and Lang.net» John Lam on Software
Ruby was well represented at Lang.net this year, with Charlie Nutter of JRuby, Wayne Kelly of Ruby.net and myself all giving talks. It was great having the folks from Sun there as well, with John Rose, Charlie Nutter, and Dan...
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image08:07 初心者向けの言語» Matzにっき
一口に「初心者」と言っても、ただ単に経験が足りないだけの「真の初心者」もいれば、 「やる気」、「向上心」に欠けるので実力がいつまでも伴わない「自称初心者」もいる。 あるいは「真」と「自称」の中間に位置するとか。 で、やる気や向上心のない人は手のつけようがないので、ここでは扱わないことにする。 さて、初心者向け言語の話だ。 しばしば「初心者向けの言語」と宣伝される言語がある。 たとえば、BASIC, HSP, PHPなどがそれにあてはまるようだ。 これらの言語にはなんらかの共通項があって「初心者向け」と考えられている ..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image08:07 ソフトウェア開発における初心者» Matzにっき
とはいうものの、初心者向け言語への要求があるのは事実である。 それを否定するつもりはない。 そのうちのいくばくかは、初心者向け言語から入門して段階的に(スムーズに)進歩できる という「誤解」によるものだろう。しかし、すでに述べたように 「初心者向け」という性質は、良いソフトウェア開発に必要な性質とある程度矛盾する。 とはいえ、最大の原因はプログラマにはないのではないか。 間違っているのはプログラマじゃない、社会が間違っているのだ。 どういうことか。 私がなにか大きな買い物をするとしよう。 平均的サラリーマ..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:10 末娘の成長» Matzにっき
先々週まで「お母さんといっしょでないとプライマリーのクラスに出ない」と 駄々をこねていた娘は、先週からひとりでクラスに出れるようになった。 ちょっとした動機づけと、それによる「良い行動」をさんざんほめてやったのが 原因のようだ。ポジティブフィードバックが効いた、ということでもあるが、 いずれにせよ、聞き分けのある態度を見せるだけ成長してくれたのがうれしい。 「親にとって都合が良い」ことを喜んでる側面もないではないな。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:10 ゴードン・B・ヒンクレー葬儀および埋葬» Matzにっき
先週、教会の大館長であるゴードン・B・ヒンクレーが亡くなったので、 彼の葬儀および埋葬が執り行われた。 その様子は衛星放送で中継された。 彼の生涯のダイジェストも放送されたが、 立派な人をなくしたのだと惜しむ気持ちが強かった。 もっともすでに97歳にもなっておられたので、 これ以上激務を背負わせるのはいかがなものかとも思ってはいたのだが。 いくつかのことを改めて気付かされた時間であった。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:10 What will Matz do?» Matzにっき
Rubiniusの方が性能面からもテスト充実度からも優れた実装になったら Matzはどうするのか、という話。 別に。 私の最大の関心事は実装ではなく、どのように気分良いプログラミングを実現するか、なので、 それがもっとも簡単に試行錯誤できるのであれば、実装についてはスイッチすることだって ありえる。事実、1.8までの私謹製のインタプリタから1.9ではYARVに移行したわけで。 ただ、現時点では私の意図をもっともよく反映した実装は まだまだC版で、正直Rubiniusに移行する動機づけは不十分である。 まあ、現時点ではそういう働き掛け..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:10 Nimble Method: Garbage Collection is Why Ruby on Rails is Slow: Patches to Improve Performance 5x; Memory Profiling» Matzにっき
Railsが遅いのはGCのせいだ(無駄なオブジェクトを一杯作っている)という話。 また、オブジェクト生成数を削減するmonkey patch付き。 まあ、こういう「発見」は重要で、おそらくは近いうちに Rails本体にも反映されていくんじゃないだろうか。 なお、benchmark.rbへの修正についてはすでにリポジトリにコミットした。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:10 LuaJIT roadmap 2008» Matzにっき
LuaJIT頑張ってます、という話。 YARVによって結構性能が上がったのは事実なんだけど、 正直まだLuaに追いついてないんだよね。 向こうの方がやってることが簡単とか、言い訳はあるんだけど、 言語ユーザーとしてはそんなの関係ないわけで。 JITはまだまだにしても、1.9.0-0ではまだオンにしていない 各種最適化を有効にしたら、どのくらい差が詰まるかな。 まだまだかな。 いずれにしても1.9.0-1では(一時的に多少信頼性が下がっても)最適化を有効にしたい。 そのようにささだくんを説得しよう。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:10 EURUKO 2008 − European Ruby Conference, Prague, March 29th − 30th» Matzにっき
サイトが公開された。プログラムとかはまだ埋まっていない。 あと、3ヶ月ほどなんだけどなあ。 ささだくんも行くみたい。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Sun 03 February, 2008

Click here to bookmark this link.Channel Image20:07 loveruby.net 落ちた» 青木日記
またしてもブレーカー落ちた……。 とりあえず、オイルヒーター全開 + 炊飯器はダメらしいということがわかった。 やっぱ UPS 入れないとだめだなあ。 前は入れてたけど、結局一回も役に立たなかったからやめちゃったんだよね。 UPS デーモンのセットアップがなにかと面倒だし。 (19:30)
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image13:25 Twitter Updates for 2008-02-02» halostatue
@techpickles mmm. # what a lazy Saturday. going snow tubing in Barrie tomorrow; should be fun. # Powered by Twitter Tools.
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image07:59 Private Investigator Jay J....» Projectionist
Click here to bookmark this link.Channel Image07:55 proxemics: The study of the...» Projectionist
prox•e•mics
[prok-see-miks]noun
The study of the cultural, behavioral, and sociological aspects of spatial distances between individuals.

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image07:44 Find all subdirectories of ...» Projectionist

Find all subdirectories of a given path at a particular depth

def subdirectories_of(path, options = {}) depth = options[:at_depth_of] || 1 Dir[File.join(path, * ["*"] * depth + [""])] end >> subdirectories_of("/var") => ["/var/agentx/", "/var/amavis/", "/var/at/", "/var/audit/", "/var/backups/", "/var/db/", "/var/empty/", "/var/folders/", ...] >> subdirectories_of("/var", :at_depth_of => 2) => ["/var/amavis/db/", "/var/amavis/tmp/", "/var/at/jobs/", "/var/at/spool/", "/var/at/tabs/", "/var/at/tmp/", ...]

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image03:09 自分の経験の枠組みは自分で変えられるか? - アンカテ(Uncategorizable Blog)» Matzにっき
essaさんによる提言。私の記述不足から起きた「話題」も このようなコラムの引き金になったのだとしたら本望だ。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image03:09 やじうまWatch: 広く使われるプログラミング言語「PHP」を巡る議論に注目集中» Matzにっき
やじうまWatchにまで取り上げられちゃったよ。 「ある「ハッカー」の顛末」以来だな。 みんなよっぽど話題がないんだろうか。 おかげで、すごいアクセスが来ている。夜とかサーバーが落ちそうになるくらい集中した。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image03:09 「ハッカーと画家」の著者が新しいLisp系言語「Arc」を公開 | エンタープライズ | マイコミジャーナル» Matzにっき
Arcがとうとうリリースされた。 現時点ではMzSchemeで書かれたSchemeへのコンパイラとして実装されているようだ。 チュートリアルを見ると 「簡潔な表現を重視したLisp-1」という感じ。 ふーん、Lisp-2じゃないんだ。 興味深いのは「~」と「:」。 「~f」は「(fn (x) (not (f x)))」を意味する。 「f:g」は「(fn (x) (f (g x)))」を意味する。 これらはより関数型プログラミングを強く意識していることを意味してるんだと思う。 あと、「lambda → fn」とか「defmacro → mac」とかは まあ単なる短縮形って感じ。「setf → =」ってのはちょ..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image03:09 「セキュリティ、なめんなよ!」 なめねこも一緒に情報セキュリティ強化宣言 | ネット | マイコミジャーナル» Matzにっき
「なめねこ」まで引っ張り出すとは。なんか私が前フリをかましたように見えるけど、 先日の「Webアプリケーションをなめるな」の元ネタは 「月をなめるな」ですからね*1。 ちなみにこの研修、うちの娘の参観日でも行われていた。 が、中学生たちはちゃんと月について理解してたようだ。 少なくとも「酸素ボンベは要らない」などとは言わなかった。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image03:09 「サイオステクノロジーはグルージェントの未来技術に期待し子会社化」:ITpro» Matzにっき
意外な展開。見守りたい。 これがどういう意味を持つのかは 内部事情を知らない私には断言するのは難しいけれど、 オープンソースをはじめとした技術(未来技術?)に価値を見いだす企業が増えており*1、 お金に余裕があれば会社を買うことでその技術を入手しようという行動が 少なくとも海外では目立っており、 この買収は国内でもその動きが出てきてい兆候なのだ、 とも読める。 そうなんだろうか。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image03:09 ITPro Expo» Matzにっき
ホテルで朝ご飯をいただいて、ゆりかもめで会場へ(一駅)。 で、電車を降りたらwakhokの丸山先生を見かける。 あいさつしてそのまま講師控え室まで。 で、丸山先生なんだか面白いことを(Rubyで)はじめたみたい。 もうちょっとしたら公開する、とか。 そうこうしているうちに高橋さんがいらっしゃる。 うーむ、イケメンだ。おしゃれだし。 が、実際に話してみると、 外見や分野はともかく性格や行動がかなり似ている。 対談してても何回も「お前は俺か」とツッコもうかと思ったから。 大勢の観客もいたし、(高橋さん目当てに)テレビ局も来て..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image00:09 Solaris に Subversion と SVK を入れる» 青木日記
SVK + Subversion って、Solaris に入れようと思うと超大変じゃね? sunfreeware にある Subversion のバイナリは apache2 と一緒に使うと apr のバージョン違いで落ちて使いものにならないし、 自分でコンパイルしようと思うとリンクまわりで死ぬほどひっかかる。 いったんコンパイルが通らないと libtool が障害にしかならなくて実に腹立たしい。 Subversion は無駄にライブラリ使いすぎなんだよ。 dlopen も使いすぎ。嫌がらせとしか思えない。 それから、インターネットにつながってないマシンだと CPAN につながらないので SVK のイ..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image00:09 RHG の再利用関係» 青木日記
うーむ、なぜか最近 RHG 再利用の動きが活発になってるなあ。 でも RHG に関しては正直俺に言われてもしょうがなかったりする。 いちおう出版社に聞いてみますが、期待しないで待っててください。 個人的には、RHG 自体を元に何かするよりも、 構成や内容を参考にしながら 完全に書き直しちゃったほうがなにかと楽だと思ってます。 長い文章を書くときの問題は章の構成管理とかであって、 文章自体を書くことはさほど問題ではありません。 それに、1.9 を元にするなら少なくとも 第 3 部 (評価器) は完全に書き直さないといけないし、 第 ..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Sat 02 February, 2008

Click here to bookmark this link.Channel Image21:07 stat» 青木日記
「超ヤバい修羅場」から「ふつうの修羅場」にレベルダウン! ひゃっほーう (19:31)
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image21:07 SVKとブランチは混ぜるな危険» 青木日記
さいきん訳あって SVK を派手に使っているのだけども、 SVK (2.0.2 だったかな) はブランチが絡むとバグバグですな。 前に書いた問題の他に、以下の 3 つが発覚した。 でかいレポジトリでブランチを消すと激しくマージしたあげくメモリを使い切る でかいレポジトリでブランチを移動すると激しくマージしたあげくメモリを使い切る 「なんかコミットして、そのファイルを含むブランチかタグを作って --lump でマージ」 を 2 回繰り返すとファイルがコミット前のバージョンに戻る 特に最後のバグが危険すぎる。 状態を保存するためにタグを作..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image14:07 Twitter Updates for 2008-02-01» halostatue
wow. just realized that I’ve ignored twitter all day. not sure if that’s good or bad. # Powered by Twitter Tools.
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:08 Birth — Prologue scene» Projectionist
Click here to bookmark this link.Channel Image02:10 Lang.net wrap-up» John Lam on Software
The last time Lang.net was held (around 18 months ago), I made up my mind to start the process of coming to Microsoft. OK, it was the bright lights and mind conditioning in the back room that made me come...
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Fri 01 February, 2008

Click here to bookmark this link.Channel Image14:06 Twitter Updates for 2008-01-31» halostatue
does the world really need another recipe management program? # Powered by Twitter Tools.
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image14:06 Twitter Updates for 2008-01-31» halostatue
does the world really need another recipe management program? # Powered by Twitter Tools.
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image07:10 ActiveMerchant 1.3 released» Riding Rails - home

ActiveMerchant 1.3 has been released. The focus on this latest release was the addition of standardized support for the Address Verification System (AVS) and credit card verification value (CVV2) checks across all gateways which is the latest extraction from Shopify.

AVS information helps reduce fraud by checking the billing address of the customer with the cardholder information on file at the credit card company. CVV2 checks help ensure that the cardholder information has not been stolen from a database of credit card numbers because it is forbidden to record or store CVV2 numbers in any way.

The results of the AVS and CVV2 checks are now available in the response object. ActiveMerchant does all the work of interpreting the information returned from the payment gateways for you and makes the information available in a consistent hash format.

Sample AVS/CVV2 result:


response.avs_result['message']      #=> 
     "Street address and 9-digit postal code match." 

response.cvv_result['message']      #=> 
     "Suspicious Transaction." 

# Details: 
response.avs_result['code']         #=> "X" 
response.avs_result['street_match'] #=> "Y" 
response.avs_result['postal_match'] #=> "Y" 
response.cvv_result['code']    #=> "D" 

Other notable improvements with the 1.3 release include:

  • Improved documentation
  • Common interface to AVS / CVV2 results
  • New gateways, including Authorize.net Recurring Billing (ARB)
  • Improved supported feature set of many existing gateways
  • Automatically retry failed connections (when it’s safe)

Coinciding with the 1.3 release of ActiveMerchant is the ActiveMerchant PeepCode PDF by Cody Fauser. The PDF goes over the basics of payment processing, making purchases with ActiveMerchant, and security considerations to keep in mind when processing credit cards in your Rails application. The PDF also walks through the development of a sample Rails application that addresses topics such as order pipelines, order state management and the appropriate unit testing a financial application requires. It is definitely a great read if you are curious about payment processing or require payment processing in your application.


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image06:26 Ruby专家博客:Obie Fernandez» 天天红玉世界
免费无限存放图片在slide.com!
  • 说明
    • Obie Fernandez不仅仅是一位专家,而且还是Ruby社区的不多“几块宝石”之一。Mongrel开发者 如此说:
      He’s one of the few gems of the Ruby world.

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image03:14 cultigen: An organism, espe...» Projectionist
cul•ti•gen
[kuhl-tuh-juhn]noun
An organism, especially a cultivated plant such as a banana, not known to have a wild or uncultivated counter part.

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image01:59 Paper airplane flight» Projectionist

Thu 31 January, 2008

Click here to bookmark this link.Channel Image16:11 Twitter Updates for 2008-01-30» halostatue
Shocking, but I’m considering buying a Java app even though it looks like ass on the Mac. (Shop’n'Cook is beating other recipe mgrs handily) # @taylorteacher for me, it’s wanting to get rid of some of the paper recipe books that I have unnecessarily lying around. # odd little meeting this morning # Powered by Twitter Tools.
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image10:06 ITPro Expo» Matzにっき
米子空港から東京へ。 私のうちからは米子空港は遠い。 ぜんぶ出雲空港で済むとありがたいのだが。 羽田からビッグサイトへ。 りんくうりんかい線国際展示場駅からビッグサイトまでが予想以上に遠く(前回使ってからずいぶん経つので距離感が失われていた)、ついた時にはもう11:40くらい。高橋さんと比嘉さんの対談はもうほとんど終わりであった。 で、対談後講師控え室で、比嘉さん、高橋さんといろいろと話をした。 比嘉さんに聞いてみたのは「Seasarについて海外から反応はないんですか」というもの。 答えは「ほとんどない。英語のメー..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image08:01 网站推荐:搜索引擎专业化是该领域的未来» 天天红玉世界
搜索引擎专业化是该领域的未来
  • 说明
    • 搜索引擎专业化不仅仅在搜索的形式上,如文件类型等,更重要是在搜索的内容上。现在的搜索引擎包括Google在内,常常会搜索到一些与自己搜索内容毫无相关的内容,而所需要的重要的内容难以获取。搜索引擎专业化将是该领域的未来重要的发展方向。

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:24 Best monkey patch ever» Projectionist

Best monkey patch ever

class Object def to_f fail end end

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:13 Chloe the long haired daschund» Projectionist
Chloe-the-long-haired-daschund

Chloe the long haired daschund


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:13 xerostomia: Abnormal drynes...» Projectionist
xer•o•sto•mi•a
[zeer-uh-stoh-mee-uh]noun
Abnormal dryness of the mouth.

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:13 Willie Nelson — It’s ...» Projectionist

Willie Nelson — It’s Always Now


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Wed 30 January, 2008

Click here to bookmark this link.Channel Image18:38 Latest Spam Emails» Joey Gibson's Blog

I just had to share two spam emails I received yesterday. I usually just delete crap like this, but these made me giggle. The first was from "tunde luren <luren_tunde@yahoo.com>" with the subject of "bible order." Here it is:

Hello
We need you to help us with the bible below for our church crusade programe:

Bounded leather bibles 150pcs

send us the actual amount enclouse with the frieght charge to nigeria.............
church ministry
God bless
Yeah, I'll be sure to send money for 150 "bibles" to Nigeria. I'll get right on that. Is a personal check OK, or do you prefer cash? Maybe I could just send my VISA details. Surely a "church" is trustworthy, right?

The second one was from "Internal Revenue Service U.S.A <refund@usa.gov>" with the subject of "Important Message From IRS." Here's the text:

After the last annual calculations of your fiscal activity we have determined that you are eligible to receive a tax refund of $93.60. Please submit the tax refund request and allow us 6-9 days in order to process it.

A refund can be delayed for a variety of reasons. For example submitting invalid records or applying after the deadline.

To access your tax refund online, please click here

Regards,
Internal Revenue Service
That "click here" was a link leading to an IP address-only website that is most certainly not part of the IRS. Here's what whois said about the address:
# whois 165.233.48.227

OrgName: African Network Information Center
OrgID: AFRINIC
Address: 03B3 - 3rd Floor - Ebene Cyber Tower
Address: Cyber City
Address: Ebene
Address: Mauritius
City: Ebene
StateProv:
PostalCode: 0001
Country: MU
So unless the IRS has done some serious outsourcing to Mauritius, I think it's safe to throw this email away. :-)

What's funny in all these African scam emails is how awful the spelling and grammar always are. You'd think that these African scammers would wise up and hire someone who speaks English to write their spam emails for them. Then they might trick more people. But who knows? They may be tricking enough people as it is, and so they don't care about how stupid they look to the rest of us.


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image16:11 Twitter Updates for 2008-01-29» halostatue
@duncan not anyone; there are people running who are as scary as Shrub and Dick. # @gedeon excellent response. I’d love to see what Keith Olbermann says in response to it. # @twitterrific thank you so much for beachballing on Leopard all the time. :| Love ya, but I want to see less of that ;) # @jamis [...]
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image11:52 Roche limit: The smallest d...» Projectionist
Roche limit
[rosh]noun
The smallest distance at which a natural satellite can orbit a celestial body without being torn apart by the larger body’s gravitational force. The distance depends on the densities of the two bodies and the orbit of the satellite.

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image10:34 Phosphorescent – At D...» Projectionist

Phosphorescent – At Death, a Proclamation


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image10:32 Harry thinks if you call hi...» Projectionist
Harry thinks if you call him Harry one more time he’s gonna make you eat that cat.

Harry in Night Moves


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:44 I Tried Out For Jeopardy, But I'm Not Expecting a Call...» Joey Gibson's Blog

I'm a huge fan of Jeopardy, and a few weeks ago I got an email from them telling me that on January 29, there would be an online test for East Coast people who wanted to try out. I decided to have a go at it, since I usually do really well when I'm watching the show.

Watching on TV, and trying to answer the questions under pressure are two completely different things. The test was 50 questions and you had 15 seconds for each one. No going back, pausing, do-overs. It was damn hard. I don't think I got more than 10 questions correct. It was a very humbling experience, I can tell you.


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:09 The Rails Way and Advanced Rails Recipes» Riding Rails - home

The flow of new Rails books seems unstoppable these days and it’s hard to keep up with all of the new releases. But there are two books that I’ve recently have had a chance to taste that I’d like to highlight.

The first is The Rails Way by Obie Fernandez, which I wrote the foreword for. It’s a big whooper of a book (900+ pages!), but also a very comprehensive walk-through for the Rails developer who already has his feet wet. It also includes a good dose of community commentary on the how’s and why’s, which I rather like.

The second is Mike Clark’s Advanced Rails Recipes, which is still not finished, but there’s a beta book available. It takes up from Chad Fowler’s original Rails Recipes book and gives you another 72 how-tos on more in-depth topics, such as REST, deployment, and testing. I’ve had a chance to taste a few of the recipes already and it’s good stuff.

If there’s a new Rails book that you really like, write a note in the comments and point people to it.


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:09 Sun launches JRuby on Rail site» Riding Rails - home

Sun’s Mediacast site is now running JRuby on Rails as their production stack. As Igor Minar tells, this is definitely still early days for the JRuby/Rails pair, but none the less they have a finished site running off sun.com. Congratulations, guys!


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:09 RailsConf '08: Registration is open!» Riding Rails - home

The registration for RailsConf ‘08 is now open. And if previous years are any indications, I’d register sooner rather than later if you intend to go. We’re returning to the same conference hall in Portland as last year, so we won’t be able to fit materially more people, despite the fact that so many new faces has joined the community this year.

The conference is happening from May 26th till June 1st. If you register before April 10th, there’s a $100 discount.

The content this year will also take a step up in terms of experience required for many sessions. Less “I’m just getting started, how does it work?” and more “I’ve been doing this for a while, how can I become better?”.

A good number of the sessions are already announced, as well as the tutorials. But the keynote names are still being pinned down. And we’re also reserving some session slots for emerging topics as we get closer to the conference.

Would you believe that this is going to be our fifth RailsConf? That’s just incredible. I can’t fathom that time has passed by so quickly. And I can’t wait to meet everyone again this year in Portland. The atmosphere at RailsConf is always radiant with enthusiasm and passion. People who love what they do are very contagious to be around.


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:09 In it for the long haul» Loud Thinking by David Heinemeier Hansson

Announcing RailsConf '08 today, I stopped to think about that by the time this conference rolls around, I will have been working on Ruby on Rails for five years. Wow. There are so many memories from this wild ride that it's at once both hard to fathom that it's been so long and yet it feels like I've been doing it forever. Time can be funny like that.

But what pleases me the most is that I still absolutely love working on and with Ruby and Rails. It didn't pass, it wasn't just a phase, it wasn't a run for an exit event. I think that's significant because it means that I, and everyone else still involved with the project, are just as likely to keep at this for another five years or more.

When you do what you love for the sake of itself, the rewards are so much greater than if you just do it for external incentives. For lots of measures of "winning", we've long since won with Ruby on Rails. The impact on the industry, the adoption by thousands of companies and developers, the books, the conferences, and all that jazz. And yet, it doesn't really matter that much in the end. What matters is getting excited about continuing the work.

In light of this, I strongly recommend that you find a vocation in your life where you just really enjoy the act itself. Not just the results, not just the external incentives. The actual work. There's not enough time to spend it doing anything else.


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Tue 29 January, 2008

Click here to bookmark this link.Channel Image23:01 软件发展趋势:手机市场的竞争变成为软件市场的竞争» 天天红玉世界
免费无限存放图片在slide.com!
  • 说明
    • 自从Apple iPhone手机和Google Android手机平台出现以后,手机市场的竞争变得越来越激烈。无论是Apple和Google也好,软件都是这些企业的重点。现在Nokia才看到了:手机市场就是软件市场的竞争,并收购了著名开源跨平台开发工具 Qt 。其实,手机的概念将会在不远的时间内全面翻新,这是早就应该做的事情。手机通话将仅仅是它的其中的很小的一部分功能。

      一个巨大的商业机会正在等待大家!!!


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image16:35 Links for 2008-01-28 [del.icio.us]» John Lam on Software

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image16:34 Twitter Updates for 2008-01-28» halostatue
really enjoying Goodkind. # Passport renewal application #2 sent. In about four weeks, I can travel again. ;) Also, dentist visit. # @estherschindler what are you looking for? # @estherschindler (I’m a ruby developer and have written a couple of articles.) # Powered by Twitter Tools.
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image05:41 RailsConf '07 keynotes on video» Riding Rails - home

It took eons, but the videos recorded at RailsConf ‘07 are finally ready. These videos include all the keynotes from the conference. A great warm-up for 2008 as we’ll soon be opening for general registering on this year’s conference.


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image00:18 Hope it helps -_-!» nonocast ! 真诚原是一种需要坚强不屈的品质

发现21世纪还是需要跟不同的人不停的解释UTF8,而却一再遭到很奇怪的眼神。

 

string s = "hello world,日后再说!";

 

byte[] asciiBytes = Encoding.ASCII.GetBytes(s);

Console.WriteLine(ByteHelper.ToString(asciiBytes));

// 68 65 6c 6c 6f 20 77 6f 72 6c 64 2c 3f 3f 3f 3f 21

 

byte[] unicodeBytes = Encoding.Unicode.GetBytes(s);

Console.WriteLine(ByteHelper.ToString(unicodeBytes));

// 68 00 65 00 6c 00 6c 00 6f 00 20 00 77 00 6f 00 72 00 6c 00 64 00 2c 00 e5 65 0e 54 8d 51 f4 8b 21 00

 

byte[] utf8Bytes = Encoding.UTF8.GetBytes(s);

Console.WriteLine(ByteHelper.ToString(utf8Bytes));

// 68 65 6c 6c 6f 20 77 6f 72 6c 64 2c e6 97 a5 e5 90 8e e5 86 8d e8 af b4 21

 

注意:3f就是'?'

很多时候看到老外的软件也经常处理不好中文,就是因为ASCII编码以至于出现'?',尤其在编辑器和网络中(字符串和byte转换过程)丢失了数据
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Mon 28 January, 2008

Click here to bookmark this link.Channel Image23:55 跨越语言» 梦想风暴
PreferDesignSkills
InfoQ评论英文版:Prefer Broad Design Skills over Platform Knowledge
InfoQ评论中文般:丰富的设计技能胜过特定于平台的知识

我对程序设计语言有着偏好,所以,我喜欢不断接触各种新语言,喜欢研究语言背后的实现。

最近一段时间,我做的项目用到的几乎都是对我而言的新语言:C#、ActionScript、PHP……,这等价于我要不停的学习自己新语言。

我很享受学习新语言的过程,因为它们会带给我一些不同的体验。每一种语言都有自己不同的适用范围,这一点在学习像ActionScript和PHP这种有很强领域色彩的语言时,体现得尤为明显。运用这些语言写程序的过程中,很容易体会到语言作者在设计时的侧重。

学习新语言,某些情况下也有一些让人难受的地方。经常是,程序出现了语法错误,却瞪眼看不出来,突然意识到错误所在,原来自己用的是熟识语言的语法,不禁莞尔。有时,语言或程序库与自己熟悉的习惯不相一致,经常会被绊住一段时间。

好吧!回到开头,Martin说,设计技能更重要。我想说,设计技能只是很重要的一方面,更多的还是自己做事的方法和习惯。跨越语言时,对此体会会更加深刻。

最近是在写一些PHP代码,我完成一个功能的过程大致如此;弄清楚自己要做的是什么,想一下大概应该如何实现,用PHPUnit编写测试,然后完成功能,运行所有测试,确保这个实现正确以及没有破坏任何已有的东西。把PHP换成其它语言,相信过程是类似的。

如果你有机会像我一样在语言之间穿梭,在度过最初的痛苦期之后,你会发现一切会回到自己熟悉的轨道上。设计、编码、查文档、测试,没有什么不同,所做的一切,都是把自己的想法落实成代码,只不过,由于语言的差别,落实成具体的代码,形式上略有差别而已。

当然,我们不是教条主义者,不只是简单粗暴的知识映射。语言和语言之间是有差别的,所以,学习语言时,我们会注意到语言为我们提供的便利,比如,动态语言的特性,比如,函数的抽象等等,这样我们可以更好更优雅的完成我们的工作。


相关文章:

实践测试驱动开发 2008-01-20
圣诞聊敏捷 2007-12-25
微软开发主管的临别赠言 2007-11-29
读《修改代码的艺术》 2007-10-22
闲聊C++单元测试框架 2007-09-17


收藏到:Del.icio.us

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image14:11 Twitter Updates for 2008-01-27» halostatue
another wonderful brown rice risotto. short grain brown rice FTW. # @joeyGibson not quite either one, but more often a long "o" for the middle syllable. they’re a bit clipped, though. # I should probably get my shoulder looked at seriously. it hurts too much. # just saw Fat Pig http://en.wikipedia.org/wiki/Fat_Pig at the Lower Ossington Theatre http://artword.net/artwordlist/?p=355 # Powered [...]
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image13:09 sprachgefühl: German A feel...» Projectionist
sprach•ge•fühl
[shprahkh-guh-fyl]noun
German A feeling for language; an ear for the idiomatically correct or appropriate.

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Sources