Browse Source

Rebuild entire output folder

Thomas Dy 9 years ago
parent
commit
15562479f1
46 changed files with 1650 additions and 2791 deletions
  1. 22 64
      output/2013/index.html
  2. 24 63
      output/2015/index.html
  3. 24 66
      output/archive.html
  4. 2 2
      output/assets/css/theme.css
  5. 24 65
      output/categories/index.html
  6. 22 67
      output/categories/lets-debug.html
  7. 1 1
      output/categories/lets-debug.xml
  8. 22 67
      output/categories/philippine-transit-app.html
  9. 1 1
      output/categories/philippine-transit-app.xml
  10. 22 67
      output/categories/programming.html
  11. 1 1
      output/categories/programming.xml
  12. 67 0
      output/categories/sysadmin-tiddlywiki.html
  13. 77 0
      output/categories/sysadmin-tiddlywiki.xml
  14. 22 67
      output/categories/sysadmin.html
  15. 1 1
      output/categories/sysadmin.xml
  16. 22 67
      output/categories/systemd.html
  17. 1 1
      output/categories/systemd.xml
  18. 23 66
      output/galleries/index.html
  19. 1 1
      output/galleries/rss.xml
  20. 27 70
      output/galleries/transit/index.html
  21. 0 0
      output/galleries/transit/rss.xml
  22. 33 100
      output/index-1.html
  23. 44 114
      output/index-2.html
  24. 105 0
      output/index-3.html
  25. 119 131
      output/index.html
  26. 35 108
      output/posts/console-keymap-switching.html
  27. 35 107
      output/posts/elevation-data-in-otp.html
  28. 44 119
      output/posts/fare-data.html
  29. 35 107
      output/posts/geocoding-services.html
  30. 35 107
      output/posts/graphserver.html
  31. 36 108
      output/posts/gtfs-editor.html
  32. 35 107
      output/posts/highways-in-otp.html
  33. 37 105
      output/posts/is-my-terminal-window-active.html
  34. 35 107
      output/posts/jeep-and-bus-schedules.html
  35. 35 107
      output/posts/jeepney-and-bus-routes.html
  36. 35 107
      output/posts/one-bus-or-maybe-jeep-away.html
  37. 35 107
      output/posts/open-trip-planner.html
  38. 34 106
      output/posts/philippine-transit-app-challenge.html
  39. 34 106
      output/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html
  40. 182 0
      output/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html
  41. 91 0
      output/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.md
  42. 35 107
      output/posts/transit-wand.html
  43. 2 0
      output/robots.txt
  44. 77 56
      output/rss.xml
  45. 42 29
      output/sitemap.xml
  46. 14 9
      output/sitemapindex.xml

+ 22 - 64
output/2013/index.html

@@ -1,44 +1,23 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Posts for year 2013 | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/2013/index.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Posts for year 2013 | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/2013/index.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -48,29 +27,17 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="listpage">
-    <header>
-        <h1>Posts for year 2013</h1>
-    </header>
-    <ul class="postlist">
-        <li>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="listpage"><header><h1>Posts for year 2013</h1>
+    </header><ul class="postlist">
+<li>
 <a href="../posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html" class="listtitle">Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU</a> <time class="listdate" datetime="2013-11-27T10:12:31+08:00" title="2013-11-27 10:12">2013-11-27 10:12</time>
 </li>
         <li>
@@ -112,25 +79,16 @@
         <li>
 <a href="../posts/philippine-transit-app-challenge.html" class="listtitle">Philippine Transit App Challenge</a> <time class="listdate" datetime="2013-07-07T00:17:37+08:00" title="2013-07-07 00:17">2013-07-07 00:17</time>
 </li>
-    </ul>
-</article>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+    </ul></article></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 24 - 63
output/2015/index.html

@@ -1,44 +1,23 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Posts for year 2015 | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/2015/index.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Posts for year 2015 | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/2015/index.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -48,50 +27,32 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="listpage">
-    <header>
-        <h1>Posts for year 2015</h1>
-    </header>
-    <ul class="postlist">
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="listpage"><header><h1>Posts for year 2015</h1>
+    </header><ul class="postlist">
+<li>
+<a href="../posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html" class="listtitle">TiddlyWiki in the Sky (or TiddlyWeb for TW5)</a> <time class="listdate" datetime="2015-12-24T14:48:20+08:00" title="2015-12-24 14:48">2015-12-24 14:48</time>
+</li>
         <li>
 <a href="../posts/is-my-terminal-window-active.html" class="listtitle">Is My Terminal Window Active?</a> <time class="listdate" datetime="2015-06-07T16:20:45+08:00" title="2015-06-07 16:20">2015-06-07 16:20</time>
 </li>
-    </ul>
-</article>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+    </ul></article></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 24 - 66
output/archive.html

@@ -1,44 +1,23 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Archive | Pleasant Programmer</title>
-
-    
-        <link href="assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/archive.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Archive | Pleasant Programmer</title>
+<link href="assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/archive.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -48,53 +27,32 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li class="active"><a href="#">Archives</a></li>
                 <li><a href="categories/index.html">Tags</a></li>
                 <li><a href="rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="listpage">
-    <header>
-        <h1>Archive</h1>
-    </header>
-    <ul class="postlist">
-        <li>
-<a href="2015/index.html">2015</a>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="listpage"><header><h1>Archive</h1>
+    </header><ul class="postlist">
+<li>
+<a href="2015/index.html">2015 (2)</a>
         </li>
 <li>
-<a href="2013/index.html">2013</a>
+<a href="2013/index.html">2013 (14)</a>
     </li>
-</ul>
-</article>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+</ul></article></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 2 - 2
output/assets/css/theme.css

@@ -62,8 +62,8 @@ code {
 	border-radius: 0.25em;
 }
 
-.code pre {
-	padding: 0.25em 0em;
+pre.code {
+	padding: 0.25em 0.5em;
 	overflow-x: auto;
 }
 

+ 24 - 65
output/categories/index.html

@@ -1,45 +1,24 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="description" content="Tags">
-    <meta name="viewport" content="width=device-width">
-    <title>Tags | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/categories/index.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-
-
+<meta charset="utf-8">
+<meta name="description" content="Tags">
+<meta name="viewport" content="width=device-width">
+<title>Tags | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/categories/index.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -49,52 +28,32 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li class="active"><a href="#">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="tagindex">
-    <header>
-        <h1>Tags</h1>
-    </header>
-        <ul class="postlist">
-            <li><a class="reference listtitle" href="lets-debug.html">lets-debug</a></li>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="tagindex"><header><h1>Tags</h1>
+    </header><ul class="postlist">
+<li><a class="reference listtitle" href="lets-debug.html">lets-debug</a></li>
             <li><a class="reference listtitle" href="philippine-transit-app.html">philippine-transit-app</a></li>
             <li><a class="reference listtitle" href="programming.html">programming</a></li>
             <li><a class="reference listtitle" href="sysadmin.html">sysadmin</a></li>
+            <li><a class="reference listtitle" href="sysadmin-tiddlywiki.html">sysadmin tiddlywiki</a></li>
             <li><a class="reference listtitle" href="systemd.html">systemd</a></li>
-        </ul>
-</article>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </ul></article></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 22 - 67
output/categories/lets-debug.html

@@ -1,47 +1,23 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Posts about lets-debug | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/categories/lets-debug.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-        <link rel="alternate" type="application/rss+xml" title="RSS for tag lets-debug" href="lets-debug.xml">
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Posts about lets-debug | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/categories/lets-debug.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><link rel="alternate" type="application/rss+xml" title="RSS for tag lets-debug" href="lets-debug.xml">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -51,53 +27,32 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="tagpage">
-    <header>
-        <h1>Posts about lets-debug</h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="tagpage"><header><h1>Posts about lets-debug</h1>
         <div class="metadata">
                 <p class="feedlink"><a href="lets-debug.xml" type="application/rss+xml">RSS feed</a></p>
         </div>
-    </header>
-    <ul class="postlist">
-        <li>
+    </header><ul class="postlist">
+<li>
 <a href="../posts/gtfs-editor.html" class="listtitle">GTFS Editor</a> <time class="listdate" datetime="2013-07-10T11:30:01+08:00" title="2013-07-10 11:30">2013-07-10 11:30</time>
 </li>
-    </ul>
-</article>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+    </ul></article></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 1 - 1
output/categories/lets-debug.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pleasant Programmer (lets-debug)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link href="http://pleasantprogrammer.com/categories/lets-debug.xml" type="application/rss+xml" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 07 Jun 2015 08:05:41 GMT</lastBuildDate><generator>http://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>GTFS Editor</title><link>http://pleasantprogrammer.com/posts/gtfs-editor.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;Link: &lt;a href="https://github.com/conveyal/gtfs-editor"&gt;https://github.com/conveyal/gtfs-editor&lt;/a&gt;&lt;/p&gt;
+<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Pleasant Programmer (lets-debug)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link rel="self" type="application/rss+xml" href="http://pleasantprogrammer.com/categories/lets-debug.xml"></atom:link><language>en</language><lastBuildDate>Thu, 24 Dec 2015 07:49:10 GMT</lastBuildDate><generator>https://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>GTFS Editor</title><link>http://pleasantprogrammer.com/posts/gtfs-editor.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;Link: &lt;a href="https://github.com/conveyal/gtfs-editor"&gt;https://github.com/conveyal/gtfs-editor&lt;/a&gt;&lt;/p&gt;
 &lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; they really meant under development&lt;/p&gt;
 &lt;p&gt;When I first saw the source of GTFS Editor, I was ecstatic. They used &lt;a href="http://playframework.com/"&gt;Play framework&lt;/a&gt;!!! Not only that, they're targeting PostgreSQL as the main database. Those are our favorite tools for building webapps at By Implication. I was a bit sad though, when I saw it was on the 1.x release of Play though. I did have some experience with that release, but not as much compared to 2.x.&lt;/p&gt;
 &lt;p&gt;Getting it to actually run though, wasn't very pleasant. The initial setup was easy enough. Get &lt;a href="http://www.playframework.com/download"&gt;Play 1.2.5&lt;/a&gt;, install Postgres with PostGIS, clone the repo and create backing database in Postgres. Some minor additional steps you need are to create the PostGIS extension on the database. The schema is automatically generated and applied by Play so that should be all that's necessary. Wonderful. Then, run play, open a browser, go to &lt;a href="http://localhost:9000"&gt;http://localhost:9000&lt;/a&gt;, compilation error. Fantastic.&lt;/p&gt;

+ 22 - 67
output/categories/philippine-transit-app.html

@@ -1,47 +1,23 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Posts about philippine-transit-app | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/categories/philippine-transit-app.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-        <link rel="alternate" type="application/rss+xml" title="RSS for tag philippine-transit-app" href="philippine-transit-app.xml">
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Posts about philippine-transit-app | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/categories/philippine-transit-app.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><link rel="alternate" type="application/rss+xml" title="RSS for tag philippine-transit-app" href="philippine-transit-app.xml">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -51,32 +27,20 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="tagpage">
-    <header>
-        <h1>Posts about philippine-transit-app</h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="tagpage"><header><h1>Posts about philippine-transit-app</h1>
         <div class="metadata">
                 <p class="feedlink"><a href="philippine-transit-app.xml" type="application/rss+xml">RSS feed</a></p>
         </div>
-    </header>
-    <ul class="postlist">
-        <li>
+    </header><ul class="postlist">
+<li>
 <a href="../posts/geocoding-services.html" class="listtitle">Geocoding Services</a> <time class="listdate" datetime="2013-09-25T12:26:59+08:00" title="2013-09-25 12:26">2013-09-25 12:26</time>
 </li>
         <li>
@@ -112,25 +76,16 @@
         <li>
 <a href="../posts/philippine-transit-app-challenge.html" class="listtitle">Philippine Transit App Challenge</a> <time class="listdate" datetime="2013-07-07T00:17:37+08:00" title="2013-07-07 00:17">2013-07-07 00:17</time>
 </li>
-    </ul>
-</article>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+    </ul></article></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 1 - 1
output/categories/philippine-transit-app.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pleasant Programmer (philippine-transit-app)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link href="http://pleasantprogrammer.com/categories/philippine-transit-app.xml" type="application/rss+xml" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 07 Jun 2015 08:05:40 GMT</lastBuildDate><generator>http://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Geocoding Services</title><link>http://pleasantprogrammer.com/posts/geocoding-services.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;A key component for any routing service is being able to do geocoding. Most people who are looking for routes most probably don't know exactly where their start and end points are on the map. Even then, manually looking for a location on a map is a time-consuming task.&lt;/p&gt;
+<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Pleasant Programmer (philippine-transit-app)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link rel="self" type="application/rss+xml" href="http://pleasantprogrammer.com/categories/philippine-transit-app.xml"></atom:link><language>en</language><lastBuildDate>Thu, 24 Dec 2015 07:49:10 GMT</lastBuildDate><generator>https://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Geocoding Services</title><link>http://pleasantprogrammer.com/posts/geocoding-services.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;A key component for any routing service is being able to do geocoding. Most people who are looking for routes most probably don't know exactly where their start and end points are on the map. Even then, manually looking for a location on a map is a time-consuming task.&lt;/p&gt;
 &lt;p&gt;The gold standard for doing geocoding right now is Google Maps. It's hard to find a better location search experience. If they actually provided routing for jeeps here in the Philippines, I imagine there wouldn't be &lt;em&gt;that&lt;/em&gt; much you could do for the competition.&lt;/p&gt;
 &lt;p&gt;When the competition started though, I took it as a challenge to avoid Google Maps as much as possible. I wanted to see how much is currently possible with other options such as OpenStreetMap. In fact, OSM does have a geocoding service called &lt;a href="http://nominatim.openstreetmap.org"&gt;Nominatim&lt;/a&gt;.&lt;/p&gt;
 &lt;p&gt;Sadly, for a mapping app, what you want to do is not simply just geocoding. With geocoding, you take an address and turn it into coordinates. When you want to search for a place in a mapping app, you take part of an address, infer the rest of it, and give the user options to choose from.&lt;/p&gt;

+ 22 - 67
output/categories/programming.html

@@ -1,47 +1,23 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Posts about programming | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/categories/programming.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-        <link rel="alternate" type="application/rss+xml" title="RSS for tag programming" href="programming.xml">
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Posts about programming | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/categories/programming.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><link rel="alternate" type="application/rss+xml" title="RSS for tag programming" href="programming.xml">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -51,32 +27,20 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="tagpage">
-    <header>
-        <h1>Posts about programming</h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="tagpage"><header><h1>Posts about programming</h1>
         <div class="metadata">
                 <p class="feedlink"><a href="programming.xml" type="application/rss+xml">RSS feed</a></p>
         </div>
-    </header>
-    <ul class="postlist">
-        <li>
+    </header><ul class="postlist">
+<li>
 <a href="../posts/is-my-terminal-window-active.html" class="listtitle">Is My Terminal Window Active?</a> <time class="listdate" datetime="2015-06-07T16:20:45+08:00" title="2015-06-07 16:20">2015-06-07 16:20</time>
 </li>
         <li>
@@ -115,25 +79,16 @@
         <li>
 <a href="../posts/philippine-transit-app-challenge.html" class="listtitle">Philippine Transit App Challenge</a> <time class="listdate" datetime="2013-07-07T00:17:37+08:00" title="2013-07-07 00:17">2013-07-07 00:17</time>
 </li>
-    </ul>
-</article>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+    </ul></article></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 1 - 1
output/categories/programming.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Pleasant Programmer (programming)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link href="http://pleasantprogrammer.com/categories/programming.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sun, 07 Jun 2015 08:22:42 GMT</lastBuildDate><generator>http://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Is My Terminal Window Active?</title><link>http://pleasantprogrammer.com/posts/is-my-terminal-window-active.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;I've been working in OSX for almost 3 years now, but I recently switched back to Linux because of all the problems people encountered with Yosemite. There are some things I missed from OSX though. One of which is &lt;a href="https://github.com/marzocchi/zsh-notify"&gt;zsh-notify&lt;/a&gt;. It's a zsh plugin that alerts you if your long-running task is complete, and whether it failed or not.&lt;/p&gt;
+<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Pleasant Programmer (programming)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link rel="self" type="application/rss+xml" href="http://pleasantprogrammer.com/categories/programming.xml"></atom:link><language>en</language><lastBuildDate>Thu, 24 Dec 2015 07:49:10 GMT</lastBuildDate><generator>https://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Is My Terminal Window Active?</title><link>http://pleasantprogrammer.com/posts/is-my-terminal-window-active.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;I've been working in OSX for almost 3 years now, but I recently switched back to Linux because of all the problems people encountered with Yosemite. There are some things I missed from OSX though. One of which is &lt;a href="https://github.com/marzocchi/zsh-notify"&gt;zsh-notify&lt;/a&gt;. It's a zsh plugin that alerts you if your long-running task is complete, and whether it failed or not.&lt;/p&gt;
 &lt;p&gt;It's pretty convenient when you're compiling something and then go on to browse reddit while waiting. Usually, I spend too much time just reading and forget about the compilation entirely. With the plugin, I get the notification and maybe go back to work.&lt;/p&gt;
 &lt;p&gt;One nice feature it has is that if you're currently looking at the terminal window of the job that just finished, it won't notify you. It only notifies on windows that aren't currently in focus. To do this, it has to actually talk to Terminal.app or iTerm2 to see if the window and tab are active.&lt;/p&gt;
 &lt;p&gt;This is alright in OSX since those 2 are the generally most used terminal emulators. On Linux though, everyone has their own favorite terminal. Given that, I figured I could probably rely on talking to X to see if the window is active instead of each single terminal emulator. X can't tell if the tab is active though, but I don't use tabs in my current setup so it should still be good.&lt;/p&gt;

+ 67 - 0
output/categories/sysadmin-tiddlywiki.html

@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Posts about sysadmin tiddlywiki | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/categories/sysadmin-tiddlywiki.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><link rel="alternate" type="application/rss+xml" title="RSS for tag sysadmin tiddlywiki" href="sysadmin-tiddlywiki.xml">
+</head>
+<body>
+<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
+    
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
+        
+    <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
+
+        <span id="blog-title">Pleasant Programmer</span>
+    </a></h1>
+
+        
+
+        
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+                <li><a href="../archive.html">Archives</a></li>
+                <li><a href="index.html">Tags</a></li>
+                <li><a href="../rss.xml">RSS</a></li>
+    
+    
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="tagpage"><header><h1>Posts about sysadmin tiddlywiki</h1>
+        <div class="metadata">
+                <p class="feedlink"><a href="sysadmin-tiddlywiki.xml" type="application/rss+xml">RSS feed</a></p>
+        </div>
+    </header><ul class="postlist">
+<li>
+<a href="../posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html" class="listtitle">TiddlyWiki in the Sky (or TiddlyWeb for TW5)</a> <time class="listdate" datetime="2015-12-24T14:48:20+08:00" title="2015-12-24 14:48">2015-12-24 14:48</time>
+</li>
+    </ul></article></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+            
+        </footer>
+</div>
+    
+    
+    
+    
+
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
+        var easter_egg = new Konami();
+        easter_egg.code = function() {
+            $(".thomas").toggleClass("whoa");
+            $("body").scrollTop(0);
+        }
+        easter_egg.load();
+
+        // love you, thomas!
+        // yours, @_phi + @meggykawsek
+    </script>
+</body>
+</html>

+ 77 - 0
output/categories/sysadmin-tiddlywiki.xml

@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Pleasant Programmer (sysadmin tiddlywiki)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link rel="self" type="application/rss+xml" href="http://pleasantprogrammer.com/categories/sysadmin-tiddlywiki.xml"></atom:link><language>en</language><lastBuildDate>Thu, 24 Dec 2015 07:49:10 GMT</lastBuildDate><generator>https://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>TiddlyWiki in the Sky (or TiddlyWeb for TW5)</title><link>http://pleasantprogrammer.com/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;I've always liked &lt;a href="http://tiddlywiki.com"&gt;TiddlyWiki&lt;/a&gt;. Back when it first came out, it was really amazing. A wiki all in one file, that worked in the browser. It didn't need a backend, it would just save itself as an all new HTML file with all your posts inside. I've used it a lot over the years, as a personal wiki/journal and a class notebook. I even had a blog with it at one point using one of the server-side forks.&lt;/p&gt;
+&lt;p&gt;Now, there's TiddlyWiki5 which is a rewrite of the original TiddlyWiki that looks a whole lot snazzier, and I assume has better architecture overall. It also has experimental support for all the server-side platforms (particularly TiddlyWeb) that have cropped up.&lt;/p&gt;
+&lt;p&gt;If you're just looking for a simple server setup for TiddlyWiki5, it has native support for that on its own. There's plenty of documentation on the site. But if you're looking for more advanced features (like storing your posts in git or a database), then you'll need to use it with TiddlyWeb. The problem is that most of the documentation for TiddlyWeb still refers to the old TiddlyWiki.&lt;/p&gt;
+&lt;p&gt;To support TiddlyWiki5, we'll need a version of the wiki which has the TiddlyWeb plugin already installed and configured. After that, some tweaking is necessary to get TiddlyWeb to provide what the wiki requires.&lt;/p&gt;
+&lt;h3&gt;Setting Up TiddlyWiki&lt;/h3&gt;
+&lt;p&gt;TiddlyWiki5 provides a command line tool via &lt;code&gt;npm&lt;/code&gt; that allows building custom versions of the wiki. In fact, it comes with templates, called "editions", that we can use for our setup. Assuming you already have it installed, create the wiki using&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;tiddlywiki mywiki --init tw5tank          # create wiki from template
+&lt;/pre&gt;
+
+
+&lt;p&gt;This creates a wiki intended for use with &lt;a href="https://tank.peermore.com/"&gt;Tank&lt;/a&gt;, which is built on top of TiddlyWeb. From here, you should look in &lt;code&gt;mywiki/tiddlers/system&lt;/code&gt; which contain the entries for &lt;code&gt;SiteTitle&lt;/code&gt;, &lt;code&gt;SiteSubtitle&lt;/code&gt;, &lt;code&gt;DefaultTiddlers&lt;/code&gt;, and &lt;code&gt;tiddlyweb-host&lt;/code&gt;. The first 3 should be configured however you want. These are necessary because they're needed before the wiki can load them from the server. &lt;code&gt;tiddlyweb-host&lt;/code&gt; contains the location of the TiddlyWeb server, this should be &lt;code&gt;http://localhost:8080/&lt;/code&gt; if you're just testing locally. With everything configured, you can build the new wiki by running&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;tiddlywiki mywiki --build
+&lt;/pre&gt;
+
+
+&lt;p&gt;This will output the wiki to &lt;code&gt;mywiki/output/tw5tank.html&lt;/code&gt;. You can now serve it using your favorite local webserver, like &lt;code&gt;python -m http.server&lt;/code&gt;.&lt;/p&gt;
+&lt;h3&gt;Setting Up TiddlyWeb&lt;/h3&gt;
+&lt;p&gt;The TiddlyWeb tutorial recommends using &lt;code&gt;tiddlywebwiki&lt;/code&gt; which has all the plugins setup for a nice wiki instance for the old TiddlyWiki. It has a lot of features that aren't really needed, so we won't go with that. So first, we'll need to install TiddlyWeb and any plugins we might want to use.&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;pip install tiddlyweb tiddlywebplugins.status tiddlywebplugins.cherrypy tiddlywebplugins.cors
+&lt;/pre&gt;
+
+
+&lt;p&gt;Next, we'll need the tiddlyweb configuration in &lt;code&gt;tiddlywebconfig.py&lt;/code&gt;&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;&lt;span class="c"&gt;# A basic configuration.&lt;/span&gt;
+&lt;span class="c"&gt;# `pydoc tiddlyweb.config` for details on configuration items.&lt;/span&gt;
+
+&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;tiddlywebplugins.status&lt;/span&gt;
+
+&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
+    &lt;span class="s"&gt;'system_plugins'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;'tiddlywebplugins.status'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;'tiddlywebplugins.cors'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
+    &lt;span class="s"&gt;'secret'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;'36c98d6d14618c79f0ed2d49cd1b9e272d8d4bd0'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
+    &lt;span class="s"&gt;'wsgi_server'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;'tiddlywebplugins.cherrypy'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
+    &lt;span class="s"&gt;'cors.enable_non_simple'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
+&lt;span class="p"&gt;}&lt;/span&gt;
+
+&lt;span class="n"&gt;original_gather_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tiddlywebplugins&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_gather_data&lt;/span&gt;
+
+&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_status_gather_data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
+    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;original_gather_data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
+    &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;'space'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;'recipe'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;'default'&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
+    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;
+
+&lt;span class="n"&gt;tiddlywebplugins&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_gather_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;_status_gather_data&lt;/span&gt;
+&lt;/pre&gt;
+
+
+&lt;p&gt;The tweaks involved are:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;using the status plugin which the wiki requires&lt;/li&gt;
+&lt;li&gt;monkeypatching the status plugin for the wiki to use the correct "recipe"&lt;/li&gt;
+&lt;li&gt;using cherrypy server instead of the buggy default one&lt;/li&gt;
+&lt;li&gt;using cors since we're not hosting the wiki itself on the same server&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;With that, we just need to create the store that will hold our data&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;twanager recipe default &amp;lt;&amp;lt;EOF
+desc: standard TiddlyWebWiki environment
+policy: {"read": [], "create": [], "manage": ["R:ADMIN"], "accept": [], "write": ["R:ADMIN"], "owner": "administrator", "delete": ["R:ADMIN"]}
+
+/bags/default/tiddlers
+EOF
+
+twanager bag default &amp;lt;&amp;lt;EOF
+{"policy": {"read": [], "create": [], "manage": ["R:ADMIN"], "accept": [], "write": [], "owner": "administrator", "delete": []}}
+EOF
+&lt;/pre&gt;
+
+
+&lt;p&gt;Finally, we can start the TiddlyWeb server&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;twanager server
+&lt;/pre&gt;
+
+
+&lt;h3&gt;Putting it all together&lt;/h3&gt;
+&lt;p&gt;Once you have the TiddlyWeb server running, you can just go to wherever you're hosting the wiki html and it should work. You can try creating some posts, and the check mark on the sidebar should be red for a while and then turn black. Once that's done it's saved. You can refresh your browser and your posts should still be there.&lt;/p&gt;
+&lt;p&gt;At this point, you can start customizing your TiddlyWeb instance, by changing your store to something like a database, or adding authorization. You can also tweak the server setup so you won't need CORS anymore.&lt;/p&gt;
+&lt;p&gt;TiddlyWiki5 is still relatively new. I hope that eventually, support for server-side and the plugin ecosystem grows to be as great as the old TiddlyWiki.&lt;/p&gt;&lt;/div&gt;</description><category>sysadmin tiddlywiki</category><guid>http://pleasantprogrammer.com/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html</guid><pubDate>Thu, 24 Dec 2015 06:48:20 GMT</pubDate></item></channel></rss>

