Ruby Imap foo

How to tell if a message has been read or not with ruby net/imap

seen=true if flags.include? :Seen || false

Spent a while looking for that one, and well, I learned the hard way : Stop googling and read the code


Check out my friend Max’s new blog: Brickd. All sorts of Lego awesomeness.

Openvbx and nginx howto:

Well, you just need a few rewrite rules to deal with openvbx on nginx:

Inside of the server block, add this.

location / {
#root /var/www/nginx-default;
root /www/virtual/;

index index.html index.htm index.php;
if (-f $request_filename) {

if (-d $request_filename) {
rewrite ^(.*)$ /index.php?vbxsite=$1 last;


In trying to upgrade to the new hotness 0.84, I ran into two problems.
1) don’t forget to copy over your /OpenVBX/OpenVBX/config/database.php and /OpenVBX/OpenVBX/config/openvbx.php files from the old directory and into the new hotness directory.

2)”PHP Fatal error: Call to undefined function get_instance() in /OpenVBX/libraries/MY_Config.php on line 43″

Apparently, others are also having this problem. The installer wants you to use but that will cause everything to break too. You should be able to drop the index.php and go directly to all will be well in the world.

A place to mess around

Ideally, a bunch of eclectic, funky, potentially useful or useless stuff