Matt Manela's Blog
Farblondzshet in code.
Browse by Tags
All Tags
»
Programming
(RSS)
ASP .NET
C#
CLR
Downloads
F#
Haskell
J
JavaScript
JQuery
LINQ
MSDN Code Gallery
Personal
Project Euler
Random Thoughts
Silverlight
Snippet Designer
SQL CE
testing
Tools
Visual Basic
Visual Studio
WHAT!
Windows
WPF
XAML
I finally got fed up with Enum.Parse
24 July 09 09:02 AM
|
MattManela
|
3 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 string type to make
Read More...
DRY and Unit Tests don’t mix well
12 July 09 08:08 PM
|
MattManela
|
0 Comments
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
Read More...
A functional take on console program loop in F#
13 April 09 09:51 PM
|
MattManela
|
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
Read More...
Synchronizing Scrollbars using JQuery
19 March 09 01:29 PM
|
MattManela
|
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
Read More...
Prime Factorization using Unfold in Haskell
17 March 09 06:53 AM
|
MattManela
|
1 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
Read More...
Code Assumptions
01 February 09 08:13 PM
|
MattManela
|
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
Read More...
Snippet Designer 1.1 Released
05 January 09 06:11 PM
|
MattManela
|
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
Read More...
Model Binder
15 December 08 10:45 PM
|
MattManela
|
0 Comments
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
Read More...
Updated JQuery ResizeComplete method
02 December 08 06:51 AM
|
MattManela
|
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.
Read More...
Rough draft of a new JQuery method
24 November 08 08:41 PM
|
MattManela
|
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
Read More...
Parameterized State Transformer Monad in F#?
04 November 08 09:30 PM
|
MattManela
|
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
Read More...
SQL CE 3.5 with LINQ to SQL Revisited
26 September 08 08:26 AM
|
MattManela
|
4 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
Read More...
SQL CE 3.5 with LINQ to SQL
09 September 08 02:04 PM
|
MattManela
|
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
Read More...
CollectionView.DeferRefresh() : My new best friend
28 August 08 02:23 PM
|
MattManela
|
2 Comments
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 collection
Read More...
I started playing with F#...
22 August 08 09:23 AM
|
MattManela
|
0 Comments
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: 3: let rec combos
Read More...
More Posts
Next page »
Search
This Blog
Home
About
Email
Tags
Applications
ASP .NET
C#
CLR
Codeplex
Comic
Downloads
F#
Funny
Games
Haskell
HTML
Internet Explorer
J
JavaScript
JQuery
LINQ
MSDN Code Gallery
PC
Personal
Powershell
pro
Programming
Project Euler
Random Thoughts
Regular Expression
RTF
Silverlight
Snippet Designer
Snippets
SQL CE
testing
Tools
Ubuntu
Visual Basic
Visual Studio
WHAT!
Windows
WPF
XAML
Archives
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)
Sites of Interest
XKCD
Mallory Emerson's Blog
Dori Manela's Blog
Peter Langsam's Blog
Joe Morel's Blog
Technical Blogs
Sara Ford's Blog
Beth Massi's Blog
Syndication
RSS 2.0
Atom 1.0
Farblondzshet