Showing posts with label OaO Presents. Show all posts
Showing posts with label OaO Presents. Show all posts

Wednesday, February 06, 2008

OaO Presents: Hilarity for Nerds™

From my friend Tom:
I failed my saving throw against charisma and became a die-hard Obama supporter.

Thursday, July 19, 2007

OaO Presents: The Cool Thing My iPod Just Did™

iPod on random
Spike: "Come on then. Sing."
music swells
Henchman: "My master has The Slayer's sister hostage at the Bronze because she summoned him, and at midnight he's going to take her to the underworld to be his queen."
Giles: "What does he want?"
Henchman: "Her."
iPod plays: As Girls Go by Suzanne Vega

Only about five of you know why that was cool, but boy, it was cool. I heart random algorithms.


Wednesday, July 11, 2007

OaO Presents: Wrandom Wednesday™

One of these days I'm going to figure out how to blog about what I want to blog about without writing 1,000 words at a time about math, or whatever. That day was not yesterday. Nor was it the day before that. Nor was it this day, or this day, or this one (or this one, or this one....)

Music this week is from Grizzly Bear. They are my new favorite band. Or, I should say, they are my favorite new band. I'm also listening to the major label debut of Seattle hip-hop duo Blue Scholars, and it's frickin' awesome. Geologic just name-checked Steve Pool.

I probably had some other things to add, but I can't think of them now. Maybe I'll remember them later.

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:
  • airk
  • birk
  • cirk
  • dirk
So the answer in this case was 4. The letters a through d made a "4-cycle," and every other letter was, essentially, switched with itself (a "1-cycle"). Now let's take the same example, but instead of e-z staying the same, let's imagine they all got switched by one letter, too (e is where f was, f is where g was, &c., &c....y is where z was, and z is where e was). So we've got one 4-cycle and one 22-cycle. Watch what happens:
  • ajsl
  • bktm
  • clun
  • dmvo
Crap! We got back to 'd' for the first letter, but none of the other letters are right. They're all in a 22-cycle, so we're going to have to do this 22 times to get back to the start...
  • 20: dgpi
  • 21: ahqj
  • 22: birk
  • 23: cjsl...
Double crap! At try number 22 we had the 'i','r', and 'k' right, but now the d isn't right. We keep going...
  • 41: afoh
  • 42: bgpi
  • 43: chqj
  • 44: dirk
Ahhh. At last. It took 44 times. Hey...that's funny, 44 happens to be the least common multiple of 4 and 22. I wonder if that means something? Also meaningful is that this took way too long to write, and it's way too long to read, and I might actually trick you into reading more of it if I continued it tomorrow and titled it with some catchy pop-culture reference or something. Plus then I could say something like, "I've given you hints to the full solution so you can work on it some more yourself." Or whatever.

Tuesday, June 26, 2007

OaO Presents: Interview Questions™

It is the year 2047. Software corporations rule the world. Any man, woman, or child wishing to gain employment must endure a grueling interview process in which they are asked to solve insidious "logic problems," that are supposed to "uncover" the job candidate's ability to "pro-actively manage head-space resources to achieve correctness-oriented issue resolution." The times are dark.

One blog dares to expose the secrets of these Corpocratic Inquisitors, giving the citizenry precious time to solve these "problems" before they must face their Prosecutors-Most-Curious. That blog is The Odds Are One.

Someone breaks into your office, takes apart your keyboard, and switches all the letter keys around. The next morning you come in and notice that your keyboard looks strange. You can't remember where the letters used to be, and you can't touch type, so you type your name, which for the duration of this problem is "Dirk," by hunting for and pressing the 'd' key, then the 'i' key, and so on. You look up at the screen and what comes up is, 'gqwy.' So you type G-Q-W-Y using the same method as before, and look at the screen...up comes 'hzob'. You type H-Z-O-B, and look up at the screen, and so on. If you keep doing this for long enough, are you guaranteed that eventually you will see "dirk" typed on the screen? If so, what is the most number of times you'll have to type the four letters you see before you see your name?

Answer...uh...later.

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.

OaO Presents: Metaphor of the Day

Reading that menu was like listening to a single musician play all the instruments in a 10-piece band: you appreciate the effort, but the resulting sound is disastrous.

From Layne's most recent restaurant review.

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."

Friday, June 01, 2007

OaO Presents: The Music Capsule™

The world of music is changing in fashions both rapid and alarming, being fed by two trends. First, the music itself is, for all practical purposes, free. Second, anyone can create a high-quality recording in their home and immediately make it available to anyone else in the world. There are figuratively ten million musical monkeys out there typing on ten million musical typewriters. 99.999% of it is, predictably, noise. But some of those monkeys are producing Shakespeare that, right now, almost nobody can hear through the cacophony.

Music labels are, as you might imagine, appropriately terrified of this brave new world. I share the fervent hope of many that they'll all sink slowly and painfully into irrelevance, but they probably won't. The "problem" of music on the internet could be solved tomorrow--make all music downloads free, and in return for the right to host that music and advertise (or whatever) along side of it, have websites pay into a fund that is distributed to the artists based on what percentage of downloads their music constitutes (this is exactly what happens today with radio airplay, except revenue distribution is determined by survey, whereas online you could get an exact count. People could certainly create spam-like bots to download their own songs repeatedly to make their music seem more popular than it was, but this is the kind of thing that can be easily detected by statistical fraud analysis. The e-tail giant I work for, for instance, is quite excellent at that sort of thing). The reason this hasn't happened already is that it would make record labels utterly irrelevant.

As with all rich and powerful cartels throughout history, the RIAA as a whole will hang on and use its power as long as it can, suing children and old ladies for pirating music, before finally collapsing and dying. The smart labels, on the other hand, will realize that there is still tons of money to be made in the painstaking process of filtering out the Shakespeares from the screaming cacophonous monkeys, therein finding entirely new streams of revenue and power and giving birth to a new cartel.

I, for one, have decided not to wait. In addition to posting my own songs as I decide they're ready for public consumption, I've started posting songs by other artists who have thrown their art into the current mass music (literal!) free-for-all. Our first artist appearing in the capsule at left is JulianC (I'm guessing it's meant to be pronounced, "JU-lee-ence"), a drumloop-crazed electric guitarist whose concoction I quite enjoyed upon hearing it on MacIdol. As with my own music, I hope you will give it a listen, and if you like it, I hope you'll share it with friends, and so on, and maybe the world will somehow change for the better. If you don't like it, you can, you know, shut up about it.

Friday, May 18, 2007

OaO Presents: They Actually Said That™*

And it would be pretty darn difficult, if not impossible, to make a decision for political reasons and expect to get away with it. If in fact someone -- if a career investigator or prosecutors felt that we were making decisions for political reasons to interfere with a case, you'd probably hear about it. We'd probably read about it in the papers.

-Alberto Gonzales, testifying in the House Of Representatives on May 10th. Transcript

*"They Actually Said That" is an utterly non-trademarked catchphrase about which The Odds Are One apparently harbors some feeble hope that...something...oh, fuck it.