<?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>hanno-rein.de &#187; Geek</title>
	<atom:link href="http://hanno-rein.de/archives/category/geek/feed" rel="self" type="application/rss+xml" />
	<link>http://hanno-rein.de</link>
	<description>Cambridge and other planets</description>
	<lastBuildDate>Thu, 30 Oct 2014 12:39:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Why there is no Exoplanet App for Android yet</title>
		<link>http://hanno-rein.de/archives/677</link>
		<comments>http://hanno-rein.de/archives/677#comments</comments>
		<pubDate>Fri, 26 Nov 2010 16:21:56 +0000</pubDate>
		<dc:creator>Hanno Rein</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://hanno-rein.de/?p=677</guid>
		<description><![CDATA[Warning: This is a biased view. Don&#8217;t take it too serious. It&#8217;s just a phone&#8230; I bought an iPhone 3GS in 2009 and started programming apps for it soon afterwards. Initially, the learning curve was rather steep. There was Objective &#8230; <a href="http://hanno-rein.de/archives/677">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em><strong>Warning:</strong> This is a biased view. Don&#8217;t take it too serious. It&#8217;s just a phone&#8230;<br />
</em><br />
I bought an iPhone 3GS in 2009 and started programming apps for it soon afterwards. Initially, the learning curve was rather steep. There was Objective C, the Model View Controller paradigm and hundreds of APIs.</p>
<p>I&#8217;m an <a href="http://sns.ias.edu/~rein/">astrophysicist</a>, working on extra-solar planets and Saturn&#8217;s rings. An <a href="http://exoplanet.hanno-rein.de/iphone/">app on exoplanets</a> was therefore an obvious choice as a Hello World program. In August 2009, I submitted version 1.0, which was a simple list of all discovered planets. The app was static, so I had to resubmit a new version to Apple whenever a new planet was found. I wrote the app just for fun. It was never my intention to earn money with it. There is some advertisement in the app, which helps to pay the fee for the Apple developer program ($100 per year).</p>
<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/4KPc6o0sZ3g?hd=1" frameborder="0" allowFullScreen></iframe></p>
<p>In November 2010, after 19 iterations the app arrived at version 4.3 and has matured a lot. It has many OpenGL visualizations, animations and push notifications. <a href="http://itunes.apple.com/us/app/exoplanet/id327702034?mt=8">Looking at the reviews</a>, people seem to like it. That impression is also supported by the download numbers which have reached <a href="http://www.appannie.com/exoplanet/ranking/history/">200.000</a>.</p>
<p>I receive many e-mails from people, asking for an Android version. With this post I&#8217;m trying to explain my biased view on why there is no Exoplanet app for Android yet. </p>
<p>Last month, I even received an e-mail from Angana Ghosh, the product manager for the Android SDK at Google. She asked me about the possibility of developing for Android. I started programming for the iPhone because I have an iPhone, so there was a hurdle because I didn&#8217;t own an Android phone. Google was kind enough to send me a free Droid for development. So that problem was solved.</p>
<p><strong>But there is still no Exoplanet App for Android.</strong></p>
<p><a rel="attachment wp-att-680" href="http://hanno-rein.de/archives/677/20101027-android-logo-2"><img class="alignleft size-full wp-image-680" title="Android" src="http://hanno-rein.de/wp-content/uploads/2010/11/20101027-android-logo1.jpg" alt="Android pixelled" width="239" height="264" /></a>First of all, I am really disappointed by the Android phone. <a href="http://www.engadget.com/2010/11/18/exclusive-woz-misquoted-almost-every-app-that-i-have-is-bette/">Similar to Woz&#8217;s experience</a>, I have the impression that every single app is better on the iPhone. If I start developing an Android version of my app now, it would not be as polished and slick as the iPhone counter part. And because I&#8217;m doing this just for fun in my free time, why should I spend time on something that will make thing worse. Suppose I build model trains in my free time. Why would I start building another one if I already knew that it will not look as good as the one that I already have.</p>
<p>Second, the development of iPhone apps is really fun. The entire SDK, including the APIs, the IDE, the documentation, the profiler and debugger are great and well-thought-out. The distribution via Apple&#8217;s App store is easy and convenient. The whole discussion about app rejections is largely exaggerated. My app got rejected only once, because it crashed during startup. I&#8217;m glad Apple takes a look at it before it get&#8217;s pushed to several hundred thousand users.</p>
<p>Now let&#8217;s compare this with Android. This is an <a href="http://www.youtube.com/watch?v=8ADwPLSFeY8">official video</a> for the Google&#8217;s App Inventor. Do I need to say anything else? It&#8217;s so shockingly bad, it&#8217;s hard to find words that describe it. Of course, there is the real Android SDK. But come on, Google. Do we really want to use apps based on this App Inventor? Well, I don&#8217;t want to. And that is also a reason why I&#8217;m hesitating to be part of the Android community.</p>
<p>Finally, let&#8217;s look at the technical side. From a hardware perspective, there aren&#8217;t real differences. There is of course the <a href="http://www.rovio.com/index.php?mact=Blogs,cntnt01,showentry,0&amp;cntnt01entryid=47&amp;cntnt01returnid=58">fragmentation issue</a>. But that also exists on the iPhone. One version of the <a href="http://itunes.apple.com/us/app/exoplanet/id327702034?mt=8">exoplanet app</a> crashed on older devices which ran iOS 3.1 instead of 3.2. But I&#8217;m still able to keep track of all devices on which iOS runs and I fixed this bug quickly. That&#8217;s just not possible on Android. </p>
<p>I mentioned earlier that the iOS SDK is so great. Here&#8217;s why I think so. Objective C is first of all a great language. It&#8217;s just C. Plus something on top of it that makes it easier to handle all those buttons and text field that one necessarily encounters in a graphical user interface. I created a few more apps (<a href="http://itunes.apple.com/us/app/hydro/id341643251?mt=8">Hydro</a>, <a href="http://itunes.apple.com/us/app/gravity-tree/id325840973?mt=8">Gravity Tree</a>) which use the same C code that runs on super computers. It&#8217;s very easy to glue that code to an interface with Objective C. Many of the new Objective C features are only wrappers. So, these are still C under the hood, and they are fast!</p>
<p>And then there is UIKit, CoreAnimation and all that stuff that makes an iPhone app look and feel slick. If you use the Exoplanet app, go to the Milky Way screen and click the little (i) on the bottom right. It starts an animation that exchanges an OpenGL view (with points sprites, textures and lines that create the milky way) with a WebKit view (which is used to render the text). That&#8217;s done with only four lines of code. And it makes a huge difference compared to simply replacing one view with the other. If you sign up for the <a href="http://developer.apple.com/">Apple developer program</a>, you get access to days worth of videos from previous conferences. By watching those, it becomes clear that this kind of thing is the real difference between iOS and Android. A lot of man power has gone into the development of the user interface classes and their optimization. Maybe you don&#8217;t mind the pixel perfect transitions or the responsiveness. But I do and I think they are great.</p>
<p>That&#8217;s the reason why there is no Exoplanet App for Android yet. Sorry.</p>
]]></content:encoded>
			<wfw:commentRss>http://hanno-rein.de/archives/677/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exoplanet HR Diagram</title>
		<link>http://hanno-rein.de/archives/637</link>
		<comments>http://hanno-rein.de/archives/637#comments</comments>
		<pubDate>Wed, 04 Aug 2010 07:13:37 +0000</pubDate>
		<dc:creator>Hanno Rein</dc:creator>
				<category><![CDATA[Cambridge]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://hanno-rein.de/?p=637</guid>
		<description><![CDATA[Inspired by Stuart, I created this HR Diagram for exoplanet researchers. The position on the x-axis is determined by the number of peer reviewed paper, as given by ADS. The position on the y-axis is given by the number of &#8230; <a href="http://hanno-rein.de/archives/637">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Inspired by <a href="http://www.strudel.org.uk/blog/astro/index.shtml">Stuart</a>, I created this HR Diagram for exoplanet researchers. The position on the x-axis is determined by the number of peer reviewed paper, as given by <a href="http://adsabs.harvard.edu/abstract_service.html">ADS</a>. The position on the y-axis is given by the number of website returned by google when searched for the full name in quotes.</p>
<p>Of course, these numbers don&#8217;t necessarily mean anything. There are large errors if a person has a common name or alternative spellings. However, it&#8217;s interesting to see that there is indeed a correlation (which is labeled <em>main sequence</em> in the plot).</p>
<p><strong>Update:</strong> I&#8217;ve made an <em>improved</em> version in which the google searches include the words &#8220;exoplanet&#8221;, &#8220;astronomy&#8221; and &#8220;astrophysics&#8221;. The sum of the number of results is used in the plot. This should avoid most of the issues for people with common names. You can <a href="http://hanno-rein.de/downloads/exoplanetHR.tar.gz">download the scripts to create these plots here</a> and fine tune all parameters.</p>
<p>If you feel that someone is missing from the list let me know and I&#8217;ll add him/her. If you&#8217;re unhappy with your score, please send me bribes in forms of cakes or iPhones.</p>
<p>PS: Stephen, beware! I&#8217;m heading towards you!</p>
<div class="wp-caption alignnone" style="width: 490px"><a href="http://hanno-rein.de/downloads/scientists_improved.svg"><img title="Exoplanet HR Diagram" src="http://hanno-rein.de/downloads/scientists_improved.png" alt="" width="480" height="480" /></a><p class="wp-caption-text">Exoplanet HR Diagram (follow link for an svg version)</p></div>
<p><small>(<a href="http://hanno-rein.de/downloads/scientists.svg">original version</a>)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://hanno-rein.de/archives/637/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zattoo in fullscreen</title>
		<link>http://hanno-rein.de/archives/541</link>
		<comments>http://hanno-rein.de/archives/541#comments</comments>
		<pubDate>Sun, 07 Feb 2010 22:12:33 +0000</pubDate>
		<dc:creator>Hanno Rein</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://hanno-rein.de/?p=541</guid>
		<description><![CDATA[If you ever used the web interface of zattoo.com you probably noticed the annoying left and top bars with advertisement and the lack of a fullscreen mode. Here is a small bookmarklet that gets rid of all the mess: javascript:(function(){ &#8230; <a href="http://hanno-rein.de/archives/541">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you ever used the web interface of <a href="http://zattoo.com">zattoo.com</a> you probably noticed the annoying left and top bars with advertisement and the lack of a fullscreen mode. Here is a small <a href="http://en.wikipedia.org/wiki/Bookmarklet">bookmarklet</a> that gets rid of all the mess:</p>
<p><code><br />
javascript:(function(){<br />
document.getElementById('headerpane').style.display='none';<br />
document.getElementById('bodypane').style.top='0px';<br />
document.getElementById('zingspane').style.display='none';<br />
document.getElementById('sidebaradpane').style.display='none';<br />
document.getElementById('mainpane').style.left='0px';<br />
})();<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://hanno-rein.de/archives/541/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DPMHD3d and GravTree</title>
		<link>http://hanno-rein.de/archives/529</link>
		<comments>http://hanno-rein.de/archives/529#comments</comments>
		<pubDate>Fri, 15 Jan 2010 16:31:13 +0000</pubDate>
		<dc:creator>Hanno Rein</dc:creator>
				<category><![CDATA[Cambridge]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://hanno-rein.de/?p=529</guid>
		<description><![CDATA[I&#8217;ve added two paged describing the main codes that I am using for research, a hydrodynamics code and and N-body code: DPMHD3D GravTree (movie!)]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve added two paged describing the main codes that I am using for research, a hydrodynamics code and and N-body code:</p>
<ul>
<li><a href="/science/scientific-software/dpmhd3d">DPMHD3D</a></li>
<li><a href="/science/scientific-software/gravtree">GravTree</a> (movie!)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hanno-rein.de/archives/529/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaTeX Coffee Stains</title>
		<link>http://hanno-rein.de/archives/349</link>
		<comments>http://hanno-rein.de/archives/349#comments</comments>
		<pubDate>Fri, 03 Apr 2009 22:17:22 +0000</pubDate>
		<dc:creator>Hanno Rein</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://hanno-rein.de/?p=349</guid>
		<description><![CDATA[This package provides an essential feature to LaTeX that has been missing for too long. It adds a coffee stain to your documents. A lot of time can be saved by printing stains directly on the page rather than adding &#8230; <a href="http://hanno-rein.de/archives/349">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-350" title="LaTeX Coffee Stains" src="http://hanno-rein.de/wp-content/uploads/2009/04/coffee.png" alt="LaTeX Coffee Stains" width="300" height="247" />This package provides an essential feature to LaTeX that has been missing for too long. It adds a coffee stain to your documents. A lot of time can be saved by printing stains directly on the page rather than adding it manually.</p>
<p><a href="http://hanno-rein.de/downloads/coffee.pdf">coffee.pdf</a> &#8211; This is an example of all included stains and also the documentation of the package.</p>
<p><a href="http://hanno-rein.de/downloads/coffee.tar.gz">coffee.tar.gz</a> &#8211; This archive contains all files including the documentation (you probably want to download this).</p>
<p><a href="http://hanno-rein.de/downloads/coffee.sty">coffee.sty</a> &#8211; This is the actual package which contains everything including the images.</p>
<p><a href="http://hanno-rein.de/downloads/coffee.tex">coffee.tex</a> &#8211; This is the source code of the example file.</p>
<p><span style="color: #ff0000;">Update (23 November 2010):</span></p>
<p><a href="/downloads/coffee2.sty">coffee2.sty</a> &#8211; This is an improved version that works with pdflatex. Thanks to Evan Sultanik!</p>
<p><span style="color: #ff0000;">Update (24 March 2011):</span></p>
<p><a href="/downloads/coffee3.tar.gz">coffee3.tar.gz</a> &#8211; This is another improved version that works with pdflatex. It allows you to scale, rotate and change the transparency of any coffee stain. Thanks to Professor Luis Randez!</p>
<p><span style="color: #ff0000;">Update (25 May 2012):</span></p>
<p><a href="/downloads/coffee4.tar.gz">coffee4.tar.gz</a> &#8211; Adrian Robson sent me this improved version. He writes: &#8220;<em>I find I rarely manage to  put my coffee mug down exacly in the middle of my papers.<br />
So I have amended coffee3.sty to support off centre coffee stains.</em>&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://hanno-rein.de/archives/349/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open</title>
		<link>http://hanno-rein.de/archives/314</link>
		<comments>http://hanno-rein.de/archives/314#comments</comments>
		<pubDate>Tue, 24 Feb 2009 22:23:11 +0000</pubDate>
		<dc:creator>Hanno Rein</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://hanno-rein.de/?p=314</guid>
		<description><![CDATA[Today I noticed that there is a command on Mac OS X named open. It just opens any document or folder that you pass as a command line argument as if you double click on it within finder. That&#8217;s useful for &#8230; <a href="http://hanno-rein.de/archives/314">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I noticed that there is a command on Mac OS X named <strong>open</strong>. It just opens any document or folder that you pass as a command line argument as if you double click on it within finder. That&#8217;s useful for viewing pdfs or images.</p>
<p>Why did nobody tell me that?</p>
]]></content:encoded>
			<wfw:commentRss>http://hanno-rein.de/archives/314/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nim Game</title>
		<link>http://hanno-rein.de/archives/281</link>
		<comments>http://hanno-rein.de/archives/281#comments</comments>
		<pubDate>Mon, 05 Jan 2009 13:01:54 +0000</pubDate>
		<dc:creator>Hanno Rein</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://wp.hanno-rein.de/archives/281</guid>
		<description><![CDATA[<img width="80" height="60" alt="Nim Game" src="http://hanno-rein.de/images/thumbnail/2009_01/dsc00962.jpg" class="photoQexcerpt photoQImg" /> <a href="http://hanno-rein.de/archives/281">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://hanno-rein.de/images/original/2009_01/dsc00962.jpg"><img width="500" height="375" alt="Nim Game" src="http://hanno-rein.de/images/main/2009_01/dsc00962.jpg" class="photoQcontent photoQLinkImg" /></a></p>
<div class="photoQDescr">Nim is a game of mathematical strategy that is quite easy to solve exactly (see <a href="http://en.wikipedia.org/wiki/Nim">http://en.wikipedia.org/wiki/Nim</a>). The proof is done via induction and makes use of XOR operations. Unfortunately, I wasn&#8217;t able to see the solution immediately and therefore didn&#8217;t win.</div>
<ul class="photoQExifInfo">
<li class="photoQExifInfoItem">
					<span class="photoQExifTag">DateTime:</span> <span class="photoQExifValue">2009:01:05 12:29:16</span></li>
<li class="photoQExifInfoItem">
					<span class="photoQExifTag">Model:</span> <span class="photoQExifValue">K750i</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hanno-rein.de/archives/281/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I am using WordPress now.</title>
		<link>http://hanno-rein.de/archives/8</link>
		<comments>http://hanno-rein.de/archives/8#comments</comments>
		<pubDate>Sat, 03 Jan 2009 13:56:44 +0000</pubDate>
		<dc:creator>Hanno Rein</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://wp.hanno-rein.de/?p=8</guid>
		<description><![CDATA[I decided to give WordPress a try. Hopefully my website will be more blog-like and encourages you to come back more often. You find a list of links to other blogs on the right hand side. I found those links &#8230; <a href="http://hanno-rein.de/archives/8">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="   alignleft" style="margin-left: 5px; margin-right: 5px;" title="WordPress Logo" src="http://s.wordpress.org/about/images/logos/wplogo-stacked-rgb.png" alt="WordPress Logo" width="180" height="112" /><br />
I decided to give <a href="http://wordpress.org/">WordPress</a> a try. Hopefully my website will be more blog-like and encourages you to come back more often.</p>
<p>You find a list of links to other blogs on the right hand side. I found those links on various sites, such as slashdot and gizmodo. Some of them are stupid, some are interesting and some are funny. You will have to decide for your own in which category they fall. The list is updated automatically by my RSS reader.   </p>
<p>I also imported all photoblog items. Let me know if something if not working.</p>
]]></content:encoded>
			<wfw:commentRss>http://hanno-rein.de/archives/8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>138 Lynx</title>
		<link>http://hanno-rein.de/archives/202</link>
		<comments>http://hanno-rein.de/archives/202#comments</comments>
		<pubDate>Sat, 03 Jan 2009 13:51:48 +0000</pubDate>
		<dc:creator>Hanno Rein</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Legacy]]></category>
		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://wp.hanno-rein.de/archives/202</guid>
		<description><![CDATA[<img width="80" height="60" alt="138 Lynx" src="http://wp.hanno-rein.de/images/thumbnail/2009_01/138.jpg" class="photoQexcerpt photoQImg" /> <a href="http://hanno-rein.de/archives/202">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://wp.hanno-rein.de/images/original/2009_01/138.jpg"><img width="500" height="375" alt="138 Lynx" src="http://wp.hanno-rein.de/images/main/2009_01/138.jpg" class="photoQcontent photoQLinkImg" /></a></p>
<div class="photoQDescr">Legacy Photoblog</div>
<ul class="photoQExifInfo">
<li class="photoQExifInfoItem">
					<span class="photoQExifTag">DateTime:</span> <span class="photoQExifValue">2007:05:10 17:50:58</span></li>
<li class="photoQExifInfoItem">
					<span class="photoQExifTag">Model:</span> <span class="photoQExifValue">K750i</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hanno-rein.de/archives/202/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
