Colin Dabritz

Age: 32

I am a Systems Development Engineer at the Business Solutions Group in Corvallis, OR. It is an experiential learning program for students, hosted at Oregon State University.
Jan
15
comment Is there a way to run unit tests sequentially with MSTests?
Hi there! The reference mismatch was a typo, I've fixed it. I also added a link to the Mutex class for clarification. Mutex is a Microsoft-provided locking structure that uses a systemwide string for locking, so you want the string to be unique per set-of-things-you-want-to-serialize, which could be per test, or for different entire test classes. If you copy/paste the string everywhere, then every use of it will be serialized. Also note the 'OrderedTest' suggestions above, which is probably a better idea if it works for you. The Mutex (or other manual lock) approach is complicated.
Jan
15
awarded Custodian
Jan
15
reviewed Approve suggested edit on Is there a way to run unit tests sequentially with MSTests?
Oct
20
awarded Popular Question
Oct
10
revised What's the best way to compare the equality of two DateTime's in C#... but only to a certain precision?
Switched to UtcNow
Oct
8
answered Clipboard event C#
Oct
8
comment Clipboard event C#
This is a fantastic solution to the specific problem of enabling or disabling the paste command. Unfortunately it doesn't cover the specific "the text changed" scenario, and won't fire when copying multiple different lines text for example.
Jul
15
awarded Necromancer
Jun
4
comment Will apple store accept my custom status bar which will show for a moment in iphone?
This may well have changed, but the current HIG explicitly forbids custom status bars (but hiding is ok): developer.apple.com/library/ios/documentation/UserExperience/… "Don’t create a custom status bar. Users depend on the consistency of the system-provided status bar. Although you might hide the status bar in your app, it’s not appropriate to create custom UI that takes its place."
Mar
29
accepted SQL DATEDIFF coercion differences between databases on same SQL instance?
Mar
24
awarded Yearling
Mar
24
comment SQL DATEDIFF coercion differences between databases on same SQL instance?
This was originally posted in on stackoverflow here: stackoverflow.com/questions/29238048/…
Mar
24
awarded Student
Mar
24
awarded Yearling
Mar
24
answered SQL DATEDIFF coercion differences between databases on same SQL instance?
Mar
24
awarded Scholar
Mar
24
comment SQL DATEDIFF coercion differences between databases on same SQL instance?
This was the answer. So in this case datediff on Compatibility mode (SQL 2005) 90 or earlier fails, as it tries to do a datediff conversion with a datetime, and the date is out the valid range. Testing on (SQL 2008) 100 or later works, probably doing a better (working) conversion internally like datetime2. Thanks so much!
Mar
24
accepted SQL DATEDIFF coercion differences between databases on same SQL instance?
Mar
24
comment SQL DATEDIFF coercion differences between databases on same SQL instance?
Compatibility levels ARE different, nice catch. I'm testing and writing this up now. Thanks for the dd/day tip. I didn't write the code this was extracted from, but it's good to know about for future.
Mar
24
awarded Autobiographer
1 2 3 4 5