2008-04-23から1日間の記事一覧

(続)rubyで最小のwebサーバ

しまった。一回こっきりなら以下の手があった。 require 'socket' s=TCPServer.open(80).accept s.puts "HTTP/1.0 200 OK\nContent-Type: text/plain\n\nhello,world" +s.gets

rubyで最小のwebサーバ

たぶん、これが今最小(自分の中で) require 'gserver' class GServer def serve(s) s.puts "HTTP/1.1 200 OK\nContent-Type: text/plain\n\n"+s.gets end end GServer.new(80).start sleep

リセットなしでATOK17のユーザ辞書を捨てるには

辞書ファイルは C:\Documents and Settings\n9d\Dictionary\ATOK17\ATOK17U1.DIC $ cd /cygdrive/c/Documents\ and\ Settings/n9d/Dictionary/ $ mv ATOK17 ATOK17_bak $ mkdir ATOK17ここでSHIFT+CTRLを数回押してFEPを再起動する