Fun with Anonymous Types and LINQ

Anonymous types aren’t really meant for replacing that standard class or initialization, its much more advantageous to use it with the set based operations of LINQ. The example above may be somewhat contrived, but it’s handy that due to the inferred creation of the anonymously typed objects there was no need to create any classes.

A sign that you are no longer a startup.

Ok, so it is a really bad pun.  It is tough writing blog post titles sometimes.
Anyway, we finally got a beautiful metallic official sign for our office after inhabiting our office space for almost two years.  (Now if we could just do something about that door!). 
 
 
In our first office suite in Vienna [...]

Can you find the bug in this code? (THE FIX)

Thanks to everyone for contributing!  It was really neat to read everyone’s ideas and see the discussion and review (talking about code is always fun!).  Here is a summary of responses and the “fixed” code. 
If you are interested in the original problem, go here.
 
@drakiula: The idea with the Response.Redirect is that it will stop [...]

For once, not blogging wasn’t my fault

For the last couple of days, the weblogs.asp.net website has been unable to accept posts from Windows Live Writer.  For the first time in the history of this blog, I can blame someone else for not posting.  In fact, I even started queueing up draft blog posts!
Kudos to the weblogs.asp.net team for fixing [...]

Can you find the bug in this code?

This is a real bug that I came across yesterday in some code I had written about a week before.  I was a little surprised at the mechanics but it makes sense once you understand what is happening …

1: private void Foo()
2: {
3: [...]

Don’t surprise the user

You are probably getting ready to hear about some error dialog or weird setting in an application but not this time – it was a photocopier!  I was copying some printouts for a meeting and discovered midway through the job that the paper tray had fancy paper in it that I shouldn’t be using.  Not [...]

Cleaning the BlackBerry 8820 track ball

I love my 8820 … I have had it for about a year and it replaced my 8700 which I also loved.  I was a little skeptical when I first got the 8820 because the beloved thumb wheel was gone and replaced by a track ball in the middle of the phone.  But it didn’t [...]

Some photos from TechEd 2007

Kevin has posted some of our photos from TechEd 2007.

My personal favorite was the Secret Server remote office at the Orlando airport bar – 4 geeks all with laptops!
TechEdwas very different for me this year since it was my first experience as an exhibitor and not an attendee (I didn’t attend a single [...]

5 things you don’t know about me (probably)

This has been going around for a while and Andy finally got me.

I was born and raised in Johannesburg, South Africa (yes, that gives me a funny accent!).
I worked for a few years in London (my folks are British).
My first professional programming language was Perl (and I still dabble in it every now and then).
I [...]

Upgrading memory in the Toshiba M400 Tablet PC

My new laptop is a Toshiba M400 Tablet PC – it only came with 1GB RAM which I planned to upgrade. I ordered two 1GB sticks of M400–compatible RAM from EZ-Computer (EDGE MEMORY – PERIPHERAL KTT667D2/1G-PE 1GB PC25300 NONECC UNBUFF 200PIN DDR2 SODIMM). When the sticks arrived, I started poking around the back of the [...]

Pair Programming at DC Extreme Programming User Group tonight!

I will be presenting on Pair Programming (something wepractice daily at Thycotic) tonight at the Washington DC Extreme Programming User Group. The session involves an exercise (which I have blogged about before) but it is always interesting to hear peoples opinions and past experiences. Pair Programming is definitely something that can have great effect in [...]

How agile is your country?

Google’s new Trends service (which
appears to be the old Zeitgeist but now on
demand) allows you to find out what people are searching on.
I tried it with a number of different Microsoft agile terms and was surprised
at the results:

It is only a relative comparison without any real numbers or drilldown
capability so it is hard [...]

Duplicate column name weirdness in ADO.NET

I came across the following issue the other day
with a very large stored procedure that had *lots* of columns.
Unfortunately I had introduced a duplicate column name by using “as” in my SQL
but things definitely work as I expected. Take a look for yourself

1 using (SqlConnection connection = new SqlConnection(”user id=x;password=y;server=localhost;”))
2 {
[...]

John Morales is blogging!

John Morales joined thycotic back in October and has
been impressing us since the start with his knowledge ofkeyboard shortcuts
(howoften do you see *your* fellow developers writing their own macros in
VS.NET?), Regular Expressions, Resharper, DotLucene and his ability to
solveproblems. After a little prodding, we now have him blogging with a few gems already on
Regular
Expressions, a
great CruiseControl.NET [...]

DC Housing Market versus 70-320

This weekend we purchased a condo in the Washington DC area and I passed the Microsoft 70-320 exam (”Developing XML Web Services and Server Components with Microsoft Visual C# .NET and the Microsoft .NET Framework”). The natural question for any techie then would be: which was harder?
Let’s weigh up the contenders:
DC House Purchase

Compete with at [...]

Adding CAPTCHA to FlexWiki

Blog spam sucks but being hosted on weblogs.asp.net doesn’t leave a lot of options at the moment. Blog spam couldseenas a personal attack on your good nature and an attempt to mess with your small expression outlet to the rest of the world? Wiki spam on the company wiki however,is outright war!
Thanks to [...]

C# Teaser – The Tricky Ternary Teaser?

Today we came across a little quirk that is worth sharing. Big thanks to Bob Flanders and Jeff Schoolcraft for help in figuring out the quirk.

The Rules:

Prize (a Thycotic keyring light) to be mailed to the firstcomment with the correct answer(s) on this blog post withvalid contact information.
My definition of the problem is the correct [...]

Programming Contest by EggHeadCafe … just Regex?

Rafael Munoz pointed me towards a Programming Contest By EggHeadCafein his latest MVP Update Newsletter. Reading through their criteria …
2. All occurrences of an in a sentence must be replaced by un. 3. Replace all occurrences of au in a sentence with oo 4. Inside any word (ie., after the first character):replace all a’s not [...]

Rosebud. Or is it RoseBud? (Hashtable)

Last night at the WinProTeam .NET UG Rockville Meeting, Carney Clegg spoke on “Using Hashtables Effectively”.
Of course, my burning question on Hashtables was …
Why is it Hashtable and not HashTable as the .NET Design Guidelines would indicate?
The question went unanswered last night with only my guess that it was kept the same to keep transitioning [...]

CShark and other interesting .NET related license plates?

It has finally arrived – a personalized license plate (or tag in DMV jargon) from the DMV. After them first issuing the plate which never arrived – then refusing to do anything about it when called, then the kind souls at AAA issued a new plate so we could complete this years registration for the [...]

Syndicate this site using RSS The latest comments to all posts in RSS Subscribe in Google Reader
Furl It! Add to My MSN Digg It!