-
Recent Posts
- Making an executable take pipelined input in PowerShell
- FastSharp 2.0
- A StructureMap Gotcha
- OpenWithTest released on Visual Studio Gallery
- Snippet Designer 1.3 Released!
- DiffPlex 1.1 Released
- A Mercurial PowerShell Prompt
- DiffPlex 1.0 Released!!
- Snippet Designer 1.2 Beta Release with Visual Studio 2010 Support
- Regex based Lexer with F#
Categories
- Algorithms
- ASP .NET MVC
- C#
- Codeplex
- Dependency Injection
- DiffPlex
- F#
- FastSharp
- Haskell
- HTML
- J Language
- JavaScript
- JQuery
- LINQ
- LINQ to SQL
- Mercurial
- Moq
- Open Source
- Personal
- PowerShell
- Programming
- Regular Expression
- RTF
- Silverlight
- Snippet Designer
- Snippets
- SQL CE
- structuremap
- testing
- Tools
- Visual Basic
- Visual Studio
- Visual Studio Gallery
- WPF
- XAML
Monthly Archives: March 2008
Parameterized State Transformer Monad in F#?
I have have been playing around with F# and I decided to create a state monad. This worked out really well since I was able to leverage the F# computation expressions. I then decided to try to extend this and … Continue reading
Posted in F#
Leave a comment
What annoys me when writing generic functions in Visual Studio…
When writing a generic function I start from left to right (the same way I write most things except when I took Yiddish in college). For example, Lets say I am writing a simple generic method which return the first … Continue reading
Posted in C#
Leave a comment
SQL CE 3.5 with LINQ to SQL Revisited
A few days ago I made a post about using SQL CE 3.5 with LINQ to SQL. I described a way to use connection pooling with SQL CE. A gracious blog reader (Mike Brown) pointed out a way I could … Continue reading
Posted in LINQ to SQL, SQL CE
Leave a comment
The Snippet Designer is Released!!!!
Some History The Snippet Designer was started as an intern project of mine during the Summer of 2006. The idea was to make snippet files (which were introduced to Visual Studio in 2005) a first class entity. Following this idea … Continue reading
Posted in Open Source, Snippet Designer
Leave a comment
SQL CE 3.5 with LINQ to SQL
Using LINQ to SQL with SQL CE 3.5 can be a bit of a challenge. First off, the LINQ to SQL Visual Studio designer doesn’t support SQL CE so you need to run sqlmetal from the command line to create … Continue reading
Posted in LINQ to SQL, SQL CE
Leave a comment
CollectionView.DeferRefresh() : My new best friend
Well, maybe not best friend but its a nice function. When working with bound collections in WPF you often end up dealing with a CollectionView. This is the MSDN documentation description of a CollectionView : You can think of a … Continue reading
Posted in WPF
Leave a comment
I started playing with F#…
I decided to do some Project Euler problems using F#. So here is my first one, Problem # 31. Nothing in this solution really shows off anything special about F# but you have to start somewhere ;) 1: #light 2: … Continue reading
Posted in F#
Leave a comment
Generic Insert and Update for LINQ To SQL
Quick code snippet time! The following are generic methods for inserting and updating a detached entity into a database using LINQ to SQL. 1: /// <summary> 2: /// Updates the database with item. 3: /// </summary> 4: /// <typeparam name=”T”>Type … Continue reading
Posted in LINQ to SQL
Leave a comment
Worst Case Scenario for QuickSort
Take a look at the following code: 1: var sw = new Stopwatch(); 2: sw.Start(); 3: Enumerable.Range(0, 3).SelectMany((i) => Enumerable.Range(0, 50000)).OrderBy(i => i).ToList(); 4: Console.WriteLine(sw.ElapsedMilliseconds); 5: 6: sw.Reset(); 7: sw.Start(); 8: Enumerable.Range(0, 2).SelectMany((i) => Enumerable.Range(0, 50000)).OrderBy(i => i).ToList(); 9: Console.WriteLine(sw.ElapsedMilliseconds); … Continue reading
Posted in Algorithms, C#
Leave a comment
The two most important WPF Tools
I have been working a lot with WPF and I found the following two FREE tools to be extremely helpful. The first is: XamlPadX – (http://blogs.msdn.com/llobo/archive/2007/12/19/xamlpadx-v3-0.aspx) This is an enhanced version of XamlPad which comes with the .NET SDK. This … Continue reading
Posted in WPF
Leave a comment

