2007-12-01から1ヶ月間の記事一覧
どうやらスレッド周りにちゃんと対応できてないみたい。 import threading # input thread def input_th() : global flag_exit_th while 1 : in_v = raw_input() if in_v == 'exit' : flag_exit_th = 1 # スレッドを終了させる。 break # main threading.Thr…
帰京するときに金沢から『はくたか』に乗車した。午後の出発だったんだけど、午前中にほくほく線で雷のため電車が遅れた関係で普段の車両ではなくて、旧型の車両に変更になった。昔は良くみかけてた車両。懐かしい。
Windows Server 2003であれば以下で出来るらしい。がWindowsXPでは出来ない。 >netsh interface set interface "ローカル エリア接続" enabled >netsh interface set interface "ローカル エリア接続" disableXPの場合は… >netsh interface set interface "…
一瞬IISになってたような・・・ Content-Type: text/html Server: Microsoft-IIS/6.0 Date: Mon, 10 Dec 2007 02:01:24 GMT Connection: close 今はこう。 Date: Mon, 10 Dec 2007 03:49:57 GMT Server: Apache X-Dealer: 003063 Cache-Control: no-cache Pragm…
pythonのurllib2で使ってクッキーの制御ができるようになったので、ファイルに読み込み・保存しようとdir(cookielib)すると、FileCookieJarなんつーそのものを発見。キタコレw http://d.hatena.ne.jp/xanthus/20071204#p1のコードのcookielib.CookieJarを利…
近所の茣蓙で呑む。旨い。HPはこちら。どこかで見かけたら買わねば。 http://www.sake-kura.com/shochu/yamatozakura.htm
HTTPリクエストでPOSTを使う方法 import urllib import urllib2 post_data = {} post_data['email'] = 'hoge@hoge.com' # エンコード en_post_data = urllib.urlencode(post_data) # リクエスト r = urllib2.urlopen('http://hoge.com/',en_post_data) # url…
トンボの絵柄がお気に入り。美味しかった。