123
 123

Sun 02 September, 2007

Click here to bookmark this link.Channel Image17:47 What is this Merlin thing in IronRuby?» John Lam on Software
One of our challenges in the IronRuby project is reconciling two different source code layouts - the external subversion layout and our internal Team Foundation Server layout. We have quite a different environment internally, complete with customized shells etc. I'm...
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:05 » nonocast ! 真诚原是一种需要坚强不屈的品质

人一生就是一场马拉松,大多数人跑快了便喜,跑慢了就悲,迷迷糊糊跑到头,一切都没有了,居然不知道为什么要跑,我不愿意这样,我跑我该跑的路,你超过我、落下都与我无关,我是为我的路而生的。

蔡志忠的这句话差不多陪伴了我十年,伴随着我中考,高考,大学4年,直到现在。每个人都有自己的路。
Horses has courses.
That's it.

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

Sat 01 September, 2007

Click here to bookmark this link.Channel Image15:51 Words are chemical agents.» Projectionist
Words are chemical agents.

Amier Carmel


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 Image15:51 Misirlou as played by James...» Projectionist
Click here to bookmark this link.Channel Image15:49 galactorrhea: 1. Excessive ...» Projectionist
ga•lac•tor•rhe•a
[guh-lak-tuh-ree-uh]noun
1. Excessive flow of milk from the breasts during lactation.
2. Spontaneous milk flow not associated with childbirth or the nursing of an infant.

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:14 IronRuby on Rubyforge!» John Lam on Software
I'm happy to announce that we're live on Rubyforge today! It's been nearly 6 weeks since our initial source code release at OSCON. So what's changed? Exception handling Parallel assignment Instance variables Added some more library support: Comparable Enumerable Array...
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:59 Tweets on 2007-08-31» halostatue
The Talk Show is the first podcast that I can see listening to regularly. # @lylejohnson snark, snark, snark. if you think the coverage is bad in the US, consider Canada…where the royals still matter to us # @lylejohnson preferably time off ;) # had enough. going home for the long weekend. # 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 Image03:25 bbum’s weblog-o-mat >> Blog Archive >> Python: di» Matzにっき
diといってもdependency injectionとかではない。 Pythonにはid()という関数があって、オブジェクトの固有値(ID)を取り出すことができる。 ちょうどRubyでいうobject_idメソッドに相当する。 で、今回紹介されているこれは、 その逆を行うdiというライブラリ。di(id)とすると元のオブジェクトを取り出すことができる、 というもの。こっちはObjectSpace._id2ref()に相当する。 が、GCのこととかを考えているわけではないし、純粋にアドレスを整数化したidから 元のアドレスを取り出しているだけ(らしい)ので、 たとえばオブジェクトが解放..
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:25 The Better String Library» Matzにっき
SuperFastHashのPaul Hsiehによる文字列ライブラリ。 高速・安全・高機能ということで、 ちょっと中身を読んでみたいソースである。
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:25 Performance benchmarks << evan.musing» Matzにっき
Rubiniusの最新ベンチマーク。表の見方がいまいちよくわからないんだけど、 どうもRuby1.8に決して負けない、と言ってるらしい。 ものによってはずっと速いぞ、ということだ。 まあ、ベンチマークを実行できる時点で、相当実装レベルが上がってるんだろうね。 今度はYARV(1.9)と対決していただきたい。
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:25 InfoQ: Ruby 1.9 adds Fibers for lightweight concurrency» Matzにっき
1.9に最近追加されたFiberについて。 とはいえ、これもまだ仕様が揺れているのだった。 今からなくなるってことはないだろうけど、 たとえば「Windowsでは本当にFiberを使う」とか、 実装上の変化もあるだろうし、CroutineからSemi-Coroutineになるとか。 あるいは、Enumerator#nextがあれば、素のFiberは要らないかも、 という考えもよぎっているらしい。
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:25 Can open source be giving comfort to the enemy? - DIY Drones» Matzにっき
無人機(UAV or Drone)の設計図をオープンソースにしている人たちの集うニュースグループに 自機をイランの国旗の色で塗り分けたイラン人からのポストがあった。 自分(たち)がオープンソースにしている技術が、 自分の国家(この場合にはアメリカ)と対立している国家(この場合はイラク)の 武装勢力かもしれない人によって利用されているとしたら どうなんだろうか、という問題提起。 ちなみに「オープンソースの定義」的には禁止できない。 結局、このイラン人、Amir Aalipourくんはテヘランに住む17歳の少年であることが 明らかになったの..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Fri 31 August, 2007