+ 22 - 67
output/categories/sysadmin.html

@@ -1,47 +1,23 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Posts about sysadmin | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/categories/sysadmin.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-        <link rel="alternate" type="application/rss+xml" title="RSS for tag sysadmin" href="sysadmin.xml">
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Posts about sysadmin | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/categories/sysadmin.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><link rel="alternate" type="application/rss+xml" title="RSS for tag sysadmin" href="sysadmin.xml">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -51,56 +27,35 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="tagpage">
-    <header>
-        <h1>Posts about sysadmin</h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="tagpage"><header><h1>Posts about sysadmin</h1>
         <div class="metadata">
                 <p class="feedlink"><a href="sysadmin.xml" type="application/rss+xml">RSS feed</a></p>
         </div>
-    </header>
-    <ul class="postlist">
-        <li>
+    </header><ul class="postlist">
+<li>
 <a href="../posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html" class="listtitle">Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU</a> <time class="listdate" datetime="2013-11-27T10:12:31+08:00" title="2013-11-27 10:12">2013-11-27 10:12</time>
 </li>
         <li>
 <a href="../posts/console-keymap-switching.html" class="listtitle">Console Keymap Switching</a> <time class="listdate" datetime="2013-10-29T20:02:06+08:00" title="2013-10-29 20:02">2013-10-29 20:02</time>
 </li>
-    </ul>
-</article>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+    </ul></article></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 1 - 1
output/categories/sysadmin.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pleasant Programmer (sysadmin)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link href="http://pleasantprogrammer.com/categories/sysadmin.xml" type="application/rss+xml" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 07 Jun 2015 08:05:41 GMT</lastBuildDate><generator>http://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU</title><link>http://pleasantprogrammer.com/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;I've always thought that people were just too lazy to change their SSIDs when I see "PLDTMyDSLBizCafeJapan". It became apparent when we got our own PLDT line that it was because the bundled router/modem &lt;em&gt;does not&lt;/em&gt; allow you to remove the prefix.&lt;/p&gt;
+<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Pleasant Programmer (sysadmin)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link rel="self" type="application/rss+xml" href="http://pleasantprogrammer.com/categories/sysadmin.xml"></atom:link><language>en</language><lastBuildDate>Thu, 24 Dec 2015 07:49:10 GMT</lastBuildDate><generator>https://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU</title><link>http://pleasantprogrammer.com/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;I've always thought that people were just too lazy to change their SSIDs when I see "PLDTMyDSLBizCafeJapan". It became apparent when we got our own PLDT line that it was because the bundled router/modem &lt;em&gt;does not&lt;/em&gt; allow you to remove the prefix.&lt;/p&gt;
 &lt;p&gt;This is not the kind of thing you expect as a business customer. Even for home customers, I feel it's still a bit dishonest. I'd be fine if it was just the default SSID, but forcing people to have it as part of their SSID is like advertising that your company (I mean PLDT) is a douche.&lt;/p&gt;
 &lt;p&gt;Of course, we couldn't just leave the SSID prefix there, so we tried a number of things to get rid of it. There are articles for removing it from the &lt;a href="http://www.phandroidinternet.com/2013/06/how-to-remove-on-wifi-name-or-ssid-on.html"&gt;Prolink H5004N&lt;/a&gt; or the &lt;a href="http://www.symbianize.com/showthread.php?t=730091"&gt;ZyXEL P-660HN-T1A&lt;/a&gt; but not for the one we got which was the ZyXEL P-2612HNU-F1F.&lt;/p&gt;
 &lt;p&gt;We did still try the firebug/inspector tricks, but it seems that there is a server-side check that adds in the "PLDTMyDSLBiz". We tried a number of things, but the one that ultimately worked (and we had a good laugh about) was to backup the configuration, edit the dumped file and restore it.&lt;/p&gt;

+ 22 - 67
output/categories/systemd.html

@@ -1,47 +1,23 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Posts about systemd | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/categories/systemd.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-        <link rel="alternate" type="application/rss+xml" title="RSS for tag systemd" href="systemd.xml">
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Posts about systemd | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/categories/systemd.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><link rel="alternate" type="application/rss+xml" title="RSS for tag systemd" href="systemd.xml">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -51,53 +27,32 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="tagpage">
-    <header>
-        <h1>Posts about systemd</h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="tagpage"><header><h1>Posts about systemd</h1>
         <div class="metadata">
                 <p class="feedlink"><a href="systemd.xml" type="application/rss+xml">RSS feed</a></p>
         </div>
-    </header>
-    <ul class="postlist">
-        <li>
+    </header><ul class="postlist">
+<li>
 <a href="../posts/console-keymap-switching.html" class="listtitle">Console Keymap Switching</a> <time class="listdate" datetime="2013-10-29T20:02:06+08:00" title="2013-10-29 20:02">2013-10-29 20:02</time>
 </li>
-    </ul>
-</article>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+    </ul></article></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 1 - 1
output/categories/systemd.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pleasant Programmer (systemd)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link href="http://pleasantprogrammer.com/categories/systemd.xml" type="application/rss+xml" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 07 Jun 2015 08:05:41 GMT</lastBuildDate><generator>http://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Console Keymap Switching</title><link>http://pleasantprogrammer.com/posts/console-keymap-switching.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;At the office, we have some people who use DVORAK. Normally, this isn't a problem. To each his own after all. It does become a bit problematic though, when we're dealing with the servers around the office.&lt;/p&gt;
+<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Pleasant Programmer (systemd)</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link rel="self" type="application/rss+xml" href="http://pleasantprogrammer.com/categories/systemd.xml"></atom:link><language>en</language><lastBuildDate>Thu, 24 Dec 2015 07:49:10 GMT</lastBuildDate><generator>https://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Console Keymap Switching</title><link>http://pleasantprogrammer.com/posts/console-keymap-switching.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;At the office, we have some people who use DVORAK. Normally, this isn't a problem. To each his own after all. It does become a bit problematic though, when we're dealing with the servers around the office.&lt;/p&gt;
 &lt;p&gt;We normally leave the servers on QWERTY. After all, most people start off as QWERTY typists and migrate to something else. That said, it's apparently difficult to stay fluent in both. People tend to forget how to type in QWERTY once they learn DVORAK or something else. While it is true that they can just look a the keyboard while typing, my coworkers would prefer it to just be in DVORAK.&lt;/p&gt;
 &lt;p&gt;For the console, they'd typically do &lt;code&gt;sudo loadkeys dvorak&lt;/code&gt; after logging in. The problem with this is, after they logout, the keymapping is still on DVORAK. This has been quite annoying for a few times since I can't even login to change the keymap. What I wanted was something like you get in the graphical login screens where you can pick your keymap before logging in. Apparently, there isn't a readily available thing for the console.&lt;/p&gt;
 &lt;p&gt;I googled around for solutions and came across &lt;a href="http://superuser.com/questions/548234/how-can-i-easily-toggle-between-dvorak-and-qwerty-keyboard-layouts-from-a-linux"&gt;a nice idea&lt;/a&gt;. You could alias &lt;code&gt;asdf&lt;/code&gt; to load the DVORAK mapping and &lt;code&gt;aoeu&lt;/code&gt; (the equivalent to asdf in DVORAK) to load the QWERTY mapping. This actually makes sense since you don't really have to know where the letters are. The only problem is, you once again have to be logged in to change the key mappings.&lt;/p&gt;

+ 23 - 66
output/galleries/index.html

@@ -1,44 +1,23 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>galleries | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/galleries/index.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>galleries | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/galleries/index.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -48,51 +27,29 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-    
-<nav class="breadcrumbs">
-<ul class="breadcrumb">
-        <li><a href="#">galleries</a></li>
-</ul>
-</nav>
-
-    <h1>galleries</h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><nav class="breadcrumbs"><ul class="breadcrumb">
+<li><a href="#">galleries</a></li>
+</ul></nav><h1>galleries</h1>
     <ul>
-        <li><a href="transit/"><i class="icon-folder-open"></i> transit</a></li>
-    </ul>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+<li><a href="transit/"><i class="icon-folder-open"></i> transit</a></li>
+    </ul></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 1 - 1
output/galleries/rss.xml

@@ -1,2 +1,2 @@
 <?xml version="1.0" encoding="utf-8"?>
-<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>galleries</title><link>http://pleasantprogrammer.com/galleries/rss.xml</link><description></description><language>en</language><lastBuildDate>Sun, 07 Jun 2015 08:05:40 GMT</lastBuildDate><generator>http://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs></channel></rss>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>galleries</title><link>http://pleasantprogrammer.com/galleries/rss.xml</link><description></description><language>en</language><lastBuildDate>Thu, 24 Dec 2015 07:49:09 GMT</lastBuildDate><generator>https://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs></channel></rss>

+ 27 - 70
output/galleries/transit/index.html

@@ -1,44 +1,23 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>transit | Pleasant Programmer</title>
-
-    
-        <link href="../../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/galleries/transit/index.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>transit | Pleasant Programmer</title>
+<link href="../../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/galleries/transit/index.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../../assets/js/html5.js"></script><![endif]-->
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -48,34 +27,20 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../../archive.html">Archives</a></li>
                 <li><a href="../../categories/index.html">Tags</a></li>
                 <li><a href="../../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-    
-<nav class="breadcrumbs">
-<ul class="breadcrumb">
-        <li><a href="../">galleries</a></li>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><nav class="breadcrumbs"><ul class="breadcrumb">
+<li><a href="../">galleries</a></li>
         <li><a href="#">transit</a></li>
-</ul>
-</nav>
-
-    <h1>transit</h1>
+</ul></nav><h1>transit</h1>
     <ul class="thumbnails">
-            <li>
+<li>
 <a href="onebusaway1.png" class="thumbnail image-reference" title="Onebusaway1">
                 <img src="onebusaway1.thumbnail.png" alt="Onebusaway1"></a>
             </li>
@@ -84,14 +49,14 @@
                 <img src="gtfs_preview.thumbnail.jpg" alt="Gtfs preview"></a>
             </li>
 <li>
