<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://blog.arh.cc/index.php?/feeds/atom.xml" rel="self" title="darh|blog" type="application/atom+xml" />
    <link href="http://blog.arh.cc/"                        rel="alternate"    title="darh|blog" type="text/html" />
    <link href="http://blog.arh.cc/rss.php?version=2.0"     rel="alternate"    title="darh|blog" type="application/rss+xml" />
    <title type="html">darh|blog</title>
    <subtitle type="html">webtech, dba, coding, usability, life in general</subtitle>
    
    <id>http://blog.arh.cc/</id>
    <updated>2008-08-04T06:34:11Z</updated>
    <generator uri="http://www.s9y.org/" version="1.2.1">Serendipity 1.2.1 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/12-Hacking-Dwoo.html" rel="alternate" title="Hacking Dwoo" />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-08-04T06:12:09Z</published>
        <updated>2008-08-04T06:34:11Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=12</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=12</wfw:commentRss>
    
            <category scheme="http://blog.arh.cc/index.php?/categories/5-php" label="php" term="php" />
    
        <id>http://blog.arh.cc/index.php?/archives/12-guid.html</id>
        <title type="html">Hacking Dwoo</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                
<p>What's <a href="http://dwoo.org/" target="_blank" title="Dwoo - a PHP Template Engine">Dwoo</a>? Dwoo is cool. Dwoo is smarter than Smarty can ever be. It's cleaner and light years ahead. It's even compatible with it (as much as it can be)</p><p><br />The <a href="http://dwoo.org/download" target="_blank" title="Download Dwoo">version that was released yesterday</a> also introduced direct support for <a href="http://wiki.dwoo.org/index.php/Adapters:ZendFramework" target="_blank" title="Dwoo's wiki - Adapters:ZendFramework">Zend Framework</a> integration. </p><p>I'll try to post some more about it in the future. Stay tuned ;&gt;</p><p /> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/11-Simple-and-clean-nginx.conf.html" rel="alternate" title="Simple and clean nginx.conf" />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-07-25T20:43:07Z</published>
        <updated>2008-07-25T21:01:34Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=11</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=11</wfw:commentRss>
    
            <category scheme="http://blog.arh.cc/index.php?/categories/4-nginx" label="nginx" term="nginx" />
    
        <id>http://blog.arh.cc/index.php?/archives/11-guid.html</id>
        <title type="html">Simple and clean nginx.conf</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                
Plain and simple, without any rewrite rules, supports caching of GET request with memcache. Can it be done simpler than this? This was written and tested with Zend Framework environment, but can be used with any application that have single point of entry. <br /><a href="http://blog.arh.cc/index.php?/archives/11-Simple-and-clean-nginx.conf.html#extended">Continue reading "Simple and clean nginx.conf"</a>
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/10-PostgreSQL-8.4-features.html" rel="alternate" title="PostgreSQL 8.4 features" />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-04-02T15:24:38Z</published>
        <updated>2008-04-02T15:24:38Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=10</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    
    
        <id>http://blog.arh.cc/index.php?/archives/10-guid.html</id>
        <title type="html">PostgreSQL 8.4 features</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                
I'm starting to get really exited about upcoming version of PostgreSQL. <a href="http://www.depesz.com/">Depesz</a> is blogging about new and existing features, like the latest - <a title="Waiting for 8.4 #3" target="_blank" href="http://www.depesz.com/index.php/2008/04/02/waiting-for-84-3/">&quot;placeholders&quot; in stored procedures</a> for safer and cleaner code.

 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/9-HTTP-server-comparison-2.html" rel="alternate" title="HTTP server comparison #2" />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-03-13T19:39:13Z</published>
        <updated>2008-03-14T05:00:39Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=9</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=9</wfw:commentRss>
    
            <category scheme="http://blog.arh.cc/index.php?/categories/3-optimization" label="optimization" term="optimization" />
    
        <id>http://blog.arh.cc/index.php?/archives/9-guid.html</id>
        <title type="html">HTTP server comparison #2</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                
