<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Mayo Jordanov</title>
        <link  rel="self" href="feed/atom.xml"type="application/atom+xml"/>
            <link rel="alternate" href="/" type="text/html"/>
                <updated>2012-04-12T22:19:17Z</updated>
    <id>tag:oyam.ca,2010:/</id>
    <author>
      <name>Mayo Jordanov Mayo Jordanov</name>
      <url>http://oyam.ca/</url>
    </author>

        <entry>
      <id>tag:oyam.ca,2010:/blog/2012/04/caines-arcade.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2012-04-12T00:00:00Z</updated>
      <published>2012-04-12T00:00:00Z</published>
      
      <title type="html">Caine's Arcade</title>
      <link rel="alternate" href="https://vimeo.com/40000072" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Awesome and inspiring story. (via &lt;a href=&#34;http://daringfireball.net&#34;&gt;Daring Fireball&lt;/a&gt;)&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2012/04/rear-window.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2012-04-12T00:00:00Z</updated>
      <published>2012-04-12T00:00:00Z</published>
      
      <title type="html">Rear Window</title>
      <link rel="alternate" href="https://vimeo.com/37120554" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Timelapse made from footage of Hitchcock&amp;#8217;s Rear Window movie. (via &lt;a href=&#34;http://daringfireball.net&#34;&gt;Daring Fireball&lt;/a&gt;)&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2012/02/men-do-not-learn.html</id>
      <author><name>Aldous Huxley</name></author>
      <updated>2012-02-21T00:00:00Z</updated>
      <published>2012-02-21T00:00:00Z</published>
      
      <title type="html">&ldquo;That men do not learn very much from the lessons of history is the most important of all the lessons that history has to teach.&rdquo; &mdash; Aldous Huxley</title>
      <link rel="alternate" href="/blog/2012/02/men-do-not-learn.html" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/11/windows-miniports.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2011-11-13T17:24:00Z</updated>
      <published>2011-11-13T17:24:00Z</published>
      
      <title type="html">Broken WAN Miniports</title>
      <link rel="alternate" href="/blog/2011/11/windows-miniports.html" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Windows network stack uses &amp;#8220;miniports&amp;#8221; to handle different layers of the network. These can sometimes &amp;#8220;break&amp;#8221; and cause &lt;span class=&#34;caps&#34;&gt;VPN&lt;/span&gt; and possibly other network level services to not work properly. Usually you can tell a miniport is not working when it has an exclamation sign icon next to it in the device manager. (The miniports are typically hidden too, so if they aren&amp;#8217;t broken, they won&amp;#8217;t show up at all.) To me, this problem manifested when I was creating a &lt;span class=&#34;caps&#34;&gt;VPN&lt;/span&gt;, and despite choosing connection over network, the connection would try to dial the&amp;nbsp;modem.&lt;/p&gt;
&lt;p&gt;All it takes to fix them is uninstalling and re-installing the non-working miniport, but unfortunately there is no easy way to do it. Miniports can&amp;#8217;t be deleted/uninstalled, and their drivers are hidden from the user, so even re-installing them isn&amp;#8217;t&amp;nbsp;easy.&lt;/p&gt;
&lt;p&gt;Trying to avoid &lt;span class=&#34;caps&#34;&gt;OS&lt;/span&gt; reinstall, I hunted around for a while and could not find a decent guide to fixing the problem. There are a lot of outdated posts that no longer work in Windows 7 (and probably Vista), and some that are just plain wrong. Having read number of forum posts, some KBs, and a bit of intuition and guessing, I&amp;#8217;ve pieced together the following guide to uninstall and re-install the network&amp;nbsp;miniports:&lt;/p&gt;
&lt;h2&gt;Uninstall the non-working&amp;nbsp;miniports&lt;/h2&gt;
&lt;p&gt;To do this, &lt;span class=&#34;caps&#34;&gt;DO&lt;/span&gt; &lt;span class=&#34;caps&#34;&gt;NOT&lt;/span&gt; edit the registries. There are number of other registry keys that depend on the miniports being present, and it is super easy to completely break the network stack, to a point where the base network card driver won&amp;#8217;t work. (If you did this already, let&amp;#8217;s hope your system has restore points &amp;#8212; you can restore to previous snapshot and try doing it the non-registry way outlined there.) When doing this, take a note of the miniports that you are removing, you&amp;#8217;ll need to know this later when&amp;nbsp;reinstalling.&lt;/p&gt;
&lt;p&gt;So, to remove each non-working miniport, do the&amp;nbsp;following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right click on the non-working miniport, choose &amp;#8220;Update&amp;nbsp;Driver&amp;#8221;.&lt;/li&gt;
&lt;li&gt;Choose &amp;#8220;Browse my&amp;nbsp;computer&amp;#8221;.&lt;/li&gt;
&lt;li&gt;In the next window, choose &amp;#8220;Let me pick driver from a&amp;nbsp;list&amp;#8221;.&lt;/li&gt;
&lt;li&gt;Uncheck &amp;#8220;Show compatible hardware&amp;#8221;. From the &amp;#8220;Manufacturer&amp;#8221; list, choose &amp;#8220;Microsoft&amp;#8221;, and from the &amp;#8220;Network Adapter&amp;#8221; list, choose &amp;#8220;&lt;span class=&#34;caps&#34;&gt;MAC&lt;/span&gt; Bridge Miniport&amp;#8221;. (It can be any device the user is allowed to&amp;nbsp;uninstall.)&lt;/li&gt;
&lt;li&gt;Back in the device manager, delete the device that just turned into the &amp;#8220;&lt;span class=&#34;caps&#34;&gt;MAC&lt;/span&gt; Bridge Miniport&amp;#8221;&amp;nbsp;device.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Once done removing the bad miniports, reboot. Don&amp;#8217;t skip this, it&amp;#8217;s important. Otherwise there is a change things will go bad&amp;nbsp;again.&lt;/p&gt;
&lt;h2&gt;Reinstall the&amp;nbsp;miniports&lt;/h2&gt;
&lt;p&gt;This is the fun part. You&amp;#8217;ll need to do a few extra steps, as the miniport drivers aren&amp;#8217;t meant to be installed by users and are not visible. To avoid editing .inf files (which in lot of cases are protected and not easily editable), we&amp;#8217;ll do it the long&amp;nbsp;way…&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Get ahold of current &lt;code&gt;devcon.exe&lt;/code&gt;. 32-bit version won&amp;#8217;t work on 64-bit systems. It runs, but won&amp;#8217;t do what it needs to. Old (&lt;span class=&#34;caps&#34;&gt;XP&lt;/span&gt;/2000) versions don&amp;#8217;t work well wither. The easiest way to do this is to follow the steps outlined in &amp;#8220;&lt;a href=&#34;http://social.technet.microsoft.com/wiki/contents/articles/182.aspx&#34;&gt;How to Obtain the Current Version of Device Console Utility (DevCon.exe)&lt;/a&gt;&amp;#8221; on Microsoft&amp;#8217;s TechNet wiki. (It involved getting an &lt;span class=&#34;caps&#34;&gt;ISO&lt;/span&gt; image of a developer &lt;span class=&#34;caps&#34;&gt;CD&lt;/span&gt; and extracting the &lt;code&gt;devcon.exe&lt;/code&gt; file out of&amp;nbsp;there.)&lt;/li&gt;
&lt;li&gt;Go to command prompt, go to the directory where you extracted &lt;code&gt;devcon.exe&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For each miniport that you have previously uninstalled, execute the command outlined below. &lt;strong&gt;&lt;span class=&#34;caps&#34;&gt;DO&lt;/span&gt; &lt;span class=&#34;caps&#34;&gt;NOT&lt;/span&gt;&lt;/strong&gt; run all of them or run the command twice, as that will create second version of the existing miniport, which can cause problems&amp;nbsp;again.&lt;/p&gt;
&lt;p&gt;If running the command reports &amp;#8220;driver install&amp;#8221; failure, don&amp;#8217;t pay much attention to it, it usually does. The only problem is when it complains about the inf file missing, or a missing class (in which case you most likely made a typo in the last part of the&amp;nbsp;command).&lt;/p&gt;
&lt;p&gt;&lt;table&gt;
  &lt;tr&gt;
&lt;td&gt;IKEv2&lt;/td&gt;&lt;td&gt;&lt;pre&gt;devcon.exe install c:\Windows\inf\netavpna.inf MS_AgileVpnMiniport&lt;/pre&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;&lt;span class=&#34;caps&#34;&gt;IP&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;devcon.exe install c:\Windows\inf\netrasa.inf MS_NdisWanIp&lt;/pre&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;IPv6&lt;/td&gt;&lt;td&gt;&lt;pre&gt;devcon.exe install c:\Windows\inf\netrasa.inf MS_NdisWanIpv6&lt;/pre&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;Network Monitor&lt;/td&gt;&lt;td&gt;&lt;pre&gt;devcon.exe  install c:\Windows\inf\netrasa.inf MS_NdisWanBh&lt;/pre&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;&lt;span class=&#34;caps&#34;&gt;L2TP&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;devcon.exe  install c:\Windows\inf\netrasa.inf MS_L2tpMiniport&lt;/pre&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;PPPoE&lt;/td&gt;&lt;td&gt;&lt;pre&gt;devcon.exe  install c:\Windows\inf\netrasa.inf MS_PppoeMiniport&lt;/pre&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;&lt;span class=&#34;caps&#34;&gt;PPTP&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;devcon.exe  install c:\Windows\inf\netrasa.inf MS_PptpMiniport&lt;/pre&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;&lt;span class=&#34;caps&#34;&gt;SSTP&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;devcon.exe  install c:\Windows\inf\netsstpa.inf MS_SstpMiniport&lt;/pre&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Once done, reboot. Again, this is necessary. You can go to device manager and scan for new devices and some of the miniports will show up, but some will have wrong names and won&amp;#8217;t work properly without a&amp;nbsp;reboot.&lt;/p&gt;
&lt;p&gt;That&amp;#8217;s it, you should have working miniports again. If you had a &lt;span class=&#34;caps&#34;&gt;VPN&lt;/span&gt; connection created while the miniports were still bad, you will most likely need to delete it, and re-create it. Otherwise, things should be back to normal.&amp;nbsp;Enjoy.&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/08/everyone-is-genius.html</id>
      <author><name>Albert Einstein</name></author>
      <updated>2011-08-26T00:00:00Z</updated>
      <published>2011-08-26T00:00:00Z</published>
      
      <title type="html">&ldquo;Everyone is a genius. But if you judge a fish on its ability to climb a tree, it will live its whole life believing that it is stupid.&rdquo; &mdash; Albert Einstein</title>
      <link rel="alternate" href="/blog/2011/08/everyone-is-genius.html" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/06/hacking-with-mouse.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2011-06-27T00:00:00Z</updated>
      <published>2011-06-27T00:00:00Z</published>
      
      <title type="html">Hackers pierce network with jerry-rigged mouse</title>
      <link rel="alternate" href="http://www.theregister.co.uk/2011/06/27/mission_impossible_mouse_attack/" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/06/walt-disney-multiplane-camera.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2011-06-14T00:00:00Z</updated>
      <published>2011-06-14T00:00:00Z</published>
      
      <title type="html">Walt Disney's MultiPlane Camera</title>
      <link rel="alternate" href="http://www.youtube.com/watch?v=YdHTlUGN1zw&amp;feature=player_embedded" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Filmed in 1957. (via &lt;a href=&#34;http://daringfireball.net&#34;&gt;Daring Fireball&lt;/a&gt;)&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/06/iss-docked-with-endeavour.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2011-06-09T00:00:00Z</updated>
      <published>2011-06-09T00:00:00Z</published>
      
      <title type="html">ISS docked with Space Shuttle Endeavour</title>
      <link rel="alternate" href="http://www.flickr.com/photos/europeanspaceagency/5810701347/in/set-72157626913126676/" type="text/html"/>

      <content type="html">
                    &lt;p&gt;One of a kind photo. Check out the whole set on &lt;span class=&#34;caps&#34;&gt;ESA&lt;/span&gt;&amp;#8217;s &lt;a href=&#34;http://www.flickr.com/photos/europeanspaceagency/sets/72157626913126676/with/5810701347/&#34;&gt;photostream&lt;/a&gt;.&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/06/make-no-little-plans.html</id>
      <author><name>Daniel Burnham, Chicago architect. (1846-1912)</name></author>
      <updated>2011-06-08T00:00:00Z</updated>
      <published>2011-06-08T00:00:00Z</published>
      
      <title type="html">&ldquo;Make no little plans&rdquo; &mdash; Daniel Burnham, Chicago architect. (1846-1912)</title>
      <link rel="alternate" href="/blog/2011/06/make-no-little-plans.html" type="text/html"/>

      <content type="html">
          &lt;p&gt;Make no little plans. They have no magic to stir men&amp;#8217;s blood and probably themselves will not be realized. Make big plans; aim high in hope and work, remembering that a noble, logical diagram once recorded will never die, but long after we are gone will be a living thing, asserting itself with ever-growing insistency. Remember that our sons and grandsons are going to do things that would stagger us. Let your watchword be order and your beacon beauty. Think&amp;nbsp;big.&lt;/p&gt;          &lt;p&gt;(via &lt;a href=&#34;http://daringfireball.net/linked/2011/06/08/campus&#34;&gt;Daring Fireball&lt;/a&gt;)&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/05/all-that-is-not-given.html</id>
      <author><name>Hasari Pal</name></author>
      <updated>2011-05-30T00:00:00Z</updated>
      <published>2011-05-30T00:00:00Z</published>
      
      <title type="html">&ldquo;All that is not given, is lost&rdquo; &mdash; Hasari Pal</title>
      <link rel="alternate" href="/blog/2011/05/all-that-is-not-given.html" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/05/picture-of-the-day.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2011-05-29T00:00:00Z</updated>
      <published>2011-05-29T00:00:00Z</published>
      
      <title type="html">Astronomy picture of the day</title>
      <link rel="alternate" href="http://apod.nasa.gov/apod/ap110529.html" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Fireworks, comet, and lightning in single&amp;nbsp;exposure.&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/05/sleepy-brain.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2011-05-03T00:00:00Z</updated>
      <published>2011-05-03T00:00:00Z</published>
      
      <title type="html">Is Your Brain Sleeping While You're Awake?</title>
      <link rel="alternate" href="http://news.nationalgeographic.com/news/2011/04/110427-sleep-deprived-brains-nature-science-health-rat-asleep-awake/" type="text/html"/>

      <content type="html">
                    &lt;p&gt;&lt;span class=&#34;dquo&#34;&gt;&amp;#8220;&lt;/span&gt;Key parts of sleep-deprived brains may go offline, hindering&amp;nbsp;decision-making.&amp;#8221;&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/03/8mm-5dmk2.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2011-03-18T00:00:00Z</updated>
      <published>2011-03-18T00:00:00Z</published>
      
      <title type="html">Convert 8mm film with the Canon 5D mark II</title>
      <link rel="alternate" href="http://blog.wanken.com/8338/convert-8mm-film-with-the-canon-5d-mark-ii/" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2011/02/mercurial-atoms.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2011-02-15T00:00:00Z</updated>
      <published>2011-02-15T00:00:00Z</published>
      
      <title type="html">Mercurial Atoms</title>
      <link rel="alternate" href="/blog/2011/02/mercurial-atoms.html" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Building blocks that matter. At least to some of us&amp;#8230; &lt;a href=&#34;http://hgatoms.com&#34;&gt;Atoms&lt;/a&gt; is a paste-like service implemented on top of &lt;a href=&#34;http://mercurial.selenic.com/&#34;&gt;Mercurial&lt;/a&gt; as a backend. The idea was inspired and heavily influenced by &lt;a href=&#34;http://github.com/&#34;&gt;GitHub&lt;/a&gt;&amp;#8216;s &lt;a href=&#34;http://gist.github.com/&#34;&gt;Gists&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For a while now I looked for Gist-like implementation that ran on Mercurial. Wanting to explore the &lt;a href=&#34;http://mercurial.selenic.com/wiki/MercurialApi&#34;&gt;Mercurial &lt;span class=&#34;caps&#34;&gt;API&lt;/span&gt;&lt;/a&gt; a bit and hopefully learn a bit more about Mercurial&amp;#8217;s internals, I decided it was time to dive in. It&amp;#8217;s running on the &lt;a href=&#34;http://pylonshq.com/&#34;&gt;Pylons&lt;/a&gt; framework with an extra &lt;span class=&#34;caps&#34;&gt;WSGI&lt;/span&gt; handler for serving up the repositories to hg clients using Mercurial&amp;#8217;s&amp;nbsp;hgweb.&lt;/p&gt;
&lt;p&gt;The feature set is fairly basic, mostly focusing on what was necessary for it to be usable. More features are coming, as is code cleanup after my newb hacking at Pylons I&amp;#8217;m also interested to see where others take it. The source is at &lt;a href=&#34;http://bitbucket.org/mayo/atoms/src&#34;&gt;Bitbucket&lt;/a&gt; and it&amp;#8217;s licensed under the &lt;a href=&#34;http://www.opensource.org/licenses/mit-license.php&#34;&gt;&lt;span class=&#34;caps&#34;&gt;MIT&lt;/span&gt;&lt;/a&gt;. Go check it out, and have&amp;nbsp;fun!&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/12/lego-antikythera-mechanism.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-12-13T00:00:00Z</updated>
      <published>2010-12-13T00:00:00Z</published>
      
      <title type="html">Antikythera mechanism out of LEGO</title>
      <link rel="alternate" href="http://www.youtube.com/watch?v=RLPVCJjTNgk" type="text/html"/>

      <content type="html">
                    &lt;p&gt;(via &lt;a href=&#34;http://www.theregister.co.uk/2010/12/10/lego_computer/&#34;&gt;The Register&lt;/a&gt;)&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/11/everything-is-free.html</id>
      <author><name>Josh Harris</name></author>
      <updated>2010-11-29T00:00:00Z</updated>
      <published>2010-11-29T00:00:00Z</published>
      
      <title type="html">&ldquo;Everything is free, except the video that we capture of you. That we own.&rdquo; &mdash; Josh Harris</title>
      <link rel="alternate" href="/blog/2010/11/everything-is-free.html" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Josh Harris from the Quiet: We Live In Public experiment. Check out the &lt;a href=&#34;http://www.weliveinpublicthemovie.com&#34;&gt;We Live In Public&lt;/a&gt; movie. Facebook, Google&amp;#8230; ring a&amp;nbsp;bell?&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/11/network-card-rootkit.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-11-24T00:00:00Z</updated>
      <published>2010-11-24T00:00:00Z</published>
      
      <title type="html">Network card rootkit</title>
      <link rel="alternate" href="http://esec-lab.sogeti.com/dotclear/index.php?post/2010/11/21/Presentation-at-Hack.lu-:-Reversing-the-Broacom-NetExtreme-s-firmware" type="text/html"/>

      <content type="html">
                    &lt;p&gt;(via &lt;a href=&#34;http://www.theregister.co.uk/2010/11/23/network_card_rootkit/&#34;&gt;The Register&lt;/a&gt;)&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/11/sha1-crack.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-11-18T00:00:00Z</updated>
      <published>2010-11-18T00:00:00Z</published>
      
      <title type="html">Cracking SHA1</title>
      <link rel="alternate" href="http://stacksmashing.net/2010/11/15/cracking-in-the-cloud-amazons-new-ec2-gpu-instances/" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Cracking two &lt;span class=&#34;caps&#34;&gt;SHA1&lt;/span&gt; keys every seven minutes, at $2.10 an hour. (via &lt;a href=&#34;http://www.theregister.co.uk/2010/11/18/amazon_cloud_sha_password_hack/&#34;&gt;The Register&lt;/a&gt;)&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/11/from-simplenote-to-jekyll.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-11-16T00:00:00Z</updated>
      <published>2010-11-16T00:00:00Z</published>
      
      <title type="html">From Simplenote to Jekyll</title>
      <link rel="alternate" href="/blog/2010/11/from-simplenote-to-jekyll.html" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Does Mr. Jekyll have a new twin? Jekyll and statically generated pages are nice, but it would be nice to create some posts while on the road without the laptop. SSHing to the server is an option, but typing up a post in vim on phone is not exactly enjoyable. I use &lt;a href=&#34;http://simplenoteapp.com/&#34;&gt;Simplenote&lt;/a&gt; all the time, and I figured it would be nice to write posts in Simplenote. Using Simplenote&amp;#8217;s &lt;span class=&#34;caps&#34;&gt;API&lt;/span&gt;, I wrote a quick and dirty &lt;a href=&#34;https://bitbucket.org/mayo/simplenote_fetcher&#34;&gt;script&lt;/a&gt; that pulls notes with a &lt;code&gt;blog&lt;/code&gt; tag and writes a file that Jekyll can&amp;nbsp;process.&lt;/p&gt;
&lt;p&gt;The post in Simplenote looks somewhat like your regular Jekyll post, with first line being the &amp;#8220;filename&amp;#8221; with date, but without separating the words with dashes, and file extension (so Jekyll uses the right formatting). Then a minimal &lt;span class=&#34;caps&#34;&gt;YAML&lt;/span&gt; front matter, where rest of it will get filled in when generating the actual file. Following that, it&amp;#8217;s a regular post. As an example, this post in Simplenote looks somwhat&amp;nbsp;like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;2010-11-16 From Simplenote to Jekyll.markdown
---
layout: post
short: sn2jk
---
Does Mr. Jekyll have a new twin? [...]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The script on server-side can be run manually or in a cron job to automagically get the posts as they are written. I then have the script add and commit them to the site repository, triggering Mercurial hooks and regenerating the site with&amp;nbsp;Jekyll.&lt;/p&gt;
&lt;p&gt;Like I said, the &lt;a href=&#34;https://bitbucket.org/mayo/simplenote_fetcher&#34;&gt;script&lt;/a&gt; is quick and dirty and will be improved over time. I might consider spinning off the Simplenote &lt;span class=&#34;caps&#34;&gt;API&lt;/span&gt; in a module of it&amp;#8217;s own, if Simperium doesn&amp;#8217;t mind and I&amp;#8217;d like to make it more generic as well, but for now it does what it needs&amp;nbsp;to.&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/11/hello-world-from-simplenote.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-11-15T00:00:00Z</updated>
      <published>2010-11-15T00:00:00Z</published>
      
      <title type="html">Hello World from Simplenote</title>
      <link rel="alternate" href="/blog/2010/11/hello-world-from-simplenote.html" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Hello from &lt;a href=&#34;http://simplenoteapp.com&#34;&gt;Simplenote&lt;/a&gt;, automatically downloaded through the Simplenote &lt;span class=&#34;caps&#34;&gt;API&lt;/span&gt;, and processed with &lt;a href=&#34;http://jekyllrb.com/&#34;&gt;Jekyll&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Some code and more on how it works a bit&amp;nbsp;later.&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/11/back-home.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-11-10T00:00:00Z</updated>
      <published>2010-11-10T00:00:00Z</published>
      
      <title type="html">Back in the new digs</title>
      <link rel="alternate" href="/blog/2010/11/back-home.html" type="text/html"/>

      <content type="html">
                    &lt;p&gt;After fumbling around with numerous redesigns using static pages, switching to wikis, blogs, and anything else you can think of, &lt;a href=&#34;http://webby.rubyforge.org/&#34;&gt;Webby&lt;/a&gt;, then hopping to &lt;a href=&#34;http://journal.oyam.ca&#34;&gt;Tumblr&lt;/a&gt;, and giving up, I made it a full circle back to statically generated pages using &lt;a href=&#34;https://github.com/mojombo/jekyll&#34; title=&#34;Jekyll&#34;&gt;Jekyll&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve been thinking about total redesign, and prompted by other people&amp;#8217;s recent  redesigns, I went back to the beginning, found &lt;a href=&#34;https://github.com/mojombo/jekyll&#34; title=&#34;Jekyll&#34;&gt;Jekyll&lt;/a&gt;, and started over. Some old posts are ported here, and so are some &lt;a href=&#34;http://journal.oyam.ca&#34;&gt;Tumblr&lt;/a&gt;. The old stuff is moved out of the way, but still reachable with the help of some rewrites and&amp;nbsp;redirects.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m using &lt;a href=&#34;http://mercurial.selenic.com/&#34;&gt;Mercurial&lt;/a&gt; to maintain the site, and got it setup with commit hooks, so pushing changes out will generate the necessary pages. The hooks were fairly simple. Just add the following to the server-side &lt;code&gt;.hg/hgrc&lt;/code&gt; file:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[hooks]
changegroup.regenerate = hg up &amp;amp;&amp;amp; jekyll
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;From there, just point the webserver to the  &lt;code&gt;repository/_site&lt;/code&gt; directory. &lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/11/socat.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-11-09T00:00:00Z</updated>
      <published>2010-11-09T00:00:00Z</published>
      
      <title type="html">socat, my new favourite tool</title>
      <link rel="alternate" href="http://www.dest-unreach.org/socat/" type="text/html"/>

      <content type="html">
                    &lt;p&gt;&lt;code&gt;socat&lt;/code&gt;, self described as &amp;#8220;multipurpose relay,&amp;#8221; is the swiss army knife of any kind of bidirectional data transfer. So much cooler than &lt;code&gt;netcat&lt;/code&gt; and lot of other similar&amp;nbsp;tools.&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/09/light-travels-faster-than-sound.html</id>
      <author><name>unknown</name></author>
      <updated>2010-09-28T00:00:00Z</updated>
      <published>2010-09-28T00:00:00Z</published>
      
      <title type="html">&ldquo;Light travels faster than sound. This is why some people appear bright until you hear them speak.&rdquo; &mdash; unknown</title>
      <link rel="alternate" href="/blog/2010/09/light-travels-faster-than-sound.html" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/09/climbing-1700-tower.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-09-15T00:00:00Z</updated>
      <published>2010-09-15T00:00:00Z</published>
      
      <title type="html">Climbing to the Top of a 1,700-Foot Transmission Tower</title>
      <link rel="alternate" href="http://www.youtube.com/watch?v=txdv_oNq81I" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/09/aperture-time-adjustment.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-09-13T00:00:00Z</updated>
      <published>2010-09-13T00:00:00Z</published>
      
      <title type="html">Aperture's time adjustment functionality</title>
      <link rel="alternate" href="/blog/2010/09/aperture-time-adjustment.html" type="text/html"/>

      <content type="html">
                    &lt;p&gt;I&amp;#8217;ve always missed decent way of adjusting photo time in Aperture. The normal &lt;code&gt;Batch Change&lt;/code&gt; only allows you to change time-zones, which is almost always useless if you are like me and don&amp;#8217;t adjust your camera for daylight savings, or have camera with wrong&amp;nbsp;time.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve just noticed there is &lt;code&gt;Metadata&lt;/code&gt; &amp;gt; &lt;code&gt;Adjust Time&lt;/code&gt;. It can change time to arbitrary values, it can change the time on master image, and it works on multiple photos (select multiple photos, change time on current pick, and it will change all selected&amp;nbsp;photos).&lt;/p&gt;
&lt;p&gt;How nice, I wonder why this isn&amp;#8217;t exposed in the &lt;code&gt;Batch Change&lt;/code&gt; window.&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/09/bio-lab.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-09-13T00:00:00Z</updated>
      <published>2010-09-13T00:00:00Z</published>
      
      <title type="html">Bio Lab</title>
      <link rel="alternate" href="http://www.phoboslab.org/biolab/" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Addicitive shoot &amp;#8216;em up in &lt;span class=&#34;caps&#34;&gt;HTML5&lt;/span&gt; +&amp;nbsp;JavaScript&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/09/i-know-you-think-you-understand.html</id>
      <author><name>Alan Greenspan</name></author>
      <updated>2010-09-13T00:00:00Z</updated>
      <published>2010-09-13T00:00:00Z</published>
      
      <title type="html">&ldquo;I know you think you understand what you thought I said, but I'm not sure you realize that what you heard is not what I meant&rdquo; &mdash; Alan Greenspan</title>
      <link rel="alternate" href="/blog/2010/09/i-know-you-think-you-understand.html" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/09/panopticlick.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-09-13T00:00:00Z</updated>
      <published>2010-09-13T00:00:00Z</published>
      
      <title type="html">Panopticlick &mdash; your browser's fingerprint</title>
      <link rel="alternate" href="http://panopticlick.eff.org/" type="text/html"/>

      <content type="html">
                    &lt;p&gt;I know it&amp;#8217;s been around for a while, but it came up in some conversations recently and I couldn&amp;#8217;t find the link. So here it is. Scary&amp;nbsp;stuff&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/09/wilderness-downtown.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-09-01T00:00:00Z</updated>
      <published>2010-09-01T00:00:00Z</published>
      
      <title type="html">The Wilderness Downtown</title>
      <link rel="alternate" href="http://thewildernessdowntown.com/" type="text/html"/>

      <content type="html">
                    &lt;p&gt;An interactive film by Chris Milk built in &lt;span class=&#34;caps&#34;&gt;HTML&lt;/span&gt;&amp;nbsp;5.&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/08/adidas-camera.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-08-31T00:00:00Z</updated>
      <published>2010-08-31T00:00:00Z</published>
      
      <title type="html">La Guillotine Camera, A.K.A The Adidas Camera</title>
      <link rel="alternate" href="http://www.diyphotography.net/la-guillotine-camera-aka-the-adidas-camera" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/06/lego-printer.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-06-03T00:00:00Z</updated>
      <published>2010-06-03T00:00:00Z</published>
      
      <title type="html">Lego Printer</title>
      <link rel="alternate" href="http://www.youtube.com/watch?v=zX09WnGU6ZY" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/06/lego-stop-motion.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-06-03T00:00:00Z</updated>
      <published>2010-06-03T00:00:00Z</published>
      
      <title type="html">Lego Stop Motion</title>
      <link rel="alternate" href="http://www.youtube.com/watch?v=4qsWFFuYZYI&NR=1" type="text/html"/>

      <content type="html">
                          </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/05/kayak-across-pacific.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-05-25T00:00:00Z</updated>
      <published>2010-05-25T00:00:00Z</published>
      
      <title type="html">Google Maps: &quot;Kayak across the Pacific Ocean ... 6243km&quot;</title>
      <link rel="alternate" href="http://maps.google.ca/maps?f=d&source=s_d&saddr=SHENZHEN,+china&daddr=richmond,+bc&hl=en&geocode=FVf8VwEdWmLMBimRUuHQCPQDNDHJgJK3DVXu_Q%3BFc0s7gIdGhGp-Ck9Te_0mXWGVDG1-gK6rSRQag&mra=ls&sll=35.317366,175.78125&sspn=88.133505,191.425781&ie=UTF8&ll=35.173808,175.957031&spn=88.235074,191.425781&t=h&z=3" type="text/html"/>

      <content type="html">
                    &lt;p&gt;Trying to figure out the flight distance between Shenzhen, China and Vancouver, &lt;span class=&#34;caps&#34;&gt;BC&lt;/span&gt;, I plugged the two cities into Google Maps (not realizing there are no flight paths there, at the time). I did not get what I wanted, but the outcome was interesting: They give me driving directions to a port, and from tell I&amp;#8217;m supposed to &amp;#8220;Kayak across the Pacific Ocean&amp;#8221;, about 6243km to Hawaii, and then kayak another 4463km to Seattle, and drive up to Vancouver. Ok then, I&amp;#8217;m right on it, see you in couple of&amp;nbsp;years.&lt;/p&gt;
&lt;p&gt;I wonder though, is the kayaking part something they are working on or part of the biking&amp;nbsp;maps?&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2010/05/project-365.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2010-05-24T00:00:00Z</updated>
      <published>2010-05-24T00:00:00Z</published>
      
      <title type="html">Project 365: Picture a day</title>
      <link rel="alternate" href="/blog/2010/05/project-365.html" type="text/html"/>

      <content type="html">
                    &lt;p&gt;For a while I&amp;#8217;ve been thinking how to force myself to shoot more day to day stuff. Get out of the comfort zone and shooting on trips, and instead force myself to come up with a some shots. I&amp;#8217;ve seen number of people do the &amp;#8220;Project 365&amp;#8221; or &amp;#8220;picture a day&amp;#8221; projects, and it sounds like a good way to achieve what I want &amp;#8212; so here I go, starting&amp;nbsp;today&amp;#8230;&lt;/p&gt;      </content>
    </entry>
        <entry>
      <id>tag:oyam.ca,2010:/blog/2008/01/windows-vpn-freebsd.html</id>
      <author><name>Mayo Jordanov</name></author>
      <updated>2008-01-31T00:00:00Z</updated>
      <published>2008-01-31T00:00:00Z</published>
      
      <title type="html">Windows VPN from FreeBSD</title>
      <link rel="alternate" href="/blog/2008/01/windows-vpn-freebsd.html" type="text/html"/>

      <content type="html">
                    &lt;p&gt;While developing an application, I had the need to access Active Directory (&lt;span class=&#34;caps&#34;&gt;AD&lt;/span&gt;) that was running on a remote machine with no access to &lt;span class=&#34;caps&#34;&gt;AD&lt;/span&gt; from outside world. The only option to talk to the &lt;span class=&#34;caps&#34;&gt;AD&lt;/span&gt; was via Window&amp;#8217;s&amp;nbsp;&lt;span class=&#34;caps&#34;&gt;VPN&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;I found number of solutions that would let me connect my FreeBSD development machine to the Windows &lt;span class=&#34;caps&#34;&gt;VPN&lt;/span&gt; (&lt;span class=&#34;caps&#34;&gt;PPTP&lt;/span&gt; setup), and I initially chose Multilink &lt;span class=&#34;caps&#34;&gt;PPP&lt;/span&gt; Daemon (mpd) version 5 as the tool to use. It seemed full featured and it had capability to open the &lt;span class=&#34;caps&#34;&gt;VPN&lt;/span&gt; tunnel on demand and keep it connected and/or reconnect if it was disconnected for some&amp;nbsp;reason.&lt;/p&gt;
&lt;p&gt;No matter what I did, I could not get mpd to work. I&amp;#8217;ve tried multiple configs I could find around, as well as using the supplied examples and writing a few of my own, unfortunately to no avail. It has always failed in initial stages when trying to negotiate authentication mechanisms&amp;nbsp;with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[L1] LCP: state change Ack-Rcvd --&amp;gt; Opened
[L1] LCP: auth: peer wants EAP, I want CHAP
[L1] CHAP: sending CHALLENGE #1 len: 30
[L1] LCP: LayerUp
[L1] EAP: rec&#39;d REQUEST #171 len: 5, type: Identity
[L1] EAP: sending RESPONSE #171 len: 14, type: Identity
[L1] LCP: rec&#39;d Terminate Request #3 (Opened)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I&amp;#8217;ve tried allowing basic &lt;span class=&#34;caps&#34;&gt;CHAP&lt;/span&gt; (which should fail and not be used) as well as &lt;span class=&#34;caps&#34;&gt;MS&lt;/span&gt;-&lt;span class=&#34;caps&#34;&gt;CHAP&lt;/span&gt; v1, v2 and &lt;span class=&#34;caps&#34;&gt;EAP&lt;/span&gt; with &lt;span class=&#34;caps&#34;&gt;MD5&lt;/span&gt;, etc. All failed, while on the server side &lt;span class=&#34;caps&#34;&gt;MS&lt;/span&gt;-&lt;span class=&#34;caps&#34;&gt;CHAP&lt;/span&gt; v2 was selected as the protocol to use. I&amp;#8217;ve also verified this with a Windows client hard-set to &lt;span class=&#34;caps&#34;&gt;PPTP&lt;/span&gt; &lt;span class=&#34;caps&#34;&gt;VPN&lt;/span&gt; with &lt;span class=&#34;caps&#34;&gt;MS&lt;/span&gt;-&lt;span class=&#34;caps&#34;&gt;CHAP&lt;/span&gt; v2 as the authentication method. On the server side, the mpd failures were reported as &lt;code&gt;You do not have permission to connect using the selected authentication protocol.&lt;/code&gt; and &lt;code&gt;The user attempted to use an authentication method that is not enabled on the matching remote access policy.&lt;/code&gt; at the same time. This is while the remote access policy specifically specifies &lt;span class=&#34;caps&#34;&gt;MS&lt;/span&gt;-&lt;span class=&#34;caps&#34;&gt;CHAP&lt;/span&gt; v2 as the only authentication&amp;nbsp;method.&lt;/p&gt;
&lt;p&gt;I then gave up on mpd and went on to search for other solutions and I found a &lt;a href=&#34;http://www.freebsddiary.org/pptp.php&#34;&gt;Creating a &lt;span class=&#34;caps&#34;&gt;VPN&lt;/span&gt; using &lt;span class=&#34;caps&#34;&gt;PPTP&lt;/span&gt;&lt;/a&gt; post on &lt;a href=&#34;http://www.freebsddiary.org&#34;&gt;FreeBSD Diary&lt;/a&gt;. This setup uses pptpclient and a very simple config in the system&amp;#8217;s ppp.conf. The config ended up&amp;nbsp;being:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;vpn:
  set authname &amp;lt;username&amp;gt;
  set authkey &amp;lt;password&amp;gt;
  set timeout 0
  set ifaddr 0 0
  add &amp;lt;remote iprange&amp;gt;/24 HISADDR
  alias enable yes
  disable dns
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and it worked at the first go. Nice and simple. The only problem I have now is that the &lt;span class=&#34;caps&#34;&gt;VPN&lt;/span&gt; connection sometime gets dropped I have to reconnect manually. Since this is a development server, it&amp;#8217;s not such a big issue, and in the worst case could be solved with a simple script of occasional ping and restart of pptpclient if&amp;nbsp;necessary.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m not done with mpd and I would very much like to get it going, but don&amp;#8217;t have the time to figure out the configs. If somebody can provide me with hints for mpd version 5  config that works with Windows &lt;span class=&#34;caps&#34;&gt;VPN&lt;/span&gt;, please do let me know. (mpd v5 specifically, as I&amp;#8217;ve found tons of configs that are very outdated and don&amp;#8217;t work with mpd v5 and converting them to v5 config will result in the same errors as&amp;nbsp;above.)&lt;/p&gt;      </content>
    </entry>
    </feed>
