June 2008 August 2008

July 2008

Hippos: Kings of the Jungle

July 26, 2008 02:55.15 PM

Plain and simple, Hippos are the sweetest animals of all time.

  • They have no predator... nobody will mess with these things
  • They're huge. Older males can weigh up to 8,000 lbs.
  • Suprisingly, they can run up to 30 mph on land. Michael Johnson only ran 23.15 mph when he set the 200M world record.
  • They can stay underwater for up to six minutes
  • Hippos are extremely social and gregarious. They stay in groups of huge numbers
  • Just check out the next pic...

Pablo Escobar kept four hippos in captivity at his home in Columbia. After the death, the hippos were too large to move and were left untended. As of 2007, they've multiplied to sixteen hippos and they're terrorizing the house for food. At this rate, Hippos will be taking over South America by 2050 and probably the United States in 2100. Good luck us.

6 Comments

Prototype doesn't evaluate JavaScript very well

July 09, 2008 11:33.58 PM

So here's how I call the Ajax.Updater to bring back some HTML with JavaScript in it.

new Ajax.Updater(myDiv, "/fake/test/",
{
parameters: params,
evalScripts: true,
onComplete: function() { doSomething(); };
}
);

Here's the HTML with JavaScript

<script type="text/javascript">
helloWorld = function() { alert( 'Hello World!'); };
</script>

<a href="#" onclick="helloWorld(); return false;">Click me!</a>

Click Me Doesn't Work!!!!! It throws an error saying helloWorld isn't in the scope as a method.

I'm pretty sure it only works when you have actual JavaScript code that has to be evaluated and not based on events. For instance, rather than having the helloWorld() method call come on the onclick handler, it could be listed as a call in the script tags. My rule... don't put JavaScript in HTML response of an AJAX call.

0 Comments

Kings will not survive without females

July 07, 2008 08:19.55 PM

Please play this song while you read this post...

I'm not talking about Arthur or Henry the VIII. I'm talking about the drinking game that requires a deck of cards, a huge social glass, and a large table. Some of you may call it Circle of Death but in my group of friends, we call it Kings. This is one of those games that a group of guys pregaming for a college party or getting ready to go out on the town just couldn't handle because it's hard to get into with that crowd. It's full of stupid jokes, embarrassing stories, and the best part, laughter. It has a recipe for success and I think I've figured it out.

I was at the beach last week and I realized a few things about people while they're in social situations. Most people will do anything to get a laugh. When it comes to making girls laugh, guys will go to extremes. They will act like farm animals, make sounds they've never imagined, and they'll act ten years younger than their age just to see smiles across the table.

Next time you find yourself in a party with a bunch of people that involves an even amount of gals to guys, look up the rules give it a shot.

3 Comments

A Django site.