Showing posts with label funny. Show all posts
Showing posts with label funny. Show all posts

Friday, June 05, 2009

The GIGO Buffer

I've contemplated doing this for a while, and after a conversation at work this past week, I've decided to actually implement it.

Presenting, a GIGO (Garbage In, Garbage Out) Buffer. Implemented in Python, and won't work on Windows (because really, that whole OS is basically a giant GIGO buffer).


#!/usr/bin/env python

class GIGO_Buffer:
"""
Implementation of a Garbage In, Garbage Out buffer.
"""

def push(self, element):
"""
Push data into the buffer.

@param element: Data to add to the buffer.
"""
return

def pop(self, len):
"""
Pop data from the buffer.

@param len: Number of bytes of data to pop from the buffer.
@returns len bytes of data from the buffer.
"""
data = open('/dev/urandom', 'r')
rval = data.read(len)
data.close()
return rval

Tuesday, August 23, 2005

Cats

  • Eat
  • Sleep
  • Stare out window

Did I miss anything?

Tuesday, April 26, 2005

iPods and Candy

Just in case you don't have time to go to a store, now you can get an iPod from a vending machine in the SFO International terminal. Click on the photo for a few more.

Saturday, March 05, 2005

George Carlin says...

Weather forcast for tonight: Dark. Continued dark overnight, with widely scattered light by morning.

Monday, February 28, 2005

Saturday, February 26, 2005

Googling Yahoo

I'm out driving around earlier today, with the radio on, and after hearing 1-2-Step and Let Me Love You for like the 10 millionth time since I've been in Albuquerque, I decide I need to find a better radio station. So I go home, Google "albuquerque radio stations" and which link do I find helpful in finding a new station to try? Yahoo Directory.

Monday, February 07, 2005

Ban Urban Legends

Oooh... I can't wait to see the letters from the Believers on this one!

Monday, January 24, 2005

$50

No wonder Mozilla took so long to come out. ;)

Thursday, December 30, 2004

Even Microsoft Uses Firefox

Look closely at the screen shot showing off the new MSN Search. That's Firefox, not IE.

Sunday, December 26, 2004

Wednesday, October 13, 2004

iBook Battery

Oooh, lookie! This battery for an Apple iBook laptop is shown as PC Compatible! Complete with the Windows XP logo!

Friday, October 08, 2004

Learn to spell

Folks, this is why your elementary school teacher made you memorize all those Presidents' names, states, etc.

Oh, the art looks like about 4th grade, too.

Monday, October 04, 2004

Wednesday, September 08, 2004

Windows XP Service Pack 2 (yes, again)

Hehe.

Windows XP Service Pack 2 removes the copyright date from the screen that appears before the login screen. I guess Microsoft wants to hide the fact that Windows XP is from 2001.

They also removed the notation of which Edition is running, though that is still on the login screen itself.

Saturday, August 14, 2004

Saturday, August 07, 2004

Strange Invasion

The last paragraph amused me. It's not every day that the movie Evolution gets referenced in a major newspaper.

Tuesday, August 03, 2004

Repetitively repetitive

An e-ticket confirmation e-mail I got tonight from American Airlines contained the following:

Nonrefundable tickets cannot be refunded.

Sunday, August 01, 2004

Ziggy

At least he has some idea about computer viruses, which I'd say is more than most people, based on the the number of Slammer hits I picked up during the two months I was running Snort.