Posted on May 8, 2007 by Adam Esterline
Scott Hanselman has a great post about “Garage Sale Code”. I decided to do my part and provide a link to my “Garage Sale Code”.https://esterline.devguard.com/svn/code/If you have any questions about the code, please feel free to ask.
Filed under: Blog | Tagged: Ruby, Snippets | No Comments »
Posted on April 1, 2007 by Adam Esterline
On Friday, Brian and I were discussing how to assign a block to a variable in Ruby. I knew how to pass a block as a method argument def method(&proc), but I could not remember how to just assign a block to a variable. I finally looked up the [...]
Filed under: Blog | Tagged: howto, Ruby, Snippets | No Comments »
Posted on March 8, 2007 by Adam Esterline
Today, I wanted to place constraints on a multi-type generic. Here is my starting point.public class MultiTypeGeneric<A,B>I wanted to put a constraint on A and B. I did several Google searches to find the syntax. There were suggestions, but none of them seemed to work. Here [...]
Filed under: Blog | Tagged: howto, Snippets | No Comments »
Posted on August 19, 2006 by Adam Esterline
I was working with some networking protocols in C# and I needed a way to convert from a string to byte[] and back again. It took a little time to find the answer, so I thought I would write it down for the next time that I would need it.The secret is in [...]
Filed under: Blog | Tagged: howto, Snippets | 4 Comments »