tombrennan.org

it’s good to know things

Archive for the 'Programming' Category

Share OS X Secondary Drive with Vista

Although I’ve found a way to share user files on my PowerMac G3 (B&W) running OS 10.4 I found it nearly impossible to find anything online that would allow me share the secondary drive on my Vista laptop.

Enter SharePoints. This program allows someone designate a mount point for your share in the System Preferences of your OS X computer.  You can browse to the share that you want and name the point whatever you want.  Make sure to enable Windows Sharing within the SharePoints pane.

When you head to Vista’s networking window type in your username and password and you’ll notice your new share point is within the bulleted points of the network share.  Enjoy.

There are much better instructions on the SharePoints page.

No comments

BlueMic works on Vista!

I bought a laptop a few weeks back and it was preinstalled with Vista.  Vista was the only supported OS on the laptop (no XP drivers wouldn’t work).  I quickly found out that my Blue Mic Snowball USB mic would not work in Vista.

Since I noticed the mic wouldn’t work with Vista I’ve been looking at Blue update page.  It looks like today I struck gold (or Blue in this case).  It looks like the low gain firmware update seemed to work with Vista.

I followed all of the on-screen instructions, after the download, and everything installed like a champ.  I even ran Cool Edit and ran two mics through (for my podcast) and everything worked OK.  My only complaint is that the low-gain upgrade brings the levels of the mics way down.  Hopefully Blue will certify the high-gain option for Vista soon.

No comments

Anatomy of the iTunes library

I’ve been thinking of backing up my computer to do a fresh installation of OS X. I do this frequenty to ensure that the speed of my 6 year old PowerBook stays up to par with my current demand.

I’ve been noticing lately that the price of external hard drives have been dropping and I’ve been considering picking up one for back-up purposes beyond my biannual wipe-out. While doing this I want to keep my iTunes music intact. This includes playlists, ratings, album artwork, iPod settings etc.

This article will go over the structure and possibilities of the iTunes playlist. It should be mentioned that you should always create a back-up of any file that means enough to you before you “tweak” it.

First let’s find the file. The iTunes library is an xml file that normally sits on the local user documents on the hard drive. In a Mac running OSX head to /userX/Music/iTunes/iTunes Music Library.xml (the xml may be hidden) and on a PC with Windows its in \Documents and Settings\username\My Documents\My Music\iTunes\iTunes Music Library.xml

Now let’s get into the nitty gritty. Before opening the file make sure to open it in a plain text editor. DO NOT USE MS WORD. I recommend TextWrangler (OS X) and Edit Pad (Windows). Both offer a free and very usable version of the software.

The first few lines of the XML give a head’s up of what’s going on behind the scenes of your program:

      Major Version1 Minor Version1 Application Version7.0.2 Features1 Show Content Ratings Music Folderfile://localhost/Volumes/max/itunes/ Library Persistent IDD5A292963EC7CAEB Tracks 
  • This shows what version of iTunes your running (in my case 7.0.2)
  • I am allowing the program to show my ratings.
  • I also have my library stored on a network hard drive called “max”. In “max” is a folder called “iTunes”. This is where all of my music is stored (more on that later).
  • The Library Perisistant ID is where my library resides (in computer terms).

Now onto the tracks:

10236  Track ID10236 NameKarma Police ArtistRadioHead AlbumOK Computer GenreRock KindMPEG audio file Size6278920 Total Time261616 Track Number6 Date Modified2006-05-10T07:55:14Z Date Added2006-05-25T23:24:24Z Bit Rate192 Sample Rate44100 Play Count4 Play Date3258238538 Play Date UTC2007-04-01T06:15:38Z Rating60 Persistent ID57318355222A2A50 Track TypeFile Locationfile://localhost/Volumes/max/itunes/RadioHead/OK%20Computer/06%20Karma%20Police.mp3 File Folder Count4 Library Folder Count1

Boy, that’s mouthful. It’s easy to take in though. Let’s break it down:

  • The track ID is the unique number of the track in the library.
  • In this case it was the 10,236th track put in.
  • The name of the track is “Karma Police” from Radiohead’s OK Computer CD.
  • The genre is Rock. Next comes the type of file it is. I have a majority of my files in MP3 format (or MPEG audio).
  • How big is the mp3?
  • That’s what’s next. The total time.
  • This is the 6th track on the CD.
  • I last modified the file on May 10, 2006 and added to the library on May 25, 2006.
  • The mp3 was encoded at 192k at a sample rate of 44.1k. With the price of hard drive space I don’t go below 192k anymore. The higher the bit rate, the better the sound and the bigger the file.
  • I’ve played the file 4 times.
  • The last time I played this was on April 1, 2007.
  • The 60 rating is out of 100. In this case 3 out of 5 stars.
  • The persistent ID stays intact on every entry of the XML. Hence the name.
  • The file location is next.

