Curiosity, Venera, Huygens

This thread on reddit blew my mind:

Apparently the Russians sent a probe that landed on Venus in the 1980s.

And then there is this probe that got picture from the surface of one of Saturn’s moon – Titan.


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 do not use yelp. (I wonder if Yelp has ever tried to buy TripAdvisor — because that’s what I would do).

My initial wish was for a mobile phone carrier that serviced all of Europe. Sadly, no such company exists. Each country had their own mobile provider. Lame.

To prepare for the trip, I brought my unlocked, jailbroken iPhone with me. I also had an Android phone with me, but sadly I forgot to unlock it. My #1 tip for traveling in Europe is to bring an unlocked smartphone with you. Rooting your phone is easy. Unlocking it is another story. T-mobile will unlock your phone if you have been with them for more than 60-days, so plan for this if you do not have an something available.

When I landed in London, I found a T-Mobile UK. They sold me a 10 pounds SIM card which was supposed to give me 2GB of data or something like that. I had the salesman try and make it work on iPhone, but he couldn’t do it even after trying unsuccessfully several times to mess with the APN settings. I was in a hurry, so I took my phone and left thinking I would have better luck doing it myself. This was a mistake. I never got the T-Mobile UK SIM to work with my phone, so my entire time in London was offline. Worst two days ever…. So that’s my tip #2 — Make sure your SIM works before leaving the store. Most of the time, the people in those stores know exactly how to make their SIMs work. Knowledge that is not widely available online.

To make matters worst, it seems that getting WiFi in your hotel room is extremely unreliable. This is not a European thing. It is a problem here in the States too. So my tip #3 is not to rely on hotel WiFi. Always bring your own. By that I mean make sure the phone you are bringing, can tether internet. So remember, unlocked, and rooted or jailbroken phone with a Wifi Tethering app installed. This is also a great asset for when you are sitting around in the airports.

My next destination was Paris. I don’t know why, but it was really hard to find a phone store in Paris. They had a lot of stores there, but its all baguette and coffee shops. I honestly saw only one phone store the entire time I was there. That one phone store was Vodafone. They did not speak that much english, and looked really annoyed I wanted to speak to them in english. They told me that if I bought a SIM from them, it would take 48 hours for it to activate, which means I will be gone by then. So again I spent two days in paris offline.

At this point I was really starting to stress out. The hotel WiFi were not reliable, and I was just roaming the streets going from one WiFi hotspot to the next. I even broke my golden rule of not using public WiFi hotspots, for security reasons, because I was so desperate.

Surprisingly, the easiest place I got a working SIM was in Venice. A freaking dilapidated island city surrounded by water. The Vodafone store in Venice got me a working SIM — 40 euros for 5GB of data. The coverage was not bad at all. I had 3G data almost everywhere. But then for some reason it stopped working and I had to visit a store in Rome to ask about it. They told me I had to refill my account 5 euros. I still don’t understand how that happened. I was told that 40 euros would give me 5GB for a month, but that does not seem to be the case. If anyone knows why this is, I would like to know.

After italy, we landed in Santorini. Again, on an island, I was able to visit a phone store and easily get a SIM for 20 euros. 2GB of data for 15 days I believe. You had to follow some instructions to make the thing work properly, but like I said earlier, the people at the phone store were pretty knowledgeable on how to make it all work.

That rounds out my mobile travel experience in Europe. I now have a pocket full of SIM cards with unused data. I dream that one day there will be a place at the airports where we can drop off our used SIM for the next traveler to pick up. But that might be problematic because the SIM is tied to your passport. Speaking of which. In order to buy a SIM, you must bring your passport, so remember that.

I also hope that one day all airports will have SIM vending machines. I saw one in London, but missed the opportunity to use it. If I was to go back, my first stop would be to that SIM machine.

Btw, if you are adventurous. Port your number to google voice. Having my number on google voice allowed me to receive text messages and phone calls on any phone, any where, using the google voice app. I was also able to use it to make phone calls and receive text messages on my primary number, as if I never left the States. This is a rather convenient option when you don’t want to have to remember different numbers when you are traveling.


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'

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 is required.

Ok. It did not ruin my life, but fuck me nonetheless.


Fuck you apparmor!!!

That’s 5 hours of my life I will never get back.

Politics Technology

Government waste money on Mobile app

Great article on how much money the government waste hiring incompetent people.


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 is

ssh-keygen -y

It will prompt you for the file you want to get the public key from.

I got the public key, went into the box using my old machine, and put the public key into the authorized_keys section.



How to untar multiple tar zipped files using cat

The db backup program I used split the backup files into multiple tar gzipped files


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 :year do customize the order in which the select fields are shown. If you leave out any of the symbols, the respective select will not be shown (like when you set :discard_xxx => true. Defaults to the order defined in the respective locale (e.g. [:year, :month, :day] in the en locale that ships with Rails).

For some god forsaken reason, the “order” on the date_select field in my app was not set, or is defaulted to something else. I have no idea where this happens, or how it happens. But adding and order param fixed my problem

f.datetime_select :start_time, :order => [:year, :month, :day]