<p>As <a href="http://blog.arh.cc/index.php?/archives/6-HTTP-server-comparison.html" title="HTTP Server comparison">promised</a> (well, I've posted link to the &quot;article&quot; on nginx mailing list, so it was about time..) I'm posting <a href="http://blog.arh.cc/uploads/2008-02-13_webservers_benchmark/configs.tar.bz2">configuration files (.tar.bz2)</a> and <a href="http://blog.arh.cc/uploads/2008-02-13_webservers_benchmark/web_server_benchmark.sh.txt" title="Bash script">script (.sh.txt)</a> that helped me with my benchmarks.</p><p /><p>About <b>configuration files</b>: Most of them are basic, out-of-the-box (or debian package) configurations, trimmed down to minimum. I don't say they are fully optimized, and I will appreciate any constructive comment or change suggestion.</p><p>About <b>the script</b>: this is my first &quot;bigger&quot; (longer then 10 lines, with functions, conditions and loops, all in one) bash shell script, so be gentle ;&gt;</p><p /><p>Some interesting issues were raised on the mailing lists, as: </p><ul><li>serving such a small file I was mostly measuring connection and http protocol overhead -- point taken, I'll try to repeat tests with biger file.</li><li>number of failed requests (if any) -- will add this.</li><li>average time request and time for longest request -- will add this to.</li></ul><p /><p>And some additional details about the test:</p><ul><li>Tests were ran on same machine as web servers</li><li>ApacheBenchmark was used</li><li>Before each test all web-servers were shutdown and killed <img src="http://blog.arh.cc/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" /></li><li>VPS software: VMWare Workstation 6.0.1 build-55017</li></ul><p /><p>I'll try to make another test by the end of this week.</p><br /><p /><p /><p>
</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/8-File-include-performance-in-PHP.html" rel="alternate" title="File include performance in PHP" />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-02-23T18:00:58Z</published>
        <updated>2008-07-07T20:11:42Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=8</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=8</wfw:commentRss>
    
            <category scheme="http://blog.arh.cc/index.php?/categories/3-optimization" label="optimization" term="optimization" />
    
        <id>http://blog.arh.cc/index.php?/archives/8-guid.html</id>
        <title type="html">File include performance in PHP</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                
<p>I did a little comparison of /(include|require)(_once)?/ methods in PHP 5.2.5 (mostly to prove my coworker wrong).</p><p>This are values in microseconds, result is an average of 100 executions of each method</p><p><table height="163" cellspacing="1" cellpadding="1" border="0" width="884"><tbody><tr><td style="width: 120px;"> </td><td><b>empty txt file</b></td><td><b>empty php file*</b></td><td><b>&quot;real&quot; php file**</b></td></tr><tr><td><b>include</b></td><td>19.52</td><td><font color="#006600">25.12</font></td><td>1247.75</td></tr><tr><td><b>require</b></td><td>40.42</td><td>45.81</td><td>1162.59</td></tr><tr><td><font color="#000000"><b>include_once</b></font></td><td><font color="#000000">34.61</font></td><td><font color="#000000">31.65</font></td><td><font color="#000000">42.59</font></td></tr><tr><td><b>require_once</b></td><td><font color="#006600">11.45</font></td><td>36.84</td><td><font color="#003300">13.96</font></td></tr></tbody></table></p>

<p><br />* only &lt;?php and ?&gt;</p><p>** with class definition and class_exists check</p> <br /><a href="http://blog.arh.cc/index.php?/archives/8-File-include-performance-in-PHP.html#extended">Continue reading "File include performance in PHP"</a>
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/7-Python-tryout.html" rel="alternate" title="Python tryout" />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-02-23T10:44:52Z</published>
        <updated>2008-02-24T06:51:19Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=7</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=7</wfw:commentRss>
    
            <category scheme="http://blog.arh.cc/index.php?/categories/2-life-in-general" label="life in general" term="life in general" />
    
        <id>http://blog.arh.cc/index.php?/archives/7-guid.html</id>
        <title type="html">Python tryout</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                
<p>I've just bought myself a new car-radio (<a target="_blank" href="http://www.mimovrste.com/artikel/1300051111/avtoradio-pioneer-deh-4000ub" rel="nofollow">Pioneer DEH-4000UB</a>) with USB key support. And to my great surprise it does not read files from the stick in the sorted (alphabetical) order but &quot;in order as they were written to media&quot;. There is a workaround (also noted in the owner's manual), to name the files with 001, 002, 003 prefix. A stupid and time consuming workaround. While looking around if there are any other players with same misfeature, I've noticed that most of them work in the same way (surprisingly, sorting works perfectly when playing music from CD).</p><p><br />... and how does this relate with the post title? Well, I had to write a script that will rename my files so they will comply with Pioneer's &quot;standards&quot;. I didn't want to waste my mad PHP skills to do such trivial job, so instead, I've wasted most of Saturday's morning learning Python and produced this script..</p><p>
</p> <br /><a href="http://blog.arh.cc/index.php?/archives/7-Python-tryout.html#extended">Continue reading "Python tryout"</a>
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/6-HTTP-server-comparison.html" rel="alternate" title="HTTP server comparison" />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-02-14T21:21:18Z</published>
        <updated>2008-02-20T07:33:33Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=6</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=6</wfw:commentRss>
    
            <category scheme="http://blog.arh.cc/index.php?/categories/3-optimization" label="optimization" term="optimization" />
    
        <id>http://blog.arh.cc/index.php?/archives/6-guid.html</id>
        <title type="html">HTTP server comparison</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>For my speech in <a title="Kiberpipa.org" target="_blank" href="http://www.kiberpipa.org/">Kiberpipa (Cyber-pipe)</a> I've presented five &quot;light-weight&quot; HTTP servers: Boa, Cherokee, Lighttpd, Nginx and Thttpd, Apache (1.3, 2.2) and LiteSpeed: benchmark <a title="Comparing HTTP servers - keep-alive on" href="http://blog.arh.cc/uploads/2008-02-13_webservers_benchmark/keepalive_on.png">with keep-alive enabled</a> and <a title="Comparing HTTP servers - keep-alive off" href="http://blog.arh.cc/uploads/2008-02-13_webservers_benchmark/keepalive_off.png">with keep-alive disabled</a>.

