<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Frey-IT</title>
	<atom:link href="http://frey-it.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://frey-it.com</link>
	<description>Matthias Frey Dienstleistungen i.d. EDV</description>
	<lastBuildDate>Wed, 24 Aug 2011 09:54:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>commit activity , generated by statSVN</title>
		<link>http://frey-it.com/?p=43</link>
		<comments>http://frey-it.com/?p=43#comments</comments>
		<pubDate>Fri, 03 Sep 2010 09:49:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[developement]]></category>
		<category><![CDATA[process]]></category>

		<guid isPermaLink="false">http://frey-it.com/?p=43</guid>
		<description><![CDATA[I let statSVN ( www.statsvn.org ) generate some..  well ,  stats  , which was quite interesting and not that much hassel. Still, the git guys tell me that these are not very impressive and that I should switch VCS .. Certainly considering this &#8211; for the next projects.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="svnstat activity" src="http://web24.twitpic.com/img/150822058-4a19ebeaaed22eca8379adece06c4434.4c80c018-full.png" alt="" /></p>
<p>I let statSVN ( <cite><a href="http://www.statsvn.org">www.<strong>statsvn</strong>.org</a> ) </cite>generate some..  well ,  stats  , which was quite interesting and not that much hassel. Still, the git guys tell me that these are not very impressive and that I should switch VCS .. Certainly considering this &#8211; for the next projects.</p>
]]></content:encoded>
			<wfw:commentRss>http://frey-it.com/?feed=rss2&#038;p=43</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>php5 start-session issue on ubuntu</title>
		<link>http://frey-it.com/?p=41</link>
		<comments>http://frey-it.com/?p=41#comments</comments>
		<pubDate>Fri, 03 Sep 2010 08:58:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[developement]]></category>

		<guid isPermaLink="false">http://frey-it.com/?p=41</guid>
		<description><![CDATA[Sometimes this error would pop up &#8220;Fatal error: Uncaught exception &#8216;Zend_Session_Exception&#8217; with message &#8216;Zend_Session::start()&#8221; With the crucial line: &#8220;ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied&#8221; An explanation and solution is posted here http://somethingemporium.com/2007/06/obscure-error-with-php5-on-debian-ubuntu-session-phpini-garbage The source states that for  Debian and Ubuntu, the automatic garbage collection must be set to &#8220;off&#8221; , for the various php5 packages in [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes this error would pop up</p>
<p>&#8220;Fatal error: Uncaught exception &#8216;Zend_Session_Exception&#8217; with message &#8216;Zend_Session::start()&#8221;</p>
<p>With the crucial line: &#8220;ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied&#8221;</p>
<p>An explanation and solution is posted here</p>
<p><a href="http://somethingemporium.com/2007/06/obscure-error-with-php5-on-debian-ubuntu-session-phpini-garbage">http://somethingemporium.com/2007/06/obscure-error-with-php5-on-debian-ubuntu-session-phpini-garbage</a></p>
<p>The source states that for  Debian and Ubuntu, the automatic garbage collection must be set to &#8220;off&#8221; , for the various php5 packages in use ( e.g. , php-cli ) .</p>
<p>So we have to take care of this in the  php.ini files for the packages in question.</p>
]]></content:encoded>
			<wfw:commentRss>http://frey-it.com/?feed=rss2&#038;p=41</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting discussions on the Zend Mailing List</title>
		<link>http://frey-it.com/?p=38</link>
		<comments>http://frey-it.com/?p=38#comments</comments>
		<pubDate>Mon, 21 Dec 2009 10:17:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://frey-it.com/?p=38</guid>
		<description><![CDATA[Some discussions on the mailing list that I find helpful or noteworthy .. http://n4.nabble.com/PageController-ActionStack-vs-Simple-MVC-td948403.html#a948403 http://n4.nabble.com/Problem-with-Zend-Controller-Action-Helper-Url-url-td975540.html#a975540 http://n4.nabble.com/Setup-of-a-modular-structure-td965985.html#a965985]]></description>
			<content:encoded><![CDATA[<p>Some discussions on the mailing list that I find helpful or noteworthy ..</p>
<p><a href="http://n4.nabble.com/PageController-ActionStack-vs-Simple-MVC-td948403.html#a948403">http://n4.nabble.com/PageController-ActionStack-vs-Simple-MVC-td948403.html#a948403</a></p>
<p><a href="http://n4.nabble.com/Problem-with-Zend-Controller-Action-Helper-Url-url-td975540.html#a975540">http://n4.nabble.com/Problem-with-Zend-Controller-Action-Helper-Url-url-td975540.html#a975540</a></p>
<p><a href="http://n4.nabble.com/Setup-of-a-modular-structure-td965985.html#a965985">http://n4.nabble.com/Setup-of-a-modular-structure-td965985.html#a965985</a></p>
]]></content:encoded>
			<wfw:commentRss>http://frey-it.com/?feed=rss2&#038;p=38</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php / Zend Resources</title>
		<link>http://frey-it.com/?p=32</link>
		<comments>http://frey-it.com/?p=32#comments</comments>
		<pubDate>Fri, 06 Nov 2009 14:47:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[developement]]></category>

		<guid isPermaLink="false">http://frey-it.com/?p=32</guid>
		<description><![CDATA[Currently I&#8217;m very interested in PHP &#38; Zend(Framework) resources that deal with enterprise-level architectures , design patterns and refactoring, as well as with ways of plainly mastering the  Zend-Framework , e.g. mastering its complexity and choosing the &#8220;right&#8221; options for its usage out of the many it provides. I&#8217;m especially looking for some use-cases and [...]]]></description>
			<content:encoded><![CDATA[<p>Currently I&#8217;m very interested in PHP &amp; Zend(Framework) resources that deal with enterprise-level architectures , design patterns and refactoring, as well as with ways of plainly mastering the  Zend-Framework , e.g. mastering its complexity and choosing the &#8220;right&#8221; options for its usage out of the many it provides.</p>
<p>I&#8217;m especially looking for some use-cases and tutorials that go a bit further than the basic &#8220;how-to use Zend_Form&#8221;, &#8220;how-to set up MVC&#8221; and so on stuff.. That said, this basic stuff is covered nicely  on the <a href="http://www.zendcasts.com/moving-bootstrap-code-to-configuration/2009/11/" target="_self">Zend-Screencasts</a> blog (video tutorials) .</p>
<p><a href="http://devzone.zend.com/article/11246-ZendCon-09-Slides" target="_blank">Slides from the ZendCon09</a> , that recentrly took place look interesting. That talk caught my attention :  <a href="http://www.procata.com/talks/zendcon-oct2009-maintainable.pdf" target="_blank">writing maintainable PHP Code</a> , goes into do&#8217;s and doent&#8217;s about writing PHP code and has plenty of examples on how to refactor, introduces some so called &#8220;code smells&#8221; that are signs for the need to refactor..</p>
<p>Recently this <a href="http://www.thepopeisdead.com/" target="_blank">weblog (The Pope is Dead)</a> has caught my attention , I still have to dive into it but it seems there is some pretty advanced stuff up there.</p>
<p>The posts are written by Keith Pope, who is the author of Zend Framework 1.8 Web Application Development , which I ordered, alongside with  Zend Enterprise PHP Patterns (Expert&#8217;s Voice) by  John Coggeshall &amp; Morgan Tocker ..</p>
<p>Might post some reviews about the books  here, once I know more ..</p>
]]></content:encoded>
			<wfw:commentRss>http://frey-it.com/?feed=rss2&#038;p=32</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Analysing Mysql Slow Query Log</title>
		<link>http://frey-it.com/?p=13</link>
		<comments>http://frey-it.com/?p=13#comments</comments>
		<pubDate>Tue, 29 Sep 2009 09:51:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://frey-it.com/?p=13</guid>
		<description><![CDATA[As one of our hosts reached a 5-minute avarage load of 40 (with 2 cpus) , it&#8217;s time to look at the mysql log for slow queries again. It&#8217;s not easy to find the cause for such incidents, as when the load goes up and things go wrong in the database, of course ALL the [...]]]></description>
			<content:encoded><![CDATA[<p>As one of our hosts reached a 5-minute avarage load of 40 (with 2 cpus) , it&#8217;s time to look at the mysql log for slow queries again.</p>
<p>It&#8217;s not easy to find the cause for such incidents, as when the load goes up and things go wrong in the database, of course ALL the queries are starting to run slow.</p>
<p>A  good site to start on this topic is always the <a href="http://www.mysqlperformanceblog.com" target="_blank">Mysql Performance Blog</a> . In the comments-section of <a href="http://www.mysqlperformanceblog.com/2006/09/06/slow-query-log-analyzes-tools/" target="_blank">this entry</a>, I found links to two different scripts analyzing the slow-query log. (Also see the Mysql Performance Blog or the <a href="http://dev.mysql.com/doc/refman/5.1/en/slow-query-log.html" target="_blank">Mysql docs</a> for how to turn on the slow query log in the first place )</p>
<h3>MySQL Slow Query Log Filter for PHP5 and Python 2.4</h3>
<p>One is <a href="http://code.google.com/p/mysql-log-filter/downloads/list" target="_blank">MySQL Slow Query Log Filter for PHP5 and Python 2.4</a> , which goes through the logfile and gathers statistical data like counting the times a certain query occured. The first nice feature is to limit the time range of which queries are taken into account.</p>
<p>This command filters the log to show only queries on the 14th of september 2009, that took 30 secconds or more to execute.</p>
<pre>$php mysql_filter_slow_log.php -T=30 --date=14.09.2009-15.09.2009 database-slow.log &gt; output.log</pre>
<p>The script , however, regards queries as different unless they match completley. That means that two queries on the same table, just looking up a different row by providing a different value for a key column are not counted as the same query.</p>
<p>For that reason, I changed the script a bit ( <a href="http://frey-it.com/wp-content/uploads/2009/09/php_preproc.patch">patch here</a> ) to remove  all strings inside quotes so that</p>
<pre>select * from table where id = '1'</pre>
<p>and</p>
<pre>select * from table where id  = '2'</pre>
<p>end up being counted as the same query .</p>
<p>To use this functionality with the patch applied , start the script with the &#8211;preproc option.</p>
<h3>MyProfi</h3>
<p>The seccond script <a href="http://sourceforge.net/projects/myprofi/" target="_blank">MyProfi</a> already does &#8220;anonymize&#8221; the queries , it therefore provides a more summarized overview , with less options though. The output looks like this:</p>
<pre>(...)
queries by pattern:
===================
1.    2 986      [ 9.65%] - select{} ....where id = {};
2.    2 750      [ 8.89%] - (...)
(...)</pre>
<h3>About Lock-Time</h3>
<p>Another number I&#8217;d like to see would be the Overall Query Time minus the Lock Time , as this would show which queries take long without waiting for locks to be released. This would be the real &#8220;bad ones&#8221;, as far as I understand this.<br />
The locking issues are probably worse here than they would have to be as all the site&#8217;s tables are MyIsam-Tables that use table-based locking (i.e. locking the whole table instead of the rows that get updated / inserted ).</p>
<h3>Update: Maatkit mk-query-digest</h3>
<p>Another tool, probably far more proffessional than the before mentioned : <a href="http://www.maatkit.org/doc/mk-query-digest.html#DOWNLOADING" target="_blank">mk-query-digest</a>.<br />
It has a lot of options, but even with no special options set it provides very helpful output.<br />
Some of the features I noticed from a quick test was that it does the &#8220;anonymizing&#8221; of the queries , the output features min, max, avg as well as stdv (standard deviation ) and median value.<br />
There&#8217;s also a kind of graphical representation of query time distribution , meaning there are ascii-bars that show how many of a certain kind of query got executed within 0.5,1,10 etc. secconds.</p>
<p>I have not looked into the tool in greater detail (as the host runs smoothly again &#8211; for now ) , but it seems to be the best solution for analysing your query logs.</p>
]]></content:encoded>
			<wfw:commentRss>http://frey-it.com/?feed=rss2&#038;p=13</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hallo Welt!</title>
		<link>http://frey-it.com/?p=1</link>
		<comments>http://frey-it.com/?p=1#comments</comments>
		<pubDate>Tue, 08 Sep 2009 14:08:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[about]]></category>
		<category><![CDATA[agile developement]]></category>

		<guid isPermaLink="false">http://frey-it.com/?p=1</guid>
		<description><![CDATA[On this Weblog I will post news about ongoing projects as well as technical information, developement strategies etc. that seem interesting to me. Information about my company can be found in the &#8220;pages&#8221; section to the right. Lets start with something useful : How to plan an agile startup]]></description>
			<content:encoded><![CDATA[<p>On this Weblog I will post news about ongoing projects as well as technical information, developement strategies etc. that seem interesting to me.</p>
<p>Information about my company can be found in the &#8220;pages&#8221; section to the right.</p>
<p>Lets start with something useful : <a href="http://theagileexecutive.com/2009/08/31/10-steps-for-setting-up-an-agile-start-up/" target="_blank">How to plan an agile startup</a></p>
]]></content:encoded>
			<wfw:commentRss>http://frey-it.com/?feed=rss2&#038;p=1</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

