<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/4.0.0-alpha" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>fplanque: weblog - English</title>
		<link>http://fplanque.com/all/</link>
		<atom:link rel="self" type="application/rss+xml" href="http://fplanque.com/all/?tempskin=_rss2" />
		<description>Tous les weblogs de Fran&#231;ois PLANQUE aggr&#233;g&#233;s en un seul.</description>
		<language>en-US</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=4.0.0-alpha"/>
		<ttl>60</ttl>
				<item>
			<title>Mac Mini 2010 Hard Drive Speed</title>
			<link>http://fplanque.com/dev/mac/mac-mini-2010-hard-drive</link>
			<pubDate>Fri, 20 Aug 2010 14:53:00 +0000</pubDate>			<dc:creator>Francois Planque</dc:creator>
			<category domain="main">Mac stuff</category>			<guid isPermaLink="false">962@http://fplanque.com/</guid>
						<description>&lt;div&gt;&lt;div&gt;&lt;a href=&quot;http://fplanque.com/media/dev/2010/system_profiler.png?mtime=1282316007&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://fplanque.com/media/dev/2010/.evocache/system_profiler.png/fit-320x320.png?mtime=1282316007&quot; width=&quot;320&quot; height=&quot;228&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;I was looking into upgrading my 2006 Mac Mini (serving as a media server) with a 2010 model, just to get a bigger hard drive&amp;#8230; and also a faster one!&lt;/p&gt;