-<a href="onebusaway2.png" class="thumbnail image-reference" title="Onebusaway2">
-                <img src="onebusaway2.thumbnail.png" alt="Onebusaway2"></a>
-            </li>
-<li>
 <a href="otp1.png" class="thumbnail image-reference" title="Otp1">
                 <img src="otp1.thumbnail.png" alt="Otp1"></a>
             </li>
 <li>
+<a href="onebusaway2.png" class="thumbnail image-reference" title="Onebusaway2">
+                <img src="onebusaway2.thumbnail.png" alt="Onebusaway2"></a>
+            </li>
+<li>
 <a href="onebusaway3.png" class="thumbnail image-reference" title="Onebusaway3">
                 <img src="onebusaway3.thumbnail.png" alt="Onebusaway3"></a>
             </li>
@@ -111,24 +76,16 @@
 <a href="upkatipunan.jpg" class="thumbnail image-reference" title="Upkatipunan">
                 <img src="upkatipunan.thumbnail.jpg" alt="Upkatipunan"></a>
     </li>
-</ul>
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+</ul></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

File diff suppressed because it is too large
+ 0 - 0
output/galleries/transit/rss.xml


+ 33 - 100
output/index-1.html

@@ -1,45 +1,24 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Pleasant Programmer (old posts, page 1) | Pleasant Programmer</title>
-
-    
-        <link href="assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/index-1.html">
-
-
-
-        <link rel="prev" href="index-2.html" type="text/html">
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Pleasant Programmer (old posts, page 1) | Pleasant Programmer</title>
+<link href="assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/index-1.html">
+<link rel="prev" href="index-2.html" type="text/html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -49,31 +28,19 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="archive.html">Archives</a></li>
                 <li><a href="categories/index.html">Tags</a></li>
                 <li><a href="rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<div class="postindex">
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><div class="postindex">
+    <article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/gtfs-editor.html" class="u-url">GTFS Editor</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>Link: <a href="https://github.com/conveyal/gtfs-editor">https://github.com/conveyal/gtfs-editor</a></p>
 <p><strong>TL;DR</strong> they really meant under development</p>
@@ -260,14 +227,10 @@ Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
     <a href="posts/gtfs-editor.html#disqus_thread" data-disqus-identifier="cache/posts/gtfs-editor.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/open-trip-planner.html" class="u-url">Open Trip Planner</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>Link: <a href="http://www.opentripplanner.org">http://www.opentripplanner.org</a></p>
 <p><strong>TL;DR</strong> routes pretty well; data might cause weird issues</p>
@@ -297,14 +260,10 @@ Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
     <a href="posts/open-trip-planner.html#disqus_thread" data-disqus-identifier="cache/posts/open-trip-planner.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/one-bus-or-maybe-jeep-away.html" class="u-url">One Bus (or maybe Jeep) Away</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>Link: <a href="http://onebusaway.org/">http://onebusaway.org/</a></p>
 <p><strong>TL;DR</strong> no routing; useless in Philippines</p>
@@ -326,14 +285,10 @@ Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
     <a href="posts/one-bus-or-maybe-jeep-away.html#disqus_thread" data-disqus-identifier="cache/posts/one-bus-or-maybe-jeep-away.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/jeepney-and-bus-routes.html" class="u-url">Jeepney and Bus Routes</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>In the <a href="posts/philippine-transit-app-challenge.html">last post</a>, I talked about how we now have data about jeepney and bus routes in the Philippines. The data is actually in the <a href="https://developers.google.com/transit/gtfs/">GTFS format</a>, which is the format the Google Maps consumes transit data. Apparently, the government will be submitting the GTFS data later this year. Transit directions for Metro Manila in Google Maps would be wonderful. That said, it definitely raises the bar for the app challenge people.</p>
 <p>In the last post, I mentioned the quality of the data isn't quite good. Even before seeing the data, I was already a bit unsure of it. The key problem is how you model the routes. The GTFS format was inherently designed for more well developed and organized transit agencies which isn't exactly what we have in the Philippines now.</p>
@@ -350,14 +305,10 @@ Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
     <a href="posts/jeepney-and-bus-routes.html#disqus_thread" data-disqus-identifier="cache/posts/jeepney-and-bus-routes.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/philippine-transit-app-challenge.html" class="u-url">Philippine Transit App Challenge</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>Last week, the DOTC launched the <a href="http://philippine-transit.hackathome.com">Philippine Transit App Challenge</a>. It's a competition to build something great using the newly available 1) jeepney/bus/rail routes and 2) traffic incident data in Metro Manila and Cebu.</p>
 <p>I'm actually quite excited about this as it's not everyday our government does wonderful things. Many people have been waiting for this kind of data to be available. Before, the only way to figure out which jeeps to ride to get from A to B is by asking other people. The website of the LTFRB used to just have a list of jeepney routes, but nothing else, no maps or list of stops.</p>
@@ -375,38 +326,20 @@ Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
     </article>
 </div>
 
-        <nav class="postindexpager">
-        <ul class="pager clearfix">
-            <li class="previous">
+        <nav class="postindexpager"><ul class="pager clearfix">
+<li class="previous">
                 <a href="index-2.html" rel="prev">← Newer posts</a>
             </li>
-        </ul>
-        </nav>
-
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </ul></nav><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 44 - 114
output/index-2.html

@@ -1,46 +1,25 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Pleasant Programmer (old posts, page 2) | Pleasant Programmer</title>
-
-    
-        <link href="assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/index-2.html">
-
-
-
-        <link rel="prev" href="index.html" type="text/html">
-        <link rel="next" href="index-1.html" type="text/html">
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Pleasant Programmer (old posts, page 2) | Pleasant Programmer</title>
+<link href="assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/index-2.html">
+<link rel="prev" href="index-3.html" type="text/html">
+<link rel="next" href="index-1.html" type="text/html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -50,31 +29,19 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="archive.html">Archives</a></li>
                 <li><a href="categories/index.html">Tags</a></li>
                 <li><a href="rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<div class="postindex">
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><div class="postindex">
+    <article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/highways-in-otp.html" class="u-url">Highways in OTP</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>One of the weird things that happens with OTP is sometimes it gives absurdly roundabout routes. Here is OTP's suggested route for walking from UP to Ateneo:</p>
 <p><img alt="Roundabout route from UP to Ateneo" src="galleries/transit/otproundabout.png"></p>
@@ -96,14 +63,10 @@
     <a href="posts/highways-in-otp.html#disqus_thread" data-disqus-identifier="cache/posts/highways-in-otp.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/elevation-data-in-otp.html" class="u-url">Elevation Data in OTP</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p><img alt="OpenTripPlanner showing elevation data" src="galleries/transit/otpelevation.png"></p>
 <p>One thing I hadn't tested out last time was OTP's support for elevation data. It makes use of this by showing the elevation you have to traverse while walking along the suggested route. It can also take it into account when suggesting bike routes.</p>
@@ -123,14 +86,10 @@
     <a href="posts/elevation-data-in-otp.html#disqus_thread" data-disqus-identifier="cache/posts/elevation-data-in-otp.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/graphserver.html" class="u-url">GraphServer</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>Link: <a href="http://graphserver.github.io/graphserver/">http://graphserver.github.io/graphserver/</a></p>
 <p>One other routing webapp I saw was GraphServer. It's actually more of a general purpose Graph library which supports GTFS and OSM data than an actual dedicated routing software like OpenTripPlanner. It's also based off python and C instead of Java, so it feels a lot less heavy.</p>
@@ -146,14 +105,10 @@
     <a href="posts/graphserver.html#disqus_thread" data-disqus-identifier="cache/posts/graphserver.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/transit-wand.html" class="u-url">Transit Wand</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>Link: <a href="https://play.google.com/store/apps/details?id=com.conveyal.transitwand">http://transitwand.com</a></p>
 <p>Overall, this was the simplest of the <a href="http://philippine-transit.hackathome.com/use-this-code/">open-source transit tools</a> to actually get up and running. There's already a deployed instance of the server, and you can easily download the phone app via the <a href="https://play.google.com/store/apps/details?id=com.conveyal.transitwand">Play Store</a>. Even running the server by yourself didn't have any of the hiccups I had with GTFS Editor.</p>
@@ -173,14 +128,10 @@
     <a href="posts/transit-wand.html#disqus_thread" data-disqus-identifier="cache/posts/transit-wand.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/fare-data.html" class="u-url">Fare Data</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>As part of the data released by the DOTC, we also have the <a href="http://philippine-transit.hackathome.com/dataset-philippines-transit-information-service-gtfs/">fare matrix</a> for aircon buses, ordinary buses and jeeps. All as wonderful images. The data is also actually available from the <a href="http://ltfrb.gov.ph/main/farerates">LTFRB website</a>. Generally, the fare scheme is represented as "pay <em>X</em> pesos for the first <em>Y</em> kilometers, pay <em>Z</em> for every succeeding kilometer." Instead of a table, we can simply represent this as a formula instead,</p>
 <pre class="code literal-block">base_fare + (distance - initial) * per_km
@@ -189,36 +140,33 @@
 
 <p>The relevant values for the three services are:</p>
 <table>
-<thead>
-  <tr>
-    <td>type</td>
+<thead><tr>
+<td>type</td>
     <td>base_fare</td>
     <td>initial</td>
     <td>per_km</td>
-  </tr>
-</thead>
+  </tr></thead>
 <tbody>
-  <tr>
-    <td>bus aircon</td>
+<tr>
+<td>bus aircon</td>
     <td>12.00</td>
     <td>5 km</td>
     <td>2.20</td>
   </tr>
-  <tr>
-    <td>bus ordinary</td>
+<tr>
+<td>bus ordinary</td>
     <td>10.00</td>
     <td>5 km</td>
     <td>1.85</td>
   </tr>
-  <tr>
-    <td>jeep aircon</td>
+<tr>
+<td>jeep aircon</td>
     <td>8.00</td>
     <td>4 km</td>
     <td>1.40</td>
   </tr>
 </tbody>
 </table>
-
 <p>It isn't as simple as that though. Fares are also rounded to the nearest 25 centavos. So we'd need to round them off correctly. This can be achieved by doing,</p>
 <pre class="code literal-block">round(calculated_fare * 4.0)/4.0
 </pre>
@@ -248,41 +196,23 @@
     </article>
 </div>
 
-        <nav class="postindexpager">
-        <ul class="pager clearfix">
-            <li class="previous">
-                <a href="index.html" rel="prev">← Newer posts</a>
+        <nav class="postindexpager"><ul class="pager clearfix">
+<li class="previous">
+                <a href="index-3.html" rel="prev">← Newer posts</a>
             </li>
             <li class="next">
                 <a href="index-1.html" rel="next">Older posts →</a>
             </li>
-        </ul>
-        </nav>
-
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </ul></nav><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 105 - 0
output/index-3.html

@@ -0,0 +1,105 @@
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Pleasant Programmer (old posts, page 3) | Pleasant Programmer</title>
+<link href="assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/index-3.html">
+<link rel="prev" href="index.html" type="text/html">
+<link rel="next" href="index-2.html" type="text/html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
+</head>
+<body>
+<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
+    
+    <header id="header" role="banner"><div class="thomas">
+            <img src="assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
+        
+    <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
+
+        <span id="blog-title">Pleasant Programmer</span>
+    </a></h1>
+
+        
+
+        
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+                <li><a href="archive.html">Archives</a></li>
+                <li><a href="categories/index.html">Tags</a></li>
+                <li><a href="rss.xml">RSS</a></li>
+    
+    
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><div class="postindex">
+    <article class="h-entry post-text"><header><h1 class="p-name entry-title">
+            <a href="posts/jeep-and-bus-schedules.html" class="u-url">Jeep and Bus Schedules</a>
+        </h1>
+    </header><div class="e-content entry-content">
+    <div>
+<p>Wouldn't it be wonderful if there were no buses or jeepneys in the Philippines over the weekends? It would truly be a cyclist's paradise. Imagine biking along EDSA, normally that would be a death sentence, but according to the GTFS data, you shouldn't worry. I can assure you, it's still a death sentence.</p>
+<p>The GTFS spec defines 2 ways of statically specifying trip schedules. You can define the exact times that a service will arrive at a stop. You can also specify between what times the service is active and how often a new bus or jeep leaves the first stop. You also define which days those rules apply. You could say every MWF, the bus operates from 9:00AM to 9:00PM and every TTH, the bus services from 3:00AM to 11:00PM.</p>
+<p>This should be sufficient in theory, but real world conditions like traffic or the weather could throw the schedules off. To solve this, there's another spec, GTFS-realtime. This allows transit agencies to push temporary schedule updates and service announcements.</p>
+<p>Like much everything else about the Philippine transit system, there aren't really any "schedules" to speak of. It's generally whenever the buses or jeeps feel like it. So we have no static schedules. We don't have a central agency or the tracking technology to make it feasible to push updates via GTFS-RT.</p>
+<p>Ideally, we shouldn't bother inputting the schedule information into GTFS. Only the route data is really important for jeeps and buses. However, the schedule information is required in the GTFS, and routing apps wouldn't work without it. So we have to add a reasonable trip schedule for jeeps and buses.</p>
+<p>The current GTFS data does define these trip schedules. We assume that jeeps and buses operate between 6:00AM and 11:00PM and a new jeep passes by every 10 minutes. Also, jeeps and buses are defined to only operate on weekdays.</p>
+<p>While there might be jeeps who change routes or don't operate on weekends, I'm pretty sure that jeeps and buses run on weekends. We'll have to fix it ourselves temporarily since there's no central GTFS feed yet.</p>
+<pre class="code literal-block"><span class="c"># 724594 seems to be the service id used by jeeps and buses</span>
+sed -i .bak <span class="s1">'/^724594/ s/0,0/1,1/'</span> calendar.txt
+</pre>
+
+
+<p>Another thing we could do is to adjust the time between buses, although the improvement is arguable. With the current 10 minutes between jeeps, it might provide some routes a significant advantage just because the timing is right. So you might get differing route suggestions depending on what time you planned the route. This makes sense when you're sure what the times are, so you can minimize the wait, but with jeeps, you never really know how long the wait will actually be.</p>
+<p>If we set the frequency to one minute, it <em>might</em> give better routes by eliminating the timing issue. Or not, it's kind of hard to tell.</p>
+<pre class="code literal-block"><span class="c"># jeep and bus route ids tend to start with 72</span>
+sed -i .bak <span class="s1">'/^72/ s/,600/,60/'</span> frequencies.txt
+</pre>
+
+
+<p>Overall, the problems we're having is a symptom of the mismatch between our transit system and the GTFS. It would be great if our transit system gets better and we don't need to do hackish things for it to fit the GTFS, but that's still a dream. For now, all we can really do is fit a triangle into a square hole.</p>
+</div>
+    </div>
+    <small class="dateline">Posted: <time class="published dt-published" datetime="2013-07-28T16:26:31+08:00" title="2013-07-28 16:26">2013-07-28 16:26</time></small>
+        | <small class="commentline">
+        
+    <a href="posts/jeep-and-bus-schedules.html#disqus_thread" data-disqus-identifier="cache/posts/jeep-and-bus-schedules.html">Comments</a>
+
+</small>
+    </article>
+</div>
+
+        <nav class="postindexpager"><ul class="pager clearfix">
+<li class="previous">
+                <a href="index.html" rel="prev">← Newer posts</a>
+            </li>
+            <li class="next">
+                <a href="index-2.html" rel="next">Older posts →</a>
+            </li>
+        </ul></nav><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+            
+        </footer>
+</div>
+    
+    
+    
+    
+
+    <script src="assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
+        var easter_egg = new Konami();
+        easter_egg.code = function() {
+            $(".thomas").toggleClass("whoa");
+            $("body").scrollTop(0);
+        }
+        easter_egg.load();
+
+        // love you, thomas!
+        // yours, @_phi + @meggykawsek
+    </script>
+</body>
+</html>

+ 119 - 131
output/index.html

@@ -1,45 +1,24 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Pleasant Programmer | Pleasant Programmer</title>
-
-    
-        <link href="assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/index.html">
-
-
-
-        <link rel="next" href="index-2.html" type="text/html">
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Pleasant Programmer | Pleasant Programmer</title>
+<link href="assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/index.html">
+<link rel="next" href="index-3.html" type="text/html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -49,31 +28,108 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="archive.html">Archives</a></li>
                 <li><a href="categories/index.html">Tags</a></li>
                 <li><a href="rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><div class="postindex">
+    <article class="h-entry post-text"><header><h1 class="p-name entry-title">
+            <a href="posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html" class="u-url">TiddlyWiki in the Sky (or TiddlyWeb for TW5)</a>
+        </h1>
+    </header><div class="e-content entry-content">
+    <div>
+<p>I've always liked <a href="http://tiddlywiki.com">TiddlyWiki</a>. Back when it first came out, it was really amazing. A wiki all in one file, that worked in the browser. It didn't need a backend, it would just save itself as an all new HTML file with all your posts inside. I've used it a lot over the years, as a personal wiki/journal and a class notebook. I even had a blog with it at one point using one of the server-side forks.</p>
+<p>Now, there's TiddlyWiki5 which is a rewrite of the original TiddlyWiki that looks a whole lot snazzier, and I assume has better architecture overall. It also has experimental support for all the server-side platforms (particularly TiddlyWeb) that have cropped up.</p>
+<p>If you're just looking for a simple server setup for TiddlyWiki5, it has native support for that on its own. There's plenty of documentation on the site. But if you're looking for more advanced features (like storing your posts in git or a database), then you'll need to use it with TiddlyWeb. The problem is that most of the documentation for TiddlyWeb still refers to the old TiddlyWiki.</p>
+<p>To support TiddlyWiki5, we'll need a version of the wiki which has the TiddlyWeb plugin already installed and configured. After that, some tweaking is necessary to get TiddlyWeb to provide what the wiki requires.</p>
+<h3>Setting Up TiddlyWiki</h3>
+<p>TiddlyWiki5 provides a command line tool via <code>npm</code> that allows building custom versions of the wiki. In fact, it comes with templates, called "editions", that we can use for our setup. Assuming you already have it installed, create the wiki using</p>
+<pre class="code literal-block">tiddlywiki mywiki --init tw5tank          # create wiki from template
+</pre>
 
-    </header>
-    
 
