Programming

Writing a new CMS

Posted by Stephen on February 28, 2007 in Programming

Tonight, I’ve taken the first steps towards ditching WordPress and rolling my own custom CMS. I’ve wanted to do this for a long time, and I’ve always dismissed it on the grounds that it’s too much work and time, and that there’s already a ton of blogging software out there. But the truth […]

Cool Python Function

Posted by Stephen on October 3, 2006 in Programming, Stuff

I’m not sure that others would find this interesting, but I’m posting it anyway in case I need this later. While working on a Python script, I needed something that would generate the proper suffixes to make ordinal numbers like 1st, 2nd, and 3rd. Since some markup schemes allow you make the suffix […]

NOAA’s Weather Feeds

Posted by Stephen on September 25, 2006 in Programming, Stuff

For a project at work, I need to provide a constantly-updated weather forecast of a certain area in Northern Minnesota. I was pleasantly surprised to learn that The National Weather Service provides this information for free in XML format. Unfortunately, accessing it is kind of a pain. I would like to be […]

Apple’s open(1) Command

Posted by Stephen on September 7, 2006 in Computing, Programming, Stuff

I really like OS X. In particular, I like its open(1) command. I seriously wish that Linux and BSD had something like this. Basically, you type open <filename> and that file is handled as if you had double-clicked it. This command is so useful and convenient that I can’t remember what […]

Simple Programming Exercises, Part III

Posted by Stephen on May 31, 2006 in Computing, Programming, Stuff

I’ve heard that, in some job interviews, people have had to write a function that determines whether a string is a Palindrome. I don’t know whether this is true, but I thought it would be a good practice exercise. My C function operates on the following assumptions: The string is just a regular C-style […]