Does college matter?

July 16th, 2005

I came across this blog entry today and found it to be an interesting read with a lot of good points. I thought it especially salient for me since I never finished college and have considered whether or not to finish my undergrad education. I do have an opportunity for tuition reimbursement now, so it’s a good time to act provided I can come up with enough scratch for tuition and books prior to being reimbursed. I just don’t know if I really want to.

I like learning. The thing is, I’ve become something of a renaissance man mostly through self study; the thought of specializing in just one thing fills me with dread that I’ll be locked into learning only that for an extended period of time. I’ve always just followed my interests as I come across them, and that’s led me down a winding road so far, through creative writing, music performance (on several instruments), music production, network administration, programming, graphic design, and photography.

I’m a very much a do-it-yourself kinda guy, which is how I end up learning so many different things; one interest naturually leads into another, and I just have to know all about how it’s done. At this point I could write my own music, record my own album, and design a dynamic website to promote it and also distribute the content. I could write my own book, set the type, design the bookjacket, and promote it with my design and computer savvy. With some more experience (and money), I could start a recording studio. I even have a backburner idea for opening a coffeeshop with a friend of mine that could potentially fulfill all of my interests.

So the learning part is no problem. My biggest stumbling block tends to be doing; I’ve learned all these wondeful things, but I haven’t really done too much with them beyond the dayjob, which tends to consume most of my energy by the end of the day. What I really need to do now is to sit down and actually create something so that I have some tangible accomplishments I can point to. Maybe college will fit in as a vehicle for learning the business end of creativity so I can make my interests my dayjob and continue creating things. Or else find a way to get paid for learning.

Food for thought.

Podcasting from Real and Windows Media Player sources

June 23rd, 2005

So I’ve had an iPod for a few months now, and it’s been absolutely great. I use it all the time at work and in the car. I’ve brought it along on a couple trips up north and it was quite useful for the car rides. I also got a little use out of it on the plane to and from Nashville the other month. Oh, and I *love* album shuffle.

iTunes is also great. It’s the best software for organizing a collection of music, without a doubt. The only place it — and the iPod — seem to fall short is in compatability with other audio formats: Apple doesn’t do Real, and it certainly doesn’t do Windows Media Player.

I’ve gotten along without these abilities fine for awhile now, but I’ve been hearing more and more about podcasting lately, and I finally had the great idea that I wanted to listen to a favorite NPR radio show of mine, Car Talk, on my iPod since I’m never able to catch it on my local affiliate in Philly. More than anything else I just want to timeshift the show so I can start listening to it again, but having it on my iPod would be even better.

Unfortunately, I discovered that the free weekly stream is in RealPlayer format only. Can’t do it. Or can I? Open source to the rescue!

The idea is simple enough. In order to get Car Talk on my iPod, I need to convert the Real stream to mp3 first, then I can just treat it like a normal audio file. So I did a little googling and arrived at a solution that Works For Me © on OS X.4. I assume some knowledge of the terminal and UNIX.

First, I needed to setup the tools to get the job done. mplayer will handle capturing the stream from the network, and lame will convert that data to an mp3 on my disk. On the way, we’re going to need DarwinPorts and RealPlayer.

I tend to prefer to compile these open source apps myself whenver possible, so I compiled lame using DarwinPorts, though I’m sure a binary library is available somewhere. Install DarwinPorts and make sure to add /opt/local/bin to your environment PATH. Once DarwinPorts is installed, you’ll want to update its program and update the portfiles as well:

sudo port -v selfupdate
sudo port -v sync

Now we’re ready to compile lame:

sudo port -v install lame

Unfortunately, I wasn’t able to compile mplayer from DarwinPorts with Real support myself. I had a lot of trouble finding sources I could compile on PPC for the Helix codecs, but by way of google I found that there is an mplayerosx project out there with precompiled binaries that can make use of the codec bundles inside RealPlayer.app. We’re only interested in the most recent command line binaries from the mplayerosx SourceForge site, labeled ffmpegX. Download and copy those to /opt/local/bin. Also download and install the RealPlayer.app from the Real website.