-    <div id="container">
-         <main id="content" role="main">
-            
-<div class="postindex">
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+<p>This creates a wiki intended for use with <a href="https://tank.peermore.com/">Tank</a>, which is built on top of TiddlyWeb. From here, you should look in <code>mywiki/tiddlers/system</code> which contain the entries for <code>SiteTitle</code>, <code>SiteSubtitle</code>, <code>DefaultTiddlers</code>, and <code>tiddlyweb-host</code>. The first 3 should be configured however you want. These are necessary because they're needed before the wiki can load them from the server. <code>tiddlyweb-host</code> contains the location of the TiddlyWeb server, this should be <code>http://localhost:8080/</code> if you're just testing locally. With everything configured, you can build the new wiki by running</p>
+<pre class="code literal-block">tiddlywiki mywiki --build
+</pre>
+
+
+<p>This will output the wiki to <code>mywiki/output/tw5tank.html</code>. You can now serve it using your favorite local webserver, like <code>python -m http.server</code>.</p>
+<h3>Setting Up TiddlyWeb</h3>
+<p>The TiddlyWeb tutorial recommends using <code>tiddlywebwiki</code> which has all the plugins setup for a nice wiki instance for the old TiddlyWiki. It has a lot of features that aren't really needed, so we won't go with that. So first, we'll need to install TiddlyWeb and any plugins we might want to use.</p>
+<pre class="code literal-block">pip install tiddlyweb tiddlywebplugins.status tiddlywebplugins.cherrypy tiddlywebplugins.cors
+</pre>
+
+
+<p>Next, we'll need the tiddlyweb configuration in <code>tiddlywebconfig.py</code></p>
+<pre class="code literal-block"><span class="c"># A basic configuration.</span>
+<span class="c"># `pydoc tiddlyweb.config` for details on configuration items.</span>
+
+<span class="kn">import</span> <span class="nn">tiddlywebplugins.status</span>
+
+<span class="n">config</span> <span class="o">=</span> <span class="p">{</span>
+    <span class="s">'system_plugins'</span><span class="p">:</span> <span class="p">[</span><span class="s">'tiddlywebplugins.status'</span><span class="p">,</span> <span class="s">'tiddlywebplugins.cors'</span><span class="p">],</span>
+    <span class="s">'secret'</span><span class="p">:</span> <span class="s">'36c98d6d14618c79f0ed2d49cd1b9e272d8d4bd0'</span><span class="p">,</span>
+    <span class="s">'wsgi_server'</span><span class="p">:</span> <span class="s">'tiddlywebplugins.cherrypy'</span><span class="p">,</span>
+    <span class="s">'cors.enable_non_simple'</span><span class="p">:</span> <span class="bp">True</span>
+<span class="p">}</span>
+
+<span class="n">original_gather_data</span> <span class="o">=</span> <span class="n">tiddlywebplugins</span><span class="o">.</span><span class="n">status</span><span class="o">.</span><span class="n">_gather_data</span>
+
+<span class="k">def</span> <span class="nf">_status_gather_data</span><span class="p">(</span><span class="n">environ</span><span class="p">):</span>
+    <span class="n">data</span> <span class="o">=</span> <span class="n">original_gather_data</span><span class="p">(</span><span class="n">environ</span><span class="p">)</span>
+    <span class="n">data</span><span class="p">[</span><span class="s">'space'</span><span class="p">]</span> <span class="o">=</span> <span class="p">{</span><span class="s">'recipe'</span><span class="p">:</span> <span class="s">'default'</span><span class="p">}</span>
+    <span class="k">return</span> <span class="n">data</span>
+
+<span class="n">tiddlywebplugins</span><span class="o">.</span><span class="n">status</span><span class="o">.</span><span class="n">_gather_data</span> <span class="o">=</span> <span class="n">_status_gather_data</span>
+</pre>
+
+
+<p>The tweaks involved are:</p>
+<ul>
+<li>using the status plugin which the wiki requires</li>
+<li>monkeypatching the status plugin for the wiki to use the correct "recipe"</li>
+<li>using cherrypy server instead of the buggy default one</li>
+<li>using cors since we're not hosting the wiki itself on the same server</li>
+</ul>
+<p>With that, we just need to create the store that will hold our data</p>
+<pre class="code literal-block">twanager recipe default &lt;&lt;EOF
+desc: standard TiddlyWebWiki environment
+policy: {"read": [], "create": [], "manage": ["R:ADMIN"], "accept": [], "write": ["R:ADMIN"], "owner": "administrator", "delete": ["R:ADMIN"]}
+
+/bags/default/tiddlers
+EOF
+
+twanager bag default &lt;&lt;EOF
+{"policy": {"read": [], "create": [], "manage": ["R:ADMIN"], "accept": [], "write": [], "owner": "administrator", "delete": []}}
+EOF
+</pre>
+
+
+<p>Finally, we can start the TiddlyWeb server</p>
+<pre class="code literal-block">twanager server
+</pre>
+
+
+<h3>Putting it all together</h3>
+<p>Once you have the TiddlyWeb server running, you can just go to wherever you're hosting the wiki html and it should work. You can try creating some posts, and the check mark on the sidebar should be red for a while and then turn black. Once that's done it's saved. You can refresh your browser and your posts should still be there.</p>
+<p>At this point, you can start customizing your TiddlyWeb instance, by changing your store to something like a database, or adding authorization. You can also tweak the server setup so you won't need CORS anymore.</p>
+<p>TiddlyWiki5 is still relatively new. I hope that eventually, support for server-side and the plugin ecosystem grows to be as great as the old TiddlyWiki.</p>
+</div>
+    </div>
+    <small class="dateline">Posted: <time class="published dt-published" datetime="2015-12-24T14:48:20+08:00" title="2015-12-24 14:48">2015-12-24 14:48</time></small>
+        | <small class="commentline">
+        
+    <a href="posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html#disqus_thread" data-disqus-identifier="cache/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html">Comments</a>
+
+</small>
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/is-my-terminal-window-active.html" class="u-url">Is My Terminal Window Active?</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>I've been working in OSX for almost 3 years now, but I recently switched back to Linux because of all the problems people encountered with Yosemite. There are some things I missed from OSX though. One of which is <a href="https://github.com/marzocchi/zsh-notify">zsh-notify</a>. It's a zsh plugin that alerts you if your long-running task is complete, and whether it failed or not.</p>
 <p>It's pretty convenient when you're compiling something and then go on to browse reddit while waiting. Usually, I spend too much time just reading and forget about the compilation entirely. With the plugin, I get the notification and maybe go back to work.</p>
@@ -98,14 +154,10 @@
     <a href="posts/is-my-terminal-window-active.html#disqus_thread" data-disqus-identifier="cache/posts/is-my-terminal-window-active.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html" class="u-url">Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>I've always thought that people were just too lazy to change their SSIDs when I see "PLDTMyDSLBizCafeJapan". It became apparent when we got our own PLDT line that it was because the bundled router/modem <em>does not</em> allow you to remove the prefix.</p>
 <p>This is not the kind of thing you expect as a business customer. Even for home customers, I feel it's still a bit dishonest. I'd be fine if it was just the default SSID, but forcing people to have it as part of their SSID is like advertising that your company (I mean PLDT) is a douche.</p>
@@ -121,14 +173,10 @@
     <a href="posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html#disqus_thread" data-disqus-identifier="cache/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/console-keymap-switching.html" class="u-url">Console Keymap Switching</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>At the office, we have some people who use DVORAK. Normally, this isn't a problem. To each his own after all. It does become a bit problematic though, when we're dealing with the servers around the office.</p>
 <p>We normally leave the servers on QWERTY. After all, most people start off as QWERTY typists and migrate to something else. That said, it's apparently difficult to stay fluent in both. People tend to forget how to type in QWERTY once they learn DVORAK or something else. While it is true that they can just look a the keyboard while typing, my coworkers would prefer it to just be in DVORAK.</p>
@@ -180,7 +228,6 @@
 </pre>
 </td>
 </tr></table>
-
 <p>After putting it all together, it works! We can switch keymaps on the fly by simply pressing Alt+Up.</p>
 </div>
     </div>
@@ -190,14 +237,10 @@
     <a href="posts/console-keymap-switching.html#disqus_thread" data-disqus-identifier="cache/posts/console-keymap-switching.html">Comments</a>
 
 </small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
+    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title">
             <a href="posts/geocoding-services.html" class="u-url">Geocoding Services</a>
         </h1>
-    </header>
-    <div class="e-content entry-content">
+    </header><div class="e-content entry-content">
     <div>
 <p>A key component for any routing service is being able to do geocoding. Most people who are looking for routes most probably don't know exactly where their start and end points are on the map. Even then, manually looking for a location on a map is a time-consuming task.</p>
 <p>The gold standard for doing geocoding right now is Google Maps. It's hard to find a better location search experience. If they actually provided routing for jeeps here in the Philippines, I imagine there wouldn't be <em>that</em> much you could do for the competition.</p>
@@ -213,79 +256,24 @@
         
     <a href="posts/geocoding-services.html#disqus_thread" data-disqus-identifier="cache/posts/geocoding-services.html">Comments</a>
 
-</small>
-    </article>
-    <article class="h-entry post-text">
-    <header>
-        <h1 class="p-name entry-title">
-            <a href="posts/jeep-and-bus-schedules.html" class="u-url">Jeep and Bus Schedules</a>
-        </h1>
-    </header>
-    <div class="e-content entry-content">
-    <div>
-<p>Wouldn't it be wonderful if there were no buses or jeepneys in the Philippines over the weekends? It would truly be a cyclist's paradise. Imagine biking along EDSA, normally that would be a death sentence, but according to the GTFS data, you shouldn't worry. I can assure you, it's still a death sentence.</p>
-<p>The GTFS spec defines 2 ways of statically specifying trip schedules. You can define the exact times that a service will arrive at a stop. You can also specify between what times the service is active and how often a new bus or jeep leaves the first stop. You also define which days those rules apply. You could say every MWF, the bus operates from 9:00AM to 9:00PM and every TTH, the bus services from 3:00AM to 11:00PM.</p>
-<p>This should be sufficient in theory, but real world conditions like traffic or the weather could throw the schedules off. To solve this, there's another spec, GTFS-realtime. This allows transit agencies to push temporary schedule updates and service announcements.</p>
-<p>Like much everything else about the Philippine transit system, there aren't really any "schedules" to speak of. It's generally whenever the buses or jeeps feel like it. So we have no static schedules. We don't have a central agency or the tracking technology to make it feasible to push updates via GTFS-RT.</p>
-<p>Ideally, we shouldn't bother inputting the schedule information into GTFS. Only the route data is really important for jeeps and buses. However, the schedule information is required in the GTFS, and routing apps wouldn't work without it. So we have to add a reasonable trip schedule for jeeps and buses.</p>
-<p>The current GTFS data does define these trip schedules. We assume that jeeps and buses operate between 6:00AM and 11:00PM and a new jeep passes by every 10 minutes. Also, jeeps and buses are defined to only operate on weekdays.</p>
-<p>While there might be jeeps who change routes or don't operate on weekends, I'm pretty sure that jeeps and buses run on weekends. We'll have to fix it ourselves temporarily since there's no central GTFS feed yet.</p>
-<pre class="code literal-block"><span class="c"># 724594 seems to be the service id used by jeeps and buses</span>
-sed -i .bak <span class="s1">'/^724594/ s/0,0/1,1/'</span> calendar.txt
-</pre>
-
-
-<p>Another thing we could do is to adjust the time between buses, although the improvement is arguable. With the current 10 minutes between jeeps, it might provide some routes a significant advantage just because the timing is right. So you might get differing route suggestions depending on what time you planned the route. This makes sense when you're sure what the times are, so you can minimize the wait, but with jeeps, you never really know how long the wait will actually be.</p>
-<p>If we set the frequency to one minute, it <em>might</em> give better routes by eliminating the timing issue. Or not, it's kind of hard to tell.</p>
-<pre class="code literal-block"><span class="c"># jeep and bus route ids tend to start with 72</span>
-sed -i .bak <span class="s1">'/^72/ s/,600/,60/'</span> frequencies.txt
-</pre>
-
-
-<p>Overall, the problems we're having is a symptom of the mismatch between our transit system and the GTFS. It would be great if our transit system gets better and we don't need to do hackish things for it to fit the GTFS, but that's still a dream. For now, all we can really do is fit a triangle into a square hole.</p>
-</div>
-    </div>
-    <small class="dateline">Posted: <time class="published dt-published" datetime="2013-07-28T16:26:31+08:00" title="2013-07-28 16:26">2013-07-28 16:26</time></small>
-        | <small class="commentline">
-        
-    <a href="posts/jeep-and-bus-schedules.html#disqus_thread" data-disqus-identifier="cache/posts/jeep-and-bus-schedules.html">Comments</a>
-
 </small>
     </article>
 </div>
 
-        <nav class="postindexpager">
-        <ul class="pager clearfix">
-            <li class="next">
-                <a href="index-2.html" rel="next">Older posts →</a>
+        <nav class="postindexpager"><ul class="pager clearfix">
+<li class="next">
+                <a href="index-3.html" rel="next">Older posts →</a>
             </li>
-        </ul>
-        </nav>
-
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </ul></nav><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 35 - 108
output/posts/console-keymap-switching.html

@@ -1,63 +1,33 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Console Keymap Switching | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/console-keymap-switching.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="geocoding-services.html" title="Geocoding Services" type="text/html">
-        <link rel="next" href="removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html" title="Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Console Keymap Switching">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/console-keymap-switching.html">
-    <meta property="og:description" content="At the office, we have some people who use DVORAK. Normally, this isn't a problem. To each his own after all. It does become a bit problematic though, when we're dealing with the servers around the of">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-10-29T20:02:06+08:00">
-           <meta property="article:tag" content="sysadmin">
-           <meta property="article:tag" content="systemd">
-
-    
-
-    
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Console Keymap Switching | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/console-keymap-switching.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="geocoding-services.html" title="Geocoding Services" type="text/html">
+<link rel="next" href="removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html" title="Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Console Keymap Switching">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/console-keymap-switching.html">
+<meta property="og:description" content="At the office, we have some people who use DVORAK. Normally, this isn't a problem. To each his own after all. It does become a bit problematic though, when we're dealing with the servers around the of">
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-10-29T20:02:06+08:00">
+<meta property="article:tag" content="sysadmin">
+<meta property="article:tag" content="systemd">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -67,28 +37,15 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Console Keymap Switching</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Console Keymap Switching</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-10-29T20:02:06+08:00" itemprop="datePublished" title="2013-10-29 20:02">2013-10-29 20:02</time></a></span>
@@ -101,9 +58,7 @@
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>At the office, we have some people who use DVORAK. Normally, this isn't a problem. To each his own after all. It does become a bit problematic though, when we're dealing with the servers around the office.</p>
 <p>We normally leave the servers on QWERTY. After all, most people start off as QWERTY typists and migrate to something else. That said, it's apparently difficult to stay fluent in both. People tend to forget how to type in QWERTY once they learn DVORAK or something else. While it is true that they can just look a the keyboard while typing, my coworkers would prefer it to just be in DVORAK.</p>
@@ -155,28 +110,17 @@
 </pre>
 </td>
 </tr></table>
-
 <p>After putting it all together, it works! We can switch keymaps on the fly by simply pressing Alt+Up.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="geocoding-services.html" rel="prev" title="Geocoding Services">← Previous post</a>
             </li>
             <li class="next">
                 <a href="removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html" rel="next" title="Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/console-keymap-switching.html",
@@ -190,38 +134,21 @@
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 35 - 107
output/posts/elevation-data-in-otp.html

@@ -1,63 +1,33 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Elevation Data in OTP | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/elevation-data-in-otp.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="graphserver.html" title="GraphServer" type="text/html">
-        <link rel="next" href="highways-in-otp.html" title="Highways in OTP" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Elevation Data in OTP">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/elevation-data-in-otp.html">
-    <meta property="og:description" content="One thing I hadn't tested out last time was OTP's support for elevation data. It makes use of this by showing the elevation you have to traverse while walking along the suggested route. It can also ta">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-23T18:23:00+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Elevation Data in OTP | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/elevation-data-in-otp.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="graphserver.html" title="GraphServer" type="text/html">
+<link rel="next" href="highways-in-otp.html" title="Highways in OTP" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Elevation Data in OTP">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/elevation-data-in-otp.html">
+<meta property="og:description" content="One thing I hadn't tested out last time was OTP's support for elevation data. It makes use of this by showing the elevation you have to traverse while walking along the suggested route. It can also ta">
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-23T18:23:00+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -67,28 +37,15 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Elevation Data in OTP</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Elevation Data in OTP</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-23T18:23:00+08:00" itemprop="datePublished" title="2013-07-23 18:23">2013-07-23 18:23</time></a></span>
@@ -101,9 +58,7 @@
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p><img alt="OpenTripPlanner showing elevation data" src="../galleries/transit/otpelevation.png"></p>
 <p>One thing I hadn't tested out last time was OTP's support for elevation data. It makes use of this by showing the elevation you have to traverse while walking along the suggested route. It can also take it into account when suggesting bike routes.</p>
@@ -117,24 +72,14 @@
 <p>I've actually hosted a <a href="http://maps.pleasantprogrammer.com">working example</a>. It's pretty much at the limits of the RAM so it might be slow and unreliable, but you can test it out just for fun. Please don't abuse it though.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="graphserver.html" rel="prev" title="GraphServer">← Previous post</a>
             </li>
             <li class="next">
                 <a href="highways-in-otp.html" rel="next" title="Highways in OTP">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/elevation-data-in-otp.html",
@@ -148,38 +93,21 @@
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 44 - 119
output/posts/fare-data.html

@@ -1,63 +1,33 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Fare Data | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/fare-data.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="gtfs-editor.html" title="GTFS Editor" type="text/html">
-        <link rel="next" href="transit-wand.html" title="Transit Wand" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Fare Data">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/fare-data.html">
-    <meta property="og:description" content="As part of the data released by the DOTC, we also have the fare matrix for aircon buses, ordinary buses and jeeps. All as wonderful images. The data is also actually available from the LTFRB website. ">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-13T21:15:09+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Fare Data | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/fare-data.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="gtfs-editor.html" title="GTFS Editor" type="text/html">
+<link rel="next" href="transit-wand.html" title="Transit Wand" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Fare Data">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/fare-data.html">
+<meta property="og:description" content="As part of the data released by the DOTC, we also have the fare matrix for aircon buses, ordinary buses and jeeps. All as wonderful images. The data is also actually available from the LTFRB website. ">
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-13T21:15:09+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -67,28 +37,15 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Fare Data</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Fare Data</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-13T21:15:09+08:00" itemprop="datePublished" title="2013-07-13 21:15">2013-07-13 21:15</time></a></span>
@@ -101,9 +58,7 @@
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>As part of the data released by the DOTC, we also have the <a href="http://philippine-transit.hackathome.com/dataset-philippines-transit-information-service-gtfs/">fare matrix</a> for aircon buses, ordinary buses and jeeps. All as wonderful images. The data is also actually available from the <a href="http://ltfrb.gov.ph/main/farerates">LTFRB website</a>. Generally, the fare scheme is represented as "pay <em>X</em> pesos for the first <em>Y</em> kilometers, pay <em>Z</em> for every succeeding kilometer." Instead of a table, we can simply represent this as a formula instead,</p>
 <pre class="code literal-block">base_fare + (distance - initial) * per_km
