Blog / Tech

Getting started with virtualenv on Ubuntu 12.04

April 1, 2013

virtualenv is one of those tools that every Python developer should use. It lets you create isolated Python environments for your projects so you can try out different versions of packages/libraries the applications use on the same machine.

You could do something similar using virtualization software such as VMware or VirtualBox, but they take up more resources and take longer to set up. With virtualenv, you can set up these isolated environments in seconds! …

Some tips when creating a custom Heroku buildpack

March 23, 2013

I spent quite a bit of time last week creating a custom Heroku buildpack for a Python library I wanted to use on Heroku. It's a library for converting HTML to PDF (Weasyprint). It has quite a bit of dependencies on other packages, such as a few -dev packages. Unfortunately, Heroku doesn't have a lot of these packages installed by default.

The solution is to create a custom Heroku buildpack. This was …

How to get free Wi-Fi in Thailand

March 18, 2013

One thing that I’ve noticed when I first arrived in Thailand is that I’m picking up Wi-Fi signals everywhere, but almost none of them are free. Even the Starbucks I’ve been to, and I must have gone to at least 8 of them so far, all told me they don’t have free Wi-Fi. There are other coffee shops that do, such as Wawee Coffee, but you usually only get 1 hour free for each drink …

Error message when plugging in USB drive: "Unable to mount Filesystem" on Ubuntu 12.04

March 4, 2013

Error Message:

Unable to mount 65 GB Filesystem

Error Mounting: mount exited with exit code 13: $MFTMirr does not match $MFT (record 0).

Failed to mount ‘/dev/sdb1/’: Input/output error

NTFS is either inconsistent, or there is a hardware fault, or it’s a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first… …

Dell XPS 13 laptop won’t turn on, LED lights not working [SOLVED]

February 1, 2013

Yesterday morning I was using my Dell XPS 13 ultrabook and as usual, I closed the lid when I was done which puts the laptop on standby mode. Then 2 hours later, I went to a café to do some writing but when I tried to turn it on nothing happened! I pressed the battery indicator on the side to see how much battery was left and no lights showed up. I was pretty sure …