<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

	<title type="text" xml:lang="en">Brunosan</title>
	<link type="application/atom+xml" href="/feed/" rel="self"/>
 	<link type="text" href="/" rel="alternate"/>
	<updated>2013-05-14T14:38:00-04:00</updated>
	<id>/</id>
	<author>
    <name> Bruno Sánchez-Andrade Nuño </name>
	</author>
	<rights>Copyright (c) 2004-2012, Bruno Sánchez-Andrade Nuño ; some rights reserved.</rights>

	
	<entry>
		<title>Why is the mirror of the Google Glass inverted?</title>
    <link href="http://brunosan.eu/2013/05/06/the-mirror-of-the-google-glass-inverted/"/>
		<updated>2013-05-06T00:00:00-04:00</updated>
		<id>//2013/05/06/the-mirror-of-the-google-glass-inverted</id>
		<content type="html">&lt;p&gt;&lt;a href=&quot;/media/glass-intro.jpg &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/glass-intro.jpg &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These past days I have had the chance to play for the first time with the Google Glass
from &lt;a href=&quot;http://www.silicalabs.com&quot;&gt;Silica Labs&lt;/a&gt;. This post is not about the
experience, you can find about that online. What drove my interest is
the hardware, in particular the eyepiece. If Google Glass is to become
popularized, the eyepiece needs to be as small and invisible as possible.
I´m pretty sure they have invested a lot of time on that.
Upon close inspection I think they have decided to ship a first option, but
they continue to work on that. Perhaps as an &amp;ldquo;innovation slack&amp;rdquo; to keep ahead of
copycats, or because the main audience for now are developers to build
apps for the consumer market later on. And developers don´t mind the
geeky aspect that much.&lt;/p&gt;

&lt;!--more--&gt;


&lt;p&gt;If you look closely you´ll see that the eyepiece is a nanoprojector
inside the bulk piece. The little image is sent sideways to a 50% mirror
that directs half the light to the eye. This is
done to also allow 50% of the light from the outside reach the eye, thus
making the image superimposed over the real world.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/glass-concept.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/glass-concept.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But if you think about it, the mirror on the Google Glass is inclined in the
opposite direction. Why?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/slanted.jpg &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/slanted.jpg &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the first option (as the first diagram above) the image gets 50% of the
light. With the opposite direction (as the Google Glass), you only get 25% of the light: the
beam goes twice over the half-mirror, once through and once reflected.
The second option also needs a mirror at the end of the eyepiece to
reflect back the light. On the image below I´m taking a picture of the
outside of the mirror, along the axis of the eyepiece.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/outside-mirror.jpg &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/outside-mirror.jpg &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Why the second option, with a double pass?
I think the reason is augmentation. The mirror at the end is not flat,
but slightly spherical (or parabolic). A concave mirror creates an
augmented virtual image if the object is before the focus. On the side
image you can see the piece is nearly flat but no quite so. Thus the image you see
on the outside (convex mirror) is smaller. The radius is much
bigger than the distance to the eye. The virtual image if the screen is therefore
then bigger than it would be with a flat mirror.&lt;/p&gt;

&lt;p&gt;This means that the overall light path on the eyepiece of the Google
Glass looks like this:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/glass-path.jpg &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/glass-path.jpg &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After playing with the Glasses for a weekend and letting anyone use
them, they all love it, but agree that it looks too&amp;hellip; geeky, too bulky.
I believe there must be better options, smaller and less visible when you
wear them. Perhaps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A single non-flat semi-transparent mirror instead of the flat one. This what we use on a special type of telescopes. They
are called asymmetrical or &lt;em&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Reflecting_telescope#Off-axis_designs&quot;&gt;off-axis&lt;/a&gt;&lt;/em&gt;. They come with their own set of
problems (like chromatic aberrations), but in such a small light path I
would still argue to try it, with some combination of software to
correct these problems. Still, that option would probably introduce strange field aberrations on
the transmitted background image.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Direct projection from the side of the glass into the lens. Problem
here would be to place inside the lens and yet outside the normal
field of vision, so it´s only available on the corner, not in the middle
of your normal view.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;Ideas for Apps for the Google Glass&lt;/h3&gt;

&lt;p&gt;After using them for a weekend, talking about them with colleagues at
&lt;a href=&quot;http://www.silicalabs.com&quot;&gt;Silica Labs&lt;/a&gt;, and wear them at various
situations, I got a few ideas for apps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Climb app&lt;/em&gt;. Save videos and pictures of your climbs. At any climbing
place, make a picture of the route to help you flash tricky points,
locate best places for hooks and save videos as you make your way up. If
the route is long, the belayer can talk and see the climber and
videochat to give support without releasing the rope.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Talking queues&lt;/em&gt;. When you meet someone and start talking,
start flashing cards of his/her interest, pictures, notes. Content
could come from the CV if it´s a work interview, OkCupid profile if it´s
a first date, live speech assistance from someone who is listening and
watching what you see, &amp;hellip;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Buffer record&lt;/em&gt;. Continuously save video or frames every few seconds,
and overwrite them in a continuous loop. This can be important in case
of accident if you are on the road, you are a police officer, or you
think you saw something worth saving when it already started.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Glass Notifier&lt;/em&gt;. An app that just pushes notifications to your Glass.
I´m thinking of any app that currently flashes notification on your phone.
Just taking them and pushing them as a card to the glass. (Agenda,
Whatsapp, Facebook, Instagram, Google Now, Email)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;/media/glass-capitol.jpg &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/glass-capitol.jpg &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
</content>
	</entry>
	
	<entry>
		<title>[Idea] Apple patent to protect your phone screen</title>
    <link href="http://brunosan.eu/2013/04/08/apple-patent-protects-screen/"/>
		<updated>2013-04-08T00:00:00-04:00</updated>
		<id>//2013/04/08/apple-patent-protects-screen</id>
		<content type="html">&lt;p&gt;How to avoid breaking your glass screen when you drop your phone?
Phones fall down, and sometimes nothing happens and sometime the screen
shatters. Can it be avoided? Making the glass thicker is a solution but
increases the weight. I got an idea to fix that.&lt;/p&gt;

&lt;!--more--&gt;


&lt;p&gt;  Today I was attending a talk by &lt;a href=&quot;http://www.forbes.com/sites/markpmills/&quot;&gt;Mark P Mills&lt;/a&gt; on Patent Law at the Notre
Dame Law School. He mentioned that Apple had just patented a way to
prevent shattered iPhone screens, but he didn´t go to the details,
just that he thought it was difficult.&lt;/p&gt;

&lt;p&gt;Apple indeed &lt;a href=&quot;http://en.wikipedia.org/wiki/Sudden_Motion_Sensor&quot;&gt;has a patent to protect the hard
disk&lt;/a&gt; when your laptop
falls. They do so by detecting a free fall via accelerometers. When the
laptop detects it has been dropped it will park the read/write heads of the hard disk,
thus avoiding those heads scratching the surface of the disk when it hits the ground.&lt;/p&gt;

&lt;p&gt;But how do they protect the screen? The idea would then be to detect a
free fall, and quickly orient the phone in the air so that it touches
ground on the back, or on the side, or whatever position is deemed most
likely to help survive the phone with minimal damage.&lt;/p&gt;

&lt;p&gt;When I wrote this post I didn´t look at the patent, but I thought about it and this my idea:
Drop the battery.&lt;/p&gt;

&lt;p&gt;Rotating the phone mid air requires a burst of energy. You could get
there using puffs of air, but that would take space for the hardware.
You could also use gyroscopes (like satellites use) but they are not
that quick. You need to move a significant portion of the phone mass to
rotate the thing quickly&amp;hellip;. the battery.&lt;/p&gt;

&lt;p&gt;The idea is then to insert 4 special screws on each corner of the
battery. When the accelerometers detect that the phone is falling, it
 would calculate the momentum of inertia (how exactly is the
phone is rotating) and carefully release 2 of the screws to create a
counter momentum of inertia that compensates
that rotation. As the battery unwinds the rotation is compensated. If
the rotation needed is less than the full 90˚ turn, the other
2 screws will also be released, letting the battery separate at the
exact moment the phone is properly oriented ( thus reducing also the weight on impact).&lt;/p&gt;

&lt;p&gt;To gain more momentum of inertia of the rotation of the battery, one could increase the angular speed using screws with small springs. Here is a
quick sketch of the whole thing:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/phone-battery.jpg &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/phone-battery.jpg &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No idea is that is what Apple thought of, but may be there is a chance
Apple would finally make replaceable batteries in the end. :)&lt;/p&gt;

&lt;p&gt;Update: For reference, as I upload this, I find the &lt;a href=&quot;http://bsan.eu/17nQ1bv&quot;&gt;Apple patent
online&lt;/a&gt;. I still thing my solution is better and
simpler :)&lt;/p&gt;
</content>
	</entry>
	
	<entry>
		<title>How a tweet led to a rocket factory</title>
    <link href="http://brunosan.eu/2013/03/14/how-a-tweet-lead-to-a-rocket-factory/"/>
		<updated>2013-03-14T00:00:00-04:00</updated>
		<id>//2013/03/14/how-a-tweet-lead-to-a-rocket-factory</id>
		<content type="html">&lt;p&gt;This is the little
story of how Foursquare and Twitter led to a VIP visit to &lt;a href=&quot;http://www.spacex.com/&quot;&gt;Space X&lt;/a&gt;, the rocket factory, back in 2010.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/nasonurb/5166107388/&quot; title=&quot;A
spaniard enters a commercial rocket factory by brunosan, on Flickr&quot;&gt;&lt;img
src=&quot;http://farm5.staticflickr.com/4025/5166107388_597c97c5ec_n.jpg&quot;
width=&quot;320&quot; height=&quot;213&quot; alt=&quot;A spaniard enters a commercial rocket
factory&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;!--more--&gt;


&lt;p&gt;I was at a conference in Irvine, CA. This is when I worked as a &lt;a href=&quot;http://brunosan.eu/2010/12/09/101-days-as-science-and-technology-policy-fellow/&quot;&gt;fellow of the Space Studies Board of the National Academies&lt;/a&gt;. The sessions were great but I had no plans the evening of the first day. After I was done with work I went to the bar for a quick bite. It occurred to me that may be they
had a Foursquare deal, so I used my mobile to &lt;em&gt;check in&lt;/em&gt;. Indeed they had
a &lt;a href=&quot;https://foursquare.com/user/459278/checkin/4cd765e6ab19a09326564aeb&quot;&gt;free
appetizer&lt;/a&gt; if you ordered a beer. Cool.&lt;/p&gt;

&lt;p&gt;I also noticed someone else had checked-in there 10 minutes before. Out of
curiosity I clicked her profile and &lt;a href=&quot;https://twitter.com/ChristieNic&quot;&gt;she had a linked Twitter account&lt;/a&gt;. She
was a science journalist that was also participating on the conference. Few
minutes before she had &lt;a href=&quot;https://twitter.com/ChristieNic/status/1455100711141376&quot;&gt;tweeted about the same appetizer&lt;/a&gt; I had ordered. She had done a great
presentation earlier that day and I was dying to know more about her
work. I tweeted
her and waited for her phone to ping to make sure she would tie that
random connection when I introduced myself:&lt;/p&gt;

