Monday, April 30, 2007

#Résumé

An HR-XML compatible résumé API for creating and manipulating standardized resume formats. The API is implemented in .NET 2.0 using C#.

Learn more about the HR-XML Consortium here.

Download #Résumé from CodePlex here.

The initial release is the most basic implementation for generating basic resume format documents.

Submit this story to DotNetKicks

Friday, April 27, 2007

VladStudio: Excellent Desktop Wallpaper Resource

I'm a little neurotic about my desktop wallpaper. As a developer, I spend an inordinate amount of time staring at my computer. Granted, I'm rarely looking at a blank desktop but I like to have something tasteful and artistic when I want to access something on my desktop with my Win+D key chord.

One day I was sitting by a business analyst while collaborating on a project and noticed his nice desktop image. He introduced me to VladStudio, a Russian artist who has been pumping out hundreds of beautiful designs. He even has a system tray application called Companion than can change your wallpaper based on a custom schedule or whenever you just decide you need a new look by just double-clicking the system tray icon.

He provides low-resolution images for free that are still gorgeous. But you can get lifetime access to high resolution images for under $30.00 US. The registration is worth it if only to help him to keep creating designs. I registered several months ago, and he has since added widescreen resolutions images that look even better on my big wide Gateway.

The best part is the the images are very tasteful. I never have to worry about walking away from my workstation and returning to find an email from the HR department. Now I have people asking me where I got my nice desktop image. :-)

Submit this story to DotNetKicks

JavaScript String.format() method.

A while back I worked on a pretty heavy duty JavaScript interface that required, as is typical in any UI, a lot of string manipulation. I became tired of building strings with concatenation, they had a tendency to get unwieldy. I wrote this simple string formatting utility for building strings similiar to C#.

The best way to use it is to put it into an external JavaScript source file and reference it throughout the project.

Although the method has only one defined argument it will accept any number of arguments. If you provide more or less arguments than you define in your string they will not cause an error, they will be ignored.

String.format = function( text )

{

    //check if there are two arguments in the arguments list

    if ( arguments.length <= 1 )

    {

        //if there are not 2 or more arguments there's nothing to replace

        //just return the original text

        return text;

    }

    //decrement to move to the second argument in the array

    var tokenCount = arguments.length - 2;

    for( var token = 0; token <= tokenCount; token++ )

    {

        //iterate through the tokens and replace their placeholders from the original text in order

        text = text.replace( new RegExp( "\\{" + token + "\\}", "gi" ),

                                                arguments[ token + 1 ] );

    }

    return text;

};



You can test the method with these simple tests.

//simple tests

document.write( String.format( "no tokens<br />" ) );

document.write( String.format( "one token, no args ({0})<br />" ) );

document.write( String.format( "one token, one args ({0})<br />", "arg1" ) );

document.write( String.format( "one tokens, two args ({0})<br />", "arg1", "arg2" ) );

document.write( String.format( "two tokens, two args ({0},{1})<br />", "arg1", "arg2" ) );

document.write( String.format( "two tokens swapped, two args ({1},{0})<br />", "arg1", "arg2" ) );

document.write( String.format( "four tokens interwoven, two args ({0},{1},{0},{1})<br />", "arg1", "arg2" ) );

Submit this story to DotNetKicks

Free Image: Old Timey Register

From Creative Commons

Submit this story to DotNetKicks

Free Image: Old Wheel by a Tree

From Creative Commons

Submit this story to DotNetKicks