<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Seva Lapsha at Work &#38; around</title>
	<atom:link href="http://sevalapsha.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sevalapsha.wordpress.com</link>
	<description>Core &#38; Web Development &#38; Design</description>
	<lastBuildDate>Tue, 13 Dec 2011 08:52:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sevalapsha.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/2d78d3a7c1294a7041a71e556f676bf4?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Seva Lapsha at Work &#38; around</title>
		<link>http://sevalapsha.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sevalapsha.wordpress.com/osd.xml" title="Seva Lapsha at Work &#38; around" />
	<atom:link rel='hub' href='http://sevalapsha.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Making Collective Decisions</title>
		<link>http://sevalapsha.wordpress.com/2011/12/13/making-collective-decisions/</link>
		<comments>http://sevalapsha.wordpress.com/2011/12/13/making-collective-decisions/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 08:49:28 +0000</pubDate>
		<dc:creator>Seva</dc:creator>
				<category><![CDATA[future]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[past]]></category>
		<category><![CDATA[thought]]></category>

		<guid isPermaLink="false">http://sevalapsha.wordpress.com/?p=188</guid>
		<description><![CDATA[While preparing to shrink up and replace my single role of Lead Software Architect with a Software Architecture team - Decision Making Making architectural decisions might seem easy and fun, but can have multiple consequences which can affect state and integrity of the software, the architecture team, the R&#38;D teams and the whole company. We [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=188&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>While preparing to shrink up and replace my single role of Lead Software Architect with a Software Architecture team -</em></p>
<h3 id="sites-page-title-header" align="left">Decision Making</h3>
<div id="sites-canvas-main">
<div id="sites-canvas-main-content">
<table cellspacing="0">
<tbody>
<tr>
<td>
<div dir="ltr">Making architectural decisions might seem easy and fun, but can have multiple consequences which can affect state and integrity of the software, the architecture team, the R&amp;D teams and the whole company. We aim to make the decisions in the most responsible manner with taking all the relevant factors in consideration. Sometimes we do consult wide community of developers and PMs in early stages, sometimes we do that on later stages, but what&#8217;s very important, we <span style="text-decoration:underline;">never</span> attempt to dictate our decision without majority <a href="http://www.google.com/url?q=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FParticipative_decision-making&amp;sa=D&amp;sntz=1&amp;usg=AFrqEzcccefAmx1qk9-6N2U-mQ8em_f1dA">consensus</a>.</p>
<div></div>
<div>The common flow of taking a decision is the following (<strong>CRAFT</strong>):</div>
<div>
<ol>
<li><strong>Collect</strong> information about the subject from provided private and public sources. If necessary, use in-company resources reuse their existing experience.</li>
<li><strong>Research </strong>the gathered information and prepare a draft of architectural opinion with a list of alternative solutions and their advantages and disadvantages.</li>
<li><strong>Acknowledge</strong> the opinion of all the interested parties. Accept and react on all the provided input.</li>
<li><strong>Finalize</strong> the decision and make it effective. Make sure it&#8217;s acknowledged, accepted and adopted by all the relevant parties.</li>
<li><strong>Track</strong> the execution of the decision. Learn from the experience, reopen the flow if necessary.</li>
</ol>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sevalapsha.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sevalapsha.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sevalapsha.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sevalapsha.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sevalapsha.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sevalapsha.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sevalapsha.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sevalapsha.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sevalapsha.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sevalapsha.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sevalapsha.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sevalapsha.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sevalapsha.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sevalapsha.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=188&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sevalapsha.wordpress.com/2011/12/13/making-collective-decisions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b335f2bec8c4052767b33e821d5db5c?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">sevalapsha</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple No-Framework Object Oriented Multi-Layer MVC Application Example</title>
		<link>http://sevalapsha.wordpress.com/2011/08/30/php-memory-simple-no-framework-oo-multi-layer-mvc/</link>
		<comments>http://sevalapsha.wordpress.com/2011/08/30/php-memory-simple-no-framework-oo-multi-layer-mvc/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 11:59:26 +0000</pubDate>
		<dc:creator>Seva</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[leisure]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[thought]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://sevalapsha.wordpress.com/?p=182</guid>
		<description><![CDATA[Recently I&#8217;ve created the subj. It&#8217;s a memory game, written in pure PHP/HTML, called &#8220;PHP Memory&#8221;. What was important for me to demonstrate is the next principles: Even if you don&#8217;t use a framework, you should write modular code with appropriate architecture. Despite that, the application design and code should match its required functionality with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=182&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve created the subj. It&#8217;s a memory game, written in pure PHP/HTML, called &#8220;PHP Memory&#8221;.</p>
<p>What was important for me to demonstrate is the next principles:</p>
<ol>
<li>Even if you don&#8217;t use a framework, you should write modular code with appropriate architecture.</li>
<li>Despite that, the application design and code should match its required functionality with no overhead of unneeded patterns and abstraction or preparations for future enhancements, unless they&#8217;re planned.</li>
<li>Nevertheless, the code should be readable and maintainable.</li>
<li>The bottom line is &#8211; developing a framework versus developing an application are completely different tasks. The strategy and tactics should vary very much. Of course, developers should learn from the frameworks source code, since they accumulate collective experience of great coders, but the ideas implemented in frameworks sometimes not required or even harmful while developing an application.</li>
</ol>
<div>The demo and source code can be found <a title="PHP Memory Demo" href="http://php-memory.sourceforge.net/">here</a>.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sevalapsha.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sevalapsha.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sevalapsha.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sevalapsha.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sevalapsha.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sevalapsha.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sevalapsha.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sevalapsha.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sevalapsha.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sevalapsha.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sevalapsha.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sevalapsha.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sevalapsha.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sevalapsha.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=182&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sevalapsha.wordpress.com/2011/08/30/php-memory-simple-no-framework-oo-multi-layer-mvc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b335f2bec8c4052767b33e821d5db5c?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">sevalapsha</media:title>
		</media:content>
	</item>
		<item>
		<title>cURL HTTP1.1 empty POST bug</title>
		<link>http://sevalapsha.wordpress.com/2011/08/03/curl-http11-empty-post-bug/</link>
		<comments>http://sevalapsha.wordpress.com/2011/08/03/curl-http11-empty-post-bug/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 22:47:35 +0000</pubDate>
		<dc:creator>Seva</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://sevalapsha.wordpress.com/?p=175</guid>
		<description><![CDATA[Today we spent almost 2 hours on a weird discrepancy between our development and staging environments. It&#8217;s pretty rare, that I experience such low level issue, thus in my opinion it&#8217;s worth mentioning here. Last weeks we were busy developing integration to a new data vendor. Everything went well until we deployed the application to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=175&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today we spent almost 2 hours on a weird discrepancy between our development and staging environments. It&#8217;s pretty rare, that I experience such low level issue, thus in my opinion it&#8217;s worth mentioning here.</p>
<p>Last weeks we were busy developing integration to a new data vendor. Everything went well until we deployed the application to stage.<br />
Suddenly we started receiving <a title="List of HTTP status codes" href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_Error" target="_blank">HTTP status 411</a> on one of the calls. Since we work with <a title="cURL" href="http://curl.haxx.se/" target="_blank">cURL</a> library, which we believed is stable enough, we thought the problem is somewhere between the source code and environment configuration.</p>
<p>Later we found that the same request gets accepted if sent from a client other than cURL (e.g. <a title="chrome-poster" href="http://code.google.com/p/chrome-poster/" target="_blank">chrome-poster</a>). The unique about this request is that it&#8217;s sent with <a title="POST (HTTP)" href="http://en.wikipedia.org/wiki/POST_(HTTP)" target="_blank">POST</a> method (the vendor&#8217;s strict requirement) but the content body is empty.</p>
<p>In the end we discovered that newer version (<a title="cURL 7.20" href="http://curl.haxx.se/changes.html#7_20_0">since 7.20</a>) of cURL interprets missing body as a negotiation request &#8211; sends <a title="100-continue" href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.3">Expect: 100-continue</a> header and <a title="Content-Length" href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13" target="_blank">Content-Length: -1</a>.</p>
<p>So, the immediate solution was to send empty content body (zero-length string) to cURL, which aligned the behavior in all the environments.</p>
<p>On the way we discovered a useful option <a title="PHP cURL_setopt()" href="http://php.net/manual/en/function.curl-setopt.php" target="_blank">CURLINFO_HEADER_OUT</a>, which enables a possibility to further <a title="PHP cURL_getInfo()" href="http://www.php.net/manual/en/function.curl-getinfo.php" target="_blank">retrieve</a> the headers sent by cURL to the remote host. From now we use it in our error handling mechanism to trace the sent headers as well.</p>
<p>What can we conclude from this story?</p>
<ol>
<li>Try to synchronize the software of all of your environments. If possible, use exactly the same version OS version, libraries, tools, etc. It&#8217;s very easy if you host your applications on <a title="Virtual Private Server" href="http://en.wikipedia.org/wiki/Virtual_private_server" target="_blank">VPS</a> and use <a title="Virtual Machine" href="http://en.wikipedia.org/wiki/Virtual_machine" target="_blank">VM</a>s for development and staging servers. The least convenient case is when you have OSs of different architecture and (e.g. Windows for development and Linux for production).</li>
<li>Don&#8217;t underestimate importance of <a title="Error Handling" href="http://en.wikipedia.org/wiki/Error_handling" target="_blank">error handling</a>. Find the optimal level of handling for your application, which will be easily extended and configured.</li>
</ol>
<div>Hope my sincere advices will help you, my dear friend, to save your precious time.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sevalapsha.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sevalapsha.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sevalapsha.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sevalapsha.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sevalapsha.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sevalapsha.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sevalapsha.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sevalapsha.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sevalapsha.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sevalapsha.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sevalapsha.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sevalapsha.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sevalapsha.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sevalapsha.wordpress.com/175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=175&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sevalapsha.wordpress.com/2011/08/03/curl-http11-empty-post-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b335f2bec8c4052767b33e821d5db5c?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">sevalapsha</media:title>
		</media:content>
	</item>
		<item>
		<title>Occasion</title>
		<link>http://sevalapsha.wordpress.com/2011/06/03/occasion/</link>
		<comments>http://sevalapsha.wordpress.com/2011/06/03/occasion/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 23:15:11 +0000</pubDate>
		<dc:creator>Seva</dc:creator>
				<category><![CDATA[leisure]]></category>

		<guid isPermaLink="false">http://sevalapsha.wordpress.com/?p=171</guid>
		<description><![CDATA[Today I&#8217;ve been told the second time in my life that I look Abdullah Hussein. Sceptical but intrigued, I performed an experiment to prove the opposite. The result clearly demonstrates absurdity and futility of this bold assumption. Observe.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=171&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve been told the second time in my life that I look <a href="http://en.wikipedia.org/wiki/Abdullah_II_of_Jordan">Abdullah Hussein</a>. Sceptical but intrigued, I performed an experiment to prove the opposite. The result clearly demonstrates absurdity and futility of this bold assumption. <a href="https://picasaweb.google.com/seva.lapsha/Unsorted#5613759472232409058">Observe</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sevalapsha.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sevalapsha.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sevalapsha.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sevalapsha.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sevalapsha.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sevalapsha.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sevalapsha.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sevalapsha.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sevalapsha.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sevalapsha.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sevalapsha.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sevalapsha.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sevalapsha.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sevalapsha.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=171&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sevalapsha.wordpress.com/2011/06/03/occasion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b335f2bec8c4052767b33e821d5db5c?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">sevalapsha</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP: array_merge versus array union operator (+)</title>
		<link>http://sevalapsha.wordpress.com/2010/07/22/php-array_merge-versus-array-union-operator/</link>
		<comments>http://sevalapsha.wordpress.com/2010/07/22/php-array_merge-versus-array-union-operator/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 09:10:52 +0000</pubDate>
		<dc:creator>Seva</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://sevalapsha.wordpress.com/?p=165</guid>
		<description><![CDATA[It comes that even experienced PHP developers don&#8217;t remember what is the difference between running array_merge((array)$a1, (array)$a2) and (array)$a1+(array)$a2. The answer is given @ php.net, no need to guess and argue. Here is the difference: Array Union: The + operator appends elements of remaining keys from the right handed array to the left handed, whereas duplicated [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=165&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It comes that even experienced PHP developers don&#8217;t remember what is the difference between running <strong>array_merge((array)$a1, (array)$a2)</strong> and <strong>(array)$a1+(array)$a2</strong>. The answer is given @ php.net, no need to guess and argue.</p>
<p>Here is the difference:</p>
<div>Array Union: <a href="http://goog_939965348/" target="_blank">The </a><em><a href="http://goog_939965348/" target="_blank">+</a></em><a href="http://php.net/manual/en/language.operators.array.php" target="_blank"> operator appends elements of remaining keys from the right handed array to the left handed, whereas duplicated keys are NOT overwritten.</a></div>
<div></div>
<div>array_merge(): <a href="http://php.net/manual/en/function.array-merge.php" target="_blank">If the input arrays have the same string keys, then the later value for that key will overwrite the previous one. If, however, the arrays contain numeric keys, the later value will </a><em><a href="http://goog_939965355/" target="_blank">not</a></em><a href="http://il2.php.net/manual/en/function.array-merge.php" target="_blank"> overwrite the original value, but will be appended. If all of the arrays contain only numeric keys, the resulting array is given incrementing keys starting from zero.</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sevalapsha.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sevalapsha.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sevalapsha.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sevalapsha.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sevalapsha.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sevalapsha.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sevalapsha.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sevalapsha.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sevalapsha.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sevalapsha.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sevalapsha.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sevalapsha.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sevalapsha.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sevalapsha.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=165&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sevalapsha.wordpress.com/2010/07/22/php-array_merge-versus-array-union-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b335f2bec8c4052767b33e821d5db5c?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">sevalapsha</media:title>
		</media:content>
	</item>
		<item>
		<title>Phing plugin for Eclipse PDT</title>
		<link>http://sevalapsha.wordpress.com/2010/04/15/phing-eclipse-pdt/</link>
		<comments>http://sevalapsha.wordpress.com/2010/04/15/phing-eclipse-pdt/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 22:31:09 +0000</pubDate>
		<dc:creator>Seva</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[pdt]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[thought]]></category>

		<guid isPermaLink="false">http://sevalapsha.wordpress.com/?p=158</guid>
		<description><![CDATA[I love Ant integration into Eclipse JDT &#8211; it provides smart editor, handy auto-completion, and the most important &#8211; fully functional debugger. Recently I have been laboring on porting a deployment system from shell scripts to Phing, a loose PHP port of Ant. And naturally, I miss the above. I still get a little aid [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=158&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I love <a href="http://ant.apache.org/">Ant</a> integration into Eclipse JDT &#8211;  it provides smart editor, handy  auto-completion, and the most  important &#8211; fully functional debugger.</p>
<p>Recently I have been laboring on porting a deployment system from  shell scripts to <a href="http://phing.info/trac/">Phing</a>, a loose PHP port of <a href="http://ant.apache.org/">Ant</a>.  And naturally, I miss the above. I still get a little aid from Eclipse &#8211;  since Phing&#8217;s syntax is very close to Ant&#8217;s, I can at use Ant editor  for Phing files to enjoy property navigation and target integrity  validation.</p>
<p>I would be more than happy to announce that I&#8217;m going to fill the gap  and implement Phing plugin for Eclipse PDT, but unfortunately &#8211; I&#8217;m too  busy and too lazy. On the other hand, if you, my dear friend, will  suddenly decide to accept this challenge, I can gladly invest my time in  architecture, design, review &amp; testing free of charge. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Or should  I anyway try to start it myself?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sevalapsha.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sevalapsha.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sevalapsha.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sevalapsha.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sevalapsha.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sevalapsha.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sevalapsha.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sevalapsha.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sevalapsha.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sevalapsha.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sevalapsha.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sevalapsha.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sevalapsha.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sevalapsha.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=158&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sevalapsha.wordpress.com/2010/04/15/phing-eclipse-pdt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b335f2bec8c4052767b33e821d5db5c?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">sevalapsha</media:title>
		</media:content>
	</item>
		<item>
		<title>Heart-Touching Quotation</title>
		<link>http://sevalapsha.wordpress.com/2010/04/15/heart-touching-quotation/</link>
		<comments>http://sevalapsha.wordpress.com/2010/04/15/heart-touching-quotation/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 22:06:29 +0000</pubDate>
		<dc:creator>Seva</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[past]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[thought]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://sevalapsha.wordpress.com/?p=154</guid>
		<description><![CDATA[&#8230;When I was going to school we were always taught, “In the olden days of computing, computers were expensive and programmers were cheap. Now it’s the reverse. Therefore…” We are back to the future. At internet scale, programmers are (sometimes) cheap compared to the cost of electricity. Kent Beck<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=154&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>&#8230;When I was going to school we were always taught, “In the olden days of computing, computers were expensive and programmers were cheap. Now it’s the reverse. Therefore…” We are back to the future. At internet scale, programmers are (sometimes) cheap compared to the cost of electricity.</em></p>
<p>Kent Beck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sevalapsha.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sevalapsha.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sevalapsha.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sevalapsha.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sevalapsha.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sevalapsha.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sevalapsha.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sevalapsha.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sevalapsha.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sevalapsha.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sevalapsha.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sevalapsha.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sevalapsha.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sevalapsha.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=154&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sevalapsha.wordpress.com/2010/04/15/heart-touching-quotation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b335f2bec8c4052767b33e821d5db5c?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">sevalapsha</media:title>
		</media:content>
	</item>
		<item>
		<title>Competing design attributes: performance vs. maintainability</title>
		<link>http://sevalapsha.wordpress.com/2010/03/16/performance-vs-maintainability/</link>
		<comments>http://sevalapsha.wordpress.com/2010/03/16/performance-vs-maintainability/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 22:51:42 +0000</pubDate>
		<dc:creator>Seva</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[thought]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://sevalapsha.wordpress.com/?p=150</guid>
		<description><![CDATA[Q. Is performance more important than other attributes like ease of use, maintainability etc? When designing your new code, what level of importance would you give to the following attributes? A. You should not compromise on architectural principles for just performance. You should make effort to write architecturally sound programs as opposed to writing only [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=150&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>Q. Is performance more important than other attributes like ease of use, maintainability etc? When designing your new code, what level of importance would you give to the following attributes?</p>
<p>A. You should not compromise on architectural principles for just performance. You should make effort to write architecturally sound programs as opposed to writing only fast programs. If your architecture is sound enough then it would allow your program not only to scale better but also allows it to be optimized for performance if it is not fast enough. If you write applications with poor architecture but performs well for the current requirements, what will happen if the requirements grow and your architecture is not flexible enough to extend and creates a maintenance nightmare where fixing a code in one area would break your code in another area. This will cause your application to be re-written. So you should think about extendability (i.e. ability to evolve with additional requirements), maintainability, ease of use, performance and scalability (i.e. ability to run in multiple servers or machines) during the design phase. List all possible design alternatives and pick the one which is conducive to sound design architecturally (i.e. scalable, easy to use, maintain and extend) and will allow it to be optimized later if not fast enough. You can build a vertical slice first to validate the above mentioned design attributes.</em></p>
<p>(c) Whoever</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sevalapsha.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sevalapsha.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sevalapsha.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sevalapsha.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sevalapsha.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sevalapsha.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sevalapsha.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sevalapsha.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sevalapsha.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sevalapsha.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sevalapsha.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sevalapsha.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sevalapsha.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sevalapsha.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=150&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sevalapsha.wordpress.com/2010/03/16/performance-vs-maintainability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b335f2bec8c4052767b33e821d5db5c?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">sevalapsha</media:title>
		</media:content>
	</item>
		<item>
		<title>Is Facebook PHP HipHop bullshit?</title>
		<link>http://sevalapsha.wordpress.com/2010/02/03/is-facebook-php-hiphop-bullshit/</link>
		<comments>http://sevalapsha.wordpress.com/2010/02/03/is-facebook-php-hiphop-bullshit/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 00:05:49 +0000</pubDate>
		<dc:creator>Seva</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[thought]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://sevalapsha.wordpress.com/?p=141</guid>
		<description><![CDATA[Yes, it finally happened &#8211; Facebook announced the PHP to C++ translator. Hurray! So, after reading the post I can assume it: parses PHP code, extracts PHP AST, converts to C++ AST and generates C++ code. Honestly, it&#8217;s not the best way of optimization, but probably is a quick win (BTW, why did it take [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=141&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yes, it finally happened &#8211; Facebook <a href="http://developers.facebook.com/news.php">announced</a> the PHP to C++ translator. Hurray!<br />
So, after reading the post I can assume it:</p>
<ol>
<li>parses PHP code,</li>
<li>extracts PHP AST,</li>
<li>converts to C++ AST and</li>
<li>generates C++ code.</li>
</ol>
<p>Honestly, it&#8217;s not the best way of optimization, but probably is a quick win (BTW, why did it take for them so long?), which theoretically might indeed generate efficient C++ code.</p>
<p>But wait, what do they report? <em>&#8220;We&#8217;ve reduced the CPU usage on our Web servers on average by about<sup>1</sup> fifty percent<sup>3</sup>, depending on the page<sup>2</sup>.&#8221;</em></p>
<p>I have some doubts:</p>
<ol>
<li>Where is the objective and comparative statistics?</li>
<li>Did they even collect the general statistics, or just tested some pages to see the difference?</li>
<li>50%? That&#8217;s it? And how about the fact that C++ is actually <a href="http://shootout.alioth.debian.org/u32q/benchmark.php?test=all&amp;lang=php&amp;lang2=gpp">3-500 times faster</a> (also <a href="http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/">here</a>) (That would be 70% to 99% reduce of CPU). In fact the well known <a href="http://en.wikipedia.org/wiki/List_of_PHP_accelerators">PHP Accelerators</a> provide the same level of performance improvement as HipHop! It&#8217;s interesting, did they try any of them before entering the so called &#8220;Hackathon&#8221;.</li>
</ol>
<p>In addition to reflections above, looking at the profiles of 2.5 coders which hacked the translator, I sorrowfully tend to estimate that the answer for the question in this Post&#8217;s subject is positive. Nevertheless I&#8217;m full of sincere hope that further info will dispel my suspects and prove that HipHop is actually a brilliant peace of software.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sevalapsha.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sevalapsha.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sevalapsha.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sevalapsha.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sevalapsha.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sevalapsha.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sevalapsha.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sevalapsha.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sevalapsha.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sevalapsha.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sevalapsha.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sevalapsha.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sevalapsha.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sevalapsha.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=141&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sevalapsha.wordpress.com/2010/02/03/is-facebook-php-hiphop-bullshit/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b335f2bec8c4052767b33e821d5db5c?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">sevalapsha</media:title>
		</media:content>
	</item>
		<item>
		<title>FreeBSD MySQL MyISAM multi-CPU concurrency performance</title>
		<link>http://sevalapsha.wordpress.com/2010/02/02/freebsd-mysql-myisam-multi-cpu-concurrency-performance/</link>
		<comments>http://sevalapsha.wordpress.com/2010/02/02/freebsd-mysql-myisam-multi-cpu-concurrency-performance/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 16:03:24 +0000</pubDate>
		<dc:creator>Seva</dc:creator>
				<category><![CDATA[db]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://sevalapsha.wordpress.com/?p=135</guid>
		<description><![CDATA[Recently we had a performance issue with multiple plain concurrent requests on a MyISAM table &#8211; the process list reported that all selects get stuck for very long time while Sending Data. After many tests we discovered that: The problem only occurs when running on multiple CPUs; The problem only occurs when running on FreeBSD [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=135&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently we had a performance issue with multiple plain concurrent requests on a MyISAM table &#8211; the process list reported that all selects get stuck for very long time while <em>Sending Data</em>. After many tests we discovered that:</p>
<ol>
<li>The problem only occurs when running on multiple CPUs;</li>
<li>The problem only occurs when running on FreeBSD OS.</li>
</ol>
<p>After searching over the Internet we found, that this class of problems is being reported since antique versions of FreeBSD and, despite the claims it&#8217;s fixed with each version, it persists even in fresh 8.0.</p>
<p>So the decision was to install Linux on all the DB servers.</p>
<p>There is an alternative option though &#8211; it&#8217;s possible on FreeBSD to install <a href="http://www.freebsd.org/cgi/ports.cgi?query=mysql-server&amp;stype=all&amp;sektion=all">MySQL</a> of any version with <strong>WITH_LINUXTHREADS=yes</strong> parameter and it will be benefited from the Linux thread model.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sevalapsha.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sevalapsha.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sevalapsha.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sevalapsha.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sevalapsha.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sevalapsha.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sevalapsha.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sevalapsha.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sevalapsha.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sevalapsha.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sevalapsha.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sevalapsha.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sevalapsha.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sevalapsha.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sevalapsha.wordpress.com&amp;blog=2106909&amp;post=135&amp;subd=sevalapsha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sevalapsha.wordpress.com/2010/02/02/freebsd-mysql-myisam-multi-cpu-concurrency-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b335f2bec8c4052767b33e821d5db5c?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">sevalapsha</media:title>
		</media:content>
	</item>
	</channel>
</rss>
