jmglov.blogspot.com
jmglov: August 2010
http://jmglov.blogspot.com/2010_08_01_archive.html
Friday, August 13, 2010. Test Driven Development by Example, in Ruby. I have long been interested in the Ruby programming language. Luckily for me, I've just gotten a job which requires me to write code in Ruby, meaning that I finally have to learn Ruby properly. The hardest part of learning a new language for me is finding an interesting and somewhat challenging problem to work on with the new language. Little exercises like the Towers of Hanoi. Or the Fibonacci sequence. 5 10 CHF = $10 if rate is 2:1.
jmglov.blogspot.com
jmglov: Ruby Light #6
http://jmglov.blogspot.com/2011/04/ruby-light-6.html
Wednesday, April 06, 2011. This is the most complicated bit of meta-programming in Ruby Light so far. Johan and I cooked it up; the beautiful plumbing is his, the basis of the. Rebinding trick is mine. The intent is as follows: for each request to a Rails controller, redirect unless all of the URL query parameters you get are valid. And this is how it actually works:. When Rails loads the. Module, resulting in it getting the. Class methods and the. Redirect if unknown params. Instance methods (et al.).
jmglov.blogspot.com
jmglov: Ruby Light #4
http://jmglov.blogspot.com/2011/03/ruby-light-4.html
Friday, March 11, 2011. Str = EvalString.new "foo bar". Subscribe to: Post Comments (Atom). View my complete profile. Blogs that I Read. Rude Boy, Rude Girl. Wil Wheaton dot Net.
jmglov.blogspot.com
jmglov: November 2010
http://jmglov.blogspot.com/2010_11_01_archive.html
Friday, November 05, 2010. If you are writing a book, essay, or blog entry about software development, please refrain from all of the following:. Lame references to how everyone in offices drink coffee. Lame references to Mondays. Seriously, have we learned nothing from Office Space? Subscribe to: Posts (Atom). View my complete profile. Blogs that I Read. Rude Boy, Rude Girl. Wil Wheaton dot Net.
jmglov.blogspot.com
jmglov: Using googletest and googlemock in Eclipse
http://jmglov.blogspot.com/2011/04/using-googletest-and-googlemock-in.html
Friday, April 29, 2011. Using googletest and googlemock in Eclipse. Since my answer on Stack Overflow. Doesn't seem to be getting any attention (and thereby helping no-one), I figured I'd post it here. :). Here's the summary for people already familiar with Eclipse. Created a new C project in Eclipse (I chose Executable Empty Project). Downloaded googletest 1.5.0. Untarred, and ran. Scripts/fuse gtest files.py . Back in Eclipse, excluded the. Directory from the Release build configuration, and added.
jmglov.blogspot.com
jmglov: March 2009
http://jmglov.blogspot.com/2009_03_01_archive.html
Wednesday, March 11, 2009. How Long Must We Sing This Song? From the New York Times. CRAIGAVON, Northern Ireland — Barely three days after two British soldiers were shot to death by a dissident faction of the Irish Republican Army, another I.R.A. breakaway group claimed responsibility on Tuesday for an ambush that killed a police officer on Monday night in this town 25 miles southwest of Belfast. That's the bad news. The good news (or at least, better news), is this (from the same article.
jmglov.blogspot.com
jmglov: Ruby Light #1
http://jmglov.blogspot.com/2011/02/ruby-light-1.html
Thursday, February 24, 2011. Series is for Ruby code dumps that amuse me for one reason or another, possibly including commentary. Here's the first one:. See: http:/ thinkingdigitally.com/archive/capturing-output-from-puts-in-ruby/. Def capture stdout(out = StringIO.new). Def use my stdin(instream). Input data = [. Rank', # index 0. Name', # index 6. Category', # index 7. 123', # index 0. Foo', # index 6. Bar', # index 7. Converter = Converter.new. Output = capture stdout do. View my complete profile.
jmglov.blogspot.com
jmglov: May 2009
http://jmglov.blogspot.com/2009_05_01_archive.html
Saturday, May 30, 2009. Essays in Idleness 01: Singularities and Data Storage. I posit the following theorem: that cosmic phenomena that have one or more attributes that are infinite (or approaching infinity quickly enough to be considered effectively infinite) resist direct observation. Now what if I want to make observations about one or more characteristics of the matter? Say, I want to write down a simple binary value (i.e. true or false) that represents whether each particle of matter is a b...So le...
jmglov.blogspot.com
jmglov: September 2007
http://jmglov.blogspot.com/2007_09_01_archive.html
Sunday, September 30, 2007. Dusk, Dawn, and 30-Day Challenges. Note: This post is old old old, and is being published now just for the sake of self-ridicule; none of my 30 day challenges were met, and only one was even begun. Frequent readers of this blog will need no introduction to my good friend and erstwhile roommate, Ota. Frequent readers of this blog will also know that I subscribe to the Neal Stephenson. Never-say-in-100-words-what-you-can-say-in-1000 school of writing, so said (illusory? Lingual ...