Author Archives: liyi

Online Booking Is Safe

Mahmoud al-Mabhouh, one of the founders of the Izz ad-Din al-Qassam Brigades, was recently found dead in his hotel room in Dubai. Dubai authorities stated they were ruling the death a homicide and according to BBC: Investigators have also discovered … Continue reading

Posted in Uncategorized | Leave a comment

In-Memory DB, H2 and Python

Our log data is sent to a log server which then saves it in a PostgreSQL database. To prevent the database from growing too large, we periodically remove data older than 24 hours from the database and save it for … Continue reading

Posted in Database, Java, Python | Leave a comment

Setting up BandLuxe C179 on Karmic

I’ve recently signed up with Singtel’s mobile broadband, which uses a BandLuxe C179 HSDPA USB modem. Hers’s how I set it up on Ubuntu 9.10: Download Linux driver from http://www.bandrich.com. The file name of the download “C270-Eee-PC_Linux-driver.zip” suggests it’s intended … Continue reading

Posted in Uncategorized | Leave a comment

Use Relative Path in Free-form Netbeans Projects

For free-form projects, Netbeans uses absolute path for project directory in project.xml: <properties> <property name=”project.dir”>/Users/yili/Work/homecamera/WowzaStreaming</property> <property name=”ant.script”>${project.dir}/build.xml</property> <properties> All paths in project.xml are relative to the project folder, which is the folder that contains the nbproject folder. Thus changing the … Continue reading

Posted in Uncategorized | Leave a comment

The Best Farewell

It has always been my ambition to die in harness with my head face down on a keyboard and my nose caught between two of the keys — Isaac Asimov

Posted in Uncategorized | Leave a comment

Setup Audio for Windows 7 on MacBook Pro 13"

My brand new MacBook Pro 13″ dual-boots on Snow Leopard and Windows 7. I used the official Snow Leopard DVD to install device drivers for Windows 7. Everything worked fine except for audio, which had a very low volume for … Continue reading

Posted in Uncategorized | Leave a comment

OpenSSL and Windows Socket

A program I’m working on gives many compilation errors like this: c:\Program Files\…\PlatformSDK\Include\WinSock2.h(108) : error C20011: ‘fd_set’ : ‘struct’ type redefinition c:\Program Files\…\PlatformSDK\Include\WinSock.h(54) : see declaration of ‘fd_set’ This occurs when both WinSock.h and WinSock2.h are included and WinSock.h is … Continue reading

Posted in Uncategorized | Leave a comment