2011-11-08 14:22:11
No Comments
Archive Mount is a FUSE application that allows you to mount any zip/gz/bz/tar file (in fact anything that libarchive supports). This is very useful if you don't want to get at the files inside a archive without extracting it.
In my use case I'm using Archive Mount with a zip file containing 10,000 files. This seemed ...
2011-11-02 03:41:16
No Comments
PHP's lack of a finally keyword is apalling, and even though there seems to be some hacks around it, I have come up with own today. I'm following the C++ concept of allocating objects on the stack, and letting them cleanup any resources when the stack is rolled back.
Take an example. I am creating some ...
2011-10-31 04:13:23
No Comments
I've been playing with the Tiger shapefiles to generate some interesting plots. While doing this I kept wondering what all the different geographies were. I couldn't find a single concise list, so I made my own (but not yet complete) list from various source of information:
dl.inline{ float: left; width: 500px; margin: 1em 0; padding: 0; ...
2011-10-25 21:46:13
No Comments
I encountered the following odd exception:
PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2053 ' in /home/bramp/my.php:29
Stack trace:
#0 /home/bramp/my.php(29): PDOStatement->fetch(2)
Searching on Google didn't reveal much help, but I eventually figure out the root cause. Spot the mistake:
...
$sql = 'SELECT TRIGGER_NAME, TRIGGER_GROUP, JOB_NAME FROM QRTZ_TRIGGERS';
$sth = $dbh->prepare($sql) ...


