Monday, March 31, 2008

Unobtrusive JavaScript

I recently read several articles about the merits of Unobtrusive JavaScript, a programming paradigm that encourages the separation of functionality from structure, content, and presentation. Some key benefits of Unobtrusive JavaScript include:

  • Better accessibility
  • Improved portability
  • Faster development
  • Simpler code maintenance
  • Graceful degradation of functionality

Some scripting event types that developers commonly commingle with document content and structure include:

  • onclick()
  • onfocus()
  • onblur()
  • onmouseover()
  • onmouseout()
  • onload()
  • onchange()
  • onsubmit()

Inline JavaScript functions can be difficult to maintain, especially if there are numerous occurrences of the inline code sprinkled throughout the website or if multiple people work on the same website. This is especially true when Web developers working with WYSIWYG editors make changes to the site, since the WYSIWYG editors have a tendency to mangle code.

Sunday, March 30, 2008

Free Windows Vista Advisor Polo Shirt

Microsoft is giving away Windows Vista Advisor Polo Shirts for individuals who complete the "Get the Facts on Windows Vista" quiz. Follow the link, then click on "Training Quiz" to participate.

Microsoft estimates the quiz will take 15 to 30 minutes, but I participated and the quiz took about 6 or 7 minutes.

The quiz is a great real-world example of Silverlight in action.

Sunday, March 23, 2008

Microsoft Press Free E-Book Offer

Download the complete "Introducing Microsoft LINQ" e-book from Microsoft Press for free. Also download select chapters from "Introducing Microsoft ASP.NET AJAX" and "Introducing Microsoft Silverlight 1.0"

Windows Live Alerts SDK

Microsoft has announced a software development kit (SDK) for Windows Live Alerts:

There's no better way to communicate with customers than with real-time alerts sent directly to their desktop, mobile device, or email. Windows Live Alerts detects where customers are on the network and intelligently delivers an alert message.

According to Microsoft the software development kit provides:

  1. RSS Feed Based Alerts - You can quickly and easily enable Windows Live Alerts from an RSS feed. This zero development solution for Windows Live Alerts is available now.
  2. Programmatic Alerts - The SDK is for developers familiar with Simple Object Access Protocol (SOAP) who want to programmatically integrate with the Alerts notification service to access advanced features.

Windows Live Writer Ping Servers

Configuring Ping Servers in Windows Live Writer is an essential step if you want search engines to crawl your new posts as soon as possible.

To configure Ping Servers in Windows Live Writer:

  1. On the "Tools" menu select "Options..."
  2. Click "Ping Servers" in the left column
  3. Place a check mark next to "Send pings to the URLs below"

Next, enter one or more of the following URLs in the text box; each URL should be entered on its own line:

Windows Live Search SDK

Microsoft has announced a software development kit (SDK) for Windows Live Search:

You can easily add Search to your site with our Live Search box. For more options, use our Live Search Web Service, where you’ll be able to query for web results, images, news, phonebook listings, feeds, and meta tags.

According to Microsoft the software development kit provides:

  1. SOAP API - With the SOAP API you can create a custom search engine, enhance your existing site search with spelling suggestions, images, news articles, feeds and phonebook results.
  2. AJAX Control - Easily add search to your web site with this AJAX control. Deploy the script as is from the wizard, or customize it for more functionality.

Silverlight Streaming SDK

Microsoft has announced a software development kit (SDK) for Silverlight:

Microsoft Silverlight Streaming by Windows Live is a Silverlight companion service that makes it easier to deliver and scale rich media. The service offers a free and convenient solution for hosting and streaming cross-platform, cross-browser media experiences and rich interactive applications that run on Windows and Mac.

Combined with the ability to create content with Microsoft Expression Studio and other 3rd party tools, Web designers and content publishers wishing to integrate Silverlight applications into their online properties can enjoy complete control of the end user experience.

Here's the fine print:

While the service is in beta, storage is free up to 10 GB and streaming is free up to 5 TB of aggregated bandwidth per user account per month. Videos should not exceed 10 minutes and have a maximum bit rate of 1.4 Mbps. As we move out of beta, unlimited streaming will also be available for free with advertising, or with payment of a nominal fee for use of the service without advertising.

Windows Live Messenger SDK

Microsoft has announced a software development kit (SDK) for Windows Live Messenger:

Let web site visitors interact with Windows Live Messenger users using the Windows Live Messenger Library, Windows Live Messenger IM Control, and the Windows Live Presence API.  You can also use the Windows Live Messenger client, version 7.0 and later, to develop a single-user or multi-user application through the Windows Live Messenger Activity API.

