Posts
  • Matthew Manela's Blog

    Making an executable take pipelined input in PowerShell

    It annoys me when I am working with PowerShell try to pipe the results of a cmdlet into a exe which doesn’t understand pipelined data.  To solve this problem I began aliasing some of the common programs I would like … Continue reading →
  • Matthew Manela's Blog

    FastSharp 2.0

    • 2 Comments
    I just released a new version of my FastSharp program. Download it   or  View the source code This release contains some notable enhancements: Support for multiple languages C# Visual Basic F# Persistence of your current code language and snippet...
  • Matthew Manela's Blog

    A StructureMap Gotcha

    I started converting one of the projects I work on to use the StructureMap DI/IOC framework. The previous framework I used was a super simple one that was built in house. When switching to StructureMap the plethora of options was a concern at first but...
  • Matthew Manela's Blog

    OpenWithTest released on Visual Studio Gallery

    • 2 Comments
    Download Either download from the extension manager by searching OpenWithTest or go to the project page here . Summary Open with Test is a Visual Studio extension which serves one simple task: To always open your test files and implementation...
  • Matthew Manela's Blog

    Snippet Designer 1.3 Released!

    • 2 Comments
    I just released Snippet Designer 1.3. CodePlex Page : http://snippetdesigner.codeplex.com/ Visual Studio Gallery Page: http://visualstudiogallery.msdn.microsoft.com/en-us/B08B0375-139E-41D7-AF9B-FAEE50F68392 The key features of this release are support...
  • Matthew Manela's Blog

    DiffPlex 1.1 Released

    I released a small update to DiffPlex that helps improve performance for both the release and debug builds.  I now also package the release build in the download zip file instead of the debug.  The release build shows a significant performance...
  • Matthew Manela's Blog

    A Mercurial PowerShell Prompt

    • 1 Comments
    Since switching to Mercurial I often use the “hg summary” command. hg summary [--remote] aliases: sum summarize working directory state This generates a brief summary of the working directory state, including parents, branch...
  • Matthew Manela's Blog

    DiffPlex 1.0 Released!!

    The DiffPlex ( http://diffplex.codeplex.com ) project is now available on Codeplex ! The DiffPlex project is a combination of a .NET Diffing Library with a Silverlight and HTML diff viewer. It is released open source under the MS-PL license. ...
  • Matthew Manela's Blog

    Snippet Designer 1.2 Beta Release with Visual Studio 2010 Support

    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#

    • 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#

    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

    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

    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

    • 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

    • 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

    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?

    • 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!

    • 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#

    • 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

    • 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

    • 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

    • 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

    • 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

    • 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

    • 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...
Page 3 of 6 (130 items) 12345»