"Unfortunately there is nothing we can do." - Tucows (OpenSRS)

There is a problem with the Tucows (OpenSRS) DNS system. The issue could be with the web-based interface, the business logic that drives the web interface, or possibly a critical failure in the system itself. Regardless of the source the technical support staff were unable and/or unwilling to take the necessary steps to resolve the issue at hand.

Install the Latest Git version in Ubuntu

I am in the process of migrating from Subversion to Git for all of my projects and needed a way to install the latest version of Git in Ubuntu. There are many excellent resources that I have combined in this howto. I will be installing Git from Launchpad.

The first step in installing the latest version of Git is to tell apt where and how to get Git. These instructions are for Ubuntu Hardy Heron 8.04 LTS and will also work on later versions. Note that since Ubuntu 9.10 you can use the "sudo add-apt-repository" method to add the latest version of Git to Ubuntu. Create "/etc/apt/sources.list.d/git.ppa.list" and add the following lines (note that you can skip the deb-src if you do not need the Git source):

Telus, Ubuntu, and USB Cellular Modems

Over the past four months I have installed and configured twelve Dell Inspiron mini 10 netbooks with Ubuntu 9.10 (Karmic Koala) Netbook Remix. The netbooks are connected via USB cellular modems from Telus. During the process of ordering and configuring the cellular modems I received three different modems:

  • Sierra Wireless USB 598
  • Sierra Wireless USB 306
  • Huawei E182E

Overall I managed to get all three USB cellular modems working with Ubuntu 9.10 (Karmic Koala) Netbook Remix. I ran into a few technical issues that I overcame and have had great success with all three cellular modems.

Installing Boxee on Ubuntu 9.10

First you will need to install the following packages that Boxee needs to run, launch a terminal and run the following command:

sudo apt-get install libcurl4-openssl-dev libglew1.5 libsdl-gfx1.2-4 python2.4 python-sqlite libfaad-dev libtre4 xsel libmysqlclient15off libxmlrpc-c3 libsdl-gfx1.2-4 libcurl4-openssl-dev

To install Boxee on Ubuntu 9.10 first download Boxee from here (32-bit) or here (64-bit).

MySQL, PHP, Apache, and UTF-8 Issues

UTF-8 is hell. I have run into problems with UTF-8 before (see Migrating MySQL to UTF-8 encoding).

I moved a site that was displaying fine from an old Apache server to a new Apache2 server and quickly identified that the Apache2 server was displaying odd characters.

The site is running a PHP application with a MySQL backend. The MySQL database is using latin1_swedish_ci character encoding. The old site was displaying correctly. Both the new and old site are using the same database.

So what was going on?

Configure Exim to use Gmail as the SMTP Server

Configuring Exim to use Gmail as the outgoing SMTP server is simple. This HOWTO will walk you through installing, configuring and routing email thru Gmail for exim.

The first step is to install exim4. Launch terminal and:

sudo apt-get install exim4

Run the following command to configure exim4:

sudo dpkg-reconfigure exim4-config

Set the following:

General type of mail configuration: mail sent by smarthost; no local mail 
System mail name: (default)

Sierra Wireless USB 598 (Telus), Ubuntu 9.04, and Dell Inspiron Mini 10

The Sierra Wireless USB 598 currently offered through Telus *almost* works on Ubuntu 9.04 out of the box. A Windows or Mac box is needed to install the "Watcher" program that allows for the automatic online configuration of the Sierra Wireless USB 598. Aside from the requirement of Windows/Mac the card was immediately picked up and ready to go.

'No space left on device' Issue With vserver

I was running into an issue with a vserver where the disk space usage was at 23% but I was getting a 'No space left on device' error message. I run vserver with 12 virtual servers and none of the other servers exhibited the same behavior.

Debugging PHP Tip: Using the __FILE__ Magic Constant

Recently I came into a situation where a former employee had used a gateway marshaling concept and created multiple directories with the same file names (eg. www/admin/index.php. www/admin_v2/index.php). Debugging the code became problematic due to long filenames when using __FILE__. The long file paths were polluting the debug output and making it difficult to read.

I wrote a little function to return the file path based on a root directory specification. For instance if the script filename (aka __FILE__) is '/really/long/and/hard/to/read/path/www/index.php' the function will return 'www/index.php'.

This is useful for debugging calls (I use PEAR::Log) when using techniques such as:

$thisFile = getFile(__FILE__);
$log->debug($thisFile.': initializing page');

module-alsa-sink.c: Error opening PCM device front:0: Device or resource busy

I ran into an problem with sound on a Dell Inspiron 518 workstation running Ubuntu 8.04. I had paused Amarok and then viewed a Flash video on youtube. When I went to play Amarok again Amarok stalled and hung there. I had to kill the amarok process to shut it down. The syslog gave up:

pulseaudio[29142]: module-alsa-sink.c: Error opening PCM device front:0: Device or resource busy
Syndicate content