Click here to bookmark this link.Channel Image22:56 班加罗尔的Geek Night» 梦想风暴
做了一件让自己觉得不可思议的事情,在班加罗尔的Geek Night用英文讲XRuby。

这周早些时候,在办公室遇到了Sidu——我在西安办公室见过他。周五有个班加罗尔Ruby User Group的活动,叫Geek Night,Sidu是活动的组织者。之前,他知道Ola会来,于是安排Ola介绍JRuby。当他看到我的时候,才知道我也来了班加罗尔,于是邀请我也一起参加活动。我问他,我是否需要准备什么,他建议我做一个XRuby的介绍。Ola会有一个45分钟左右JRuby方面的介绍,所以,我需要做的只是一个简单的XRuby介绍。很合我意,因为要用英文讲,所以,如果讲多了,我恐怕自己不成。我很快就准备好了一个很短的介绍。

ThoughtWorks做事总是要敏捷的。今天,我发现Ola没来,后来才知道Ola病了。所以,Ola的部分就取消了。Sidu问我怎么办,我只好硬着头皮答应由我讲一个长一点的,一个比较完整的XRuby介绍。晚上六点的活动,商量好这些的时候,已经是四点多了。所幸之前讲过XRuby的介绍,我把讲稿翻出来修改了一番,更新了一些状态,准备用在活动中。XRuby介绍这个稿子居然得到了反复应用,第一次在北京Java User Group,第二次在敏捷西安,据说,XRuby的其他成员也用过。无论如何,我没想到,我个人的第三次居然是在班加罗尔,而且是英文。

其实,最让我头疼的绝对不是介绍XRuby,而是用英文。这周在班加罗尔上课,对我来说,简直就是一周的英文课。所有课程所有讨论都是英文,我的英文水平让我经常就不知道大家在说什么。不过,自我感觉,经过一些锻炼之后,还是略有提高的。

活动开始,我开始了第一次用英文在比较公开的场合讲东西。我的开场白是,这是我第一次用英文讲。起初,活动在一个小会议室进行,在我讲的过程中,进来的人越来越多,所以,我们又换到了一个比较大的会议室。因为用英文,我只能说,我尽量把我要表达的意思说出来,至于是否大家听懂了,我不好说。好在有讲稿,即便我讲得不够清楚,讲稿也会帮助大家多一些理解的。当翻到讲稿最后一页的时候,我长出了一口气。如果是用中文的话,我可以说得更多,至少我可以胡扯一些东西。对我来说,更大的挑战是Q&A。我的听力本来就不是太好,印度口音更是经常让我犯晕。开始之前,我找了几个同事,如果我听不懂的话,他们可以为我解释一下。在提问者的宽容和几位同事的帮助之下,我成功的度过了Q&A。问题倒不算太难,唯一让我不敢确认的是,我说的是否真的是我要表达的意思,希望没有大错。

不管怎样,我用英文讲了一次XRuby,一次很有趣的经历。
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 Image22:51 Fred Thompson on Federalism» Joey Gibson's Blog

You have to watch this. It's a great explanation of how our country should be working.


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:17 Lonely Woman by Ornette Col...» Projectionist
Click here to bookmark this link.Channel Image14:17 Stephanie’s baby scan» Projectionist
Click here to bookmark this link.Channel Image14:17 All science is either physi...» Projectionist
All science is either physics or stamp collecting.

