Friday, July 25, 2008

Miro + Songbird = Media Freedom

Over the past few months I've stumbled onto 2 very useful applications...

  • Miro (formerly The Democracy Player) - Video player & discovery application capable of playing almost all common video formats found on the web.

  • Songbird - Audio player & discovery application capable of playing almost all common audio formats.

I've been using Miro for the past 6 months and really like it. It allows me discover new video blogs/feeds and automatically downloads and manages them for me. It also seems fairly stable with only a few minor annoyances.

I had heard about Songbird when it was first getting started and figured I would give a try once it got farther on. It has since gone full release (1.1 actually) and the features and performance have been greatly enhanced, allowing it to become my primary audio application. There are still a few quirks (like no ripping capabilites, yet), but I feel confident that it will only get better with time.

The one thing that stikes me about these applications is that neither one could replace iTunes or Windows Media PLayer (WMP). At least, not if they remain separate. They are both built using the Mozilla XUL codebase, use the same processing library for decoding the various audio/video formats, have 'discovery' features, and library management. The only things functionally different are Songbird is geared more for audio while Miro is mostly for video. It seems to me that these applications should reach out to each other and merge into one project and finally create the ultimate (and free) media management application.

Monday, June 23, 2008

R.I.P. George Carlin

If you fancy yourself a fan of comedy and you haven't seen much of George Carlin, you owe it to yourself to visit YouTube (and similar sites) and watch what he has done over the course of his career. Even the stuff he did 30 years ago is still relevant and funny today, even to someone who wasn't even born at the time. He challenged our perceptions, the status quo, and forced use to face, or at least think about, serious issues affecting us all. And he did it all under the guise of being funny.

Of the ten previous comedians and entertainers that have been honored by the Mark Twain prize for humor by the Kennedy Center, I would place George at the top with Johnathan Winters and Richard Pryor following in 2nd and 3rd place respectively. Nothing against the other recipients, they each have earned their place, but those three were clearly a level above the rest.

He was my father's favorite comedian and a few years back I purchased 2 tickets for us to see him the next time he came to town (several months away). Unfortunately, he suffered a minor heart/angina attack a few weeks before the show and hadn't been cleared to perform yet, so the show was cancelled. To say we were disappointed was an understatement, especially for my father. He grew up during the counter-culture generation that George most identified with and had always wanted to see him in person. We had hoped that the show would be rescheduled or that he would make it back into town sometime soon, but he never did.

I will always regret not getting the chance to see him in person. He will be missed greatly.

Friday, May 23, 2008

Learning JavaScript (finally)

I'll be honest. Until recently, I haven't really used much JavaScript in the Web Applications that I've built. I've usually preferred to take the post back hit and perform the necessary functions server-side, instead of trying to craft the right JavaScript routines that work across all browsers. In my new job however, we use a fairly large amount of JavaScript to deliver rich functionality directly on the page client-side. Time to get me some learn'n on JavaScript.

Because I had stayed away from JavaScript for so long, I never really got a good feel for it. I could read an existing script and determine what it was doing with little effort, but I would be hard pressed to write my own script that did anything beyond the basics. One of the reasons for this was that any resource I found on JavaScript never spelled out how the language is composited within a Web Browser.

Since JavaScript is a dynamic language, it can be implemented wherever you like; not just within a Web Browser. However, when JavaScript is implemented in a Web Browser, additional methods and properties are merged in from 2 other sources: The Document Object Model (DOM) and HTML.

The DOM is a hierarchical structure of all of the elements making up a document. Every element has parent (except root), 0 or more children, and 0 or more siblings (elements at the same level). Any JavaScript variable that references an element within the web page inherits the methods and properties supplied by the DOM based on the type of element it is, in addition to the standard methods and properties defined for JavaScript objects.

You will also inherit properties based on the HTML type the element represents. For instance, if the JavaScript variable is currently pointing to an element, then the variable will have properties that match what is available for an image, such as Alt, Src, Height, Width, etc.

Thus, any given variable in JavaScript can have methods and properties composed from 3 possible sources: core JavaScript, the DOM, and HTML. This may seem trivial to most people who have been writing JavaScript for several years, but to someone who has avoided the language for a while, this can be a source of confusion. Especially since most books seem to gloss over this composition behavior. Once you are aware of this, writing JavaScript becomes a lot easier.

In order to grasp the full capability of JavaScript within the context of a Web Browser, I would suggest buying at least 2 books: One on JavaScript (the language), and another on the Document Object Model (DOM). If you are lucky, you can find a book that does a good job incorporating all of these aspects in one place.

Thursday, April 03, 2008

SQL Server Management Studio Tip

Recently, Sara Ford outlined a tip on her blog about a registry hack that enables vertical column guides within the Visual Studio Editors. This is one feature that my favorite text editor (Notepad++) has had for a long time and something that I have missed when working within Visual Studio.

After using this for a few hours in both Visual Studio 2005 and 2008 and then using SQL Server Management Studio (SSMS), I wondered if it would be possible to enable this option for SSMS's editor(s)?

After digging through the registry, I found a registry path the looked an awful lot like the Visual Studio path. I closed down SSMS, added the proper registry key, and then opened SSMS, and...

