Project: Radio DJ Automation

If I earned a nickel for everything I’ve ever created that no one else cares about I’d probably be about to earn another nickel with this next post.

Anyway, one of my many pet projects has been setting up a private internet radio stream.  I actually toyed with the idea for a bit of building a small FM transmitter and going full on Pirate Radio but I decided that the current state of media doesn’t necessitate the need for radio waves when the internet is right there just waiting with a much broader reach.  The real issue is that it mostly just reaches me.

The nice part is, I don’t really mind.

I plan to put up a little page for Lameazoid Radio, but I’m still fleshing out the details.  A few people know the URL of the stream (hint: stream DOT) but I have no idea if they remember it and I doubt anyone listens.  I suppose the question is, why would anyone want to listen?  Can’t you get the same thing from your iPod?

This question includes myself.  Wouldn’t it be more beneficial to just load up the iPod and let it rip?  I do have some answer to this.  For example, my iPod isn’t large enough to hold my entire music library if I want it to.  It also is incredibly poor at shuffling music in a meaningful manner.  The Radio Automation software I’m using lets me sort things into nice themed play rotations.  i can interject little funny clips in at intervals as well to help break up the flow. 

I also run a lot of Podcasts.  The problem with using the iPod for Podcasts is that when it’s in my iTunes library, waiting to be played, I feel obligated to listen.  If it’s out of my control and playing on it’s own I can forgive and forget the playout if I miss one or come in partway through and leave early.  It’s expected I guess with radio that I may miss something.  It’s basically a subtle psychological point that works behind the scenes.

Anyway, I’ve managed to work the kinks out of the automated updates on Podcasts which leaves a few other projects that I want to implement on the table. 

First, I need to record some promos.  I want to make a few music based tags and a few others promoting the shows on the stream.  This basically requires time and a microphone.

Second I need to finish fleshing out the lineup.  I want to run new shows 7 days a week at 4 and 7.  I’ve got both slots about half filled now.  I also would like to find another short bit repeating news segment to compliment Tech 5 which plays every hour where there isn’t a show right now.

I also need to come up with something for the over night.  It’s likely no one will ever listen in the overnight so just running music all night is the easiest bet but I do like the idea of having some sort of “programming” there.  I’m thinking of pushing some audiobooks or something for lengthy periods but missing part of an audiobook is worse than missing part of a podcast.  I’m also thinking of compiling together my longform Techno mixes and running those.  Also possible some concerts in order.  Basically I’m looking to run longer blocks of related content in the overnight.

Thirdly i want to add Live Reporting.  I’ve set up Skype on this PC with auto answer for known callers.  This means i can call in and it’ll pick up.  Right now doing this kills the stream audio and it doesn’t return.  I have some software (freeware) that I believe I can use to create a gate that will shut off the stream when a call comes in and then resume it afterwards.  This would mean if I wanted to do “live reporting (to no one) I could call in through Skype on my phone.  Or better yet, if say, the GNR crew wanted to broadcast live they would simply call into the Skype and it would play.  On top of this I want to set up Skype to auto record and possibly auto rotate these short news bits.

Finally, at least on the list now, is to set up an automatic “now playing” Tweet.  I’m not sure the best way to accomplish this yet though the software does support a now playing.txt that is used by Icecast to set the title.  What wil be more likely is I’ll set up timed tweets for the time each show starts, like on @lameazoid.

Automatic Updating of New Podcasts with Radio DJ

That has to be one of the lamest topics I’ve ever made for a blog post but it’s at least descriptive.

This is a short guide for users of the Free RadioDJ software who want to automate the process of adding new podcasts to the rotation.  This is mildly complicated but not overly so and it does require the use of outside programs to make it work.  For this example, I’ll be using the NoAgenda podcast.

The first thing you’ll need is a pod catching program.  I use gPodder but if you have a preferred alternative you can use whatever you like.  The key here is that the program needs to download the files into one regular location that you can reference with some batch files.

For those who are less familiar with the old school DOS environment and batch files, basically, a batch file, or .bat is a file which contains command line commands which will be executed in order.  It’s similar to making scripts in Linux only for Windows/DOS.  For simplicity, I recommend making a single .bat file for each show you want to run and naming them something like renameSHOW.bat.  I keep mine in the c: Root directory but you can put them in a folder somewhere if you’d like.  It’s probably better to try to keep all files in folders without spaces since DOS and the command line can get funny when spaces are involved.  This goes for your downloaded Podcasts as well.