Ernest Rutherford


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:17 funambulist: One who perfor...» Projectionist
fu•nam•bu•list
[fyoo-nam-byuh-list]noun
One who performs on a tightrope or a slack rope.

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

Thu 30 August, 2007

Click here to bookmark this link.Channel Image19:51 还是病毒» Ruby 语言 思想驱动生活
还是发现了一些病毒,或者叫做木马。 又搞了半天,更有点对病毒作战的感悟 首先是两个软件很不错,一个是冰剑(IceSword),一个是SREng(System Repair Engineer) 冰剑可以删除taskmanager不能杀得进程,也能删掉explorer不能删掉的文件。 SREeng可以发现注册表的问题,今天就是它提示的,提示APPINIT_DLLS被修改了。就用冰剑把那个文件(dll)删掉了。 二是禁用VB脚本,尽量使用firefox了。 在当前用户的temp下发现了类似这样的文件 Set Shell = CreateObject(”Wscript.Shell”) Shell.Run(”C:\DOCUME~1\a\LOCALS~1\Temp\zj.exe”) set Shell=Nothing i=1 下面的这条命令可以禁止文件系统对象(FileSystemObject) regsvr32 scrrun.dll /u 总之,另外,这几次发现的都是盗用密码之类的木马,而且都是明目张胆的往某些ip地址post数据,抓出这些傻逼病毒使用者/制造者很容易吧,我们的保护神公安局在干什么呢? 以下来自网络搜索结果,我也没全尝试: ________________________________________________________________   2、禁用Wscript.Shell组件:   Wscript.Shell可以调用系统内核运行DOS基本命令。可以通过修改注册表,将此组件改名,来防止此类木马的危害。HKEY_CLASSES_ROOT\Wscript.Shell\ 及HKEY_CLASSES_ROOT\Wscript.Shell.1\改名为其它的名字。将两项clsid的值也改一下HKEY_CLASSES_ROOT\Wscript.Shell\CLSID\项目的值和HKEY_CLASSES_ROOT\Wscript.Shell.1\CLSID\项目的值,也可以将其删除。   3、禁用Shell.Application组件   Shell.Application也可以调用系统内核运行DOS基本命令。可以通过修改注册表,将此组件改名,来防止此类木马的危害。HKEY_CLASSES_ROOT\Shell.Application\ 及HKEY_CLASSES_ROOT\Shell.Application.1\ 改名为其它的名字。将HKEY_CLASSES_ROOT\Shell.Application\CLSID\项目的值HKEY_CLASSES_ROOT\Shell.Application\CLSID\项目的值更改或删除。同时,禁止Guest用户使用shell32.dll来防止调用此组件。使用命令:cacls C:\WINNT\system32\shell32.dll /e /d guests   4、FileSystemObject组件   FileSystemObject可以对文件进行常规操作可以通过修改注册表,将此组件改名,来防止此类木马的危害。对应注册表项为HKEY_CLASSES_ROOT\scripting.FileSystemObject\。可以禁止guests用户使用或直接将其删除。考虑到很多的上传都会使用到这个组件,为了方便,这里不建议更改或删除。
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 Image19:50 Ruby也要搞认证考试了» Ruby 语言 思想驱动生活
今年10月在东京和Matz在住的松江,明年2月开始开始网络版的考试,有英语和日语。 Matz和他们公司的另两个人组成了一个Ruby Association LLC (http://www.ruby-assn.org/index.html.en),当然,并没有辞职,这个公司是个LLC,主要为了帮助Ruby发展而建立的。这个认证也是由Ruby Association主办的。
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:04 A Sense of Accomplishment» Projectionist

A Sense of Accomplishment

ruby chad-tests.rb
Loaded suite chad-tests
Started
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
....................................
............................
Finished in 0.110448 seconds.

1000 tests, 0 assertions, 0 failures, 0 errors

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:04 It just zoomed. It just zoo...» Projectionist
Click here to bookmark this link.Channel Image13:04 dehiscence: 1. Botany Th...» Projectionist
de•his•cence
[di-his-uhns]adjective
1. Botany The spontaneous opening at maturity of a plant structure, such as a fruit, anther or sporangium, to release its contents.
2. Medicine A rupture or splitting open, as of a surgical wound, or of an organ or structure to discharge its contents.

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:59 Tweets on 2007-08-29» halostatue
Ruby text processing FTW. # 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 Image11:59 Tweets on 2007-08-29» halostatue
Ruby text processing FTW. # 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 Image08:00 Code- and BarCamp Updates» James Britt - Code, Content, Caffiene

I received conformation from UAT that BarCamp Phoenix 2007 will be held at UAT on December 8th, 2007.

Also, there have been some schedule adjustments for Desert CodeCamp so that various talks that have a natural dependency chain are placed in sequence. That means you can see David Koontz explain What’s Different About Ruby in the morning, then learn about IronRuby, JRuby, and the ever widening world of Ruby Web frameworks later that day (i’ll be lending hand there, talking about Ramaze, Nitro, Cerise, and IOWA). Then, the next day, catch up on Rails™ and RSpec.

It also looks like Sunday morning, pre-CodeCamp, will be the launch of Refactor Phoenix .

(I should probably go finish that Web site.)


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:00 Export to Archive iPhoto Plugin» Joey Gibson's Blog

Ever since I switched to my exquisite Mac Pro, I've been using iPhoto. A few weeks ago when Apple announced the new iLife '08, I bought it. Last week while using iPhoto, I wanted to zip up a bunch of photos so I could move them to another machine. But I couldn't find anything like this in iPhoto. There's an exporter, but it doesn't support zip files. You can right-click on a photo and select "Show File", but that's clunky and wouldn't work well if you had multiple files you wanted to zip up.

So I wrote an exporter plugin to handle this. It's called Export To Archive, and it supports three archive types: Zip, GZip and BZip2, depending on which flavor you prefer. I personally like bzip2, because the compression is much better than the others, but YMMV.

Once you install the plugin, you select the photos and/or events you want to export, then select Export... from the File menu (if using an older iPhoto, the Export... menu item is under the Share menu). The "Export Photos" dialog opens with a new tab labeled "Archive." Selecting this tab reveals a pane that looks like this.

The dropdown reveals the other two archive types. Select the type you want and then press the Export button. You will be presented with a "Save As" dialog where you can enter the name of the new archive file. You don't need to specify an extension as the plugin will append the correct extension based on the archive type. After you enter the name you want and press OK, you should see a progress dialog and then you are taken back to your photo library. If everything went as planned, you have a shiny new archive where you told the plugin to put one. If not, you should get an error message telling you what happened.

The plugin does not keep any directory paths that might have existed in your iPhoto library. I considered making a directory for each "event" (iPhoto 7.x only) but I believe a photo can be in multiple events, so this seemed like a bad idea. Maybe later.

Also, if you select multiple photos with the same name (but from different directories, obviously), then I handle it like Safari does when downloading the same file twice. I append an underscore with a number to the filename before the extension. So if you had two files called 100_1234.jpg, then one would be called 100_1234.jpg and the other would be 100_1234_1.jpg. If there were three files, the second would have _2 appended, etc. This seems like a reasonable solution to this issue.

I should mention one more thing about the compression methods. If you use Zip, then any resource fork info is lost. This probably isn't a problem, but I felt I should mention it. It's how the /usr/bin/zip program works. If you choose either GZip or BZip2, then the photos are first put into a tar file and then compressed. The /usr/bin/tar program that comes with OSX does preserve resource fork info into the archive. If you look in the archive, you will see that for every file, there is a similarly-named file that is vastly smaller than the original. If you expand the archive on a Mac, then you only end up with the files you asked for. But on other systems, the resource fork "phantom files" will be expanded to the disk along with the photo files. The file names start with ._ so on Unix systems they will be hidden. On Windows, you will probably see them. Either way, it's extra crud. I tried to figure out a way to get rid of these files, but there doesn't seem to be one. And maybe we don't want to get rid of them, anyway. Thus, if you are going to move your archive to another Mac, you might want to choose GZip or BZip2. If you're going to it to some other system, choose Zip.

Want it? There are a couple of ways to get it, depending on which version of iPhoto you have.

Both of these installers install the plugin for everyone on the system. PackageMaker.app that Apple provides doesn't seem to provide a way to install it for just the curent user. This means that the plugin will go to one of two places, depending again on your iPhoto version
  • iPhoto 7.x: /Library/Application Support/iPhoto/Plugins
  • iPhoto < 7.x: /Applications/iPhoto.app/Contents/PlugIns

If you're running iPhoto 7.x and you'd rather install it just for yourself, you can download this zip file and install it by hand. You should put it in ~/Library/Application Support/iPhoto/Plugins.

This is a universal binary. I have tested this on a Mac Pro with iPhoto 7.x, and on an iBook G4, with iPhoto 5.x. If you have some other config and it doesn't work for you, let me know, providing a crash dump, if you have one. I don't know that I can make it work, but I could look into it.

If you'd like the source code, get it here. You'll need Xcode 2.4.1 to open the project.

That's about it. This is free software, released under the GNU GPL. If you like it, tell your friends. If there's a feature you want, let me know, or implement it yourself and provide me a patch to include in the source.


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 山陰中央新報 - 「ルビー」活用の産業振興検討» Matzにっき
朝起きて新聞読んでたら、こんな記事が。 全然予告無しで。この辺、油断ならないのが「しまねクオリティ」。 もちろん、事前に断りはなし。 この「会議」のメンバに身内はいないし。 しかし、考えてみたら、このメンバに身内がいたり、 事前に相談があったりしたら「お手盛り」疑惑が持ち上がってしまうので それでよいのだ、ということに思い至った。 いずれにしても、知事が変わって松江市だけでなく島根県も IT振興策について行動を起こす気になったということと、 そのネタとして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 Image07:59 一方、鳥取・米子では» Matzにっき
そういえば、先日米子の実家に帰った時、 米子の商工会議所では、 「松江はRubyってのを掲げていろいろやってるらしい」 「Rubyを作ったまつもとってのは米子出身らしい」 「うーん、松江はうまいことやったなあ」 などという会話があったとかなかったとかいう話を聞いてきた。 さて、問題です。米子市はどういうアクションをとるのがよいでしょうか。 「米子は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 Image03:44 U-20 プロコン» 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 Image03:44 Sony講演会» Matzにっき
Sony内部でのソフトウェア技術者向け講演会。 演者は私と青木淳さん。 組み込みについてはあまり知識がないので、 私の知っている範囲の現状についていろいろと話をしたのだが、 通じたのだろうか不安である。 テレビやデジカメに組み込まれるソフトウェア開発にRubyを使え、 というわけには行かないだろうし。そもそも、ソフトウェア開発の自由度は相当低そう。 しかし、ハードウェア性能は向上してるし、 組み込み分野でもLinuxの普及が進んでいるようだから、 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 Image03:44 Ruby Business Commons設立総会レポート» 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 Image03:44 New Python Bugtracker» Matzにっき
Pythonのバグトラッカーがsourceforgeからroundupへ変更になる、という話。 PHP(sourceforge)からPerl(roundup)へ移行というのが興味深い。 Rubyのトラッカーも変更したいんだけど、 なんかピンと来るのがないんだよねえ。 追記: roundupはPythonでした。確認を怠りました。 すみません。
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:44 Microsoft vs. Google - the open source shame | Reg Developer» Matzにっき
最近、MicrosoftはOSIにライセンス承認を求めたが、 OSIのボードメンバーでもあるGoogleのOSS担当Chris DiBonaが Microsoftを非難して承認に反対した、という話。 が、shared source全般はともかく、今回承認が求められた permissive licenseはOSDを満たしているので、 承認しない理由はないと思う。 ライセンスそのものと直接関係ないMicrosoftの行為を 「オープンソース的でない」として非難するのであれば、 れっきとしたオープンソースソフトウェア(たとえばLinux)を改造して 使っていても、再配布していないと言う理由で公開していな..
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:44 Interoperability with Java is not a good thing.» Matzにっき
ScalaはJVM上の言語としてJavaのライブラリにアクセスできるという「メリット」があるが、 ScalaとJavaでは言語としての性質がずいぶん違うので、Javaのライブラリが使えてしまう ということは実は言語を歪めてしまうのではないか、という話。 まあ、言語の魅力はライブラリに依存する部分は大きいわけで 言わんとすることはわからないでもない。 聞くところによるとScalaは結構がんばっているみたいだけど。 JRubyにも同じことが言える。あまりJavaライブラリへのアクセス性を強調していると いつのまにかRubyの良さを失ってしまうような。..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Wed 29 August, 2007

Click here to bookmark this link.Channel Image21:55 Mock工具: Mocha还是FlexMock» LetRails
简介 Mocha和FlexMock是两个比较流行的针对Rails单元测试的Mock工具, Mocha: 作者:James, Ben, Chris 以及 Paul 许可:MIT License SVN:svn://rubyforge.org/var/svn/mocha/trunk 文档:http://mocha.rubyforge.org/ FlexMock: ...
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 Image15:37 Desert CodeCamp Schedule is Up» James Britt - Code, Content, Caffiene

The time/room grid is up for Desert CodeCamp.

I’ve a 9:15am slot for Intro to Haskell.

Sadness.

Pondering cancellation; only ~10 people have signed up, and doing this even reasonably well is going to be trickier than I expected.

Anyways, an advantage of an early slot is that I will not spend all day tweaking my presentation while sitting through other talks; I’ll get to attend and enjoy the remaining sessions. (I’m helping out with one other talk that day, but I have less need to prepare much in advance for that one. I think.)

BTW, the event has been spread over a day and a half, which is sort of unfortunate, if it ends up dispersing attendance. The Sunday sessions start at 1pm. I’m not sure I’ll want to drive back down to Tempe for Day 1.5

However, this may be an opportunity to organize some sort of hackfest or Refactor Phoenix preview or some other communal geek gathering for that morning. I don’t know if the campus buildings will be open before 1pm that day, but this is something to think about.


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 Image15:37 Tilera、デュアルコアXeonより10倍高速な64コアCPU「TILE64」» Matzにっき
出たよ、64コアCPU。 バスの配置を工夫したり L3キャッシュは近隣のCPUのL2キャッシュを利用する(んだよね)ような ことにより、性能のボトルネックをできるだけ排除するようにして マルチコア化を押し進めたものらしい。 あと、5年くらいしたらこの程度のCPUが一般的になっている、かもしれない。 より詳しい情報が「Massively multicore processor runs Linux」にある。各コア別OSを動かすことができるのかあ。
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 Image15:37 InfoQ: Erlang's Mnesia - a distributed DBMS for highly scalable apps» Matzにっき
Erlangから使える分散データベースMnesiaについて。 この説明からは技術的詳細はよく分からないのだけど、 高速・分散・トランザクション不要などの謳い文句は魅力的に聞こえる。 ちゃんと論文読もうかしら。
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 Image15:04 tribology: The science of t...» Projectionist
tri•bol•o•gy
[trahy-bol-uh-jee]noun
The science of the mechanisms of friction, lubrication, and wear of interacting surfaces that are in relative motion.

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 Image15:04 Think slow, act fast.» Projectionist
Think slow, act fast.

Buster Keaton


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:59 Tweets on 2007-08-28» halostatue
pretending to be QA ;) # @lylejohnson not sure. reunion.com is no different. # Considering how to vote in the referendum… http://tinyurl.com/2dqcaf # waiting for a build, too. :/ # going home. tests successful. # 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

