Jonathan Cogley's Blog
C#, Test Driven Development, Pair Programming, MVP C#, ASPInsider, Secret Server
Browse by Tags
All Tags
»
.NET
»
Fun
(
RSS
)
.NET User Groups
Blogging
General Software Development
Refactoring
Software Development
Can you find the bug in this code? (THE FIX)
Wednesday, March 26, 2008 12:30 PM
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...
Read More...
Can you find the bug in this code?
Tuesday, March 25, 2008 8:04 AM
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: try 4: { 5: AuthenticationInfo authenticationInfo = GetAuthenticationInfo(Request.QueryString[ "t" ]); 6: Authenticator...
Read More...
Duplicate column name weirdness in ADO.NET
Monday, April 10, 2006 7:11 PM
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...
Read More...
John Morales is blogging!
Wednesday, December 28, 2005 9:17 AM
John Morales joined thycotic back in October and has been impressing us since the start with his knowledge of keyboard shortcuts (how often do you see *your* fellow developers writing their own macros in VS.NET?), Regular Expressions, Resharper, DotLucene and his ability to solve problems. After a little prodding, we now have him blogging with a few gems already...
Read More...
DC Housing Market versus 70-320
Sunday, March 27, 2005 11:15 AM
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 least 10 other...
Read More...
Adding CAPTCHA to FlexWiki
Tuesday, January 11, 2005 12:44 PM
Blog spam sucks but being hosted on weblogs.asp.net doesn't leave a lot of options at the moment. Blog spam could seen as 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 Jeff for pointing me towards Miguel Jimenez's Clearscreen...
Read More...
C# Teaser - The Tricky Ternary Teaser?
Thursday, December 23, 2004 1:05 AM
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 first comment with the correct answer(s) on this blog post with valid contact information . My definition of the problem is the correct one. :) Other answers...
Read More...
Programming Contest by EggHeadCafe ... just Regex?
Thursday, December 09, 2004 1:05 AM
Rafael Munoz pointed me towards a Programming Contest By EggHeadCafe in his latest MVP Update New sletter. Reading through their criteria ... <snip> 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 followed by whitespace...
Read More...
Rosebud. Or is it RoseBud? (Hashtable)
Friday, September 10, 2004 5:03 PM
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 Java developers...
Read More...
CShark and other interesting .NET related license plates?
Sunday, April 04, 2004 11:33 PM
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 car and issued a request to the DMV to reissue the plate which...
Read More...
More Posts
Go
This Blog
Home
Contact
Links
Tags
.NET
.NET User Groups
Agile
ASP.NET
Blogging
Books
Code Camp
Continuous Integration
Design Patterns
DevConnections
Extreme Programming
Fun
General Software Development
ISV
Java
jquery
Microsoft DevDays
Microsoft Partner
Open Source
Pair Programming
PDC
PghDotNet
Refactoring
RegEx
Remote Scripting
Security
SharePoint
Software Development
SQL Server
TDD
TeamLead
TechEd
Test Driven Development
VB.NET
Navigation
Home
Blogs
Archives
October 2011 (1)
May 2011 (1)
April 2011 (1)
March 2011 (3)
December 2010 (1)
October 2010 (1)
August 2010 (2)
July 2010 (2)
April 2010 (2)
March 2010 (4)
February 2010 (2)
December 2009 (2)
November 2009 (7)
August 2009 (1)
July 2009 (2)
June 2009 (2)
May 2009 (3)
April 2009 (5)
March 2009 (2)
April 2008 (5)
March 2008 (10)
February 2008 (1)
January 2008 (4)
December 2007 (2)
November 2007 (2)
October 2007 (2)
August 2007 (1)
July 2007 (2)
June 2007 (3)
May 2007 (3)
April 2007 (3)
March 2007 (7)
February 2007 (4)
January 2007 (4)
December 2006 (1)
November 2006 (3)
October 2006 (6)
August 2006 (2)
July 2006 (2)
June 2006 (2)
May 2006 (3)
April 2006 (5)
March 2006 (4)
February 2006 (2)
January 2006 (5)
December 2005 (9)
November 2005 (1)
October 2005 (2)
September 2005 (9)
August 2005 (2)
July 2005 (2)
June 2005 (3)
May 2005 (4)
April 2005 (6)
March 2005 (5)
February 2005 (1)
January 2005 (2)
December 2004 (3)
November 2004 (8)
October 2004 (12)
September 2004 (5)
August 2004 (1)
July 2004 (3)
June 2004 (1)
May 2004 (6)
April 2004 (2)
March 2004 (3)
February 2004 (5)
January 2004 (2)
December 2003 (3)
October 2003 (2)
September 2003 (2)
August 2003 (1)
Syndication
RSS
Atom
Comments RSS