Blog

How to get unlimited free trial Wi-Fi connections by spoofing your MAC address on Ubuntu 12.04

December 9, 2012

You’ve probably seen those Wi-Fi hotspots already that offer free trial connections for 20, 30, or 60 minutes before. The way they track your device is usually by its MAC address, so if you can change its MAC address you can keep getting free trial connections.

I’m at a McDonald’s in Hong Kong right now and the only Wi-Fi connection that works for me only offers 20 minutes free trial. Back when I was using …

Error Message: “Peer authentication failed for user ‘username’” when connecting to a PostgreSQL database from a Django application

December 4, 2012

Error Message:

psycopg2.OperationalError: FATAL: Peer authentication failed for user “username”

I was setting up a friend’s project on my Ubuntu 12.04 laptop last night and ran into this database connection problem when I tried to ran his Django application.

There are actually 2 solutions to this problem:

Solution 1:

In your settings.py file, in the database settings, set the ‘HOST’ to ‘localhost’ instead of an empty string.

Solution 2:

Modify the /etc/postgresql/9.1/main/pg_hba.conf file and change …

How to install the Ubuntu 12.04 ‘Sputnik’ image on your Dell XPS 13 Ultrabook

December 3, 2012

I got my new Dell XPS 13 Ultrabook a couple of weeks ago with the Windows 8 OS pre-installed. One of the main reasons I got this laptop was because of Project Sputnik, Dell’s attempt to build an Ubuntu-based developer laptop by working with Canonical.

I was waiting for Project Sputnik to finish before putting Ubuntu on it. About 3 days ago Dell finally announced that the developer edition of the XPS 13 …

Error Message: “Failed to create the SD card” when creating a new AVD on Ubuntu 12.04

December 2, 2012

Error Message:

Failed to create the SD card.

Failed to create sdcard in the AVD folder.

Just ran into this issue while I was setting up my Android development environment on my new laptop running Ubuntu Linux 12.04. I’m currently using the 64-bit build and it turned out that the ia32-libs package is not installed by default.

Installing this package fixes the issue:

sudo apt-get install ia32-libs

Iguazu Falls: From Argentina to Brazil

November 26, 2012

After a 17-hour bus ride from Buenos Aires, I finally reached the town of Puerto Iguazu near the Iguazu Falls, my last stop in Argentina. From here I will be heading to Brazil, with my first stop in the town of Foz do Iguacu to check out the falls on the Brazilian side.

Below is a quick summary of my trip.

Argentina (Puerto Iguazu)

I arrived at the town of Puerto Iguazu in the afternoon …