I failed my saving throw against charisma and became a die-hard Obama supporter.
Showing posts with label Hilarity For Nerds. Show all posts
Showing posts with label Hilarity For Nerds. Show all posts
Wednesday, February 06, 2008
OaO Presents: Hilarity for Nerds™
From my friend Tom:
Wednesday, October 10, 2007
Still More Hilarity For Nerds™
Today's XKCD:
Did you really name your son, "Robert'); DROP TABLE Students;"?No, really. There's nothing to see here.
Monday, July 09, 2007
OaO Presents: Enhanced Hilarity For Nerds™
Today's Hilarity For Nerds™ is a link to today's XKCD cartoon. Go and read it, then come back.
Okay, now wipe the tears of mirth from your eyes. Now allow into the back of your consciousness the creeping realization that there will always exist entire classes of people who, while technically speaking the same language, could never make themselves understood across strange divides of culture, jargon, and/or pidgin. Further reflect that perhaps this construction, this divide of meaning, is, in fact, the general state of humanity. Wonder if you can ever truly make yourself "understood." Collapse in a nervous wreck fueled by abstract absurdism and existential angst. Then become bored by this line of thinking and go on to wonder about something else.
Anyway, in an equally hilarious coincidence, this makes for a nice segué straight into the solution to the interview question I posted a couple of weeks back, about which I'm sure you've been wracking your brains. As you'll see, there are some similarities between the problem stated in the cartoon (finding an order that totals exactly $13.05 by ordering from a menu) and the interview question. Then I'll talk about N-P Completeness, and then no one will actually be reading this blog because the intersection of the set of people who read this blog and people who read about N-P completion on blogs consists, surprisingly, of only myself.
As of this, the first sentence of this paragraph, I don't actually know the solution to the keyboard problem, but I'm planning to derive it in the process of the writing. As such, my actual "answer" may be "incorrect." But the solution I give will be undeniably truthy. To review: your name is Dirk. Somebody switched all the letters on your keyboard. You hunt and peck out your name and it comes up 'flrp', so you hunt and peck 'flrp' and it comes up something else. How long until you get "dirk" to appear?
The first key thing to this problem is to realize that the letters have to get switched in "cycles" with other letters. That is, if you type 'a', and 'b' comes up, and then you type 'b' and 'c' comes up, and so on, eventually you must produce an 'a'. The reason for this is that you've got 26 keys, and after you scramble them, they all have to go some place and every space in the keyboard can only have one key in it (this is called the "pigeonhole principle," and it's the basis for an entire branch of mathematics). Let's consider a really simple case--somebody scrambled up the keys and put them back, but miraculously everything ended up in the same place except that the 'a', 'b', 'c', and 'd' keys got switched with each other (a is where b was, b is where c was, c is where d was, d is where a was). So you're when you use your method you're going to see this:
Okay, now wipe the tears of mirth from your eyes. Now allow into the back of your consciousness the creeping realization that there will always exist entire classes of people who, while technically speaking the same language, could never make themselves understood across strange divides of culture, jargon, and/or pidgin. Further reflect that perhaps this construction, this divide of meaning, is, in fact, the general state of humanity. Wonder if you can ever truly make yourself "understood." Collapse in a nervous wreck fueled by abstract absurdism and existential angst. Then become bored by this line of thinking and go on to wonder about something else.
Anyway, in an equally hilarious coincidence, this makes for a nice segué straight into the solution to the interview question I posted a couple of weeks back, about which I'm sure you've been wracking your brains. As you'll see, there are some similarities between the problem stated in the cartoon (finding an order that totals exactly $13.05 by ordering from a menu) and the interview question. Then I'll talk about N-P Completeness, and then no one will actually be reading this blog because the intersection of the set of people who read this blog and people who read about N-P completion on blogs consists, surprisingly, of only myself.
As of this, the first sentence of this paragraph, I don't actually know the solution to the keyboard problem, but I'm planning to derive it in the process of the writing. As such, my actual "answer" may be "incorrect." But the solution I give will be undeniably truthy. To review: your name is Dirk. Somebody switched all the letters on your keyboard. You hunt and peck out your name and it comes up 'flrp', so you hunt and peck 'flrp' and it comes up something else. How long until you get "dirk" to appear?
The first key thing to this problem is to realize that the letters have to get switched in "cycles" with other letters. That is, if you type 'a', and 'b' comes up, and then you type 'b' and 'c' comes up, and so on, eventually you must produce an 'a'. The reason for this is that you've got 26 keys, and after you scramble them, they all have to go some place and every space in the keyboard can only have one key in it (this is called the "pigeonhole principle," and it's the basis for an entire branch of mathematics). Let's consider a really simple case--somebody scrambled up the keys and put them back, but miraculously everything ended up in the same place except that the 'a', 'b', 'c', and 'd' keys got switched with each other (a is where b was, b is where c was, c is where d was, d is where a was). So you're when you use your method you're going to see this:
- airk
- birk
- cirk
- dirk
- ajsl
- bktm
- clun
- dmvo
- 20: dgpi
- 21: ahqj
- 22: birk
- 23: cjsl...
- 41: afoh
- 42: bgpi
- 43: chqj
- 44: dirk
Tuesday, June 26, 2007
OaO Presents: Hilarity For Nerds™
Written on the elevator whiteboard at work this morning:
chown -R us ./base
Wednesday, June 20, 2007
OaO Presents: Hilarity For Nerds™
Alternative Thermodynamic Laws, as proposed by the people sitting around our dinner table last night:
- If there's a thing in the universe and it's going then it will keep going forever, unless it falls into a black hole.
- The entropy of the universe is untidy.
- You do not talk about Fight Club.
- If there's a thing, and it does a thing, then there also has to be an opposite thing to that first thing, and then they both fall into a black hole.
- Master Blaster runs Bartertown.
- You may not harm a human being, or through inaction allow a human being to come to harm.
- Is it cold in here? I'm freezing. Seriously, it's June. Why can't it be sunny? Why does it always have to be freezing?
- You may not harm humanity, or through inaction...you know what? Those would be pretty frickin' good laws for people, too.
- There's a thing, and it's in the universe, and it cannot be created or destroyed, but then secretly it's a black hole.
- You DO NOT TALK about FIGHT CLUB.
Monday, June 11, 2007
OaO Presents: Hilarity For Nerds™
Courtesy of Alicia:
Werner Heisenberg is in his car on the way to deliver a lecture and, being that he is late, is speeding. Inevitably, he zips past a policeman, who pulls him over. Walking up to the car, the officer knocks on the window and Heisenberg rolls it down. "Do you know how fast you were going?" demands the policeman. "No," says Heisenberg, "But I do know where I am."
Werner Heisenberg is in his car on the way to deliver a lecture and, being that he is late, is speeding. Inevitably, he zips past a policeman, who pulls him over. Walking up to the car, the officer knocks on the window and Heisenberg rolls it down. "Do you know how fast you were going?" demands the policeman. "No," says Heisenberg, "But I do know where I am."
Subscribe to:
Posts (Atom)