As of this writing, this precompiled copy of mplayer is hardcoded to look in /Library/Application Support/ffmpegX/reallib/ for the Helix codecs. A little UNIX-fu will create a symbolic link from that location to the bundles inside the RealPlayer.app.

sudo mkdir -p /Library/Application Support/ffmpegX
sudo ln -s /Applications/RealPlayer.app/Contents/Frameworks/HXClientKit.framework/HelixPlugins/Codecs/ /Library/Application\ Support/ffmpegX/reallib

That’s it. Now we just need a stream and a shell script to glue everything together. My script is fairly unsophisticated at this point, but it seems to get the job done. Copy it (below) to a file and make it excutable (chmod 775 stream2mp3).

You’ll also need to find a stream. Car Talk is a little unusual because it’s a playlist consisting of several streams played in sequence. Unfortunately, when lame encounters the EOF at the end of the first stream, it quits, so I have to keep editing the playlist file to remove the topmost stream address until I have them all. For other streams, such as Princeton University’s WPRB, it seems to work fine.

#!/bin/sh
# usage: stream2mp3 infile

for file
do
	# Create a named pipe
	if [ -e /tmp/stream2mp3 ]
	then
		rm -f /tmp/stream2mp3
	fi
	mkfifo /tmp/stream2mp3

	# Setup listener
	lame -h -brief –id3v2-only –tt ” –ta “$1″ –tl `date “+%Y/%d/%m”` \
	–ty `date “+%Y”` /tmp/stream2mp3 “$1″_`date “+%Y_%m_%d__%H-%M”`.mp3 &

	# Stream audio to listener
	mplayer -playlist “$1″ -prefer-ipv4 -vc dummy -vo null -speed 1 -ao pcm:file=/tmp/stream2mp3

done

# Cleanup the named pipe
rm -f /tmp/stream2mp3

Download your .asx or .ram (or other stream playlist) to a file in the same directory as the scrip and invoke it as an argument to the scrip. If you’re trying to convert a file and not a stream, get rid of the -playlist option for mplayer. Silence lame output with the -S switch rather than -brief. Specify higher encoding quality by replacing -h with -q x where x is between zero and two, zero being the highest quality.

Now with a little cron magic I’ll be able to timeshift some of those radio shows I keep missing and play them back on my iPod in my car at my convenience.

Rawk!

When the moon hits your eye…

June 20th, 2005

I’ve always been fascinated by the illusion by which the moon appears larger than normal when it’s low on the horizon. Apparently this week will be the best time to see this because of moonrise occuring at dusk on the longest days of the year.

More details here.

And remember to keep … looking … up!

Yo’ momma so fat…

June 18th, 2005

From the sudoers man page:

insults — If set, sudo will insult users when they enter an incorrect
password. This flag is off by default.

I think I have to edit my sudoers file now. :)

Cooking Experiments #10 and #11

May 1st, 2005

After about a year of not really trying anything new with cooking, I finally tried a couple new things this weekend. This is due mostly to my buying three new cooking books from the bargain section of Barnes & Nobles recently: one vegetarian, one asian, and one low-fat cooking.

Yesterday the girl and I went on a shopping spree for ingredients and equipment for two different recipies. We bought fixings for a spicy chicken stir fry and some things for a strawberry banana smoothie. The girl also bought a stir fry pan and a blender. I’m actually jealous of her blender because I think the controls are well designed and easier to use than mine, plus it has a nifty food processing attachment.

I have to say, the stir fry turned out pretty well. The chicken was tasty and the veggies were still crisp. I’m betting the leftovers will taste even better since the flavors will have had time to mix.

The smoothie I was less pleased with. It was okay, but the strawberries we got from Trader Joe’s weren’t as flavorful as the ones I’ve been getting recently from my local produce store; they were mostly straw and not much berry. Plus I think the recipie called for a bit too much yogurt and not enough oatmeal. I think I’ll give it another try when the strawberries are nice and juicy later in the season.

Now comes cleanings #10 and #11….