@@ -112,36 +67,33 @@
 
 <p>The relevant values for the three services are:</p>
 <table>
-<thead>
-  <tr>
-    <td>type</td>
+<thead><tr>
+<td>type</td>
     <td>base_fare</td>
     <td>initial</td>
     <td>per_km</td>
-  </tr>
-</thead>
+  </tr></thead>
 <tbody>
-  <tr>
-    <td>bus aircon</td>
+<tr>
+<td>bus aircon</td>
     <td>12.00</td>
     <td>5 km</td>
     <td>2.20</td>
   </tr>
-  <tr>
-    <td>bus ordinary</td>
+<tr>
+<td>bus ordinary</td>
     <td>10.00</td>
     <td>5 km</td>
     <td>1.85</td>
   </tr>
-  <tr>
-    <td>jeep aircon</td>
+<tr>
+<td>jeep aircon</td>
     <td>8.00</td>
     <td>4 km</td>
     <td>1.40</td>
   </tr>
 </tbody>
 </table>
-
 <p>It isn't as simple as that though. Fares are also rounded to the nearest 25 centavos. So we'd need to round them off correctly. This can be achieved by doing,</p>
 <pre class="code literal-block">round(calculated_fare * 4.0)/4.0
 </pre>
@@ -162,24 +114,14 @@
 <p>Side note: I'd also actually really like to hear about the DOTC developers' experience with the project. It would be nice if they had a devblog.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="gtfs-editor.html" rel="prev" title="GTFS Editor">← Previous post</a>
             </li>
             <li class="next">
                 <a href="transit-wand.html" rel="next" title="Transit Wand">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/fare-data.html",
@@ -193,38 +135,21 @@
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 35 - 107
output/posts/geocoding-services.html

@@ -1,63 +1,33 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Geocoding Services | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/geocoding-services.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="jeep-and-bus-schedules.html" title="Jeep and Bus Schedules" type="text/html">
-        <link rel="next" href="console-keymap-switching.html" title="Console Keymap Switching" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Geocoding Services">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/geocoding-services.html">
-    <meta property="og:description" content="A key component for any routing service is being able to do geocoding. Most people who are looking for routes most probably don't know exactly where their start and end points are on the map. Even the">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-09-25T12:26:59+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Geocoding Services | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/geocoding-services.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="jeep-and-bus-schedules.html" title="Jeep and Bus Schedules" type="text/html">
+<link rel="next" href="console-keymap-switching.html" title="Console Keymap Switching" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Geocoding Services">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/geocoding-services.html">
+<meta property="og:description" content="A key component for any routing service is being able to do geocoding. Most people who are looking for routes most probably don't know exactly where their start and end points are on the map. Even the">
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-09-25T12:26:59+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -67,28 +37,15 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Geocoding Services</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Geocoding Services</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-09-25T12:26:59+08:00" itemprop="datePublished" title="2013-09-25 12:26">2013-09-25 12:26</time></a></span>
@@ -101,9 +58,7 @@
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>A key component for any routing service is being able to do geocoding. Most people who are looking for routes most probably don't know exactly where their start and end points are on the map. Even then, manually looking for a location on a map is a time-consuming task.</p>
 <p>The gold standard for doing geocoding right now is Google Maps. It's hard to find a better location search experience. If they actually provided routing for jeeps here in the Philippines, I imagine there wouldn't be <em>that</em> much you could do for the competition.</p>
@@ -114,24 +69,14 @@
 <p>For now, since the competition's deadline is just a few days away, I'll be using Google Maps.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="jeep-and-bus-schedules.html" rel="prev" title="Jeep and Bus Schedules">← Previous post</a>
             </li>
             <li class="next">
                 <a href="console-keymap-switching.html" rel="next" title="Console Keymap Switching">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/geocoding-services.html",
@@ -145,38 +90,21 @@
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 35 - 107
output/posts/graphserver.html

@@ -1,64 +1,34 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>GraphServer | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/graphserver.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="transit-wand.html" title="Transit Wand" type="text/html">
-        <link rel="next" href="elevation-data-in-otp.html" title="Elevation Data in OTP" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="GraphServer">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/graphserver.html">
-    <meta property="og:description" content="Link: http://graphserver.github.io/graphserver/
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>GraphServer | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/graphserver.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="transit-wand.html" title="Transit Wand" type="text/html">
+<link rel="next" href="elevation-data-in-otp.html" title="Elevation Data in OTP" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="GraphServer">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/graphserver.html">
+<meta property="og:description" content="Link: http://graphserver.github.io/graphserver/
 One other routing webapp I saw was GraphServer. It's actually more of a general purpose Graph library which supports GTFS and OSM data than an actual de">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-23T14:48:29+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-23T14:48:29+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -68,28 +38,15 @@ One other routing webapp I saw was GraphServer. It's actually more of a general
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">GraphServer</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">GraphServer</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-23T14:48:29+08:00" itemprop="datePublished" title="2013-07-23 14:48">2013-07-23 14:48</time></a></span>
@@ -102,9 +59,7 @@ One other routing webapp I saw was GraphServer. It's actually more of a general
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>Link: <a href="http://graphserver.github.io/graphserver/">http://graphserver.github.io/graphserver/</a></p>
 <p>One other routing webapp I saw was GraphServer. It's actually more of a general purpose Graph library which supports GTFS and OSM data than an actual dedicated routing software like OpenTripPlanner. It's also based off python and C instead of Java, so it feels a lot less heavy.</p>
@@ -114,24 +69,14 @@ One other routing webapp I saw was GraphServer. It's actually more of a general
 <p>I think graphserver could be useful, but it seems more involved than say OpenTripPlanner. There do seem to be people who use graphserver for their routing apps, but for the bounds of the contest, or just as a side project, it might require too much effort.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="transit-wand.html" rel="prev" title="Transit Wand">← Previous post</a>
             </li>
             <li class="next">
                 <a href="elevation-data-in-otp.html" rel="next" title="Elevation Data in OTP">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/graphserver.html",
@@ -145,38 +90,21 @@ One other routing webapp I saw was GraphServer. It's actually more of a general
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 36 - 108
output/posts/gtfs-editor.html

@@ -1,66 +1,36 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>GTFS Editor | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/gtfs-editor.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="open-trip-planner.html" title="Open Trip Planner" type="text/html">
-        <link rel="next" href="fare-data.html" title="Fare Data" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="GTFS Editor">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/gtfs-editor.html">
-    <meta property="og:description" content="Link: https://github.com/conveyal/gtfs-editor
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>GTFS Editor | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/gtfs-editor.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="open-trip-planner.html" title="Open Trip Planner" type="text/html">
+<link rel="next" href="fare-data.html" title="Fare Data" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="GTFS Editor">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/gtfs-editor.html">
+<meta property="og:description" content="Link: https://github.com/conveyal/gtfs-editor
 TL;DR they really meant under development
 When I first saw the source of GTFS Editor, I was ecstatic. They used Play framework!!! Not only that, they're t">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-10T11:30:01+08:00">
-           <meta property="article:tag" content="lets-debug">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-10T11:30:01+08:00">
+<meta property="article:tag" content="lets-debug">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -70,28 +40,15 @@ When I first saw the source of GTFS Editor, I was ecstatic. They used Play frame
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">GTFS Editor</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">GTFS Editor</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-10T11:30:01+08:00" itemprop="datePublished" title="2013-07-10 11:30">2013-07-10 11:30</time></a></span>
@@ -105,9 +62,7 @@ When I first saw the source of GTFS Editor, I was ecstatic. They used Play frame
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>Link: <a href="https://github.com/conveyal/gtfs-editor">https://github.com/conveyal/gtfs-editor</a></p>
 <p><strong>TL;DR</strong> they really meant under development</p>
@@ -288,24 +243,14 @@ Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
 <p>Even after getting it to run, it's still not quite usable. Not in the UX sense, but you really can't do much with it. There is no way to import the GTFS data into the webapp. There is something like import from TransitWand but even that is unclear to me. And even if we do get that running as well, we still don't have any data we can play around with. We would need database dumps from the already running tools for these to be of any use right now.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="open-trip-planner.html" rel="prev" title="Open Trip Planner">← Previous post</a>
             </li>
             <li class="next">
                 <a href="fare-data.html" rel="next" title="Fare Data">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/gtfs-editor.html",
@@ -319,38 +264,21 @@ Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 35 - 107
output/posts/highways-in-otp.html

@@ -1,65 +1,35 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Highways in OTP | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/highways-in-otp.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="elevation-data-in-otp.html" title="Elevation Data in OTP" type="text/html">
-        <link rel="next" href="jeep-and-bus-schedules.html" title="Jeep and Bus Schedules" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Highways in OTP">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/highways-in-otp.html">
-    <meta property="og:description" content="One of the weird things that happens with OTP is sometimes it gives absurdly roundabout routes. Here is OTP's suggested route for walking from UP to Ateneo:
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Highways in OTP | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/highways-in-otp.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="elevation-data-in-otp.html" title="Elevation Data in OTP" type="text/html">
+<link rel="next" href="jeep-and-bus-schedules.html" title="Jeep and Bus Schedules" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Highways in OTP">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/highways-in-otp.html">
+<meta property="og:description" content="One of the weird things that happens with OTP is sometimes it gives absurdly roundabout routes. Here is OTP's suggested route for walking from UP to Ateneo:
 
 This is just so hilariously wrong. It's mu">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-24T23:15:57+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-24T23:15:57+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -69,28 +39,15 @@ This is just so hilariously wrong. It's mu">
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Highways in OTP</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Highways in OTP</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-24T23:15:57+08:00" itemprop="datePublished" title="2013-07-24 23:15">2013-07-24 23:15</time></a></span>
@@ -103,9 +60,7 @@ This is just so hilariously wrong. It's mu">
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>One of the weird things that happens with OTP is sometimes it gives absurdly roundabout routes. Here is OTP's suggested route for walking from UP to Ateneo:</p>
 <p><img alt="Roundabout route from UP to Ateneo" src="../galleries/transit/otproundabout.png"></p>
@@ -121,24 +76,14 @@ This is just so hilariously wrong. It's mu">
 <p>The most correct way to actually fix this is to go through each of the trunks and specifying <code>foot=yes</code> and <code>bicycle=yes</code> for those trunks that are actually walkable. You could either do this locally with the dumped data, or contribute it directly to OSM. I'm not sure on the particulars with updating OSM though.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="elevation-data-in-otp.html" rel="prev" title="Elevation Data in OTP">← Previous post</a>
             </li>
             <li class="next">
                 <a href="jeep-and-bus-schedules.html" rel="next" title="Jeep and Bus Schedules">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/highways-in-otp.html",
@@ -152,38 +97,21 @@ This is just so hilariously wrong. It's mu">
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 37 - 105
output/posts/is-my-terminal-window-active.html

@@ -1,61 +1,32 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Is My Terminal Window Active? | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/is-my-terminal-window-active.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html" title="Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Is My Terminal Window Active?">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/is-my-terminal-window-active.html">
-    <meta property="og:description" content="I've been working in OSX for almost 3 years now, but I recently switched back to Linux because of all the problems people encountered with Yosemite. There are some things I missed from OSX though. One">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2015-06-07T16:20:45+08:00">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Is My Terminal Window Active? | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/is-my-terminal-window-active.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html" title="Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU" type="text/html">
+<link rel="next" href="tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html" title="TiddlyWiki in the Sky (or TiddlyWeb for TW5)" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Is My Terminal Window Active?">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/is-my-terminal-window-active.html">
+<meta property="og:description" content="I've been working in OSX for almost 3 years now, but I recently switched back to Linux because of all the problems people encountered with Yosemite. There are some things I missed from OSX though. One">
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2015-06-07T16:20:45+08:00">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -65,28 +36,15 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Is My Terminal Window Active?</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Is My Terminal Window Active?</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2015-06-07T16:20:45+08:00" itemprop="datePublished" title="2015-06-07 16:20">2015-06-07 16:20</time></a></span>
@@ -98,9 +56,7 @@
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>I've been working in OSX for almost 3 years now, but I recently switched back to Linux because of all the problems people encountered with Yosemite. There are some things I missed from OSX though. One of which is <a href="https://github.com/marzocchi/zsh-notify">zsh-notify</a>. It's a zsh plugin that alerts you if your long-running task is complete, and whether it failed or not.</p>
 <p>It's pretty convenient when you're compiling something and then go on to browse reddit while waiting. Usually, I spend too much time just reading and forget about the compilation entirely. With the plugin, I get the notification and maybe go back to work.</p>
@@ -119,21 +75,14 @@
 <p>Now that we have the PID of the window from zsh, we can once again use xdotool to get the PID of the current active window with <code>xdotool getactivewindow getwindowpid</code>. We just simply compare that with our <code>$PPID</code> and we can tell if we're in an active window or not. Overall, this approach worked surprisingly well so that's the final solution I went with.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html" rel="prev" title="Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU">← Previous post</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+            <li class="next">
+                <a href="tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html" rel="next" title="TiddlyWiki in the Sky (or TiddlyWeb for TW5)">Next post →</a>
+            </li>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/is-my-terminal-window-active.html",
@@ -147,38 +96,21 @@
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 35 - 107
output/posts/jeep-and-bus-schedules.html

@@ -1,63 +1,33 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Jeep and Bus Schedules | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/jeep-and-bus-schedules.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="highways-in-otp.html" title="Highways in OTP" type="text/html">
-        <link rel="next" href="geocoding-services.html" title="Geocoding Services" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Jeep and Bus Schedules">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/jeep-and-bus-schedules.html">
-    <meta property="og:description" content="Wouldn't it be wonderful if there were no buses or jeepneys in the Philippines over the weekends? It would truly be a cyclist's paradise. Imagine biking along EDSA, normally that would be a death sent">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-28T16:26:31+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Jeep and Bus Schedules | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/jeep-and-bus-schedules.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="highways-in-otp.html" title="Highways in OTP" type="text/html">
+<link rel="next" href="geocoding-services.html" title="Geocoding Services" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Jeep and Bus Schedules">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/jeep-and-bus-schedules.html">
+<meta property="og:description" content="Wouldn't it be wonderful if there were no buses or jeepneys in the Philippines over the weekends? It would truly be a cyclist's paradise. Imagine biking along EDSA, normally that would be a death sent">
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-28T16:26:31+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -67,28 +37,15 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Jeep and Bus Schedules</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Jeep and Bus Schedules</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-28T16:26:31+08:00" itemprop="datePublished" title="2013-07-28 16:26">2013-07-28 16:26</time></a></span>
@@ -101,9 +58,7 @@
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>Wouldn't it be wonderful if there were no buses or jeepneys in the Philippines over the weekends? It would truly be a cyclist's paradise. Imagine biking along EDSA, normally that would be a death sentence, but according to the GTFS data, you shouldn't worry. I can assure you, it's still a death sentence.</p>
 <p>The GTFS spec defines 2 ways of statically specifying trip schedules. You can define the exact times that a service will arrive at a stop. You can also specify between what times the service is active and how often a new bus or jeep leaves the first stop. You also define which days those rules apply. You could say every MWF, the bus operates from 9:00AM to 9:00PM and every TTH, the bus services from 3:00AM to 11:00PM.</p>
@@ -127,24 +82,14 @@ sed -i .bak <span class="s1">'/^72/ s/,600/,60/'</span> frequencies.txt
 <p>Overall, the problems we're having is a symptom of the mismatch between our transit system and the GTFS. It would be great if our transit system gets better and we don't need to do hackish things for it to fit the GTFS, but that's still a dream. For now, all we can really do is fit a triangle into a square hole.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="highways-in-otp.html" rel="prev" title="Highways in OTP">← Previous post</a>
             </li>
             <li class="next">
                 <a href="geocoding-services.html" rel="next" title="Geocoding Services">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/jeep-and-bus-schedules.html",
@@ -158,38 +103,21 @@ sed -i .bak <span class="s1">'/^72/ s/,600/,60/'</span> frequencies.txt
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 35 - 107
output/posts/jeepney-and-bus-routes.html

@@ -1,63 +1,33 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Jeepney and Bus Routes | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/jeepney-and-bus-routes.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="philippine-transit-app-challenge.html" title="Philippine Transit App Challenge" type="text/html">
-        <link rel="next" href="one-bus-or-maybe-jeep-away.html" title="One Bus (or maybe Jeep) Away" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Jeepney and Bus Routes">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/jeepney-and-bus-routes.html">
-    <meta property="og:description" content="In the last post, I talked about how we now have data about jeepney and bus routes in the Philippines. The data is actually in the GTFS format, which is the format the Google Maps consumes transit dat">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-07T10:32:36+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Jeepney and Bus Routes | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/jeepney-and-bus-routes.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="philippine-transit-app-challenge.html" title="Philippine Transit App Challenge" type="text/html">
+<link rel="next" href="one-bus-or-maybe-jeep-away.html" title="One Bus (or maybe Jeep) Away" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Jeepney and Bus Routes">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/jeepney-and-bus-routes.html">
+<meta property="og:description" content="In the last post, I talked about how we now have data about jeepney and bus routes in the Philippines. The data is actually in the GTFS format, which is the format the Google Maps consumes transit dat">
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-07T10:32:36+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -67,28 +37,15 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Jeepney and Bus Routes</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Jeepney and Bus Routes</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-07T10:32:36+08:00" itemprop="datePublished" title="2013-07-07 10:32">2013-07-07 10:32</time></a></span>
@@ -101,9 +58,7 @@
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>In the <a href="philippine-transit-app-challenge.html">last post</a>, I talked about how we now have data about jeepney and bus routes in the Philippines. The data is actually in the <a href="https://developers.google.com/transit/gtfs/">GTFS format</a>, which is the format the Google Maps consumes transit data. Apparently, the government will be submitting the GTFS data later this year. Transit directions for Metro Manila in Google Maps would be wonderful. That said, it definitely raises the bar for the app challenge people.</p>
 <p>In the last post, I mentioned the quality of the data isn't quite good. Even before seeing the data, I was already a bit unsure of it. The key problem is how you model the routes. The GTFS format was inherently designed for more well developed and organized transit agencies which isn't exactly what we have in the Philippines now.</p>
