LOSE not LOOSE, DEFINITELY not DEFINATELY

I’m so tired of seeing “loose” used for the word “lose” all over the web. This seems to be an increasingly common grammatical error. If Lose and Loose were to get in a fight, I think Lose might actually lose, especially if they were to fight in a loose manner. I wonder where this misspelling originated from? Maybe it has something to do with the ridiculous nature of English spelling … I mean, doesn’t “luze” make more sense?...

August 19, 2008 · 1 min · Justin Langhorst

A Big Smile ... Ruby and Erlang

A big smile appeared on my face tonight after typing the following: -module(math1). -export([factorial/1]). factorial(0) -> 1; factorial(N) -> N * factorial(N-1). def factorial(n) return 1 if n == 0 n * factorial(n-1) end Maybe not so obvious. But check this out: -module(temp). -export([convert/2]). convert({fahrenheit, Temp}, celsius) -> {celsius, 5 * (Temp -32) / 9}; convert({celsius, Temp}, fahrenheit) -> {fahrenheit, 32 + Temp * 9 / 5}; convert({reaumur, Temp}, celsius) -> {celsius, 10 * Temp / 8}; convert({celsius, Temp}, reaumur) -> {reaumur, 8 * Temp / 10}; convert({X, _}, Y) -> {cannot,convert,X,to,Y}....

August 25, 2006 · 3 min · Justin Langhorst

Adding to the Ruby Logger

I’ve been working on some new code at work for a new install. Unfortunately, I’m unable to use the new framework just yet (mainly because it’s not complete), and I needed a workaround for the Ruby Logger to be able to accept .trace calls (we usually use Log4r. Here’s my workaround: require 'logger' # Redefine the Logger to allow for TRACE calls. class Logger module Severity TRACE = -1 end def trace?...

June 23, 2006 · 1 min · Justin Langhorst

Giant Steps Animation

John Coltrane has long been one of my favorite artists. Giant Steps was indeed, a successful album and song of Coltrane’s and I was definitely happy to see that someone put this music to animation.

June 22, 2006 · 1 min · Justin Langhorst

Happiness

I’ve been very happy lately. It’s not all that often that I’m actually in a bad mood, but lately, I’ve been in a really good one. Tonight, after a 12-14 hour work day, I jumped in my car, let the front windows down, threw in Yankee Hotel Foxtrot (Wilco), turned up the volume, and couldn’t stop smiling. I’m not sure if it was just the music or if it was a combination of that, the nice breeze of cool air, and the fact that I was practically done for the day....

June 6, 2006 · 2 min · Justin Langhorst

Spelling Test: E and C

Somewhere between third and fifth grade, I took a particular spelling test in which there was a relatively short word that contained the letter “e.” My writing of a lowercase “e” often looks like a “c” as I do not give it the care that it much deserves (more on this, never). After we had exchanged papers and finished the grading, the girl who graded mine had a question about this particular word containing the lowercase “e....

September 3, 2004 · 2 min · Justin Langhorst