</p>
<p>Tests were made on my desktop PC (Intel Core2 CPU 6700 @ 2.66GHz) inside VMWare environment (memory: 256 MB, Debian Etch) with apache-benchmark tool, fetching 32 B long static text file.</p><p>Compared versions (configuration files will follow soon):</p>

<p><table width="506" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="width: 50%;">Apache</td><td style="width: 50%;">1.3.34</td></tr><tr><td style="width: 50%;">Apache 2 (worker)</td><td style="width: 50%;">2.2.3</td></tr><tr><td style="width: 50%;">
Litespeed               </td><td style="width: 50%;">3.3.4</td></tr><tr><td style="width: 50%;">thttpd </td><td style="width: 50%;">2.23beta1-5</td></tr><tr><td style="width: 50%;">Nginx</td><td style="width: 50%;">
0.5.35</td></tr><tr><td style="width: 50%;">Lighttpd</td><td style="width: 50%;">
1.4.13</td></tr><tr><td style="width: 50%;">Cherokee</td><td style="width: 50%;">
0.5.5 </td></tr><tr><td valign="top">Boa</td><td valign="top">0.94.14rc21-0.2</td></tr></tbody></table><p /> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/5-Today-is-a-great-day.html" rel="alternate" title="Today is a great day" />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-02-01T21:03:25Z</published>
        <updated>2008-02-01T21:09:54Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=5</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=5</wfw:commentRss>
    
    
        <id>http://blog.arh.cc/index.php?/archives/5-guid.html</id>
        <title type="html">Today is a great day</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                
