Thursday, September 18, 2008

Spanish Calculator

What exactly is a Spanish calculator? It's simple instead of the numbers 1, 2, 3, ... the keys are 'uno', 'dos', 'tres', ... and likewise for the other keys. It's a quick and easy way to practice your basic Spanish numbers and mathematics interactively. So "tres veces tres es igual a 9" is the same as 3 * 3 = 9. This is of course yet another re-use of the underlying JavaScript in the piulator and the online large type calculator.



Note that coding the Spanish Calculator raised an interesting app-engine error. Having a non-ASCII character in a comment in the python code (in this case é) was fine using the local app-engine launcher and emulation. But once the code was uploaded to appspot the é in the comment caused the application to go down. The whole thing. But the app-engine control panel was good enough to return an error with a line number so the offending é could be taken out of the python comment. There was a brief moment of panic though when the blog suddenly crashed. No mullets or ammonites or bloc party videos - just error messages.