@@ -114,24 +69,14 @@
 <p>There were also some minor issues with the data itself. Some of the files had extra columns. This normally isn't an issue, but it caused problems for <a href="https://github.com/harrisony/gtfs_SQL_importer">GTFS SQL importer</a>. There were also problems with matching the shape data with the stops when I tried it with <a href="http://onebusaway.org">OneBusAway</a>. They could probably be <a href="https://github.com/OneBusAway/onebusaway-application-modules/wiki/Stop-to-Shape-Matching">fixed</a> but that's for another day.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="philippine-transit-app-challenge.html" rel="prev" title="Philippine Transit App Challenge">← Previous post</a>
             </li>
             <li class="next">
                 <a href="one-bus-or-maybe-jeep-away.html" rel="next" title="One Bus (or maybe Jeep) Away">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/jeepney-and-bus-routes.html",
@@ -145,38 +90,21 @@
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 35 - 107
output/posts/one-bus-or-maybe-jeep-away.html

@@ -1,65 +1,35 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>One Bus (or maybe Jeep) Away | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/one-bus-or-maybe-jeep-away.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="jeepney-and-bus-routes.html" title="Jeepney and Bus Routes" type="text/html">
-        <link rel="next" href="open-trip-planner.html" title="Open Trip Planner" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="One Bus (or maybe Jeep) Away">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/one-bus-or-maybe-jeep-away.html">
-    <meta property="og:description" content="Link: http://onebusaway.org/
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>One Bus (or maybe Jeep) Away | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/one-bus-or-maybe-jeep-away.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="jeepney-and-bus-routes.html" title="Jeepney and Bus Routes" type="text/html">
+<link rel="next" href="open-trip-planner.html" title="Open Trip Planner" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="One Bus (or maybe Jeep) Away">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/one-bus-or-maybe-jeep-away.html">
+<meta property="og:description" content="Link: http://onebusaway.org/
 TL;DR no routing; useless in Philippines
 OneBusAway is a transit information app. It provides data on what bus stops are near you, which buses pass by. You can also get sc">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-09T01:53:59+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-09T01:53:59+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -69,28 +39,15 @@ OneBusAway is a transit information app. It provides data on what bus stops are
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">One Bus (or maybe Jeep) Away</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">One Bus (or maybe Jeep) Away</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-09T01:53:59+08:00" itemprop="datePublished" title="2013-07-09 01:53">2013-07-09 01:53</time></a></span>
@@ -103,9 +60,7 @@ OneBusAway is a transit information app. It provides data on what bus stops are
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>Link: <a href="http://onebusaway.org/">http://onebusaway.org/</a></p>
 <p><strong>TL;DR</strong> no routing; useless in Philippines</p>
@@ -121,24 +76,14 @@ OneBusAway is a transit information app. It provides data on what bus stops are
 <p><a href="../galleries/transit/onebusaway3.png"><img alt="OneBusAway" src="../galleries/transit/onebusaway3.png"></a></p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="jeepney-and-bus-routes.html" rel="prev" title="Jeepney and Bus Routes">← Previous post</a>
             </li>
             <li class="next">
                 <a href="open-trip-planner.html" rel="next" title="Open Trip Planner">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/one-bus-or-maybe-jeep-away.html",
@@ -152,38 +97,21 @@ OneBusAway is a transit information app. It provides data on what bus stops are
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 35 - 107
output/posts/open-trip-planner.html

@@ -1,65 +1,35 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Open Trip Planner | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/open-trip-planner.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="one-bus-or-maybe-jeep-away.html" title="One Bus (or maybe Jeep) Away" type="text/html">
-        <link rel="next" href="gtfs-editor.html" title="GTFS Editor" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Open Trip Planner">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/open-trip-planner.html">
-    <meta property="og:description" content="Link: http://www.opentripplanner.org
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Open Trip Planner | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/open-trip-planner.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="one-bus-or-maybe-jeep-away.html" title="One Bus (or maybe Jeep) Away" type="text/html">
+<link rel="next" href="gtfs-editor.html" title="GTFS Editor" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Open Trip Planner">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/open-trip-planner.html">
+<meta property="og:description" content="Link: http://www.opentripplanner.org
 TL;DR routes pretty well; data might cause weird issues
 OpenTripPlanner, as the name implies, is a routing app. Given point A and point B, it can provide possible ">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-09T23:16:12+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-09T23:16:12+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -69,28 +39,15 @@ OpenTripPlanner, as the name implies, is a routing app. Given point A and point
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Open Trip Planner</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Open Trip Planner</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-09T23:16:12+08:00" itemprop="datePublished" title="2013-07-09 23:16">2013-07-09 23:16</time></a></span>
@@ -103,9 +60,7 @@ OpenTripPlanner, as the name implies, is a routing app. Given point A and point
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>Link: <a href="http://www.opentripplanner.org">http://www.opentripplanner.org</a></p>
 <p><strong>TL;DR</strong> routes pretty well; data might cause weird issues</p>
@@ -129,24 +84,14 @@ OpenTripPlanner, as the name implies, is a routing app. Given point A and point
 <p>Overall though, I really like OpenTripPlanner. It handles most of the hard parts of the challenge. It provides a REST API for doing routing with the GTFS + OSM data. There's also a lot of potential for additional open source work. A lot can be done to improve the default webapp. Adding a default location searcher would greatly improve usability. Adding in the route viewing features of OneBusAway would also be nice. Alternatively, you could even write your own client that just interfaces with the API.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="one-bus-or-maybe-jeep-away.html" rel="prev" title="One Bus (or maybe Jeep) Away">← Previous post</a>
             </li>
             <li class="next">
                 <a href="gtfs-editor.html" rel="next" title="GTFS Editor">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/open-trip-planner.html",
@@ -160,38 +105,21 @@ OpenTripPlanner, as the name implies, is a routing app. Given point A and point
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 34 - 106
output/posts/philippine-transit-app-challenge.html

@@ -1,62 +1,32 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Philippine Transit App Challenge | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/philippine-transit-app-challenge.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="next" href="jeepney-and-bus-routes.html" title="Jeepney and Bus Routes" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Philippine Transit App Challenge">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/philippine-transit-app-challenge.html">
-    <meta property="og:description" content="Last week, the DOTC launched the Philippine Transit App Challenge. It's a competition to build something great using the newly available 1) jeepney/bus/rail routes and 2) traffic incident data in Metr">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-07T00:17:37+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Philippine Transit App Challenge | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/philippine-transit-app-challenge.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="next" href="jeepney-and-bus-routes.html" title="Jeepney and Bus Routes" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Philippine Transit App Challenge">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/philippine-transit-app-challenge.html">
+<meta property="og:description" content="Last week, the DOTC launched the Philippine Transit App Challenge. It's a competition to build something great using the newly available 1) jeepney/bus/rail routes and 2) traffic incident data in Metr">
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-07T00:17:37+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -66,28 +36,15 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Philippine Transit App Challenge</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Philippine Transit App Challenge</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-07T00:17:37+08:00" itemprop="datePublished" title="2013-07-07 00:17">2013-07-07 00:17</time></a></span>
@@ -100,9 +57,7 @@
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>Last week, the DOTC launched the <a href="http://philippine-transit.hackathome.com">Philippine Transit App Challenge</a>. It's a competition to build something great using the newly available 1) jeepney/bus/rail routes and 2) traffic incident data in Metro Manila and Cebu.</p>
 <p>I'm actually quite excited about this as it's not everyday our government does wonderful things. Many people have been waiting for this kind of data to be available. Before, the only way to figure out which jeeps to ride to get from A to B is by asking other people. The website of the LTFRB used to just have a list of jeepney routes, but nothing else, no maps or list of stops.</p>
@@ -111,21 +66,11 @@
 <p>I've just started looking at the route data and playing around with it. The quality could be better, but I'm glad we at least have something to work with.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="next">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="next">
                 <a href="jeepney-and-bus-routes.html" rel="next" title="Jeepney and Bus Routes">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/philippine-transit-app-challenge.html",
@@ -139,38 +84,21 @@
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 34 - 106
output/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html

@@ -1,62 +1,32 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="console-keymap-switching.html" title="Console Keymap Switching" type="text/html">
-        <link rel="next" href="is-my-terminal-window-active.html" title="Is My Terminal Window Active?" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html">
-    <meta property="og:description" content="I've always thought that people were just too lazy to change their SSIDs when I see &quot;PLDTMyDSLBizCafeJapan&quot;. It became apparent when we got our own PLDT line that it was because the bundled router/mod">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-11-27T10:12:31+08:00">
-           <meta property="article:tag" content="sysadmin">
-
-    
-
-    
-
-
-
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="console-keymap-switching.html" title="Console Keymap Switching" type="text/html">
+<link rel="next" href="is-my-terminal-window-active.html" title="Is My Terminal Window Active?" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html">
+<meta property="og:description" content="I've always thought that people were just too lazy to change their SSIDs when I see &quot;PLDTMyDSLBizCafeJapan&quot;. It became apparent when we got our own PLDT line that it was because the bundled router/mod">
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-11-27T10:12:31+08:00">
+<meta property="article:tag" content="sysadmin">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -66,28 +36,15 @@
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Removing PLDTMyDSLBiz from the ZyXEL P-2612HNU</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-11-27T10:12:31+08:00" itemprop="datePublished" title="2013-11-27 10:12">2013-11-27 10:12</time></a></span>
@@ -99,9 +56,7 @@
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>I've always thought that people were just too lazy to change their SSIDs when I see "PLDTMyDSLBizCafeJapan". It became apparent when we got our own PLDT line that it was because the bundled router/modem <em>does not</em> allow you to remove the prefix.</p>
 <p>This is not the kind of thing you expect as a business customer. Even for home customers, I feel it's still a bit dishonest. I'd be fine if it was just the default SSID, but forcing people to have it as part of their SSID is like advertising that your company (I mean PLDT) is a douche.</p>
@@ -111,24 +66,14 @@
 <p>A minor note, the router doesn't seem to support SSIDs with a comma (,) well. It just gets everything before the comma as the SSID for some reason.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="console-keymap-switching.html" rel="prev" title="Console Keymap Switching">← Previous post</a>
             </li>
             <li class="next">
                 <a href="is-my-terminal-window-active.html" rel="next" title="Is My Terminal Window Active?">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html",
@@ -142,38 +87,21 @@
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 182 - 0
output/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html

@@ -0,0 +1,182 @@
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>TiddlyWiki in the Sky (or TiddlyWeb for TW5) | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="is-my-terminal-window-active.html" title="Is My Terminal Window Active?" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="TiddlyWiki in the Sky (or TiddlyWeb for TW5)">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html">
+<meta property="og:description" content="I've always liked TiddlyWiki. Back when it first came out, it was really amazing. A wiki all in one file, that worked in the browser. It didn't need a backend, it would just save itself as an all new ">
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2015-12-24T14:48:20+08:00">
+<meta property="article:tag" content="sysadmin tiddlywiki">
+</head>
+<body>
+<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
+    
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
+        
+    <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
+
+        <span id="blog-title">Pleasant Programmer</span>
+    </a></h1>
+
+        
+
+        
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+                <li><a href="../archive.html">Archives</a></li>
+                <li><a href="../categories/index.html">Tags</a></li>
+                <li><a href="../rss.xml">RSS</a></li>
+    
+    
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">TiddlyWiki in the Sky (or TiddlyWeb for TW5)</a></h1>
+
+        <small>
+        <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2015-12-24T14:48:20+08:00" itemprop="datePublished" title="2015-12-24 14:48">2015-12-24 14:48</time></a></span>
+        |
+        More posts about
+        
+           <a class="tag p-category" href="../categories/sysadmin-tiddlywiki.html" rel="tag">sysadmin tiddlywiki</a>
+
+        </small>
+        
+
+    </header><div class="e-content entry-content" itemprop="articleBody text">
+    <div>
+<p>I've always liked <a href="http://tiddlywiki.com">TiddlyWiki</a>. Back when it first came out, it was really amazing. A wiki all in one file, that worked in the browser. It didn't need a backend, it would just save itself as an all new HTML file with all your posts inside. I've used it a lot over the years, as a personal wiki/journal and a class notebook. I even had a blog with it at one point using one of the server-side forks.</p>
+<p>Now, there's TiddlyWiki5 which is a rewrite of the original TiddlyWiki that looks a whole lot snazzier, and I assume has better architecture overall. It also has experimental support for all the server-side platforms (particularly TiddlyWeb) that have cropped up.</p>
+<p>If you're just looking for a simple server setup for TiddlyWiki5, it has native support for that on its own. There's plenty of documentation on the site. But if you're looking for more advanced features (like storing your posts in git or a database), then you'll need to use it with TiddlyWeb. The problem is that most of the documentation for TiddlyWeb still refers to the old TiddlyWiki.</p>
+<p>To support TiddlyWiki5, we'll need a version of the wiki which has the TiddlyWeb plugin already installed and configured. After that, some tweaking is necessary to get TiddlyWeb to provide what the wiki requires.</p>
+<h3>Setting Up TiddlyWiki</h3>
+<p>TiddlyWiki5 provides a command line tool via <code>npm</code> that allows building custom versions of the wiki. In fact, it comes with templates, called "editions", that we can use for our setup. Assuming you already have it installed, create the wiki using</p>
+<pre class="code literal-block">tiddlywiki mywiki --init tw5tank          # create wiki from template
+</pre>
+
+
+<p>This creates a wiki intended for use with <a href="https://tank.peermore.com/">Tank</a>, which is built on top of TiddlyWeb. From here, you should look in <code>mywiki/tiddlers/system</code> which contain the entries for <code>SiteTitle</code>, <code>SiteSubtitle</code>, <code>DefaultTiddlers</code>, and <code>tiddlyweb-host</code>. The first 3 should be configured however you want. These are necessary because they're needed before the wiki can load them from the server. <code>tiddlyweb-host</code> contains the location of the TiddlyWeb server, this should be <code>http://localhost:8080/</code> if you're just testing locally. With everything configured, you can build the new wiki by running</p>
+<pre class="code literal-block">tiddlywiki mywiki --build
+</pre>
+
+
+<p>This will output the wiki to <code>mywiki/output/tw5tank.html</code>. You can now serve it using your favorite local webserver, like <code>python -m http.server</code>.</p>
+<h3>Setting Up TiddlyWeb</h3>
+<p>The TiddlyWeb tutorial recommends using <code>tiddlywebwiki</code> which has all the plugins setup for a nice wiki instance for the old TiddlyWiki. It has a lot of features that aren't really needed, so we won't go with that. So first, we'll need to install TiddlyWeb and any plugins we might want to use.</p>
+<pre class="code literal-block">pip install tiddlyweb tiddlywebplugins.status tiddlywebplugins.cherrypy tiddlywebplugins.cors
+</pre>
+
+
+<p>Next, we'll need the tiddlyweb configuration in <code>tiddlywebconfig.py</code></p>
+<pre class="code literal-block"><span class="c"># A basic configuration.</span>
+<span class="c"># `pydoc tiddlyweb.config` for details on configuration items.</span>
+
+<span class="kn">import</span> <span class="nn">tiddlywebplugins.status</span>
+
+<span class="n">config</span> <span class="o">=</span> <span class="p">{</span>
+    <span class="s">'system_plugins'</span><span class="p">:</span> <span class="p">[</span><span class="s">'tiddlywebplugins.status'</span><span class="p">,</span> <span class="s">'tiddlywebplugins.cors'</span><span class="p">],</span>
+    <span class="s">'secret'</span><span class="p">:</span> <span class="s">'36c98d6d14618c79f0ed2d49cd1b9e272d8d4bd0'</span><span class="p">,</span>
+    <span class="s">'wsgi_server'</span><span class="p">:</span> <span class="s">'tiddlywebplugins.cherrypy'</span><span class="p">,</span>
+    <span class="s">'cors.enable_non_simple'</span><span class="p">:</span> <span class="bp">True</span>
+<span class="p">}</span>
+
+<span class="n">original_gather_data</span> <span class="o">=</span> <span class="n">tiddlywebplugins</span><span class="o">.</span><span class="n">status</span><span class="o">.</span><span class="n">_gather_data</span>
+
+<span class="k">def</span> <span class="nf">_status_gather_data</span><span class="p">(</span><span class="n">environ</span><span class="p">):</span>
+    <span class="n">data</span> <span class="o">=</span> <span class="n">original_gather_data</span><span class="p">(</span><span class="n">environ</span><span class="p">)</span>
+    <span class="n">data</span><span class="p">[</span><span class="s">'space'</span><span class="p">]</span> <span class="o">=</span> <span class="p">{</span><span class="s">'recipe'</span><span class="p">:</span> <span class="s">'default'</span><span class="p">}</span>
+    <span class="k">return</span> <span class="n">data</span>
+
+<span class="n">tiddlywebplugins</span><span class="o">.</span><span class="n">status</span><span class="o">.</span><span class="n">_gather_data</span> <span class="o">=</span> <span class="n">_status_gather_data</span>
+</pre>
+
+
+<p>The tweaks involved are:</p>
+<ul>
+<li>using the status plugin which the wiki requires</li>
+<li>monkeypatching the status plugin for the wiki to use the correct "recipe"</li>
+<li>using cherrypy server instead of the buggy default one</li>
+<li>using cors since we're not hosting the wiki itself on the same server</li>
+</ul>
+<p>With that, we just need to create the store that will hold our data</p>
+<pre class="code literal-block">twanager recipe default &lt;&lt;EOF
+desc: standard TiddlyWebWiki environment
+policy: {"read": [], "create": [], "manage": ["R:ADMIN"], "accept": [], "write": ["R:ADMIN"], "owner": "administrator", "delete": ["R:ADMIN"]}
+
+/bags/default/tiddlers
+EOF
+
+twanager bag default &lt;&lt;EOF
+{"policy": {"read": [], "create": [], "manage": ["R:ADMIN"], "accept": [], "write": [], "owner": "administrator", "delete": []}}
+EOF
+</pre>
+
+
+<p>Finally, we can start the TiddlyWeb server</p>
+<pre class="code literal-block">twanager server
+</pre>
+
+
+<h3>Putting it all together</h3>
+<p>Once you have the TiddlyWeb server running, you can just go to wherever you're hosting the wiki html and it should work. You can try creating some posts, and the check mark on the sidebar should be red for a while and then turn black. Once that's done it's saved. You can refresh your browser and your posts should still be there.</p>
+<p>At this point, you can start customizing your TiddlyWeb instance, by changing your store to something like a database, or adding authorization. You can also tweak the server setup so you won't need CORS anymore.</p>
+<p>TiddlyWiki5 is still relatively new. I hope that eventually, support for server-side and the plugin ecosystem grows to be as great as the old TiddlyWiki.</p>
+</div>
+    </div>
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
+                <a href="is-my-terminal-window-active.html" rel="prev" title="Is My Terminal Window Active?">← Previous post</a>
+            </li>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
+        <script>
+        var disqus_shortname ="pleasantprog",
+            disqus_url="http://pleasantprogrammer.com/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html",
+        disqus_title="TiddlyWiki in the Sky (or TiddlyWeb for TW5)",
+        disqus_identifier="cache/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html",
+        disqus_config = function () {
+            this.language = "en";
+        };
+        (function() {
+            var dsq = document.createElement('script'); dsq.async = true;
+            dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+        })();
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+</noscript>
+    <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
+
+
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+            
+        </footer>
+</div>
+    
+    
+    
+    
+
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
+        var easter_egg = new Konami();
+        easter_egg.code = function() {
+            $(".thomas").toggleClass("whoa");
+            $("body").scrollTop(0);
+        }
+        easter_egg.load();
+
+        // love you, thomas!
+        // yours, @_phi + @meggykawsek
+    </script>
+</body>
+</html>

