Welcome to MSDN Blogs Sign in | Join | Help

November 2005 - Posts

C# Content Strategist...

I got an email from Elden Nelson (the alter-ego of this guy ), who is a muckety-muck (well, perhaps only a single muckety) in MSDN, and he let me know that there is an opening for MSDN for the C# Content Strategist, a position that at one time was held
Posted by ericgu | 0 Comments
Filed under:

debugging tips

VS debugger developer Jim Griesmer has been blogging a series of debugger tips . I'm pretty excited about tracepoints - the ability to add in logging code without having to modify your code seems really useful.
Posted by ericgu | 0 Comments
Filed under: ,

Dave Zabriskie website...

Monday, I came across a reference to a website by Team CSC racer Dave Zabriskie in, of all places, a copy of Bicycling magazine. Bicycling is not known for their race coverage in the same way as Seattlelites are not know for their winter driving prowess.
Posted by ericgu | 3 Comments
Filed under:

Guide for snowboarders

A while back, I wrote a "tongue in cheek" reference comparing snowboarders to drivers with cell phones . I got some negative feedback, including from my good friend Nick (reader #5 out of 20 total readers). On further reflection, I think that I may have
Posted by ericgu | 9 Comments

Regex 101 Exercise S6 - Change the extension on a file

Regex 101 Exercise S6 - Change the extension on a file Given a filename including path, change the extension to .out. Input string example: C:\utility\Processor.cs Notes: The best answer to this is really to use System.IO.Path.ChangeExtension(), but that
Posted by ericgu | 12 Comments

Background processing in ASP.NET

As part of my bicycle climbs website, I need to spend some time calling a web service to fetch the elevation of 250 different points. Each call takes a few seconds. Ideally, what I would have is a way to start the processing but not have it block my normal
Posted by ericgu | 11 Comments

Disappointed...

Last night, I went on a bike ride with Richard Feynman (1918-1988). This was his first long ride, and like many less experienced riders, he was unprepared and got dehydrated, ultimately running off the edge of a road on a descent. The group retrieved
Posted by ericgu | 5 Comments
Filed under:

Regex 101 Answer S5 - Strip out any non-letter, non-digit characters

Remove any characters that are not alphanumeric. Answer: To remove these characters, we will first need to match them. We know that to match all alphanumeric characters, we could write: [a-zA-Z0-9] To match all characters except these, we can negate the
Posted by ericgu | 5 Comments

Peanut butter and software

Brad wrote an interesting post about peanut buttering software, in which he asks if I've ever seen that. Yes, I've seen it. Numerous times. Within a given team, it doesn't happen that often. The problem is when you get to multiple teams. When you start
Posted by ericgu | 0 Comments

Ad Homonym

Ad Homonym: The practice of attacking a person rather than the argument itself merely because it is expressed in words that sound alike.
Posted by ericgu | 4 Comments

Regex 101 Exercise S5 - Strip out any non-letter, non-digit characters

An easy one for this holiday week... S5 - Strip out any non-letter, non-digit characters Remove any characters that are not alphanumeric from a string.
Posted by ericgu | 7 Comments

Regex 101 Exercise S4 - Extract load average from a string - Discussion

Exercise S4 - Extract load average from a string The shop that you work with has a server that writes a log entry every hour in the following format: 8:00 am up 23 day(s), 21:34, 7 users, load average: 0.13 You need to write a utility that lets you track
Posted by ericgu | 2 Comments

The mystery of Indian bread

This week at a team dinner - which we sometimes do if people are staying late - we had indian food. Rice, various curries, and a package of the Indian bread known as " Nan " (pronounced "nahn"). I like rice, and I'm open to a nice vindaloo now and then,
Posted by ericgu | 8 Comments

Regex 101 Exercise S4 - Extract load average from a string

Exercise S4 - Extract load average from a string The shop that you work with has a server that writes a log entry every hour in the following format: 8:00 am up 23 day(s), 21:34, 7 users, load average: 0.13 You need to write a utility that lets you track
Posted by ericgu | 9 Comments

Skiing and Cycling

We've had unseasonably cold and wet conditions for the last few weeks, and that's meant that our local ski areas - which had a disastrous ski year last year - have opened earlier than the past 20 seasons, so we headed up to Stevens Pass yesterday. Warren
Posted by ericgu | 5 Comments

Regex 101 Exercise S3 - Validate a zip+4 zip code - Discussion

Exercise S3 - Validate a zip+4 zip code. The US has a 5 digit zip code with an optional 4 digit suffix. Write a regex to validate that the input is in the proper format: Sample strings 98008 98008-4893 **** This one is fairly similar to what we've done
Posted by ericgu | 8 Comments

C# Express for a very low price...

Cyrus breaks the news . Well, not really - it was actually Dan , but he succumbed to his marketing tendencies, and used "Announcing the release of Visual Studio 2005 Express Editions" as his title. So, for the next year, the express versions will be freely
Posted by ericgu | 2 Comments
Filed under: ,

Regex 101 Exercise S3 - Validate a zip+4 zip code

Exercise S3 - Validate a zip+4 zip code. The US has a 5 digit zip code with an optional 4 digit suffix. Write a regex to validate that the input is in the proper format: Sample strings 98008 98008-4893 I'm going to keep comments enabled in case people
Posted by ericgu | 2 Comments
Filed under:

Paying attention in physics class pays off BIG!

After vacillating for months, Canon came up with the Kurosawa of rebate offers (ie compelling but really hard for me to understand), and I ordered a new Digital Rebel 350 XT from, of all places, Amazon. Amazon usually tends to be more expensive, especially
Posted by ericgu | 10 Comments
Filed under:

Regex 101 Exercise S2 - Verify a string is a hex number - Discussion

[Update: got rid of the 0x in front of the sample string...] Our task was the following: S2 - Verify a string is a hex number Given a string, verify that it contains only the digits 0-9 and the letters a through f (either in uppercase or lowercase). Sample
Posted by ericgu | 1 Comments

Persisting complex objects...

Q: I am on a large C# project with a fortune 500 company, and one of our first design challenges is how to persist large, complex objects. We have 1000's of users, so bw is an issue. When a user requests this object to edit, they may only edit one field
Posted by ericgu | 13 Comments
Filed under: ,

Over the weekend...

There I was, minding my own business, without a care in the world. And then it happened... Well, to be truthful, it was at least partly my fault. Perhap I should back up a bit. I was at home, at about 5:15, glueing gravel to my face. It was going pretty
Posted by ericgu | 4 Comments
 
Page view tracker