Skip to content
Browse files

adding back in style for old highlight tags

  • Loading branch information...
1 parent f99f7ca commit 40aafed8f6852694dbec5934848488801cba35ba James Pozdena committed Dec 3, 2011
View
2 _config.yml
@@ -10,7 +10,7 @@ plugins: ./_plugins
future: true
lsi: false
-pygments: false
+pygments: true
markdown: maruku
permalink: date
View
1 _layouts/default.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
33 _site/2009/01/30/hast_to_url_params.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
@@ -41,11 +42,37 @@ <h1 id='post_title'>
</h1>
<div id="post">
<p>Google couldn’t find me a good one. So I made this one:</p>
-<p>Liquid error: undefined method `join&#8217; for #<String:0x007f92d412f9a8></p>
+<div class="highlight"><pre><code class="ruby"> <span class="k">class</span> <span class="nc">Hash</span>
+ <span class="k">def</span> <span class="nf">to_url_params</span>
+ <span class="n">elements</span> <span class="o">=</span> <span class="o">[]</span>
+ <span class="nb">self</span><span class="o">.</span><span class="n">each_pair</span> <span class="k">do</span> <span class="o">|</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="o">|</span>
+ <span class="n">elements</span> <span class="o">&lt;&lt;</span> <span class="n">param_for</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span><span class="o">.</span><span class="n">flatten</span>
+ <span class="k">end</span>
+ <span class="n">elements</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="s1">&#39;&amp;&#39;</span><span class="p">)</span>
+ <span class="k">end</span>
+ <span class="kp">private</span>
+ <span class="k">def</span> <span class="nf">param_for</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">,</span> <span class="n">parent</span> <span class="o">=</span> <span class="kp">nil</span><span class="p">)</span>
+ <span class="k">if</span> <span class="n">value</span><span class="o">.</span><span class="n">is_a?</span><span class="p">(</span><span class="no">Hash</span><span class="p">)</span>
+ <span class="n">temp</span> <span class="o">=</span> <span class="o">[]</span>
+ <span class="n">value</span><span class="o">.</span><span class="n">each_pair</span> <span class="k">do</span> <span class="o">|</span><span class="n">key2</span><span class="p">,</span> <span class="n">value2</span><span class="o">|</span>
+ <span class="n">temp</span> <span class="o">&lt;&lt;</span> <span class="n">param_for</span><span class="p">(</span><span class="n">key2</span><span class="p">,</span> <span class="n">value2</span><span class="p">,</span> <span class="n">parent</span> <span class="p">?</span> <span class="n">parent</span> <span class="o">+</span> <span class="s2">&quot;[</span><span class="si">#{</span><span class="n">key</span><span class="si">}</span><span class="s2">]&quot;</span> <span class="p">:</span> <span class="n">key</span><span class="o">.</span><span class="n">to_s</span><span class="p">)</span>
+ <span class="k">end</span>
+ <span class="k">return</span> <span class="n">temp</span>
+ <span class="k">else</span>
+ <span class="k">return</span> <span class="o">[</span><span class="s2">&quot;</span><span class="si">#{</span><span class="n">parent</span> <span class="p">?</span> <span class="n">parent</span> <span class="o">+</span> <span class="s2">&quot;[</span><span class="si">#{</span><span class="n">key</span><span class="si">}</span><span class="s2">]&quot;</span> <span class="p">:</span> <span class="n">key</span><span class="o">.</span><span class="n">to_s</span><span class="si">}</span><span class="s2">=</span><span class="si">#{</span><span class="n">value</span><span class="si">}</span><span class="s2">&quot;</span><span class="o">]</span>
+ <span class="k">end</span>
+ <span class="k">end</span>
+ <span class="k">end</span>
+</code></pre>
+</div>
<p>Will transform:</p>
-<p>Liquid error: undefined method `join&#8217; for &#8220;\n {:person =&gt;{:name =&gt; &#8216;Bobby&#8217;, :age=&gt;&#8217;28&#8217;}}\n&#8221;:String</p>
+<div class="highlight"><pre><code class="ruby"> <span class="p">{</span><span class="ss">:person</span> <span class="o">=&gt;</span><span class="p">{</span><span class="ss">:name</span> <span class="o">=&gt;</span> <span class="s1">&#39;Bobby&#39;</span><span class="p">,</span> <span class="ss">:age</span><span class="o">=&gt;</span><span class="s1">&#39;28&#39;</span><span class="p">}}</span>
+</code></pre>
+</div>
<p>Into:</p>
-<p>Liquid error: undefined method `join&#8217; for <a href="String">\n person[name]=Bobby&amp;person[age]=28\n</a></p>
+<div class="highlight"><pre><code class="ruby"> <span class="n">person</span><span class="o">[</span><span class="nb">name</span><span class="o">]=</span><span class="no">Bobby</span><span class="o">&amp;</span><span class="n">person</span><span class="o">[</span><span class="n">age</span><span class="o">]=</span><span class="mi">28</span>
+</code></pre>
+</div>
</div>
<script type="text/javascript">
View
35 _site/2009/02/17/tk_cabinet_fun.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
@@ -43,7 +44,39 @@ <h1 id='post_title'>
<p class="date">17 Feb 2009</p>
<p>I started playing around with Tokyo Cabinet and Rufus-Tokyo tonight. I have to say I was pretty impressed. Tokyo Cabinet (with the help of rufus-tokyo) is so dead easy to use. It took me about an hour to install, learn and get a dead simple rack app up and running.</p>
<p>I made a quick and dirty logger:</p>
-<p>Liquid error: undefined method `join&#8217; for #<String:0x007f92d4120520></p>
+<div class="highlight"><pre><code class="ruby"><span class="nb">require</span> <span class="s1">&#39;rubygems&#39;</span>
+<span class="nb">require</span> <span class="s1">&#39;rack&#39;</span>
+<span class="nb">require</span> <span class="s1">&#39;rufus/tokyo&#39;</span>
+
+<span class="k">class</span> <span class="nc">Logger</span>
+
+ <span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="n">t</span><span class="p">)</span>
+ <span class="vi">@t</span> <span class="o">=</span> <span class="n">t</span>
+ <span class="k">end</span>
+
+ <span class="k">def</span> <span class="nf">call</span><span class="p">(</span><span class="n">env</span><span class="p">)</span>
+ <span class="vi">@t</span><span class="o">[</span><span class="no">Time</span><span class="o">.</span><span class="n">now</span><span class="o">.</span><span class="n">to_i</span><span class="o">.</span><span class="n">to_s</span><span class="o">]</span> <span class="o">=</span> <span class="p">{</span> <span class="s1">&#39;time&#39;</span> <span class="o">=&gt;</span> <span class="no">Time</span><span class="o">.</span><span class="n">now</span><span class="o">.</span><span class="n">to_i</span><span class="o">.</span><span class="n">to_s</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span> <span class="o">=&gt;</span> <span class="n">env</span><span class="o">.</span><span class="n">inspect</span> <span class="p">}</span>
+ <span class="n">array</span> <span class="o">=</span> <span class="vi">@t</span><span class="o">.</span><span class="n">query</span> <span class="p">{</span> <span class="o">|</span><span class="n">q</span><span class="o">|</span>
+ <span class="n">q</span><span class="o">.</span><span class="n">order_by</span> <span class="s1">&#39;time&#39;</span>
+ <span class="p">}</span>
+ <span class="n">output</span> <span class="o">=</span> <span class="s2">&quot;The data:&quot;</span>
+ <span class="n">array</span><span class="o">.</span><span class="n">each</span> <span class="p">{</span> <span class="o">|</span><span class="n">d</span><span class="o">|</span> <span class="n">output</span> <span class="o">&lt;&lt;</span> <span class="s2">&quot;&lt;br/&gt;</span><span class="si">#{</span><span class="n">d</span><span class="o">.</span><span class="n">inspect</span><span class="si">}</span><span class="s2">&quot;</span> <span class="p">}</span>
+ <span class="o">[</span><span class="mi">200</span><span class="p">,</span> <span class="p">{</span><span class="s2">&quot;Content-Type&quot;</span> <span class="o">=&gt;</span> <span class="s2">&quot;text/html&quot;</span><span class="p">},</span> <span class="n">output</span><span class="o">]</span>
+ <span class="k">end</span>
+
+<span class="k">end</span>
+
+<span class="n">rackApp</span> <span class="o">=</span> <span class="no">Rack</span><span class="o">::</span><span class="no">Builder</span><span class="o">.</span><span class="n">new</span> <span class="k">do</span>
+
+ <span class="n">map</span> <span class="s1">&#39;/&#39;</span> <span class="k">do</span>
+ <span class="n">run</span> <span class="no">Logger</span><span class="o">.</span><span class="n">new</span><span class="p">(</span><span class="no">Rufus</span><span class="o">::</span><span class="no">Tokyo</span><span class="o">::</span><span class="no">Table</span><span class="o">.</span><span class="n">new</span><span class="p">(</span><span class="s1">&#39;visitors.tdb&#39;</span><span class="p">))</span>
+ <span class="k">end</span>
+
+<span class="k">end</span>
+
+<span class="no">Rack</span><span class="o">::</span><span class="no">Handler</span><span class="o">::</span><span class="no">Mongrel</span><span class="o">.</span><span class="n">run</span> <span class="n">rackApp</span><span class="p">,</span> <span class="ss">:Port</span> <span class="o">=&gt;</span> <span class="mi">9292</span>
+</code></pre>
+</div>
</div>
<script type="text/javascript">
View
98 _site/2009/02/18/tk_cabinet_fun2.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
@@ -109,7 +110,102 @@ <h1 id='post_title'>
</tr>
</table>
<p>Code used for beachmarking:</p>
-<p>Liquid error: undefined method `join&#8217; for #<String:0x007f92d40f27b0></p>
+<div class="highlight"><pre><code class="ruby"><span class="nb">require</span> <span class="s1">&#39;rubygems&#39;</span>
+<span class="nb">require</span> <span class="s1">&#39;fastercsv&#39;</span>
+
+<span class="nb">require</span> <span class="s2">&quot;tokyocabinet&quot;</span>
+<span class="nb">require</span> <span class="s1">&#39;rufus/tokyo&#39;</span>
+<span class="nb">require</span> <span class="s1">&#39;dm-core&#39;</span>
+
+<span class="nb">require</span> <span class="s1">&#39;benchmark&#39;</span>
+
+<span class="kp">include</span> <span class="no">TokyoCabinet</span>
+
+<span class="c1"># setup for btree </span>
+<span class="sb">`rm btree.bdb`</span>
+<span class="n">bdb</span> <span class="o">=</span> <span class="no">BDB</span><span class="o">::</span><span class="kp">new</span>
+<span class="n">bdb</span><span class="o">.</span><span class="n">open</span><span class="p">(</span><span class="s2">&quot;btree.bdb&quot;</span><span class="p">,</span> <span class="no">BDB</span><span class="o">::</span><span class="no">OWRITER</span> <span class="o">|</span> <span class="no">BDB</span><span class="o">::</span><span class="no">OCREAT</span><span class="p">)</span>
+
+<span class="c1"># setup for hash </span>
+<span class="sb">`rm hash.tdb`</span>
+<span class="n">t</span> <span class="o">=</span> <span class="no">Rufus</span><span class="o">::</span><span class="no">Tokyo</span><span class="o">::</span><span class="no">Table</span><span class="o">.</span><span class="n">new</span><span class="p">(</span><span class="s1">&#39;hash.tdb&#39;</span><span class="p">)</span>
+
+<span class="c1"># setup for DataMapper </span>
+
+<span class="no">DataMapper</span><span class="o">.</span><span class="n">setup</span><span class="p">(</span><span class="ss">:default</span><span class="p">,</span> <span class="s1">&#39;postgres://localhost/dm_core_test&#39;</span><span class="p">)</span>
+
+<span class="k">class</span> <span class="nc">Cell</span>
+ <span class="kp">include</span> <span class="no">DataMapper</span><span class="o">::</span><span class="no">Resource</span>
+
+ <span class="n">property</span> <span class="ss">:id</span><span class="p">,</span> <span class="no">Serial</span>
+ <span class="n">property</span> <span class="ss">:x_cord</span><span class="p">,</span> <span class="nb">Integer</span>
+ <span class="n">property</span> <span class="ss">:y_cord</span><span class="p">,</span> <span class="nb">Integer</span>
+ <span class="n">property</span> <span class="ss">:value</span><span class="p">,</span> <span class="nb">String</span>
+<span class="k">end</span>
+
+<span class="no">Cell</span><span class="o">.</span><span class="n">auto_migrate!</span>
+
+<span class="n">x</span> <span class="o">=</span> <span class="mi">0</span>
+<span class="n">y</span> <span class="o">=</span> <span class="mi">0</span>
+
+<span class="no">Benchmark</span><span class="o">.</span><span class="n">bm</span> <span class="k">do</span> <span class="o">|</span><span class="n">bench</span><span class="o">|</span>
+ <span class="n">bench</span><span class="o">.</span><span class="n">report</span><span class="p">(</span><span class="s2">&quot;Tokyo: B-tree&quot;</span><span class="p">)</span> <span class="p">{</span>
+ <span class="no">FasterCSV</span><span class="o">.</span><span class="n">foreach</span><span class="p">(</span><span class="s2">&quot;big.csv&quot;</span><span class="p">)</span> <span class="k">do</span> <span class="o">|</span><span class="n">row</span><span class="o">|</span>
+ <span class="n">y</span> <span class="o">+=</span> <span class="mi">1</span>
+ <span class="n">row</span><span class="o">.</span><span class="n">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">cell</span><span class="o">|</span>
+ <span class="n">x</span> <span class="o">+=</span> <span class="mi">1</span>
+ <span class="n">bdb</span><span class="o">.</span><span class="n">put</span><span class="p">(</span><span class="s2">&quot;</span><span class="si">#{</span><span class="n">x</span><span class="si">}</span><span class="s2">,</span><span class="si">#{</span><span class="n">y</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">,</span> <span class="s2">&quot;</span><span class="si">#{</span><span class="n">cell</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
+ <span class="k">end</span>
+ <span class="n">x</span> <span class="o">=</span> <span class="mi">0</span>
+ <span class="k">end</span>
+ <span class="n">y</span> <span class="o">=</span> <span class="mi">0</span>
+ <span class="p">}</span>
+ <span class="n">bench</span><span class="o">.</span><span class="n">report</span><span class="p">(</span><span class="s2">&quot;Tokyo: Rufus&quot;</span><span class="p">)</span> <span class="p">{</span>
+ <span class="no">FasterCSV</span><span class="o">.</span><span class="n">foreach</span><span class="p">(</span><span class="s2">&quot;big.csv&quot;</span><span class="p">)</span> <span class="k">do</span> <span class="o">|</span><span class="n">row</span><span class="o">|</span>
+ <span class="n">y</span> <span class="o">+=</span> <span class="mi">1</span>
+ <span class="n">row</span><span class="o">.</span><span class="n">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">cell</span><span class="o">|</span>
+ <span class="n">x</span> <span class="o">+=</span> <span class="mi">1</span>
+ <span class="n">t</span><span class="o">[</span><span class="n">cell</span><span class="o">.</span><span class="n">to_s</span><span class="o">]</span> <span class="o">=</span> <span class="p">{</span> <span class="s1">&#39;x&#39;</span> <span class="o">=&gt;</span> <span class="n">x</span><span class="o">.</span><span class="n">to_s</span><span class="p">,</span> <span class="s1">&#39;y&#39;</span> <span class="o">=&gt;</span> <span class="n">y</span><span class="o">.</span><span class="n">to_s</span> <span class="p">}</span>
+ <span class="k">end</span>
+ <span class="n">x</span> <span class="o">=</span> <span class="mi">0</span>
+ <span class="k">end</span>
+ <span class="n">y</span> <span class="o">=</span> <span class="mi">0</span>
+ <span class="p">}</span>
+ <span class="n">bench</span><span class="o">.</span><span class="n">report</span><span class="p">(</span><span class="s2">&quot;DataMapper: Postgres&quot;</span><span class="p">)</span> <span class="p">{</span>
+ <span class="no">FasterCSV</span><span class="o">.</span><span class="n">foreach</span><span class="p">(</span><span class="s2">&quot;big.csv&quot;</span><span class="p">)</span> <span class="k">do</span> <span class="o">|</span><span class="n">row</span><span class="o">|</span>
+ <span class="n">y</span> <span class="o">+=</span> <span class="mi">1</span>
+ <span class="n">row</span><span class="o">.</span><span class="n">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">cell</span><span class="o">|</span>
+ <span class="n">x</span> <span class="o">+=</span> <span class="mi">1</span>
+ <span class="no">Cell</span><span class="o">.</span><span class="n">create</span><span class="p">(</span> <span class="ss">:x_cord</span> <span class="o">=&gt;</span> <span class="n">x</span><span class="p">,</span> <span class="ss">:y_cord</span> <span class="o">=&gt;</span> <span class="n">y</span><span class="p">,</span> <span class="ss">:value</span> <span class="o">=&gt;</span> <span class="n">cell</span><span class="o">.</span><span class="n">to_s</span><span class="p">)</span>
+ <span class="k">end</span>
+ <span class="n">x</span> <span class="o">=</span> <span class="mi">0</span>
+ <span class="k">end</span>
+ <span class="n">y</span> <span class="o">=</span> <span class="mi">0</span>
+ <span class="p">}</span>
+<span class="k">end</span>
+
+<span class="no">Benchmark</span><span class="o">.</span><span class="n">bm</span> <span class="k">do</span> <span class="o">|</span><span class="n">bench</span><span class="o">|</span>
+ <span class="n">bench</span><span class="o">.</span><span class="n">report</span><span class="p">(</span><span class="s2">&quot;Tokyo: B-tree&quot;</span><span class="p">)</span> <span class="p">{</span>
+ <span class="mi">100</span><span class="o">.</span><span class="n">times</span> <span class="k">do</span> <span class="o">|</span><span class="n">x</span><span class="o">|</span>
+ <span class="n">bdb</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;</span><span class="si">#{</span><span class="n">x</span><span class="o">+</span><span class="mi">1</span><span class="si">}</span><span class="s2">,</span><span class="si">#{</span><span class="n">x</span><span class="o">+</span><span class="mi">1</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
+ <span class="k">end</span>
+ <span class="p">}</span>
+ <span class="n">bench</span><span class="o">.</span><span class="n">report</span><span class="p">(</span><span class="s2">&quot;Tokyo: Rufus&quot;</span><span class="p">)</span> <span class="p">{</span>
+ <span class="mi">100</span><span class="o">.</span><span class="n">times</span> <span class="k">do</span> <span class="o">|</span><span class="n">x</span><span class="o">|</span>
+ <span class="n">t</span><span class="o">.</span><span class="n">query</span> <span class="p">{</span> <span class="o">|</span><span class="n">q</span><span class="o">|</span>
+ <span class="n">q</span><span class="o">.</span><span class="n">add</span> <span class="s1">&#39;x&#39;</span><span class="p">,</span> <span class="ss">:equals</span><span class="p">,</span> <span class="p">(</span><span class="n">x</span><span class="o">+</span><span class="mi">1</span><span class="p">)</span><span class="o">.</span><span class="n">to_s</span>
+ <span class="n">q</span><span class="o">.</span><span class="n">add</span> <span class="s1">&#39;y&#39;</span><span class="p">,</span> <span class="ss">:equals</span><span class="p">,</span> <span class="p">(</span><span class="n">x</span><span class="o">+</span><span class="mi">1</span><span class="p">)</span><span class="o">.</span><span class="n">to_s</span>
+ <span class="p">}</span>
+ <span class="k">end</span>
+ <span class="p">}</span>
+ <span class="n">bench</span><span class="o">.</span><span class="n">report</span><span class="p">(</span><span class="s2">&quot;DataMapper: Postgres&quot;</span><span class="p">)</span> <span class="p">{</span>
+ <span class="mi">100</span><span class="o">.</span><span class="n">times</span> <span class="k">do</span> <span class="o">|</span><span class="n">x</span><span class="o">|</span>
+ <span class="no">Cell</span><span class="o">.</span><span class="n">first</span><span class="p">(</span><span class="ss">:x_cord</span> <span class="o">=&gt;</span> <span class="p">(</span><span class="n">x</span><span class="o">+</span><span class="mi">1</span><span class="p">),</span> <span class="ss">:y_cord</span> <span class="o">=&gt;</span> <span class="p">(</span><span class="n">x</span><span class="o">+</span><span class="mi">1</span><span class="p">))</span><span class="o">.</span><span class="n">value</span>
+ <span class="k">end</span>
+ <span class="p">}</span>
+<span class="k">end</span>
+</code></pre>
+</div>
</div>
<script type="text/javascript">
View
10 _site/2009/02/22/gruff_error.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
@@ -42,9 +43,14 @@ <h1 id='post_title'>
<div id="post">
<p>Ahhh this took forever to figure out…</p>
<p>First find out which fonts you can use:</p>
-<p>Liquid error: undefined method `join&#8217; for <a href="String">\njpoz$ identify -list font\n</a></p>
+<div class="highlight"><pre><code class="bash">jpoz<span class="nv">$ </span>identify -list font
+</code></pre>
+</div>
<p>Find one you like, then set the font path:</p>
-<p>Liquid error: undefined method `join&#8217; for #<String:0x007f92d40bd6c8></p>
+<div class="highlight"><pre><code class="ruby"><span class="n">g</span> <span class="o">=</span> <span class="no">Gruff</span><span class="o">::</span><span class="no">Line</span><span class="o">.</span><span class="n">new</span>
+<span class="n">g</span><span class="o">.</span><span class="n">font</span> <span class="o">=</span> <span class="s2">&quot;/Library/Fonts/Arial Bold.ttf&quot;</span>
+</code></pre>
+</div>
<p>Stupid freakin’ ImageMagick</p>
</div>
View
8 _site/2009/03/05/jekyll_blog_hooks.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
@@ -44,7 +45,12 @@ <h1 id='post_title'>
<p>If you don&#8217;t already have a Jekyll blog you can get started here: <a href="http://github.com/mojombo/jekyll/tree/master">github.com/mojombo/jekyll</a></p>
<p>After I got something I was happy with, I wanted to make it super easy to deploy my blog. I created a post commit hook so every time I commit my blog it would publish it up to my site.</p>
<p>Adding the following lines of code to .git/hooks/post-commit and making the file executable did the trick!</p>
-<p>Liquid error: undefined method `join&#8217; for #<String:0x007f92d40afd20></p>
+<div class="highlight"><pre><code class="bash"><span class="nb">echo</span> <span class="s2">&quot;--- Creating site ---&quot;</span>
+jekyll --pygments
+<span class="nb">echo</span> <span class="s2">&quot;--- Uploading site ---&quot;</span>
+scp -r _site/* <span class="o">(</span>username<span class="o">)</span>@<span class="o">(</span>example.com<span class="o">)</span>:directory/
+</code></pre>
+</div>
</div>
<script type="text/javascript">
View
1 _site/2009/03/20/the_deprecation_of_UIImagePIcker.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2009/05/20/uiglassbutton.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2009/05/24/iPhone-simulator-internal-error.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2009/06/29/Testing-run_later.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2009/07/14/APNS-gem.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2009/07/27/ruby-gradients.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2009/09/02/gmail-heroku-sinatra.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2009/09/29/string-to-leet.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2009/10/15/sqrt.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2009/11/11/Almaz.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2010/01/18/so_you_wanna_be_a_ruby_developer.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/2010/02/21/my-first-clojure.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
181 _site/atom.xml
@@ -4,7 +4,7 @@
<title>Jpoz - Blog</title>
<link href="http://blog.jpoz.com/atom.xml" rel="self"/>
<link href="http://blog.jpoz.com/"/>
- <updated>2011-12-03T14:43:57-08:00</updated>
+ <updated>2011-12-03T15:07:51-08:00</updated>
<id>http://blog.jpoz.com/</id>
<author>
<name>JPoz</name>
@@ -295,7 +295,12 @@ Method: _launchSimulatedExecutable:&lt;/p&gt;
&lt;p&gt;If you don&amp;#8217;t already have a Jekyll blog you can get started here: &lt;a href=&quot;http://github.com/mojombo/jekyll/tree/master&quot;&gt;github.com/mojombo/jekyll&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After I got something I was happy with, I wanted to make it super easy to deploy my blog. I created a post commit hook so every time I commit my blog it would publish it up to my site.&lt;/p&gt;
&lt;p&gt;Adding the following lines of code to .git/hooks/post-commit and making the file executable did the trick!&lt;/p&gt;
-&lt;p&gt;Liquid error: undefined method `join&amp;#8217; for #&lt;String:0x007f92d40afd20&gt;&lt;/p&gt;</content>
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;--- Creating site ---&amp;quot;&lt;/span&gt;
+jekyll --pygments
+&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;--- Uploading site ---&amp;quot;&lt;/span&gt;
+scp -r _site/* &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;username&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;@&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;example.com&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;:directory/
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;</content>
</entry>
<entry>
@@ -305,9 +310,14 @@ Method: _launchSimulatedExecutable:&lt;/p&gt;
<id>http://blog.jpoz.net/2009/02/22/gruff_error</id>
<content type="html">&lt;p&gt;Ahhh this took forever to figure out…&lt;/p&gt;
&lt;p&gt;First find out which fonts you can use:&lt;/p&gt;
-&lt;p&gt;Liquid error: undefined method `join&amp;#8217; for &lt;a href=&quot;String&quot;&gt;\njpoz$ identify -list font\n&lt;/a&gt;&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;jpoz&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;identify -list font
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;
&lt;p&gt;Find one you like, then set the font path:&lt;/p&gt;
-&lt;p&gt;Liquid error: undefined method `join&amp;#8217; for #&lt;String:0x007f92d40bd6c8&gt;&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;n&quot;&gt;g&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Gruff&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Line&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;g&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;font&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;/Library/Fonts/Arial Bold.ttf&amp;quot;&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;
&lt;p&gt;Stupid freakin’ ImageMagick&lt;/p&gt;</content>
</entry>
@@ -385,7 +395,102 @@ Method: _launchSimulatedExecutable:&lt;/p&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;Code used for beachmarking:&lt;/p&gt;
-&lt;p&gt;Liquid error: undefined method `join&amp;#8217; for #&lt;String:0x007f92d40f27b0&gt;&lt;/p&gt;</content>
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;rubygems&amp;#39;&lt;/span&gt;
+&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;fastercsv&amp;#39;&lt;/span&gt;
+
+&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;tokyocabinet&amp;quot;&lt;/span&gt;
+&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;rufus/tokyo&amp;#39;&lt;/span&gt;
+&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;dm-core&amp;#39;&lt;/span&gt;
+
+&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;benchmark&amp;#39;&lt;/span&gt;
+
+&lt;span class=&quot;kp&quot;&gt;include&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;TokyoCabinet&lt;/span&gt;
+
+&lt;span class=&quot;c1&quot;&gt;# setup for btree &lt;/span&gt;
+&lt;span class=&quot;sb&quot;&gt;`rm btree.bdb`&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;bdb&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;BDB&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;kp&quot;&gt;new&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;bdb&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;open&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;btree.bdb&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;BDB&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;OWRITER&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;BDB&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;OCREAT&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+
+&lt;span class=&quot;c1&quot;&gt;# setup for hash &lt;/span&gt;
+&lt;span class=&quot;sb&quot;&gt;`rm hash.tdb`&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;t&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Rufus&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Tokyo&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Table&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;hash.tdb&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+
+&lt;span class=&quot;c1&quot;&gt;# setup for DataMapper &lt;/span&gt;
+
+&lt;span class=&quot;no&quot;&gt;DataMapper&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;setup&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:default&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;postgres://localhost/dm_core_test&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+
+&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Cell&lt;/span&gt;
+ &lt;span class=&quot;kp&quot;&gt;include&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;DataMapper&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Resource&lt;/span&gt;
+
+ &lt;span class=&quot;n&quot;&gt;property&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:id&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Serial&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;property&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:x_cord&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Integer&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;property&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:y_cord&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Integer&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;property&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:value&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;String&lt;/span&gt;
+&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+
+&lt;span class=&quot;no&quot;&gt;Cell&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;auto_migrate!&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
+
+&lt;span class=&quot;no&quot;&gt;Benchmark&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bm&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bench&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;bench&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;report&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;Tokyo: B-tree&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
+ &lt;span class=&quot;no&quot;&gt;FasterCSV&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;big.csv&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;each&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cell&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;bdb&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;put&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cell&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
+ &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;bench&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;report&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;Tokyo: Rufus&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
+ &lt;span class=&quot;no&quot;&gt;FasterCSV&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;big.csv&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;each&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cell&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cell&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;x&amp;#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;y&amp;#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_s&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
+ &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;bench&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;report&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;DataMapper: Postgres&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
+ &lt;span class=&quot;no&quot;&gt;FasterCSV&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;big.csv&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;each&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cell&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
+ &lt;span class=&quot;no&quot;&gt;Cell&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;create&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:x_cord&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:y_cord&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:value&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cell&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
+ &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+
+&lt;span class=&quot;no&quot;&gt;Benchmark&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bm&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bench&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;bench&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;report&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;Tokyo: B-tree&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
+ &lt;span class=&quot;mi&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;bdb&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;bench&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;report&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;Tokyo: Rufus&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
+ &lt;span class=&quot;mi&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;add&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;x&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:equals&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_s&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;add&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;y&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:equals&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_s&lt;/span&gt;
+ &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;bench&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;report&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;DataMapper: Postgres&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
+ &lt;span class=&quot;mi&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;times&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;no&quot;&gt;Cell&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;first&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:x_cord&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:y_cord&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;value&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;</content>
</entry>
<entry>
@@ -396,7 +501,39 @@ Method: _launchSimulatedExecutable:&lt;/p&gt;
<content type="html">&lt;p class=&quot;date&quot;&gt;17 Feb 2009&lt;/p&gt;
&lt;p&gt;I started playing around with Tokyo Cabinet and Rufus-Tokyo tonight. I have to say I was pretty impressed. Tokyo Cabinet (with the help of rufus-tokyo) is so dead easy to use. It took me about an hour to install, learn and get a dead simple rack app up and running.&lt;/p&gt;
&lt;p&gt;I made a quick and dirty logger:&lt;/p&gt;
-&lt;p&gt;Liquid error: undefined method `join&amp;#8217; for #&lt;String:0x007f92d4120520&gt;&lt;/p&gt;</content>
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;rubygems&amp;#39;&lt;/span&gt;
+&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;rack&amp;#39;&lt;/span&gt;
+&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;rufus/tokyo&amp;#39;&lt;/span&gt;
+
+&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Logger&lt;/span&gt;
+
+ &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;initialize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+ &lt;span class=&quot;vi&quot;&gt;@t&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;t&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+
+ &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;call&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;env&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+ &lt;span class=&quot;vi&quot;&gt;@t&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Time&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;now&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;time&amp;#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Time&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;now&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;info&amp;#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;env&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;inspect&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;array&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;vi&quot;&gt;@t&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;query&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;order_by&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;time&amp;#39;&lt;/span&gt;
+ &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;output&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;The data:&amp;quot;&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;each&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;output&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;inspect&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+ &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;Content-Type&amp;quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;text/html&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;output&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+
+&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;rackApp&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Rack&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Builder&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
+
+ &lt;span class=&quot;n&quot;&gt;map&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;/&amp;#39;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;run&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Logger&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Rufus&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Tokyo&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Table&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;visitors.tdb&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+
+&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+
+&lt;span class=&quot;no&quot;&gt;Rack&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Handler&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Mongrel&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;run&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rackApp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:Port&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;9292&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;</content>
</entry>
<entry>
@@ -405,11 +542,37 @@ Method: _launchSimulatedExecutable:&lt;/p&gt;
<updated>2009-01-30T00:00:00-08:00</updated>
<id>http://blog.jpoz.net/2009/01/30/hast_to_url_params</id>
<content type="html">&lt;p&gt;Google couldn’t find me a good one. So I made this one:&lt;/p&gt;
-&lt;p&gt;Liquid error: undefined method `join&amp;#8217; for #&lt;String:0x007f92d412f9a8&gt;&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt; &lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Hash&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;to_url_params&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;elements&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[]&lt;/span&gt;
+ &lt;span class=&quot;nb&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;each_pair&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;elements&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;param_for&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;flatten&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;elements&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;join&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;&amp;amp;&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;kp&quot;&gt;private&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;param_for&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;parent&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kp&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;is_a?&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Hash&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;temp&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[]&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;each_pair&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;value2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
+ &lt;span class=&quot;n&quot;&gt;temp&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;param_for&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;value2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;parent&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;parent&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;[&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;]&amp;quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;temp&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;parent&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;parent&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;[&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;]&amp;quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_s&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+ &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;
&lt;p&gt;Will transform:&lt;/p&gt;
-&lt;p&gt;Liquid error: undefined method `join&amp;#8217; for &amp;#8220;\n {:person =&amp;gt;{:name =&amp;gt; &amp;#8216;Bobby&amp;#8217;, :age=&amp;gt;&amp;#8217;28&amp;#8217;}}\n&amp;#8221;:String&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:person&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;Bobby&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:age&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;28&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}}&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;
&lt;p&gt;Into:&lt;/p&gt;
-&lt;p&gt;Liquid error: undefined method `join&amp;#8217; for &lt;a href=&quot;String&quot;&gt;\n person[name]=Bobby&amp;amp;person[age]=28\n&lt;/a&gt;&lt;/p&gt;</content>
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt; &lt;span class=&quot;n&quot;&gt;person&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]=&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Bobby&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;person&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;age&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;28&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;</content>
</entry>
View
1 _site/drafts/2009-4-18-gogaruco.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/drafts/2010-2-16-jquery.engineer.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
View
1 _site/index.html
@@ -19,6 +19,7 @@
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/pozdena.css" type="text/css" />
+ <link rel="stylesheet" href="/css/syntax.css">
<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>

0 comments on commit 40aafed

Please sign in to comment.
Something went wrong with that request. Please try again.