+ 91 - 0
output/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.md

@@ -0,0 +1,91 @@
+<!--
+.. title: TiddlyWiki in the Sky (or TiddlyWeb for TW5)
+.. slug: tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5
+.. date: 2015-12-24 14:48:20 UTC+08:00
+.. tags: sysadmin tiddlywiki
+.. category:
+.. link:
+.. description:
+.. type: text
+-->
+
+I've always liked [TiddlyWiki](http://tiddlywiki.com). Back when it first came out, it was really amazing. A wiki all in one file, that worked in the browser. It didn't need a backend, it would just save itself as an all new HTML file with all your posts inside. I've used it a lot over the years, as a personal wiki/journal and a class notebook. I even had a blog with it at one point using one of the server-side forks.
+
+Now, there's TiddlyWiki5 which is a rewrite of the original TiddlyWiki that looks a whole lot snazzier, and I assume has better architecture overall. It also has experimental support for all the server-side platforms (particularly TiddlyWeb) that have cropped up.
+
+If you're just looking for a simple server setup for TiddlyWiki5, it has native support for that on its own. There's plenty of documentation on the site. But if you're looking for more advanced features (like storing your posts in git or a database), then you'll need to use it with TiddlyWeb. The problem is that most of the documentation for TiddlyWeb still refers to the old TiddlyWiki.
+
+To support TiddlyWiki5, we'll need a version of the wiki which has the TiddlyWeb plugin already installed and configured. After that, some tweaking is necessary to get TiddlyWeb to provide what the wiki requires.
+
+## Setting Up TiddlyWiki
+
+TiddlyWiki5 provides a command line tool via `npm` that allows building custom versions of the wiki. In fact, it comes with templates, called "editions", that we can use for our setup. Assuming you already have it installed, create the wiki using
+
+    tiddlywiki mywiki --init tw5tank          # create wiki from template
+
+This creates a wiki intended for use with [Tank](https://tank.peermore.com/), which is built on top of TiddlyWeb. From here, you should look in `mywiki/tiddlers/system` which contain the entries for `SiteTitle`, `SiteSubtitle`, `DefaultTiddlers`, and `tiddlyweb-host`. The first 3 should be configured however you want. These are necessary because they're needed before the wiki can load them from the server. `tiddlyweb-host` contains the location of the TiddlyWeb server, this should be `http://localhost:8080/` if you're just testing locally. With everything configured, you can build the new wiki by running
+
+    tiddlywiki mywiki --build
+
+This will output the wiki to `mywiki/output/tw5tank.html`. You can now serve it using your favorite local webserver, like `python -m http.server`.
+
+## Setting Up TiddlyWeb
+
+The TiddlyWeb tutorial recommends using `tiddlywebwiki` which has all the plugins setup for a nice wiki instance for the old TiddlyWiki. It has a lot of features that aren't really needed, so we won't go with that. So first, we'll need to install TiddlyWeb and any plugins we might want to use.
+
+    pip install tiddlyweb tiddlywebplugins.status tiddlywebplugins.cherrypy tiddlywebplugins.cors
+
+Next, we'll need the tiddlyweb configuration in `tiddlywebconfig.py`
+
+    # A basic configuration.
+    # `pydoc tiddlyweb.config` for details on configuration items.
+
+    import tiddlywebplugins.status
+
+    config = {
+        'system_plugins': ['tiddlywebplugins.status', 'tiddlywebplugins.cors'],
+        'secret': '36c98d6d14618c79f0ed2d49cd1b9e272d8d4bd0',
+        'wsgi_server': 'tiddlywebplugins.cherrypy',
+        'cors.enable_non_simple': True
+    }
+
+    original_gather_data = tiddlywebplugins.status._gather_data
+
+    def _status_gather_data(environ):
+        data = original_gather_data(environ)
+        data['space'] = {'recipe': 'default'}
+        return data
+
+    tiddlywebplugins.status._gather_data = _status_gather_data
+
+The tweaks involved are:
+
+ * using the status plugin which the wiki requires
+ * monkeypatching the status plugin for the wiki to use the correct "recipe"
+ * using cherrypy server instead of the buggy default one
+ * using cors since we're not hosting the wiki itself on the same server
+
+With that, we just need to create the store that will hold our data
+
+    twanager recipe default <<EOF
+    desc: standard TiddlyWebWiki environment
+    policy: {"read": [], "create": [], "manage": ["R:ADMIN"], "accept": [], "write": ["R:ADMIN"], "owner": "administrator", "delete": ["R:ADMIN"]}
+
+    /bags/default/tiddlers
+    EOF
+
+    twanager bag default <<EOF
+    {"policy": {"read": [], "create": [], "manage": ["R:ADMIN"], "accept": [], "write": [], "owner": "administrator", "delete": []}}
+    EOF
+
+Finally, we can start the TiddlyWeb server
+
+    twanager server
+
+## Putting it all together
+
+Once you have the TiddlyWeb server running, you can just go to wherever you're hosting the wiki html and it should work. You can try creating some posts, and the check mark on the sidebar should be red for a while and then turn black. Once that's done it's saved. You can refresh your browser and your posts should still be there.
+
+At this point, you can start customizing your TiddlyWeb instance, by changing your store to something like a database, or adding authorization. You can also tweak the server setup so you won't need CORS anymore.
+
+TiddlyWiki5 is still relatively new. I hope that eventually, support for server-side and the plugin ecosystem grows to be as great as the old TiddlyWiki.

+ 35 - 107
output/posts/transit-wand.html

@@ -1,64 +1,34 @@
 <!DOCTYPE html>
 <html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " vocab="http://ogp.me/ns" lang="en">
 <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width">
-    <title>Transit Wand | Pleasant Programmer</title>
-
-    
-        <link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/code.css" rel="stylesheet" type="text/css">
-        <link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
-            <link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
-
-    
-            <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
-
-      <link rel="canonical" href="http://pleasantprogrammer.com/posts/transit-wand.html">
-
-
-
-
-    <script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script>
-    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
-    
-        <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
-
-    
-
-
-    
-
-    <meta name="author" content="Thomas Dy">
-        <link rel="prev" href="fare-data.html" title="Fare Data" type="text/html">
-        <link rel="next" href="graphserver.html" title="GraphServer" type="text/html">
-    
-    <meta property="og:site_name" content="Pleasant Programmer">
-    <meta property="og:title" content="Transit Wand">
-    <meta property="og:url" content="http://pleasantprogrammer.com/posts/transit-wand.html">
-    <meta property="og:description" content="Link: http://transitwand.com
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>Transit Wand | Pleasant Programmer</title>
+<link href="../assets/css/rst.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/code.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/theme.css" rel="stylesheet" type="text/css">
+<link href="../assets/css/custom.css" rel="stylesheet" type="text/css">
+<link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
+<link rel="canonical" href="http://pleasantprogrammer.com/posts/transit-wand.html">
+<script type="text/javascript" src="//use.typekit.net/iwm5axp.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script><!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Thomas Dy">
+<link rel="prev" href="fare-data.html" title="Fare Data" type="text/html">
+<link rel="next" href="graphserver.html" title="GraphServer" type="text/html">
+<meta property="og:site_name" content="Pleasant Programmer">
+<meta property="og:title" content="Transit Wand">
+<meta property="og:url" content="http://pleasantprogrammer.com/posts/transit-wand.html">
+<meta property="og:description" content="Link: http://transitwand.com
 Overall, this was the simplest of the open-source transit tools to actually get up and running. There's already a deployed instance of the server, and you can easily downl">
-    <meta property="og:type" content="article">
-    <meta property="article:published_time" content="2013-07-15T22:45:20+08:00">
-           <meta property="article:tag" content="philippine-transit-app">
-           <meta property="article:tag" content="programming">
-
-    
-
-    
-
-
-
+<meta property="og:type" content="article">
+<meta property="article:published_time" content="2013-07-15T22:45:20+08:00">
+<meta property="article:tag" content="philippine-transit-app">
+<meta property="article:tag" content="programming">
 </head>
 <body>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
     
-    <header id="header" role="banner">
-        <div class="thomas">
-            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS">
-            <img src="../assets/img/thomas.png" alt="Pleasant Programmer">
-        </div>
+    <header id="header" role="banner"><div class="thomas">
+            <img src="../assets/img/thomas.gif" alt="DJ THOMAS IN DA HAUS"><img src="../assets/img/thomas.png" alt="Pleasant Programmer">
+</div>
         
     <h1 id="brand"><a href="http://pleasantprogrammer.com/" title="Pleasant Programmer" rel="home">
 
@@ -68,28 +38,15 @@ Overall, this was the simplest of the open-source transit tools to actually get
         
 
         
-    <nav id="menu" role="navigation">
-    <ul>
-            <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
+    <nav id="menu" role="navigation"><ul>
+<li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
                 <li><a href="../archive.html">Archives</a></li>
                 <li><a href="../categories/index.html">Tags</a></li>
                 <li><a href="../rss.xml">RSS</a></li>
     
     
-    </ul>
-    </nav>
-
-    </header>
-    
-
-    <div id="container">
-         <main id="content" role="main">
-            
-<article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
-    
-    <header>
-        
-    <h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Transit Wand</a></h1>
+    </ul></nav></header><div id="container">
+         <main id="content" role="main"><article class="post-text h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="#" class="u-url">Transit Wand</a></h1>
 
         <small>
         <span class="dateline">Posted: <a href="#" rel="bookmark"><time class="published dt-published" datetime="2013-07-15T22:45:20+08:00" itemprop="datePublished" title="2013-07-15 22:45">2013-07-15 22:45</time></a></span>
@@ -102,9 +59,7 @@ Overall, this was the simplest of the open-source transit tools to actually get
         </small>
         
 
-    </header>
-
-    <div class="e-content entry-content" itemprop="articleBody text">
+    </header><div class="e-content entry-content" itemprop="articleBody text">
     <div>
 <p>Link: <a href="https://play.google.com/store/apps/details?id=com.conveyal.transitwand">http://transitwand.com</a></p>
 <p>Overall, this was the simplest of the <a href="http://philippine-transit.hackathome.com/use-this-code/">open-source transit tools</a> to actually get up and running. There's already a deployed instance of the server, and you can easily download the phone app via the <a href="https://play.google.com/store/apps/details?id=com.conveyal.transitwand">Play Store</a>. Even running the server by yourself didn't have any of the hiccups I had with GTFS Editor.</p>
@@ -118,24 +73,14 @@ Overall, this was the simplest of the open-source transit tools to actually get
 <p>Overall, Transit Wand does what it's supposed to do. You collect data, and then upload it to a server. There is a lot of room for improvement though. It would be nice to have a better API that allows access to more of the data. Building in analysis tools for the ridership data might also be a welcome thing. I imagine it would also be great if you could encourage people to use the app and upload their own trips.</p>
 </div>
     </div>
-    <aside class="postpromonav">
-    <nav>
-    
-        <ul class="pager clearfix">
-            <li class="previous">
+    <aside class="postpromonav"><nav><ul class="pager clearfix">
+<li class="previous">
                 <a href="fare-data.html" rel="prev" title="Fare Data">← Previous post</a>
             </li>
             <li class="next">
                 <a href="graphserver.html" rel="next" title="GraphServer">Next post →</a>
             </li>
-        </ul>
-
-    </nav>
-    </aside>
-        <section class="comments">
-        
-        
-        <div id="disqus_thread"></div>
+        </ul></nav></aside><section class="comments"><div id="disqus_thread"></div>
         <script>
         var disqus_shortname ="pleasantprog",
             disqus_url="http://pleasantprogrammer.com/posts/transit-wand.html",
@@ -149,38 +94,21 @@ Overall, this was the simplest of the open-source transit tools to actually get
             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
-    </script>
-    <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
+    </script><noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
 </noscript>
     <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>
 
 
-        </section>
-    
-
-</article>
-
-        
-       <script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>
-
-
-
-         </main>
-         
-        <footer id="footer" role="contentinfo">
-            <p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
+        </section></article><script>var disqus_shortname="pleasantprog";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script></main><footer id="footer" role="contentinfo"><p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="CC-BY-SA" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a> © 2015 Thomas Dy - Powered by <a href="http://getnikola.com">Nikola</a></p>
             
         </footer>
-
-    </div>
+</div>
     
     
     
     
 
-    <script src="../assets/js/konami.js"></script>
-    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
-    <script>
+    <script src="../assets/js/konami.js"></script><script src="http://code.jquery.com/jquery-2.0.3.min.js"></script><script>
         var easter_egg = new Konami();
         easter_egg.code = function() {
             $(".thomas").toggleClass("whoa");

+ 2 - 0
output/robots.txt

@@ -1,2 +1,4 @@
 Sitemap: http://pleasantprogrammer.com/sitemapindex.xml
 
+User-Agent: *
+Host: pleasantprogrammer.com

+ 77 - 56
output/rss.xml

@@ -1,5 +1,80 @@
 <?xml version="1.0" encoding="utf-8"?>
-<?xml-stylesheet type="text/xsl" href="assets/xml/rss.xsl" media="all"?><rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Pleasant Programmer</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link href="http://pleasantprogrammer.com/rss.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sun, 07 Jun 2015 08:22:42 GMT</lastBuildDate><generator>http://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Is My Terminal Window Active?</title><link>http://pleasantprogrammer.com/posts/is-my-terminal-window-active.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;I've been working in OSX for almost 3 years now, but I recently switched back to Linux because of all the problems people encountered with Yosemite. There are some things I missed from OSX though. One of which is &lt;a href="https://github.com/marzocchi/zsh-notify"&gt;zsh-notify&lt;/a&gt;. It's a zsh plugin that alerts you if your long-running task is complete, and whether it failed or not.&lt;/p&gt;
+<?xml-stylesheet type="text/xsl" href="assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Pleasant Programmer</title><link>http://pleasantprogrammer.com/</link><description></description><atom:link rel="self" type="application/rss+xml" href="http://pleasantprogrammer.com/rss.xml"></atom:link><language>en</language><lastBuildDate>Thu, 24 Dec 2015 07:49:10 GMT</lastBuildDate><generator>https://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>TiddlyWiki in the Sky (or TiddlyWeb for TW5)</title><link>http://pleasantprogrammer.com/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;I've always liked &lt;a href="http://tiddlywiki.com"&gt;TiddlyWiki&lt;/a&gt;. Back when it first came out, it was really amazing. A wiki all in one file, that worked in the browser. It didn't need a backend, it would just save itself as an all new HTML file with all your posts inside. I've used it a lot over the years, as a personal wiki/journal and a class notebook. I even had a blog with it at one point using one of the server-side forks.&lt;/p&gt;
+&lt;p&gt;Now, there's TiddlyWiki5 which is a rewrite of the original TiddlyWiki that looks a whole lot snazzier, and I assume has better architecture overall. It also has experimental support for all the server-side platforms (particularly TiddlyWeb) that have cropped up.&lt;/p&gt;
+&lt;p&gt;If you're just looking for a simple server setup for TiddlyWiki5, it has native support for that on its own. There's plenty of documentation on the site. But if you're looking for more advanced features (like storing your posts in git or a database), then you'll need to use it with TiddlyWeb. The problem is that most of the documentation for TiddlyWeb still refers to the old TiddlyWiki.&lt;/p&gt;
+&lt;p&gt;To support TiddlyWiki5, we'll need a version of the wiki which has the TiddlyWeb plugin already installed and configured. After that, some tweaking is necessary to get TiddlyWeb to provide what the wiki requires.&lt;/p&gt;
+&lt;h3&gt;Setting Up TiddlyWiki&lt;/h3&gt;
+&lt;p&gt;TiddlyWiki5 provides a command line tool via &lt;code&gt;npm&lt;/code&gt; that allows building custom versions of the wiki. In fact, it comes with templates, called "editions", that we can use for our setup. Assuming you already have it installed, create the wiki using&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;tiddlywiki mywiki --init tw5tank          # create wiki from template
+&lt;/pre&gt;
+
+
+&lt;p&gt;This creates a wiki intended for use with &lt;a href="https://tank.peermore.com/"&gt;Tank&lt;/a&gt;, which is built on top of TiddlyWeb. From here, you should look in &lt;code&gt;mywiki/tiddlers/system&lt;/code&gt; which contain the entries for &lt;code&gt;SiteTitle&lt;/code&gt;, &lt;code&gt;SiteSubtitle&lt;/code&gt;, &lt;code&gt;DefaultTiddlers&lt;/code&gt;, and &lt;code&gt;tiddlyweb-host&lt;/code&gt;. The first 3 should be configured however you want. These are necessary because they're needed before the wiki can load them from the server. &lt;code&gt;tiddlyweb-host&lt;/code&gt; contains the location of the TiddlyWeb server, this should be &lt;code&gt;http://localhost:8080/&lt;/code&gt; if you're just testing locally. With everything configured, you can build the new wiki by running&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;tiddlywiki mywiki --build
+&lt;/pre&gt;
+
+
+&lt;p&gt;This will output the wiki to &lt;code&gt;mywiki/output/tw5tank.html&lt;/code&gt;. You can now serve it using your favorite local webserver, like &lt;code&gt;python -m http.server&lt;/code&gt;.&lt;/p&gt;
+&lt;h3&gt;Setting Up TiddlyWeb&lt;/h3&gt;
+&lt;p&gt;The TiddlyWeb tutorial recommends using &lt;code&gt;tiddlywebwiki&lt;/code&gt; which has all the plugins setup for a nice wiki instance for the old TiddlyWiki. It has a lot of features that aren't really needed, so we won't go with that. So first, we'll need to install TiddlyWeb and any plugins we might want to use.&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;pip install tiddlyweb tiddlywebplugins.status tiddlywebplugins.cherrypy tiddlywebplugins.cors
+&lt;/pre&gt;
+
+
+&lt;p&gt;Next, we'll need the tiddlyweb configuration in &lt;code&gt;tiddlywebconfig.py&lt;/code&gt;&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;&lt;span class="c"&gt;# A basic configuration.&lt;/span&gt;
+&lt;span class="c"&gt;# `pydoc tiddlyweb.config` for details on configuration items.&lt;/span&gt;
+
+&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;tiddlywebplugins.status&lt;/span&gt;
+
+&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
+    &lt;span class="s"&gt;'system_plugins'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;'tiddlywebplugins.status'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;'tiddlywebplugins.cors'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
+    &lt;span class="s"&gt;'secret'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;'36c98d6d14618c79f0ed2d49cd1b9e272d8d4bd0'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
+    &lt;span class="s"&gt;'wsgi_server'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;'tiddlywebplugins.cherrypy'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
+    &lt;span class="s"&gt;'cors.enable_non_simple'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
+&lt;span class="p"&gt;}&lt;/span&gt;
+
+&lt;span class="n"&gt;original_gather_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tiddlywebplugins&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_gather_data&lt;/span&gt;
+
+&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_status_gather_data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
+    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;original_gather_data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
+    &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;'space'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;'recipe'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;'default'&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
+    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;
+
+&lt;span class="n"&gt;tiddlywebplugins&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_gather_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;_status_gather_data&lt;/span&gt;
+&lt;/pre&gt;
+
+
+&lt;p&gt;The tweaks involved are:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;using the status plugin which the wiki requires&lt;/li&gt;
+&lt;li&gt;monkeypatching the status plugin for the wiki to use the correct "recipe"&lt;/li&gt;
+&lt;li&gt;using cherrypy server instead of the buggy default one&lt;/li&gt;
+&lt;li&gt;using cors since we're not hosting the wiki itself on the same server&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;With that, we just need to create the store that will hold our data&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;twanager recipe default &amp;lt;&amp;lt;EOF
+desc: standard TiddlyWebWiki environment
+policy: {"read": [], "create": [], "manage": ["R:ADMIN"], "accept": [], "write": ["R:ADMIN"], "owner": "administrator", "delete": ["R:ADMIN"]}
+
+/bags/default/tiddlers
+EOF
+
+twanager bag default &amp;lt;&amp;lt;EOF
+{"policy": {"read": [], "create": [], "manage": ["R:ADMIN"], "accept": [], "write": [], "owner": "administrator", "delete": []}}
+EOF
+&lt;/pre&gt;
+
+
+&lt;p&gt;Finally, we can start the TiddlyWeb server&lt;/p&gt;
+&lt;pre class="code literal-block"&gt;twanager server
+&lt;/pre&gt;
+
+
+&lt;h3&gt;Putting it all together&lt;/h3&gt;
+&lt;p&gt;Once you have the TiddlyWeb server running, you can just go to wherever you're hosting the wiki html and it should work. You can try creating some posts, and the check mark on the sidebar should be red for a while and then turn black. Once that's done it's saved. You can refresh your browser and your posts should still be there.&lt;/p&gt;
+&lt;p&gt;At this point, you can start customizing your TiddlyWeb instance, by changing your store to something like a database, or adding authorization. You can also tweak the server setup so you won't need CORS anymore.&lt;/p&gt;
+&lt;p&gt;TiddlyWiki5 is still relatively new. I hope that eventually, support for server-side and the plugin ecosystem grows to be as great as the old TiddlyWiki.&lt;/p&gt;&lt;/div&gt;</description><category>sysadmin tiddlywiki</category><guid>http://pleasantprogrammer.com/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html</guid><pubDate>Thu, 24 Dec 2015 06:48:20 GMT</pubDate></item><item><title>Is My Terminal Window Active?</title><link>http://pleasantprogrammer.com/posts/is-my-terminal-window-active.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;I've been working in OSX for almost 3 years now, but I recently switched back to Linux because of all the problems people encountered with Yosemite. There are some things I missed from OSX though. One of which is &lt;a href="https://github.com/marzocchi/zsh-notify"&gt;zsh-notify&lt;/a&gt;. It's a zsh plugin that alerts you if your long-running task is complete, and whether it failed or not.&lt;/p&gt;
 &lt;p&gt;It's pretty convenient when you're compiling something and then go on to browse reddit while waiting. Usually, I spend too much time just reading and forget about the compilation entirely. With the plugin, I get the notification and maybe go back to work.&lt;/p&gt;
 &lt;p&gt;One nice feature it has is that if you're currently looking at the terminal window of the job that just finished, it won't notify you. It only notifies on windows that aren't currently in focus. To do this, it has to actually talk to Terminal.app or iTerm2 to see if the window and tab are active.&lt;/p&gt;
 &lt;p&gt;This is alright in OSX since those 2 are the generally most used terminal emulators. On Linux though, everyone has their own favorite terminal. Given that, I figured I could probably rely on talking to X to see if the window is active instead of each single terminal emulator. X can't tell if the tab is active though, but I don't use tabs in my current setup so it should still be good.&lt;/p&gt;
@@ -124,58 +199,4 @@ sed -i .bak &lt;span class="s1"&gt;'/^72/ s/,600/,60/'&lt;/span&gt; frequencies.
 &lt;p&gt;An interesting thing you &lt;em&gt;can&lt;/em&gt; do with the Transit Wand data is import it into GTFS Editor to make a new route. You don't even have to manually download and upload the data. Just type in your 6-digit identifier and it will give you a list of routes you've captured via Transit Wand. This is wonderful as you get all the stop data, as well as the shape of the route.&lt;/p&gt;
 &lt;p&gt;I imagine these two tools were how the DOTC came up with all the GTFS data we have now. What I don't understand is why the shape data isn't present. Importing from Transit Wand already gets you shape data. There are even facilities to edit the shape within the editor if clean up is necessary. The only problem I saw was the fact that you can't easily move stops, you have to input coordinates to change the position.&lt;/p&gt;
 &lt;p&gt;It &lt;em&gt;might&lt;/em&gt; also be possible that when the DOTC was still collecting the data, the route collection or editing features weren't present yet. That would just be lame and depressing though.&lt;/p&gt;
-&lt;p&gt;Overall, Transit Wand does what it's supposed to do. You collect data, and then upload it to a server. There is a lot of room for improvement though. It would be nice to have a better API that allows access to more of the data. Building in analysis tools for the ridership data might also be a welcome thing. I imagine it would also be great if you could encourage people to use the app and upload their own trips.&lt;/p&gt;&lt;/div&gt;</description><category>philippine-transit-app</category><category>programming</category><guid>http://pleasantprogrammer.com/posts/transit-wand.html</guid><pubDate>Mon, 15 Jul 2013 14:45:20 GMT</pubDate></item><item><title>Fare Data</title><link>http://pleasantprogrammer.com/posts/fare-data.html</link><dc:creator>Thomas Dy</dc:creator><description>&lt;div&gt;&lt;p&gt;As part of the data released by the DOTC, we also have the &lt;a href="http://philippine-transit.hackathome.com/dataset-philippines-transit-information-service-gtfs/"&gt;fare matrix&lt;/a&gt; for aircon buses, ordinary buses and jeeps. All as wonderful images. The data is also actually available from the &lt;a href="http://ltfrb.gov.ph/main/farerates"&gt;LTFRB website&lt;/a&gt;. Generally, the fare scheme is represented as "pay &lt;em&gt;X&lt;/em&gt; pesos for the first &lt;em&gt;Y&lt;/em&gt; kilometers, pay &lt;em&gt;Z&lt;/em&gt; for every succeeding kilometer." Instead of a table, we can simply represent this as a formula instead,&lt;/p&gt;
-&lt;pre class="code literal-block"&gt;base_fare + (distance - initial) * per_km
-&lt;/pre&gt;
-
-
-&lt;p&gt;The relevant values for the three services are:&lt;/p&gt;
-&lt;table&gt;
-&lt;thead&gt;
-  &lt;tr&gt;
-    &lt;td&gt;type&lt;/td&gt;
-    &lt;td&gt;base_fare&lt;/td&gt;
-    &lt;td&gt;initial&lt;/td&gt;
-    &lt;td&gt;per_km&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-  &lt;tr&gt;
-    &lt;td&gt;bus aircon&lt;/td&gt;
-    &lt;td&gt;12.00&lt;/td&gt;
-    &lt;td&gt;5 km&lt;/td&gt;
-    &lt;td&gt;2.20&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;bus ordinary&lt;/td&gt;
-    &lt;td&gt;10.00&lt;/td&gt;
-    &lt;td&gt;5 km&lt;/td&gt;
-    &lt;td&gt;1.85&lt;/td&gt;
-  &lt;/tr&gt;
-  &lt;tr&gt;
-    &lt;td&gt;jeep aircon&lt;/td&gt;
-    &lt;td&gt;8.00&lt;/td&gt;
-    &lt;td&gt;4 km&lt;/td&gt;
-    &lt;td&gt;1.40&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-
-&lt;p&gt;It isn't as simple as that though. Fares are also rounded to the nearest 25 centavos. So we'd need to round them off correctly. This can be achieved by doing,&lt;/p&gt;
-&lt;pre class="code literal-block"&gt;round(calculated_fare * 4.0)/4.0
-&lt;/pre&gt;
-
-
-&lt;p&gt;There's also the discounted fare for students, senior citizens and persons with disability. They get 20% off the fare (prior to rounding) and the resulting fare is rounded off as well.&lt;/p&gt;
-&lt;p&gt;Doing just this, we actually do get the same results as the fare matrices in the image for the most part. There are some discrepancies with the discounted jeep fares. I've tried to resolve it by tweaking around with the formulas, but it really doesn't make sense in any way. I presume these were manually adjusted for one reason or another.&lt;/p&gt;
-&lt;p&gt;Here's a &lt;a href="http://pleasantprogrammer.com/uploads/farematrix.rb"&gt;script&lt;/a&gt; that generates CSVs of all the three fare matrices. If you're too lazy to run it, here are links to the &lt;a href="http://pleasantprogrammer.com/uploads/pub_aircon.csv"&gt;aircon bus&lt;/a&gt;, &lt;a href="http://pleasantprogrammer.com/uploads/pub_ordinary.csv"&gt;ordinary bus&lt;/a&gt; and &lt;a href="http://pleasantprogrammer.com/uploads/puj.csv"&gt;jeep&lt;/a&gt; fare matrices.&lt;/p&gt;
-&lt;h4&gt;GTFS compatibility&lt;/h4&gt;
-&lt;p&gt;As is, the provided GTFS data does not have any fare data. I imagine this is because the existing spec doesn't have good support for distance-based fares like we have in the Philippines. Judging from the &lt;a href="https://code.google.com/p/googletransitdatafeed/wiki/FareExamples"&gt;fare examples&lt;/a&gt;, the only reasonable way we could implement distance-based fares is following example 6. This would involve setting a fare for each possible pair of stops based on the distance between them. This isn't exactly ideal. In fact, the people originally working on the DOTC project have voiced &lt;a href="https://groups.google.com/forum/#!topic/gtfs-fare-wg/V63xRSnQJGw"&gt;issues&lt;/a&gt; and made &lt;a href="https://groups.google.com/forum/#!msg/gtfs-changes/uybrAokZ9Cg/rqlzXdMypUgJ"&gt;proposals&lt;/a&gt; for having distance-based fares included into GTFS.&lt;/p&gt;
-&lt;p&gt;Apparently, public transit fares are a really complicated thing. You have fares based on distance, number of stops passed through, and transfers which may or may not cost extra. Not only that, you might have discounted fares, or first-class vs economy fares. The community will want to get it right before it's formally included in the spec. You can see the current state of the consolidated &lt;a href="https://docs.google.com/document/d/1mK3--o5g4-3cCXaqmch92U63JTwChh0L2VCmcDViIlM/edit"&gt;GTFS fare proposal here&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;Even in it's proposal form though, we might have hope of being able to see these being used. There's currently a &lt;a href="https://github.com/OneBusAway/onebusaway-gtfs-modules/pull/30"&gt;pull request&lt;/a&gt; for supporting the distance-based fare scheme into the OneBusAway libraries. The libraries actually used by GTFS Editor and OpenTripPlanner for working with GTFS data.&lt;/p&gt;
-&lt;h4&gt;Remaining Problems&lt;/h4&gt;
-&lt;p&gt;Given all that, it would probably still be a long way before this allows us to make a really good routing app. We still don't have shape data, so the distance estimates would really be rough estimates at best. There's no support for rounding to the nearest centavo. I realize that's just nitpicking, but if we want something truly polished, even that has to be taken care of.&lt;/p&gt;
-&lt;p&gt;We also don't know if the jeeps or buses strictly follow the distance-based scheme. After all, if you can get on and off anywhere, you can't really measure distance that exactly. I assume they generally work off the notion of "zones" than actual distance travelled. In that sense, they work more similarly to the LRT which has fares based on how many stops you pass. For jeeps and buses, your fare is probably based more on how many "zones" you pass through.&lt;/p&gt;
-&lt;h4&gt;Conclusion&lt;/h4&gt;
-&lt;p&gt;Philip, a co-worker of mine at By Implication, had suggested that we might want to use a different model than what the GTFS proposes. I have to agree with him. At this point, the GTFS doesn't really fit with our system. But I do think that open data and standards are great. In fact, I applaud the developers who made proposals for the fare system, as those are great first steps towards making the GTFS a more universal standard.&lt;/p&gt;
-&lt;p&gt;Side note: I'd also actually really like to hear about the DOTC developers' experience with the project. It would be nice if they had a devblog.&lt;/p&gt;&lt;/div&gt;</description><category>philippine-transit-app</category><category>programming</category><guid>http://pleasantprogrammer.com/posts/fare-data.html</guid><pubDate>Sat, 13 Jul 2013 13:15:09 GMT</pubDate></item></channel></rss>
+&lt;p&gt;Overall, Transit Wand does what it's supposed to do. You collect data, and then upload it to a server. There is a lot of room for improvement though. It would be nice to have a better API that allows access to more of the data. Building in analysis tools for the ridership data might also be a welcome thing. I imagine it would also be great if you could encourage people to use the app and upload their own trips.&lt;/p&gt;&lt;/div&gt;</description><category>philippine-transit-app</category><category>programming</category><guid>http://pleasantprogrammer.com/posts/transit-wand.html</guid><pubDate>Mon, 15 Jul 2013 14:45:20 GMT</pubDate></item></channel></rss>

+ 42 - 29
output/sitemap.xml

@@ -1,123 +1,136 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <urlset
     xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+    xmlns:xhtml="http://www.w3.org/1999/xhtml"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
                         http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
   <loc>http://pleasantprogrammer.com/2013/index.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/2015/index.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/archive.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/categories/index.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/categories/lets-debug.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/categories/philippine-transit-app.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/categories/programming.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
+ </url>
+ <url>
+  <loc>http://pleasantprogrammer.com/categories/sysadmin-tiddlywiki.html</loc>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/categories/sysadmin.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/categories/systemd.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/galleries/index.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/galleries/transit/index.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/index-1.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/index-2.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
+ </url>
+ <url>
+  <loc>http://pleasantprogrammer.com/index-3.html</loc>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/index.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/console-keymap-switching.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/elevation-data-in-otp.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/fare-data.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/geocoding-services.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/graphserver.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/gtfs-editor.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/highways-in-otp.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/is-my-terminal-window-active.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/jeep-and-bus-schedules.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/jeepney-and-bus-routes.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/one-bus-or-maybe-jeep-away.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/open-trip-planner.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/philippine-transit-app-challenge.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/removing-pldtmydslbiz-from-the-zyxel-p-2612hnu.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
+ </url>
+ <url>
+  <loc>http://pleasantprogrammer.com/posts/tiddlywiki-in-the-sky-or-tiddlyweb-for-tw5.html</loc>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
  <url>
   <loc>http://pleasantprogrammer.com/posts/transit-wand.html</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </url>
 </urlset>

+ 14 - 9
output/sitemapindex.xml

@@ -1,43 +1,48 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <sitemapindex
     xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+    xmlns:xhtml="http://www.w3.org/1999/xhtml"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
                         http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <sitemap>
   <loc>http://pleasantprogrammer.com/categories/lets-debug.xml</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </sitemap>
  <sitemap>
   <loc>http://pleasantprogrammer.com/categories/philippine-transit-app.xml</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </sitemap>
  <sitemap>
   <loc>http://pleasantprogrammer.com/categories/programming.xml</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
+ </sitemap>
+ <sitemap>
+  <loc>http://pleasantprogrammer.com/categories/sysadmin-tiddlywiki.xml</loc>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </sitemap>
  <sitemap>
   <loc>http://pleasantprogrammer.com/categories/sysadmin.xml</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </sitemap>
  <sitemap>
   <loc>http://pleasantprogrammer.com/categories/systemd.xml</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </sitemap>
  <sitemap>
   <loc>http://pleasantprogrammer.com/galleries/rss.xml</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </sitemap>
  <sitemap>
   <loc>http://pleasantprogrammer.com/galleries/transit/rss.xml</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </sitemap>
  <sitemap>
   <loc>http://pleasantprogrammer.com/rss.xml</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </sitemap>
  <sitemap>
   <loc>http://pleasantprogrammer.com/sitemap.xml</loc>
-  <lastmod>2015-06-07</lastmod>
+  <lastmod>2015-12-24T07:49:00Z</lastmod>
  </sitemap>
 </sitemapindex>

Some files were not shown because too many files changed in this diff