Welcome to Serpia's blog!

Blog: December Archive

A true story

A true story: let's make a web application!

This is a true story, the names have been changed to protect the guilty...

Once upon ...

Posted on December 22, 2007
1 Comment

Get visitor's country

Get visitor's country from IP address

You want to know what country your website visitor is from, so you can automatically translate the page.

...

Posted on December 22, 2007
0 Comments

From HAL to IBM

From HAL to IBM

You want to translate the string 'HAL'
into:
IBM (Go see the movie, if this doesn't ring a bell ;-)

...

Posted on December 22, 2007
2 Comments

Tupleware

Removing items from a tuple and rebuilding the tuple using the builtin zip function

You have a tuple like:
mytuple = [('harry',60,5),('susan',35,3),('guy',28,9),('peter',56,1)]
and ...

Posted on December 22, 2007
0 Comments

Capitalize every first word

Capitalize every first word of a sentence in a string
Turn:
mystring = "dwarf nebula was a wicked little dwarf. he was not ...

Posted on December 22, 2007
0 Comments

Top 5 scary movies

I really like scary movies, or horror movies if you prefer. I do not like the word 'horror' though, because it is often associated with ...

Posted on December 21, 2007
0 Comments

Simple search engine in Python

A simple search engine in Python

I think that a search engine for the contents of a website is a great thing to improve a ...

Posted on December 21, 2007
0 Comments



Django!