<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Technology on Peter V. Mørch's Blog</title><link>https://www.morch.com/categories/technology/</link><description>Recent content in Technology on Peter V. Mørch's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 24 Jul 2021 04:30:00 +0000</lastBuildDate><atom:link href="https://www.morch.com/categories/technology/index.xml" rel="self" type="application/rss+xml"/><item><title>How to use Mathjax in Hugo</title><link>https://www.morch.com/posts/2021-07-24-mathjax-in-hugo/</link><pubDate>Sat, 24 Jul 2021 04:30:00 +0000</pubDate><guid>https://www.morch.com/posts/2021-07-24-mathjax-in-hugo/</guid><description>&lt;p&gt;&lt;a href="https://gohugo.io/"&gt;Hugo&lt;/a&gt; is the static site generator that this site is built&#10;with. This is how to enable Mathjax in Hugo so you can write LaTeX in your&#10;pages, as I&amp;rsquo;ve used e.g. in &lt;a href="https://www.morch.com/posts/2021-07-23-spotify-econonmics/"&gt;On the Economics of Streaming: Show me the&#10;money&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Put this in the page source somewhere. I put it in &lt;code&gt;layouts/partials/head-additions.html&lt;/code&gt;, but perhaps that is specific to the ananke theme:&lt;/p&gt;&#10;&lt;div class="code-block"&gt;&#10; &lt;button class="code-copy" type="button" hidden aria-label="Copy code to clipboard"&gt;&#10; &lt;span class="code-copy-label" aria-hidden="true"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-html" data-lang="html"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;&lt;span style="color:#f92672"&gt;script&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;src&lt;/span&gt;&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;https://polyfill.io/v3/polyfill.min.js?features=es6&amp;#34;&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span style="color:#f92672"&gt;script&lt;/span&gt;&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;&lt;span style="color:#f92672"&gt;script&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;id&lt;/span&gt;&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;MathJax-script&amp;#34;&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;async&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;src&lt;/span&gt;&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js&amp;#34;&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span style="color:#f92672"&gt;script&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10; &lt;/div&gt;&lt;p&gt;Now you can put this on your page and have it rendered like you&amp;rsquo;d expect:&lt;/p&gt;</description></item><item><title>On the Economics of Streaming: Show me the money</title><link>https://www.morch.com/posts/2021-07-23-spotify-econonmics/</link><pubDate>Fri, 23 Jul 2021 10:08:00 +0000</pubDate><guid>https://www.morch.com/posts/2021-07-23-spotify-econonmics/</guid><description>&lt;p&gt;I&amp;rsquo;ve never spent as much money on music or TV and movies as I do now by paying&#10;my Spotify and Netflix subscriptions. But still artists apparently &lt;a href="https://www.google.com/search?q=artists+streaming+payments"&gt;aren&amp;rsquo;t&#10;getting any money&lt;/a&gt;&#10;for their art. How can this be? Where is the money going?&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="#back-of-the-napkin-calculation"&gt;Below&lt;/a&gt;&#10;I&amp;rsquo;ve done a back-of-the-napkin calculation. If all the premium money went to&#10;artists we should be listening 45.5 hours/month, but on average, we&#10;&lt;a href="https://kommandotech.com/statistics/spotify-user-statistics/"&gt;&lt;em&gt;actually&lt;/em&gt;&lt;/a&gt;&#10;listen 25 hours/month. Which means that Spotify is keeping 45% of my&#10;subscription, and only paying 55% to artists.&lt;/p&gt;</description></item><item><title>Data Visualization: It Matters How we Show Graphs</title><link>https://www.morch.com/2019/01/12/data-visualization-it-matters-how-we-show-graphs/</link><pubDate>Sat, 12 Jan 2019 12:19:47 +0000</pubDate><guid>https://www.morch.com/2019/01/12/data-visualization-it-matters-how-we-show-graphs/</guid><description>&lt;p&gt;Should we show graphs using horizontal lines like this:&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="horizontalStats.png" alt="Horizontal Stats"&gt;&lt;/p&gt;&#10;&lt;p&gt;Or using &amp;ldquo;slanted&amp;rdquo; lines like this? :&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="slantedStats.png" alt="Slanted Stats"&gt;&lt;/p&gt;</description></item><item><title>Perl: Schema for APIs with code generation?</title><link>https://www.morch.com/2015/06/09/perl-schema-for-apis-with-code-generation/</link><pubDate>Tue, 09 Jun 2015 23:09:33 +0000</pubDate><guid>https://www.morch.com/2015/06/09/perl-schema-for-apis-with-code-generation/</guid><description>&lt;p&gt;&lt;img src="logo-json.png" alt="logo-json"&gt; &lt;img src="moose.png" alt="moose"&gt;&lt;/p&gt;&#10;&lt;p&gt;Two things have occurred lately for me in Perl:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;I&amp;rsquo;ve been bitten enough times by un(der)specified RPC and API documentation to make it worth my while to begin documenting the interfaces in schemas.&lt;/li&gt;&#10;&lt;li&gt;I&amp;rsquo;ve been bitten by &lt;a href="http://moose.iinteractive.com/en/about.html"&gt;Moose&lt;/a&gt;. Using real objects instead of raw hashes.&lt;/li&gt;&#10;&lt;/ol&gt;</description></item><item><title>MSDN Blogs: Looking Forward: Microsoft Support for Secure Shell (SSH)</title><link>https://www.morch.com/2015/06/03/msdn-blogs-looking-forward-microsoft-support-for-secure-shell-ssh/</link><pubDate>Wed, 03 Jun 2015 21:30:06 +0000</pubDate><guid>https://www.morch.com/2015/06/03/msdn-blogs-looking-forward-microsoft-support-for-secure-shell-ssh/</guid><description>&lt;figure class="auto-width"&gt;&lt;img src="https://www.morch.com/2015/06/03/msdn-blogs-looking-forward-microsoft-support-for-secure-shell-ssh/powershell.jpg"&#10;&#9;&#9;&#9;alt="Powershell screenshot"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Fantastic news! MS Windows will support SSH both as client and server. This is superb! &amp;ldquo;&amp;hellip; and there’re not exact days yet. However the PowerShell team will provide details in the near future on availability dates.&amp;rdquo;&#10;Source: &lt;em&gt;&lt;a href="http://blogs.msdn.com/b/powershell/archive/2015/06/03/looking-forward-microsoft-support-for-secure-shell-ssh.aspx"&gt;MSDN Blogs&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Metadata for beginners</title><link>https://www.morch.com/2014/01/04/metadata-for-beginners/</link><pubDate>Sat, 04 Jan 2014 15:39:54 +0000</pubDate><guid>https://www.morch.com/2014/01/04/metadata-for-beginners/</guid><description>&lt;p&gt;&lt;img src="metadataForBeginners.jpg" alt="metadataForBeginners"&gt;&lt;/p&gt;&#10;&lt;p&gt;Many people I&amp;rsquo;ve spoken to seem to think that they don&amp;rsquo;t have anything to hide, and as long as the government isn&amp;rsquo;t listening in on the actual phone conversations, then they&amp;rsquo;re fine with it. As you might guess, I&amp;rsquo;m not. This &lt;a href="https://twitter.com/pinkflawd/status/417649515131596801/photo/1"&gt;slide&lt;/a&gt; from 30th Chaos Communication Congress (30C3) hits the head on the nail.&lt;/p&gt;</description></item><item><title>UN votes to protect privacy in digital age - Hurray!</title><link>https://www.morch.com/2014/01/04/un-votes-to-protect-privacy-in-digital-age-hurray/</link><pubDate>Sat, 04 Jan 2014 15:33:30 +0000</pubDate><guid>https://www.morch.com/2014/01/04/un-votes-to-protect-privacy-in-digital-age-hurray/</guid><description>&lt;p&gt;&lt;img src="un.jpg" alt="UN"&gt;&lt;/p&gt;&#10;&lt;p&gt;I honestly don&amp;rsquo;t understand why this wasn&amp;rsquo;t more publicized. It is great news!&#10;&lt;a href="http://bigstory.ap.org/article/un-votes-protect-privacy-digital-age"&gt;UN votes to protect privacy in digital&#10;age&lt;/a&gt; (from&#10;Associated Press)&lt;/p&gt;&#10;&lt;p&gt;Fantastic! Only real good news about this whole NSA scandal I&amp;rsquo;ve heard in a long time.&lt;/p&gt;</description></item><item><title>Director of national Intelligence James Clapper lies to US Congress - without consequences?</title><link>https://www.morch.com/2014/01/04/director-of-national-intelligence-james-clapper-lies-to-us-congress-without-consequences/</link><pubDate>Sat, 04 Jan 2014 15:28:22 +0000</pubDate><guid>https://www.morch.com/2014/01/04/director-of-national-intelligence-james-clapper-lies-to-us-congress-without-consequences/</guid><description>&lt;p&gt;&lt;img src="James_R._Clapper_official_portrait.jpg" alt="James_R._Clapper_official_portrait"&gt;&lt;/p&gt;&#10;&lt;p&gt;So, James Clapper, US Director of national Intelligence, lies to Congress. First he calls the lie the “least untruthful” answer he could publicly provide, and then cites a momentary memory failure. Seven congressmen take issue with James Clapper&amp;rsquo;s testimony, but Obama administration unlikely to turn against director.&lt;/p&gt;&#10;&lt;p&gt;See: &lt;a href="http://www.theguardian.com/world/2013/dec/19/republicans-consequences-james-clapper-testimony"&gt;Republicans demand consequences for &amp;lsquo;willful lie&amp;rsquo; by intelligence chief | World news | theguardian.com&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Let me recap: James Clapper, a retired lieutenant general in the United States Air Force (you&amp;rsquo;d think he knows right from wrong, truth from lie), lies under oath to US Congress and it is not likely to have any consequences for him.&lt;/p&gt;</description></item><item><title>Big Brother sees all but can't keep a secret?</title><link>https://www.morch.com/2013/06/07/big-brother-sees-all-but-cant-keep-a-secret/</link><pubDate>Fri, 07 Jun 2013 19:03:15 +0000</pubDate><guid>https://www.morch.com/2013/06/07/big-brother-sees-all-but-cant-keep-a-secret/</guid><description>&lt;p&gt;&lt;img src="1984.jpg" alt="1984"&gt;&lt;/p&gt;&#10;&lt;p&gt;Two news items from this week have me quite uneasy.&lt;/p&gt;&#10;&lt;p&gt;The &lt;a href="https://supporters.eff.org/civicrm/mailing/view?reset=1&amp;amp;id=427"&gt;NSA is basically listening in on every US citizen&lt;/a&gt;. For the sake of argument, let me assume that they get &lt;em&gt;everything&lt;/em&gt;. So far I don&amp;rsquo;t think we&amp;rsquo;re quite there yet here in Denmark.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="http://news.yahoo.com/2-suspected-danish-police-data-hacking-123605876.html"&gt;Data held by the Danish police has been hacked.&lt;/a&gt; We&amp;rsquo;re not sure exactly what the hackers have had access to, but we do know they&amp;rsquo;ve had at least read+write access to all driver&amp;rsquo;s license data and read access to the Schengen Information System, a large European database on police and judicial co-operation. They&amp;rsquo;ve been lurking around in there undetected for 6 months. Do &lt;em&gt;you&lt;/em&gt; believe that is all they&amp;rsquo;ve had access to? In 2011 &lt;a href="http://www.businessinsider.com/pentagon-admits-24000-files-were-hacked-declares-cyberspace-a-theater-of-war-2011-7"&gt;Pentagon Admitted 24,000 Files Were Hacked&lt;/a&gt; too.&lt;/p&gt;</description></item><item><title>Getting older?</title><link>https://www.morch.com/2012/06/14/getting-older/</link><pubDate>Thu, 14 Jun 2012 20:39:12 +0000</pubDate><guid>https://www.morch.com/2012/06/14/getting-older/</guid><description>&lt;p&gt;The other day, I was cooking, and it was time to set the table.&lt;/p&gt;&#10;&lt;p&gt;Suddenly I found myself standing in the storage/utility room. And I had no idea why I was there. &amp;ldquo;Peter, you need to set the table! Get back on track!&amp;rdquo; - I told myself.&lt;/p&gt;&#10;&lt;p&gt;So I went back into the kitchen. Looked at the table: What was missing? Ah, drinks. OK, glasses, plastic cup for my daughter, pitcher of water - check. &amp;ldquo;Hey, I&amp;rsquo;d like a Coke&amp;rdquo;, so I opened the fridge. No Cokes. Should probably put some in the fridge for next time I want a Coke. I went to the utility room, and suddenly it hit me: &lt;em&gt;That&lt;/em&gt; is what I was doing in the storage room! Getting Cokes for the fridge!&lt;/p&gt;</description></item><item><title>Watches - Oh - Watches</title><link>https://www.morch.com/2012/04/26/watches-oh-watches/</link><pubDate>Thu, 26 Apr 2012 21:27:13 +0000</pubDate><guid>https://www.morch.com/2012/04/26/watches-oh-watches/</guid><description>&lt;p&gt;I love watches.&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="certina1.png" alt=""&gt;&lt;/p&gt;&#10;&lt;p&gt;Being a techie, I really can&amp;rsquo;t accept a watch that isn&amp;rsquo;t accurate. The accuracy of a quartz-crystal based watch is the minimum. I wish I could get a Rolex, Omega or other really nice looking watch, but I just can&amp;rsquo;t accept the accuracy I&amp;rsquo;ll get from a watch like that. So all the beautiful Swiss watches are out for me. But there are alternatives:&lt;/p&gt;</description></item><item><title>Great Courses at Coursera</title><link>https://www.morch.com/2012/04/20/great-courses-at-coursera/</link><pubDate>Fri, 20 Apr 2012 06:44:20 +0000</pubDate><guid>https://www.morch.com/2012/04/20/great-courses-at-coursera/</guid><description>&lt;figure class="auto-width"&gt;&lt;img src="https://www.morch.com/2012/04/20/great-courses-at-coursera/crypto.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;I&amp;rsquo;m currently taking a &lt;a href="https://www.coursera.org/course/crypto"&gt;Cryptology course at Stanford University&lt;/a&gt; via &lt;a href="https://www.coursera.org/"&gt;Coursera&lt;/a&gt;. It came recommended by &lt;a href="http://www.schneier.com/blog/archives/2011/11/free_cryptograp.html"&gt;Bruce Schneier on Security: Free Cryptography Class&lt;/a&gt;, and I find it a great way to expand my knowledge. I really appreciate the level. Just enough for it to be challenging and stimulating, but also not too hard or too much work, so I can still fit it in with family and work.&lt;/p&gt;&#10;&lt;p&gt;And in addition, the courses are free!&lt;/p&gt;</description></item><item><title>SSH VPN with IP Masquerading (NAT)</title><link>https://www.morch.com/2011/11/15/ssh-vpn-with-ip-masquerading-nat/</link><pubDate>Tue, 15 Nov 2011 22:36:12 +0000</pubDate><guid>https://www.morch.com/2011/11/15/ssh-vpn-with-ip-masquerading-nat/</guid><description>&lt;p&gt;I&amp;rsquo;ve written &lt;a href="https://www.morch.com/2011/07/05/forwarding-snmp-ports-over-ssh-using-socat/"&gt;before&lt;/a&gt; about how to access SNMP agents (or other TCP or UDP services) in a network when you only have SSH access. Running a SSH VPN and then running IP Masquerading (NAT) in the remote end is &lt;em&gt;the&lt;/em&gt; solution for me so far. Here is how it is done.&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="sshVPN1.png" alt=""&gt;&lt;/p&gt;</description></item><item><title>Seeing the Sun's Path - Android and iPhone apps</title><link>https://www.morch.com/2011/11/14/seeing-the-suns-path-android-and-iphone-apps/</link><pubDate>Mon, 14 Nov 2011 20:27:56 +0000</pubDate><guid>https://www.morch.com/2011/11/14/seeing-the-suns-path-android-and-iphone-apps/</guid><description>&lt;figure class="auto-width"&gt;&lt;img src="https://www.morch.com/2011/11/14/seeing-the-suns-path-android-and-iphone-apps/sunSurveyorSmall.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;I&amp;rsquo;d like to recommend an Android App for seeing the Sun&amp;rsquo;s path in Augmented Reality (AR): &lt;a href="http://www.sunsurveyor.com/"&gt;Sun Surveyor&lt;/a&gt;. There is also &lt;a href="http://ajnaware.wordpress.com/2009/10/06/sun-seeker-seeing-the-light-with-augmented-reality/#comment-584"&gt;Sun Seeker&lt;/a&gt; for iPhone/iOS, which I haven&amp;rsquo;t tried since I don&amp;rsquo;t have an iPhone.&lt;/p&gt;&#10;&lt;p&gt;We&amp;rsquo;re out looking for a house to buy, and for me getting the afternoon and evening sun on the terrace during summer is so incredibly important. This way, I don&amp;rsquo;t have to take the real-estate agent&amp;rsquo;s word for where the sun goes down in the summer and whether the trees will create shade on the terrace. I can check it myself. Über-cool!&lt;/p&gt;</description></item><item><title>Oh, god I hate PDF for on-screen viewing</title><link>https://www.morch.com/2011/10/13/oh-god-i-hate-pdf-for-on-screen-viewing/</link><pubDate>Thu, 13 Oct 2011 20:36:09 +0000</pubDate><guid>https://www.morch.com/2011/10/13/oh-god-i-hate-pdf-for-on-screen-viewing/</guid><description>&lt;figure class="auto-width"&gt;&lt;img src="https://www.morch.com/2011/10/13/oh-god-i-hate-pdf-for-on-screen-viewing/no-pdf1.png"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Honestly, I don&amp;rsquo;t understand how somebody can prefer PDF to HTML for on-screen viewing. Really? That is possible? If you&amp;rsquo;re one of them, can you help me understand?&lt;/p&gt;</description></item><item><title>Increased surveillance is considered a positive by many? Yikes...</title><link>https://www.morch.com/2011/09/18/increased-surveillance-is-considered-a-positive-by-many-yikes/</link><pubDate>Sun, 18 Sep 2011 18:24:23 +0000</pubDate><guid>https://www.morch.com/2011/09/18/increased-surveillance-is-considered-a-positive-by-many-yikes/</guid><description>&lt;p&gt;&lt;img src="1984.jpg" alt=""&gt;&lt;/p&gt;&#10;&lt;p&gt;Here in Denmark, we&amp;rsquo;ve just had an election, and the previous government has been replaced.&lt;/p&gt;&#10;&lt;p&gt;A &lt;a href="http://sondagsavisen.dk/2011/37/her-er-danskernes-dom-over-vk.aspx"&gt;newspaper article [lang=&amp;ldquo;da&amp;rdquo;]&lt;/a&gt; looks back at what people liked and disliked about what the previous government did.&lt;/p&gt;&#10;&lt;p&gt;I have trouble believing, much less understanding, that 68% consider increased surveillance to have had a positive effect for Denmark, 16% believe the effect to be neutral and 16% believe it to be negative.&lt;/p&gt;&#10;&lt;p&gt;Wow. The people who believe that our society is better off when the government monitors us more out numbers people like me 4 to 1? Yikes. Has nobody read &lt;a href="http://gutenberg.net.au/ebooks01/0100021.txt"&gt;1984&lt;/a&gt; or seen &lt;a href="http://www.imdb.com/title/tt0405094/synopsis"&gt;Das Leben der Anderen&lt;/a&gt;? Doesn&amp;rsquo;t anybody remember DDR or the Soviet Union? Perhaps China will open source the great firewall too, so we can install it here!&lt;/p&gt;</description></item><item><title>NSA Open Sources an internally developed project</title><link>https://www.morch.com/2011/09/08/nsa-open-sources-an-internally-developed-project/</link><pubDate>Thu, 08 Sep 2011 07:30:29 +0000</pubDate><guid>https://www.morch.com/2011/09/08/nsa-open-sources-an-internally-developed-project/</guid><description>&lt;p&gt;&lt;img src="opensourceNSA.png" alt=""&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="http://wiki.apache.org/incubator/AccumuloProposal"&gt;NSA proposes Accumulo NoSQL database to Apache&lt;/a&gt;, writes &lt;a href="http://www.h-online.com/open/news/item/NSA-proposes-Accumulo-NoSQL-database-to-Apache-1336623.html"&gt;The H&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;This is a big deal (at least in my book) because it demonstrates that the NSA does not believe in &lt;a href="http://en.wikipedia.org/wiki/Security_through_obscurity"&gt;security by obscurity&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>34 Cleverly Designed Inventions</title><link>https://www.morch.com/2011/09/02/34-cleverly-designed-inventions/</link><pubDate>Fri, 02 Sep 2011 06:51:57 +0000</pubDate><guid>https://www.morch.com/2011/09/02/34-cleverly-designed-inventions/</guid><description>&lt;figure class="auto-width"&gt;&lt;img src="https://www.morch.com/2011/09/02/34-cleverly-designed-inventions/cleverUSB.jpg"&#10;&#9;&#9;&#9;alt="Image of clever USB plug"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Really cool list of &lt;a href="http://nedhardy.com/2011/03/10/34-cleverly-designed-inventions/"&gt;34 Cleverly Designed Inventions&lt;/a&gt;. I especially liked the USB connector, the stair case drawers, and the crawling lamp on the wall.&lt;/p&gt;&#10;&lt;p&gt;Thanks to the &lt;a href="http://www.userfocus.co.uk/newsletter/sep2011.html"&gt;Userfocus Usability Newsletter&lt;/a&gt; for the link. The site also has lovely &lt;a href="http://nedhardy.com/2010/10/12/32-pictures-to-help-you-appreciate-the-awesomeness-of-nature/"&gt;32 Pictures To Help You Appreciate The Awesomeness Of Nature&lt;/a&gt; but I better let you go now :-).&lt;/p&gt;</description></item><item><title>How much do we trust posts on website forums?</title><link>https://www.morch.com/2011/07/18/trust-on-forums/</link><pubDate>Mon, 18 Jul 2011 18:47:41 +0000</pubDate><guid>https://www.morch.com/2011/07/18/trust-on-forums/</guid><description>&lt;p&gt;&lt;img src="forum.png" alt=""&gt;&lt;/p&gt;&#10;&lt;p&gt;A Danish Minister approves an ad-agency to pose as real users and stuff a forum with bogus posts to &lt;em&gt;kick-start&lt;/em&gt; it. I&amp;rsquo;m appalled, surprised at my own ignorance and worried about the lack of credibility of even government-funded sites.&lt;/p&gt;</description></item><item><title>Natural Sort</title><link>https://www.morch.com/2011/07/13/natsort/</link><pubDate>Wed, 13 Jul 2011 06:52:08 +0000</pubDate><guid>https://www.morch.com/2011/07/13/natsort/</guid><description>&lt;p&gt;Why doesn&amp;rsquo;t every programming language have &amp;ldquo;Natural Sorting&amp;rdquo; built in, out of the box? Natural sorting is the way humans sort, where number substrings are sorted numerically, everything else alphabetically:&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Sorted &amp;ldquo;&lt;a href="http://weblog.masukomi.org/2007/12/10/alphabetical-asciibetical"&gt;Asciibetically&lt;/a&gt;&amp;rdquo; (normal computer sort)&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Sorted &amp;ldquo;Naturally&amp;rdquo; (what humans prefer)&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;foo1bar&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;foo1bar&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;foo10bar&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;foo2bar&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;foo2bar&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;foo10bar&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;Notice how 10 comes before 2 in &lt;a href="http://weblog.masukomi.org/2007/12/10/alphabetical-asciibetical"&gt;asciibetical&lt;/a&gt; &amp;ldquo;normal computer sorting&amp;rdquo; ? Haven&amp;rsquo;t we all seen user interfaces that like that? Its just plain &lt;em&gt;wrong&lt;/em&gt;. :-(&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="http://www.davekoelle.com/alphanum.html"&gt;Dave Koelle&amp;rsquo;s Alphanum Algorithm&lt;/a&gt; sorts naturally, but instead of analyzing each array element O(log(N)) times, I &lt;a href="https://github.com/pmorch/natsort"&gt;present a modified Perl version&lt;/a&gt; that allows for &lt;a href="http://en.wikipedia.org/wiki/Schwartzian_transform"&gt;Schwartzian transforms&lt;/a&gt;, yielding huge performance improvements.&lt;/p&gt;</description></item><item><title>Refresh your browser automatically during web development</title><link>https://www.morch.com/2011/07/10/refresh-your-browser-automatically-during-web-development/</link><pubDate>Sun, 10 Jul 2011 12:08:43 +0000</pubDate><guid>https://www.morch.com/2011/07/10/refresh-your-browser-automatically-during-web-development/</guid><description>&lt;figure class="auto-width"&gt;&lt;img src="https://www.morch.com/2011/07/10/refresh-your-browser-automatically-during-web-development/refresh.png"&#10;&#9;&#9;&#9;alt="Refresh image"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Did you ever find that while editing files for the web (e.g. HTML, Javascript, Java/Flash/Ruby, whatever) that it would be cool to have your browser reflect any changes as soon as you hit Save in your IDE without having to Alt-Tab to the browser and hit refresh (Ctrl-R)? That way, you could stay entirely in your browser and just move your eyes to the browser as it refreshes automatically showing you the results of your newest changes.&lt;/p&gt;&#10;&lt;p&gt;Well, now you can! I&amp;rsquo;ve developed a pair of tools for that allow this when used in concert. Both are Open Source, of course.&lt;/p&gt;</description></item><item><title>Forwarding SNMP ports over SSH using socat</title><link>https://www.morch.com/2011/07/05/forwarding-snmp-ports-over-ssh-using-socat/</link><pubDate>Tue, 05 Jul 2011 04:32:34 +0000</pubDate><guid>https://www.morch.com/2011/07/05/forwarding-snmp-ports-over-ssh-using-socat/</guid><description>&lt;p&gt;Here is an example of the problem we need to solve: We have SSH access to a network, but want to access an SNMP agent in that network from a local client. We use SNMP here in this example, but it could be any other protocol that uses UDP, such as DNS or TFTP.&lt;/p&gt;&#10;&lt;p&gt;We&amp;rsquo;ll forward the SNMP traffic in a TCP port like this, with &amp;ldquo;socat&amp;rdquo; doing the UDP-in-TCP tunneling:&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="snmpPortForward.png" alt=""&gt;&lt;/p&gt;</description></item><item><title>Subversion: Setting the repository path for svn+ssh://server/repos</title><link>https://www.morch.com/2011/02/20/subversion-setting-the-repository-path-for-svnsshserve/</link><pubDate>Sun, 20 Feb 2011 22:09:42 +0000</pubDate><guid>https://www.morch.com/2011/02/20/subversion-setting-the-repository-path-for-svnsshserve/</guid><description>&lt;p&gt;For some reason, it doesn&amp;rsquo;t seem to be possible to set up a path for your repository when using subversion as: &lt;code&gt;svn+ssh://server/repos&lt;/code&gt; out of the box. So you end up having to specify &lt;code&gt;svn+ssh://server/some/path/repos&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;But it really isn&amp;rsquo;t that hard to do. Here is how I do it. Beware that you&amp;rsquo;re going to be making system-wide changes to how svnserve operates. The basic idea is to replace svnserve with our own version, that calls the original one with a -r parameter.&lt;/p&gt;</description></item><item><title>Classical Mechanics: Why does Power depend on frame of reference?</title><link>https://www.morch.com/2011/02/15/power-depends-on-frame-of-reference/</link><pubDate>Tue, 15 Feb 2011 07:59:56 +0000</pubDate><guid>https://www.morch.com/2011/02/15/power-depends-on-frame-of-reference/</guid><description>&lt;p&gt;Imagine we&amp;rsquo;re in a rocket.&lt;/p&gt;&#10;&lt;p&gt;We have an imaginary engine, that provides a constant amount of thrust. How much power does such an engine provide? In essence the power depends linearly on the velocity:&lt;/p&gt;&#10;&lt;div class="has-mathjax"&gt;&#10;\[&#10;\begin{align*}&#10;P &amp;= \frac{dW}{dt} \wedge W = \int F \cdot ds \Leftrightarrow \\[10 pt]&#10;P &amp;= F \cdot \frac{ds}{dt} \Leftrightarrow \\[10 pt]&#10;P &amp;= F \cdot v&#10;\end{align*}&#10;\]&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;And the velocity depends (by definition) on the frame of reference.&lt;/p&gt;</description></item><item><title>Deep Packet Inspection? Yup, bring it on!</title><link>https://www.morch.com/2009/04/08/deep-packet-inspection/</link><pubDate>Wed, 08 Apr 2009 00:00:03 +0000</pubDate><guid>https://www.morch.com/2009/04/08/deep-packet-inspection/</guid><description>&lt;p&gt;Deep packet inspection could be useful to ISPs who oversell limited bandwidth to (too) many customers. With Deep Packet Inspection, my ISP could inspect the contents and details of the high-bandwith traffic going to and from my neighbor:&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.dpacket.org/articles/digging-deeper-deep-packet-inspection-dpi"&gt;&lt;img src="deepPacketInspection.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Our ISP could then determine most of it to be peer-2-peer traffic, and then limit exactly that peer-2-peer traffic so that my neighbor ( :-) ) doesn&amp;rsquo;t hog all the bandwidth that we all have to share. On the surface, that sounds like a great idea? Why should my neighbor ruin the internet experience for the rest of us? There&amp;rsquo;s a catch&amp;hellip;&lt;/p&gt;</description></item><item><title>Documentation, Git and MediaWiki</title><link>https://www.morch.com/2009/02/09/documentation-git-and-mediawiki/</link><pubDate>Mon, 09 Feb 2009 00:00:51 +0000</pubDate><guid>https://www.morch.com/2009/02/09/documentation-git-and-mediawiki/</guid><description>&lt;p&gt;I have a dream. I want to write structured documentation and source code together in my text editor and version control both together with &lt;a href="http://git-scm.com/"&gt;git&lt;/a&gt;, just like the source code. But have it be searchable, viewable and ideally editable within MediaWiki. Is this possible?&lt;/p&gt;</description></item><item><title>Xen?</title><link>https://www.morch.com/2008/12/03/xen/</link><pubDate>Wed, 03 Dec 2008 00:00:54 +0000</pubDate><guid>https://www.morch.com/2008/12/03/xen/</guid><description>&lt;p&gt;Now, do I want to run Xen? Hmm&amp;hellip; I&amp;rsquo;m using it to host morch.com itself, and I think its great.&lt;/p&gt;&#10;&lt;p&gt;Compared to VMware workstation, which is my other favorite, I love that it is open source, and I love that it is detachable. That is, I can start it and don&amp;rsquo;t have any GUI artifacts hanging around. What I do with VMware workstation is start it under a VNC server, so I don&amp;rsquo;t have to worry about the GUI, but this isn&amp;rsquo;t about VMware but about Xen. &lt;em&gt;[I&amp;rsquo;ve since learned that this isn&amp;rsquo;t true about VMware workstation - it has become detachable]&lt;/em&gt;&lt;/p&gt;</description></item></channel></rss>