To change the default download directory in gPodder, right click a Podcast and change the name description to one without spaces.  For example, if the default picked up is “No Agenda”, change it to “NoAgenda”.  For other programs you’ll have to figure this out on your own.

Next, create a batch file.  If you have file extensions turned on you can right click in the c: directory and do a “Create new –> Text File” then name it, for example “renamenoagenda.bat”  Alternately, simply open up Notepad, then save as “renamenoagenda.bat” in the appropriate directory.

Edit the file with Notepad or any preferred basic ASCII editor.  Add the lines shown below.

if exist d:PodcastsNoAgendanoagenda*.mp3 del d:PodcastsNoAgendanaradio.mp3

rename d:PodcastsNoAgendanoagenda*.mp3 naradio.mp3

You’ll want to replace the paths in this manner. “d:PodcastsNoagenda is the directory where the Podcasts are stored.  This will be dependant on your program and settings.  I have a second drive in my Pc where I store all the music RadioDJ uses.

“noagenda*.mp3” is the generic name of what’s downloaded by gPodder.  Each episode is something like “Noagenda-Episode-Date-Whatever.mp3.  They ALL start with “noagenda” and all end with “.mp3”.  using this will pick any episodes in the directory.

The file “naradio.mp3” is the file used by RadioDJ.  It is a generic file that RadioDj has in it’s list and it is of the type “Variable Length Audio”.  This will make RadioDJ get the length when it goes to play this file.  i use this format “radioXXXX".mp3” for simplicity.  For example, I’m also rotating FLOSS Weekly, which is called “radiofw.mp3”.  The key here is that the file CANNOT have the same starting name as the downloaded podcasts.  If I were to call it “noagendageneric.mp3” for example, then it would be picked up by the “noagenda*.mp3” call which would screw everything up.

Now, the essense of what this file is doing. 

if exist d:PodcastsNoAgendanoagenda*.mp3 del d:PodcastsNoAgendanaradio.mp3

 

This line says “if there is a file named noagenda*.mp3*, then delete the generic file.  I had trouble originally because I simply had the .bat delete the generic file.  This presents and issue if a Podcast has not been updated and there is not a new file to replace it.

rename d:PodcastsNoAgendanoagenda*.mp3 naradio.mp3

This line says “Rename noagenda*.mp3 to the generic file.”  This will create the new generic file that Radio DJ will use.  Also of note, this will “consume” the new episode.  This whole process requires that there is only one new episode.  if you’re clever this script COULD be adopted to create a series of rotating episodes.  I’m not going to get into that detail here however.  Essentially it would be a series of scripts that run daily.

Which brings up the next step.  You’ve created a batch file, now you need to schedule it to run using Windows task scheduler.  Simply set it up to run as needed.  For example, i run new episodes at 7PM, so i run the file at 6:30 PM on the day it’s needed.  The changes are essentially instantaneous so i could run them as 6:59 if I wanted.  I also have a short new segment which runs hourly.  This one runs at 4AM.

The thing that will sort of break this is if the downloaded new episodes do not use a regular file name.  Also if your Podcast feed isn’t updated in time.  The result hwoever will be that the generic file won’t change and an old episode will run in it’s place, so at least something should run.

The HP Mini 311 Review – Part 3 – The How

This is the last part of my multipart “review” of my recently acquired HP Mini 311.  This is probably the most difficult to put down since at this point, it’s changing on a regular basis.  The How, is how things are going to be done, and how things are being done.  For example, i am currently typing this using windows Live Writer in Windows XP on this machine.  However I’ve spent MOST of the time using this machine in Ubuntu.

So I’ll start at the top with Windows Live Writer, since I already brought it up.  This is a program I’ve been wanting to use ever since it was first released.  The beef I always had was, keeping everything organized in one place.  Probably the primary reason I wanted a computer like this in the first place was for writing.  So far it has proven to be an excellent tool for this.  Now, i will give you that, because I use a “two fingered method” of typing, the transition to the slightly smaller keyboard hasn’t been much of an issue.  If you’re used to touch typing on a full sized keyboard, you may have some issues.

It is perfect for this use however.  It’s light weight enough that I can carry it anywhere in my bag.  Which means, for example, if I’m out eating somewhere, or at the park during lunch or whatever, i can easily pull it out if I feel like typing something up.  This has, so far, only amounted to a translation to writing more blog posts for my various outlets for such activities.  I plan to try to transition this into more long form writing.  It’s something i used to do that I do enjoy and have lots of good ideas for, but I can generally never find the time.  Being able to type virtually anywhere is a blessing for this.