According to Microsoft the software development kit provides:

  1. IM Control - The IM Control enables web sites to show the presence of Windows Live Messenger users and let site visitors engage in IM conversations with site owners or representatives.
  2. Presence API - The Presence API is an HTTP-based API that returns a Windows Live Messenger user's presence.
  3. Messenger Library - The Windows Live Messenger Library is a client-side JavaScript library that enables third-party sites to seamlessly add instant messaging capabilities with Windows Live Messenger.

Saturday, March 22, 2008

Amazon MP3

If you listen to downloaded music and have not already heard, Amazon recently launched a new music download service called, "Amazon MP3". Individual songs generally sell for $0.89 to $0.99 on Amazon MP3, which is cheaper than iTunes; however, the big news is songs are encoded in MP3 format, which means they will work on most devices without conversion. No longer is you music library chained to an iPod.

Microsoft Office Outlook Connector

If you use Microsoft Outlook to check your e-mail and have a Hotmail or Windows Live e-mail account, I strongly recommend installing the Microsoft Office Outlook Connector. The Microsoft Office Outlook Connector uses MAPI to access HTTP mail accounts, which provides additional functionality and a much smoother experience.

Visual Studio 2008

On Tuesday, March 18, 2008, Microsoft released Visual Studio 2008. The new version is fully Vista compatible and adds a lot of new features. Some of the most exciting new features in Visual Studio 2008 include: full JavaScript debugging and Intellisense, .NET Framework Targeting, LINQ, and improved CSS support.

If you are interested in trying the new version, Microsoft offers a free 90 day trial of Visual Studio 2008.

Microsoft Silverlight

Microsoft Silverlight 2 Beta 1 is now available for download on Windows and Mac OS X.

Microsoft is developing Silverlight to compete with Adobe Flash, the current industry leader for Web-based multimedia.

Attention Test

I thought the following video was very interesting:

Visit the original website.

Windows Vista Service Pack 1

I recently installed Windows Vista Service Pack 1 (SP1) on several different computers; most installations went very smoothly; however, I had issues on two computers.

The first issue occurred on a Dell laptop, which required several drivers updates before SP1 would appear in the Windows Update download list due to known driver compatibility issues. Manually updating drivers is only a minor nuisance and was expected. Once the drivers were updated the installation was seamless and the performance increase on the laptop is noticeable; the laptop boots in approximately half the time and the wireless networking now connects much faster. The wireless network now also reconnects without constant user intervention (an annoying problem prior to SP1).

The installation of SP1 on a Windows Vista Ultimate Edition (a Media Center PC I have connected to my television) was another story all together. Initial installation of SP1 appeared to work without a hitch; however, problems began as soon as I went to watch a DVD... you could sort of see the DVD play, but the entire display was covered by patches of psychedelic colors. Clearly there was an issue with my current configuration and SP1. The strange part was that normal and recorded TV functioned without issue. Based on past experience, I determined that it was most likely a driver issue, so I began the tedious process of narrowing down the issue. Initially I thought the issue was caused by an SP1 incompatibility with DVD-ROM driver, so I downloaded the latest drivers and firmware updates and systematically applied them one at a time, rebooted and retested the issue. Unfortunately, this did not resolve the spinning kaleidoscope of color. So I continued to upgrade one driver at a time until I was able to resolve the issue. In the end it turns out Windows Update installed a new video card driver for the NVIDIA video card at the same time it installed SP1. Reinstalling the previous driver resolved the issue.

Just went I thought everything was working on my Media Center PC, Windows kindly informed my I needed to reactivate. Normally, activation is a fast, seamless process; however, for some reason Windows would not allow me to activate online and to make matters worse, each time I tried to activate Windows the system removed one day from the number of days remaining to activate. Ultimately, I had to use the phone activation process, which is probably the least user friendly solution available. For anyone who hasn't been through the phone activation process, you don't ever want to! It involves reading nine groups of six digit numbers (for a total of fifty-four numerals) to a voice response system. After reading the numbers to the automated system twice, I was transferred to a human, where I then had to read the numbers again. Reading 162 numbers over the phone is not fun and does not make me feel like a valued customer. Who ever designed the phone activation process should be fired.

In the end, I was able to reactivate Windows and resolve all of the driver issues and other issues caused by SP1.

Even with all the hassle, I think it was well worth the effort, especially on laptops, where the improvements are the most dramatic.

Sunday, March 16, 2008

Get Microsoft Office 2007 Ultimate Edition for only $59.95

Microsoft has a great promotion going for college students; get Microsoft Office Ultimate 2007 for just $59.95, but you will have to hurry the offer ends on April 1, 2008.

"Office Ultimate 2007's brand new features and fresh look will help you organize and get all your work done in the blink of an eye."

Anti-Spam Technology

Paul Graham has posted a great article, "A Plan for Spam" about combating spam with naive Bayesian filtering. He has also posted an updated article, "Better Bayesian Filtering", which improves on the ideas from the original article.

Marco Minerva provides, "Graham Algorithm", an open source C# implementation of the algorithm from the articles.