Presto! I now have the vertical column guides! Here are the instructions...

WARNING: This tip modifies your registry. Please ensure that you have a backup before proceeding in the event that Murphy's law kicks in!
  1. Open the Registry Editor
  2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\90\Tools\Shell\TextEditor
  3. Add a new String value named "Guides"
  4. Set the value to "RGB(r,g,b),c1,...,c13" using the format described in Sara's blog.
Enjoy!

Tuesday, October 23, 2007

Cropper

I've recently had to write some documentation for my new job. As with any documentation, screenshots are essential. In the past I have taken the whole Print Screen, Paste into an image program (like GIMP or Paint), and save to disk approach.

A while back I had stumbled upon a program named Cropper, but hadn't taken the time to give it a test run. Since I didn't already have any screen capturing software on my new system, I figured now would be a good time!

After installing and starting cropper, all you are presented with is a small icon in your system tray. At this point, you could simply follow your normal Print Screen (or Alt-Print Screen) routine and Cropper will automatically start saving BMP files into it's default Save folder. You could also double-click the system tray icon (or press F8) and be presented with a transparent window that can be moved and resized to selectively capture certain portions of the screen.

You can also have Cropper automatically create Thumbnails of each screenshot you take, if so desired. In addition to outputting BMP files, you can also output to PNG or variable-quality JPG files as well as send directly to the Clipboard or the default printer.

With it's small install size, easy to use and unobtrusiveness features, and cost (free!) , I would highly recommend Cropper to anyone who needs to take screenshots.

Thursday, October 18, 2007

Microsoft Comfort Curve Keyboard 2000

I recently switched jobs and have come to realize how much I liked having the low-profile style keys that laptop keyboards. Most developers I know also share a similar view when they have to use a desktop computer for long periods of time.

For my new job I have a desktop, which is great since it's an Intel Core2 Duo with 3GB of RAM and 250GB HD of hard drive space along with a rather large LCD monitor (Dell 2007FP). The only draw back was the use of a regular (and somewhat cheap feeling) keyboard that came with it. If you've purchased a Dell system recently, you probably know the keyboard I'm talking about... the one that barely has any extra space between the keys and the edge of the keyboard itself.

After having used a laptop 90% of the time (my desktop at home uses a Sun Type-6 USB keyboard due to it's low profile keys) for the past 7 years, I quickly began to dislike it. So I went to a local office supply store looking for an inexpensive keyboard that had a wired connection with low-profile keys. Call me old-school, but I prefer wired keyboards since there is less of a chance that something will go wrong with them (driver issues, dead batteries, etc.)

There were several nice keyboards from Logitech and and others that had the low-profile keys, but most of them cost between $50 and $300 and were wireless. Then I found the Microsoft Comfort Curve 2000.

It's a low-profile, low-cost (~$20) keyboard that has minimal 'extra' buttons, requires no drivers in order to use all of the buttons, and was wired. I had used this keyboard in the past briefly when setting up a server when our KVM died and liked it a lot. The 'curve' in the title refers to the fact that the keyboard curves about 6-degrees from the center of the keyboard, resulting in a more natural (ergonomic) design for your wrists. I have tried the broken keyboard designs in the past, but I found them really frustrating to use since I am not a touch-typer (but getting there).

After having used this keyboard extensively for the past week, I would highly recommend it to anyone, especially since it is so inexpensive.

Tuesday, October 16, 2007

Amazon's MP3 service

I recently made my first jump into digital media purchases. Up until this point I refused to purchase music from any of the online services that use Digital Rights Management technologies.

The iTunes store has a clean interface and an impressive catalog, but the DRM-laden AAC files do not play on my current digital music player of choice, a 2nd generation Dell DJ 20. All of the services that were compatible with my device used DRM-laden Windows Media Audio (WMA) files. I've heard countless stories from people who have purchased music only to have a computer/software glitch that renders their purchased music unplayable, so I never wanted to take the risk.

A few weeks ago, I heard that Amazon had recently opened up their MP3 store as a public beta, offering DRM-free 256Kbps MP3 files that are compatible with pretty much any digital music player available (past or present). After looking through the initial catalog offerings, I decided to take the plunge and make my first digital music purchase.

After installing the Amazon MP3 Downloader application (only required for albums, but useful for purchasing many singles at once), I decided to download Pablo Honey by Radiohead. I have owned this album since it was first released in 1993, but sadly only in Cassette format (without a cassette player for the past 5 years). After following the quick checkout procedure, the Amazon MP3 Downloader opened and my music files began downloading. After each file finished downloading, the application would add it to my Windows Media Player (or iTunes) library automatically.

When everything was all said and done, I opened up WMP and found (surprisingly) that everything had worked and transferred the files onto my DJ without hassle. I even made a physical copy of the CD to put into my home stereo just as easily (and using whatever application I wanted to do it with!).

I applaud Amazon for offering DRM-free MP3 tracks and the seamless downloading experience has left me a happy consumer, willing to purchase digital versions of albums that I only own in cassette format as well as new albums. I only wish that they would also provide cover & disc art to go along with album purchases so you could make your own physical CD's look nicer.