The Quiet World

And now, for something a little different! It’s a pretty dreary and cloudy day here in Toronto but the morning’s off to a great start seeing as I actually found (by coincidence, nonetheless!) a poem that I’ve been looking for quite a while. It’s a beautiful short piece by Jeffrey McDaniel about what life would be like if talk is not cheap (source):

The Quiet World
In an effort to get people to look
into each other’s eyes more,
the government has decided to allot
each person exactly one hundred
and sixty-seven words, per day.

When the phone rings, I put it
to my ear without saying hello.
In the restaurant I point
at chicken noodle soup. I am
adjusting well to the new way.

Late at night, I call my long
distance lover and proudly say
I only used fifty-nine today.
I saved the rest for you.

When she doesn’t respond, I know
she’s used up all her words
so I slowly whisper I love you,
thirty-two and a third times.
After that, we just sit on the line
and listen to each other breathe.
– Jeffrey McDaniel

 

 

Posted in Uncategorized | Leave a comment

Installing Ruby Gems in an Isolated Network

Problem

I wrote a Ruby app on my laptop. The staging server is in a closed network with no access to the outside or Internet at all. I do have VPN access to the staging server so I can scp over my code, but installing gem dependencies would be far too painful.

Solution

Our old painful methodology was to download each gem as a gemfile separately and scp them over through the network and then install the gems from the files. It was just too painful, especially for projects with large number of gem dependencies.

So I thought, if the staging server cannot access the normal rubygems repository, why not make our own gem repository right inside the closed network?

  1. Open a VPN connection on the laptop to the staging network
  2. On the laptop, note then tunnel IP address (usually tun0)
  3. On the laptop, run
    gem server

    This will run a local gem server right on your laptop which will serve local copies of your gems

  4. On the staging server, run
    gem install [gem name] --remote --source "[laptop_ip]:8808"
  5. (optional) you might need to mess some firewall and iptables to make sure that other servers can connect to your laptop
Posted in Uncategorized | 2 Responses

Joy of Stats

Having taken an introductory stats course at University of Toronto and finding it really dry and boring, my view of statistics have been unfavorable, but Hans Rosling’s Joy of Stats video (full) has definitely persuaded me to review my point of view there:

Ah I wish I could have Prof. Rosling as my stats teacher!

Posted in Uncategorized | Tagged | Leave a comment

Sample Structure of a LaTeX CV or Résumé

I use LaTeX for my résumé, among other things the ability to structure résumé parts as modules really appeal to the inner programmer in me. Removing a section, like that pesky Objectives section, is only a comment character away :) .

Posted in tutorial | Tagged | Leave a comment

My first ACM publication

Well, this is quite an interesting turn of events. It would appear that the workshop I co-chaired with Gloria Ng and Ding Kong for CASCON 2010 has been put on the ACM Digital Library as part of the proceedings.

I’m not even sure if it counts as my first publication since it’s just a short abstract and summary, but if it is then I’ll take it ;) Here’s for more successful work with great people in the future!

p.s. Congratulations are also in order for fellow IBMers and UofT students Jack Yang and Simon Guo on their first ACM publication.

Posted in computer science | Leave a comment