<?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>RENDR &#187; Justin</title>
	<atom:link href="http://www.madebyrendr.com/author/justin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madebyrendr.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Apr 2010 15:16:36 +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>jQuery Plugin: SimpleSlider</title>
		<link>http://www.madebyrendr.com/jquery-plugin-simpleslider/</link>
		<comments>http://www.madebyrendr.com/jquery-plugin-simpleslider/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 07:59:06 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[jQuery Plugins]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[simpleslider]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://www.jstnjns.com/?p=175</guid>
		<description><![CDATA[I’ve been using jQuery for quite some time.  That is part of the problem,  I had only been ‘using’ it.  The power of it, how lightweight it is.. who wouldn’t?  It does what it says, it makes Javascript fun.  But I had only been ‘using’ it.  Never before had I contributed, until last night.

Update
Has been [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been using jQuery for quite some time.  That is part of the problem,  I had only been ‘using’ it.  The power of it, how lightweight it is.. who wouldn’t?  It does what it says, it makes Javascript fun.  But I had only been ‘using’ it.  Never before had I contributed, until last night.</p>
<p><span id="more-175"></span></p>
<h3>Update</h3>
<p>Has been moved, and has it’s own <a href="/jquery-plugins/simpleslider/">page</a> now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madebyrendr.com/jquery-plugin-simpleslider/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Very Simple IE6 Redirect</title>
		<link>http://www.madebyrendr.com/very-simple-ie6-redirect/</link>
		<comments>http://www.madebyrendr.com/very-simple-ie6-redirect/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 09:18:41 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[conditional]]></category>
		<category><![CDATA[conditional statements]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[Learn Javascript]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[statements]]></category>

		<guid isPermaLink="false">http://www.jstnjns.com/?p=209</guid>
		<description><![CDATA[If I ever am only allowed one rant, it is IE6.  I could go on for days about it’s lack of CSS support, bugs, crazy hacks that have been created to ‘cope’ and many other things that make me crawl into the fetal position with my thumb in my mouth..  but I’m not going to.  [...]]]></description>
			<content:encoded><![CDATA[<p>If I ever am only allowed one rant, it is IE6.  I could go on for days about it’s lack of CSS support, bugs, crazy hacks that have been created to ‘cope’ and many other things that make me crawl into the fetal position with my thumb in my mouth..  but I’m not going to.  I’m simply going to point out a few things: it was halfway decent for it’s time (back when people considered Netscape as a ‘major’ browser).  It’s not so much IE6’s fault, as it is large corporations not upgrading thousands of their systems (it’s only been nearly a decade…retro vintage browsers tight!)..<span id="more-209"></span></p>
<p>Here’s why I actually wrote this post:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">&lt;!–[if lte IE 6]&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;meta http-equiv=“refresh” content=“0; url=/ie6.html” /&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;script type=“text/javascript”&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;! [CDATA[</span><br />
<span style="color: #808080; font-style: italic;">window.top.location = ‘/ie6.html’;</span><br />
<span style="color: #808080; font-style: italic;">]]</span><br />
<span style="color: #808080; font-style: italic;">–&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!–[endif]–&gt;</span></div></td></tr></tbody></table></div>
<p>That little piece of nifty code will cause any user running IE6 to be relocated to a page (/ie6.html) ‘enlightening’ them about how badly their browser is outdated, and needs to be put out of its misery.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madebyrendr.com/very-simple-ie6-redirect/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Script: Relative Time (Includes Support For Future Dates)</title>
		<link>http://www.madebyrendr.com/php-script-relative-time-includes-support-for-future-dates/</link>
		<comments>http://www.madebyrendr.com/php-script-relative-time-includes-support-for-future-dates/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 16:03:45 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[PHP Snippets]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[Learn PHP]]></category>
		<category><![CDATA[past]]></category>
		<category><![CDATA[relative]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://www.jstnjns.com/?p=143</guid>
		<description><![CDATA[I know that I just went from one extreme (HTML Basics) to another (PHP Functions), but I had to write this script today for a personal project I’m currently working on.  I thought that because it was so hard for me to find something like this via Google (which turned out to be a [...]]]></description>
			<content:encoded><![CDATA[<p>I know that I just went from one extreme (HTML Basics) to another (PHP Functions), but I had to write this script today for a personal project I’m currently working on.  I thought that because it was so hard for me to find something like this via Google (which turned out to be a bust.  NOTE TO SELF: don’t ever search for ‘relative time functions’ unless you want your brain to explode), that I would post it here, and make it readily available to anybody who needs/wants it.<span id="more-143"></span></p>
<p>Note: that I took an existing function and modified it.  The original writer of this code was: <a href="http://jasontan.org/">Jason Tan</a></p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> relative_time<span style="color: #009900;">(</span><span style="color: #000088;">$date</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span><br />
<span style="color: #000088;">$diff</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #339933;">-</span> <a href="http://www.php.net/strtotime"><span style="color: #990000;">strtotime</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$date</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">)</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$diff</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” second”</span> <span style="color: #339933;">.</span> plural<span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #009900;">)</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” ago”</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$diff</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">)</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$diff</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” minute”</span> <span style="color: #339933;">.</span> plural<span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #009900;">)</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” ago”</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$diff</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span><span style="color: #cc66cc;">24</span><span style="color: #009900;">)</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$diff</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” hour”</span> <span style="color: #339933;">.</span> plural<span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #009900;">)</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” ago”</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$diff</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">24</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">)</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$diff</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” day”</span> <span style="color: #339933;">.</span> plural<span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #009900;">)</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” ago”</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$diff</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">)</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$diff</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” week”</span> <span style="color: #339933;">.</span> plural<span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #009900;">)</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” ago”</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">“on ”</span> <span style="color: #339933;">.</span> <a href="http://www.php.net/date"><span style="color: #990000;">date</span></a><span style="color: #009900;">(</span><span style="color: #0000ff;">“F j, Y”</span><span style="color: #339933;">,</span> <a href="http://www.php.net/strtotime"><span style="color: #990000;">strtotime</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$date</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">}</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">{</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;-</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">)</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">“in ”</span> <span style="color: #339933;">.</span> <span style="color: #339933;">-</span><span style="color: #000088;">$diff</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” second”</span> <span style="color: #339933;">.</span> plural<span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$diff</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;-</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">)</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">“in ”</span> <span style="color: #339933;">.</span> <span style="color: #339933;">-</span><span style="color: #000088;">$diff</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” minute”</span> <span style="color: #339933;">.</span> plural<span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$diff</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;-</span><span style="color: #cc66cc;">24</span><span style="color: #009900;">)</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">“in ”</span> <span style="color: #339933;">.</span> <span style="color: #339933;">-</span><span style="color: #000088;">$diff</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” hour”</span> <span style="color: #339933;">.</span> plural<span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$diff</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">24</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;-</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">)</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">“in ”</span> <span style="color: #339933;">.</span> <span style="color: #339933;">-</span><span style="color: #000088;">$diff</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” day”</span> <span style="color: #339933;">.</span> plural<span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$diff</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;-</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">)</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">“in ”</span> <span style="color: #339933;">.</span> <span style="color: #339933;">-</span><span style="color: #000088;">$diff</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">” week”</span> <span style="color: #339933;">.</span> plural<span style="color: #009900;">(</span><span style="color: #000088;">$diff</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">“on ”</span> <span style="color: #339933;">.</span> <a href="http://www.php.net/date"><span style="color: #990000;">date</span></a><span style="color: #009900;">(</span><span style="color: #0000ff;">“F j, Y”</span><span style="color: #339933;">,</span> <a href="http://www.php.net/strtotime"><span style="color: #990000;">strtotime</span></a><span style="color: #009900;">(</span><span style="color: #000088;">$date</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">}</span><br />
<span style="color: #009900;">}</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.madebyrendr.com/php-script-relative-time-includes-support-for-future-dates/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

