Blog / Linux

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! …

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… …

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 …

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 …

Migrating WordPress from a shared hosting environment to a virtual private server

November 9, 2011

I was migrating this WordPress blog early this morning from Bluehost to a dedicated Rackspace Cloud Server that I’m already using for a web application I’m writing. It was almost painless! Just ran into a few minor post-migration issues.

The reason I’m migrating is mainly because I want more control, like being able to use my own self-signed SSL certificate without paying extra, for example. I figured since I’m getting very low traffic it really …