&lt;p&gt;Now, &lt;a href=&quot;http://rickystechblog.wordpress.com/2010/06/17/the-apple-mac-mini-and-why-you-shouldn%E2%80%99t-buy-it/&quot;&gt;according to this guy&lt;/a&gt;, the Mac Mini 2010 still comes with a stinky slow old SATA-1 drive, just as back in the days. And that Ricky guy actually sounds like he knows damn well what he&amp;#8217;s talking about!&lt;/p&gt;
&lt;p&gt;Anyone got a Mac Mini 2010? Care to check the Negotiated Link Speed in your System Profiler? (About my mac &amp;gt; More info&amp;#8230;)&lt;/p&gt;
&lt;p&gt;On the screenshot above, you can see a Negatiated Link Speed of 3 Gb/s, which is good&amp;#8230; except I made the capture on my Mac Pro. Apparently, 2010 Mac Minis will show you a Link Speed of 3 Gb/s (that&amp;#8217;s what the Mac is capable of) but a &lt;strong&gt;Negotiated&lt;/strong&gt; Link Speed of only 1.5 Gb/s (that&amp;#8217;s what the HD is capable of)&amp;#8230;&lt;/p&gt;
&lt;p&gt;What Ricky doesn&amp;#8217;t say though, is if he has the 320 GB drive or the 500 GB drive. There may be a difference between these two.&lt;/p&gt;
&lt;p&gt;Now, the alternative would be to upgrade the drive myself, but it&amp;#8217;s just a big bag of hurt! I&amp;#8217;m too old to get any pleasure out of disasenbling hardware any more&amp;#8230;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;videoblock&quot;&gt;&lt;object data=&quot;http://www.youtube.com/v/wZy0wPniqqo&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/wZy0wPniqqo&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;/object&gt;&lt;/div&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://fplanque.com/dev/mac/mac-mini-2010-hard-drive&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<div><div><a href="http://fplanque.com/media/dev/2010/system_profiler.png?mtime=1282316007"><img alt="" src="http://fplanque.com/media/dev/2010/.evocache/system_profiler.png/fit-320x320.png?mtime=1282316007" width="320" height="228" /></a></div></div><p>I was looking into upgrading my 2006 Mac Mini (serving as a media server) with a 2010 model, just to get a bigger hard drive&#8230; and also a faster one!</p>
<p>Now, <a href="http://rickystechblog.wordpress.com/2010/06/17/the-apple-mac-mini-and-why-you-shouldn%E2%80%99t-buy-it/">according to this guy</a>, the Mac Mini 2010 still comes with a stinky slow old SATA-1 drive, just as back in the days. And that Ricky guy actually sounds like he knows damn well what he&#8217;s talking about!</p>
<p>Anyone got a Mac Mini 2010? Care to check the Negotiated Link Speed in your System Profiler? (About my mac &gt; More info&#8230;)</p>
<p>On the screenshot above, you can see a Negatiated Link Speed of 3 Gb/s, which is good&#8230; except I made the capture on my Mac Pro. Apparently, 2010 Mac Minis will show you a Link Speed of 3 Gb/s (that&#8217;s what the Mac is capable of) but a <strong>Negotiated</strong> Link Speed of only 1.5 Gb/s (that&#8217;s what the HD is capable of)&#8230;</p>
<p>What Ricky doesn&#8217;t say though, is if he has the 320 GB drive or the 500 GB drive. There may be a difference between these two.</p>
<p>Now, the alternative would be to upgrade the drive myself, but it&#8217;s just a big bag of hurt! I&#8217;m too old to get any pleasure out of disasenbling hardware any more&#8230;</p>
<p><div class="videoblock"><object data="http://www.youtube.com/v/wZy0wPniqqo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"><param name="movie" value="http://www.youtube.com/v/wZy0wPniqqo"></param><param name="wmode" value="transparent"></param></object></div></p><div class="item_footer"><p><small><a href="http://fplanque.com/dev/mac/mac-mini-2010-hard-drive">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://fplanque.com/dev/mac/mac-mini-2010-hard-drive#comments</comments>
			<wfw:commentRss>http://fplanque.com/dev/?tempskin=_rss2&#38;disp=comments&#38;p=962</wfw:commentRss>
		</item>
				<item>
			<title>Breakup frustration</title>
			<link>http://fplanque.com/misc/humour-jokes/breakup-frustration</link>
			<pubDate>Sun, 02 May 2010 16:20:00 +0000</pubDate>			<dc:creator>Francois Planque</dc:creator>
			<category domain="main">Humour/jokes</category>			<guid isPermaLink="false">961@http://fplanque.com/</guid>
						<description>&lt;div&gt;&lt;div&gt;&lt;a href=&quot;http://fplanque.com/media/misc/2010/breakup.jpg?mtime=1272817203&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://fplanque.com/media/misc/2010/.evocache/breakup.jpg/fit-320x320.jpg?mtime=1272817203&quot; width=&quot;180&quot; height=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;Breakups are frustrating&amp;#8230; always&amp;#8230; 

I believe this guy coped with his frustration pretty well, though ;)&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://fplanque.com/misc/humour-jokes/breakup-frustration&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<div><div><a href="http://fplanque.com/media/misc/2010/breakup.jpg?mtime=1272817203"><img alt="" src="http://fplanque.com/media/misc/2010/.evocache/breakup.jpg/fit-320x320.jpg?mtime=1272817203" width="180" height="320" /></a></div></div>Breakups are frustrating&#8230; always&#8230; 

I believe this guy coped with his frustration pretty well, though ;)<div class="item_footer"><p><small><a href="http://fplanque.com/misc/humour-jokes/breakup-frustration">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://fplanque.com/misc/humour-jokes/breakup-frustration#comments</comments>
			<wfw:commentRss>http://fplanque.com/misc/?tempskin=_rss2&#38;disp=comments&#38;p=961</wfw:commentRss>
		</item>
				<item>
			<title>5th element style condo!</title>
			<link>http://fplanque.com/misc/funky-world/small-modular-condo</link>
			<pubDate>Thu, 29 Apr 2010 19:22:00 +0000</pubDate>			<dc:creator>Francois Planque</dc:creator>
			<category domain="main">Funky World</category>			<guid isPermaLink="false">960@http://fplanque.com/</guid>
						<description>&lt;p&gt;You&amp;#8217;d think the real estate market crashed everywhere and there&amp;#8217;s plenty of available square feet, but check this out: what you saw in the 5th element has actually become a reality, in Hong Kong!&lt;/p&gt;

&lt;div class=&quot;videoblock&quot;&gt;&lt;object data=&quot;http://www.youtube.com/v/f-iFJ3ncIDo&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/f-iFJ3ncIDo&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;/object&gt;&lt;/div&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://fplanque.com/misc/funky-world/small-modular-condo&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>You&#8217;d think the real estate market crashed everywhere and there&#8217;s plenty of available square feet, but check this out: what you saw in the 5th element has actually become a reality, in Hong Kong!</p>

