Down here

As I mentioned in last post, I’m taking part in a programming contest in Brazil. It started a little more than a week ago and it has been excellent. Last week we were trained by Fabio Dias Moreira, an awesome guy who taught us a lot.

The problems and scoreboards from the different contests are being published here.

Here’s a photo of the door to the university:
The door of the university

The university is incredibly big. There are two bus routes inside of it and you could take some good 40 minutes in any of them. It’s also very green:
A sidewalk in the USP

São Paulo in general is a very sinful city, but just for the record:
Sinful chocolate

I’m going to Brazil!

Yeah, I’ll spend one full month in São Paulo! I’ll be assisting to the Treino para Final Mundial do ICPC 2010.

That means I’m going to be trained by Petr! (If you don’t know who Petr is, please leave now; I don’t want to talk you).

I will be posting pics and details about the trip in the coming days.

New books!

New books

Wouldn’t be possible without oDesk. Hire me or start working.

Tarring and untarring stuff

Creating a new tar:

tar zcvf new.tar.gz the_folder_i_want_to_tar

Exploding the tar:

tar zxvf new.tar.gz

My oDesk credit card just arrived

I arrived home and they told me an envelope with my name had arrived. I looked at it and this is what I found:

Envelope

I live in Colombia, so I was rather skeptic with this card. But now it is a reality. It took barely 3 weeks to arrive, which was much faster than I expected.

Payoneer MasterCard

Want a card like this?

Sign up to oDesk and start working. Choose Payoneer credit card as your payment method and that’s it.

My first oDesk payment

I earned $42.03 on my first week of work on oDesk (I worked 4.67 hours this week). I’m working on a Ruby on Rails application. oDesk is awesome! Working from home or wherever you are, at the time you want, for as long as you want, and in what you want, well, that’s very enjoyable.

Screenshot-My Account - Withdraw - oDesk - Mozilla Firefox

Give it a try.

The On Demand Global Workforce - oDesk

Backup and restore a MySQL database

Backup:

mysqldump -u user -p database_name > dump.sql
(Enter password)

Restore:

mysql -u user -p new_database_name < dump.sql
(Enter password)

How to set up a remote Git repository

On the remote server:

mkdir repository.git
cd repository.git
git --bare init

On the developer’s machine:

mkdir cool_app
cd cool_app
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin ssh://user@server:port/full/path/to/repository.git
git push origin master

More…

Bye bye, Ceiba Software House

Today was my last day working at Ceiba Software House. I decided to quit because I want to focus on studying. I feel like I’m wasting too much time on work and not doing the things that I really enjoy. Besides, I got quite bored working with big Java enterprise applications. That’s not enjoyable.

I will continue working part-time on Mentez, a small company that develops applications for social media. It’s very fun to work there and my workmates are awesome. Besides, we’ll code in Ruby!

Run a single test on a Ruby on Rails application

The number of tests in the app I’m developing it’s getting really big. Sometimes, I just need to run a single test and not all of them. I only need to remember this line:

ruby -Itest test/unit/availability_time_test.rb