Part of this type anywhere ability, I’ll admit, is the battery.  Not the battery size or anything, just that it’s there and works.  I’ve had a few used laptops over the years and none of them had a decent battery.  So using the computer say, while sitting in bed, required I dig out the cables and find a spare outlet nearby etc.  It was a hassle.  At this point I’d estimate that I plug this machine in maybe once a day for an hour or so, usually while it’s sitting on my office desk.

Back to Windows Live Writer.  It was probably the first program I installed since it’s an excellent tool for blogging.  The interface is intuitive, the ability to easily attach multiple blogs is great and in general, it’s something Microsoft should be proud of. Sadly, there doesn’t seem to be a Linux equivalent.  There are Linux blogger tools that are similar, but none of them are quite as robust.

Which leads me to the second part of the How, Ubuntu.  I’ve got a long and sordid history with Linux.  I do use it fairly regularly however… sort of….  Most of the Linux based set ups I “use” are “set it and forget it” style set ups.  An FTP server for work.  A file server at home.  Occasionally I log onto these machines via VNC and putz around with settings or play around with CURL but for the most part, they are autonomous creatures,  I’ve tried using various flavors of Linux “full time” but generally I have little long term success.  The other issue is that I’m not going to inflict that general irritation on my family with say, my main home machine.

This is where the personal portable, touch it and die Netbook is handy.  I can dual boot with ease.  I’m still not really ready to go all in and wipe out my XP install or anything, but I do use Ubuntu way more than I do XP. 

Again… sort of….

I’ve also been experimenting with VirtualBox to run a virtual session of Windows XP on top of my Ubuntu install.  Can you wrap you head around that?  I have an “underpowered” PC that can boot to either Windows or Ubuntu, and inside Ubuntu, it can also run Windows.

This allows me to do things I can’t do with just Ubuntu, like run Windows live writer (eventually).  Or play DOS based games like Diablo 2 or Grand Theft Auto.

Ubuntu however should get a post all of it’s own so I’ll save more of the details on that for later.

The HP Mini 311 Review – Part 2 – The What

So I wrote up a rather lengthy “review” or at least partial review last week for this new machine I’ve been using.  The thing to note is that, for the most part, I didn’t mention much actually pertaining to the device.

That’s where this post comes into play.

After careful consideration, I went with the HP Mini 311.  In my research, I’ve found that for the most part, most Netbooks have essentially the same specs.  There are quite a few options if you’re willing to spend more than $500 but for anything less you’re going ot get more or less the same formula.

  • N270 or N280 processor
  • 1 GB of RAM
  • 160 GB hard drive
  • Windows XP SP3 or Windows 7 Starter (DON’T GET STARTER)
  • Webcam
  • 3 USB Ports
  • VGA Port
  • 9-10” screen
  • Etc.

The Mini had two main advantages that swayed me to pick it and one minor advantage.  The minor advantage is really minor, I like the way it looks.  It has a nice two tone black and silver chassis that isn’t obnoxiously colored but isn’t too boring.

The major advantages come in the visuals.  Firstly, it has an 11” screen.  This makes it slightly larger than your average Netbook but not as humongous as a laptop.  The footprint is almost identical to a standard 8.5”x11” sheet of paper.

Secondly is the nVidia Ion Chipset.  Basically, instead the of integrated Intel graphics chip most Netbooks have, this has a separate chip made by a company that more or less specializes in graphics chips.  According to CNet’s benchmarks, this machine scores a massive factor (think hundreds to a thousand) times higher than most netbooks in the graphics department.  A bit of research actually suggests the Ion is a rebranded downsized version of the GeForce 9400 chipset, which is conveniently the same card i use in my desktop machine.

So what does this mean?  Two things.  Firstly, it runs video better than most Netbooks.  Secondly, I can play some 3D games.  No, I’m not going to be playing with screaming FPS and ultra graphics settings but it’ll still work.  I’ve already tested this with the two most graphically intense games I play, Team Fortress 2 and Second Life.  TF2 will need some settings tweaks (I only spent like 5 minutes testing it out) but it’s doable for a quick game.  SL is definitely usable and reasonably smooth is less busy areas.

As for other aspects, the wireless rage is decent, much better than my old laptop.  The speed is good, I’ve loaded this thing down fairly heavily and haven’t seen a huge dip in performance (more on this in Part 3).  I’m even dual booting with Ubuntu, though there was a bit of a hassle making that work smoothly.  Battery life is decent and works for 3-4+ hours easy.

In short, I’m pretty satisfied with my experience so far.  I’ll go into more detail on exactly what that experience entails however in the next post…

