A gotcha with Python's socket.htonl() and ntohl()

Here is something that I ran into the other day :the socket module 's htonl() and ntohl() functions will return signed numbers undersome circumstances, not unsigned ones, which means that for some inputvalues they will return negative numbers.

(Some quick testing suggests that this happens on 32-bit x86 machinesbut not 64-bit x86 Linux machines; all of the 32-bit machines I haveaccess to are running some version of Python 2.5.


A corollary to the limits of anti-spam precautions

One of the corollaries to the limits of certain sorts of anti-spamheuristics is that if you see spam softwareactively working to get around any particular sort of precaution, youcan assume that the particular precaution is getting reasonably popular.

This follows from spammers being lazy but not stupid; if the precautionwas not reasonably popular, dealing with it probably wouldn't be worththe time of the programmers behind the spam bots. That they do deal withit implies that it is worth their while to do so, which


My quick reaction to Ookami-san to Shichinin no Nakamatachi episode 1

Rather than just just email my comments to Author in response to his entry ,I'll be Author-like and post something here for once.

The first fansub of Ookami+7's first episode has come out, and I'vewatched it now (partly because of Author's entry). Unlike some, Iactually like the narration; without its injection of snarky commentaryand the show's gleefully casual exploitation of Western fairy talesfor our amusement, this would be a pretty ordinary romantic comedy


Bio Hazard Outbreak / Resident Evil Outbreak 決意達成率 (Decision, Decision Completion)

「決意」達成率的條件

編號資料(日文)資料
01鹿剥製に赤い宝石をはめた在大廳對鹿頭標本使用紅色寶石02鹿剥製に青い宝石をはめた在大廳對鹿頭標本使用藍色寶石03事務長室の鳩時計の仕掛けを解いた解開「事務長

Bio Hazard Outbreak / Resident Evil Outbreak 獄炎達成率 (Hellfire Completion)

「獄炎」達成率的條件

編號資料(日文)資料
01客室101の金庫の鍵を解除した打開客室101保險櫃的鎖
02配電室で緊急電源を供給した恢復1F配電室的緊急電源
03ヨーロッパ地図の仕掛けを解いた解除客室204

Bio Hazard Outbreak / Resident Evil Outbreak 巢窟達成率 (The Hive Completion)

「巢窟」達成率的條件

編號資料(日文)資料
01輸血パックを使用した使用血漿
02ナースコールを鳴らした按動病床的呼叫鈴
03シャッターの電源を入れた打開1F夜間受付的電源
041F廊下のシャッターを開けた打開

Bio Hazard Outbreak / Resident Evil Outbreak 零下達成率 (Below Freezing Point Completion)

「零下」達成率的條件

編號資料(日文)資料
01キーピックでロッカーを開けた使用Alyssa打開休憩室的儲物櫃
02凍ったレンチを溶かした溶解結冰的扳手
03レンチでパネルを開けた使用扳手打開面板
04バルブハンドルでB

Bio Hazard Outbreak / Resident Evil Outbreak 發生達成率 (Outbreak Completion)

「發生」達成率的條件

編號資料(日文)資料
01タルでバリケートを完成させた推動兩個酒桶於正門
02スタッフルームへの鍵を使用した使用員工室鎖匙
03青いタグの鍵を使用した使用青牌鎖匙
04壁の絵の仕掛けを解い

Bio Hazard Outbreak / Resident Evil Outbreak Extra

Collections - Extra 的獲得條件與支給分數

編號資料條件分數
001Hard難度選擇完成全故事模式2000
002Very Hard難度選擇完成Hard全故事模式3000
003No Partner選擇完成Hard全故事模式10000
004Infinite選擇全故事模式100%達成率5

Bio Hazard Outbreak / Resident Evil Outbreak Music

Collections - Music 的獲得條件與支給分數

編號資料條件分數
001發生BGM完成發生1000
002零下BGM完成零下1000
003巢窟BGM完成巢窟1000
004獄炎BGM完成獄炎1000
005決意BGM完成決意1000
006戰鬥BGM全故事