August 04, 2007

Mobile Web Forms in Visual Studio 2005 SP1

In a recent project I was required to alter my web application to make it more compatible with small devices (such as PDAs and cellphones). I attempted to add a mobile web form and found that no such template was available.

After a bit of searching I found out that Visual Studio 2005 SP1 removed this capability for web application projects (it was last present in Visual Studio 2003). Thankfully the Visual Studio Web Tools group posted the templates here as an optional download.

July 03, 2007

Experiments with Moodle

MoodleThe other day I was asked to help install Moodle for a friend. If you've not heard of it, Moodle is an open source PHP application used (as their site describes) to "help educators create effective online communities." It includes blogs, wikis and content management combined to compliment lesson plans with the synergy of online collaboration and social interaction. I won't get into reviewing the application itself but I will say a few things about my experience with the installation process.

For starters Moodle requires a web server, PHP and a relational database. My goal was to set up the application on an existing Windows / IIS / MySQL shared hosting account on Go Daddy.

To prepare for this activity I decided to take Moodle for a spin on my MacBook Pro where I'm running Apache, PHP 5 and MySQL. The installation required two additional items I was not expecting: a cron job and permissions for the application to write to a special "Data" directory. Nonetheless, the automated setup script worked flawlessly and I was up and running within fifteen minutes.

I naively thought that the Windows installation would be similar. However, no matter what I tried I couldn't get the setup script to run properly. Perhaps due to hosting limitations? Maybe I made a mistake somewhere along the line? One way or another, I was quick to switch to a Linux plan where, similar to OS X, set up was quick and painless.

I know others have had success with Moodle on Windows but all the same I'd recommend a Linux server as the most appropriate vehicle for this application.

April 28, 2007

The Token AJAX Post

It's the backbone of the oft heralded "Web 2.0" movement. It's the key to breathing fresh, interactive life into an aging XHTML spec. If you had not already gathered from these clues and the title of my post, I'm referring to AJAX - asynchronous JavaScript and XML.

I'd bet many readers can sympathize with the sense of bedazzlement I experienced upon first laying eyes on Google Maps. Add to that Windows Live, Flickr and GMail, among a host of others, and there is an obvious trend of companies using JavaScript to push their applications to new heights.

With AJAX, interaction between the web server and the client are no longer limited to jagged, intermittent spurts of activity. Instead the bits flow over the wire as soon as they're requested, making for a smoother browsing experience. The best of these AJAX applications have often given me the eerie feeling that I'm not using a browser at all.

But is it just hype? I think the AJAX phenomena has been around long enough to have settled comfortably into the minds of developers and the expectations of users. I don't think it's a passing fad. However, I also tend to believe that the overall usefulness of AJAX has been blown out of proportion. True, it can make for a snappier user interface, but I don't see it as much of a revolution. If anything, I think AJAX was the next evolutionary step beyond the dynamic HTML that was so heavily pushed in the late 90's.

I used the MS AJAX package in a recent project and was pleased to see that this and similar toolkits are opening AJAX techniques to a wider audience of developers. But in my mind I foresee the true next-generation web-based software to transcend traditional XHTML/JavaScript scenarios via new runtimes such as Adobe Apollo and Microsoft Silverlight.