<div class="videoblock"><object data="http://www.youtube.com/v/f-iFJ3ncIDo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"><param name="movie" value="http://www.youtube.com/v/f-iFJ3ncIDo"></param><param name="wmode" value="transparent"></param></object></div><div class="item_footer"><p><small><a href="http://fplanque.com/misc/funky-world/small-modular-condo">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://fplanque.com/misc/funky-world/small-modular-condo#comments</comments>
			<wfw:commentRss>http://fplanque.com/misc/?tempskin=_rss2&#38;disp=comments&#38;p=960</wfw:commentRss>
		</item>
				<item>
			<title>15 minutes with iPad: too heavy!</title>
			<link>http://fplanque.com/info-tech/mobile-wireless/ipad-too-heavy</link>
			<pubDate>Sun, 18 Apr 2010 18:25:00 +0000</pubDate>			<dc:creator>Francois Planque</dc:creator>
			<category domain="main">Mobile &amp; wireless</category>			<guid isPermaLink="false">959@http://fplanque.com/</guid>
						<description>&lt;p&gt;I was at a conference in Amsterdam last week and although we don&amp;#8217;t have the iPads in Europe yey, I had the opportunity to play for 15 minutes with an iPad brought by a US attendee.&lt;/p&gt;
&lt;p&gt;My first impression was: it&amp;#8217;s really nicely designed, extremely intuitive and responsive. I gotta get one. I also loved the little switch to lock the orientation. Super useful for reading while lying on your side in bed! (Unlike on the iPhone)&lt;/p&gt;
&lt;p&gt;However, after a few minutes I started to realize that a) I don&amp;#8217;t quite know how to hold that thing (whether with or without the Apple carrying case) and b) it&amp;#8217;s getting damn heavy if you hold it in your hand.  Those impression were shared by the owner as well as the other people who played with it.&lt;/p&gt;
&lt;p&gt;I believe this is going to limit how much you actually want to use that device in different situations. I think it&amp;#8217;s actually very impractical to use when you don&amp;#8217;t sit down. Also, I believe Apple should actually drop the stupid glass screens: they&amp;#8217;re heavy and the glare is just annoying!&lt;/p&gt;
&lt;p&gt;Anyways, until then it looks like the Apple product segmentation goes like this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you&amp;#8217;re standing, use your iPhone&lt;/li&gt;
&lt;li&gt;If you&amp;#8217;re sitting in an armchair, couch or other laid back situation, use your iPad&lt;/li&gt;
&lt;li&gt;If you&amp;#8217;re sitting at a table, use your MacBook&lt;/li&gt;
&lt;li&gt;If you&amp;#8217;re sitting at your workdesk, use your iMac or Mac Pro&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ah yes, also:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you want to watch something on your TV, use your Apple TV or better yet: Mac Mini.&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://fplanque.com/info-tech/mobile-wireless/ipad-too-heavy&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I was at a conference in Amsterdam last week and although we don&#8217;t have the iPads in Europe yey, I had the opportunity to play for 15 minutes with an iPad brought by a US attendee.</p>
<p>My first impression was: it&#8217;s really nicely designed, extremely intuitive and responsive. I gotta get one. I also loved the little switch to lock the orientation. Super useful for reading while lying on your side in bed! (Unlike on the iPhone)</p>
<p>However, after a few minutes I started to realize that a) I don&#8217;t quite know how to hold that thing (whether with or without the Apple carrying case) and b) it&#8217;s getting damn heavy if you hold it in your hand.  Those impression were shared by the owner as well as the other people who played with it.</p>
<p>I believe this is going to limit how much you actually want to use that device in different situations. I think it&#8217;s actually very impractical to use when you don&#8217;t sit down. Also, I believe Apple should actually drop the stupid glass screens: they&#8217;re heavy and the glare is just annoying!</p>
<p>Anyways, until then it looks like the Apple product segmentation goes like this:</p>
<ul>
<li>If you&#8217;re standing, use your iPhone</li>
<li>If you&#8217;re sitting in an armchair, couch or other laid back situation, use your iPad</li>
<li>If you&#8217;re sitting at a table, use your MacBook</li>
<li>If you&#8217;re sitting at your workdesk, use your iMac or Mac Pro</li>
</ul>
<p>Ah yes, also:</p>
<ul>
<li>If you want to watch something on your TV, use your Apple TV or better yet: Mac Mini.</li>
</ul><div class="item_footer"><p><small><a href="http://fplanque.com/info-tech/mobile-wireless/ipad-too-heavy">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://fplanque.com/info-tech/mobile-wireless/ipad-too-heavy#comments</comments>
			<wfw:commentRss>http://fplanque.com/info-tech/?tempskin=_rss2&#38;disp=comments&#38;p=959</wfw:commentRss>
		</item>
				<item>
			<title>How to autoplay movies in QuickTime X</title>
			<link>http://fplanque.com/dev/mac/how-to-autoplay-movies-in-quicktime-x</link>
			<pubDate>Wed, 20 Jan 2010 00:58:00 +0000</pubDate>			<dc:creator>Francois Planque</dc:creator>
			<category domain="main">Mac stuff</category>			<guid isPermaLink="false">958@http://fplanque.com/</guid>
						<description>&lt;p&gt;Apple has removed that features in Snow Leopard and QuickTime X has no preferences panel to enable this. So you need to go through the command line to get it back&amp;#8230;&lt;/p&gt;
