<?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>Collidr</title>
	<atom:link href="http://collidr.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://collidr.com</link>
	<description>ramblings from a systems guy</description>
	<lastBuildDate>Wed, 15 Jul 2009 18:02:25 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='collidr.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/f375db448b4743d3399c14758b21b64f?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Collidr</title>
		<link>http://collidr.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://collidr.com/osd.xml" title="Collidr" />
	<atom:link rel='hub' href='http://collidr.com/?pushpress=hub'/>
		<item>
		<title>Cloud apps</title>
		<link>http://collidr.com/2009/07/15/cloud-apps/</link>
		<comments>http://collidr.com/2009/07/15/cloud-apps/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 18:02:25 +0000</pubDate>
		<dc:creator>Collidr</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[cloud apps]]></category>

		<guid isPermaLink="false">http://collidr.com/?p=16</guid>
		<description><![CDATA[I&#8217;m constantly amazed by some of the apps that are being created purely for online use.  Traditionally most of these apps require that they run on your desktop but converting them to cloud applications makes them completly platform independent.  Here&#8217;s a list of some of my favorites so far.
Aviary.com
Aviary provides a set of online graphics [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=collidr.com&blog=2859918&post=16&subd=tekiedude&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">I&#8217;m constantly amazed by some of the apps that are being created purely for online use.  Traditionally most of these apps require that they run on your desktop but converting them to cloud applications makes them completly platform independent.  Here&#8217;s a list of some of my favorites so far.</p>
<p><a href="http://aviary.com"><strong>Aviary.com</strong></a><br />
Aviary provides a set of online graphics tools that will challenge all those photoshop users that don&#8217;t need all of the fancy bells and whistles to create graphics for the web.  The tools provided by the Image Editor are probably enough to satisfy the normal user. A great plus is a firefox extension named <a href="https://addons.mozilla.org/en-US/firefox/addon/11587">Tallon</a> that rivals <a href="http://www.jingproject.com/">Jing</a> in it&#8217;s screen capture simplicity.</p>
<div id="attachment_17" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-17" title="Aviary" src="http://tekiedude.files.wordpress.com/2009/07/aviary.png?w=300&#038;h=195" alt="Aviary Online Graphics design tools" width="300" height="195" /><p class="wp-caption-text">Aviary Online Graphics design tools</p></div>
<p><a href="http://balsamiq.com"><strong>Balsamiq.com</strong></a><br />
Balsamiq provides a set of &#8216;Web Office&#8217; tools but primarily one to create quick mocks and wire-frames for websites.  I love the playful drawn feeling of the end result. It&#8217;s like you drew it by hand but honestly better than anything I could draw with a pencil.</p>
<div id="attachment_29" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-29" title="balsamiq" src="http://tekiedude.files.wordpress.com/2009/07/balsamiq.png?w=300&#038;h=184" alt="Online tools for Web Mock-ups and Wire-Frames" width="300" height="184" /><p class="wp-caption-text">Online tools for Web Mock-ups and Wire-Frames</p></div>
<p><a href="http://gliffy.com">Gliffy.com</a><br />
Gliffy is an online diagramming tool.  It&#8217;s not as robust as something like visio but one of the drawbacks of switching to a Mac is that there is no real visio equivalent.  This app comes really close.</p>
<div id="attachment_31" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-31" title="gliffy" src="http://tekiedude.files.wordpress.com/2009/07/gliffy.png?w=300&#038;h=247" alt="Online Network Diagrams" width="300" height="247" /><p class="wp-caption-text">Online Network Diagrams</p></div>
<br />Posted in Apps Tagged: cloud apps <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekiedude.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekiedude.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekiedude.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekiedude.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekiedude.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekiedude.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekiedude.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekiedude.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekiedude.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekiedude.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=collidr.com&blog=2859918&post=16&subd=tekiedude&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://collidr.com/2009/07/15/cloud-apps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/038988220174da2405a41da9675c893c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Collidr</media:title>
		</media:content>

		<media:content url="http://tekiedude.files.wordpress.com/2009/07/aviary.png?w=300" medium="image">
			<media:title type="html">Aviary</media:title>
		</media:content>

		<media:content url="http://tekiedude.files.wordpress.com/2009/07/balsamiq.png?w=300" medium="image">
			<media:title type="html">balsamiq</media:title>
		</media:content>

		<media:content url="http://tekiedude.files.wordpress.com/2009/07/gliffy.png?w=300" medium="image">
			<media:title type="html">gliffy</media:title>
		</media:content>
	</item>
		<item>
		<title>find blank lines at end of files</title>
		<link>http://collidr.com/2009/06/30/find-blank-lines-at-end-of-files/</link>
		<comments>http://collidr.com/2009/06/30/find-blank-lines-at-end-of-files/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 16:24:21 +0000</pubDate>
		<dc:creator>Collidr</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[one liner]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://collidr.com/?p=12</guid>
		<description><![CDATA[I use Coda for most of my coding needs on the Mac.  I&#8217;m also a system&#8217;s guy so I use VI a lot to create simple scripts in perl, php and bash. When I&#8217;m creating a php script, on of the first things I do is add the opening and closing PHP tags.  One of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=collidr.com&blog=2859918&post=12&subd=tekiedude&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I use Coda for most of my coding needs on the Mac.  I&#8217;m also a system&#8217;s guy so I use VI a lot to create simple scripts in perl, php and bash. When I&#8217;m creating a php script, on of the first things I do is add the opening and closing PHP tags.  One of the drawbacks is that when you use the standard PHP closing tag &#8216;?&gt;&#8217; and then hit &#8216;enter&#8217; in your keyboard while using Coda, it adds a blank line to the bottom of your file.  In general this isn&#8217;t a problem but your RSS feeds or any XML feed for that matter will more than likely have a blank line before the XML header.  This causes some browsers   &#8211; Firefox in particular &#8211; to complain about XML syntax.</p>
<p>I needed to find all files that had a blank line at the end.  I love one-liners so here&#8217;s one that does the trick:</p>
<blockquote><p>echo &#8216;&lt;?php foreach (glob(&#8220;**/*.php&#8221;) as $file){if (preg_match( &#8220;/\\?&#8221;.&#8221;&gt;\\s\\s+\\Z/m&#8221;, file_get_contents($file))) echo(&#8220;$file\n&#8221;);} ?&gt;&#8217; | php</p></blockquote>
<p>If you like ruby, here&#8217;s a much simpler line:</p>
<blockquote><p>ruby -e &#8216;Dir.glob( &#8220;**/*.php&#8221; ) { |file| puts file if IO.read(file).match( /\?&gt;\s{2,}\Z/m) }&#8217;</p></blockquote>
<br />Posted in PHP Tagged: one liner, xml <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekiedude.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekiedude.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekiedude.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekiedude.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekiedude.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekiedude.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekiedude.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekiedude.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekiedude.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekiedude.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=collidr.com&blog=2859918&post=12&subd=tekiedude&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://collidr.com/2009/06/30/find-blank-lines-at-end-of-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/038988220174da2405a41da9675c893c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Collidr</media:title>
		</media:content>
	</item>
		<item>
		<title>Optimizing PHP echo &#8211; single vs double quotes</title>
		<link>http://collidr.com/2009/06/25/optimizing-php-echo-single-vs-double-quotes/</link>
		<comments>http://collidr.com/2009/06/25/optimizing-php-echo-single-vs-double-quotes/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 18:01:54 +0000</pubDate>
		<dc:creator>Collidr</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[optimizations]]></category>

		<guid isPermaLink="false">http://collidr.com/?p=3</guid>
		<description><![CDATA[Here&#8217;s an interesting item I doubt many PHP developers know.  There&#8217;s a performance hit to using strings with double quotes instead of single quotes.  According to an article written about simple PHP Optimizations by the helpful folks at google you may actually be hurting yourself by using double quotes in strings that use variables.  Most [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=collidr.com&blog=2859918&post=3&subd=tekiedude&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an interesting item I doubt many PHP developers know.  There&#8217;s a performance hit to using strings with double quotes instead of single quotes.  According to an article written about simple <a href="http://code.google.com/speed/articles/optimizing-php.html">PHP Optimizations</a> by the helpful folks at google you may actually be hurting yourself by using double quotes in strings that use variables.  Most programmers use this convention because it&#8217;s simple to type and easy to read.  Apparently, using this convention tells the PHP engine to parse the string, look for variables inside it and replace them.  If you use single quotes and concatenation, you won&#8217;t have this overhead.</p>
<p>In my simple, unscientific tests, it looks like there&#8217;s a <strong>30%</strong> difference in performance if us use double-quotes.</p>
<p>I used a for loop with a simple string that used the loops variable inside it and echo&#8217;ed the line 100,000 times.  I ran this 50 times and took used microtime to compute how long it took for the loop to complete. I did this using all the different combinations they discuss in the article and I did this on a local linux box to make sure network latency wasn&#8217;t a factor.</p>
<p>I found that using the comma versus the period for concatenation didn&#8217;t affect performance in any significant way.  Using double quotes took on average 30% longer to complete.</p>
<p>That&#8217;s a significant difference and something to keep in mind when writing code.  I have no converted to using double quotes sparingly.</p>
<p>If you&#8217;re interested in the methodology, here&#8217;s the code that I&#8217;m sure someone will pick-apart.</p>
<blockquote><p>&lt;?php<br />
$start=microtime();<br />
$start=explode(&#8221; &#8220;,$start);<br />
$start=$start[1]+$start[0];<br />
for ($i=0; $i &lt; 100000; $i++){<br />
echo &#8216;this is a string with the variable: &#8216;,$i,chr(10);<br />
}<br />
$end=microtime();<br />
$end=explode(&#8221; &#8220;,$end);<br />
$end=$end[1]+$end[0];</p>
<p>printf(&#8220;generated in %f seconds\n&#8221;,$end-$start);<br />
?&gt;</p></blockquote>
<br />Posted in PHP Tagged: echo, optimizations <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekiedude.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekiedude.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekiedude.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekiedude.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekiedude.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekiedude.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekiedude.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekiedude.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekiedude.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekiedude.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=collidr.com&blog=2859918&post=3&subd=tekiedude&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://collidr.com/2009/06/25/optimizing-php-echo-single-vs-double-quotes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/038988220174da2405a41da9675c893c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Collidr</media:title>
		</media:content>
	</item>
	</channel>
</rss>