Blog / Tech

Simple Python program to help improve your Spanish vocabulary

February 4, 2012

I’ve been taking 4 hours of Spanish lessons in Antigua, Guatemala for the last 4 days now. I’ve learned a lot in this last 4 days but I still have a ton to learn. My Spanish vocabulary needs a lot of work, so I wrote this simple Python program to help me.

The program loads a list of words from a CSV file (I export my CSV files from Google Docs), shuffles them, iterates …

Python script for auto-renaming your image files

January 19, 2012

I like to rename my pictures a certain way as soon as I import them to my computer. I usually follow this format: description_datetaken_3digitnumbering.jpg

I was using Metamorphose to do this for a while. But one time I wanted to rename my pictures while I was in New Zealand and realized I didn’t have the application installed on my netbook. I didn’t want to pay the $5 for the Internet access so I decided to …

Apache warning message on Ubuntu 10.04: ‘__default__ VirtualHost overlap on port 443, the first has precedence’

November 15, 2011

Got this message when I restarted the apache2 daemon after I added a new virtual host in/etc/apache2/sites-available/default-ssl on Ubuntu 10.04:

[warn] _default_ VirtualHost overlap on port 443, the first has precedence

I checked the other Apache config files and inside /etc/apache2/ports.conf there’s a comment on what to do:

Step 1. Add NameVirtualhost *:443 entry in ports.conf (inside <IfModule mod_ssl.c>)

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will …

Choosing a Kindle for travel

November 14, 2011

I finally bought a Kindle!

I’ve been thinking about getting one for a while now. My sister has one and I’ve been borrowing hers when I go hiking as my Dell Streak‘s screen is just not readable in bright sunlight due to glare. I always question myself before I buy anything nowadays to make sure it’s something I will really be using.

I’ll be traveling long term out of the country in January and …