&lt;p&gt;In Terminal, copy/paste:&lt;/p&gt;
&lt;p&gt;defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1&lt;/p&gt;
&lt;p&gt;Now movies will autploay when you double click them.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://fplanque.com/dev/mac/how-to-autoplay-movies-in-quicktime-x&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Apple has removed that features in Snow Leopard and QuickTime X has no preferences panel to enable this. So you need to go through the command line to get it back&#8230;</p>
<p>In Terminal, copy/paste:</p>
<p>defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1</p>
<p>Now movies will autploay when you double click them.</p><div class="item_footer"><p><small><a href="http://fplanque.com/dev/mac/how-to-autoplay-movies-in-quicktime-x">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://fplanque.com/dev/mac/how-to-autoplay-movies-in-quicktime-x#comments</comments>
			<wfw:commentRss>http://fplanque.com/dev/?tempskin=_rss2&#38;disp=comments&#38;p=958</wfw:commentRss>
		</item>
				<item>
			<title>How to enable X-Ray folder previews in Mac OS Quick Look</title>
			<link>http://fplanque.com/dev/mac/how-to-enable-x-ray-folder-previews-in-mac-os-quick-look</link>
			<pubDate>Wed, 20 Jan 2010 00:56:00 +0000</pubDate>			<dc:creator>Francois Planque</dc:creator>
			<category domain="main">Mac stuff</category>			<guid isPermaLink="false">957@http://fplanque.com/</guid>
						<description>&lt;p&gt;In Terminal copy/paste this:&lt;/p&gt;
&lt;p&gt;defaults write com.apple.finder QLEnableXRayFolders 1&lt;/p&gt;
&lt;p&gt;Then relaunch the Finder. Press space on a selected folder and admire :)&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://fplanque.com/dev/mac/how-to-enable-x-ray-folder-previews-in-mac-os-quick-look&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>In Terminal copy/paste this:</p>
<p>defaults write com.apple.finder QLEnableXRayFolders 1</p>
<p>Then relaunch the Finder. Press space on a selected folder and admire :)</p><div class="item_footer"><p><small><a href="http://fplanque.com/dev/mac/how-to-enable-x-ray-folder-previews-in-mac-os-quick-look">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://fplanque.com/dev/mac/how-to-enable-x-ray-folder-previews-in-mac-os-quick-look#comments</comments>
			<wfw:commentRss>http://fplanque.com/dev/?tempskin=_rss2&#38;disp=comments&#38;p=957</wfw:commentRss>
		</item>
				<item>
			<title>Why echo is slow in PHP and how to make it really fast</title>
			<link>http://fplanque.com/dev/linux/why-echo-is-slow-in-php-how-to-make-it-really-fast</link>
			<pubDate>Thu, 03 Dec 2009 05:40:00 +0000</pubDate>			<dc:creator>Francois Planque</dc:creator>
			<category domain="alt">PHP</category>
<category domain="alt">Web Dev</category>
<category domain="main">Linux stuff</category>			<guid isPermaLink="false">956@http://fplanque.com/</guid>
						<description>&lt;p&gt;You may have noticed that PHP scripts that echo a lot of content appear to be running with poor performance&amp;#8230;&lt;/p&gt;
