<?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>Thomas Hambach - Web engineer &#187; software</title>
	<atom:link href="http://www.rdlt.com/category/software/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rdlt.com</link>
	<description>Web development, Web design &#38; Usability</description>
	<lastBuildDate>Mon, 06 Dec 2010 09:45:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>xdebug trace file parser</title>
		<link>http://www.rdlt.com/xdebug-trace-file-parser.html</link>
		<comments>http://www.rdlt.com/xdebug-trace-file-parser.html#comments</comments>
		<pubDate>Wed, 18 Nov 2009 18:02:10 +0000</pubDate>
		<dc:creator>Thomas Hambach</dc:creator>
				<category><![CDATA[freebies]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[xdebug]]></category>

		<guid isPermaLink="false">http://www.rdlt.com/?p=241</guid>
		<description><![CDATA[When I am trying to optimize my PHP code, one of my prefered tools is xdebug. It provides me with excellent error messages, outputs code tracing files &#38; insight into memory usage. By using kcachegrind or webgrind &#8211; wincachegrind crashes *all* the time &#8211; to parse the cachegrind files created by xdebug, you get a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-243" title="xdebug_trace_preview" src="http://www.rdlt.com/wp-content/uploads/2009/11/xdebug_trace_preview-300x199.png" alt="xdebug_trace_preview" width="300" height="199" /></p>
<p>When I am trying to optimize my PHP code, one of my prefered tools is <a href="http://www.xdebug.org" target="_blank">xdebug</a>. It provides me with excellent error messages, outputs code tracing files &amp; insight into memory usage.</p>
<p>By using kcachegrind or <a href="http://code.google.com/p/webgrind/" target="_blank">webgrind</a> &#8211; wincachegrind crashes *all* the time &#8211; to parse the cachegrind files created by xdebug, you get a good idea of what your code is doing most of the time. It&#8217;ll show you which functions are called, by who, which arguments are passed and tons more. <a href="http://www.xdebug.org" target="_blank">Check it out. </a></p>
<p>Now, there was one small thing I couldn&#8217;t find anywhere. A program to parse the trace files that xdebug generates. True, xdebug already provides the option to output this information into HTML, but it&#8217;s not really what I was looking for. <strong>I want to get quick information in the blink of an eye! </strong>That&#8217;s why I have created my own trace file parser, based on PHP of course.</p>
<h3><span id="more-241"></span>What is it?</h3>
<p>This <strong>xdebug trace parser</strong> will show you, for each function:</p>
<ul>
<li>How much memory was used on entry &amp; exit</li>
<li>How much time it costed to execute the function</li>
<li>The exact line the function was called from plus insight into the code by clicking a link</li>
<li>Whether the function is native PHP or not</li>
</ul>
<p><a rel="lightbox" href="http://www.rdlt.com/wp-content/uploads/2009/11/xdebug_trace_warning.png"><img class="alignnone size-medium wp-image-245" title="xdebug_trace_warning" src="http://www.rdlt.com/wp-content/uploads/2009/11/xdebug_trace_warning-300x54.png" alt="xdebug_trace_warning" width="300" height="54" /></a></p>
<p>It also has a basic &#8220;alerting&#8221; feature, which will allow you to set triggers on memory usage &amp; execution time. You can specifiy that if the memory or time jump is greater than a certain value, to show this in the output.</p>
<h3>Requirements</h3>
<p>It should be obvious that you&#8217;ll need to install and configure xdebug for your PHP installation. See <a href="http://www.xdebug.org" target="_blank">http://www.xdebug.org</a> for more information on this.</p>
<p>Your xdebug config should look a bit like this, don&#8217;t forget to update your paths <img src='http://www.rdlt.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<pre><code>[XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts="\php\ext\php_xdebug-2.0.4-5.2.8.dll"
xdebug.auto_trace=1
xdebug.trace_format=1
xdebug.profiler_append=1
xdebug.profiler_enable=1
xdebug.profiler_enable_trigger=0
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.trace_output_dir="D:\webserver\xdebug"
xdebug.trace_output_name= %t.trace
xdebug.profiler_output_name = %s.%t.profile
xdebug.profiler_output_dir="D:\webserver\xdebug"
</code></pre>
<h3>Download</h3>
<p>Now, give it a try and <a href="../wp-content/uploads/2009/11/trace.zip" target="_blank">downlod the xdebug trace file parser here!</a></p>
<h3>Usage</h3>
<p>Once you&#8217;ve downloaded the trace file parser, extract it to a directory inside your website root and surf to the URL. If everything works out you should be able to select trace files onceyou have ran an other PHP script on your server. This trace file parser will *not* show it&#8217;s own traces because that would make things even more complicated!</p>
<p>Comments &amp; suggestions! <img src='http://www.rdlt.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rdlt.com/xdebug-trace-file-parser.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Message for the Samsung Software Departement: You Suck.</title>
		<link>http://www.rdlt.com/message-for-the-samsung-software-departement-you-suck.html</link>
		<comments>http://www.rdlt.com/message-for-the-samsung-software-departement-you-suck.html#comments</comments>
		<pubDate>Sun, 16 Aug 2009 20:42:59 +0000</pubDate>
		<dc:creator>Thomas Hambach</dc:creator>
				<category><![CDATA[rant]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[booting]]></category>
		<category><![CDATA[cellphone]]></category>
		<category><![CDATA[crap]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[no response from device]]></category>

		<guid isPermaLink="false">http://www.rdlt.com/?p=200</guid>
		<description><![CDATA[So you just got your shiny new Samsung Star out of the box and you want to hook it to your computaaahrgggg&#8230; Because those snazzy Samsung phones don&#8217;t like windows explorer to see their files, you go ahead and install the device driver software. All and all installation goes well besides for some error messages [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://www.rdlt.com/wp-content/uploads/2009/08/samsung-star.jpg"><img class="alignnone size-medium wp-image-202" title="samsung-star" src="http://www.rdlt.com/wp-content/uploads/2009/08/samsung-star-168x300.jpg" alt="samsung-star" width="168" height="300" /></a>So you just got your shiny new Samsung Star out of the box and you want to hook it to your computaaahrgggg&#8230;</p>
<p>Because those snazzy Samsung phones don&#8217;t like windows explorer to see their files, you go ahead and install the device driver software. All and all installation goes well besides for some error messages complaining about 64bit&#8230; You&#8217;re thinking &#8220;Hmm&#8230; I thought the website and box said 64bit compatible.&#8221; So those messages go into your ignore box&#8230; (This is where you go wrong)</p>
<p>Opening up the program you get one of those lounge beats that you might of heard when you&#8217;re installing Windows. They even added shiny buttons and a little flash application to show you how well it&#8217;s going to work! Unfortunately this application seems to crash once you click on the first button but still manages to launch the Samsung New PC studio! Woooo! Time to add so&#8230;me&#8230; fi&#8230;l&#8230;es? Errr&#8230;</p>
<p>So&#8230; you press the shiny &#8220;connect&#8221; button and see that your Samsung Phone is properly connected. Goodies. You select your phone, click on connect and&#8230; wait&#8230; wait&#8230; wait a little bit longer&#8230; you get a coffee&#8230; Once you get back with your coffee, ready to enjoy the promises made in the flash movie that just crashed. Oh noes. &#8220;<strong>no response from the device.</strong>&#8220;. Your reboot your computer, your phone&#8230; nothing seems to work (yes, I have tried yelling at it).</p>
<p>Next on the list&#8230; Googling the issue&#8230; &#8220;<strong>no response from the device because it is in the initializing stage after booting. try again after the initialization has completed.</strong>&#8221; 3 very unhelpful results. Crap. Crap. CRAAAHAAAAP. Anyway, while performing this Google search for the issue I did find out that this New PC studio is *not* compatible with 64bit systems. Teehee. The webpage that provided this information also provides a hint about an older version of the pc studio. So I close my eyes, wish for the best  and download samsung pc studio 3.</p>
<p>Ofcourse, before installing pc studio 3 it would be wise to uninstall new pc studio. Right? Right! Going to the control panel I got a pleasent surprise. Tehee. No less than 9 different drivers and/or utilities have been installed by the new pc studio installer. What the f¨ck. Some seem to be copies of one another? And Duh. You have to uninstall each program on it&#8217;s own.</p>
<p><a rel="lightbox" href="http://www.rdlt.com/wp-content/uploads/2009/08/thankyousamsung.jpg"><img title="thankyousamsung" src="http://www.rdlt.com/wp-content/uploads/2009/08/thankyousamsung-300x225.jpg" alt="thankyousamsung" width="300" height="225" /></a></p>
<p>In the end&#8230; <em>pc studio 3 still doesn&#8217;t make it work</em>. In fact, it just got worse. USB drivers failed to work and the program itself kept crashing.</p>
<p>Anyway, if any of you out there happen to have a solution for this issue, it&#8217;s would be more than welcome because a lot of people are having this problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rdlt.com/message-for-the-samsung-software-departement-you-suck.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

