Nicholas Clarke

  • rss
  • Home
  • Articles
  • Downloads
  • Contact

If programmers were to make a plane

Nick Clarke | February 18, 2008

This is a great advert and very true if you develop on the fly (pardon the punt) or conform to Agile development e.g. Scrum.

Defiantly something I can relate to.

Comments
1 Comment »
Categories
Adverts, Development
Comments rss Comments rss
Trackback Trackback

FastSharp - Rapid C# Scripting

Nick Clarke | February 17, 2008

Today I had to update a regular expression that I have not touched in two years!

On first look I got the old hhmm where do I start :)

(?<Protocol>\w+):\/\/(?<Subdomain>\w+)\.(?<Domain>\w+)\.(?<tlDomain>[\w.]+)/(?<File>.*)

This matches:

http://subdomain.url.com/Default.aspx

And breaks it into:

Protocol: http
Subdomain: subdomain
Domain: url
tlDomain: com
File: Default.aspx

But the problem starts when you have a - (dash) in the subdomain:

http://a-subdomain.url.com/Default.aspx

This of course fails as I use \w to break up the subdomain string, which just matches alphanumeric characters. All I need to do is to allow - as well as a-zA-Z0-9 (\w).

The final expression was:

(?<Protocol>\w+):\/\/(?<Subdomain>[\w-]+)\.(?<Domain>\w+)\.(?<tlDomain>[\w.]+)/(?<File>.*)

- Change marked in red

Simple change but testing this takes some time as I either have to run my complete application or write a small test program.

Last week Matt Manela on the msdn blog shared a great application that allows you to test C# code without having to even write a class or create a project.

FastSharp is a great tool for testing out some code. It even goes as far as checking for compilation errors.

FastSharp Compile Error

This was caused by me not adding the correct library for the Regex class.

To fix this all I had to do was click settings and then add the using statement.

using System.Text.RegularExpressions;

FastSharp Success

My little code snippet then ran fine and I was able to test and adapt my change very fast.

Great tool be sure to check it out + for more in depth into why and how it was coded see Matt’s post.

Comments
2 Comments »
Categories
Development, Microsoft
Comments rss Comments rss
Trackback Trackback

The truth behind the software project life cycle

Nick Clarke | January 11, 2008

Yesterday I installed the Stumbleupon Firefox toolbar as I ran out of unread blog posts and wanted something random to read. On my first click on the Show next page button I was taken to a great interpretation of the software project life cycle :)

Software project life cycle

I’m sure every developer can relate to this in some way.

Comments
No Comments »
Categories
Development
Tags
Software
Comments rss Comments rss
Trackback Trackback

Disk space is a premium

Nick Clarke | December 7, 2007

While installing Visual Studio 2008 on my PC I started to get the not so friendly Windows low disk space pop-up. This was odd as I thought I had lot of spare space! So I opened up Windows Explorer to see what I could find only to find nothing. My PC has files all over the place put there by all kinds of programs.

Then I remembered WinDirStat, this program turned out to be my saviour.

After leaving it run for 10 minutes it came back with a very nice psychedelic version of my hard drive:

WinDirStat GUI Sample

Not my real hard drive

On closer inspection I found that I had many unused Virtual PC instances and old ISO images.

WinDirStat is broken up into three sections each of which offers a different view of your data:

  • TreeView

Shows the disk usage summary from a group of folders down to file level

  • Type list

Colour coded with the psychedelic view so that types can been seen easily.

  • Psychedelic colour view

This is by far the best view and with a quick glance you can see where all of your disk space has gone.

No matter what view you are in, selecting or hovering over any of the items will highlight the area in the psychedelic view and provide you with more information about the file. Its odd to see the same patterns repeated by user directories or the sheer size of virtual PC images.

Once you have found what you are looking for the application allows you to clean up the files directly by using the delete key or the clean up menu.

This is a great application and I have since seen some of my colleagues running it and playing with the psychedelic view.

Comments
No Comments »
Categories
Development, Software
Tags
Software, WinDirStat
Comments rss Comments rss
Trackback Trackback

Microsoft running at full steam

Nick Clarke | December 6, 2007

It seems that you can wait ages for something to finally be released by Microsoft. For example I started .Net with Visual Studio 2005 beta only to wish for the RTM version and then SP1. SP1 came along only for me to wish that I had 2008. All of this due to bugs and missing/cut features.

It seems that Microsoft is coming to the end of a massive development cycle as there are lots of projects starting to stick their heads above water (Microsoft Firewall).

These are some that I have noticed including some links:

