November 2011
1 post
Reviving My Blog
Just a quick note that I’m reviving my neglected blog.
- Lari
October 2008
2 posts
4 tags
[T]he vast majority of programming jobs are in businesses where programmers are...
– Amy Hoy
4 tags
Huh?
From MSDN - System.Data.ConnectionState :
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
yet
Note: The values in this enumeration are not designed to be used as a set of flags.
Huh? Then why did you give it a FlagsAttribute?
September 2008
1 post
4 tags
Bizarre Format Recognized as DateTime by...
In .Net 2.0:
So I had a situation where, given a string, I needed to know whether it was a date/time or not. Use DateTime.TryParse(), obviously.
This worked fine until we started feeding it strings in the form 111PM1 (three digits, “PM”, and another digit). These, it tells me, are really dates.
For example, ‘813PM4’ gets translated to ‘4/1/0813 12:00:00...
August 2008
3 posts
Fast Lightweight Expression Evaluator →
I’m trying this out for a situation where I need to evaluate expressions. If it works like the docs say it should, this will become one of my favorite libraries.
Update:
I did eventually go with FLEE, but ran into difficulties due to its need to know what types things are (that was awkward since I was feeding arbitrary values from a database record - they were coming back as object &...
How To Fix Dependency Could Not Be Found Errors...
Problem: When you add a script task or component to an SSIS (Sql Server Integration Services) 2005 package, you get errors like: “The dependency ‘Microsoft.SqlServer.DtsMsg’ could not be found” (other namespaces are possible). These are typically Microsoft dlls that are present in the GAC, yet Sql Server/Visual Studio can’t find them.
Solution: You have to copy the...
2 tags
Serializing a Dictionary in .Net →
You could use System.Collections.Specialized.NameValueCollection, but only if both your names and values are Strings. Here’s how (click the title) if you need something a bit more general.