This thread on reddit blew my mind: http://www.reddit.com/r/pics/comments/xu7pn/with_all_the_curiositymars_pics_heres_a_pic_of/ Apparently the Russians sent a probe that landed on Venus in the 1980s. http://en.wikipedia.org/wiki/Venera And then there is this probe that got picture from the surface of one of Saturn’s moon – Titan. http://en.wikipedia.org/wiki/Huygens_(spacecraft)
Category: Technology
iPhone: Mobile phone for traveling in europe
My job requires me to be on-call 24/7. When I was vacationing in Europe, my primary concern was finding internet access everywhere I go, which means I must have data access with all my wireless carriers. Oh btw, having internet also gives you access to tripadvisor — which is an invaluable resource for countries that… Continue reading iPhone: Mobile phone for traveling in europe
Exim4 – send all frozen messages
exim -bp | grep frozen | awk ‘{print $3}’ | xargs exim -v -M
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? } root :to => ‘devise/sessions#new’ end
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 unknowingly copied the line without copying the whitespaces. It is a YML file, so whitespace… Continue reading How two whitespaces ruined my life.
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/
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/
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 have to find the public key using the private key I have locally. The command… Continue reading SSH: How to generate public key from private key
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 –
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, before catching this tidbit : order – Set to an array containing :day, :month and… Continue reading Rails date_select fields hidden