&lt;p&gt;Well, the operative word here is &amp;#8220;appear&quot;. It is a common misconception that &amp;#8220;echo is the slowest PHP command&quot;! :p&lt;/p&gt;
&lt;p&gt;The problem is actually just a bandwidth issue! When you try to pump a lot of content though the Internet, at some point you experience &amp;#8220;load time&quot;&amp;#8230; and at some point PHP actually experiences &amp;#8220;send time&quot;!&lt;/p&gt;
&lt;p&gt;You may measure the execution time between the begining and the end of your script, and, on a slow connection, it may show you that it took 500 ms to execute. You may even narrow it down to a single echo statement that takes 480 ms to execute. But that time actually includes wait time where PHP cannot send any more data back to apache!&lt;/p&gt;
&lt;p&gt;There is a common trick that consists of starting output befering before echoing, like this:&lt;/p&gt;
&lt;p class=&quot;amcode&quot;&gt;PHP:&lt;/p&gt;&lt;div class=&quot;codeblock amc_php amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_html&quot;&gt;&lt;span class=&quot;amc_default&quot;&gt;&lt;a href=&quot;http://www.php.net/function.ob_start&quot; title=&quot; Read the PHP.net documentation for : ob_start() &quot; target=&quot;_blank&quot; class=&quot;codeblock_external_link&quot;&gt;ob_start&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;amc_keyword&quot;&gt;();&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;amc_code_even&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc2&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_html&quot;&gt;&lt;span class=&quot;amc_keyword&quot;&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;amc_default&quot;&gt;$a_lot_of_content&lt;/span&gt;&lt;span class=&quot;amc_keyword&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;This will allow PHP to move on and appear to terminate fast. But the truth is, all the content is now in PHP&amp;#8217;s output buffer, and although your script is done, PHP is still working in the background to send all that data to your web server (apache for instance).&lt;/p&gt;
&lt;a href=&quot;http://fplanque.com/dev/linux/why-echo-is-slow-in-php-how-to-make-it-really-fast#more956&quot;&gt;Full story &amp;raquo;&lt;/a&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://fplanque.com/dev/linux/why-echo-is-slow-in-php-how-to-make-it-really-fast&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>You may have noticed that PHP scripts that echo a lot of content appear to be running with poor performance&#8230;</p>
<p>Well, the operative word here is &#8220;appear". It is a common misconception that &#8220;echo is the slowest PHP command"! :p</p>
<p>The problem is actually just a bandwidth issue! When you try to pump a lot of content though the Internet, at some point you experience &#8220;load time"&#8230; and at some point PHP actually experiences &#8220;send time"!</p>
<p>You may measure the execution time between the begining and the end of your script, and, on a slow connection, it may show you that it took 500 ms to execute. You may even narrow it down to a single echo statement that takes 480 ms to execute. But that time actually includes wait time where PHP cannot send any more data back to apache!</p>
<p>There is a common trick that consists of starting output befering before echoing, like this:</p>
<p class="amcode">PHP:</p><div class="codeblock amc_php amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_html"><span class="amc_default"><a href="http://www.php.net/function.ob_start" title=" Read the PHP.net documentation for : ob_start() " target="_blank" class="codeblock_external_link">ob_start</a></span><span class="amc_keyword">();&nbsp;</span></span></code></td></tr>
<tr class="amc_code_even"><td class="amc_line"><div class="amc2"></div></td><td><code><span class="amc_html"><span class="amc_keyword">echo&nbsp;</span><span class="amc_default">$a_lot_of_content</span><span class="amc_keyword">;</span></span></code></td></tr>
</table></div>
<p>This will allow PHP to move on and appear to terminate fast. But the truth is, all the content is now in PHP&#8217;s output buffer, and although your script is done, PHP is still working in the background to send all that data to your web server (apache for instance).</p>
<a href="http://fplanque.com/dev/linux/why-echo-is-slow-in-php-how-to-make-it-really-fast#more956">Full story &raquo;</a><div class="item_footer"><p><small><a href="http://fplanque.com/dev/linux/why-echo-is-slow-in-php-how-to-make-it-really-fast">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://fplanque.com/dev/linux/why-echo-is-slow-in-php-how-to-make-it-really-fast#comments</comments>
			<wfw:commentRss>http://fplanque.com/dev/?tempskin=_rss2&#38;disp=comments&#38;p=956</wfw:commentRss>
		</item>
				<item>
			<title>How to log request processing times in Apache</title>
			<link>http://fplanque.com/dev/linux/how-to-log-request-processing-times-in-apache</link>
			<pubDate>Thu, 03 Dec 2009 02:33:00 +0000</pubDate>			<dc:creator>Francois Planque</dc:creator>
			<category domain="alt">Web Dev</category>