Silverlight 2.0 - Beta Q1 of 2008
ASP.Net 3.5 Extensions - Public release due
IIS 7.0 – Coming early 2008 with the new version of Windows Server
ASP.Net MVC – Preview any time now with the supported release in the first half of 2008

  • ASP.Net MVC Framework Part 1 - Overview
  • ASP.Net MVC Framework Part 2 - URL Routing
  • ASP.Net MVC Framework Part 3 - Passing ViewData from Controllers to Views

Windows Vista SP1 – Just got RC so RTM will not be too far away
Parallel FX – Preview out now

  • Programming in the Age of Concurrency - Anders Hejlsberg and Joe Duffy: Concurrent Programming with PFX
  • Daniel Moth Parallel Extensions
  • Parallel FX Team Blog

Visual Studio 2008 – Out now for MSDN subscribers with the official release being February.
.Net 3.5 – Out now
.Net Source Code – Coming soon
LINQ – Out now

  • Architecting LINQ to SQL applications, part 1 - Architecture for LINQ to SQL
  • Architecting LINQ to SQL applications, part 2 - What is LINQ?
  • Architecting LINQ to SQL applications, part 3 - DAOs and Repositories
  • Architecting LINQ to SQL applications, part 4 - Dynamic Queries

Volta - Technology preview
Expression Service Packs – Out now
XNA Game development platform – RTM Coming Soon

I’m sure I have missed some, but even so this is quite an impressive list to release at the same time especially when some of these are linked.

All of this makes me wonder what Microsoft is working on that we have not yet heard about. Oh how great it would be if I could to be a fly on their wall. As this is not possible I guess the next best thing is Channel9 :)

So I guess the wait continues. I’m looking forward to the first half of next year.

Comments
No Comments »
Categories
ASP.Net, Development, Microsoft, Visual Studio
Tags
Microsoft, Roadmap
Comments rss Comments rss
Trackback Trackback

Managing Humans

Nick Clarke | November 16, 2007

Looking for a unique way to sell a book!? Well this definitely caught my eye.

The book is called “Managing Humans” and is written by the same author who wrote “The Nerds Handbook“. The promotional site has got a really nice touch that you have to click through a series of cool slides telling a little story to get the actual pitch.

I may add this to my Amazon wish list, as it sounds quite interesting.

Managing Humans

Comments
No Comments »
Categories
Books, Development
Tags
Managing Humans, The Nerds Handbook
Comments rss Comments rss
Trackback Trackback

Want a Time Machine?

Nick Clarke | November 15, 2007

Ok, it’s not quite H. G. Wells’s Time Machine as you will not be moving anywhere.

Ever wished you had not deleted a file or even worse not knowing when and where it vanished from your hard drive. Well Apple has created a way to jump through time from the comfort of your office chair, if you own a Mac with the new 10.5 Leopard Operating System you can do just that.

Own a MAC? Stop here and check out Time Machine.

For the rest of us who do not own a Mac there is still hope!

Alas there is no snazzy Star Wars style GUI, but rsync is the right tool for the job.

Lifehacker links to a great resource on how to setup your own Time Machine style backup solution.

Comments
No Comments »
Categories
Development
Tags
Apple, Mac OS, Rsync, Time Machine
Comments rss Comments rss
Trackback Trackback

NicholasClarke.co.uk running on Google’s Android

Nick Clarke | November 14, 2007

Yesterday I downloaded the Android SDK for Googles new mobile platform and this lunch time I get to play with it :)

Downloaded, Installed and now what! I know check out my own site:

Google Android

I guess now it is time to take a look into how you code one of these mobile applications.

Comments
1 Comment »
Categories
Development, Google
Tags
Android, Google, Open Handset Alliance
Comments rss Comments rss
Trackback Trackback

Size Matters!

Nick Clarke | November 8, 2007

Move over TinyURL a bigger alternative is coming through!

http://nicholasclarke.co.uk

TinyURL:
http://tinyurl.com/yux94d