If I have not explained anything, it means I do not have enough working knowledge of the entry.

Playlists anyone?

Namemellow Playlist ID37308 Playlist Persistent ID1A8DDF9F540360F5 All Items Playlist Items   Track ID2166   Track ID2166   Track ID2286

Once you get the hang of tracks, the playlists are cake.

  • The name of this playlist is called “mellow”
  • The unque Playlist ID and Persistant ID come next
  • It will show all items, then the
  • Playlist items. (this simply calls back to the Track ID in the library. The items repeat until the playlist ends.

Now why I am writing this? Well once you know how something works the more likely you are less afraid of it and can make it work for you. Why should you have to re-rip or reimport all of you songs from that remote drive and loose you ratings, playlists, and other related material?

  1. All you have to do it install iTunes on your new hard drive and make a back-up of the new XML file.
  2. Then, with the program closed, paste in the old XML file with your data on it.
  3. Then open up the file in a plain text editor and do a find and replace to the location of your files (let’s say on that network drive).
  4. Relaunch iTunes and your files are right there with no crazy !s next to them.

I hope this has proved helpful to anyone wanting to know more about what goes on behind the scene of iTunes.

No comments

Installing Apache on Vista

Like Digg but can never get on the the front page? 

Try AddPile, user powered news site with a weekly podcast. 

So I picked up a laptop the other week and like any other technogeek I wanted to see if Apache would run on the version of Vista on the new computer. This version was Home Basic, but seemed to do the job. Here’s the steps I took to get it running:

NOTE: These instructions on for educational purposes only. I do not hold any responsibility for any fowl things that happen on your computer. I also don’t take responsibility for the fall of music sales due to file sharing networks. Please make sure you have admin rights on Vista before you start.

  1. Grab a copy of the Apache installer apache_2.2.4-win32-x86-no_ssl.msi. I downloaded to a directory I could easily navigate to in the Command Prompt (see step 3). I saved it in c:\setup.
  2. Turn off the User Access Control (UAC) in Vista. If you’ve used Vista for 25 minutes you’ve come across it. That’s the program that keeps asking you if it’s OK to install a program, or delete a file, or take a leak (OK maybe not the last one). Here’s how to do that:
    1. Start > Control Panel
    2. User Accounts
    3. Click “Turn User Accounts Control on or off”
    4. Uncheck “Use User Account Control”
    5. Click OK
    6. Restart Windows (this one’s important).
  3. Once you’ve rebooted head over to “Command Prompt” and run it as Administrator. In my time with Vista I’ve found that going to Start->Search and typing in “Command Prompt” works. Now right click on the shortcut and select “Run As Administrator”.
  4. Now navigate to the directory you’ve saved the .msi file to.
  5. Type in “apache_2.2.4-win32-x86-no_ssl.msi” and let the installer do it’s thing. You will be prompted to put in some data, but that can be changed in the httpd.conf file later.
  6. Windows will try to block port 80 (the default port) for Apache. When prompted by Windows Firewall say “Unblock”.
  7. By default Apache will run pages out of the “C:\Program Files\Apache Software Foundation\Apache2.2\htdocs” folder. If you want to change this, like I did, create a new directory on your PC (I used C:\www\) copy all of the files in the “C:\Program Files\Apache Software Foundation\Apache2.2\” directory on move it to your desired directory.
  8. Now open up the file called “C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf” in a plain text editor.
  9. For the sake of speed I used a “Replace All” function to change all my settings. Replace “Program Files/Apache Software Foundation/Apache2.2″ with “your_directory“. Again I used “www”.
  10. Now head to your directory and open the file in “your_directory\index.html” in a plain text editor. Where it says “It Works!” change it to read something else.
  11. Although you can restart Apache in the Vista Program Menu I just decided to restart the computer. Heck, I had 15 updates running before I had to reboot anyway. This one’s your choice.
  12. Open up a web browser and type in “localhost” in the address bar. The text you changed “It Works!” to should now be showing.
  13. Sit back and relax. While your doing that, think of some more devious things you will be doing after you get this running.

Like Digg but can never get on the the front page? 

Try AddPile, user powered news site with a weekly podcast. 

No comments

The sad truth about Campcaster - Linux Radio Automation

A few months ago I thought I would be able to get a radio automation system up and running. After some initial trouble with some bad CD burns I was able to order a CD from the nice folks at Ubuntu.

Campcaster was my first radio automation system of choice. There seemed to be plenty of support (including video tutorials) for setting up and running a station on Linux.

Before I list the problems I had with the program I just wan to say that I have about 15 years of radio experience and about 8 years with radio automation systems. I know what needs to happen at a station and with a station’s automation system.

Here is the list of issues I had with Campcaster automation:

  • Lack of Control- There was very little way to control what was getting played out of the system. You can not stop airplay of something and get something else going.
  • Scheduling- This is the main problem (for me) in the whole system. There is no integration within the software to bring in schedules (music, traffic) into the system. I was only able to find a 3rd party script that had to run through a command line. The only way to create a schedule for a day was to create a list of audio carts to play out in Campcaster’s web-based browser. This took quite a while on the playout machine. It is essential that 3rd party logs/schedules can get imported into the system.
    • To build a log you have to start building the “Scratchpad” song by song. Once you have an hour in a “playlist” you must then schedule that playlist in a day. Then you need to load 24 playlists in a day, 7 days a week. With an average of 15 songs an hour, you can see how this solution would not work in my situation.
    • Before a playlist could be scheduled it needed to be “locked”. This is just another step in a fairly repetitious and time-consuming process.
  • Audio output- Once the “Studio” program was shut down the audio still played out in the system. There was no process visible on the Ubuntu system I was working on. This makes me feel a little nervous. I don’t like hearing things getting pumped through my PC without seeing any program doing it.
  • Instability- After about 60 minutes there would be no audio coming out of the system. Since there was no program to look at there was no way to troubleshoot what went wrong. The playlist that was playing was over 60 minutes long (more like 90 minutes).

Although the promise of an easy-to-install open source Linux automation seems promising, Campcaster just doesn’t deliver.

The next program I will check out and review is “Rivendell” from Salem Radio Labs. This too is a open-source Linux automation system.

No comments

How your mouse really works

This is how your mouse really works on your computer, not matter your operating system.  The animation explains it in fine detail.

No comments

Ubuntu on a PowerBook

I have decided to tinker (yet again) with Linux. This time I have chosen the Ubuntu distribution of Linux. This time I have chosen to install Linux on my Powerbook G4 550. I also wanted to leave the current installation of OS X on the computer. How could I do that?

The Live CD which is available for download from a number of ways. You can download from an FTP or HTTP server or use BitTorrent to download. The Live CD allows you to test-drive the operating system without writing any data to your hard drive. This is good if all you want to do is test-drive.

Install will require you to partition your hard drive and use unallocated space to make a new “virtual” drive on your computer. This can all be done on the Live CD. A few easy steps and the operating was installed. Upon reboot I was confronted with a menu that allows me to choose from Linux, Ubuntu, or an optical disk.

If you plan on installing another OS onto your computer make sure to do two things.

  1. Make sure to back-up all of your data
  2. Make sure the Live CD you download is for your computer. My PowerBook requires a PowerPC disk while an Intel disk is required for most PC’s using windows.
No comments

Linux Radio Automation - Campcaster

Like Digg but can never get on the the front page? 

I’ve done some research into radio automation systems. Two of then have struck my fancy. The first involved the use of the Ubuntu distribution of Linux. I have dabbled in Linux before, but with little success. The Ubuntu distro comes with a live cd, which enables you to test drive the operating system without writing any data to your hard drive.

I’ve stumbled into Campcaster, which is built with a very easy installation of Ubuntu. There were three files that needed to get downloaded and then installed using a built-in package installer for Linux. I’ve also found the program called Synaptic that can check for updates. This works like the System Updater in OS X.

The first process in seeing how well Campcaster works will be installing Ubuntu onto my computer, which works on the PowerPC processor.

There is a follow-up posted here.


Try AddPile, user powered news site with a weekly podcast. 

No comments

Send text to cell phone using AIM

Although it may seem obvious, you may now know this.  You can send a message to someone’s cell phone through your AIM client on your desktop.  All you have to do is add the person as a buddy.  Simply put +1 then the cell phone number, add as a buddy, and simply send a  message.

No comments

WBJB RSS Reader

Now you can view all of Brookdale Public Radio’s RSS feeds in one place. You can view local, music, odd, and tech news alongside our On-Air Blog, New Music listings, The Radio 101 Blog, Interviews, Videos, station announcements and our MySpace blogs.

Download Now

No comments

Next Page »