Archive for May, 2006

Cooper on DJ

Wednesday, May 24th, 2006

<k3wp> Ok, I did recommend DJ lose his network access for last semester.
* DJCapelis coughs up a lung
<DJCapelis> you did?
<k3wp> Of course I did. AUP violation. And being a jerk.

I don’t think that’s ever getting old.

High latency

Wednesday, May 24th, 2006

From the I Hate My Life department…

31-second ping time

That’s Google’s IP.

This is what happens when school wireless is so bad, I have to resort to using my phone as a Bluetooth modem and calling up Earthlink.

Rushi on school

Monday, May 22nd, 2006

I love school. It’s really good at screwing people over.

“I’m gonna take this quarter easy.”

No you’re not!

Ruby conditionals are cool

Tuesday, May 16th, 2006

This is a fairly basic Ruby thing, but it was new to me, and it might pique some interest among all the non-Ruby-loving heathen out there. Seriously guys, how can you not love this language already?

Did you know that in Ruby, you can use if/else anywhere you could use the ternary (?:), with no other changes? Every block returns (by default) the value of its last statement; the overall if returns the value of the successful block. Returning different values based on a condition is effectively the behavior of the ternary.

Gape in awe at something you cannot do in C-based languages.

var = if(1 == 2) then "a" else "b" end

This is identical to var = (1 == 2) ? "a" : "b";

Unfortunately, you cannot do something like this:

(true) ? (something; something; something;) : something else;

Using parentheses around compound statements, it will not group correctly, and just get a bit confused. Using braces, it will treat the contents as a hash literal (which a pretty cool thing to do, though). do/end generates a compile error.

In conclusion, the ternary is a limited special case of if/else, providing a nicer way to write code using a conditional to produce a value. You can use if/else anywhere you’d use a ternary, but not vice versa.

Rushi on going way back

Monday, May 15th, 2006

Rushi sees my new CD.

<rushi> Oh, BT!?
<joe> You like BT?
<rushi> Oh you don't even know. Me and BT, we go way back. Like way back to fuckin sweetness.

Leborgne, meet Pikachu

Wednesday, May 10th, 2006

For COGS101C, I have to know the difference between Broca’s aphasia and Wernicke’s aphasia.

Patients with Wernicke’s speak fluently, but they cannot monitor their own speech for meaning, and so usually end up wandering haphazardly through meanings and associations. It’s open to debate whether or not patients still ideate meanings that they wish to express, but they cannot convey a coherent meaning to a listener. Think stream of consciousness meets free association. “Word salad” is the technical term, I believe. (update: it actually is. I thought that was just the professor being funny.)

Patients with Broca’s, on the other hand, can communicate fine, but have great difficulty producing words; speech is halting, grammatical filler words (”the”, “and”, “that”) get dropped. In extreme cases, patients may only be able to produce a single word, which becomes a sort of placeholder for all other words.

So I just have to remember: Broca’s is the Pokémon disease.

I’m going to hell for that, I know.

Rushi on blunt instruments

Tuesday, May 9th, 2006

<rushi> No... that's not drywall.
<joe> Yes it is. ... You want me to punch through it? You want me to get, like, a hammer?
<rushi> Fuck hammers, I got a sledge...
<rushi> ... hammer.

I have a place to live next year!

Saturday, May 6th, 2006

Starting in June, I’ll be living in a 3br 2.5ba quadplex (four units to a building), on Via Tranquilo, about a mile and a half from campus. Inhabitants: Paul, Rushi, Ben, and myself.

All four of us are compsci majors. So, of course, we have a wiki.

It’s about fifty feet from Scott’s house, wherein live another four compsci majors and assorted hangers-on.

It’s going to be a wonderfully, terrifically geeky few years.

Rushi on velocity

Friday, May 5th, 2006

I think I can walk faster than Java.

Rushi on velocity

Guess what.

Friday, May 5th, 2006

Japanese midterm. Kanji. Studying until 2pm. Started yesterday. Again.

Running on caffeine. Lots of it. If I seem a bit delirious today, don’t worry about it. That’s just the delirium.

Just another WordPress weblog