<?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>Komodo Media &#187; Tumblelog</title>
	<atom:link href="http://www.komodomedia.com/categories/tumblelog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.komodomedia.com</link>
	<description>blog, webdesign, illustration &#38; newsk00l javascript</description>
	<lastBuildDate>Wed, 18 Jan 2012 14:43:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Web Designer’s Daily Digest</title>
		<link>http://www.komodomedia.com/blog/2009/01/web-designer%e2%80%99s-daily-digest/</link>
		<comments>http://www.komodomedia.com/blog/2009/01/web-designer%e2%80%99s-daily-digest/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 06:17:25 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tumblelog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[God]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[ronald jenkees]]></category>

		<guid isPermaLink="false">http://www.komodomedia.com/?p=559</guid>
		<description><![CDATA[Here's a few valuable links I've dug up over the course of the past couple of weeks, in absolutely no logical order. I prefer it that way.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a few valuable links I&#8217;ve dug up over the course of the past couple of weeks, in absolutely no logical order. I prefer it that way:</p>
<ul>
<li><strong><a href="http://textflow.com/">TextFlow</a> Online Word Processing</strong>
<p>Pretty interesting looking online flash-based word processor.</p>
</li>
<li><strong><a href="http://www.macupdate.com/info.php/id/25327/regexhibit">RegExhibit</a> OSX Regular Expression Editor</strong>
<p>The OSX Regular Expression editor and debugger I&#8217;ve been looking for.</p>
</li>
<li><strong><a href="http://www.housingworks.org/">Housing Works</a></strong> Beautiful design
<p>The design for this website is stunning. I love large background websites.</p>
</li>
<li><strong><a href="http://www.serie3.info/s3slider/demonstration.html">s3slider</a>  jQuery Sliding Image Captions</strong>
<p>A very cool solution for image captions that lay over an image and animate in.</p>
</li>
<li><strong><a href="http://www.ronaldjenkees.com/">Ronald Jenkees</a> Electronic music</strong>
<p>One of the most original sounding solo electronic artists out there. Check out <a href="http://www.ronaldjenkees.com/2008/08/16/stay-crunchy-youtube-jam/">&#8220;Stay Crunchy&#8221;</a>. I can&#8217;t wait for his new album!</p>
</li>
<li><strong><a href="http://www.inovat.com/">Inovat</a> Sweet Looking Portfolio</strong>
<p>Incredibly simple, yet sweet looking portfolio web design.</p>
</li>
<li><strong>Enable path view in OSX Finder</strong>
<p>Haven&#8217;t you always wanted to display the full path to the current folder in your Finder window? In terminal, enter the following command:</p>
<p><code>defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES</code>
<p>Next, enter the following code to restart your Finder:</p>
<p><code>killall Finder</code></li>
<li><strong><a href="http://www.creativeandlive.com/">Creative and Live</a> Tight Minimal Design</strong>
<p>Really clean and tight minimal design. I love the logo and subtlety.</p>
</li>
<li><strong><a href="http://spacecollective.org/">Space Collective</a> Dark Simple Design</strong>
<p>Beautiful dark website design. I love the typography, color scheme and the block-like grid.</p>
</li>
<li><strong><a href="http://www.carbonica.org/">Carbonica</a> Stunning hand-drawn style</strong>
<p>This site has taken hand-drawn to a new level, complete with hand-drawn icons, headings, navigation and a cool illustrative style.</p>
</li>
<li><strong><a href="http://tapbots.com/weightbot">Weightbot Website</a> Dark, smooth and metallic</strong>
<p>Weightbot for the iPhone/iPod was cool and so is it&#8217;s site. I love the dark, metallic, apple-like style. Gorgeous work by<a href="http://markjardine.com/"> Mark Jardine.</a></p>
</li>
<li><strong><a href="http://iamsecond.com/">I AM SECOND</a> Amazing, heart-felt stories</strong>
<p>I absolutely love real stories about what God has done in people&#8217;s lives. This site is awesome.</p>
</li>
<li><strong><a href="http://www.command-tab.com/2008/12/04/jquery-fling/"> jQuery Fling</a> Subscribe/Publish event model</strong>
<p><a href="http://www.command-tab.com/">Collin Allen </a> has written a sweet jQuery plug-in that makes it easy to code JavaScript events using a publisher/subscriber model very similar to Flash.</p>
</li>
<li><strong><a href="http://deepliquid.com/projects/Jcrop/">jCrop</a> jQuery Image Cropping</strong>
<p>Very smooth jQuery image cropping plugin.</p>
</li>
<li><strong>Smooth CSS Image Resizing in IE</strong>
<p>I can&#8217;t believe that I&#8217;ve never seen this until now. Finally, bicubic interpolation for Internet Explorer with only one CSS rule:</p>
<p><code>img {<br />
	-ms-interpolation-mode:bicubic;<br />
}</code></p>
<h4>Preview:</h4>
<p><img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2009/01/css_ms_interpolation.jpg" alt="CSS MS Interpolation preview"/>
</li>
<li><strong><a href="http://hicksdesign.co.uk/journal/dropbox-leap-sitting-in-a-tree">Dropbox/Leap Scrapbooking</a> Killer online scrapbooking</strong>
<p>Jon Hicks has come up with a very sweet way of scrapbooking all of those screenshots that you&#8217;ve been compiling over the times. I think I&#8217;ll actually use this one.</p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2009/01/web-designer%e2%80%99s-daily-digest/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Web Designer&#8217;s Daily Digest</title>
		<link>http://www.komodomedia.com/blog/2008/11/web-designers-daily-digest/</link>
		<comments>http://www.komodomedia.com/blog/2008/11/web-designers-daily-digest/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 03:39:03 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Tumblelog]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[g-speak]]></category>
		<category><![CDATA[google video]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[snook]]></category>

		<guid isPermaLink="false">http://www.komodomedia.com/?p=505</guid>
		<description><![CDATA[So, I&#8217;m gonna keep up with showing all y&#8217;all what I find. I can&#8217;t afford to do it daily, but after I find enough stuff on the interweb, I&#8217;ll keep sharing it. 
I know this much. Lists like this really help me. I&#8217;m typically an out-of-the-loop sort of fella, so by the time I find [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;m gonna keep up with showing all y&#8217;all what I find. I can&#8217;t afford to do it daily, but after I find enough stuff on the interweb, I&#8217;ll keep sharing it. </p>
<p>I know this much. Lists like this really help me. I&#8217;m typically an out-of-the-loop sort of fella, so by the time I find cool stuff, it&#8217;s years later than the crowd. So, maybe, just maybe this will help you stay in the loop:</p>
<ul>
<li><strong><a href="http://louiemantia.com/blog/?p=9">The Importance of Icon Metaphors</a></strong>
<p>I&#8217;m already a huge fan of Louie Mantia&#8217;s work, but I found this blog article particularly interesting. Learn how it&#8217;s not only important for your icons to look good, but speak in a language your user knows.</p>
</li>
<li><strong><a href="http://us.lge.com/bluray/?BAC-BR-B&#038;pl=BR1">LG Streaming Blu-ray Player</a></strong> Ohhh my awesome!
<p>Blu-ray with no discs? Wha!?!? Unlimited Blu-ray quality movies from Netflix? Wha?!?! Hello, dream-machine.</p>
</li>
<li><strong>URL Shortening <a href="http://andrew.hedges.name/widgets/">Widget</a></strong> &amp; <strong><a href="http://bit.ly/">Website</a></strong> For all you social-medians
<p>URL-shortening for all you Twitter and micro-blogging addicts.</p>
</li>
<li><strong><a href="http://haineault.com/media/jquery/ui-timepickr/page/">jQuery Time Pickr</a></strong>
<p>An incredibly intuitive and clever form time picker jQuery plugin.</p>
</li>
<li><strong><a href="http://ejohn.org/blog/css-animations-and-javascript/">CSS3 Transitions/Animations</a></strong> by John Resig
<p>A word on CSS3 Transitions/Animations from the JavaScript genius, John Resig.</p>
</li>
<li><strong><a href="http://www.wallswaps.com">Wall Swaps</a></strong> Clever business schwag
<p>Check this site out, not only for the cool marketing schwag, but a really clever implementation of a corkboard.</p>
</li>
<li><strong><a href="http://csszengarden.com/?cssfile=/213/213.css&#038;page=0">CSS Zen Garden &#8211; Under the Sea</a></strong> Hott CSS Zen Garden submission
<p>This has to be one of the most beautiful CSS Zen Garden submissions I&#8217;ve ever seen.</p>
</li>
<li><strong><a href="http://csszengarden.com/?cssfile=/212/212.css&#038;page=0">Make em Proud</a></strong> Runner-up CSS Zen Garden submission
<p>If under the sea is one of the most hot CSS Zen Garden submissions, this is the runner-up</p>
</li>
<li><strong><a href="https://developer.mozilla.org/en/CSS/@-moz-document">@-moz-document</a></strong>
<p>Style different pages on your domain with <code class="inline">@-moz-document</code>. CSS is gonna get sweet if this works cross-browswer.</p>
</li>
<li><strong><a href="http://fancy.klade.lv/">FancyBox</a></strong> OSX Content Zooming
<p>OSX-like zooming for your website for not only images, but iFrame and video content too!</p>
</li>
<li><strong><a href="http://www.techcrunch.com/2008/11/11/google-adds-voice-and-video-chat-to-gmail/">Google Voice/Video Chat</a></strong>
<p>Google adds what we&#8217;ve all been waiting for. Just click on the new “Video &amp; more” menu in a Gmail chat window and select “Start video chat” or “Start voice chat.”</p>
</li>
<li><strong><a href="http://www.pixelmator.com/ ">Pixelmator</a></strong> Flippin&#8217; beautiful and vibrant!
<p>I noticed this site a while back and ran across it a few days ago. What a beautiful site, full of vibrance and killer icons.</p>
</li>
<li><strong><a href="http://checkoutapp.com/">Checkout App</a></strong> Clean site
<p>Another site I&#8217;ve ran across many times. This site also has some great icons and is extremely clean and smooth. Obviously it&#8217;s an OSX application. Gorgeous.</p>
</li>
<li><strong><a href="http://www.taptaptap.com">TapTapTap</a></strong> Innovative iPhone design
<p>I <strong>love</strong> this site. There&#8217;s something about a concept taken to it fullness &#8211; in this case, a sushi table. From the chopsticks and tuna to the wasabi and soy sauce to the cutting board, this site rocks. One page, simple, with sweet javascript transitions. Add to that the fact that they are making some of the sweetest iPhone apps out there. In the words of <a href="http://twitter.com/ridlo">@ridlo</a>, this is the <strong>swisstastic</strong> hotness.</p>
</li>
<li><strong><a href="http://nettuts.com/articles/interviews/an-interview-with-jonathan-snook/">Interview with Jonathan Snook </a></strong> The Snook
<p>Cool interview with the man, Snook himself. Learn about how the masta does it.</p>
</li>
<li><strong><a href="http://oblong.com">G-Speak Operating System </a></strong> Minority Report is real!
<p>Thought that OS that Tom Cruise used in <a href="http://www.imdb.com/title/tt0181689/">Minority Report</a> was impossible and amazing? Check it out for realz.</p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2008/11/web-designers-daily-digest/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Random things from the Interweb</title>
		<link>http://www.komodomedia.com/blog/2008/11/random-things-from-the-interweb/</link>
		<comments>http://www.komodomedia.com/blog/2008/11/random-things-from-the-interweb/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 00:32:59 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tumblelog]]></category>
		<category><![CDATA[coda]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[daily]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[interweb]]></category>
		<category><![CDATA[Logo]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.komodomedia.com/?p=486</guid>
		<description><![CDATA[In lieu of a massive post, full of fantastic-ness, I&#8217;ve decided to clue you into my world just a little bit. Many time&#8217;s I&#8217;ll come across a great internet resource and mentally note to blog about it, but with a busy life, a wife, a 2 year-old and another kid on the way, I&#8217;m finding [...]]]></description>
			<content:encoded><![CDATA[<p>In lieu of a massive post, full of fantastic-ness, I&#8217;ve decided to clue you into my world just a little bit. Many time&#8217;s I&#8217;ll come across a great internet resource and mentally note to blog about it, but with a busy life, a wife, a 2 year-old and another kid on the way, I&#8217;m finding that I just don&#8217;t have the time. Will I continue to do <a href="http://www.komodomedia.com/categories/tutorials/">tutorials</a> or little ditties on <a href="http://www.komodomedia.com/categories/css/">CSS</a> or <a href="http://www.komodomedia.com/tags/freebies/">freebies</a>?  Sure I will and I plan to. But for now, let me tell you about some cool things I found today.</p>
<ul>
<li><strong><a href="http://di.fm">Digitally Imported</a></strong> Electronic Internet Radio
<p>Rather, refound, I used to listen to Digitally Imported internet radio all the time in my college years. I recently rediscovered my love for it while telling <a href="http://developmentastic.com">a friend</a> about it. In case you didn&#8217;t know, I <3 all music electronica.</p>
</li>
<li><strong><a href="http://www.airtightinteractive.com/projects/tiltviewer/">TiltViewer</a></strong> Flash Image Viewer
<p>The first time I saw this viewer, it was over at <a href="http://www.signalnoise.com/">Signal Noise</a> and I thought it was pretty cool. I used to love flash and flash image galleries, but since, my love for flash has faded. Nevertheless, this is still a rockin&#8217;-cool looking flash image viewer.</p>
</li>
<li><strong><a href="http://bueroink.com/ink/">Buero Ink</a></strong>
<p>Markus Shaefer&#8217;s logo work is stunning as well as his minimalist site. Even though my work doesn&#8217;t reflect it, I love minimalism and simple, monotone forms. </p>
</li>
<li><strong><a href="http://www.w3.org/TR/CSS21/visuren.html#propdef-display">display:inline-block; </a></strong>
<p>During my day job at <a href="http://dealerspan.com">Dealerspan</a> as a UI designer, our target broswer is Firefox 3+. This means I get to use <code class="inline">display:inline-block;</code> all day long and it is such a time saver. No more floating!</p>
</li>
<li><strong><a href="http://www.w3.org/TR/CSS2/selector.html#dynamic-pseudo-classes">:hover:focus </a></strong>
<p>If you ever want to simulate an &#8220;onpress&#8221; selector in CSS, this is handy. Use <code class="inline">a:hover:focus</code>.</p>
</li>
<li><strong><a href="http://www.youtube.com/watch?v=lk5_OSsawz4">&#8220;Star Wars&#8221; &#8211; an a capella tribute to John Williams</a></strong>
<p>This a capella video is amazing. From Star Wars to Jaws to Jurassic Park, I nerded out!</p>
<p><em>I suggest a new strategy: let the Wookie win&#8230;</em></p>
</li>
<li><strong><a href="http://wilsonminer.com">Wilson Miner&#8217;s Website</a></strong>
<p>I love Wilson Miner&#8217;s minimalist site. Wait&#8230;he did the redesign for <a href="http://apple.com">Apple.com</a>? No wonder I like his style.</p>
</li>
<li><strong><a href="http://www.apple.com/keyboard/">Apple Keyboard</a></strong>
<p>After asking a ton of people on twitter, I broke down and bought the new apple keyboard. I love it. It so totally rocks compared to the plastic breadbox I was using before.</p>
</li>
<li><strong><a href="http://garyvaynerchuk.com/2008/11/10/want-to-get-advertisers-on-your-blogvlog-go-and-get-it/">Cold Calling</a></strong> Monetizing for n00bs
<p>A legit way to monetize your blog or vlog. Just call the company and ask them!</p>
</li>
<li><strong><a href="http://www.panic.com/coda/developer/howto/plugins.php">Coda updated to 1.6</a></strong>  Plugins Available
<p>Of the myriads of updates and new feautres that Panic packs into every update, one feature stands out from the crowd: Plugins. That&#8217;s right &#8211; <a href="http://www.panic.com/coda/developer/howto/plugins.php">you can develop your own plugins for Coda</a>. That&#8217;s freaktastically rad.</p>
</li>
</ul>
<p>That&#8217;s it for today peeps. Let me know if you like this and want me to keep it up. Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2008/11/random-things-from-the-interweb/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Bell of Truth</title>
		<link>http://www.komodomedia.com/blog/2007/08/bell-of-truth/</link>
		<comments>http://www.komodomedia.com/blog/2007/08/bell-of-truth/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 18:24:14 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tumblelog]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2007/08/30/bell-of-truth/</guid>
		<description><![CDATA[As I was perusing my list of nerdy RSS feed items, I come across this link.  As usual, wasting my  time, I watch this video: Regrets.  This is about the funniest thing I&#8217;ve seen in a looooong time, most likely because it reminds me of me so much.  Talk about ringing [...]]]></description>
			<content:encoded><![CDATA[<p>As I was perusing my list of nerdy RSS feed items, I come across this link.  As usual, wasting my  time, I watch this video: <a href="http://coudal.com/regrets.php">Regrets</a>.  This is about the funniest thing I&#8217;ve seen in a looooong time, most likely because it reminds me of me so much.  Talk about ringing a bell of truth in my ear.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2007/08/bell-of-truth/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How I&#8217;m Feeling Today:</title>
		<link>http://www.komodomedia.com/blog/2007/07/how-im-feeling-today/</link>
		<comments>http://www.komodomedia.com/blog/2007/07/how-im-feeling-today/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 18:07:54 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tumblelog]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2007/07/24/how-im-feeling-today/</guid>
		<description><![CDATA[Sorry I haven&#8217;t written much lately.  I do have some tutorials on the way and some jQuery plugins that I have written to give to you all.  But until then, ponder the wisdom of the sages:
&#8220;If Internet Explorer was human, I&#8217;d drop kick it in the go-nads.&#8221; &#8211; Me

Peace out.
]]></description>
			<content:encoded><![CDATA[<p>Sorry I haven&#8217;t written much lately.  I do have some tutorials on the way and some jQuery plugins that I have written to give to you all.  But until then, ponder the wisdom of the sages:</p>
<blockquote><p>&#8220;If Internet Explorer was human, I&#8217;d drop kick it in the go-nads.&#8221; &#8211; Me</p>
</blockquote>
<p>Peace out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2007/07/how-im-feeling-today/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Alternating row classes in PHP, easy style</title>
		<link>http://www.komodomedia.com/blog/2007/03/alternating-row-classes-in-php-easy-style/</link>
		<comments>http://www.komodomedia.com/blog/2007/03/alternating-row-classes-in-php-easy-style/#comments</comments>
		<pubDate>Fri, 30 Mar 2007 17:40:37 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tumblelog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2007/03/30/alternating-row-classes-in-php-easy-style/</guid>
		<description><![CDATA[Ok.  I have seen a myriad of techniques on creating the PHP code to pump out alternating row classes on tables, list elements, what have you.  It&#8217;s usually some counter variable that you divide by 2 to see if there is an even result (MOD operator).  But then you got the whole [...]]]></description>
			<content:encoded><![CDATA[<p>Ok.  I have seen a myriad of techniques on creating the PHP code to pump out alternating row classes on tables, list elements, what have you.  It&#8217;s usually some counter variable that you divide by 2 to see if there is an even result (MOD operator).  But then you got the whole initialize the variable, increment the variable, test the variable scenario. Blegh.</p>
<p>I&#8217;ve also seen some crazy technique using bitwise &#038; operators, which is hardly readable for common folk, but I do admit is probably blazing fast.  Only issue there, once again, you are maintaining a counter variable and incrementing it.  Blegh.</p>
<p>I do not claim for this method to be better. I simply claim that this is my method and I use it.  Take it as you will.  When in Rome&#8230;</p>
<h3>First, lets set up a style</h3>
<p><code>&lt;style&gt;<br />
	tr.alt td{<br />
		background-color:#D5E0E1;<br />
	}<br />
&lt;/style&gt;</code><br />
Done&#8230;</p>
<h3>Next, the PHP code intermingled with some HTML</h3>
<p><code>&lt;?php<br />
for($i = 0; $i &lt; 10; ++$i){<br />
	$row_class = empty($row_class)? "alt" : "";<br />
	echo("<br />
		&lt;tr class=\"$row_class\"><br />
			&lt;td&gt;<br />
				data 1<br />
			&lt;/td&gt;<br />
			&lt;td&gt;<br />
				data 2<br />
			&lt;/td&gt;<br />
			&lt;td&gt;<br />
				data 3<br />
			&lt;/td&gt;<br />
		&lt;/tr&gt;");<br />
}<br />
?&gt;</code></p>
<p>The key for the alternating row classes of course, lies in one line of PHP code:<br />
<code>$row_class = empty($row_class)? "alt" : "";</code></p>
<p>Basically, I&#8217;m using PHP shorthand to do an if statement and check if the variable $row_class is empty or a blank string (&#8220;&#8221;).  If it is then I set it to &#8220;alt&#8221;.  As you can imagine, next row, the same statement is ran.  This time, it&#8217;s not empty, so it gets set to empty, thus alternating between the &#8220;alt&#8221; class and empty.  </p>
<p>Done&#8230;Seacrest out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2007/03/alternating-row-classes-in-php-easy-style/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>PHP file_exists equivalent for Flash?</title>
		<link>http://www.komodomedia.com/blog/2007/03/php-file_exists-equivalent-for-flash/</link>
		<comments>http://www.komodomedia.com/blog/2007/03/php-file_exists-equivalent-for-flash/#comments</comments>
		<pubDate>Tue, 27 Mar 2007 15:36:23 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[Tumblelog]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2007/03/27/php-file_exists-equivalent-for-flash/</guid>
		<description><![CDATA[I am searching the web relentlessly for a Flash version of the PHP function file_exists.  Basically, I have need to see if a file exists client side.  Most of the techniques use LoadVars, which actually loads the complete object.  Imagine trying to just see if a file exists, but having to load [...]]]></description>
			<content:encoded><![CDATA[<p>I am searching the web relentlessly for a Flash version of the PHP function<a href="http://php.net/file_exists"> file_exists</a>.  Basically, I have need to see if a file exists client side.  Most of the techniques use LoadVars, which actually loads the complete object.  Imagine trying to just see if a file exists, but having to load the 100MB file first?!?! Blegh.</p>
<p>Although horridly untested, I may have come up with a solution:</p>
<h2>Actionscript: Check this before you wreck it.</h2>
<p><code>fileExists =  new Sound();<br />
fileExists.loadSound('http://www.komodomedia.com/pathto/myfile.htm', true);<br />
fileExists.setVolume(0);<br />
fileExists.onLoad = function( success ){<br />
	if( success ){<br />
		trace("Loaded");<br />
		delete this;<br />
	}else{<br />
		trace("Failure");<br />
	}<br />
}<br />
</code></p>
<p>The basic concept here is that Flash has this class called sound that is used to Stream MP3&#8217;s.  By loading any file, turning off the sound, and telling it to stream it, we don&#8217;t have to load the whole file.  Then, as soon as some data hits the Sound via the onLoad function, we know it exists.  If not, then it doesn&#8217;t exist.</p>
<p>I&#8217;ve done minimal testing with this and it seems to work well.</p>
<p>Peace.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2007/03/php-file_exists-equivalent-for-flash/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The key to Wasabi</title>
		<link>http://www.komodomedia.com/blog/2007/03/the-key-to-wasabi/</link>
		<comments>http://www.komodomedia.com/blog/2007/03/the-key-to-wasabi/#comments</comments>
		<pubDate>Thu, 22 Mar 2007 20:02:00 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tumblelog]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2007/03/22/the-key-to-wasabi/</guid>
		<description><![CDATA[<img id="image141" src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2007/03/sushi.jpg" alt="Sushi " class="float_left" />I've come across a very interesting technique for dealing with <a href="http://en.wikipedia.org/wiki/Wasabi">Wasabi</a>.  I know you've seen those hot-shot guys out there that can down a <a href="http://en.wikipedia.org/wiki/Habanero">Habanero </a> shake (I'm one of those guys) and follow that by running a mile in 110 degree heat (not so sure I can do this).  But, for most of you out there, spicy food is hard to deal with.  I've seen it, I've witnessed it in my family and I feel for you.  
]]></description>
			<content:encoded><![CDATA[<p><img id="image141" src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2007/03/sushi.jpg" alt="Sushi " class="float_left" />I&#8217;ve come across a very interesting technique for dealing with <a href="http://en.wikipedia.org/wiki/Wasabi">Wasabi</a>.  I know you&#8217;ve seen those hot-shot guys out there that can down a <a href="http://en.wikipedia.org/wiki/Habanero">Habanero </a> shake (I&#8217;m one of those guys) and follow that by running a mile in 110 degree heat (not so sure I can do this).  But, for most of you out there, spicy food is hard to deal with.  I&#8217;ve seen it, I&#8217;ve witnessed it in my family and I feel for you.  </p>
<p>So, I&#8217;ve come up with this simple technique that will help you in your sushi-bar &#8220;I can&#8217;t eat Wasabi because it burns me&#8221; conundrum.  Here it is:</p>
<ol>
<li>Eat the Wasabi, don&#8217;t get too carried away though</li>
<li>Do <strong>NOT</strong> exhale out of your nose!</li>
<li>Continue to inhale deeply through your nose</li>
<li>Exhale out of your mouth only</li>
<li>Go back to step 2</li>
</ol>
<p>Repeat steps 1-5 until you are in the safe!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2007/03/the-key-to-wasabi/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Web Development Tips #1</title>
		<link>http://www.komodomedia.com/blog/2007/03/web-development-tips-1/</link>
		<comments>http://www.komodomedia.com/blog/2007/03/web-development-tips-1/#comments</comments>
		<pubDate>Thu, 22 Mar 2007 17:00:37 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tumblelog]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://komodomedia.com/blog/index.php/2007/03/22/web-development-tips-1/</guid>
		<description><![CDATA[Sometimes the simplest of solutions elude me.  Blog entries and tutorials seem to be more well thought out, time-consuming projects that attack more complex issues or come up with more innovative solutions. Look at websites like A List Apart or Smashing Magazine.  
Typically, I would love to come up with lengthy tips or [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes the simplest of solutions elude me.  Blog entries and tutorials seem to be more well thought out, time-consuming projects that attack more complex issues or come up with more innovative solutions. Look at websites like <a href="http://alistapart.com/">A List Apart</a> or <a href="http://www.smashingmagazine.com">Smashing Magazine</a>.  </p>
<p>Typically, I would love to come up with lengthy tips or tutorials as these people do, but often I end up with a wealth of drafts for ideas, but never get any real helpful content out to my readers.  What I need is something more like a <a href="http://en.wikipedia.org/wiki/Tumblelog">Tumblelog</a>, which is more of a quick and dirty (not like that) stream of consciousness as a blog entry.</p>
<p>So, here I go, entry #1.</p>
<h2>Dodging Cache Issues</h2>
<p>I swear every time there is an issue with a client project or user on a website, it is a cache issue.  You&#8217;ve seen it before.  You are using the same image name or same stylesheet name and a users computer is caching it and causing issues with your new content.</p>
<p>A simple solution is just to rename the file.  Thats easy right?  Sometime yes.  Sometimes it isn&#8217;t. We all may need to keep the same file names for a myriad of different reasons.  Ok. Here&#8217;s mine.  </p>
<h3>Episode #1</h3>
<p>I have a flash file that I update every couple of months.  I don&#8217;t want to deal with renaming it, but I don&#8217;t want it to serve up the old version as cache.  The solution is simple:</p>
<h4>My code previously:</h4>
<p><code>&lt;embed....src="myfile.swf"....&gt;</code></p>
<h4>My NO-cache code:</h4>
<p><code>&lt;embed....src="myfile.swf?v1"....&gt;</code></p>
<p>Basically, I&#8217;m appending a query string to the file as if I am passing in variables.  Since webservers see this as a different file, it will cache it as a new file name, specifically &#8220;myfile.swf?v1&#8243;.  Also, this makes it easy for versions.  Next time you export your file, it will be v2, v3, v4&#8230; and so on.  </p>
<h3>Episode #2</h3>
<p>I have a webcam that transfers a camera shot via ftp to my webserver.  But, it FTP&#8217;s the image to the same directory with the same filename every time.  Yeah, I could write a PHP script to get the picture and serve it up as a different file name every time, but that&#8217;s way too hard for a simple issue. </p>
<p>Also, I used to use a <a href="http://en.wikipedia.org/wiki/Meta_refresh">META REFRESH</a> to refresh the page to serve up a new image, but that is frowned upon and refreshes the entire page.  So, naturally I am thinkin&#8217; <a href="http://www.w3schools.com/js/default.asp">JavaScript</a>.  </p>
<p>So, I get this rad script all hooked up to call a function every couple of seconds to refresh the image&#8230;here she be:</p>
<p><code>function refreshImage(){<br />
   if( document.getElementById('webcam-image') ){<br />
      setInterval(<br />
         function(){<br />
            var img = document.getElementById('webcam-image');<br />
            img.src = img.src;<br />
         },<br />
         4000<br />
      );<br />
   }<br />
}</code></p>
<p>I&#8217;ve wrote some code to run this function on page load.  Basically, this code just resets the <code class="inline"> src </code> attribute of the image every 4 seconds.  However, because the image is cached, I have issues.  The code works fine, but keeps serving up the same image, so the user doesn&#8217;t see a change.  </p>
<p>So, to employ my NO-cache technique, I whip up the following code:</p>
<p><code>function refreshImage(){<br />
   if( document.getElementById('webcam-image') ){<br />
      setInterval(<br />
         function(){<br />
            var img = document.getElementById('webcam-image');<br />
            if( !img.origSrc )   img.origSrc = img.src;<br />
            img.src = img.origSrc + "?" + (Math.random()).toString();<br />
         },<br />
         4000<br />
      );<br />
   }<br />
}</code></p>
<p>Here, I save the original <code class="inline"> src </code> attribute in a variable called <code class="inline"> origSrc </code> and then every 4 seconds (4000 ms), I set the <code class="inline"> src </code> attribute back to it&#8217;s original url.  However, the magic comes in the querystring.  I didn&#8217;t want to mess with an incrementing number, so I am just using a random number, but that&#8217;s all I need.  So, when this function is called the first time, lets say the random number is 0.30301759604092937 (a decimal number between 0 and 1), the image&#8217;s <code class="inline"> src </code> attribute becomes <code class="inline"> src="live.jpg?0.30301759604092937</code>.  Four seconds later, the code is ran again and the source attribute becomes <code class="inline"> src="live.jpg?0.0826765920752568</code>, thus always rendering a new NON-cached version of the image.  Voila!</p>
<p>P.S. If this technique is way too obvious or if you already knew it, please feel free to say &#8220;I agree.&#8221;  Comments that insult should be reserved for an infinite amount of time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2007/03/web-development-tips-1/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: komodomedia.com @ 2012-02-10 14:41:42 by W3 Total Cache -->
