Sign in
Matthew Manela's Blog
Options
About
Email Blog Author
RSS for posts
Atom
OK
Search
Tags
C#
Chutzpah
Codeplex
Downloads
F#
Haskell
JavaScript
JQuery
LINQ
MSDN Code Gallery
NuGet
Open Source
Personal
Powershell
Programming
Snippet Designer
testing
Tools
Visual Basic
Visual Studio
Visual Studio 2012
Visual Studio Gallery
Windows
WPF
XAML
Archive
Archives
April 2013
(2)
January 2013
(1)
October 2012
(2)
September 2012
(3)
July 2012
(1)
June 2012
(3)
April 2012
(1)
March 2012
(1)
February 2012
(1)
December 2011
(2)
November 2011
(2)
September 2011
(3)
August 2011
(1)
July 2011
(1)
June 2011
(4)
May 2011
(3)
April 2011
(1)
March 2011
(2)
February 2011
(1)
January 2011
(2)
December 2010
(1)
November 2010
(1)
October 2010
(1)
September 2010
(3)
August 2010
(3)
June 2010
(2)
April 2010
(2)
February 2010
(1)
January 2010
(3)
December 2009
(1)
November 2009
(1)
September 2009
(1)
July 2009
(2)
May 2009
(1)
April 2009
(2)
March 2009
(3)
February 2009
(1)
January 2009
(2)
December 2008
(2)
November 2008
(2)
October 2008
(1)
September 2008
(3)
August 2008
(5)
July 2008
(1)
June 2008
(4)
May 2008
(3)
April 2008
(4)
March 2008
(8)
February 2008
(3)
January 2008
(3)
December 2007
(7)
November 2007
(4)
October 2007
(3)
August 2007
(2)
MSDN Blogs
>
Matthew Manela's Blog
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Matthew Manela's Blog
Snippet Designer 1.2 Beta Release with Visual Studio 2010 Support
Posted
over 3 years ago
by
Matthew Manela
Yesterday I released Snippet Designer 1.2 Beta. Codeplex Page: http://snippetdesigner.codeplex.com/ Visual Studio Gallery Page: http://visualstudiogallery.msdn.microsoft.com/en-us/B08B0375-139E-41D7-AF9B-FAEE50F68392 This release contains several...
Matthew Manela's Blog
Regex based Lexer with F#
Posted
over 3 years ago
by
Matthew Manela
2
Comments
This lexer allows you to define your regular expression based rules in a very declarative way using F# computation expressions. open Lexer let definitions = lexerDefinitions { do ! addNextlineDefinition " NEWLINE " @" (\n\r)|\n|...
Matthew Manela's Blog
Regex based Lexer with F#
Posted
over 3 years ago
by
Matthew Manela
This lexer allows you to define your regular expression based rules in a very declarative way using F# computation expressions. open Lexer let definitions = lexerDefinitions { do! addNextlineDefinition "NEWLINE" @"(\n\r)|\n|\r" do!... Continue...
Matthew Manela's Blog
Count the number of lines in your project with one line of Powershell
Posted
over 4 years ago
by
Matthew Manela
ls * -recurse -include *.aspx, *.ascx, *.cs, *.ps1 | Get-Content | Measure-Object -Line Just replace the file extensions with the ones you use in your project.
Matthew Manela's Blog
Useful Moq Extension Method
Posted
over 4 years ago
by
Matthew Manela
I have been working with ASP .NET MVC and I use the Moq mocking library to help test the code I write. Often in ASP MVC anonymous objects are passed around as function arguments. This is especially common in calls to RouteUrl. Since I want to be able...
Matthew Manela's Blog
Converting RTF to HTML
Posted
over 4 years ago
by
Matthew Manela
2
Comments
Have you ever had the desire to convert some RTF text into HTML? Probably not. But if you do, then you are in luck! I recently had the need to do this conversion and after some searching found out a way to do it by enhancing a sample distributed in the...
Matthew Manela's Blog
I finally got fed up with Enum.Parse
Posted
over 4 years ago
by
Matthew Manela
4
Comments
I don’t know why I didn’t do this long ago, but I am done writing this: var val = (SomeEnum)Enum.Parse( typeof (SomeEnum),”someString”); I have typed this too many times and it annoys me. I wrote a small extension method on the...
Matthew Manela's Blog
DRY and Unit Tests don’t mix well
Posted
over 4 years ago
by
Matthew Manela
When reading source code, I sometimes come across unappealing code(sometimes even my own). However, there is one kind of “bad code” I see quite frequently. It is a set of unit tests which have had the DRY (Don't Repeat Yourself) principle...
Matthew Manela's Blog
How to teach your girlfriend Hexadecimal?
Posted
over 4 years ago
by
Matthew Manela
1
Comments
It is an age old question: How do you teach your girlfriend hex? I encountered this problem when I was a web developer in college for a late night student activities program aptly named Late Nite Binghamton. My co-worker and girlfriend Mallory was a...
Matthew Manela's Blog
Snippet Designer in April’s MSDN Magazine!
Posted
over 4 years ago
by
Matthew Manela
1
Comments
I am excited to announce that the Snippet Designer is featured in the April issue of MSDN Magazine. It is featured in the Toolbox column where they highlight useful tools and blogs....
Matthew Manela's Blog
A functional take on console program loop in F#
Posted
over 4 years ago
by
Matthew Manela
1
Comments
Often when learning a new technology I start with a simple console application in which the program is run in a loop it continues to prompt you for more input until you give some command like quit or exit or whatever you choose: Enter input: someInput...
Matthew Manela's Blog
Synchronizing Scrollbars using JQuery
Posted
over 4 years ago
by
Matthew Manela
1
Comments
I just wrote this simple plugin for JQuery which lets you synchronize the scroll bars of any collection of elements. This lets you move the scrollbar of one div it have the scrollbars’ of the rest of the divs move the same exact amount. Here is...
Matthew Manela's Blog
Prime Factorization using Unfold in Haskell
Posted
over 4 years ago
by
Matthew Manela
3
Comments
I randomly yesterday started thinking about the unfoldr function in Haskell while working out at the gym (how nerdy is that, I am lifting iron but thinking of functional programming). Unfoldr take a single and an unfolding function and turns it into a...
Matthew Manela's Blog
My xUnit.net Visual Studio Code Snippets
Posted
over 4 years ago
by
Matthew Manela
1
Comments
The xUnit .Net codeplex page lists one useful Visual Studio code snippet for creating a Fact. As you can tell I am fairly fond of code snippets so I created a few more which I use when writing xUnit.net facts. These are one line snippets that I find very...
Matthew Manela's Blog
Code Assumptions
Posted
over 4 years ago
by
Matthew Manela
1
Comments
My co-workers and I recently came across a piece of code which exposed some assumptions we had about the “correct” behavior of two functions; these assumptions turned out to be false. The code dealt with determining if the IP of a request...
Matthew Manela's Blog
Snippet Designer 1.1 Released
Posted
over 4 years ago
by
Matthew Manela
3
Comments
I just released Snippet Designer 1.1. This is not a major release but just some bug fixes and often requested changes to make the snippet designer more useful. Some of the most notable changes are: Languages Service are turned OFF by default...
Matthew Manela's Blog
Inline Regular Expression Options
Posted
over 4 years ago
by
Matthew Manela
1
Comments
I was using attributes from the System.ComponentModel.DataAnnotations namespace for model validation. This namespace includes a few very useful validation attributes such as Required Attribute – Validates the field has a value Range...
Matthew Manela's Blog
Model Binder
Posted
over 5 years ago
by
Matthew Manela
When working with a multi-tier application I often find myself converting from one of the tiers object models to my own similar (but often different) model. I often write code that would set one by one each property from a web tier object to my...
Matthew Manela's Blog
Updated JQuery ResizeComplete method
Posted
over 5 years ago
by
Matthew Manela
1
Comments
I made 2 slight changes and I think it works pretty well now. I now detect if the browser is Firefox and use the regular resize event since its resize behaves like a resizeComplete. I also modified the timeout a bit since I think 100 ms might be too small...
Matthew Manela's Blog
Rough draft of a new JQuery method
Posted
over 5 years ago
by
Matthew Manela
1
Comments
I have run into issues recently with the browsers' implementation of the resize event on the window. Opera, Safari, IE and Firefox all have different behaviors when this event is fired. Firefox only fires it when you release the mouse. IE fires this event...
Matthew Manela's Blog
Parameterized State Transformer Monad in F#?
Posted
over 5 years ago
by
Matthew Manela
2
Comments
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 make it more general by creating a parameterized...
Matthew Manela's Blog
What annoys me when writing generic functions in Visual Studio...
Posted
over 5 years ago
by
Matthew Manela
6
Comments
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 element of a generic list. I want...
Matthew Manela's Blog
SQL CE 3.5 with LINQ to SQL Revisited
Posted
over 5 years ago
by
Matthew Manela
5
Comments
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 make my solution much simpler by using the [ ThreadStatic ] attribute...
Matthew Manela's Blog
The Snippet Designer is Released!!!!
Posted
over 5 years ago
by
Matthew Manela
4
Comments
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 I created a Visual Studio...
Matthew Manela's Blog
SQL CE 3.5 with LINQ to SQL
Posted
over 5 years ago
by
Matthew Manela
2
Comments
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 the object model (or write it by hand). Once you get past...
Page 3 of 5 (122 items)
1
2
3
4
5