September 2010

Regular Expressions are always fun, right? They're useful anyway. I find myself using them in Eclipse often. Today I had a bunch of lines that looked like this:

$categories[33] = 32; // Global Citizenship
$categories[34] = 33; // Road to the Capitol
$categories[58] = 34; // Weekend Outlook
$categories[70] = 720; // Community Calendar
$categories[78] = 116; // The Big Read
$categories[71] = 117; // America's National Parks
$categories[53] = 30; // Studio Live Call-In
$categories[51] = 118; // National Day of Listening

Since football season is rearing up again, and since I don't have cable anymore, I decided I should finally invest in an antenna for my TV. After all, $30 - $50 for an antenna is a lot better than $500/year for cable.

I purchased a Phillips indoor, amplified antenna. You have to plug it into a power source, but I hoped it would add some extra umph. It boosts both UHF and VHF.

So I plug it in, get it setup, and I finally have some channels! Woohoo. Except that only a few channels are coming in, and they're only UHF stations. For instance, KOLR-10 (CBS, a VHF station) is being recognized as a channel, yet getting zero signal strength. Even pointing both antennae east (the station is 85 degrees from north from my apartment) resulted in no change.

iPhone Emoticons!

How did I not know about this??

Do not pay for this!

It's really simple and very free. All you have to do is download the app called Emoji Free. Once you have the app, go into it and press the only button on the screen. Once it does its thing, leave the app and go to Settings -> General -> Keyboard -> International -> Japanese -> turn on Emoji.

Once the keyboard is turned on you can toggle between your regular keyboard and the Emoji keyboard while you're text messaging!

I'm assuming that you're using the OpenPublish distribution to do this, but it won't be too different if you're on a vanilla Drupal installation. If you want to add the NPR audio file as an embedded file, you'll want to grab the Media: National Public Radio module (incidentally, I'm now a co-maintainer of this module!).

As a word of warning, read the NPR API terms of service carefully before doing this. I was able to legally pull NPR stories into my database and display them on a website because my organization is an NPR member station.

Getting breakpoint debugging installed for PHP is a mess. It really is. If you're coming from Java, you know how simple it can be with Eclipse. That's not the case with PHP, which seems to be a complete reversal, since Java is usually difficult to setup and PHP is usually simple.

This guide is specifically for XDebug, Eclipse, PDT, Drupal, and Ubuntu. If you're not using Drupal, just cut out that extra step. If you're on Windows, the process is 99% the same (and I've just verified this process does work with Windows 7, the major difference is XDebug installation).

New website

Getting my site going again. This time I'm using Drupal to handle everything. Exciting!

In the past I've made everything from scratch. My site used to be located at www.mycaldur.com. I created a blogging engine and custom forums, just because I guess. I was of the opinion that I didn't like using other people's code. Boy have I gotten over that problem. I learned the valuable lesson that there's no sense in reinventing the wheel.