Tue 28 August, 2007

Click here to bookmark this link.Channel Image15:46 Links for 2007-08-27 [del.icio.us]» John Lam on Software
  • Dynamic image modification based on gradient vectors
    This is a remarkable demonstration of a technique for dynamically adding / removing 'unimportant' pixels in an image. This lets you resize images, and with hinting, remove elements from an image. Remarkable.

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 Image15:46 Day 5 of Daddy Daycare» John Lam on Software
Today was a visit to the Woodland Park Zoo. It was a beautiful day in Seattle, about as good as it gets. The boys were pretty good at the zoo today. The only bad thing that happened was when Daddy...
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 Image15:02 traducianism: Theology The ...» Projectionist
tra•du•cian•ism
[truh-doo-shuh-niz-uhm]noun
Theology The belief that the soul is inherited from the parents along with the body.

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 Image15:01 Fibers (and external iterat...» Projectionist
Fibers (and external iterators) are likely to remain in the final 1.9, more likely than continuations.

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 Image14:14 Rails插件: RAV» LetRails
简介:RAV是一个绘制Rails应用模型图的小插件。 作者:Christoffer Sawicki,Phil Hagelberg 许可:GPLv2 SVN仓库:svn://rubyforge.org/var/svn/rav/stable 安装 RAV使用Graphviz来绘图,因此你需要先安装Graphviz。 然后...
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:59 Tweets on 2007-08-27» halostatue
watching "The Corporation" … finally # ha! http://db.tidbits.com/article/9140 # 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:32 iWork vs. CVS» Joey Gibson's Blog

I recently bought the new iWork '08 suite from Apple and have started using the tools for stuff I used to use NeoOffice for. But I noticed something yesterday that is disconcerting.

Like a lot of people, I store my documents in a CVS repository that is backed up to another disk. I checked in a few documents created with Pages and Numbers, and everything seemed fine. That is, until I re-saved any of the documents.

The problem lies in the fact that a "document" for Pages or Numbers (and probably for Keynote as well) is not a monolithic file like a .doc file from Word. They are directory structures ("bundles" is the Apple term) that the Finder and the applications that use them treat specially. Any program in the /Applications folder is the same type of thing. When you check something into a CVS repository, CVS creates a hidden CVS directory in each sub-directory of the thing being checked in. After checking in one of these documents, I went into the document through Terminal and verified that the CVS directories had been created. So far, so good.

When things went awry was when I re-saved a document. Instead of just changing the necessary files inside the "document," Numbers deleted and re-created the entire directory structure. Thus, those CVS directories were toast. There's no good way to recover from this, because those files now look like non-CVS files, but the server already knows about them. To my knowledge, there's no painless way to handle this situation.

I don't believe that Subversion is in any better position. When using SVN, you get a .svn directory created in each sub-directory of the document, but those will also get whacked when the document is re-saved. I haven't tested that assumption, but it seems logical.

I tried to come up with a solution to this, but I'm stumped. I looked into cvswrappers just to see if it could help, but it doesn't look like it. I also considered a pre-commit script and a post-checkout analog (if there is one), but this didn't seem like it would really get us there.

The only solution I see is for Apple to stop whacking the directory structure and just change the files inside it that it needs to, and stop molesting the version-control special files. Maybe they can implement this behavior when they add support for OpenOffice and the OpenDocument format...


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:32 More "Peace" From the "Religion of Peace"» Joey Gibson's Blog

Don't you just love a cult religion that will kill you if you decide to leave it?

According to Mr. Badry, Mr. Hegazy deserves the death sentence for leaving Islam. Souaad Kamel, the outgoing dean of Islamic Study for girls at Al-Azhar University, stated on the air that Mr. Hegazy should be beheaded to fulfill the religious requirements. [emphasis mine]

Read the rest and bask in the "peace" coming from such a wonderful religion.


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:49 交流技巧» 梦想风暴

在ThoughtWorks里,交流是工作中非常重要的一个部分,在这里工作时间越长,这一点感觉得越加明显。今天,和我们团队中的一个人聊天,他教了我一些交流上的技巧,这里做一个简单的备忘。事实上,他教给我的远不止这些。

交流中,最大的障碍就是双方是否真的理解了对方的意思。造成误解的原因可能有很多:
* 双方都认为自己理解了问题,但这种理解可能并不一致。
* 因为背景不同,所以,双方对达成一致所基于的假设是不同的。
* 语言之间的障碍,这点我最近颇有体会
* 双方对问题理解的深度不一致

同事交给我的解决方案就是不断问问题,不断解释自己对问题的理解,对方接收到反馈就会判断与他的理解是否一致,然后再给出他的看法,这样几个来回下来,双方基本上就可以达成一致。有些人可能认为反复的问问题,反复澄清自己的理解似乎会让自己的看上去很傻,所以,听得差不多就不愿意问了。我们的根本目的是完成工作,如果因为前面不愿意看上去丢人,后面可能就要真正的丢人了。其实,没有人会认为把问题搞清楚是丢人的。

再有一点,交流之后要尝试总结,通过总结:
* 确定真正理解问题所在
* 确定双方对问题有一个共同的接收标准
* 确定双方能够在进度上达成一致

学到了,争取用起来!


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

Mon 27 August, 2007

Click here to bookmark this link.Channel Image14:33 sitzkrieg: Warfare marked b...» Projectionist
sitz•krieg
[sits-kreeg]noun
Warfare marked by a lack of aggression or progress.

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:59 Tweets on 2007-08-26» halostatue
finished Flatliners; made myself a strawberry shake; watching Tequila Sunrise # 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:29 苦しい» 青木日記
現代人の病 KU-I-SU-GI で苦しい。 (03:17)
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:29 未踏ソフトウェア事業なんとか報告会» 青木日記
http://www.mitou-chiba.org/ なんか写真が妙にかっこよさげだ! うーむエンタープライズ Ruby は聞いてみたかったけど、この日は無理だなあ。 (04:22)
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:29 リファレンス» 青木日記
うあーメール書いただけで時間切れった (時間切れになった、の略)。 (06:03)
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:29 プロファイラのしくみ» 青木日記
http://dodgson.org/omo/t/?date=20070823#p02 プロファイラの作りに関する記事。これは面白い。 途中に出てくる DCPI は Tru64 にあったアレのことだな。 しばらくしかけとくとシステム全体でボトルネックになってる プロセスを検出してくれてうわーおもしろーと思ったものだ。 最近は Linux でも似たようなのが使えるんだなあ。 (03:40)
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Sun 26 August, 2007

Click here to bookmark this link.Channel Image22:30 時間足りねえー» 青木日記
人間、一人でできることは少ないですな……。 (22:21)
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 Image22:30 これだから無線は! 無線は!» 青木日記
ぐあー無線 LAN がつながり悪ぃー! このつながりの悪さはなんなんだ。 無線 LAN ハブのすぐ隣にノーパソ置いてんのに、ブチブチ切れやがる。 実に腹立だしいな。最近ルータとかハブとかにふりまわされっぱなしだ。 (21:44)
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 Image17:32 Day 3 of Daddy Daycare» John Lam on Software
Sometimes outings are for the kids, sometimes they're for the daddy. After a couple of days of going to parks, we (well, I) decided to do some shopping today. I wanted to explore the area south of where we live,...
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Sources