Tim’s Blog

  • Function Name Instead of Lambda in Linq Functions

    I did not realize that functions can fill in for predicates directly without lambda notation. To illustrate, consider the following: void Main() { var words = new List<string>() { “therapists”, “s words”, “slang”, “mustache”, “sean connery” }; var s_words = words.Where(w => w.StartsWith(“s” ,StringComparison.CurrentCultureIgnoreCase)); foreach(var word in s_words) { Console.WriteLine(word); } } It works, but…

  • MSpec “Hello World” Sample

    I’ve been working with MSpec lately. It’s a BDD framework for .Net. Here’s a hello world type example that uses Trace Writing to show a little bit about what it does. using System; using Machine.Specifications; using System.Diagnostics; namespace UnitedIndustrial.DataImportConcerns { [Subject(“Sample”)] public class SampleConcerns { static string _myString; Establish _context = () => { _myString…

  • Hardware Problem on Desktop Fixed

    It’s a long story, so here’s the SuperUser.com posting.

  • Mary Kate watches me work

    Mary Kate watches me work, originally uploaded by thoolihan.

  • Emacs on Windows Over SSH with Putty Tools

    With a little help from StackOverflow, I got emacs over ssh working on windows. This is trivial on mac/linux, but can be a challenge on windows. dired mode works too! To summarize: 1. Download putty installer with all the tools. 2. Put putty install in the path 3. Generate a key with PuttyGen 4. Copy…

Got any book recommendations?