Archive for August, 2007

Just another example of why I love Ruby…

Wednesday, August 22nd, 2007
class JobRequestMatrix < Matrix
  def initialize(r, collection_method,
                 x_method, x_label_method,
                 y_method, y_label_method)

    x_labels = r.send(collection_method).collect { |i|
        i.send(x_method).send(x_label_method)
      }.uniq
    y_labels = r.send(collection_method).collect { |i|
        i.send(y_method).send(y_label_method)
      }.uniq

    super(y_labels.length+1, x_labels.length+1)

    r.send(collection_method).each do |item|
      x = x_labels.index(item.send(x_method).send(x_label_method)) + 1
      y = y_labels.index(item.send(y_method).send(y_label_method)) + 1
      self[x, y] = item
    end

    y_labels.each_index do |i|
      self[0,i+1] = y_labels[i]
    end

    x_labels.each_index do |i|
      self[i+1,0] = x_labels[i]
    end
  end

  # useful for debugging, but display should be
  # handled in the view
  def to_html_table
    table = "<table>\\n"
    (0...@h).collect { |x|
      table << "  <tr>\\n  "
      (0...@w).collect { |y|
        table << "<td>#{self[x, y]}</td>"
      }
      table << "\\n</tr>\\n"
    }
    table << "</table>\\n"
  end
end

“Here I am, brain the size of a planet…”

Wednesday, August 22nd, 2007

So, lately, I’ve been using my one-teraflop-capable, next-gen extreme gaming console to play…  Spades.

I used to play Spades a lot when I was still into pubbing, but I hadn’t played in years by the time I found the game in Live Arcade.  For the past couple of weeks, I’ve been playing a few games a night, trying to get back into the strategies of the game.

What’s cool, though, is that I can play multiplayer games with one of my old drinking buddies (and former roommate).  It’s like being 22 again, but without the smoke!  Um, and poured Guinness.  Oh, well.

This town needs an enema!

Wednesday, August 15th, 2007

I guess I’m having a bad hair day.  I do need a haircut…

I took the kid over to the neighbor’s house today for the morning carpool to Farm Camp.  My neighbor said “Hey, you look kinda like Jack Nicholson!”

Aw, man…  I had to ask: “Jack Nicholson in The Shining or As Good As It Gets?”  She gave me a noncommittal answer.  I think I’d better start wearing a hat when I go out in public.

Portuguese-Style Chicken Curry

Tuesday, August 14th, 2007

From BCIHC, p. 104. AKA Chicken Vindaloo, this is another one I used to make all the time. It’s always hit-and-miss, though… I haven’t figured out how to reliably control the combination of flavors and textures, and so sometimes it’s great, and sometimes it’s so-so. I’ve managed to avoid awful batches except for a couple of notable disasters. :)

One major challenge to this dish is that the proportions called for by the recipe leave me with extra tomato sauce and coconut milk. The coconut milk I can put on cereal (try it!), but what do to with the tomato sauce? I hate wasting ingredients, so I usually just dump the rest into the sauce and try to adjust the other ingredients to match.

For this batch, I didn’t quite get it right. I think I used too much ground coriander, because it had kind of an earthy flavor. Also, the chicken was not very good. Kind of gamey, not tender. Sigh. The vinegar and cayenne did stand out nicely, though.

Bioshock

Tuesday, August 14th, 2007

Woo!

Played the demo several times. I can’t wait. I haven’t been excited about a game release in… Years. It’s funny because I haven’t been paying much attention to this stuff in a while, but I just happened to see the demo on Marketplace and downloaded it on a whim (yes, I realize that this means I’ve been living under a rock).

Holy crap… I won’t bother to describe it — legions of bloggers and game reviewers have already done it. I will say that playing the demo made me realize that I have really missed playing games with strong stories and immersive environments. I’m thinking of the Fallout series and Deus Ex (yes, dating myself). I’m sure that there have been games I’ve missed since then, because I got off of the gaming PC treadmill and I just haven’t found console games to be as rich and interesting. GTA:SA certainly occupied me for a long time, but it doesn’t have a particularly compelling story (at least, not for me… I don’t have OG aspirations).

Anyhow… I am bummed that I have to wait until Tuesday. I think I’ll just play the demo a few more times until them. I’ve also got the Stranglehold demo to play with… Pretty amusing. Maybe I’ll unlock the Testikill achievement. :)

Blue-Cheese Burgers and Fries

Monday, August 13th, 2007

From … Well, I don’t know where this one came from.  Maybe it was sent to me by the culinary gods in a fever dream.  I dunno, but it’s damn tasty.  You know when you go to a restaurant and order a blue-cheese burger and they give you a burger with crumbled cheese on top of it?   Pretty tasty, I guess.  Well, says I, why not put the cheese in the burger?

Yes, that’s right…  Hot ground cow and melty blue cheese in a single bite.  Damn that’s good.  The fries were frozen crinkle-cut jobbies.  I know what you’re thinking.  That shit be fancy!

dog + saltwater = vomit

Monday, August 13th, 2007

Yesterday we went to play on the Spurwink river. There is a bridge on 77, precisely on the Cape/Scarborough border, and it affords easy access to the river.

We went with our neighbors, so the group consisted of 4 adults, 3 girls under 6, and 3 dogs. Add in 4 snow tubes/toboggans and a fishing rod, and it’s a recipe for chaos. Fortunately we managed not to hook anyone (didn’t hook any stripers, either), although Shaggy did his best to grab the lure the first time I cast it. Stupid dog.

The Spurwink winds through a large salt marsh, and at low tide it’s possible to walk/wade quite a ways back to a series of exposed sand bars. I hauled the inflatable convoy with its on-again-off-again passengers most of the way back, until we found a nice big sand bar that looked like it would stay dry for a while. Then we left the tubes and walked back another quarter-mile or so.

I wish I’d taken pictures, but I figured that salt water and digital cameras wouldn’t play well together. Maybe next time I’ll take it in a ziploc or something. We all had a lot of fun, until the sun started going down and the little people started getting cold.

After a hurried slog back to the bridge, we piled into the vehicles and drove home for a takeout dinner.

Oh, the title. Yeah… So mr. i’m-a-puppy-and-stupid decided to drink the water. I tried stopping him a few times, but my neighbors (who have much larger and older dogs) said that he’d just puke it up and learn his lesson. Fortunately, he managed to keep it together until we got home, but I’ve never seen a chocolate lab look so green. :)

i gave up

Monday, August 13th, 2007

I finally had had enough of that stupid motherboard, so I ordered a Tyan K8E. It’s a “server” motherboard, which I guess means that I pay 3x as much and don’t get audio headers for the onboard AC97. Sigh. Fortunately I had an old SBLiveProBlahBlah that I could toss in there. Ubuntu recognizes it, and I can listen to MP3s. I don’t require anything more.

Did the upgrade on Friday, and it’s been rock-solid ever since. Added bonus: The CoolN’Quiet actually works, and this motherboard has enough fan plugs on the motherboard that I can connect all of the case fans and take advantage of the CNQ throttling. I can actually hear D’s iMac now.

For IntarTubes reference, the POS I was trying to use before was an Asus A8R-MVP. To be fair, I think it was dumb on my part to try and use a consumer-grade mobo with an Opteron 175, but hey, they advertized Opteron compatibility.

I’m so proud

Sunday, August 5th, 2007

P8050087.JPG

A moment later she blew a huge fireball at the camera, but the damned shutter lag made me miss it…