danintouch.blogspot.com
dan in touch with the obvious: April 2009
http://danintouch.blogspot.com/2009_04_01_archive.html
Dan in touch with the obvious. Marching through the trenches with clown shoes on. Wednesday, April 15, 2009. I was recently porting and updating some old Pascal postcode validation to C# and thought i'd stick it up here. To tell the truth, the Pascal code is more concise. Pascal, VB, Ruby etc have means to test a range of values in a single case statement. Unfortunately C# doesn't provide for this contingency, hence the "fall through's" in the case blocks. VIC: 3000-3999, 8000-8999.
danintouch.blogspot.com
dan in touch with the obvious: Australian Postcode Validation
http://danintouch.blogspot.com/2009/04/australian-postcode-validation.html
Dan in touch with the obvious. Marching through the trenches with clown shoes on. Wednesday, April 15, 2009. I was recently porting and updating some old Pascal postcode validation to C# and thought i'd stick it up here. To tell the truth, the Pascal code is more concise. Pascal, VB, Ruby etc have means to test a range of values in a single case statement. Unfortunately C# doesn't provide for this contingency, hence the "fall through's" in the case blocks. VIC: 3000-3999, 8000-8999. SUBSTRING(@testpostco...
danintouch.blogspot.com
dan in touch with the obvious: VIM on OpenVMS
http://danintouch.blogspot.com/2008/09/vim-on-openvms.html
Dan in touch with the obvious. Marching through the trenches with clown shoes on. Tuesday, September 2, 2008. This is a note to future Dan and anyone else that may have file permission problems when running VIM. Dan$ define DECC$ACL ACCESS CHECK ENABLE. Apparently when disabled the access function only checks the UIC protection and not. There are all other kinds of goodies here. Subscribe to: Post Comments (Atom). Returning lambdas from a ternary in C#. South Australia, Australia. View my complete profile.
danintouch.blogspot.com
dan in touch with the obvious: Returning lambda's from a ternary in C#
http://danintouch.blogspot.com/2008/09/returning-lambdas-from-ternary-in-c.html
Dan in touch with the obvious. Marching through the trenches with clown shoes on. Wednesday, September 24, 2008. Returning lambda's from a ternary in C#. In the midst of some mad refactoring I came across something similar to the following snippet:. Choice.Finish = result = { return. Choice.Finish = result = { letter.MailMerge(result); };. Looked like a decent candidate for refactoring with a ternary / conditional operator:. Choice.Finish = (count = 0. Result = { return. Hold your horses, say what?
danintouch.blogspot.com
dan in touch with the obvious: SVN 1.5.1 / Ruby bindings on Windows
http://danintouch.blogspot.com/2008/08/svn-151-ruby-bindings-on-windows.html
Dan in touch with the obvious. Marching through the trenches with clown shoes on. Monday, August 11, 2008. SVN 15.1 / Ruby bindings on Windows. Rather than messing around with compiling swig. Download the ruby bindings from the svn site: ( http:/ subversion.tigris.org/files/documents/15/43245/svn-win32-1.5.1 rb.zip. From the zip - copy ruby lib svn. Into c: ruby lib ruby site ruby 1.8 svn. From the zip – copy ruby ext svn ext. Into c: ruby lib ruby site ruby 1.8 svn ext. Where can I find updated binaries?
danintouch.blogspot.com
dan in touch with the obvious: January 2008
http://danintouch.blogspot.com/2008_01_01_archive.html
Dan in touch with the obvious. Marching through the trenches with clown shoes on. Saturday, January 26, 2008. Things have been pretty hectic at the moment but recently I found a little bit of time to contribute to JRuby. I highly recommend it. The lads are doing a whole lot of good and could do with the help. Charlie wrote a post a while back on how to contribute. Go read it. now . seriously, and do something for the betterment of mankind. Subscribe to: Posts (Atom). South Australia, Australia.
danintouch.blogspot.com
dan in touch with the obvious: Home Town Hero - That's How I Know
http://danintouch.blogspot.com/2008/05/home-town-hero-thats-how-i-know.html
Dan in touch with the obvious. Marching through the trenches with clown shoes on. Saturday, May 31, 2008. Home Town Hero - That's How I Know. Hopping back in the time machine to 2002 a slightly rockin' album came out - Home Town Hero - Self Titled. It sounds a little grungy like The Exies. And a little power-poppy like Rooney. They had some minor successes opening for STP. I gave their new LP a listen, i just couldn't get into it. I think it has validly been classified as disco-rock :). 3- - - -2- - - -0...
danintouch.blogspot.com
dan in touch with the obvious: June 2008
http://danintouch.blogspot.com/2008_06_01_archive.html
Dan in touch with the obvious. Marching through the trenches with clown shoes on. Saturday, June 14, 2008. Subscribe to: Posts (Atom). South Australia, Australia. View my complete profile. Philz @ geekygecko.com.
danintouch.blogspot.com
dan in touch with the obvious: May 2008
http://danintouch.blogspot.com/2008_05_01_archive.html
Dan in touch with the obvious. Marching through the trenches with clown shoes on. Saturday, May 31, 2008. Home Town Hero - That's How I Know. Hopping back in the time machine to 2002 a slightly rockin' album came out - Home Town Hero - Self Titled. It sounds a little grungy like The Exies. And a little power-poppy like Rooney. They had some minor successes opening for STP. I gave their new LP a listen, i just couldn't get into it. I think it has validly been classified as disco-rock :). 3- - - -2- - - -0...
danintouch.blogspot.com
dan in touch with the obvious: September 2007
http://danintouch.blogspot.com/2007_09_01_archive.html
Dan in touch with the obvious. Marching through the trenches with clown shoes on. Friday, September 21, 2007. I like perusing public code repositories, be they CVS/SVN/Mercurial/Git whatever. I'm not sure if this is some kind of sick code voyeurism fetish but I think it's kind of healthy in degrees. It's a good place to pick up tricks. Kind of like doing the weekly ruby quiz. But looking at the code before you know what the task is and seeing how closely you think they correlate to the spec. Apart from t...