KPSU

Getting busy

I do so much better when I've got a full schedule. When the day is wide open it's so easy for me to just put things off. The two big time eaters are school starting up, and buying a house with Etta and her mom. School's the normal pain in the ass, but with only two semesters left it's easy to be motivated. The house has been cool because I'm learning a bunch.

Downloading Democracy Now! automatically

Here's a PHP script I wrote for the radio station to download each day's copy of Democracy Now!. This requires that the PHP cURL extension be installed.

KPSU on Drupal 5.0

Today I finally broke down and upgraded the KPSU site to Drupal 5.0. I wasn't too worried about core, I've been running 5.0 on this site since the feature freeze and I'd setup DeFordBailey.info and spannerbicycles.com a couple months back. My big concern was with the contrib modules. I'd done a couple of test upgrades over the last month and found plenty of bugs but today was the first one where most things seemed to work. So I made a back-up and said what the fuck. After the upgrade I only found one critical bug. There's plenty of tweaking to be done in the next few weeks but now I can start hacking away at access modules.

Things I never remember when reinstalling FreeBSD

I totally whacked the KPSU archive machine today. It's one of those standard stories of being stupid and then being in a rush to compound it. So now I'm building a backup machine to stand in while try to rebuild the archive.

Learning from my mistakes:

  • sysinstall is a handy pistol. Use it to shoot yourself in the foot.
  • dd is your best friend, provided you've got extra disk space. You just make an image of drive you've sort of fucked up and then you can restore back to that image when your troubleshooting go wrong.

Drupal Station Module

Working at KPSU I did a lot of work to build a database driven schedule and web stream archive. After I migrated the website to Drupal I packaged up the custom code I'd written and released it as the station module. The part I'm probably proudest is the archive. It uses StreamRipper to save an hour-long MP3 of each show and then imports them into Drupal as audio nodes.

One of my primary with the station module has been lowering the barrier for other college stations to get on the web and make their shows accessible on the internet. There are several commercial and college stations using my code. You can find links below.

for you, a photo

cliche and a bad photo to boot

ads

User login

Syndicate content