&lt;blockquote class=&quot;twitter-tweet&quot;&gt;&lt;p&gt;@&lt;a
href=&quot;https://twitter.com/christienic&quot;&gt;christienic&lt;/a&gt; funny, we were
actually sitting next to each other at the bar, and I also got the
offer. Btw, good points on the panel.&lt;/p&gt;&amp;mdash; Bruno Sánchez-A Nuño
(@brunosan) &lt;a
href=&quot;https://twitter.com/brunosan/status/1785351353925632&quot;&gt;November 8,
2010&lt;/a&gt;&lt;/blockquote&gt;


&lt;script async src=&quot;//platform.twitter.com/widgets.js&quot;
charset=&quot;utf-8&quot;&gt;&lt;/script&gt;


&lt;p&gt;We started chatting about Twitter and Foursquare which were fairly
unknown services back
then. Really nice conversation. Then we talked about the conference, our common background
interest in space and what not. I must have had a poker face when she asked If I knew Space X.
Turns out she is a good friend of
&lt;a href=&quot;http://en.wikipedia.org/wiki/Elon_Musk&quot;&gt;Elon Musk&lt;/a&gt;, and she was going
to visit the rocket factory the next day. She then offered me to come along.&lt;/p&gt;

&lt;p&gt;Elon was somewhere else taking care of some &amp;ldquo;Tesla&amp;rdquo; thing that day, but his personal assistant Mary Beth and the astronaut &lt;a href=&quot;http://en.wikipedia.org/wiki/Ken_Bowersox&quot;&gt;Ken Bowersox&lt;/a&gt; gave us an awesome tour around the rocket factory. I had many technical questions, and Jeff was very keen to answer all of them. Had I been american I would have quit my job at NAS to work there (&lt;a href=&quot;http://en.wikipedia.org/wiki/International_Traffic_in_Arms_Regulations&quot;&gt;ITAR&lt;/a&gt; regulations prohibit us foreigners to do so, or even see some types of hardware. My previous work at Department of Defense calibrating a rocket camera was borderline, so I knew well about it. For my work at NRL and visits at the NASA JPL and the Pentagon I was kind of used to that. Very annoying). Still with the ITAR restriction Ken and Mary Beth were very accommodating to make sure we stayed on ITAR limits but make it a great experience.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/nasonurb/5166109540/&quot; title=&quot;Space
X by brunosan, on Flickr&quot;&gt;&lt;img
src=&quot;http://farm5.staticflickr.com/4024/5166109540_8532648a58.jpg&quot;
width=&quot;500&quot; height=&quot;284&quot; alt=&quot;Space X&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that´s how I got a personalized visit to Space X, by the hand of an astronaut. You can see all the pictures &lt;a href=&quot;http://www.flickr.com/photos/nasonurb/sets/72157625359251768/show/&quot;&gt;here on Flickr&lt;/a&gt;. Surely it was not &lt;em&gt;only&lt;/em&gt; a tweet, but a combination of really awesome people like Christie, Mary Beth and Ken, my professional interest on space and being so proactive. But still, like in &lt;a href=&quot;https://stories.twitter.com/en/get_a_job.html&quot;&gt;this story&lt;/a&gt; where &lt;a href=&quot;https://twitter.com/vruba&quot;&gt;Charlie Loyd&lt;/a&gt; landed a job at &lt;a href=&quot;http://www.mapbox.com&quot;&gt;Mapbox&lt;/a&gt; it was the flapping of the &lt;a href=&quot;http://en.wikipedia.org/wiki/Butterfly_effect&quot;&gt;butterfly wings&lt;/a&gt;.&lt;/p&gt;

&lt;object width=&quot;500&quot; height=&quot;375&quot;&gt; &lt;param name=&quot;flashvars&quot;
value=&quot;offsite=true&amp;lang=en-us&amp;page_show_url=%2Fphotos%2Fnasonurb%2Fsets%2F72157625359251768%2Fshow%2F&amp;page_show_back_url=%2Fphotos%2Fnasonurb%2Fsets%2F72157625359251768%2F&amp;set_id=72157625359251768&amp;jump_to=&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;movie&quot;
value=&quot;http://www.flickr.com/apps/slideshow/show.swf?v=124984&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;embed
type=&quot;application/x-shockwave-flash&quot;
src=&quot;http://www.flickr.com/apps/slideshow/show.swf?v=124984&quot;
allowFullScreen=&quot;true&quot;
flashvars=&quot;offsite=true&amp;lang=en-us&amp;page_show_url=%2Fphotos%2Fnasonurb%2Fsets%2F72157625359251768%2Fshow%2F&amp;page_show_back_url=%2Fphotos%2Fnasonurb%2Fsets%2F72157625359251768%2F&amp;set_id=72157625359251768&amp;jump_to=&quot;
width=&quot;500&quot; height=&quot;375&quot;&gt;&lt;/embed&gt;&lt;/object&gt;


