Retiring Old Websites

Sometimes all good things come to an end. There aren’t too many links going into either of these sites, but I’d like to redirect all of them to a page on my blog saying the website doesn’t exist anymore. I’ve already created simple screendumps for nostalgic purposes with the Firefox plugin Screengrab!, so the remaining simple server-side steps are: Edit the DNS records from the live server to the server with the notice page is on. Create a new vhost on the server the notice exists on, add old websites as ServerAlias. Add a redirect in the vhost to the notice about the retired sites. Reload apache config. The below vhost entry will redirect any link to the retired sites to the notice …
Read Retiring Old Websites

Reduce Bandwidth By Shrinking Images

A friend has a simple WordPress-based website that I set up for him a few year ago - and he likes to post a lot of images. For various reasons I have it hosted on my VPS in Australia, which only comes with 15GB of bandwidth, most likely because I got a crazy good deal on it. The problem is, that isn’t much bandwidth. Each page of his site was previously using almost 10MB of bandwidth per view - which meant the 15GB was running out. I deduced the high usage in Firebug and noticed it was gasp from large images, some almost 1MB large. The images on the server are contained in subdirectories under a gallery folder - and I wanted to resize them. What I actually wanted to do was:
Read Reduce Bandwidth By Shrinking Images

Vortex86DX Instructions from ICOP

Alexandru T. and I have exchanged a few emails, and he sent through a few helpful suggestions that were provided from ICOP. I have included them below. Thanks Alexandru! Install Debian 5.0 on a normal PC (using a netinst image, for minimal install) After installation boot normally from the same PC Then, take the kernel from ftp://icop.com.tw/DIS_info/VDX/operating_system/VDX_Linux/linux-image-2.6.30-vortex86mx_1.0_i386.deb and then issue the following commands : # dpkg -i linux-image-2.6.30-vortex86mx_1.0_i386.deb # update-initramfs -k 2.6.30-vortex86mx -c # update-grub # restart Then take the hard-drive and install it on the Vortex86DX When GRUB menu appears, press “e” and modify the boot loader as …
Read Vortex86DX Instructions from ICOP

Lenny on Ebox 3310A

As a preface, I take absolutely no credit for the below instructions. Stefan L kindly sent these through these instructions on installing Debian on the 3310A. I need to send a special thanks to Stefan, as I receive a lot of emails about the 3310 - but I don’t have one, so I can’t really do much: The only edit I’ve done is change out the links to my files on S3. If you find these helpful, or want to suggest an alteration, please leave a comment.
Read Lenny on Ebox 3310A

New Atheros Module and Ubuntu

I’ve been using Atheros for quite some time, and I’ve always liked the madwifi drivers. They allowed really easy switching into monitor mode, and decent levels of packet injection. However, since I’m mostly in an office now, instead of writing web apps in cafes and trying to score free internet, I don’t really need anything fancy. My gentoo stage 1 (3?) days are over. I use Ubuntu, because I’m lazy, and it mostly works.
Read New Atheros Module and Ubuntu

Remove Dead Tags

I’ve noticed my django-tagging install has been giving a lot of empty entries when doing a lookup on a tag. Tonight I finally got around to looking at what was causing this. This is surely not the best way to do this, but at 12:00am on a weekday, well, I shouldn’t be doing it in the first place… I first wanted to see what type of content was generating the error:
Read Remove Dead Tags

Simple Arduino + LED Tutorial

For this you’ll need: an Arduino, an LED, a USB cable, and the Arduino software. Get the LED, and plug it in to your Arduino. Plug in the long end to pin 13, plug the short end to the GND. Plug in the Arduino into your laptop. Go to Tools->Serial Port. Choose the USB port that appears. Take the code from the BlinkingLED tutorial and paste it in to the arduino like so:
Read Simple Arduino + LED Tutorial

ISO Code Error

I’ve received this error a few times when working with pytz: Error reading file '/usr/share/xml/iso-codes/iso_3166.xml' In short, install the ‘iso-codes’ package in Ubuntu/Debian. I’m sure this is covered in the manual that I didn’t read, but I’m sure others didn’t read it too. apt-get install iso-codes
Read ISO Code Error

Installing Debian 5.0 on Vortex86DX

After writing about compiling a new kernel for the Vortex86DX, I’ve had quite a few people email me asking how I installed Debian in the first place. The installation is actually quite straightforward, but it involved several quirky techniques. After doing another install I decided to keep track of the process of installing Debian 5.0 on my eBox-3300. The following guide assumes a few things. First, you are currently using Linux and a debian variety (although instructions could be altered if using Windows). Second, your USB shows up as /dev/sdb. Third, your eBox-3300 has the HDD set in Native mode. Forth, you are patient.
Read Installing Debian 5.0 on Vortex86DX

Fixing locale errors in Ubuntu 8.04

I’ve hit this problem a few times, and figured I’d leave a note for myself how to fix it. Ubuntu 8.04 seems to hiccup sometimes (on a VPS) for generating the correct locales. In particular, I get this error, a lot: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Normally I just do ‘dpkg-reconfigure locales’, but with 8.04, this doesn’t seem to do squat. The solution is to edit the /var/lib/locales/supported.d/local file, and insert the correct locales (it will …
Read Fixing locale errors in Ubuntu 8.04