Monthly Archive for: ‘July, 2004’
Lookout
Microsoft have acquired Lookout Software, manufacturers of a personal search-engine add-in for Outlook called Lookout. I’ve just given it a quick spin and it’s fantastic – for anyone who’s ever spent time hunting through thousands of old emails it’s a Godsend. In a few short minutes it has indexed 21,776 outlook items dating back four years, enabling me to find things I’d long since forgotten about. Download it here [860kb]
MSDN mag for $25/year
Yay! MSDN magazine is now available by air mail to “international” MSDN Universal subscribers for the bargainous price of $25 dollars a year (which is hardly anything in real money). That beats paying five quid a copy in Borders.
Is my string empty? Some C# performance metrics
Update (25/02/2006) – Hey, we now have String.IsNullOrEmpty, you know!
What’s the quickest way, in C#, to test whether a string is empty? This is a question which came to my mind yesterday. I’ve always been fond of:
if (myString==String.Empty)
but it occured that this necessitates the creation and destruction of a second object (the empty string with which we’re comparing), so maybe it would be quicker to write:
if (myString.Length==0)
And looking through some existing code I also found examples of:
if String.Equals(myString,String.Empty)
I decided that an experiment was in order, so wrote a quick windows application to try each method in turn. I was also interested to see if there was a difference in performance where the result was true than when it was false.
Here are the results, with times in milliseconds for 50 million iterations:
| true result | false result | |
| myString==String.Empty | 1172 | 2484 |
| myString.Length==0 | 531 | 531 |
| String.Equals(myString,String.Empty) | 611 | 1893 |
So there you have it. Experimental evidence that the fastest way to test for an empty string is to test whether it’s Length property is zero (and that this also takes exactly the same length of time irrespective of whether the result is true or false).. unless anyone knows of a quicker method? Of course, since we’re only saving ourselves around 50 nanoseconds per iteration against using the slowest method shown above, this is hardly going to result in a noticeable performance gain!!
Degree Confluence Project
A site I read about on Slashdot this morning should appeal to my many mathematically-inclined munro-bagging buddies, being as it is concerned with reaching arbitrary points on earth “because they’re there.”: The Degree Confluence Project. “The goal of the project is to visit each of the latitude and longitude integer degree intersections in the world, and to take pictures at each location.”
Wedding List (USA)
Now then. If it was up to me, I would be sending out links to Amazon wishlists in the hope of receiving CDs as wedding gifts, but Jocelyn has informed me that this simply isn’t the done thing. So it is that we have now "registered" with Macys.com to receive Vera Wang "Love Knots" Toasting Flutes and other strange things whose purpose I don’t understand. You can find our wedding wishlist thing by following this link.
For our British guests, worry not, we will be registering with a UK store in due course!
– Ian
We’re getting married!
On Easter Sunday 2004 Jocelyn Grace McGhee agreed to a proposal of marriage from myself, Ian Fraser Nelson. This website will, over time, hopefully provide our friends and family with the news and information they require in order to join us for our special day, which is scheduled for St. George’s Day 2005 (Saturday 23 April).
Our wedding is to take place in York, North Yorkshire, United Kingdom. We will be tying the knot at All Saints church on Pavement, followed by a reception and wedding breakfast at St. William’s College (York Minster conference centre).
More details will appear on this site as and when arrangements are made. Thanks to everyone for the many engagement cards and messages we received; they were all very much appreciated.
– Jocelyn & Ian
Taking the plunge
In recent months I have begun recoding the Filthy Lucre web site and associated systems, pretty much from scratch. The database has been redeveloped, the middle tier objects are just about finished, and some previously dodgy vbscript scheduled tasks have been replaced with a much more stable Windows service. It’s looking good.
So, now I’m at the stage where I want to redevelop (and enhance) the website, which is where most of the changes and rework will inevitably take place. The decision I have to face is whether to stick with coding it in VS2003, or take the plunge and use VS2005.
VS2005 looks great, and has lots of features which I know will save me much time – Master Pages, for example, will make life much easier than the convoluted basepage system we currently have to code manually to achieve the same results. I’m eager to get my hands dirty with VS2005, and use some of it’s new features in anger, on a real-world application, and I know that using it to redevelop the FLIC site would achieve this. But on the other side of the coin, it’s obviously still beta software, so I fear I’ll get so far down the site creation process before finding that some functionality I require isn’t yet implemented.
What to do, what to do? I think on balance I’m going to have to dive in head first and start getting used to 2005, even if it does have some quirks. By the time I’ve finished the FLIC redevelopment the RTM version will probably be on the shelves anyway
Picasa?!
I couldn’t resist. I don’t really understand what it is, or why I’d want it, but if it’s good enough for Google, it’s good enough for me…
Ah, OK, so now I’ve downloaded Picasa, and it’s just scanned all my photo directories. hmm, this is pretty cool – the organizational capabilities are much better than trying to rely on a tidy Windows directory structure alone. And I do like the red-eye reduction (although Jocelyn’s blue eyes appear brown). Interesting. But will I still be using it in three month’s time? And just what are Google up to?
Lexy’s getting hitched!
Congratulations to Alex on his recently-announced engagement to Susan! Am slightly gutted that you’re going to beat Jocelyn and I to the altar by getting married this November, but at least I’m not the last Grovey Roader to be tying the knot – c’mon Brucey boy, what are you waiting for?!