Today I've made my first contribution to open-source community. It's a small thing, really simple, no more than copy-paste and some renaming, but I've did it. A great PHP extension <a href="http://www.marcworrell.com/article-2287-en.html">Depcached</a> that I heavily depend on now supports getStatus(), getStats() and getExtendedStats() calls.
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/4-Sun-+-MySQL.html" rel="alternate" title="Sun + MySQL" />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-01-29T19:21:21Z</published>
        <updated>2008-01-29T19:21:21Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=4</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=4</wfw:commentRss>
    
            <category scheme="http://blog.arh.cc/index.php?/categories/1-dba" label="dba" term="dba" />
    
        <id>http://blog.arh.cc/index.php?/archives/4-guid.html</id>
        <title type="html">Sun + MySQL</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                
<p>... just kidding. I'm really getting sick of blog posts about Sun and MySQL. I't looks like everyone must have an opinion, write some predictions about the outcome for the MySQL community etc. </p><p>I just want to point out a <a title="Mark Atwood - SQL. Find probably useless indexes." href="http://fallenpegasus.livejournal.com/678743.html">great tip for spotting useless indexes</a> in MySQL.</p>
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/2-MySQL-Only-one-TIMESTAMP-column-with-CURRENT_TIMESTAMP-in-DEFAULT.html" rel="alternate" title="MySQL: Only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT" />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-01-01T17:34:30Z</published>
        <updated>2008-02-23T06:51:50Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=2</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=2</wfw:commentRss>
    
            <category scheme="http://blog.arh.cc/index.php?/categories/1-dba" label="dba" term="dba" />
    
        <id>http://blog.arh.cc/index.php?/archives/2-guid.html</id>
        <title type="html">MySQL: Only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                
<p>I've ran into a really stupid MySQL limitation today:
<br />
</p><pre>mysql&gt; create table foo (foo_1 timestamp default now(), foo_2 timestamp default now());
ERROR 1293 (HY000): Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
</pre>
Nothing like that mentioned in the <a href="http://dev.mysql.com/doc/refman/5.0/en/timestamp.html">docs</a>, but there is a small (deadend) thread in the <a href="http://lists.mysql.com/internals/34912">lists.mysql.com</a> -- nothing much
<p /><p>
Meanwhile, on the other side of the town:<br />
</p><pre>postgres=# create table foo (foo_1 timestamp default now(), foo_2 timestamp default now());
CREATE TABLE
</pre>
<p />


 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.arh.cc/index.php?/archives/1-3,-2,-1.....html" rel="alternate" title="3, 2, 1...." />
        <author>
            <name>Denis Arh</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-12-24T23:11:40Z</published>
        <updated>2008-01-01T19:02:59Z</updated>
        <wfw:comment>http://blog.arh.cc/wfwcomment.php?cid=1</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://blog.arh.cc/rss.php?version=atom1.0&amp;type=comments&amp;cid=1</wfw:commentRss>
    
            <category scheme="http://blog.arh.cc/index.php?/categories/2-life-in-general" label="life in general" term="life in general" />
    
        <id>http://blog.arh.cc/index.php?/archives/1-guid.html</id>
        <title type="html">3, 2, 1....</title>
        <content type="xhtml" xml:base="http://blog.arh.cc/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
So, I've finally decided that building my own blog software is a waste of my precious time. Serendipity (I think i still can't pronounce this one just right) suits all my needs. Surprisingly - it works out of the box even on "exotic" software collection I use on my server (nginx, php-fpm, postgresql 8.3 beta 4).</p>

<p>So this here should be a place where i can publish info about my projects, various researches, obstacles I run into... And a good way to improve my language skills (English that is... ;&gt;).</p>

Plans for now: in a few weeks I'm planning to perform a comparison of MySQL <a href="http://www.sphinxsearch.com/">SphinxSE</a> and PostgreSQL FTS. I'm also preparing a small speech for <a href="http://www.kiberpipa.org/">Kiberpipa.org</a> -- it's title should remain a secret for now. 
            </div>
        </content>
        
    </entry>

</feed>