<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>random walk</title>
	<atom:link href="http://www.ayanguasgil.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ayanguasgil.net</link>
	<description>on physics, energy, materials and python</description>
	<lastBuildDate>Fri, 03 Feb 2012 06:02:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>a peek at type evolution</title>
		<link>http://www.ayanguasgil.net/2012/02/type-evolution/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=type-evolution</link>
		<comments>http://www.ayanguasgil.net/2012/02/type-evolution/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 05:59:41 +0000</pubDate>
		<dc:creator>ayanguasgil</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[comic sans]]></category>
		<category><![CDATA[garamond]]></category>
		<category><![CDATA[helvetica]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[palatino]]></category>
		<category><![CDATA[timeline]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.ayanguasgil.net/?p=146</guid>
		<description><![CDATA[Sampling the evolution of typefaces: For some reason Comic Sans did not make the cut: http://bancomicsans.com/main/.]]></description>
			<content:encoded><![CDATA[<p>Sampling the evolution of typefaces:</p>
<p style="text-align: center;"><a href="http://www.ayanguasgil.net/wp-content/uploads/2012/02/types.png"><img class="aligncenter size-large wp-image-148" title="types" src="http://www.ayanguasgil.net/wp-content/uploads/2012/02/types-764x1024.png" alt="" width="512" height="686" /></a></p>
<p>For some reason Comic Sans did not make the cut: <a href="http://bancomicsans.com/main/">http://bancomicsans.com/main/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ayanguasgil.net/2012/02/type-evolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>on rare earths</title>
		<link>http://www.ayanguasgil.net/2012/01/on-rare-earths/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=on-rare-earths</link>
		<comments>http://www.ayanguasgil.net/2012/01/on-rare-earths/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 04:55:12 +0000</pubDate>
		<dc:creator>ayanguasgil</dc:creator>
				<category><![CDATA[chemistry]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[elements]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[lanthanides]]></category>
		<category><![CDATA[rare earths]]></category>
		<category><![CDATA[timeline]]></category>

		<guid isPermaLink="false">http://www.ayanguasgil.net/?p=140</guid>
		<description><![CDATA[Hard to extract, hard to discover and critical both in terms of supply risk and relevance for energy applications. This is a simplified chronology of the discovery of lanthanides. Starting from Cerite, Gadolinite and Samarskite it took more than a &#8230; <a href="http://www.ayanguasgil.net/2012/01/on-rare-earths/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hard to extract, hard to discover and critical both in terms of supply risk and relevance for energy applications. This is a simplified chronology of the discovery of lanthanides. Starting from Cerite, Gadolinite and Samarskite it took more than a century to purify and identify the lanthanide series.</p>
<p><a href="http://www.ayanguasgil.net/wp-content/uploads/2012/01/REhistory.png"><img class="aligncenter size-large wp-image-141" title="Lanthanide_history" src="http://www.ayanguasgil.net/wp-content/uploads/2012/01/REhistory-1024x696.png" alt="" width="640" height="435" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ayanguasgil.net/2012/01/on-rare-earths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the world is a-changing</title>
		<link>http://www.ayanguasgil.net/2011/10/the-world-is-a-changing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-world-is-a-changing</link>
		<comments>http://www.ayanguasgil.net/2011/10/the-world-is-a-changing/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 02:20:19 +0000</pubDate>
		<dc:creator>ayanguasgil</dc:creator>
				<category><![CDATA[energy]]></category>
		<category><![CDATA[BP report]]></category>
		<category><![CDATA[energy consumption]]></category>

		<guid isPermaLink="false">http://www.ayanguasgil.net/?p=130</guid>
		<description><![CDATA[If someone came from another world and saw the trend of primary energy consumption share, he/she would get a pretty good picture of what is going on: &#160;]]></description>
			<content:encoded><![CDATA[<p>If someone came from another world and saw the trend of primary  energy consumption share, he/she would get a pretty good picture of what  is going on:</p>
<p><a href="http://www.ayanguasgil.net/wp-content/uploads/2011/10/primaryenergyconsumptionshare1.png"><img class="aligncenter size-large wp-image-132" title="primaryenergyconsumptionshare" src="http://www.ayanguasgil.net/wp-content/uploads/2011/10/primaryenergyconsumptionshare1-1024x697.png" alt="Primary Energy Consumption Share" width="640" height="435" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ayanguasgil.net/2011/10/the-world-is-a-changing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>on quads, toes and other energy units</title>
		<link>http://www.ayanguasgil.net/2011/09/on-quads-toes-and-other-energy-units/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=on-quads-toes-and-other-energy-units</link>
		<comments>http://www.ayanguasgil.net/2011/09/on-quads-toes-and-other-energy-units/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 04:15:57 +0000</pubDate>
		<dc:creator>ayanguasgil</dc:creator>
				<category><![CDATA[energy]]></category>
		<category><![CDATA[units]]></category>

		<guid isPermaLink="false">http://www.ayanguasgil.net/?p=125</guid>
		<description><![CDATA[Tons of oil equivalent, quadrillion BTUs, gigawatts per year&#8230; This is a conversion table for common energy units: quad toe EJ kWh GWyear quad 1 2.52E7 1.06 2.93E11 33.4 toe 3.93E-8 1 4.18E-8 1.16E4 1.33E-6 EJ 0.948 2.39E7 1 2.78E11 &#8230; <a href="http://www.ayanguasgil.net/2011/09/on-quads-toes-and-other-energy-units/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Tons of oil equivalent, quadrillion BTUs, gigawatts per year&#8230; This is a conversion table for common energy units:</p>
<table style="text-align: center;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td></td>
<td><a href="http://en.wikipedia.org/wiki/Quad_(energy)">quad</a></td>
<td><a href="http://en.wikipedia.org/wiki/Ton_of_oil_equivalent">toe</a></td>
<td><a href="http://en.wikipedia.org/wiki/Joule">EJ</a></td>
<td><a href="http://en.wikipedia.org/wiki/Kilowatt_hour">kWh</a></td>
<td>GWyear</td>
</tr>
<tr>
<td>quad</td>
<td>1</td>
<td>2.52E7</td>
<td>1.06</td>
<td>2.93E11</td>
<td>33.4</td>
</tr>
<tr>
<td>toe</td>
<td>3.93E-8</td>
<td>1</td>
<td>4.18E-8</td>
<td>1.16E4</td>
<td>1.33E-6</td>
</tr>
<tr>
<td>EJ</td>
<td>0.948</td>
<td>2.39E7</td>
<td>1</td>
<td>2.78E11</td>
<td>31.7</td>
</tr>
<tr>
<td>kWh</td>
<td>3.41E-12</td>
<td>8.60E-5</td>
<td>3.6E-12</td>
<td>1</td>
<td>1.14E-10</td>
</tr>
<tr>
<td>GWyear</td>
<td>2.99E-2</td>
<td>7.54E5</td>
<td>3.16E-2</td>
<td>8.77E9</td>
<td>1</td>
</tr>
</tbody>
</table>
<p>Thus, the world primary energy consumption in 2010 was, according to the <a href="http://www.bp.com/sectionbodycopy.do?categoryId=7500&amp;contentId=7068481">BP Energy report</a>, 12,000 Mtoe / 476 quads / 15.9 TWyear / 576 EJ.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ayanguasgil.net/2011/09/on-quads-toes-and-other-energy-units/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>where are my planets?</title>
		<link>http://www.ayanguasgil.net/2011/07/where-are-my-planets/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=where-are-my-planets</link>
		<comments>http://www.ayanguasgil.net/2011/07/where-are-my-planets/#comments</comments>
		<pubDate>Sun, 24 Jul 2011 04:51:30 +0000</pubDate>
		<dc:creator>ayanguasgil</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[ephemerides]]></category>
		<category><![CDATA[planets]]></category>
		<category><![CDATA[pyephem]]></category>

		<guid isPermaLink="false">http://www.ayanguasgil.net/?p=107</guid>
		<description><![CDATA[pyephem is a python module for astronomical calculations that lets you determine the positions of different celestial objects with scientific-grade precisions (so much for my old copy of Practical astronomy with your calculator). So if you want to keep track &#8230; <a href="http://www.ayanguasgil.net/2011/07/where-are-my-planets/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://rhodesmill.org/pyephem/">pyephem</a> is a python module for astronomical calculations that lets you determine the positions of different celestial objects with scientific-grade precisions (so much for my old copy of <a href="http://www.amazon.com/Practical-Astronomy-Calculator-Peter-Duffett-Smith/dp/0521356997/ref=sr_1_2?ie=UTF8&amp;qid=1311482482&amp;sr=8-2">Practical astronomy with your calculator</a>). So if you want to keep track of the different celestial objects, pyephem is your friend.</p>
<p>In less than 50 lines, you can have a short script that outputs the current horizontal coordinates/rise times of the different planets for a custom location. I have posted an example <a href="http://www.ayanguasgil.net/stuff/planets.py">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ayanguasgil.net/2011/07/where-are-my-planets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>critical materials</title>
		<link>http://www.ayanguasgil.net/2011/06/critical-materials/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=critical-materials</link>
		<comments>http://www.ayanguasgil.net/2011/06/critical-materials/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 20:44:29 +0000</pubDate>
		<dc:creator>ayanguasgil</dc:creator>
				<category><![CDATA[energy]]></category>
		<category><![CDATA[geochemistry]]></category>
		<category><![CDATA[critical materials]]></category>
		<category><![CDATA[DOE]]></category>
		<category><![CDATA[elements abundance]]></category>
		<category><![CDATA[matplotlib]]></category>

		<guid isPermaLink="false">http://www.ayanguasgil.net/?p=87</guid>
		<description><![CDATA[Last december DOE released its critical materials strategy. Five rare earth metals (dysprosium, neodymium, terbium, europium and yttrium) and indium are ranked critical for clean technologies in terms of importance and supply risk. Rare earths are not really that scarce, &#8230; <a href="http://www.ayanguasgil.net/2011/06/critical-materials/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last december DOE released its <a href="http://blog.energy.gov/blog/2010/12/15/department-energy-releases-new-critical-materials-strategy">critical materials strategy</a>. Five rare earth metals (dysprosium, neodymium, terbium, europium and yttrium) and indium are ranked critical for clean technologies in terms of importance and supply risk.</p>
<p>Rare earths are not really that scarce, and in their case it is a combination of lack of concentrated ores and politics what limits their supply. The figure below shows the crustal abundance of the different naturally occurring elements, as taken from the <a href="http://www.hbcpnetbase.com/">Handbook of Chemistry and Physics</a>. Other elements such as selenium or tellurium, key in thin film photovoltaics, are less abundant than rare earths.</p>
<p style="text-align: center;"><a href="http://www.ayanguasgil.net/wp-content/uploads/2011/06/crustalabundance1.jpg"><img class="aligncenter size-full wp-image-92" title="Elements crustal abundance" src="http://www.ayanguasgil.net/wp-content/uploads/2011/06/crustalabundance1.jpg" alt="Elements crustal abundance" width="432" height="259" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ayanguasgil.net/2011/06/critical-materials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Energy outlook for 2035</title>
		<link>http://www.ayanguasgil.net/2011/05/energy-outlook-for-2035/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=energy-outlook-for-2035</link>
		<comments>http://www.ayanguasgil.net/2011/05/energy-outlook-for-2035/#comments</comments>
		<pubDate>Fri, 27 May 2011 05:18:31 +0000</pubDate>
		<dc:creator>ayanguasgil</dc:creator>
				<category><![CDATA[energy]]></category>
		<category><![CDATA[photovoltaics]]></category>
		<category><![CDATA[2035]]></category>
		<category><![CDATA[EIA]]></category>
		<category><![CDATA[energy outlook]]></category>

		<guid isPermaLink="false">http://www.ayanguasgil.net/?p=73</guid>
		<description><![CDATA[How are we going to generate our energy by 2035? Unless things radically change, mainly using fossil fuels, according to the Annual Energy Outlook 2011 published by the US Energy Information Administration. The reference case is based on the assumption &#8230; <a href="http://www.ayanguasgil.net/2011/05/energy-outlook-for-2035/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>How are we going to generate our energy by 2035? Unless things radically change, mainly using fossil fuels, according to the <a href="http://www.eia.gov/forecasts/aeo/">Annual Energy Outlook 2011</a> published by the <a href="http://www.eia.gov/">US Energy Information Administration</a>. The reference case is based on the assumption that &#8220;current laws and regulations remain unchanged thorough the projections.&#8221;</p>
<p>The plot below shows the relative contribution of different sources to electricity generation by the electric power sector in 2009 and those predicted for 2035 by the reference model (no major changes). The renewable contribution would increase from 10% in 2009 to around  12.5% by 2035. A similar increase from 23 to 29% is predicted for end-use generation.<br />
<a href="http://www.ayanguasgil.net/wp-content/uploads/2011/05/ElectricitySources1.png"><img class="aligncenter size-large wp-image-75" title="ElectricitySources" src="http://www.ayanguasgil.net/wp-content/uploads/2011/05/ElectricitySources1-1024x715.png" alt="Contribution to electricity generation" width="640" height="446" /></a></p>
<p>The reference case predicts a healthy annual growth of 13% for solar photovoltaic. However, since in 2009 the PV contribution to the electric power sector was a mere 40 million kWh  (compared to more than 2.5 <em>trillion</em> kWh from fossil fuels), the almost 50-fold increase in electricity generation from 2009 to 2035 barely makes a dent. Hydropower and wind get the lion&#8217;s share, accounting for 82% of the renewable generation in 2035. By that year, solar thermal and solar photovoltaic are predicted to contribute 0.5% and 0.2% to the renewable mixture.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ayanguasgil.net/2011/05/energy-outlook-for-2035/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>US energy consumption</title>
		<link>http://www.ayanguasgil.net/2011/04/energy-consumption/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=energy-consumption</link>
		<comments>http://www.ayanguasgil.net/2011/04/energy-consumption/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 04:57:40 +0000</pubDate>
		<dc:creator>ayanguasgil</dc:creator>
				<category><![CDATA[energy]]></category>
		<category><![CDATA[annual energy review]]></category>
		<category><![CDATA[energy consumption]]></category>

		<guid isPermaLink="false">http://www.ayanguasgil.net/?p=69</guid>
		<description><![CDATA[US Energy consumption (2008) by sector and energy sources taken from data published in the Annual Energy Review of the US Energy Information Administration. Not surprisingly, most of the oil use goes to transportation, while coal and nuclear are mainly &#8230; <a href="http://www.ayanguasgil.net/2011/04/energy-consumption/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>US Energy consumption (2008) by sector and energy sources taken from data published in the Annual Energy Review of the US <a href="http://www.eia.doe.gov">Energy Information Administration</a>.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://chart.apis.google.com/chart?chxl=0:|Oil|Gas|Coal|Renewable|Nuclear&amp;chxr=0,-3.333,100|1,0,50&amp;chxt=x,y&amp;chbh=a,3&amp;chs=300x225&amp;cht=bvs&amp;chco=AA0033,FFCC33,008000,3366CC&amp;chds=0,50,0,50,0,50,0,50&amp;chd=t:26.41,0.56,0,0.83,0|8.65,8.24,1.85,2.06,0|1.72,8.21,0.11,0.11,0|0.4,6.8,20.4,3.6,8.4&amp;chdl=Transport|Industrial|Commercial+and+Residential|Electricity&amp;chdlp=t&amp;chma=|7&amp;chtt=Energy+Consumption+(QBtu)" alt="Energy Consumption (QBtu)" width="300" height="225" /></p>
<p style="text-align: left;">Not surprisingly, most of the oil use goes to transportation, while coal and nuclear are mainly used for generating electricity.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ayanguasgil.net/2011/04/energy-consumption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spreadsheets and automatic recalculation in python</title>
		<link>http://www.ayanguasgil.net/2011/04/spreadsheets-and-automatic-recalculation-in-python/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=spreadsheets-and-automatic-recalculation-in-python</link>
		<comments>http://www.ayanguasgil.net/2011/04/spreadsheets-and-automatic-recalculation-in-python/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 04:08:01 +0000</pubDate>
		<dc:creator>ayanguasgil</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[spreadsheet]]></category>

		<guid isPermaLink="false">http://www.ayanguasgil.net/?p=59</guid>
		<description><![CDATA[It wasn&#8217;t until a year ago that I started using spreadsheets at work. Though at first I found them annoying (and I still sort of do), one thing that I found interesting was the automatic recalculation of values. That is &#8230; <a href="http://www.ayanguasgil.net/2011/04/spreadsheets-and-automatic-recalculation-in-python/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It wasn&#8217;t until a year ago that I started using spreadsheets at work. Though at first I found them annoying (and I still sort of do), one thing that I found interesting was the automatic recalculation of values. That is something that is not available in python&#8217;s interactive mode, and I wondered if it was possible to do something similar with python.</p>
<p>I focused on creating an interface for a subset of python based on declarations. Both variables and functions (using the lambda statement) could be declared. Whenever a variable is assigned, all dependencies should automatically be updated. In a way, this is equivalent to constraining python to a sort of first order functional programming language with automatic recalculation. On top of it, because I wanted to do something useful with it, I allowed for import statements.</p>
<p>The key for having automatic recalculation is to create and update a dependency tree. The simplest implementation I thought of was using a dictionary that lists the dependencies for each variable. When a value is changed it triggers a traversal of the dependency tree. I used <code>cmd</code> for the command line interface, <code>tokenize</code> for extracting the tokens, verifying that the input is of the <code>var = expr</code> form and getting the variable name and its dependencies. The assignments are evaluated using <code>exec()</code> in its own execution context. The simplest version, without exception handling, takes less than 100 lines of code. You can have a look at it <a href="./stuff/spreadpython.py">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ayanguasgil.net/2011/04/spreadsheets-and-automatic-recalculation-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Science editorial &#8211; Inspirational Chemistry</title>
		<link>http://www.ayanguasgil.net/2011/03/science-editorial-inspirational-chemistry/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=science-editorial-inspirational-chemistry</link>
		<comments>http://www.ayanguasgil.net/2011/03/science-editorial-inspirational-chemistry/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 14:55:12 +0000</pubDate>
		<dc:creator>ayanguasgil</dc:creator>
				<category><![CDATA[science links]]></category>
		<category><![CDATA[chemistry]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://www.ayanguasgil.net/?p=48</guid>
		<description><![CDATA[Gray and Labinger from Caltech penned this editorial in Science where they defend the relevance of chemistry in solving some of the biggest issues facing our society.]]></description>
			<content:encoded><![CDATA[<p>Gray and Labinger from Caltech penned this <a href="http://www.sciencemag.org/content/331/6023/1365.full">editorial</a> in Science where they defend the relevance of chemistry in solving some of the biggest issues facing our society.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ayanguasgil.net/2011/03/science-editorial-inspirational-chemistry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

