Tired of encoding problems in Python?
A tip: Decode early, Unicode everywhere, encode late
A tip: Decode early, Unicode everywhere, encode late
Gratefully making use of what others have provided, i.e. geopy, Google and plpythonu. Type to hold result of geocoding: CREATE TYPE geocoding AS ( place text, latitude double precision, longitude double precision ); Function that does the actual geocoding (to…
Math in Genealogy is a great project (donate online). Sven Köhler from Potsdam, Germany has written a python script for visualizing the database, which I’m going to try. First step is to clone the git repo: $ git clone git@github.com:tzwenn…
This stuff blows my mind. Gregory Palamas (1296–135), spelled Γρηγόριος Παλαμάς in greek, was a monk on Mount Athos, a place I’ve visited with my father two times. It is a beautiful peninsula in northern Greece, scattered with old monasteries.…
Docker is a cool idea and open-source product, that seems to be taking the tech community by storm. Wired will tell you why it is cool in a story titled The Man Who Built a Computer the Size of the…
Today I watched a video on RAMCloud. I have made an index over the various sections of the video, with direct links. You’ll find this index in the bottom of this post. “The RAMCloud project is creating a new class…
Warning: This is not a very interesting post. I’m toying around with the Redis benchmarking tool. What would be significantly more interesting would be to toy around with the Lua API in Redis, which I’ll do in a subsequent post.…
The profiling tool in GNU is called gprof. Here is a short, boring example of how to use it. 1) Write hello world in C (hello.c) #include int foo() { int b = 54324; int j; for (j=0; j <…
To time the execution of various stages of a long transaction, I’m using the following function: CREATE OR REPLACE FUNCTION CVL_TimerLap() RETURNS double precision AS $$ import time now = time.time() if not SD.has_key(‘t_last’): SD[‘t_last’] = now elapsed = now…
Come join the DIKU APL channel on IRC: