2008-12-01から1ヶ月間の記事一覧

TwitterをGoogleトークやPidginやAdiumやiChatやGMailにつなぐ方法(2ステップでおk)

tweet.IMに登録します。 https://www.tweet.im/ tweet.IMは、"TwitterをGoogleトーク互換のインスタントメッセージに流してくれるサービス"です。(本当はTwitterのパスワードを他人に教えちゃダメですが、ここは彼らを信用しましょう) Googleトークのアカウ…

顧客が本当に必要だったもの(ロボット編)

http://2chart.fc2web.com/itkakumei/ によくまとまっている。

XMLの名前空間接頭辞をとっぱらうGaucheスクリプト

名前空間接頭辞があるとXPathが使いづらいから消してやる。 Gaucheのsxml.tree-transライブラリを使ってSXML変換をかける。 #!/usr/bin/env gosh (use sxml.ssax) (use sxml.tools) (use sxml.serializer) (use sxml.tree-trans) (define (remove-namespace-…

OCaml-NagoyaでFUSEの紹介をした

FUSEでファイルシステムを作ろう

Gaucheで魔方陣に挑戦(順列を実装)

http://www.cut-the-knot.org/do_you_know/AllPerm.shtml の B. Heap's algorithm で、順列を生成してみる。 (use gauche.uvector) (define-syntax =2 (syntax-rules () ((=2) #f) ((=2 t) t) ((=2 t1 t2) (let ((x t1)(y t2)) (if (eq? x y) x #f))) ((=2 t…

SXPathまじやばい

みずぴー日記:E4Xまじやばいに対抗して、GaucheでSXPathを使ってみる。 SXML要素を作る (use sxml.ssax) (use sxml.sxpath) (define sxml (call-with-input-string "<product> <model stock=\"yes\"> <name>foo</name> <price>100</price> </model> <model stock=\"no\"> <name>bar</name> <price>200</price> </model> </product>" (cut ssax:xml->sxml <…