<?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>expatiari expatria &#187; geek</title>
	<atom:link href="http://genaud.net/cat/geek/feed/" rel="self" type="application/rss+xml" />
	<link>http://genaud.net</link>
	<description>genaud.net</description>
	<lastBuildDate>Fri, 16 Jul 2010 03:56:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Meter per degree longitude</title>
		<link>http://genaud.net/2010/06/meter-per-degree-longitude/</link>
		<comments>http://genaud.net/2010/06/meter-per-degree-longitude/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 20:34:02 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[greenland]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[latitude]]></category>
		<category><![CDATA[length]]></category>
		<category><![CDATA[longitude]]></category>
		<category><![CDATA[meter]]></category>
		<category><![CDATA[minute]]></category>
		<category><![CDATA[nautical mile]]></category>
		<category><![CDATA[second]]></category>

		<guid isPermaLink="false">http://genaud.net/?p=472</guid>
		<description><![CDATA[Spurred by a mnemonic game while hiking in both fog and mountains, I am now trying to memorize GPS coordinates. But just how many of those little digits must I keep in my head? How big is a degree of longitude anyway?

Naively, we can divide the 40 megameter earth circumference by 360° and divide again [...]]]></description>
			<content:encoded><![CDATA[<p>Spurred by a mnemonic game while hiking in both fog and mountains, I am now trying to memorize GPS coordinates. But just how many of those little digits must I keep in my head? How big is a degree of longitude anyway?</p>
<p><img src="http://homepage.mac.com/kvmagruder/images/latitude.gif" width="300" align="right" /></p>
<p>Naively, we can divide the 40 megameter earth circumference by 360° and divide again by 60&#8242; minutes and maybe 60&#8243; again for seconds. And for latitude, that&#8217;s pretty damn close, about 15 cm short of a nautical mile. But like most spinning objects, the Earth is a little fat around the middle and not wrinkle-free, which throws a wrench in our trigonometry.</p>
<p>One latitudinal minute is 1842m on the equator, 1862 meters at the poles, with an average of 1852m defining a nautical mile, or roughly 111 km per degree. However, longitudinal lengths vary greatly as a trigonometric function of degrees from the equator, simplified as:</p>
<pre>
degree longitude = 111km * cos(latitude)
</pre>
<p>Using a bit more sophisticated equations, I&#8217;ve plotted a few longitudinal lengths (error < 1%):</p>
<table />
<table cellpadding="5">
<tr>
<th rowspan="2" align="right">latitude</th>
<th colspan="2" align="right">longitude (meters)</th>
<td rowspan="2"></td>
</tr>
<tr>
<th align="right">degree</th>
<th align="right">minute</th>
</tr>
<tr>
<td width="75" align="right">0°</td>
<td align="right" width="75">111319</td>
<td align="right" width="75">1855</td>
<td width="150"></td>
</tr>
<tr>
<td align="right">15°</td>
<td align="right">107550</td>
<td align="right">1793</td>
<td></td>
</tr>
<tr>
<td align="right">30°</td>
<td align="right">96486</td>
<td align="right">1608</td>
<td align="right">(wiki: 1605.6m)</td>
</tr>
<tr>
<td align="right">45°</td>
<td align="right">78847</td>
<td align="right">1314</td>
<td></td>
</tr>
<tr>
<td align="right">60°</td>
<td align="right">55800</td>
<td align="right">930</td>
<td align="right">(wiki: 925.2m)</td>
</tr>
<tr>
<td align="right">65°</td>
<td align="right">47176</td>
<td align="right">786</td>
<td></td>
</tr>
<tr>
<td align="right">70°</td>
<td align="right">38187</td>
<td align="right">636</td>
<td></td>
</tr>
<tr>
<td align="right">75°</td>
<td align="right">28902</td>
<td align="right">482</td>
<td></td>
</tr>
<tr>
<td align="right">80°</td>
<td align="right">19393</td>
<td align="right">323</td>
<td></td>
</tr>
<tr>
<td align="right">85°</td>
<td align="right">9735</td>
<td align="right">162</td>
<td></td>
</tr>
<tr>
<td align="right">90°</td>
<td align="right">0</td>
<td align="right">0</td>
<td></td>
</tr>
</table>
<p></p>
<p>So, in Nuuk (64° North), a degree latitude is more than twice the length of one degree longitude (about 1858m vs. 815m per minute) and almost ten to one at 86°.</p>
<p>Putting a box around Nuuk, the downtown southwest corner is N 64°09.7 W 51°45.2 and the northeast corner (north of the airport and west of Qinngorput 2010) is roughly N 64°12 W 51°40. One significant decimal seems appropriate downtown for an order of 100m precision, while 1km precision should be good enough for finding an airport &#8211; on foot at least. Three significant decimals is more precise than GPS provides as of 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://genaud.net/2010/06/meter-per-degree-longitude/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Xmonad on Lucid Lynx</title>
		<link>http://genaud.net/2010/05/xmonad-on-lucid-lynx/</link>
		<comments>http://genaud.net/2010/05/xmonad-on-lucid-lynx/#comments</comments>
		<pubDate>Tue, 04 May 2010 00:26:09 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[tiling window manager]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[window manager]]></category>
		<category><![CDATA[wm]]></category>
		<category><![CDATA[xmonad]]></category>

		<guid isPermaLink="false">http://genaud.net/?p=447</guid>
		<description><![CDATA[While Gnome on Lucid Lynx is pretty and Gnome has a bunch of features that make window management a bit nicer than before (like Win-w,e,s,n,m) I immediately longed for a decent tiling manager. So, within ten minutes and without further regret:
Get the latest xmonad packages
Unlike Karmic, Lucid repositories have the latest version of Xmonad (0.9).

$ [...]]]></description>
			<content:encoded><![CDATA[<p>While Gnome on Lucid Lynx is pretty and Gnome has a bunch of features that make window management a bit nicer than before (like Win-w,e,s,n,m) I immediately longed for a decent tiling manager. So, within ten minutes and without further regret:</p>
<h2>Get the latest xmonad packages</h2>
<p>Unlike Karmic, Lucid repositories have the latest version of Xmonad (0.9).<br />
<code><br />
$ sudo apt-get update<br />
$ sudo apt-get install xmonad dwm-tools feh<br />
</code></p>
<h2>Switch window manger</h2>
<p>If you&#8217;ve installed vanilla Ubuntu 10.04, you&#8217;ll want to switch from gnome-wm to xmonad.<br />
<code><br />
$ gconftool-2 -g /desktop/gnome/session/required_components/windowmanager<br />
$ gconftool-2 -s /desktop/gnome/session/required_components/windowmanager xmonad --type string<br />
</code></p>
<h2>Start xmonad from script</h2>
<p>We&#8217;re changing one line of xmonad.desktop. Rather than start xmonad directly, we want to run the xmonad.start script.<br />
<code><br />
$ sed s:^Exec=xmonad$:Exec=xmonad.start: /usr/share/xsessions/xmonad.desktop > ~/tmp.xmonad<br />
$ sudo mv ~/tmp.xmonad /usr/share/xsessions/xmonad.desktop</p>
<p>$ sudo wget http://genaud.net/alex/2010/04/xmonad_files/xmonad.start -O /usr/local/bin/xmonad.start<br />
$ sudo chmod +x /usr/local/bin/xmonad.start<br />
</code></p>
<h2>Configure your own xmonad session</h2>
<p>Note, you&#8217;ll need to type colon-quit (:quit) to exit the haskell compiler (ghci). Hopefully all modules load OK.<br />
<code><br />
$ mkdir ~/.xmonad<br />
$ wget http://genaud.net/alex/2010/05/xmonad.hs -O ~/.xmonad/xmonad.hs<br />
$ ghci ~/.xmonad/xmonad.hs<br />
</code></p>
<h2>Configure xmobar</h2>
<p>Xmobar is activated from Win-p. Just start typing the first few characters of the command you want and hit enter.<br />
<code><br />
$ wget http://genaud.net/alex/2010/04/xmonad_files/.xmobarrc -O ~/.xmobarrc<br />
</code></p>
<h2>Finishing touches</h2>
<p>Remove all the panel clutter and add pretty background image.</p>
<ul>
<li>Delete the bottom panel ( Right click > Delete This Panel )</li>
<li>Autohide top panel ( Right click > Properties > Autohide )</li>
<li>Set a desktop image by uncommenting and modifying the &#8220;<code>feh --bg-scale</code>&#8221; line of <code>/usr/local/bin/xmonad.start</code><code></code></li>
</ul>
<h2>Log in to xmonad session</h2>
<p>The moment of truth&#8230; (oh wait, if you&#8217;ve never used xmonad before, take a look at the next section before it&#8217;s too late).</p>
<ul>
<li>Log out</li>
<li>Click on your user</li>
<li>Select Sessions:xmonad (from the bottom, was GNOME)</li>
<li>Type password and Log In</li>
</ul>
<h2>Five important commands</h2>
<p>There are more than a dozen commands. But that&#8217;s it. The steep learning curve immediately plateaus. Print a cheat sheet and you&#8217;ll be a tiling window master in no time. Here are perhaps the most important commands:</p>
<ul>
<li><strong>Win-Shift-Return</strong> &#8211; to open a terminal window</li>
<li><strong>Win-Space</strong> &#8211; toggle between three columns, two columns, two rows, and full screen</li>
<li><strong>Win-Return</strong> &#8211; make selected window the master window</li>
<li><strong>Win-h</strong> &#8211; shrink master window</li>
<li><strong>Win-l</strong> &#8211; expand master window</li>
</ul>
<h2>Some more commands</h2>
<ul>
<li><strong>Win-Shift-c</strong> &#8211; close selected window</li>
<li><strong>Win-1</strong> (or 2,3,4,5,6,7,8,9) &#8211; switch workspace</li>
<li><strong>Win-Shift-1</strong> (or 2,3,4,5,6,7,8,9) &#8211; switch selected window to another workspace</li>
<li><strong>Win-j</strong> (or Win-Tab) &#8211; select next window</li>
<li><strong>Win-k</strong> (or Win-Shift-Tab) &#8211; select previous window</li>
<li><strong>Win-Shift-j</strong> &#8211; switch selected window with next window</li>
<li><strong>Win-Shift-k</strong> &#8211; switch selected window with previous window</li>
<li><strong>Win-,</strong> &#8211; add another window to master area</li>
<li><strong>Win-.</strong> &#8211; remove a window to master area</li>
<li><strong>Win-p</strong> &#8211; start typing a program name, say &#8220;nau&#8221; for &#8220;nautilus&#8221;</li>
<li><strong>Win-q</strong> &#8211; restart xmonad (useful after modifying xmonad.hs config)</li>
<li><strong>Win-Shift-q</strong> &#8211; quit xmonad (quick way to log out)</li>
</ul>
<p>If you Win-(left-mouse drag) you&#8217;ll pop (un-tile) a floating window. You can Win-(right-mouse drag) to change the size and Win-t to set the window back into the tile layout. Some people like this and claim it makes working with Gimp or other dialog boxes easier. At least one person disagrees.</p>
<p>In the animated sequence below, we have three windows. The spreadsheet (white) is the master along with two terminals. The animation demonstrates toggling between two full screen windows, then cycling through four layouts from full screen, three column, two column, two rows, and back to full screen. From the keyboard that would be: Win-j, Win-k, Win-Space, Win-Space, Win-Space, Win-Space, ad nauseum.</p>
<p><center><img src="/alex/2010/05/xmonad-layout-anim-300.gif" alt="toggling between four different layouts" /></center></p>
]]></content:encoded>
			<wfw:commentRss>http://genaud.net/2010/05/xmonad-on-lucid-lynx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Xmonad on Karmic Koala</title>
		<link>http://genaud.net/2010/04/xmonad-on-karmic-koala/</link>
		<comments>http://genaud.net/2010/04/xmonad-on-karmic-koala/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 04:06:45 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tiling]]></category>
		<category><![CDATA[tiling window manager]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xmonad]]></category>

		<guid isPermaLink="false">http://genaud.net/?p=395</guid>
		<description><![CDATA[Xmonad is a tiling window manager that wastes neither time nor screen real estate. It does away with decorations, giving windows the space they need, but no more. The learning curve is a steep eight commands or so.
This tutorial should get you up to speed quickly with Xmonad on Ubuntu 9.10 Karmic Koala.

You will be [...]]]></description>
			<content:encoded><![CDATA[<p>Xmonad is a tiling window manager that wastes neither time nor screen real estate. It does away with decorations, giving windows the space they need, but no more. The learning curve is a steep eight commands or so.</p>
<p>This tutorial should get you up to speed quickly with Xmonad on Ubuntu 9.10 Karmic Koala.</p>
<p><a href="/alex/2010/04/xmonad-pix-full.png"><img src="/alex/2010/04/xmonad-pix-720.png" alt="Several tiled and a floating window" /></a></p>
<p>You will be changing your window manager, which is a major part of your graphical user interface, where it&#8217;s far easier to get yourself into a mess than get yourself out. If that scares you or loosing all your data doesn&#8217;t sound like fun, then this may not be for you.</p>
<p>You may want to download the <a href="/alex/2010/04/xmonad_files.zip">config files</a> and read through the entire tutorial first. If you lack the luxury of two computers, I recommend printing this page out. Remember Ctrl-Alt-F1 through F6 are your terminal friends.</p>
<h2>Get Xmonad 0.9</h2>
<p><code>$ sudo add-apt-repository ppa:justinbogner/ppa<br />
$ sudo apt-get update<br />
$ sudo apt-get install xmonad libghc6-xmonad-dev libghc6-xmonad-contrib-dev dwm-tools feh</code></p>
<h2>Set the Gnome window manager</h2>
<p>Set to xmonad after printing the old windowmanager:<br />
<code>$ gconftool-2 -g /desktop/gnome/session/required_components/windowmanager<br />
$ gconftool-2 -s /desktop/gnome/session/required_components/windowmanager xmonad --type string</code></p>
<p>Karmic Koala comes preinstalled with a <code>/usr/share/applications/xmonad.desktop</code> file that should work just fine, though <a href="http://haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome#Setting_up_Gnome_to_use_Xmonad">Haskellwiki recommends</a> that <code>X-GNOME-Autostart-Notify</code> is set to false (I&#8217;ve noticed no difference either way).</p>
<h2>Xmonad.start</h2>
<p>You will have to change a single line of a different xmonad.desktop file. The Exec in <a href="/alex/2010/04/xmonad_files/xmonad.desktop">/usr/share/xsessions/xmonad.desktop</a> must be <code>xmonad.start</code> rather than just <code>xmonad</code>. Download this file or make the Exec change manually.</p>
<p>Download <a href="/alex/2010/04/xmonad_files/xmonad.start">/usr/local/bin/xmonad.start</a> and make sure it is executable.<br />
<code>$ sudo chmod +x /usr/local/bin/xmonad.start</code></p>
<h2>Xmonad config header</h2>
<p>Download and by all means customize <a href="/alex/2010/04/xmonad_files/xmonad.hs">~/.xmonad/xmonad.hs</a> . I changed the mod key from Left-Alt to the Left-Win key (mod4Mask).</p>
<p>Be sure to compile/link the header with:<br />
<code>$ ghci ~/.xmonad/xmonad.hs</code></p>
<p>If all runs OK, you can quit with a preceding colon:<br />
<code>Prelude Main> :quit</code></p>
<h2>Xmobar</h2>
<p>Download the optional <a href="/alex/2010/04/xmonad_files/.xmobarrc">~/.xmobarrc</a> for Xmobar (a text based quick launcher with other candy).</p>
<h2>Finishing touches</h2>
<p>I killed the default Ubuntu bottom panel (right click &#8216;Delete this panel&#8217;) because Xmonad has it&#8217;s own workspaces, makes the taskbar redundant, and makes cleaning the desktop unnecessary. Further I hide the top panel (right click &#8220;Properties&#8221; autohide) so that full screen lives up to the name.</p>
<p>You may get away with logging into a Gnome session, otherwise, set Session to XMonad (under the login prompt). Though the latter is probably optimal, it does require you to set your background image again, if you so desire. Just uncomment and modify the &#8220;<code>feh --bg-scale</code>&#8221; line of <code>/usr/local/bin/xmonad.start</code>.</p>
<h2>Necessary reading</h2>
<p>The configuration above is a mix and match <a href="http://www.haskell.org/pipermail/xmonad/2009-November/009060.html">from</a> <a href="http://haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome">these</a> <a href="http://arjuna.deltoso.net/articoli/my-configuration-of-xmonad-window-manager-with-xmobar-and-trayer/en">four</a> <a href="http://jjinux.blogspot.com/2009/11/linux-my-xmonad-setup.html">pages</a> and my own seasonings.</p>
<p>I highly recommend <a href="http://xmonad.org/tour.html#open">this short tutorial</a> (note that my configuration uses the Left-Win mod key rather than Alt mod key). Ten minutes later, you can check out the <a href="http://xmonad.org/manpage.html">tiny manual</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://genaud.net/2010/04/xmonad-on-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open bash here (Windows Explorer)</title>
		<link>http://genaud.net/2010/02/open-bash-here/</link>
		<comments>http://genaud.net/2010/02/open-bash-here/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 17:47:29 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[geek]]></category>

		<guid isPermaLink="false">http://genaud.net/?p=318</guid>
		<description><![CDATA[...to Explore, or Bash Windows open?]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s often handy to use Windows Explorer to find a directory, but then launch a shell to do real work. Here&#8217;s a script to add an &#8220;Open Cygwin Bash here&#8221; menu item to Explorer. This feature works when right-clicking on directory links, background, and drives, for dos cmd, cygwin bash, and powershell:</p>
<p><img src="/alex/2010/02/open_shell_example.png" alt="Example of the "Open Shell Here" Explorer menu" /></p>
<p>Download the following file (<a href="/alex/2010/02/open_shell_here.reg">open_shell_here.reg</a>). Open it with Notepad. Modify the paths such as &#8220;d:\\cygwin\\bin\\bash.exe&#8221; and &#8220;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe&#8221;. When the paths and command strings are as you like, save and exit. Run it with &#8216;Registry Editor&#8217;.</p>
<p>Verified on Windows 7 only. Thanks to <a href="http://www.burgaud.com/open-command-window-here/">André Burgaud</a> and <a href="http://chaosinacan.com/registry-hacks/cygwin-override-command">Joel Spadin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://genaud.net/2010/02/open-bash-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gōngfu Chá Dào Animated</title>
		<link>http://genaud.net/2009/10/gong-fu-cha-animated/</link>
		<comments>http://genaud.net/2009/10/gong-fu-cha-animated/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 23:03:44 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[asia]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[yummy]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[chinese tea ceremony]]></category>
		<category><![CDATA[gong fu cha]]></category>
		<category><![CDATA[gongfu]]></category>
		<category><![CDATA[tea]]></category>

		<guid isPermaLink="false">http://genaud.net/?p=297</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><img src="/alex/2009/10/gongfucha_500x172_300ms.gif" width="604" /></p>
]]></content:encoded>
			<wfw:commentRss>http://genaud.net/2009/10/gong-fu-cha-animated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.201 seconds -->
<!-- Cached page served by WP-Cache -->
