All future posts will be on my new posterous blog, jiaaro.com

Read about Music and tech on jiaaro.com $nbsp;

Check out my startup!
Rootbuzz: Hosted Q&A for businesses


Fizzbuzz seemed like fun... My 5 min attempt in python:

for i in range(1, 101):
fizz = "Fizz" if not (i%3) else ""
buzz = "Buzz" if not (i%5) else ""

print (fizz + buzz) or i

Interesting stuff

This is just a short list of technologies I'd like to try out, or am trying out now. Basically just some links I want to remember =D

Serverside Javascript:

Weird Languages:

Shorthand languages:

It'll probably grow over time. I won't delete anything from the list though. I'll strikeout the ones I'm done with instead :)

Why Hacker News/Webfaction was down

Jiaaro (twitter): oh boy... the datacenter where all my websites are hosted is down :(

mikegoldense (twitter): @Jiaaro Sorry, Jim. I tripped over the extension cord the datacenter was plugged into this morning. #mybad

jiaaro (twitter): @mikegoldense damn... I knew we should've used more duct tape on that extension cord

mikegoldense (twitter): @Jiaaro Next time, PLEASE DO. You know how clumsy I am. And you've got all these dang blasted datacenters just lying around. YOUKIDSTODAY!

Decorators in Javascript

I've found plenty of examples of the Class decorator around the internets, but none of the function decorator I've come to know and love in python, so here it is:

x = function(msg) {
return msg;
my_decorator = function(fn) {
var that = this;
return function() {
msg = "Message: " + msg;
return fn.apply(that, arguments);
x = my_decorator(x);

// result: an alert that says, "Message: querty"

Automatically Update the Copyright Year with Django

Ever get tired of updating the copyright year on your webpage? Why not update it programmatically? Django templates make it incredibly painless:

© {% now "Y" %} YOUR_NAME_HERE

Yeah... it's that easy ;)

Welcoming a DDOS

David M Beazley, a very talented pythonista is gathering data for his talk at pycon. He's doing a little research on the GIL and has asked the community for some help.

You can see some interesting initial data on his test web page (the one whose server he is asking the community to slam).

If you'd like to contribute, just copy/paste this code into a python interpreter :)

import urllib2

count = 0
while True:
f = urllib2.urlopen('http://ec2-174-129-96-143.compute-1.amazonaws.com/index.html')
count += 1
print count

Forgive my lazy exception handling. On occasion you'll get various networking errors as a result of the massive load his server is under like timeouts, or reset-by-peer type stuff. This isn't exactly mission critical code :)

Can't wait to hear his talk (I'm hoping to get it online since I won't be able to make it to pycon)

Please Upgrade to Firefox

Um... it looks like you're using Internet Explorer. No, no... there's nothing wrong with that, it's just that... well... it kind of sucks.

You don't have to upgrade for this site, but IE has a lot of problems. Please Upgrade to Firefox (don't worry it's free).