<category domain="main">Linux stuff</category>			<guid isPermaLink="false">955@http://fplanque.com/</guid>
						<description>&lt;p&gt;If you have an apache (2) web server, you probably have an access.log file showing you all kinds of data using the &amp;#8220;combined&amp;#8221; log format. &lt;strong&gt;Let&amp;#8217;s see how to include processing time into that log file.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;By default a line in the combined log looks like this:&lt;/p&gt;
&lt;p class=&quot;amcode&quot;&gt;Code:&lt;/p&gt;&lt;div class=&quot;codeblock amc_code amc_short&quot;&gt;&lt;table&gt;&lt;tr class=&quot;amc_code_odd&quot;&gt;&lt;td class=&quot;amc_line&quot;&gt;&lt;div class=&quot;amc1&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;&lt;span class=&quot;amc_default&quot;&gt;10.0.209.80 - - [03/Dec/2009:03:20:47 +0100] &quot;GET /info-tech/ HTTP/1.1&quot; 200 46482 &quot;http://fplanque.com/info-tech/&quot; &quot;Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5&quot;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Notice the 2 dashes - - just after the IP. The first one stands for &amp;#8220;I could not identify the user using ident&amp;#8221; and the second one for &amp;#8220;no user authentication was performed&quot;.&lt;/p&gt;
&lt;p&gt;Now, let&amp;#8217;s face it: you will never identify anyone using ident. Your apache conf probably even doesn&amp;#8217;t try. That field is a left over from ancient times. So let&amp;#8217;s replace that first dash with something useful, i-e: the processing time of the request! Note that by doing this we keep the global structure of the file identical and any log processing tool you might be using should not be affected.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://fplanque.com/dev/linux/how-to-log-request-processing-times-in-apache#more955&quot;&gt;Full story &amp;raquo;&lt;/a&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://fplanque.com/dev/linux/how-to-log-request-processing-times-in-apache&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>If you have an apache (2) web server, you probably have an access.log file showing you all kinds of data using the &#8220;combined&#8221; log format. <strong>Let&#8217;s see how to include processing time into that log file.</strong></p>
<p>By default a line in the combined log looks like this:</p>
<p class="amcode">Code:</p><div class="codeblock amc_code amc_short"><table><tr class="amc_code_odd"><td class="amc_line"><div class="amc1"></div></td><td><code><span class="amc_default">10.0.209.80 - - [03/Dec/2009:03:20:47 +0100] "GET /info-tech/ HTTP/1.1" 200 46482 "http://fplanque.com/info-tech/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5"</span></code></td></tr>
</table></div>
<p>Notice the 2 dashes - - just after the IP. The first one stands for &#8220;I could not identify the user using ident&#8221; and the second one for &#8220;no user authentication was performed".</p>
<p>Now, let&#8217;s face it: you will never identify anyone using ident. Your apache conf probably even doesn&#8217;t try. That field is a left over from ancient times. So let&#8217;s replace that first dash with something useful, i-e: the processing time of the request! Note that by doing this we keep the global structure of the file identical and any log processing tool you might be using should not be affected.</p>
<p><a href="http://fplanque.com/dev/linux/how-to-log-request-processing-times-in-apache#more955">Full story &raquo;</a><div class="item_footer"><p><small><a href="http://fplanque.com/dev/linux/how-to-log-request-processing-times-in-apache">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://fplanque.com/dev/linux/how-to-log-request-processing-times-in-apache#comments</comments>
			<wfw:commentRss>http://fplanque.com/dev/?tempskin=_rss2&#38;disp=comments&#38;p=955</wfw:commentRss>
		</item>
			</channel>
</rss>