&lt;p&gt;Thank you Christie, Mary Beth and Ken. You are &lt;strong&gt;awesome&lt;/strong&gt;.&lt;/p&gt;
</content>
	</entry>
	
	<entry>
		<title>Young Global Leader 2013</title>
    <link href="http://brunosan.eu/2013/03/12/young-global-leader-2013/"/>
		<updated>2013-03-12T00:00:00-04:00</updated>
		<id>//2013/03/12/young-global-leader-2013</id>
		<content type="html">&lt;p&gt;Today the &lt;em&gt;World Economic Forum&lt;/em&gt; (&lt;a href=&quot;http://www.weforum.org/&quot;&gt;WEF&lt;/a&gt;) &lt;a href=&quot;http://www.weforum.org/news/world-economic-forum-announces-young-global-leaders-class-2013&quot;&gt;announces&lt;/a&gt; this year awards of  &amp;ldquo;Young Global
Leaders&amp;rdquo;
(&lt;a href=&quot;http://www.weforum.org/community/forum-young-global-leaders&quot;&gt;YGL&lt;/a&gt;).
I am one of them.&lt;/p&gt;

&lt;p&gt;According to the website:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&amp;ldquo;Young Global Leaders represent the future of leadership, coming from all
regions of the world and representing business, government, civil
society, arts &amp;amp; culture, academia and media, as well as social
entrepreneurs.&lt;/p&gt;

&lt;p&gt;Nominated under 40, these young leaders are proposed through a qualified
nomination process and assessed according to rigorous selection criteria
accepting only the very best leaders who have already demonstrated their
commitment to serving society at large.&quot;&lt;/p&gt;&lt;/blockquote&gt;

&lt;!--more--&gt;


&lt;p&gt;Back in May 2012 I was asked by a work colleague who was interested in &lt;a href=&quot;http://index.gain.org&quot;&gt;our
work&lt;/a&gt; if I minded to be &lt;a href=&quot;http://nomination.younggloballeaders.org/nominationform.aspx&quot;&gt;proposed to be YGL&lt;/a&gt;. I didn&amp;rsquo;t know what that was, but we then talked about my life, and the motivation behind my perhaps peculiar professional path. Plain honest conversation.&lt;/p&gt;

&lt;p&gt; I then read a bit about the
&lt;a href=&quot;http://www.weforum.org/comawardeesmunity/forum-young-global-leaders&quot;&gt;YGL&lt;/a&gt;, and I was
highly impressed. Nominations go through a internal and external
evaluation and screening
&lt;a href=&quot;http://www.weforum.org/content/pages/nominate-young-global-leader&quot;&gt;process&lt;/a&gt;. Some of the previous awardees include Sergey Brin (Google), Jimmy
Wales (Wikipedia), Marissa Mayer (Yahoo), Mark Zuckerberg (Facebook), and countless other successful CEOs, ministers, athletes, &amp;hellip; I found a wonderful Youtube Channel with short videos to &amp;ldquo;&lt;a href=&quot;https://www.youtube.com/user/yglvoices&quot;&gt;Meet the YGL&lt;/a&gt;&amp;rdquo;. Very motivational and impressive.&lt;/p&gt;

&lt;p&gt;And so I forgot about my nomination.&lt;/p&gt;

&lt;p&gt;To my surprise, just few weeks ago, I received an email with this Subject:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&amp;ldquo;You Have Been Honored as a Young Global Leader 2013&amp;rdquo;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;And so I started receiving information about the group,
activities, a fellow &amp;ldquo;mentor&amp;rdquo;, events, &amp;hellip; Turns out I am the only spaniard this year.&lt;/p&gt;

&lt;p&gt;Since then I have spent some time back on that YouTube channel, reading
information provided, talking with fellow YGLs, interacting with the YGL headquarters in Geneva and hunting tweets and blog posts of other YGLs.&lt;/p&gt;

&lt;p&gt;I don´t know yet what really &lt;em&gt;is&lt;/em&gt; the YGL, but I am certain this is an amazing opportunity
and an honor. I am truly humbled and
thankful for this nomination. Reading the roster of fellow YGLs, I can only take this
as an acknowledgement of a trajectory that is still very short. It has
not been easy, and the passion that drives me rejoices with this
opportunity: a clear motivation to help bring Science
and Technology closer to Society.&lt;/p&gt;

&lt;p&gt;Being a YGL, I am told, is a transformational experience. Certainly, having the
chance to get to know such a &lt;em&gt;Forum&lt;/em&gt; of &lt;em&gt;doers&lt;/em&gt; will be motivating.&lt;/p&gt;

&lt;p&gt;For now, I´m planning to squeeze as much time as possible to take the
most of this opportunity WEF is offering. Let´s do it.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&amp;ldquo;I don´t know where is the limit, but I know where the limit is not&amp;rdquo;
@josefajram&lt;/p&gt;&lt;/blockquote&gt;

&lt;iframe width=&quot;420&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/vtW1uqTpV94  &quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;


&lt;p&gt;&lt;em&gt;Update&lt;/em&gt;: Yahoo Spain has run an interview, &lt;a href=&quot;http://es.noticias.yahoo.com/bruno-sanchez--astrofisico-espa%C3%B1ol-valioso-zuckerberg-federer-chris-martin-152850179.html&quot;&gt;in spanish&lt;/a&gt;. At some point it
was on the &lt;a href=&quot;https://twitter.com/brunosan/status/311540366912405504/photo/1&quot;&gt;front page of
Yahoo&lt;/a&gt;. Crazy day.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/yahoo-ygl.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/yahoo-ygl.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
</content>
	</entry>
	
	<entry>
		<title>Walking the talk in climate change</title>
    <link href="http://brunosan.eu/2013/02/13/walking-the-talk-in-climate-change/"/>
		<updated>2013-02-13T00:00:00-05:00</updated>
		<id>//2013/02/13/walking-the-talk-in-climate-change</id>
		<content type="html">&lt;blockquote&gt;&lt;p&gt;&amp;ldquo;It is not about the Science, it is not about mitigation, it is not about projections&amp;hellip; it´s about all of that, on top of the &lt;strong&gt;current&lt;/strong&gt; adaptation gap&amp;rdquo;.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;This is what I was
thinking as I left the NAS/NASA workshop &lt;a href=&quot;http://www.tisp.org/index.cfm?cdid=12848&amp;amp;pid=10231&quot;&gt;&lt;em&gt;Walking the talk: Climate
Science in Service to Resilient Federal
Properties&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This workshop, incidentally, was canceled few hours short of its original date, October 31st, due
to &lt;a href=&quot;http://en.wikipedia.org/wiki/Hurricane_Sandy#Mid-Atlantic_2&quot;&gt;Sandy&lt;/a&gt;. On the second attempt, it was again almost cancelled, due to
&lt;a href=&quot;http://webcache.googleusercontent.com/search?q=cache:V9J9gTKsRpoJ:forecast.weather.gov/showsigwx.php%3Fwarnzone%3DVAZ042%26warncounty%3DVAC107%26local_place1%3DBluemont%252BVA%26product1%3DWind%2BAdvisory+&amp;amp;cd=7&amp;amp;hl=en&amp;amp;ct=clnk&amp;amp;gl=us&quot;&gt;exceptional wind and rain conditions in DC&lt;/a&gt;. That pretty much summarizes
my take-away from the meeting.&lt;/p&gt;

&lt;!--more--&gt;


&lt;p&gt;NASA, as a forerunner, shared their progress
securing their federal facilities against the changing climate. They talked about the process from
the science of data and models, to the implementation of adaptation measures such as
physical storm surge barriers at their coastal rocket facilities.&lt;/p&gt;

&lt;p&gt;I found of special relevance the importance they gave to avoid a purely science driven
approach. It´s just not only about the science pushing data to decision
makers. Indeed, NASA partnered with architects, contractors, journalists and other
stakeholders with the goal of being responsive to all actors involved on
this process.&lt;/p&gt;

&lt;p&gt;Still, the disconnect exists. Even on a room filled with federal
employees whose boss in 2009 established a presidential &lt;a href=&quot;http://www.whitehouse.gov/administration/eop/ceq/initiatives/adaptation&quot;&gt;Climate change Adaptation Task
Force&lt;/a&gt; (along with the mandate to &amp;ldquo;manage the effects of climate change in short and long term&amp;rdquo;),
as well as concrete &lt;a href=&quot;http://www.whitehouse.gov/sites/default/files/microsites/ceq/adaptation_final_implementing_instructions_3_3.pdf&quot;&gt;2011 Implementing Instructions for Federal Agency Climate Change Adaptation Planning&lt;/a&gt;.
 One of the first question from another
federal employee was about the uncertainty of climate science. To him,
inaction was wiser until we know to &lt;em&gt;what&lt;/em&gt; we should adapt &lt;em&gt;to&lt;/em&gt;.
And so we debated and polarized even more the issue.&lt;/p&gt;

&lt;p&gt;Where is this disconnect coming from? Part of this, I believe, is that
climate change is linked to mitigation and &lt;em&gt;future&lt;/em&gt; consequences. The future overshadows the present. For example, sea level rise is present on every
discussion on climate change, while storm surges are often not so. Yet these &lt;a href=&quot;http://www.scientificamerican.com/article.cfm?id=how-to-protect-new-york-city-from-storm-surges&quot;&gt;already have costly
consequences&lt;/a&gt;. Perhaps
we´ll see this loop closing as people connect with the unfortunate,
reality of increasing extreme events like storm surges,
&lt;a href=&quot;http://droughtmonitor.unl.edu/&quot;&gt;droughts&lt;/a&gt;,
blizzards&amp;hellip; Here at home, not overseas on the TV. As we connect  with our &lt;em&gt;current&lt;/em&gt; climate
vulnerability: There is already an &lt;strong&gt;adaptation gap&lt;/strong&gt; that needs to be
addressed. Building resiliency, protecting lives, saving ecosystems, safeguarding livelihoods,
protecting investments and infrastructures, identifying new
opportunities and challenges. This, in turn, will unleash an inclusive role of all stakeholders, including
the underplayed private sector.&lt;/p&gt;

&lt;p&gt;Of course, on top of this current vulnerability, challenges will increase,
specially for the most vulnerable.&lt;/p&gt;

&lt;p&gt;Perhaps americans, as constituency, will &lt;em&gt;connect&lt;/em&gt; with the climate and thus push it up on the
political agenda. Perhaps then political leadership will catalyze. For
that, a second term president certainly helps.&lt;/p&gt;

&lt;p&gt;Treating climate change as a mitigation issue with incremental impacts in the future is ill-informed. Manhattan probably has the greenest least polluting modern buildings, and yet it
will continue to flood until we take action on building resilience to
climate.&lt;/p&gt;
</content>
	</entry>
	
	<entry>
		<title>Upgrading the World Data Bank</title>
    <link href="http://brunosan.eu/2013/01/17/upgrading-world-data-bank/"/>
		<updated>2013-01-17T00:00:00-05:00</updated>
		<id>//2013/01/17/upgrading-world-data-bank</id>
		<content type="html">&lt;p&gt;The &lt;a href=&quot;http://data.worldbank.org/&quot;&gt;Open Data Catalog at the World Bank&lt;/a&gt; is a fantastic resource. I´ve
used it many, many times. Specially while developing the &lt;a href=&quot;http://index.gain.org&quot;&gt;GAIN
Index&lt;/a&gt;. I´m sure I´ve spent hours on that domain. It´s astonishing the amount of information
they´ve gathered on a consistent way.&lt;/p&gt;

&lt;p&gt;Our Gain Index indeed uses, and references, roughly 80% of it´s
components directly back to the Catalog. Proudly, but oddly, a number
of people have told me that they  use our page &lt;strong&gt;instead&lt;/strong&gt; of the Bank´s to get a glimpse of the data
for a particular country. As humbling as that is, it´s odd that our page
gets visits to see the components, not the aggregation we do for our
purposes. It´s like buying a book for the Bibliography.&lt;/p&gt;

&lt;p&gt;Last Thursday the data team posted a &lt;a href=&quot;http://blogs.worldbank.org/opendata/the-future-of-the-open-data-catalog&quot;&gt;call for input&lt;/a&gt;. They are upgrading the
Catalog to be &amp;ldquo;more technologically capable, but also more user friendly, readable and
understandable&amp;rdquo;. On their summary of the proposition they highlight: Search, Federation,
user friendliness, better metadata, and scalable.&lt;/p&gt;

&lt;p&gt;These are my six points of feedback: fast, flat, visual, better
feedback, support more granularity of data, and open the source.&lt;/p&gt;

&lt;!--more--&gt;


&lt;h3&gt;SPEED&lt;/h3&gt;

&lt;p&gt;The Catalog must be &lt;em&gt;fast&lt;/em&gt;. And I can propose a concrete benchmark:&lt;br/&gt;
Faster than using the traditional sets of Excel files many people
use. That´s the inertia from part of their target users. Why would I
prefer to fire up the website every time If I can download the whole thing to my
disk? This is specially important if you don´t have a fast connection,
like it happens in many parts of the world.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Avoid full page reloads. A substantial percentage of the page will
be the same, and it will not have the content I am looking for (
navigation links, legal/institutional notices, &amp;hellip;). Having light overheads of headers and
technologies like AJAX could help with this.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Transfer to the client browser as much as possible. Browsers can do
amazing things, not just painting server states. Either using
things like node.js or via other options, it could speed things up
significantly. Also, the less the servers do, the more the IT and security
guys at the Bank will like it. Back when I worked inside the Department
of Defense, Javascript was golden, and PHP was evil.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Asynchronous calls. Avoid linearity. This is related to avoiding full
page reloads if I, e.g., want to add a country to a plot, or I´ve
requested more info on a particular data point.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;All these points are actually related to make the Catalog feel less like
a website and more like an app.&lt;/p&gt;

&lt;h3&gt;As flat as possible&lt;/h3&gt;

&lt;p&gt;This is also related with speed. Minimize the &lt;em&gt;clicks-to-target&lt;/em&gt;.
The distance from the front page to  any piece of information should less
than, say, three clicks, or two. Same for the most common cases like i.e. showing
the world´s GDP compared to x and y country.&lt;/p&gt;

&lt;h3&gt;Low friction for basic users&lt;/h3&gt;

&lt;p&gt;If journalists and general citizens are target groups, I believe having a
simple visual landing page is very important. Something they might be
used to. Something like a Google Search style. Faceted searches are good
for experts but intimidating if you don´t know the answer to all options
presented. And they occupy &lt;strong&gt;a lot&lt;/strong&gt; of space on the screen.&lt;/p&gt;

&lt;table&gt;
&lt;tr&gt;
&lt;td width=&quot;40%&quot;&gt;&lt;a href=&quot;/media/data-catalog.png   &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/data-catalog.png   &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td width=&quot;60%&quot;&gt;&lt;a href=&quot;/media/Gain-frontpage.png   &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/Gain-frontpage.png   &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;


&lt;p&gt;I also love maps, interactive maps. Personally, and this is the way I´m
leading the upgrade of GAIN, a simple interactive map like GAIN and then
adding search fields like Google (or Wolfram Alpha).
Procrastinating folks can navigate the map slipping towards deeper
levels of detail. The search box, small but prominent, gives you access
to everything. Coupling it with some predictive/popular suggestion
could be very powerful to allow &lt;em&gt;one click&lt;/em&gt; links to queries like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GDP of the World, and Spain and Sub-Saharian countries.&lt;/li&gt;
&lt;li&gt;Top 10 countries by Population.&lt;/li&gt;
&lt;li&gt;What measures and years aer available for Nuaru since 2000?&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;Feedback&lt;/h3&gt;

&lt;p&gt;Over the course of these 2 years working with the Catalog I´ve found
around around 50 cases of small bugs, missing explanations or unexpected
behaviours. The feedback channel, an email, is very opaque to the rest of
the users. Certainly the answer has been always positive and every email
I´ve sent was replied. Even when I tweeted about it, like when I found
out that apparently 99% of the nurses in Netherlands had been fired:&lt;/p&gt;

&lt;blockquote class=&quot;twitter-tweet&quot;
data-in-reply-to=&quot;230719792498225153&quot;&gt;&lt;p&gt;Thanks for the Netherlands
Nurses find @&lt;a href=&quot;https://twitter.com/brunosan&quot;&gt;brunosan&lt;/a&gt; - I'll
take a look! The source data from the WHO looks the same, so we can ask
them too :-)&lt;/p&gt;&amp;mdash; Tariq Khokhar (@tkb) &lt;a
href=&quot;https://twitter.com/tkb/status/230746382896599042&quot;
data-datetime=&quot;2012-08-01T19:26:39+00:00&quot;&gt;August 1,
2012&lt;/a&gt;&lt;/blockquote&gt;


&lt;script async src=&quot;//platform.twitter.com/widgets.js&quot;
charset=&quot;utf-8&quot;&gt;&lt;/script&gt;


&lt;p&gt;&amp;hellip;&lt;/p&gt;

&lt;blockquote class=&quot;twitter-tweet&quot;
data-in-reply-to=&quot;230754684065955840&quot;
&gt;&lt;p&gt;@&lt;a
href=&quot;https://twitter.com/brunosan&quot;&gt;brunosan&lt;/a&gt; Bizarre. That or maybe
they only divided the midwives and not midwives + nurses. Will pass it
on - thanks again!&lt;/p&gt;&amp;mdash; Tariq Khokhar (@tkb) &lt;a
href=&quot;https://twitter.com/tkb/status/230755868185083904&quot;
data-datetime=&quot;2012-08-01T20:04:20+00:00&quot;&gt;August 1,
2012&lt;/a&gt;&lt;/blockquote&gt;


&lt;script async src=&quot;//platform.twitter.com/widgets.js&quot;
charset=&quot;utf-8&quot;&gt;&lt;/script&gt;


&lt;p&gt;It would be great If you could &lt;em&gt;flag&lt;/em&gt; data, or measures, and leave
feedback, or requests. Other users could reply, or vote, raising prominence to the
issue. I can see how this could also pressure the original sources of the
data which on many causes are also the root of the issue, like the
example above with the nurses data.&lt;/p&gt;

&lt;p&gt;Fixing identified issues with the data is specially important if you intend to use
the data directly via APIs. Otherwise, you need extra steps to &lt;em&gt;fix&lt;/em&gt;
those issues.&lt;/p&gt;

&lt;h3&gt;Towards organic resolution&lt;/h3&gt;

&lt;p&gt;This is a big one I´m also struggling with. Most of the available data is at
the national level. There are many reasons for that, from feasibility
and gathering constrains, to pragmatism to the scale most users wanted.
Nowadays it´s increasingly easy to get data, but also we demand more
granularity. For some Indicators national scale makes sense, like fiscal
policies, but for many other the higher the resolution the better. For
example access to energy at the national level is important to
prioritize in the global context, but knowing on which region to focus
is equally relevant. This is specially the case for big heterogeneous
countries, like India, China, Russia, USA &amp;hellip;&lt;/p&gt;

&lt;p&gt;What I&amp;rsquo;m proposing, and is the direction I´m planning to develop
at GAIN, is an &lt;em&gt;organic resolution&lt;/em&gt; protocol:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;There is a background
database with all available measures, at all available resolutions, as
a network of nodes with plenty relations among them based on geography, economy,
culture, correlations, &amp;hellip;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the user request one of them, it´s instantly served.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Sometimes one might need aggregates of available data, like for example all countries
from LAC, or spanish speaking, or cities inside this watershed. The interface then requests that job and
it´s served aggregated as the median or envelope values (this can probably be also done at the client level via
Javascript).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;Sometimes the data is simply not available, and then some
working assumptions could be suggested like based on geographical
neighbours, similar countries in other correlated measures, temporal
extrapolations &amp;hellip; In these cases probably more computation is needed,
specially to provide degree of uncertanty.&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;Open the Source&lt;/h3&gt;

&lt;p&gt;Just like the White House &lt;a href=&quot;http://www.whitehouse.gov/developers&quot;&gt;releases&lt;/a&gt;
 much of the web tools they developed,
the World Banks could do that. Even more, more than releasing, engaging
in a conversation with the community e.g. &lt;a href=&quot;https://github.com/WhiteHouse&quot;&gt;using github&lt;/a&gt;: aggregating forks, issues, pull
requests&amp;hellip;&lt;/p&gt;

&lt;hr&gt;


&lt;p&gt;The data portal is a &lt;strong&gt;fantastic&lt;/strong&gt; tool for both researchers and casual
users. It´s already well ahead of the curve. But there is much more it
could be done, no only to improve the portal and consumption of data, but
also to spread best uses and help others catch up on their online
resources.&lt;/p&gt;

&lt;p&gt;Back in April 2010, the former President of the World Bank, Robert Zoellick, &lt;a href=&quot;http://blogs.worldbank.org/opendata/open-data-at-the-world-bank-2-years-old-today&quot;&gt;said&lt;/a&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&quot;It's important to make the data and knowledge of the World Bank
available to everyone. Statistics tell the story of people in developing
and emerging countries and can play an important part in helping to
overcome poverty.&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;or as an american told me:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&quot;In God we trust... but everyone else bring data&quot;
&lt;/code&gt;&lt;/pre&gt;
</content>
	</entry>
	
	<entry>
		<title>2nd Marathon</title>
    <link href="http://brunosan.eu/2012/12/02/2nd-marathon/"/>
		<updated>2012-12-02T00:00:00-05:00</updated>
		<id>//2012/12/02/2nd-marathon</id>
		<content type="html">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/nasonurb/8216425185/&quot; title=&quot;So,
this is what you find after running 22 km.... #marathon #halfway by
brunosan, on Flickr&quot;&gt;&lt;img
src=&quot;http://farm9.staticflickr.com/8484/8216425185_96f30e78ba.jpg&quot;
width=&quot;500&quot; height=&quot;500&quot; alt=&quot;So, this is what you find after running 22
km.... #marathon #halfway&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Last week I ran the &lt;a href=&quot;http://ncrtrailmarathon.com/&quot;&gt;NCR &lt;strong&gt;Trail&lt;/strong&gt; Marathon&lt;/a&gt; in Baltimore. This is only 4
weeks after my &lt;a href=&quot;/2012/10/29/Running-a-marathon/&quot;&gt;first marathon&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I didn&amp;rsquo;t actually train for it, as it was not on my plans four days
before the race. I crossed the start line breaking plenty of
recommendations, like getting some time off, new shoes, new
clothes, no music for the first time, first trail race, no setting goals
or paces, &amp;hellip;&lt;/p&gt;

&lt;p&gt;Somehow I managed to pull quite an enjoyable race and beating my best marathon time.&lt;/p&gt;

&lt;!--more--&gt;


&lt;p&gt; A friend of mine was running this race with someone else, but that person
cancelled. A thought I could just join my friend. The race takes place
north of Baltimore, so he had to take the train the day before, then the
tram, get a hotel, go to race, and then come back. I decided to go with him,
start the race to help him pace. I had run my first marathon only 4
weeks prior, so I didn´t want to push my body for too much. Deep inside
I also wanted to try, as I felt pretty well recovered from the first
race.&lt;/p&gt;

&lt;p&gt;This is a &lt;strong&gt;trail&lt;/strong&gt; marathon but, thankfully most of it goes using an old
train line. This means that it goes through a forest on an unpaved road but is mostly
flat. The course is back and forth, with roughly a 75m elevation change
in the turn around:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/NCR-profile.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/NCR-profile.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One of the most important rules I´ve read about marathons is never to
try something new on the race day. Well:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First time travelling for a race, with all the hotel, eating changes,
and not seen the race track before.&lt;/li&gt;
&lt;li&gt;New shoes.&lt;/li&gt;
&lt;li&gt;Forgot my &lt;em&gt;Gu&lt;/em&gt; energy gels at home, so I planned on just using dates as fuel,
and a couple of &lt;em&gt;Gu&lt;/em&gt; I could get.&lt;/li&gt;
&lt;li&gt;New thermal clothes, since it was going to be quite cold.&lt;/li&gt;
&lt;li&gt;First time running without music. (Not allowed, but then most people
had music&amp;hellip; too late!)&lt;/li&gt;
&lt;li&gt;I´ve never paced someone else or run with anyone.
&amp;hellip;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This is also a small race in the forest with 400 participants, not a 30.000+ in
DC, so most of the time you will be alone, and probably among better runners.&lt;/p&gt;

&lt;h2&gt;The race&lt;/h2&gt;

&lt;p&gt;This is the School where we gathered before the race:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/nasonurb/8216437967/&quot; title=&quot;NCR
trail marathon by brunosan, on Flickr&quot;&gt;&lt;img
src=&quot;http://farm9.staticflickr.com/8068/8216437967_ffa6a6e088.jpg&quot;
width=&quot;500&quot; height=&quot;375&quot; alt=&quot;NCR trail marathon&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I crossed the start line, my goal was to keep my pace not faster
than a 4:30 marathon, and run along my friend. Right on mile 3 or so, we
decided to split ways. I was feeling great so I
increased the pace  a little bit, but always keeping it slow. Reading my
bpm after the race, I managed to keep it well below my anaerobic limit of 150,
and I was running pretty smooth in the 130-140 range. It was quite cold so
sweating was not a problem, and the new tighter clothes kept me warm without chaffing risk. I was
running on a small pack of 4 people, without minding my pace much, any
race strategy or anything. It is surprising how your mind just drifts off. I had
no music but watching the forest around, feeling my own body and keeping
the pace of the group was actually good. I didn´t miss the music at all.&lt;/p&gt;

&lt;p&gt;Since I only had 3 &lt;em&gt;Gu&lt;/em&gt; energy gels instead of the 6 I used in the
previous marathon, I decided to keep the dates I had brought for breakfast
and eat 2 every 30 minutes or so. I rationed my &lt;em&gt;Gu&lt;/em&gt; to eat one each way on the half point
of the back and forth track,
and also one the turn around. I have to say that it feel much better on the stomach and I had
no lack of energy compared to using twice the gels like last time.&lt;/p&gt;

&lt;p&gt;Getting to mile 13 was quite a good feeling. I only had to go back. It
is a bit of an irony that you ran all these miles only to find a
sign that says, &amp;ldquo;turn around&amp;rdquo;. That&amp;rsquo;s the image at the top of
this post.&lt;/p&gt;

&lt;p&gt;Despite having only run once since the last marathon 4 weeks prior I was
in pretty good shape. I had a small pain on my right hip, which I think
might be for running too slow. My hypothesis is that I was running
slower than I usually do, so I started to bounce up and down instead of
down and forward. That little extra bounce down was being absorbed by the
knees and hip, and hence the pain. And of course, the lack of training.&lt;/p&gt;

&lt;p&gt;On the turn around I made a small pause to make the picture and also drink water. When
I went back, after a mile or so, I decided to do the rest of the race,
now slightly downhill, enjoying the forest and pushing a little bit more.
According to &lt;a href=&quot;http://app.strava.com/activities/29711289#&quot;&gt;Strava&lt;/a&gt; that has all
my runs since 2009, on that second half marathon I made my best ever 400m
(4:07min/km) but also best &amp;frac12; mile, 5km, mile, 10 km, 15 km and 10 miles.
I think I overtook 50 runners or so in the second half.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/brrc/8215552252/&quot; title=&quot;ParkB0218
by brrc, on Flickr&quot;&gt;&lt;img
src=&quot;http://farm9.staticflickr.com/8490/8215552252_950eb64da1.jpg&quot;
width=&quot;333&quot; height=&quot;500&quot; alt=&quot;ParkB0218&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The famous mile 20, where many people &lt;em&gt;hit the wall&lt;/em&gt; went by and I was
managing the struggle. The pain in the hip was worse but I wanted to
finish without walking. Unfortunately mile 24 had a horrendous slope
that I just couldn&amp;rsquo;t do, so I walked it. A fellow runner cheered me to
push, as the finish line was just a mile away. It was hard, but I went
back to running, and when I saw the end I managed to squeeze a sprint to
cross with 180 bpm, a full smile and the surreal fact I had done a faster
marathon.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/NCR-finish.jpeg &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/NCR-finish.jpeg &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;Results data&lt;/h2&gt;

&lt;p&gt;The &lt;a href=&quot;http://www.charmcityrun.com/content/results/ncrtrail_mara_res_12_post_a.htm&quot;&gt;results for all runners&lt;/a&gt; are already available. This time there is no
location data, so no mapping for these runners. What I could do is
create the &lt;a href=&quot;http://brunosan.eu/2012/10/29/Running-a-marathon/&quot;&gt;same visualizations as last
time&lt;/a&gt;, and compare the
statistical results with the last race.&lt;/p&gt;

&lt;p&gt;This race is 8 times smaller, and my hypothesis is that you
would find mostly good local runners yielding better times on average,
runners from far away trying to qualify to other races, like Boston,
also faster, and also another set with slower local runners trying the distance.&lt;/p&gt;

&lt;p&gt;When I was nearing the turn around I found the runners on the lead.
Turns out that the second one, who was already struggling when I saw
him, was running his first marathon, and he did not use the water stops, or
had any gel. He was crazy fast, and I later knew he hit hard the wall
around mile 18 and was taken to the hospital. Not a joke!&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Note: For the comparison of this race (NCR) with the Marine Corp Marathon (MCM)
I had to normalize the histograms to the total number of race
participants. Otherwise the NCR histogram is too small to be seen.
So when you see 0.04 on y axis it meas 4% of the finishers.&lt;/p&gt;&lt;/blockquote&gt;

&lt;h2&gt;Runners by Age&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;/media/NCR-age.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/NCR-age.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;66% of participants were male. Most women were actually grouped
on the 35-40 bin. Compared to the MCM, the 25-30 women were mostly
missing, but on the other side, there were more women 35-40.
Numbers for women are much more concentrated than men, whose biggest group
was 45-50 years old. Overall there seems to be less younger
participants.&lt;/p&gt;

&lt;h2&gt;Runners by time&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;/media/NCR-time.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/NCR-time.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In terms of time, this race (which is 7 times smaller) deviates
significantly from the nice Gaussian shape of the MCM. Smaller races
don´t yield scalable results. The &lt;em&gt;4 hours
milestome&lt;/em&gt; is much more apparent in both men and women, with another
peak for women around 4:30. After that time, there is consistently better
times for this smaller race than the more popular MCM. Big races attract
slower runners. On the other side fast runners are proportionally much
more prominent, specifically faster men.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/NCR-scatter.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/NCR-scatter.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Combining both dimensions one gets again the scatterplot of Hours by
runner Age and Gender. As I was mentioning in the beginning, the
smaller NCR race seems to attract mostly faster runners, regardless of
Age. The group of faster men in the outer rim is still apparent but vague.&lt;/p&gt;

&lt;p&gt;From this plot one can also see the bigger more famous MCM race is able to
attract many more (overall) slower runners, specially on the 15-35 age range.&lt;/p&gt;

&lt;p&gt;Most of the results lie within the envelope of the bigger race, which
thus indicates that a bigger, more popular race, also includes the type
of participants of smaller races.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/NCR-scatter2.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/NCR-scatter2.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also like last time, I try to estimate those who are not able to keep a
constant pace, and e.g. hit the wall on the second half. This does not
include those who have to leave the race, as only finishers are taken
into account. This might be important, as I can guess that the cold
temperatures made many walkers quit the race.&lt;/p&gt;

&lt;p&gt;NCR runners on this smaller race seem to be able to keep their paces
much better. The graph is remarkably vertical without much deviation on
either side. The &lt;em&gt;Wall&lt;/em&gt; is barely visible with an impact of less than 1
hour on the finish time.&lt;/p&gt;

&lt;p&gt;Again women seem remarkably better at setting a pace and keeping it the
whole race.&lt;/p&gt;

&lt;h3&gt;Some extra Resources&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;All the python code and data for the visualizations is available on
this &lt;a href=&quot;https://github.com/brunosan/NCR&quot;&gt;github repository&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;I used this nifty &lt;a href=&quot;http://www.darckr.com/username?username=brrc&quot;&gt;Flickr
Visualizer&lt;/a&gt; to check all
race pictures quickly and find the only one among 400 or so where I am.&lt;/li&gt;
&lt;/ul&gt;

</content>
	</entry>
	
	<entry>
		<title>Does the Universe have a purpose?</title>
    <link href="http://brunosan.eu/2012/11/30/does-the-universe-have-a-purpose%3F/"/>
		<updated>2012-11-30T00:00:00-05:00</updated>
		<id>//2012/11/30/does-the-universe-have-a-purpose?</id>
		<content type="html">&lt;iframe width=&quot;420&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/7pL5vzIMAhs &quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;


&lt;p&gt;Neil deGrasse Tyson is, to my taste, one of the greatest
outreach scientist of our time. Not long ago, the Templeton Fundation
asked leading scientist and scholars &lt;a href=&quot;http://www.templeton.org/purpose/&quot;&gt;&amp;ldquo;Does the Universe have a purpose?&amp;rdquo;&lt;/a&gt;.
  His answer is the one I like the most.&lt;/p&gt;

&lt;!--more--&gt;


&lt;blockquote&gt;&lt;p&gt;Anyone who expresses a more definitive response to the question is
claiming access to knowledge not based on empirical foundations. This
remarkably persistent way of thinking, common to most religions and some
branches of philosophy, has failed badly in past efforts to understand,
and thereby predict the operations of the universe and our place within
it.&lt;/p&gt;

&lt;p&gt;To assert that the universe has a purpose implies the universe has
intent. And intent implies a desired outcome. But who would do the
desiring? And what would a desired outcome be? That carbon-based life is
inevitable? Or that sentient primates are life&amp;rsquo;s neurological pinnacle?
Are answers to these questions even possible without expressing a
profound bias of human sentiment? Of course humans were not around to
ask these questions for 99.9999% of cosmic history. So if the purpose of
the universe was to create humans then the cosmos was embarrassingly
inefficient about it.&lt;/p&gt;

&lt;p&gt;And if a further purpose of the universe was to create a fertile cradle
for life, then our cosmic environment has got an odd way of showing it.
Life on Earth, during more than 3.5 billion years of existence, has been
persistently assaulted by natural sources of mayhem, death, and
destruction. Ecological devastation exacted by volcanoes, climate
change, earthquakes, tsunamis, storms, pestilence, and especially killer
asteroids have left extinct 99.9% of all species that have ever lived
here.&lt;/p&gt;

&lt;p&gt;How about human life itself? If you are religious, you might declare
that the purpose of life is to serve God. But if you&amp;rsquo;re one of the 100
billion bacteria living and working in a single centimeter of our lower
intestine (rivaling, by the way, the total number of humans who have
ever been born) you would give an entirely different answer. You might
instead say that the purpose of human life is to provide you with a
dark, but idyllic, anaerobic habitat of fecal matter.&lt;/p&gt;

&lt;p&gt;So in the absence of human hubris, and after we filter out the
delusional assessments it promotes within us, the universe looks more
and more random. Whenever events that are purported to occur in our best
interest are as numerous as other events that would just as soon kill
us, then intent is hard, if not impossible, to assert. So while I cannot
claim to know for sure whether or not the universe has a purpose, the
case against it is strong, and visible to anyone who sees the universe
as it is rather than as they wish it to be.&lt;/p&gt;&lt;/blockquote&gt;
</content>
	</entry>
	
	<entry>
		<title>Running a marathon</title>
    <link href="http://brunosan.eu/2012/10/29/Running-a-marathon/"/>
		<updated>2012-10-29T00:00:00-04:00</updated>
		<id>//2012/10/29/Running-a-marathon</id>
		<content type="html">&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/kaneda99/4146016291/&quot; title=&quot;Go by kaneda99, on Flickr&quot;&gt;&lt;img src=&quot;http://farm3.staticflickr.com/2724/4146016291_4e4649b7a5.jpg&quot; width=&quot;100%&quot; alt=&quot;Go&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Last week I ran the 2012 &lt;a href=&quot;http://www.marinemarathon.com/&quot;&gt;Marine Corps Marathon&lt;/a&gt;. It was my first marathon, I did it as vegan, and it was a &lt;strong&gt;great experience&lt;/strong&gt;. Finish time was &lt;em&gt;3h54m17s&lt;/em&gt;, much better than I expected. To get to that point I trained hard, I focused on my diet and my stride, I read papers on strategies, and I &lt;em&gt;geeked&lt;/em&gt; with the data. I want to talk about all that.&lt;/p&gt;

&lt;!--more--&gt;


&lt;p&gt;I can proudly say that the marathon was a challenge, but not a suffering. I did the last mile with a smile on my face and a strong 15 seconds full sprint to the finish line. Two days later I barely had soreness in the legs, and none of the &lt;a href=&quot;http://walking.about.com/od/marathontraining/tp/marathoninjury.htm&quot;&gt;usual problems&lt;/a&gt;: my toe nails are intact, no blisters, injuries, chaffing or particular pain. I base this success in 4 things: Stride, Fitness, Nutrition, Motivation.&lt;/p&gt;

&lt;h3&gt;1. Stride&lt;/h3&gt;

&lt;p&gt;&amp;ldquo;Every year as many as eighty percent of runners suffer an injury that will keep them off the streets for a month&amp;rdquo;, quotes &lt;a href=&quot;http://www.amazon.com/Born-Run-Hidden-Superathletes-Greatest/dp/0307279189&quot;&gt;Christopher McDougall&lt;/a&gt;. It doesn&amp;rsquo;t make much sense to me. Running should be natural, why do we get so many injuries? These kind of thoughts lead me to consider the minimal shoes Vibram &lt;a href=&quot;http://www.vibramfivefingers.com/index.htm&quot;&gt;Fivefingers&lt;/a&gt;. I read a couple of articles, I followed a couple of threads and that was enough for me to switch to the &lt;strong&gt;forefoot strike&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;img width=&quot;40%&quot; src=&quot;/media/MCM-stride.png &quot; class=&quot;center&quot;&gt;&lt;/p&gt;

&lt;p&gt;The key points to me were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;a href=&quot;http://en.wikipedia.org/wiki/Endurance_running_hypothesis&quot;&gt;running man hypothesis&lt;/a&gt; makes sense to me.&lt;/li&gt;
&lt;li&gt;I&amp;rsquo;ve seen and stretched an Achilles tendon on a dead body (at the Faculty of Medicine). They really have some elasticity. I can see how part of the landing weight is absorbed by the elasticity and released when you push, minimizing the energy to run. Incidentally you can see on the image above a fellow runner with a prosthetic limb using the same principle with the arched metal.&lt;/li&gt;
&lt;li&gt;Landing on the ball of the foot really uses the feet that otherwise are quite passive.&lt;/li&gt;
&lt;li&gt;The stride changes your posture and makes you run more straight and stable above the waist, landing your feet right above the center of mass, so there is no vector pointing backwards. It&amp;rsquo;s just &lt;em&gt;pushing back&lt;/em&gt; all the time.&lt;/li&gt;
&lt;li&gt;The posture also make you land already with a slight bend on the knee, minimizing the impact on the knee and hips. This point was very important, as I would usually get pain there after long runs.&lt;/li&gt;
&lt;li&gt;Quite literally the absorption of the impact is done by the muscles and tendons, not the bones and articulations.&lt;/li&gt;
&lt;li&gt;It just feels smoother and lighter.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;http://www.zygotebody.com/#nav=-2.34,35.81,120.37&quot;&gt;&lt;img width=&quot;50%&quot; src=&quot;/media/Aquiles.png &quot; class=&quot;center&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The only drawback is that, since we always use running shoes, we have never run like that, and muscles and tendons are not prepared. You need to go very slowly or you will injure yourself (like I did last year when I went cold turkey to the Vibram). At first it will feel awkward and it will be hard on your Soleus, Gastrocnemius, Aquiles, soles of the feet and thigh. It helps to walk barefoot at home. It soon pays back, I really believe this stride contributed to running longer, faster and with less pain or soreness afterwards.&lt;/p&gt;

&lt;p&gt;I did not run barefoot like at least one people I saw, or with minimal shoes, like a few as well that I saw, but I would not discard it. As I run, I barely use the heel, so the extra cushioning isn&amp;rsquo;t really involved on my stride. However, having that option helps and on a few occasions I changed my stride to heel strike to release tension and change the cadence as I felt it.&lt;/p&gt;

&lt;p&gt;As a side note. When I finished, after a few minutes, I started to feel my feet cramping. I removed the shoes and walked on my socks. It worked immediately, relaxing my feet. They just wanted to get free from the shoes and stretch out a little bit, just like my legs.&lt;/p&gt;

&lt;h3&gt;2. Fitness&lt;/h3&gt;

&lt;p&gt;Together with the stride, you need to have physical fitness to endure the 26 miles. For that you just need to bank as many miles as possible, without over training. I followed a training plan from Adidas &lt;a href=&quot;http://www.adidas.com/us/micoach/&quot;&gt;MiCoach&lt;/a&gt;, but adjusting it whenever I didn&amp;rsquo;t feel good or I had any problems. I didn't´really pay much attention to the suggested change of pace, I just kept it on a comfortable pace of around 10km/h. Before this training the longest I did was a half marathon in March, before changing the stride, and that was my absolute maximum. I felt awful when I finished, much pain in the left hip and soreness for several days. In the 100 days I trained for this marathon, I went for 5 km/week the first week, to 70 km/week 4 weeks before tapering for the race.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/weekly-runs.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/weekly-runs.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From what I could learn, one of the keys of endurance training is learning about &lt;a href=&quot;http://en.wikipedia.org/wiki/Glycogen&quot;&gt;Glycogen&lt;/a&gt; dynamics. Glycogen is basically the main energy storage of the muscles. The other one, less efficient but more compact is lipids. Some is stored directly on the muscles for immediate use and most of the rest on the liver where, on demand, will be broken down to glucose and send with the blood elsewhere. So the more your muscles store, the better. Training helps muscles store more Glycogen. When we ran out of it, we start to use the other fat reserves. When we deplete glycogen, we &lt;a href=&quot;http://en.wikipedia.org/wiki/Hitting_the_wall&quot;&gt;hit the wall&lt;/a&gt;, typically around mile 20. That&amp;rsquo;s why is helpful to replenish glucose as you run. My choice was &lt;a href=&quot;https://guenergy.com/&quot;&gt;GU&lt;/a&gt; and &lt;a href=&quot;http://www.clifbar.com/food/products_shot_gel_turbo/&quot;&gt;Clif Shots&lt;/a&gt; every 45 minutes or so. With too many of either you get tired of their taste. Even so, my stomach was not too happy after so many of those. If think next time I´ll try peanut butter sandwich, falafel roll or something more&amp;hellip; food resembling.&lt;/p&gt;

&lt;p&gt;Another factor here, the metabolic rate, is very important. When there is enough oxygen the preferred &lt;a href=&quot;http://en.wikipedia.org/wiki/Aerobic_respiration&quot;&gt;cell respiration&lt;/a&gt; to get ATPs on the Slow Twitch fibers (the ones for endurance) is &lt;strong&gt;aerobic&lt;/strong&gt;. You want that for low intensity over long periods of time. If you need more energy than the aerobic metabolism can provide, the body uses the &lt;strong&gt;anaerobic&lt;/strong&gt; pathways, which help get that sprint (mostly on the Fast Twitch fibers), but also produce lactic acid at higher rates than the body can clean, which will make you cramp and even &lt;a href=&quot;http://en.wikipedia.org/wiki/Lactic_acidosis&quot;&gt;vomit&lt;/a&gt;. You want to keep the anaerobic rate down for as long as possible. There is a &lt;a href=&quot;http://fitcoachjoe.com/wordpress/wp-content/uploads/2011/04/Heart+Rate+Zone.jpg&quot;&gt;rough&lt;/a&gt; relation of heart rate (oxygen blood flow) and metabolic regime, for my age (31) is below ~150 bpm for aerobic exercise. You want to keep it below that range, or you will start to consume your precious glycogen anaerobically while your lactate acid builds up. I used a heart rate band for some runs, until I learn to recognize which levels of effort meant which heart rate, and then I was pretty good at keeping it around 150, which also meant around 10 km/h. See my heart rate progress on the marathon run:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/mcm-bpm.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/mcm-bpm.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It was actually quite quick to get there, just 250 m:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/mcm-start.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/mcm-start.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Unfortunately my phone battery died 2 miles before the end (&amp;hellip;some call it progress&amp;hellip;) so I don´t have the pace or bpm during the 15 seconds or so of the sprint. From previous times I think it would be around 25 km/h and closing in into 180 bpm or more when I stopped. I would have loved to see the recovery time back to the resting 60sh bpm or so (perhaps 10 minutes? no idea). From other runs I know I can go down from 170ish to 110 in one minute, but I presume the decay is proportional to the bpm, so from there to 60 perhaps another 5 minutes or more.&lt;/p&gt;

&lt;p&gt;My guess is that a key to run faster marathons is to train your body to run faster keeping it on the aerobic side.&lt;/p&gt;

&lt;h3&gt;3. Nutrition&lt;/h3&gt;

&lt;p&gt;Since last Christmas I decided to try to be vegan. No meat (yes, chicken is also meat), eggs, milk, cheese, honey. Nothing from an animal. I did it mostly for environment reasons (although I find more and more), and switched back to vegetarian or even meat eater whenever it was too difficult (e.g. when I went to Rio de Janeiro, they eat meat on everything!). All in all I eat meat roughly once a month. I had gone to the doctor before becoming &lt;em&gt;vegan of preference&lt;/em&gt; and 3 months later for blood and physical test. Everything was great, I felt better and lost weight. But my doctor did not approved it. When I told him I was planning to train for a marathon as a vegan, he called me stupid. Literally.&lt;/p&gt;

&lt;p&gt;I find more and more reasons to reduce my meat intake as much as I can, but I wasn&amp;rsquo;t sure about running a marathon on plants. After reading some more, and learning about many &lt;a href=&quot;http://www.huffingtonpost.com/scott-jurek/ultramarathon-running-diet_b_1587874.html&quot;&gt;ultramarathoners are indeed vegan&lt;/a&gt;, I decided to try, but monitoring my health. I am not an expert in nutrition so I &lt;a href=&quot;http://en.wikipedia.org/wiki/Veganism#Vegan_diet&quot;&gt;keep it simple&lt;/a&gt;: tons of cereals, many legumes and veggies, some fruit and a bit of olive oil. This is my grocery shopping for a couple of days, 90% from the produce section:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/nasonurb/8145481393/&quot; title=&quot;vegan grocery shopping by brunosan, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8326/8145481393_f1443b4fa2.jpg&quot; width=&quot;75%&quot; class=&quot;center&quot; alt=&quot;vegan grocery shopping&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In particular I enjoyed the extra intake of quinoa, beets, nuts&amp;hellip; I plan to continue like this. Please read &amp;ldquo;&lt;a href=&quot;http://www.amazon.com/gp/product/1594133328?ie=UTF8&amp;amp;camp=213733&amp;amp;creative=393185&amp;amp;creativeASIN=1594133328&amp;amp;linkCode=shr&amp;amp;tag=brunosan-20&quot;&gt;In defense of food&lt;/a&gt;&amp;rdquo;, it´s a great book. I don&amp;rsquo;t think being vegan makes training for a marathon any harder, perhaps on the contrary. And it makes you be more conscious of what you eat, which is good. And &lt;a href=&quot;https://wwws.mint.com&quot;&gt;Mint&lt;/a&gt; says no significant impact on my food budget.&lt;/p&gt;

&lt;h3&gt;4. Motivation&lt;/h3&gt;

&lt;p&gt;Probably the first lesson you learn when you train for a marathon is that &lt;em&gt;commitment&lt;/em&gt; is a big part of it. The training will predate over your life. Forget about going out or drinking the night before a long run. The long run itself will make you wake up early on the weekends and will keep you busy at least half of that day alone. I was making 8 hours of actual running a week. You need to watch what you eat, not to get injured, what to wear, &amp;hellip; You friends will tell you you are obsessed with running. Turns out its addictive! My life during the last month or so was pretty much running, sleeping and &lt;a href=&quot;http://index.gain.org/&quot;&gt;working&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You really need motivation specially on the first days. Running 40 minutes can get very long those early days. But as you train more and more, you start to enjoy and look forward that feeling of achievement and fitness at the end of the race. After a while, the running itself becomes the reward and, believe me, you will really enjoy running. You stop thinking about the time and the steps and you get lost in your thoughts, the music you hear, the nature around you.&lt;/p&gt;

&lt;p&gt;Try to find various sources of motivations. What really worked for me those early days was the music I was playing via Pandora, and then later &lt;a href=&quot;http://www.spotify.com/&quot;&gt;Spotify&lt;/a&gt; (btw this is my &lt;a href=&quot;http://t.co/PAxTGBhd&quot;&gt;running playlist&lt;/a&gt;). And of course the &lt;strong&gt;mapping&lt;/strong&gt;. I was mapping every race with &lt;a href=&quot;http://www.runkeeper.com&quot;&gt;RunKeeper&lt;/a&gt;, and knowing I was going to be able to monitor the track, the speed or the heart rate was a motivation on itself. I even made plans to make tracks of particular paths or shapes, like running the borders of the DC rhomboid. During the long runs I would post a live link so that friends or family could track it in real time. Knowing someone is following my run made me push harder. Getting those likes and comments in Facebook really helped to push through weak times.&lt;/p&gt;

&lt;p&gt;Since November 2011 that I started using RunKeeper, I&amp;rsquo;ve logged 1,440 km, roughly 718Km for this marathon training. I&amp;rsquo;ve written before on how to make a map in TileMill with &lt;a href=&quot;http://brunosan.eu/2012/07/20/a-heatmap-for-all-your-runs-in-runkeeper/&quot;&gt;all your runs as a heatmap&lt;/a&gt;. I did it again, this time with the marathon itself in black, for contrast.&lt;/p&gt;

&lt;p&gt;Together with the same process I used for the heatmap, this is the result. Pan and zoom at will [&lt;a href=&quot;http://a.tiles.mapbox.com/v3/brunosan.map-49c6q4ys.html#14.00/38.8895/-77.0409&quot;&gt;full screen here&lt;/a&gt;]:&lt;/p&gt;

&lt;iframe width='100%' height='600' frameBorder='0' src='http://a.tiles.mapbox.com/v3/brunosan.map-49c6q4ys.html#14.00/38.8895/-77.0409'&gt;&lt;/iframe&gt;


&lt;h2&gt;The day of the Marathon&lt;/h2&gt;

&lt;p&gt;There should be nothing new the day of the race. Don´t try &lt;em&gt;anything&lt;/em&gt; for the first time on that day, the slight deviation could risk the performance you have trained for 100 days or more. New shirt, new shoes, more coffee. Nope.&lt;/p&gt;

&lt;p&gt;The day of the race I woke up at 4:30am to get up and have the usual pre long race breakfast: Granola, soy milk, banana, and a slice of bread with peanut butter. Get to the first metro around 5:15am and head to the Starting line, on the Pentagon. More than 30.000 people are expected, and there several steps to make, so you don´t want to miss the 8am start.&lt;/p&gt;

&lt;p&gt;On the street a few Halloween &lt;em&gt;walks of shame&lt;/em&gt; to cheer you up, and the metro is only has runners. Get off at the Pentagon station and head to the Parking lot. Go through the security lines (it´s the Pentagon after all), gently apply &lt;a href=&quot;http://www.bodyglide.com/&quot;&gt;Body Glide&lt;/a&gt; or Vaseline on chaffing areas, visit one of the thousands of portajohns, drop your bag at the UPS trucks, get some water, &amp;hellip; and wait. Everything was much faster than expected, and there you have an increasing number of runners, all ready, sitting down quiet on the parking lot, still before dawn. Most of them wearing plastic bags to avoid getting cold. Around 7:20am you head to you corral. People organize themselves in groups, &lt;em&gt;corrals&lt;/em&gt; according to the expected finishing time. I chose one one the slow side of my expectation (4h30m), to help me push along if things go wrong, and to get that extra boost of overtaking people as you go stronger.&lt;/p&gt;

&lt;p&gt;When the shot gun fires, it still takes a few minutes for your corral to start moving, and for the first 5 miles of so, you run on dense &lt;em&gt;multipede&lt;/em&gt; of people snaking around the bends and turns of the course. Getting to an overpass or a downhill is quite a view of just people running, for miles. One of the common mistakes is to start too strong, so I tried to concentrate on the music and the feeling of any other long run. Slow but not walking on the uphills, easy but not letting go on the downhills. Some spots have a lot of people that cheer you up, and honestly &lt;em&gt;carry you on&lt;/em&gt; with their support. Some spots have no spectators, so you just enjoy the beautiful autumn day, and look around fellow runners. Along with the music of Pandora, RunKeeper tells me the pace every 5 minutes. On my forearm I wrote my boundaries. Keep it between a 9:11 min/mile (for a 4 h marathon) and 9:55 for a (4h30m). I was always a bit faster than 9, so I was holding it most of the time. Every 45 minutes or so eat your Go. Keep running and remember you are &lt;em&gt;running a marathon&lt;/em&gt;.&lt;/p&gt;

&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/cfVg6Fxj14I&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;


&lt;p&gt;Until the half marathon mark, I was &lt;em&gt;just running&lt;/em&gt;. Then I realized I was a bit slow, and had enough energy. But the stomach was acting up a bit. Too much Gu with caffeine? A technical stop for 60 seconds, and back to the race. The first part of the second half is where most of the people are watching and cheering, so I let myself be carried on with their cheers. Mile 20, the famous milestone for many runners, coincided with the bridge over the Potomac, the wind, no people to cheer you, seeing many fellow runners give up and walk, sit down or even lay down&amp;hellip; I turned the music on just as &lt;a href=&quot;spotify:track:66KcXPDs1hr8T06KvlJCeA&quot;&gt;Thievery Corporation&lt;/a&gt; started. 6 miles didn´t seem so short any more after 20. On that moment I though of my cousin who suffers a degenerative motor disorder and is on a wheel chair. I focused my thoughts on my luck to being able to get this far, and I pushed on faster. Nearing the mile 24 was when I realized it was almost over, and I saw the 4h pacer (a guy how runs from the 4h corral and keeps the pace, to help others) so I took my last Gu (probably unnecessary and not good for the stomach) and kept the pace, now more relaxed and even smiling. I knew I had energy to finish, so as soon as I thought I was less than 20 seconds on a full sprint, I gave it all and dashed to the finish line. &lt;strong&gt;Vamos!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The geek fun continues after the marathon. I got hold of all runners data and started playing around with it. This is the second part:&lt;/p&gt;

&lt;script async class=&quot;speakerdeck-embed&quot;
data-id=&quot;c339498021ea01300e441231381b2534&quot; data-ratio=&quot;1.33333333333333&quot;
src=&quot;//speakerdeck.com/assets/embed.js&quot;&gt;&lt;/script&gt;


&lt;p&gt;[Update: &lt;em&gt;Added this SpeakerDeck with the slides I used for the &lt;a href=&quot;http://www.meetup.com/Geo-DC/events/84473462/&quot;&gt;GedoDC Meetup talk
on Dec 2012&lt;/a&gt;&lt;/em&gt;]&lt;/p&gt;

&lt;h2&gt;How I got the data&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Scrapping the data&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;http://resultsarchive.active.com/pages/searchform.jsp?rsID=136498&quot;&gt;official website&lt;/a&gt; lists the results up to 100 per page, but it won´t allow to download it or get all the pages. Thankfully, just hacking the URL you can request &amp;ldquo;the first 50.000 results&amp;rdquo; for the first page. It takes a bit to load, it is indeed a huge table with all the data. This is public information, so I don&amp;rsquo;t see any problem taking the public data and mining it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Converting the table into csv&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To convert the HTML table into workable data, I tried several ways, and ended up just selecting all the text in the page via &amp;ldquo;Select All&amp;rdquo;, &amp;ldquo;Copy&amp;rdquo; and then paste it on an Excel Workbook. It takes a while, but it works. Just clean the extra lines and columns, and save it as a csv file. From the 34 Mb of the html or Excel, we go down to a 4 Mb csv file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cleaning and geocoding&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I then used &lt;a href=&quot;http://code.google.com/p/google-refine/&quot;&gt;Google Refine&lt;/a&gt; to clean the data. In particular I did some &lt;em&gt;Clustering&lt;/em&gt; to fix misspelled Location names, like &amp;ldquo;Alexxandria&amp;rdquo;. I also joined the &amp;ldquo;City&amp;rdquo; with &amp;ldquo;State&amp;rdquo; so that the geolocation would work better.&lt;/p&gt;

&lt;p&gt;One important step for later is the &lt;strong&gt;Geocoding&lt;/strong&gt; of the &amp;ldquo;City, State&amp;rdquo; column. As mentioned on &lt;a href=&quot;http://mapbox.com/geo-for-google-docs/&quot;&gt;this post&lt;/a&gt;, you can use &lt;a href=&quot;http://developer.yahoo.com/geo/placefinder/&quot;&gt;Yahoo API&lt;/a&gt; to request the (latitude,longitude) for any location. To geocode your locations with Google Refine, you need to make a new column based on the Location column using the &lt;em&gt;URL Fetch&lt;/em&gt;, and use the YAHOO geocode Yahoo API:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/new-column.png &quot;&gt; &lt;img width=&quot;100%&quot; src=&quot;/media/new-column.png &quot; class=&quot;center&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;http://where.yahooapis.com/geocode?q=&quot; + value.replace(/\s+/, &quot; &quot;) + &quot;&amp;amp;appid=[appID]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The &amp;ldquo;replace&amp;rdquo; thing is to convert spaces into &amp;ldquo;%20&amp;rdquo; for the URL (like &lt;em&gt;New York,NY&lt;/em&gt; into &lt;em&gt;New%20York,NY&lt;/em&gt;). I minimized the milliseconds of throttling to 1 and still it took a good 15 minutes.&lt;/p&gt;

&lt;p&gt;Then parse the extra column you just made to extract the (latitude,longitude) tuples from the XML:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;forEach(value.split(&quot;&amp;lt;Result&amp;gt;&quot;), v,v.partition(&quot;&amp;lt;latitude&amp;gt;&quot;)[2].partition(&quot;&amp;lt;/latitude&amp;gt;&quot;)[0] +&quot;,&quot;+v.partition(&quot;&amp;lt;longitude&amp;gt;&quot;)[2].partition(&quot;&amp;lt;/longitude&amp;gt;&quot;)[0])[1]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then just export the data as csv for the next step, mining the data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mining the data with Python&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclaimer&lt;/em&gt;: This is my very first Python code, so its is not very&amp;hellip; pythonic&lt;/p&gt;

&lt;p&gt;To import the data in Python I used:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;import csv
runner=[]
f = open('MCM.csv', 'rt')
try:
    reader = csv.DictReader(f)
    for row in reader:
        runner.append(row)
finally:
    f.close()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;With this I can get some insights on the Marathon:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;There were 23517 finishers,&lt;/li&gt;
&lt;li&gt;Runners came from 4274 different Locations.&lt;/li&gt;
&lt;li&gt;42,5% where women, 57,5% men.&lt;/li&gt;
&lt;li&gt;The most common runner was a male, 38 years old, from Washington DC, finishing in ~4h24m&lt;/li&gt;
&lt;li&gt;The most common woman was ~20m slower than the most common man.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;But let&amp;rsquo;s break it down more. You can see my whole code to mine the data and make the plots in &lt;a href=&quot;https://gist.github.com/3996931&quot;&gt;python here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Histogram of participation by gender&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This histogram shows the distribution of Ages, according to gender (mouse over for tooltips):
&lt;a href=&quot;/media/histo_gender.png&quot;&gt;&lt;img src=&quot;/media/histo_gender.png&quot; onmouseover=&quot;this.src='/media/histo_gender_2.png'&quot; onmouseout=&quot;this.src='/media/histo_gender.png'&quot; class=&quot;center&quot;  width='75%'/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Remember this is &lt;em&gt;not&lt;/em&gt; a random sample of population. These are all marathon finishers (A small subset of the population&amp;hellip; 1%??). At any age, there is more men than women, except from 25-30. Perhaps women are more physically active then. After that women decline while male participation increases. I wonder if having your first kid is reflected here. I can imagine it&amp;rsquo;s hard to train or run when you are pregnant or new mum. According to the statistics the &lt;a href=&quot;http://www.nationmaster.com/graph/hea_age_of_wom_at_fir_chi-health-age-women-first-childbirth&quot;&gt;mean age for first kid in the USA&lt;/a&gt; is 24, so it is plausible that effect shows here.&lt;/p&gt;

&lt;p&gt;Men participation peaks at 40-45, after which the decline is similar for both genders, with always more men. Remarkable than 10% of the participants were above 53, and another 10% below 26. As I will show later, above 5 hours of finishing time there is not much difference in gender. Tell me another sport where this variety of ages can challenge themselves side to side. &lt;em&gt;Running is a natural thing for humans&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Histogram of time by gender&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, lets compare finishing times by gender, regardless of age. Men peak around ~4h30m, with another peak just below 4h (me!). Women peak more smoothly around ~4h50m.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/histo_time_gender.png&quot;&gt;&lt;img src=&quot;/media/histo_time_gender.png&quot; onmouseover=&quot;this.src='/media/histo_time_gender_2.png'&quot; onmouseout=&quot;this.src='/media/histo_time_gender.png'&quot; class=&quot;center&quot;  width='75%'/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Interestingly, the women distribution is close to a Gaussian (and you see similar values around the peak on both sides). Now, male runners faster than 5h seem to be able to squeeze better times than females of same age. The difference is highest just below 4h. I know this time is kind of a mental goal for many runners (me included). However, after 5 hours, both genders decay in the same manner, with women always slightly better then men.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What about time AND age, by gender?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Combining both histograms one can plot a Scatter diagram where the horizontal is Age and vertical is Finishing time. Different color for males and females.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/scatter.png&quot;&gt;&lt;img src=&quot;/media/scatter.png&quot; onmouseover=&quot;this.src='/media/scatter-4.png'&quot; onmouseout=&quot;this.src='/media/scatter.png'&quot; class=&quot;center&quot;  width='75%'/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Both genders show a similar distribution, quite broad both in Age and Time. That means neither variable is significative to the others. Youngsters can be slow, and seniors fast, regardless of gender. There is a slight convergence towards more time as age increases. There seems to be a slight slope of less than 1 hour every 20 years for the best runners. I think the race course closed after 7 hours, hence the flat upper boundary.&lt;/p&gt;

&lt;p&gt;However, there is blue edge on the fast side, all across ages. Faster men tend to be faster than women of the same age, specially between 30 and 60 years old.&lt;/p&gt;

&lt;p&gt;By the way, I am flabbergasted by the right side of the scatter, runners above 60 running on the same time band than people 40 years younger. &lt;strong&gt;Respect&lt;/strong&gt;!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pacing yourself&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One can also plot the &lt;strong&gt;Excess time&lt;/strong&gt;. This is the difference between twice the &lt;em&gt;half-marathon&lt;/em&gt; time and the total time. If you keep a constant pace, this &lt;em&gt;Excess time&lt;/em&gt; will be 0. If you &lt;a href=&quot;http://en.wikipedia.org/wiki/Hitting_the_wall&quot;&gt;&lt;em&gt;hit the wall&lt;/em&gt;&lt;/a&gt; on the second half and need 1 hour more to finish, then your &lt;em&gt;Excess time&lt;/em&gt; will be 1. I am plotting this against Age, to see how it depends on the age, and also with different colors for men and women:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/histo_Excess_time_gender.png&quot;&gt;&lt;img src=&quot;/media/histo_Excess_time_gender.png&quot; onmouseover=&quot;this.src='/media/histo_Excess_time_gender-over.png'&quot; onmouseout=&quot;this.src='/media/histo_Excess_time_gender.png'&quot; class=&quot;center&quot;  width='75%'/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As the figure shows, very few people are actually &lt;em&gt;faster&lt;/em&gt; on the second half (means to the left of the vertical line above 0). Above 60 virtually everyone is slower on the second half.&lt;/p&gt;

&lt;p&gt;The graph is pretty much a packed vertical shape, but with some convergence on the top. Older runners seem to be able to keep their pace better, specially women.&lt;/p&gt;

&lt;p&gt;Again you can see a blue edge across all ages, mostly men that need more than one hour on the second half. I would say they &amp;ldquo;&lt;a href=&quot;http://en.wikipedia.org/wiki/Hitting_the_wall&quot;&gt;hit the wall&lt;/a&gt;&amp;rdquo; hard. In that sense, it seems men hit the wall more than women, specially young runners below 60. Combined with the previous graph, faster men are faster than faster women of the same age, but also more men end up hitting the wall.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mapping the clusters of runners&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For the next visualization, I wanted to map all runners on the US map. You can indeed upload the csv file with just the names of their cities to &lt;a href=&quot;http://www.google.com/drive/start/apps.html#fusiontables&quot;&gt;Google Fusion Tables&lt;/a&gt; (the file is &lt;a href=&quot;http://support.google.com/drive/bin/answer.py?hl=en&amp;amp;answer=37603&quot;&gt;too big&lt;/a&gt; for &lt;a href=&quot;https://docs.google.com&quot;&gt;Google Docs&lt;/a&gt;), and Google will recognize the Location names and map then for you. Pretty awesome, quick, and easy.&lt;/p&gt;

&lt;p&gt;&lt;img width=&quot;50%&quot; src=&quot;/media/Google-mcm.png &quot; class=&quot;center&quot;&gt;&lt;/p&gt;

&lt;p&gt;There are several problems here. For once, I want to have some control to make the map more beautiful and customize the looks (and I dig open source). More importantly, any place with more than one runner will simply overlap everyone on the same place. We need to aggregate the data.&lt;/p&gt;

&lt;p&gt;To aggregate the data I use again Python, and this little code:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#Get a list of cities
#Count uniques
from collections import Counter
Places=[r['Location'] for r in runner if 'Location' in r]
Places_counts = Counter(Places)
len(Places_counts)
Places_counts.most_common(10)
#Make a dictionary with Places, their location, and number of runners
Places_dic={}

from collections import Counter
#runner is the list with every runner a dictionary
Places=[r['Location'] for r in runner if 'Location' in r]
Places_counts = Counter(Places)
for r in runner:
 for P in Places_counts:

 if r['Location']==P:  #runner is from that place
    if P in Places_dic:
      #not the first time, add info to this location
      Places_dic[P]['runners']+=1
      Places_dic[P]['Time'].append(int(r['ChipTimeSeconds']))
      Places_dic[P]['Ages'].append(int(r['Age']))
      Places_dic[P]['Gender'].append(r['Sex'])
      if Places_dic[P]['lat']=='':
        Places_dic[P]['lat']=r['lat']
        print 'gotcha'
      if Places_dic[P]['lng']=='':
        Places_dic[P]['lng']=r['lat']
        print 'gotcha'
    else:
      #first time, add dictionary
      Places_dic[P]={}
      Places_dic[P]['runners']=1
      Places_dic[P]['Time']=[int(r['ChipTimeSeconds'])]
      Places_dic[P]['Ages']=[int(r['Age'])]
      Places_dic[P]['Gender']=[r['Sex']]
      Places_dic[P]['lat']=r['lat']
      Places_dic[P]['lng']=r['lng']
      print 'new place:',P
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;With a little bit of some more python magic, you can aggregate the times and ages to get the percentiles by gender, and save everything to a neat csv file with all the info you need. You can see the whole &lt;a href=&quot;https://gist.github.com/3996931&quot;&gt;python code here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now you can go to &lt;a href=&quot;http://mapbox.com/tilemill/&quot;&gt;TileMill&lt;/a&gt;, import the file on a new project and have the map styled, up and running in less than 10 minutes.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/media/tilemill-mcm.png&quot;&gt;&lt;img src=&quot;/media/tilemill-mcm.png&quot; onmouseover=&quot;this.src='/media/tilemill-mcm-over.png'&quot; onmouseout=&quot;this.src='/media/tilemill-mcm.png'&quot; class=&quot;center&quot;  width='75%'/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and this is the result, pan and zoom at will (&lt;a href=&quot;http://a.tiles.mapbox.com/v3/brunosan.map-usc1zz4y.html#5.00/39.711/-86.018&quot;&gt;Full Screen here&lt;/a&gt;)&lt;/p&gt;

&lt;iframe width='100%' height='600' frameBorder='0' src='http://a.tiles.mapbox.com/v3/brunosan.map-usc1zz4y.html#5/38.880209498082706/-77.11475372314449'&gt;&lt;/iframe&gt;


&lt;p&gt;&lt;strong&gt;Overtakers or overtaken?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When I was talking with another marathoner about the draft of this post he said it would be interesting to see a scatter plot of how many people you pass by gender, or age. This involves not only your pace, but also which corral you chose (your expectation). We only have data for Bib numbers at Gun Time, ChipTime, and partial ChipTime splits for 5K,10K,15K..40K. Can we get the data we want?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ordering Bib numbers by &amp;ldquo;Gun Time&amp;rdquo; at any landmark (5K,10K, ..) gives you the order of arrival to that line mark, regardless of their position at the Start time. It´s just the time it took them to get to the landmark from the Gun Time.&lt;/li&gt;
&lt;li&gt;Ordering Bib numbers by &amp;ldquo;Gun Time&amp;rdquo; minus Chip Time, gives you an estimate of the distance from the runner at the Gun Time and the Start Line. That is a rough estimate of the order at the start time.&lt;/li&gt;
&lt;li&gt;Hence the difference of 1 and 2 for each land mark gives you the &lt;em&gt;net&lt;/em&gt; change. Using the landmark you can even check for which Bib numbers changed in between.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Helpers in python to get there:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You can create a new key with to convert time in 1:34:10 into second with:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;   def count_sec(lista):
     return np.sum(np.array([np.int(a) for a in lista.split(':')])*[60*60,60,1])
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Get the rough order estimates with:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;    for r in runner:
     r['Start_order_in seconds']=count_sec(r['ChipTime'])-count_sec(r['ClockTime'])
    Start=sorted(runners, key=lambda k: k['Start_order_seconds'])
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Get the change in order for each Bib with:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;    for r in runner:
    index_s=map(itemgetter('Bib'),Start).index(r['Bib'])
     index_e=map(itemgetter('Bib'),End).index(r['Bib'])
     r['Change']=index_s-index_e`
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&amp;hellip; but I leave the train here. There are surely many more things one can do. It has been an amazing experience, and many more will come. I enjoyed and learnt a great deal with the training. Running the marathon was a challenge but not a suffering and I really enjoyed doing it. Playing around with this data has also been very fun!&lt;/p&gt;

&lt;p&gt;Now I don´t know If I want to try a trail marathon, an ultra, or a triathlon :)&lt;/p&gt;

&lt;p&gt;Ideas? Comments? Corrections? Forks?&lt;/p&gt;

&lt;p&gt;Thanks!!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.flickr.com/photos/nasonurb/6248176332/&quot; title=&quot;Hiking Grand Canyon by brunosan, on Flickr&quot;&gt;&lt;img src=&quot;http://farm7.staticflickr.com/6236/6248176332_2fe75df485.jpg&quot; width=&quot;75%&quot; alt=&quot;Hiking Grand Canyon&quot;&gt;&lt;/a&gt;&lt;/p&gt;
</content>
	</entry>
	
	<entry>
		<title>Migration in progress</title>
    <link href="http://brunosan.eu/2012/09/14/migration-in-progress/"/>
		<updated>2012-09-14T00:00:00-04:00</updated>
		<id>//2012/09/14/migration-in-progress</id>
		<content type="html">&lt;p&gt;I´m in the progress of moving my blog into Jekyll. I´m halfway done, so I´ve decided to publish the new version.&lt;/p&gt;

&lt;p&gt;Sorry if things are broken. I´ve tried to respect the URL to the posts,
so most inbound links should still work.&lt;/p&gt;

&lt;p&gt;My old site still lives at &lt;a href=&quot;http://nasonurb.wordpress.com&quot;&gt;Wordpress&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Feel free to send me your comments to &lt;a href=&quot;mailto:brunosan@gmail.com?subject=Feedback%20for%20your%20newsite&quot;&gt;brunosan@gmail.com&lt;/a&gt;. Thanks!&lt;/p&gt;
</content>
	</entry>
	
</feed>
