PROGRAMING

xyzzy + global

http://xyzzy.g-artistic.net/2005/08/04/xyzzy-gnu-global-gtags/ NetInstallerからインスコ。 ちょっと幸せになった。

PKWAREのCRC32のテーブル

ここから拝借。 これ仕様書に載ってんのかなぁ? $__crc32_table = [] # Lookup table array def __crc32_reflect(ref, ch) # Reflects CRC bits in the lookup table value = 0 # Swap bit 0 for bit 7, bit 1 for bit 6, etc. (1..ch).each do |i| if (ref…

Zip暗号化

仕様書とZipのバイナリとにらめっこしてわかったのは、とりあえず… 暗号化したZipファイルはgeneral purpose bit flagにフラグが立つ Data descriptorが付加される…みたいだけどよくわからん データの先頭12バイトが鍵(?)。その分、サイズが増える。

Overall .ZIP file format:

http://www.pkware.com/documents/casestudies/APPNOTE.TXT Overall .ZIP file format: [local file header 1] [file data 1] [data descriptor 1] . . . [local file header n] [file data n] [data descriptor n] [archive decryption header] [archive ex…

C. Data descriptor:

http://www.pkware.com/documents/casestudies/APPNOTE.TXT C. Data descriptor: crc-32 4 bytes compressed size 4 bytes uncompressed size 4 bytes This descriptor exists only if bit 3 of the general purpose bit flag is set (see below). It is byt…

D. Archive decryption header:

http://www.pkware.com/documents/casestudies/APPNOTE.TXT D. Archive decryption header: The Archive Decryption Header is introduced in version 6.2 of the ZIP format specification. This record exists in support of the Central Directory Encryp…

Zip暗号化

Info-ZIPで暗号化するとData descriptorはつかないけど、Windowsで暗号化したらData descriptorがついてきた。 なーぜー。

APPNOTE.TXT - .ZIP File Format Specification

http://www.pkware.com/documents/casestudies/APPNOTE.TXT アルゴリズムはともかくフォーマット自体はシンプルな気がする。

link:最適化の為のアセンブラ入門

http://ray.sakura.ne.jp/asm/index.html あとで読む。

Visual Studio 2008 Standard Edition

Amazonで購入。 何がうれしいってSubversionと連携できるのがうれしい。Visual Studio 2008 Standard Edition出版社/メーカー: マイクロソフト発売日: 2008/02/08メディア: DVD-ROM購入: 7人 クリック: 40回この商品を含むブログ (18件) を見る

フィルタと継続

Apacheのフィルタのようにストリームに対してフィルタリングを行う場合、継続がすご〜く有効なんじゃないかと思って、このところ悶々と考え込んでいる。 既存のフィルタのデータ読み出し部をハックして、データがなくなったら継続で抜ける→新しいデータがき…

Squirrel

http://squirrel-lang.org/ Luaを発展させた言語…らしい。

VS2005と作成物の配布

http://www.microsoft.com/japan/msdn/vstudio/express/faq/#visualc # Express Edition を商用目的で使用することはできますか。 はい、Express Edition でプログラミングしたソフトウェアの販売については、特に制限はありません。とのことなので、問題な…

link:コネクションとは - The all-round Dictionary of Network Terms

http://www.7key.jp/nw/tcpip/tcp/connection.html サーバ側でもクライアント側でも、状態遷移は接続の方向に依存するのかなぁ…。 HTTPで切断側・被切断側の方向って決まってるんだろうか?

link:カーゴ・カルト・プログラミング

http://www.radiumsoftware.com/0604.html#060418

link:1975 年のプログラミング

http://dodgson.org/omo/t/?date=20070617#p02

link:Rubyの呼び出し可能オブジェクトの比較(1)

http://idm.s9.xrea.com/ratio/2006/11/14/000541.html 継続についてまた調べていたら、見つけたページ。おもしろいなぁ。 ぜんぜん関係ないけど、「継続」と「継続渡し」をごっちゃにしてた。 うーん…