HugeURL:
http://www.hugeurl.com/?N2FkNDcwNWQzZWUyMzZkN2U4OTFh
NmVhZGE1YjBmMDMmMTImVm0wd2QyUXlVWGxXYTJoV1YwZG9
WVll3Wkc5alJsWjBUVlpPV0Zac2JETlhhMUpUVmpGYWMySkVUb
GhoTWsweFZqQmFTMk15U2tWVWJHaG9UVmhDVVZadGVGWm
xSbGw1Vkd0c2FsSnRhRzlVVjNOM1pVWmFkR05GZEZSTlZUVkp
WbTEwYTFkSFNrZGpTRUpYVFVad1NGUlVSbUZqVmtaMFVteFN
UbUY2UlRGV1ZFb3dWakZhV0ZOcmJGSmlSMmhZV1d4b2IwMHh
XbGRYYlVaclVsUkdXbGt3WkRSVk1rcElaSHBHVjJFeVVYZFpWRVp
yVTBaT2NscEhjRlJTVlhCWlZrWldhMVV5VW5OalJtUllZbFZhY1Zsc
ldtRmxWbVJ5VjI1a1YwMUVSa1pWYkZKRFZqQXhkVlZ1V2xaaGEx
cFlXa1ZhVDJOdFNrZFRiV3hYVWpOb1dGWnRNSGRsUjBsNFUydG
thVk5GV2xSWmJHaFRWMVpXY1ZKcmRGUldiRm93V2xWb2ExWXd
NVVZTYTFwWFlrZG9jbFpxU2tabFZsWlpXa1prYUdFeGNGbFhhMV
poVkRKT2MyTkZaR2hTTW5odlZGVm9RMWRXV1hoWGJYUk9VakZ
HTlZaWE5VOVdNa3B5VGxac1dtSkdXbWhaTVZwaFpFZE9ObEpyT
lZkaVdGRjZWakowVTFVeFduSk5WVlpUWWtkU1lWUlZXbUZOTVZ
weFVtMUdUMkpGY0ZwWGExcHJZVWRGZUdOSE9WZFdSVXBvVm
tSS1QyUkdUbkphUmxKcFZqTm9XVlpYY0U5aU1XUkhWMjVTVGxk
SFVsWlVWM1J6VGtaYVdHUkhkRmROVjFKSldWVmFjMWR0U2toaF
JsSmFUVlp3VkZacVNrZFNiRkp6Vkcxc1UySnJTbUZXYTFwaFlqSkZl
VkpyWkZoaWF6VnhWVEJvUTFsV1VsWlhibVJPVFZad2VGVXlkREJX
TVZweVkwWndXR0V4Y0ROWlZXUkdaV3hHY21KR1pGZE5NRXBKV
m10U1IyRXhaRWRWYmtwaFVteEtjRlpxVG05a2JGcEhWbTA1VWsx
WFVucFdNalZMVjBkS1NGVnRSbGRoYTFwSVZHdGFZVmRIVWtoa1
IyaHBVbGhCZDFkV1ZtOVVNVnAwVW01S1ZHSlhhRmhaVkVaM1pX
eHJlV1ZJWkZOV2ExcDVWREZrYzFVd01IbGhSbXhYWWxoQ1RGUnJ
aRVpsUm1SellVWlNhVkp1UW5oV1YzaHJWVEZzVjFWc1dsaGhNMU
paVlcxNGMwMHhaSEpXYWtKV1RVUkdXVlpYY0VkV01ERjFZVWhL
V2xaWFVrZGFWV1JQVTBkR1IyRkhiRk5pYTBwMlZtMTBVMU14Vlh
oWFdHaFdZbXhhVjFsc1pHOVdSbEpWVTIwNWEwMVdjSGhWVjNo
aFlUQXhSVkpzVGxaU2JFWXpWVVpGT1ZCUlBUMD0=

We now have a choice :)

So if you don’t care about using up more bandwidth, and screen real estate then bigger is better.

Classic idea, but I guess it will not be the next big thing.

Thanks to Wired for pointing out this alternative to TinyURL.

Comments
No Comments »
Categories
Development
Tags
HugeURL, TinyURL
Comments rss Comments rss
Trackback Trackback

Palm + Android = Happiness?

Nick Clarke | November 6, 2007

Palm + Android = Happiness?

About 6 years ago I owned a Palm device, so it is a shame to hear that Palm is falling on hard times. Maybe Google’s Android could be what they have been looking for, as it has been rumored for a while that Palm are developing a Linux based OS for themselves.

For me Palm was always like how the Mac is to the PC market, summed up in one word: Style

Engadget has a nice post on its thoughts on the possible Android and Palm partnership.

Update: Palm confirms that there will be no partying with the little green robot.

Comments
No Comments »
Categories
Development, Google
Tags
Android, Google, Mobile OS, Palm
Comments rss Comments rss
Trackback Trackback

« Previous Entries

Pages

  • Articles
  • Contact
  • Downloads

Categories

  • Adverts (4)
  • Books (2)
  • Business (3)
  • Development (21)
  • Google (4)
  • Microsoft (15)
    • ASP.Net (1)
    • SQL Server (1)
    • Visual Studio (3)
  • Music (3)
  • Personal (16)
  • PHP (2)
  • Software (1)
  • WordPress (3)

Archives

  • February 2008 (3)
  • January 2008 (4)
  • December 2007 (2)
  • November 2007 (13)
  • October 2007 (25)
  • September 2007 (1)

Google Reader Shared Items

    Shared Items
    rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox