Archive for March, 2006

Nik on comparisons

Sunday, March 12th, 2006

And there’s a difference. You put them next to each other, and it’s like ‘Jesus Christ!’ versus ‘Oh my God!’.

Nik on comparisons

Buca trip

Saturday, March 11th, 2006

After the events of this morning (see preceding post), I was greatly cheered by our trip to Buca di Beppo. The roster was: Scott, Stephi, Chef, Lea, Hanna, Christine, Ben, Kelsey, Danny, Daniel, Jess, Paul, Ava, Vivien, Brad, Eric, DJ, Nik and myself.

<steph> These are some good mushrooms
<scott> No shit. These mushrooms are comparable to sex. ... In fact, I've had sex worse than these.

<gregory> We've denuded this table of mushrooms.
<eric> You'll just have to rely on sex.
<dj> DAMMIT.

Fuck

Friday, March 10th, 2006

I don’t even know what happened. This is how I found it.

Is this even remotely possible without deliberate malicious effort? There seems to have been a lot of FORCE applied.

pictures are straight off the camera, around a meg and a half each. click with care.









The lock is bent. The goddamned lock.



Also the handlebar had been twisted relative to the front wheel, but that was easy to fix. Still not something that happens from accident or from leaning against the wall, though.

Update from the future: it’s totalled.

Using a Proxy class for debugging in Ruby

Monday, March 6th, 2006

caboo.se: Using a Proxy class for debugging

The basic idea is, the Proxy object owns some other kind of object, passes through all method calls to it, and optionally does auditing/profiling as it does so. Good for debugging, profiling, watching where data goes, etc.

The next logical step is to replace the class object with a proxy to it.

>> Article = Proxy.new(Article)

(irb):1: warning: already initialized constant Article

It should be trivial to add some code to Proxy so that when it’s used in this way, all its instance objects will themselves be proxied. This seems to me much more elegant than monkeypatching the class’s initialize, and it can be enabled/disabled with only the line above.

Is this even remotely possible in anything but Ruby?

I frickin love this language

Thursday, March 2nd, 2006

The most sensible kanji ever

concave, hollowed out, sunken in: ?

convex, protruding: ?

The least sensible kanji ever

circle: ?

round: ?

In Which DJ Fails Utterly To Write Good Code

Wednesday, March 1st, 2006

06:23:18 <SIGFPE> charCompare took a branch and 7 instructions :-(


charCompare:
    ldub [%o0], %o0
    ldub [%o1], %o1
    retl
    sub %o0, %o1, %o0

So uh, eat my shorts DJ? =]

We’ll just read things into the bit bucket

Wednesday, March 1st, 2006
<eric> hey, so, we read the stuff in anagrams.dat
<eric> what do we do with it then?
<eric> read just means we're accessing it, right?
<joe> I don't understand your question?
<eric> i was confused why we need memory to read things
<eric> because it seems like writing is what takes space
Just another WordPress weblog