Archive for the ‘Uncategorized’ Category

Konves.Testing

I wanted to be able to test non-public classes and members without having to use that awful generated stuff that MSTest builds.  I also didn’t want to have to reflect into an assembly in every single unit test.  The result ended up being a nice little rabbit trail project which proxies public or non-public classes [...]

Posted on March 2, 2014 at 9:31 pm by Steve Konves · Permalink · Leave a comment
In: Uncategorized

Nerd Sniped by Large Text Files

So I got nerd sniped pretty hard today with a software problem:

You have a text file such that:
• The file is too large to be loaded into memory
• Any record may be duplicated
Find:
• The top n most frequently occurring records in the file.

The solution for a small file is trivial. One simply needs to open a stream reader and load each line into a Dictionarysuch that if the key does not exist, add one for the current record add set the value to 1; if the key does exist, increment the value for the current record. At the end of the file, sort descending the dictionary by the values and then take the first n records. Bam balam. Easy-peasy.

Posted on March 4, 2013 at 11:20 pm by Steve Konves · Permalink · Leave a comment
In: Uncategorized

Slow Cheetah (VS Plugin)

http://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5 Do less with more! (Less effort with more projects … ok, lame.) This plugin supports config file transforms for all project types, not just web applications. Want to change configurations for dev, test, and production. It does that! Want to preview the transform before deploying. Yup it does that too. Want to instantly write [...]

Posted on November 29, 2012 at 11:13 am by Steve Konves · Permalink · Leave a comment
In: Uncategorized

Psalm Infographic

For the past year or so I have been compiling data from the Book of Psalms into an infographic which should be pretty self-explanatory. If you have any feedback as far as typographical errors, poorly worded explanations, or just bad kerning, please feel free to post a comment. Enjoy! This document sized as a 18″x24″ [...]

Posted on November 28, 2012 at 9:09 pm by Steve Konves · Permalink · Leave a comment
In: Uncategorized

Back to the drawing board

do { ViewDrawingBoard(newIdeas); }

Posted on March 5, 2012 at 9:54 am by Steve Konves · Permalink · Leave a comment
In: Uncategorized

Bots y u no leave me alone?

Am I really that boring?

Posted on December 13, 2011 at 9:09 pm by Steve Konves · Permalink · Leave a comment
In: Uncategorized