|
|
|
Thursday 10 May 2012 12:45am
|
| Comments
|
Monday 16 April 2012 7:36am
|
| Comments

Cristina, Sofia and I had a good Saturday, we went to Tenango de las Flores, a small town near to Nuevo Necaxa (where Necaxa Dam is), there is a flower market, you can get a great variety of them at a really low price. Sofia loves plants and you know, she was pretty happy being there, she got a small worm made of fabric that grows grass.
There is also a lake, the lake where the film Tizoc was shoot and the house of Tizoc is still there. We were walking there for around five hours, until we get back home, a nice trip I like to repeat more often.
|
|
Monday 16 April 2012 7:17am
|
| Comments
Sometimes we create a script that may take a long time, one way to know how is it going is to print something to barely know what's going on with the script, sometimes we need to know the progress of the script, particularly in a long long iteration.. To print something nice and don't bloat the shell with stuff we can just write to stdout or stderr and return the line without asking for a new line.
import sys
for i in xrange(10000):
sys.stdout.write("going on item %5d from 10000\r"%(i+1,))
sys.stdourt.write("\n")
You can easily customize it to have a percentage or something, even a progress bar is possible.
|
|
Tuesday 10 April 2012 7:44pm
|
| Comments

Pretty cool, the single line window management is already implemented in OS X, using full screen apps, although it doesn't fit al apps, that's why Mission control (exposé in the past) came to the rescue.
|
|
Tuesday 10 April 2012 9:14am
|
| Comments
|
Monday 09 April 2012 9:26am
|
| Comments
|
Sunday 08 April 2012 10:41am
|
| Comments
|
Sunday 08 April 2012 10:17am
|
| Comments
|
Friday 06 April 2012 7:26am
|
| Comments
|
Friday 06 April 2012 5:02am
|
| Comments
|
|
|
|
|