The HP Mini 311 Review – Part 1 – The Why

DSC00020 Even back when the only option available was the OLPC, I knew I wanted a Netbook.  Ok, actually I saw the OLPC for the “mostly a toy” that it is, but the concept of a cheaper “unerpowered” PC was something I’d been pushing for a while.  Even with a desktop.  The idea being that computer parts just get cheaper, and my old Pentium “Whatever” is still good enough for most of what I need to do, why can’t hardware manufacturers continue producing “old models” and sell them for half the cost of the “current generation”?

A Netbook isn’t quite this.  It’s not like the Atom Processor is a Pentium 4, though I imagine there’s some similarities if you break it down.  I’ve also pushed the idea of a smaller more modular PC.  Granted, that a Netbook isn’t more modular.  Anyway, I do think it would be a great idea to build a PC that is essentially just a bank of USB ports inside.  Need to upgrade the processor?  Just swap out the stick.  Maybe add a second one, or a second GPU.  Need more Hard Drive space?  Stick a few more flash drives into the bays.  Basically, I see it as sort of like Star Trek’s Isolinear Chips.

But I’m running off topic…

After a long wait, I have finally managed to purchase a Netbook of my own.  I generally don’t make too many large purchases and when I do I tend to procrastinate forever on if I actually want it or what else could I buy.  The plus is that I tend to end up pretty well satisfied after excessive research.  Not always though, see my LifeDrive, which failed too early in it’s life.

The original plan for the longest while was to go for the MSI Wind u100.  Many reports suggested it packed the best bang for the buck in it’s price range of around $300.  I really wanted to get something with Nvidia’s Ion Processor inside however.  The Intel GMA graphics chips are supposed to be alright but I was hoping for that extra kick.  The intention being that I could potentially use the diminutive machine to play some games.  I don’t expect to be able to play the latest whatever on PC at blazing speed or at full graphics settings but an occasional putzing with TF2 or the ability to log onto the online world of Second Life would be a huge benefit.

Which brings up a point with choosing a Netbook, expectations.  In my research I’ve seen many MANY people suggesting “Netbooks suck”, “Too underpowered”, “Get a real Laptop for $100-$200 more”.  The thing is, I wanted a netbook for many of the reasons people seem to be badmouthing them.  I don’t WANT to spend hundreds of dollars more for a 14-15” laptop.  Not to mention a $500 Laptop is pretty low on the low end and likely the build quality is going to be crap next to a $400 Netbook.  We have several people using Laptops at work.  The $2500 Microns we used to use were extremely sturdy and robust and lasted for 5-6 years.  We’ve got $500 Dells that are almost falling apart that are in rough shape after only 2 years.  The point is, buy cheap, get cheap.

There’s also the size factor.  Ideally, I wanted something that would fit in my “Nerd Bag”.  I have an old full sized laptop.  The bag for it is huge and the thing is heavy enough that it makes my shoulders hurt lugging it around.  I want something light that’ll fit in a bag that’s convenient that I’d be more likely to carry around with me.

As for underpowered, I’ve been using this device for roughly a week now.  No, it doesn’t play TF2 as well as my desktop PC.  No, I’m not going to load up Adobe Premier and make it render a 2 hour video.  No, I’m not going to watch massive HD videos at full screen.  What I can do is type.  I can write blog posts such as this one.  I can listen to iTunes.  It’s got several USB ports and runs Audacity just fine so maybe i can finally start doing that Podcast I’ve been meaning to do.  The point is, this device is an excellent tool. for what I wanted it for and for what I expected from it. 

It’s also helping me become once again more comfortable with the keyboard.  I grew up on DOS.  I’ve been working on various Linux projects on the command line for a while, I used to be able to zip around Windows easily without using a mouse but I’ve gotten rusty at it.  The fact that I simply don’t like touch pads in general (not just on this device) has helped me harness a skill I’d lost to help my overall computing habits.  I’ll argue against the Linux mindset that the command line is superior to a GUI, but I’ll argue for the idea that the keyboard is more powerful than the mouse for productivity.

Anyway, I’m getting a bit long so I’ll wrap things up a bit here.  In the end, chose the HP Mini 311.  I don’t recall exactly where I first came across this model but it has more or less everything I wanted.  The reality is, a LOT of these machines have identical specs.  160 GB Hard Drive, 10” screen, N270 Atom processor, 1 GB of RAM.  For a bit more than the Mini, I got the Ion Processor and an 11” screen.  The Mini 311 also has a slick 2 tone color pallet going for it.

But I’ll get more into the details in Part 2, “The What”…