Blog Stats
  • Posts - 69
  • Articles - 0
  • Comments - 27
  • Trackbacks - 2

 

Saturday, June 27, 2009

Server-side Geocoding using the Google Maps API

Here is a simple class for server-side geocoding. This implementation uses the basic csv data transfer format so it is just geocoding. It can easily be extended to return more data by switching to the json data transfer format. It can also be easily extended to support reverse geocoding...

Read the full article

 

Tuesday, June 23, 2009

Adding a Select() / Map() Method to Javascript Arrays

In C# and Ruby we can use the Where() and Select() methods to select elements from a collection by testing each element with a predicate (method that returns a boolean). Unfortunately, javascript does not have this capability. Here is the code to add a where() method to the javascript array class...

Read the full article

 

Thursday, June 18, 2009

Simple AJAX with jQuery

JQuery includes powerful ajax features for enriching the experience of a web application. This post will describe the simplest case, using ajax to replace part of a page with new content from the server...

Read the full article

 

Tuesday, June 16, 2009

How to Become a Web Development Freelancer

I mentioned somewhere that I am a freelancer and I got this email:

I am looking at getting into freelance web design and development myself. I was wondering if you would be kind enough to share some information with me about your experience? ...

Read the full article

 

Thursday, May 28, 2009

Telerik Rich Text Editor and ASP.NET MVC

The good people at Telerik have been kind enough to integrate their UI controls with the ASP.NET MVC framework so that we don't have to go without glorious and essential features like spell checking and paste-from-word...

Read the full article

 

Tuesday, May 26, 2009

My New Project

Over the last 12 months I have been doing a lot of work with geospatial web applications. That is a fancy way of saying web apps with maps. A recurring question has been, "given a list of places that a person wants to visit can we provide an optimal path for them to take?". The first time someone asked me this I responded like a programmer, "no, it's impossible...

Read the full article

 

Wednesday, May 20, 2009

Resize and Save Images with .NET

In this post I will present a service class for resizing and saving an image. The service has one public method, ResizeAndSave() which accepts a stream, a filename and a directory to save the file to. It uses a simple algorithm to rescale the image to fit into a maximum rectangle and then performs the actual resize using System.Drawing, and returns the dimensions of the resized image....

Read the full article

 

Monday, May 18, 2009

ASP.NET MVC Gravatar Helpers

Gravatar is a service that provides globally unique avatars linked to email addresses. Imagine you could include a user's gravatar in a view simply by passing their email address to a helper...

Read the full article

 

Sunday, May 17, 2009

Frankenserver - Part 1

...Combining these two facts I decided to build Frankenserver. The goal is to retrofit a desktop PC into a cheap 2 RU server case...

Read the full article

 

Wednesday, May 13, 2009

The Trouble With Agile

When a customer sponsors a software development project they want to know two things: how much will the project cost and when will the project be finished. The trouble with agile is that it cannot answer either of these questions with any degree of confidence...

Read the full article

 

Wednesday, May 06, 2009

Why You Should be Verifying Your Javascript (JSLint)

In an attempt to improve the user experience modern websites are using javascript more and more. If you are even remotely serious about performance then you need to merge your script files and minify the result. Minification is the process of removing unnecessary characters from a resource to reduce the size of the file.

You need to verify your javascript because javascript tries to tolerate errors. I'm going to go out on a limb and say that this is stupid. It can lead to a situation where invalid javascript works in its full form, but fails when minified.

...

Read the full article

 

Monday, May 04, 2009

Tackling Magic Strings in ASP.NET MVC Controllers

As others have pointed out Asp.Net MVC is full of magic strings. We use magic strings to...

Read the full article

 

ASP.NET MVC With Fluent HTML Helpers

The default Asp.Net MVC View Helpers use method overloads to allow customisation of the generated output...

Read the full article

 

Friday, May 01, 2009

ASP.NET MVC Conditional Rendering

Critics of ASP.NET MVC often point out that view code can end up looking a bit like classic ASP spaghetti code. Two of the major offenders are conditionals and loops in the view...

Read the full article

 

Monday, April 27, 2009

My Favourite Tools

Sometimes, very occassionally, I come across an application that is intuitive, simple and a joy to use. Things are where I expect them to be. There is a help system but I don't need to use it. Here are my favourites:

http://hackingon.net/post/My-Favourite-Tools.aspx
 

 

Copyright © Liam McLennan