<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Geeky Articles RSS Feed</title>
    <link>http://mbauman.net/rss/geek/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>The RSS feed of just my geeky posts. No sense of reality here.</description>
    
    
        <item>
          <title>iPhone Geolocation Bookmarklets</title>
          <description>&lt;p style=&quot;float:left;&quot;&gt;&lt;a href=&quot;http://s3.amazonaws.com/static.mbauman.net/page_attachments/156/IMG_0010.PNG&quot;&gt;&lt;img src=&quot;http://s3.amazonaws.com/static.mbauman.net/page_attachments/158/IMG_0010_240.png&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Very few websites have implemented the new javascript &lt;span class=&quot;caps&quot;&gt;GPS&lt;/span&gt; geolocation features that were intruduced with &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt; 5.  However, there are a few sites that use latitude and longitude directly in their URLs.&lt;/p&gt;
&lt;p&gt;I first wanted a quick way to get my current latitude and longitude while looking at &lt;a href=&quot;http://heavens-above.com&quot;&gt;Heavens Above&lt;/a&gt;.  It&amp;#8217;s a great site that allows you to find visible satellites based upon your current location.  Here&amp;#8217;s the bookmarklet that I created:&lt;/p&gt;
&lt;pre&gt;
&lt;span style=&quot;word-wrap:break-word&quot;&gt;&lt;code&gt;javascript:navigator.geolocation.getCurrentPosition(function(g){c=g.coords;z=c.altitude;z=z?z:0;d=new Date(2009,0,1,0,0,0,0).toLocaleString().substr(-3,3);window.location=&quot;http://www.heavens-above.com/?lat=&quot;+c.latitude+&quot;&amp;amp;lng=&quot;+c.longitude+&quot;&amp;amp;alt=&quot;+z+&quot;&amp;amp;loc=iPhone&amp;amp;tz=&quot;+d;},function(){alert(&quot;Permission denied.&quot;)});&lt;/code&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;p&gt;Copy this to your bookmarks, and then when accessed on an iPhone, it will directly load the site with your current location entered!&lt;/p&gt;
&lt;p&gt;I had to jump through several hoops here.  When the altitude is not available (when only using cell-tower triangulation), the javascript code returns &lt;code&gt;null&lt;/code&gt;.  The website only supports numeric values, so &lt;code&gt;z=z?z:0&lt;/code&gt; replaces the &lt;code&gt;null&lt;/code&gt; with a &lt;code&gt;0&lt;/code&gt;. Secondly, the website needs the local timezone, but unfortunately it only accepts a small subset of the three letter codes (and not the numeric offset from &lt;span class=&quot;caps&quot;&gt;UTC&lt;/span&gt;).  Even worse, the daylight savings version of the code (&lt;span class=&quot;caps&quot;&gt;EDT&lt;/span&gt;/&lt;span class=&quot;caps&quot;&gt;CDT&lt;/span&gt;/&lt;span class=&quot;caps&quot;&gt;MDT&lt;/span&gt;/&lt;span class=&quot;caps&quot;&gt;PDT&lt;/span&gt;) are unsupported &amp;#8211; the site just assumes that you follow the trend (sorry Arizona).  So I grab the code from January 1, 2009 (when daylight savings is not in effect), and parse the three letter code from that string.&lt;/p&gt;
&lt;p&gt;For most sites, you&amp;#8217;d only need something of the form (The NOAA&amp;#8217;s weather forecast, for example):&lt;/p&gt;
&lt;pre&gt;
&lt;span style=&quot;word-wrap:break-word&quot;&gt;&lt;code&gt;javascript:navigator.geolocation.getCurrentPosition(function(g){c=g.coords;window.location=&quot;http://forecast.weather.gov/MapClick.php?lat=&quot;+c.latitude+&quot;&amp;amp;lon=&quot;+c.longitude;},function(){alert(&quot;Permission denied.&quot;)});&lt;/code&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;p&gt;Now if only I could find a way to save the javascript bookmark to the Home Screen, I&amp;#8217;d be set!&lt;/p&gt;</description>
          <pubDate>Thu, 06 Aug 2009 01:33:15 GMT</pubDate>
          <guid>http://mbauman.net/geek/2009/08/06/iphone-geolocation-bookmarklets/</guid>
          <link>http://mbauman.net/geek/2009/08/06/iphone-geolocation-bookmarklets/</link>
        </item>
    
        <item>
          <title>Minor Truetype Font Editing on a Mac</title>
          <description>&lt;p style=&quot;float:left;&quot;&gt;&lt;img src=&quot;http://s3.amazonaws.com/static.mbauman.net/page_attachments/150/cfonts.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;With the release of Windows Vista, Microsoft included six new fonts that they commissioned for the occasion.  They are the new defaults for Vista and Office.  They&amp;#8217;ve also made them available for Mac through Office as well as a handful of free (as in beer) utilities.  I got them by following &lt;a href=&quot;http://www.wezm.net/2009/03/03/install-consolas-mac-osx/&quot;&gt;these instructions&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;These new modern fonts are explicitly designed for display on computer screens with ClearType.  Although Apple has a &lt;a href=&quot;http://www.codinghorror.com/blog/archives/000884.html&quot;&gt;different philosophy on font rendering&lt;/a&gt;, the same basic premise is used in OS X.  Besides all that (or, rather, because of it) these fonts are very pretty.&lt;/p&gt;
&lt;p&gt;But there&amp;#8217;s a problem, and you can see it in the image above.  When packaging these fonts up for the Mac, Microsoft goofed on the baseline for Consolas.  The icon previews below show it much more obviously.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://s3.amazonaws.com/static.mbauman.net/page_attachments/154/icons.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;In short: it&amp;#8217;s annoying.  And wrong.  And the fix is after the break.&lt;/p&gt;</description>
          <pubDate>Sun, 15 Mar 2009 21:36:03 GMT</pubDate>
          <guid>http://mbauman.net/geek/2009/03/15/minor-truetype-font-editing-on-a-mac/</guid>
          <link>http://mbauman.net/geek/2009/03/15/minor-truetype-font-editing-on-a-mac/</link>
        </item>
    
        <item>
          <title>Adding an OptiBay to my MacBook Pro</title>
          <description>&lt;p&gt;Well, I finally decided to risk voiding my warranty for the luxury of double the disk space.  I have a 160GB hard drive installed in my MacBook, but I&amp;#8217;m constantly squeezed for space.  I never use my internal CD drive (the last time was over two months ago&amp;#8230; and it was actually my house-mate that needed it), so the thought of occasionally using an external CD drive is much more pleasant than lugging an external HD around all the time.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.mcetech.com/&quot;&gt;&lt;span class=&quot;caps&quot;&gt;MCE&lt;/span&gt; Technologies&lt;/a&gt; sells a decent-looking package called &lt;a href=&quot;http://www.mcetech.com/optibay/&quot;&gt;OptiBay&lt;/a&gt; for a little too much money that takes the internal optical drive and replaces it with a Hard Drive.  You can do it on most any Mac laptop.  I searched around online quite a bit for reviews and experiences, but it seems as though nobody has done a formal review.  So, I figured I&amp;#8217;d photograph and document my experience as I went.&lt;/p&gt;</description>
          <pubDate>Sat, 26 May 2007 21:14:43 GMT</pubDate>
          <guid>http://mbauman.net/geek/2007/05/26/adding-an-optibay-to-my-macbook-pro/</guid>
          <link>http://mbauman.net/geek/2007/05/26/adding-an-optibay-to-my-macbook-pro/</link>
        </item>
    
        <item>
          <title>New Site</title>
          <description>&lt;p&gt;Well, I finally got my act together and put together a website.  I have a chronic problem of half-completing projects and then just leaving them languishing.  I&amp;#8217;m particularly bad with domain names &amp;#8212; I get an idea for a site and snatch up some witty and apropos domain names&amp;#8230; only to never fully develop the idea into a working site.  Part of my problem is that I keep making my plans more and more intricate until it simply becomes impossible for my limited skill-set.&lt;/p&gt;
&lt;p&gt;The impetus for this site is three-fold (and it therefore will have three sections once completed)&amp;#8230;&lt;/p&gt;</description>
          <pubDate>Sat, 12 May 2007 01:49:24 GMT</pubDate>
          <guid>http://mbauman.net/geek/2007/05/12/new-site/</guid>
          <link>http://mbauman.net/geek/2007/05/12/new-site/</link>
        </item>
    
    
  </channel>
</rss>

