September 2007 Archives

One of the rotating taglines in the subtitle of this website is the line that is the title of this post: "You're tuned into Perfecto Radio, New York City, Miami, Los Angeles" Perfecto Records A few weeks ago, I receive and email from someone wondering which Paul Oakenfold record it comes from, because my link simply pointed to the Wikipedia page for Perfecto Records; apparently my site is the only hit on Google when you search for that phrase. For the life of me, I couldn't remember, nor was I able to find it in a cursory search of my Oakenfold albums, which I informed the questioner. I recently got a response and it turns out the line is at the beginning of the Chilled Eskimo's Take Me Away on Oakenfold's Perfecto Presents Another World. Now this answer is forever recorded on the internet for all to know.

Just listening to this album again and at the end of Tatoine's Music a similar phrase is said, "You're tuned into Perfecto Radio, Chicago, Detroit, Seattle."

I came across this on the Verizon billing page today when entering my account number: FIOS Account Number

I don't know why they print all that extra jazz on either side of the account number, there's probably a good reason, but why tell me that I should exclude some of it, particularly when the entire thing is labeled "Account Number"? Is it really beyond their abilities to cut 6 characters off the beginning and 2 off the end of my input? Beyond that, if they want to use the inner subset of numbers as the account number, could it at least be labeled properly on the bill?

This reminded me of nonsense from the Arlington County Library page: Arlington County library online

Their web application ought to prepend "2020" to what I enter; the user simply shouldn't be bothered with this.

Great Chefs

| No Comments | No TrackBacks

If you watch a lot of Iron Chef, like I do, then this is quite funny:

[youtube]QdroyuTXYRU[/youtube]

I was having trouble with my Nortel Contivity VPN client disconnecting giving an error message, "The routing table cannot be altered after the Contivity VPN Connection has been established. The Contivity VPN Connection has been Closed." This would happen after 10-20 minutes of being connected and would cause all of my SSH sessions to drop, which made it hard to get work done. After some searching, I found the solution to my problem, a simple registry addition. I added the DWORD named "PerformRouterDiscovery" with the value 0 to the key "HKEY_LOCAL_MACHINE_SYSTEM\CurrentControlSet\Services\Tcpip\Parameters". After rebooting, the VPN works without the random disconnects. Download this .reg file and run it to add the aforementioned key.

I use VMware to run a virtual Windows machine for my company's VPN and the occasional game of Starcraft. When I moved and switch from a wired network to wireless, the device with which I connect to the internet changed from good old eth0 to the new-fangled ath0. VMware was setup to tie its virtual interface for bridged networking to eth0. Since eth0 no longer has a network connection, the virtual machine lost the internet as well. To fix this, I had to open /etc/vmware/locations and change the reference to eth0 to ath0. The virtual interface that I use is vmnet0 so the line in the file referenced VNET_0_INTERFACE. Simply changing that line and restarting the VMware backend (/etc/init.d/vmware restart) fixed everything.

EXMAP on Ubuntu

| 1 Comment | No TrackBacks

EXMAP is a shared memory analysis utility that makes it easy to determine exactly how much memory a process is using. Unlike top, which counts all memory shared amongst programs toward each of those programs, EXMAP gives three numbers most notable of which is "Effective Resident" memory usage. This number is the amount of memory mapped directly by a process, plus a portion of any shared memory pools it is part of, that is, the program is only counted as using an equal portion of shared memory as all other processes that are sharing the same.

On my system, both Gaim (Pidgin my foot) and Evolution are using aspell. In top, they are both responsible for libaspell.so in its entirety, contributing 672K to each of their displayed memory usage. EXMAP puts 338K towards Gaim and 334K to Evolution, a much more accurate tally, since only a single instance of libaspell is actually in memory, shared by the two other processes. From my quick testing, it seems that subsequent users of shared memory take the larger share, 4K more in Gaim's case, since I started it after Evolution. If I close Gaim, Evolution is then credited with the entire 632K of memory that libaspell occupies.

So, on to installing EXMAP which certainly isn't hard, but requires a kernel module which makes it non-trivial. First, use apt-get (or really, it's better replacement aptitude) to install EXMAP, the required kernel module source and the stuff you'll need to build said module:

sudo -i
aptitude install linux-headers-$(uname -r)
aptitude install module-assistant build-essential
aptitude install exmap exmap-modules-source

Then, build the EXMAP module:

module-assistant prepare
module-assistant update
module-assistant build exmap
module-assistant install exmap
depmod
modprobe exmap
echo exmap >> /etc/modules

module-assistant automatically compiles and installs the module against the kernel headers that aptitude installed in the previous block and depmod calculates the dependencies amongst all modules, including the new EXMAP one. modprobe installs the new module into the kernel and adding its name to /etc/modules ensures that it will be ready next time your system restarts as well. Once all that is done, you can run gexmap.

An SSH tunnel is a great way to quickly setup a secure method for browsing the web from an unsecure location, such as a public wireless network. All you need is a machine running an SSH server. I setup a tunnel from my Mac OS X laptop using the following command:

ssh -C -D 7070 dinomite.net

This sets up a tunnel, locally accessible on the laptop on port 7070 (-D 7070), that sends any traffic through the encrypted and compressed (-C) SSH stream to the server, where it is spit out onto the net as normal. To use this tunnel, I simply instruct Firefox to connect via a SOCKS proxy on port 7070:

Firefox 2 Advanced Settings Window Firefox 2 Proxy Settings

Many other applications, such as Adium, support SOCKS proxies and can be set up in a similar way to send their traffic to port 7070 and take advantage of an SSH tunnel.

Since we're going all-wireless in my new house, I had to setup my Ubuntu machine with a wireless card. All of the slots on the computer are filled, so I grabbed a Linksys WUSB54G USB (hence the model number) adapter. Installing it required some terminal work, unusual for Ubuntu. This thread gives a somewhat cryptic outline of the steps required to get the card working and following them requires a bit of Linux experience. For the unexperienced, read on.

After plugging the card in on my Feisty machine, it came up in the network manager (System > Administration > Network) but wouldn't connect to any networks, be they open or encrypted, G or B, nothing. So I retreated to the interwebs and found that ndiswrapper was the solution to my problems. To begin, install ndiswrapper-utils-1.9:

~$ sudo aptitude install ndiswrapper-utils-1.9

Then, download the latest driver from the Linksys site, unzip it and find the WUSB54Gv4 directory under the Drivers directory. Run ndiswrapper -v and check to make sure there aren't any errors. Then, install the new Linksys driver.

~$ sudo ndiswrapper -i rt2500usb.inf
utils version: 1.9
driver version:        1.38
vermagic:       2.6.20-16-generic SMP mod_unload 586
~$ sudo depmod -a
~$ sudo modprobe ndiswrapper
~$ sudo ndiswrapper -m

You have to blacklist the standard kernel driver so that it won't override the ndiswrapper driver. To do so, add the following to the end of /etc/modprobe.d/blacklist:

# WUSB54G driver
blacklist rt2570

Then, restart your machine and you should be able to configure wireless using the Gnome GUI tools.

Pages

About this Archive

This page is an archive of entries from September 2007 listed from newest to oldest.

August 2007 is the previous archive.

October 2007 is the next archive.

Find recent content on the main index or look in the archives to find all content.