Getting All the Email Addresses Out of Your Database, Even From Different Tables

A customer asked me again this week to get them a list of all the email addresses from their web site.  This site has about a dozen different forms, all of which store email addresses, and all of which are stored in separate tables in the database.  Some of these forms even collect multiple addresses, [...]

Kubuntu 8.04 and KDE Window Placement – Again

Well, a new version of Kubuntu has come out and again they’ve changed the default place that windows open.  Last time it was the “Active mouse screen” issue and now it’s cascading.  Some people may like cascaded windows, but I’m not a fan.  To get KDE back to opening new windows in the least used [...]

Ubuntu 7.10 and "Random" Disconnects with Your WPA2 Wireless Connection

I began noticing that my wireless connection was having issues a few weeks back. I have a Broadcom BCM94311MCG (43xx series) mini-PCI card in my laptop and I’m running Kubuntu 7.10. The symptom was pretty benign, I would lose network connectivity for short periods but it would restore itself in a few seconds. I began [...]

Accessing Your NFS Music Share At Startup

If you use Amarok (best music player ever) and you have an NFS server that you store all of your music on you’ve probably experienced the pain of starting up Amarok before you mount your share. Now your entire collection is wiped out and you’re going to have to wait for it to rebuild. It’s [...]

Enabling SCHED_ULE On Your New (Rockin’) FreeBSD 7.0 Install

As always you should RTFM. In the case of FreeBSD and kernel building and installing TFM is here: The FreeBSD Manual, Section 8.4 So on to the good part. If you’re like me the biggest reason you’re moving to FreeBSD 7.0 is the speed. Speed, glorious speed. You may have installed it and thought to [...]

Subversion Is Case Sensitive, But Windows? Not So Much.

This comes as a kind of “duh” moment, but what happens when you use a case-sensitive version control system on a file system that isn’t? Well, nothing unless you change the casing of a filename. Then you run into some issues. While upgrading a project recently a filename was changed from “Web.config” to “web.config”. Without [...]

Removing ^M Characters from Text Files, Revisited

Several people read my original article on removing ^M characters from text files created on Windows machines and felt the need to comment on how their way is better than mine. So, in the interest of full disclosure, let’s discuss some alternative methods. Using ViM ViM supports batch mode across files. Thus you can apply [...]

Removing ^M Characters from Your Unix Text Files

The files you just uploaded to your server are a mess. The original author used a Windows machine and now they all look like this: ?View Code BASH#header div {^M padding-top: 50px;^M }^M #header div a {^M font-size: 24px;^M color: #fdfdfd;^M font-weight: bold;^M …and so on. If you’re like me you’ve found a few hundred [...]

Ubuntu and nvidia-settings: How to Make Those Settings Reapply Themselves Next Time

You’re running Ubuntu (or Kubuntu, or Xubuntu, or Edubuntu, or…) and you have an NVIDIA video card. You have the binary NVIDIA drivers loaded and you’re using the nvidia-settings applet to configure your video settings. Everything works great. Then you log out or reboot. When you come back in those settings are all gone until [...]

Coolest Simple Plugin of the Day: WP-PostViews

*Note: I’ve since quit using this plugin because the post counts never expire.  This caused my oldest posts to be shown as my most popular posts, which is clearly incorrect.  I’ve written the Recently Popular plugin to correct this. WordPress has no shortage of plugins. This one is one of the ones that is a [...]