Archive for July, 2006

Ciao!

Monday, July 31st, 2006

Vacation photo!

Three guesses where we are…

Hey, She Sounds Kinda Familiar

Friday, July 28th, 2006

We heard shanamadele on the radio this morning. Cool!

Rails Fu

Thursday, July 27th, 2006

The Ruby coolness just keeps on coming.
For the other app I’m writing, I have a “next actions” list at the bottom of every page, to give the users, who may not be terribly computer-savvy, some prompts about what they can do next.
I’ve got a dozen pages or so, and already I’ve been rather inconsistent in [...]

Pencil Neck Geek

Thursday, July 27th, 2006

So I’ve been noticing that more and more, I tend to want to blog about programming (especially how freakin’ cool Ruby is). Given that most of the people I know of that read this (especially via the LJ feed) aren’t remotely interested in programming, I’m considering starting a geek blog, and leaving this one [...]

Date Range Formatting in Ruby

Thursday, July 27th, 2006

In the app I’m writing for work, I keep running into objects that have date ranges associated with them — time periods with a start and end date. (For example: pay periods, timecards, holidays, etc.)
I wanted a simple way to print a description of such a range, preferably one that didn’t require me [...]

I’d Vote For Him

Thursday, July 27th, 2006

Molly Ivins suggests running fellow Texan Bill Moyers for President.
Hell, I’d volunteer for the campaign.

Among My People

Wednesday, July 26th, 2006

At OSCAMP, hanging around waiting for an interesting topic that comes up at 4pm. A guy just swooped by on a Segway, attracting virtually no attention.
[UPDATE: five minutes later, someone else rode by on a Zappy3 Pro. Looks like almost as much fun, slightly quieter, and about a fifth of the price.]

Best Bogus Spammer Name

Wednesday, July 26th, 2006

Caught by my spam filters this morning: a message from one Eigenvalue J. Flintlock. Most amusing.

Of Great Theoretical And Practical Importance

Monday, July 24th, 2006

A Dictionary of Useful Research Phrases sent to me by my friend Steve.

Mister Language Person

Saturday, July 22nd, 2006

Mister Language Person took the bus into the office yesterday, because it was effin’ hot and he didn’t feel like riding his bike in 100-degree weather. On the way, MLP espied the following sign. See if you can spot what’s wrong with this picture…

I’m guessing this is just a sneaky way to recruit [...]

Now With More Web 2.0!

Thursday, July 20th, 2006

Generate your own animated AJAX indicator here. Note the scrawled-looking text at the top…

Stupid Ruby Tricks

Tuesday, July 18th, 2006

Say you’re writing a test, and you want to create three new client objects, called client1 through client3.
In Java, you’d do something like this:

Client client1 = new Client();
Client client2 = new Client();
Client client3 = new Client();

…and if that looked ugly, well, that’s Java for you.
Here’s a Ruby equivalent.

client1, client2, client3 = *(1..3).collect { |i| Client.new [...]

On Teaching Programming

Sunday, July 16th, 2006

Over at Coding Horror, which is quickly becoming one of my favorite blogs, there’s a mention of a recent academic paper about teaching programming. Since one of my long-term goals is to teach programming, it seemed worthwhile to read.
I’m of two minds on teaching programming: on the one hand, I think this kind [...]

My Desktop Is (Probably) Bigger Than Yours

Friday, July 14th, 2006

For almost a month now, I’ve been using a dual-monitor setup: my original 17″ Dell LCD monitor (1280×1024) has become my secondary display, and for the primary I’m using a 20″ widescreen Viewsonic VX2025wm (1680×1050, CNET review).
The Viewsonic, by the way, is an excellent monitor, equivalent in size to Apple’s $799 Cinema Display, but [...]

This Just In

Wednesday, July 12th, 2006

Sledgehammers are heavy. Swinging them is hard. Fun, but hard.

Mister Language Person

Wednesday, July 12th, 2006

My call will not be answered “in the order it was received.” It should, rather, be answered in the order IN WHICH it was received.
To quote a character from Pulp Fiction: “English, motherfucker! Do you speak it?”

I Could Just Cry

Wednesday, July 12th, 2006

Our house has a tiny little laundry room — and I do mean tiny. When we moved in, it had a crappy old washer and dryer side by side, but no dishwasher… so we replaced those items with a rolling dishwasher and one of those Equator all-in-one washer/dryer combo units. The Equator never [...]

Secret Grown-Up Knowledge

Sunday, July 9th, 2006

It is apparently quite difficult to find a patio set after the 4th of July.
Especially if you wait until the last day of the sale to make up your mind, and discover that they’ve sold out of the one you wanted.

Aerial Photographs

Thursday, July 6th, 2006

Photos taken from the sky that look like extremely elaborate models: “Olivo Barbieri’s aerial photographs” on Signal vs. Noise.
Really fun stuff — and, for once, not about programming. (= Definitely check out the links in the comments, too.

Short And Sweet

Wednesday, July 5th, 2006

The following code snippet should illustrate why I like Ruby (and Rails) so much:
  def require_login
    redirect_to ‘/login’ and return false unless user_logged_in?
  end
That’s even more readable than Visual Basic, which, despite its other flaws, is quite approachable by non-programmers.
Granted, there’s a lot in Ruby that provokes a bit of head-scratching on first glance, but even in the [...]