Category Archives: Technology

Exim4 – send all frozen messages

exim -bp | grep frozen | awk ‘{print $3}’ | xargs exim -v -M

Posted in Technology | Leave a comment

How to make the sign in page the root page on devise

You can’t just use root :to => ‘devise/session#new’ because you will get this Could not find devise mapping for path “/” So you have to do this devise_for :users do root :to => ‘dashboard#index’, :constraints => lambda {|r| r.env["warden"].authenticate? } … Continue reading

Posted in Technology | Leave a comment

How two whitespaces ruined my life.

Ok. I literally just spent 6pm since last night, until 12pm today debugging (minus 5 hrs of sleep) because of two whitespaces. I am setting up a server, and I had to copy one line of configuration.   signup_flag_on: true I … Continue reading

Posted in Technology | Leave a comment

Fuck you apparmor!!!

That’s 5 hours of my life I will never get back. http://paikialog.wordpress.com/2011/10/19/how-to-properly-move-mysql-datadir-to-a-new-folder/

Posted in Technology | Leave a comment

Government waste money on Mobile app

Great article on how much money the government waste hiring incompetent people. http://gun.io/blog/the-governments-200000-useless-android-application/

Posted in Politics, Technology | Leave a comment

SSH: How to generate public key from private key

I am in the process of switching computers. I have a private key to one of my aws boxes, but the box no longer has a copy of the public key. So I can’t log in. The trick is: I … Continue reading

Posted in Technology | Leave a comment

How to untar multiple tar zipped files using cat

The db backup program I used split the backup files into multiple tar gzipped files mysql-backup.tar.gz.part01 mysql-backup.tar.gz.part02 mysql-backup.tar.gz.part03 here is how to unzip them cat mysql-backup-tar.gz.part* | tar -xzvf -

Posted in Technology | Leave a comment

Rails date_select fields hidden

Another 2 hours wasted. Today I was trying to use the date_select helper, but I could not figure out why the fields kept showing up as hidden inputs instead of select boxes. Poked around for a long long long time, … Continue reading

Posted in Technology | 2 Comments

Ruby or vs ||

I just discovered that there is a difference between or and || work: variable = this || that No work: variable = this or that This is one of those things that when you overlook, it will drive you insane.

Posted in Technology | Leave a comment

Gaming the GoDaddy Facebook Fan Page $1 Coupon

The other day I saw GoDaddy giving out “$1 for a domain” coupons if you “liked” them on facebook. That’s cool. I love $1 domains. But I don’t “like” anyone on facebook. So after almost an of poking around and … Continue reading

Posted in Technology | Leave a comment