<?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"
	>

<channel>
	<title>Little Truck</title>
	<atom:link href="http://little-truck.com/wp/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://little-truck.com/wp</link>
	<description></description>
	<pubDate>Tue, 07 Oct 2008 23:37:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Resetting a select menu onload</title>
		<link>http://little-truck.com/wp/?p=40</link>
		<comments>http://little-truck.com/wp/?p=40#comments</comments>
		<pubDate>Tue, 07 Oct 2008 23:19:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://little-truck.com/wp/?p=40</guid>
		<description><![CDATA[The problem: when a user clicked the back button, the form stayed selected, but it shouldn&#8217;t have.
The solution:
body onload&#8230;
function resetForm() {
document.getElementById(&#8221;myselect&#8221;).value = document.getElementById(&#8221;myselect&#8221;).selectedIndex=0;
}
]]></description>
			<content:encoded><![CDATA[<p>The problem: when a user clicked the back button, the form stayed selected, but it shouldn&#8217;t have.</p>
<p>The solution:<br />
body onload&#8230;</p>
<p>function resetForm() {<br />
document.getElementById(&#8221;myselect&#8221;).value = document.getElementById(&#8221;myselect&#8221;).selectedIndex=0;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://little-truck.com/wp/?feed=rss2&amp;p=40</wfw:commentRss>
		</item>
		<item>
		<title>Sunday Streets</title>
		<link>http://little-truck.com/wp/?p=6</link>
		<comments>http://little-truck.com/wp/?p=6#comments</comments>
		<pubDate>Wed, 03 Sep 2008 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">tag:blogger.com,1999:blog-7147885952490972930.post-910293157988779789</guid>
		<description><![CDATA[A couple weeks ago, I was approached to help out a site called Sunday Streets. I didn&#8217;t know much about it, but offered to help out.
This was the original design.
This is the new design I made:
sundaystreetssf.com.
Also, it turns out the site has been advertised *everywhere* (bus shelters, nextbus, flyers) and is getting 4K hits per [...]]]></description>
			<content:encoded><![CDATA[<p>A couple weeks ago, I was approached to help out a site called Sunday Streets. I didn&#8217;t know much about it, but offered to help out.</p>
<p>This was the <a href="http://www.little-truck.com/images/sundaystreets-orig.jpg">original design</a>.</p>
<p>This is the new design I made:<br />
<a href="http://www.sundaystreetssf.com" onclick="javascript:pageTracker._trackPageview ('/outbound/www.sundaystreetssf.com');">sundaystreetssf.com</a>.</p>
<p>Also, it turns out the site has been advertised *everywhere* (bus shelters, nextbus, flyers) and is getting 4K hits per day. It&#8217;s been a fun project, simple HTML and they are grateful for everything.</p>
]]></content:encoded>
			<wfw:commentRss>http://little-truck.com/wp/?feed=rss2&amp;p=6</wfw:commentRss>
		</item>
		<item>
		<title>More SEO</title>
		<link>http://little-truck.com/wp/?p=7</link>
		<comments>http://little-truck.com/wp/?p=7#comments</comments>
		<pubDate>Thu, 21 Aug 2008 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">tag:blogger.com,1999:blog-7147885952490972930.post-2694837966756159272</guid>
		<description><![CDATA[This is a fantastic article on SEO and the importance of elements on the page.
The short of it:
1. title tag
2. body text
3. Relationship of Body Text Content to Keywords
4. h1
5. domain name
6. URL
7. h2, h3, etc.
8. alt tags and image titles
9. strong tags
10. meta description
11. meta keywords
]]></description>
			<content:encoded><![CDATA[<p>This is a <a href="http://www.seomoz.org/article/search-ranking-factors" onclick="javascript:pageTracker._trackPageview ('/outbound/www.seomoz.org');">fantastic article</a> on SEO and the importance of elements on the page.</p>
<p>The short of it:<br />
1. title tag<br />
2. body text<br />
3. Relationship of Body Text Content to Keywords<br />
4. h1<br />
5. domain name<br />
6. URL<br />
7. h2, h3, etc.<br />
8. alt tags and image titles<br />
9. strong tags<br />
10. meta description<br />
11. meta keywords</p>
]]></content:encoded>
			<wfw:commentRss>http://little-truck.com/wp/?feed=rss2&amp;p=7</wfw:commentRss>
		</item>
		<item>
		<title>SEO simplified</title>
		<link>http://little-truck.com/wp/?p=8</link>
		<comments>http://little-truck.com/wp/?p=8#comments</comments>
		<pubDate>Wed, 06 Aug 2008 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">tag:blogger.com,1999:blog-7147885952490972930.post-528540161195548023</guid>
		<description><![CDATA[A client was confused about how SEO works, so I made a very simple diagram about the basics of SEO (for Google, really).
]]></description>
			<content:encoded><![CDATA[<p>A client was confused about how SEO works, so I made a very simple diagram about the <a href="http://little-truck.com/blog_misc/seo/">basics of SEO</a> (for Google, really).</p>
]]></content:encoded>
			<wfw:commentRss>http://little-truck.com/wp/?feed=rss2&amp;p=8</wfw:commentRss>
		</item>
		<item>
		<title>Safari scrolling div select bug</title>
		<link>http://little-truck.com/wp/?p=9</link>
		<comments>http://little-truck.com/wp/?p=9#comments</comments>
		<pubDate>Tue, 22 Jul 2008 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">tag:blogger.com,1999:blog-7147885952490972930.post-8328582659326352677</guid>
		<description><![CDATA[This is one of the strangest cross-browser things I&#8217;ve come across, including IE bugs&#8230;
Picture this:
-A div that is hidden until moused over (abs position, z-index &#62; 1)
-Onmouseout, it hides itself
-When it is displayed, it has an overflow:scroll
In Safari, when you would scroll and try to click any of the items in the list, it would [...]]]></description>
			<content:encoded><![CDATA[<p>This is one of the strangest cross-browser things I&#8217;ve come across, including IE bugs&#8230;</p>
<p>Picture this:<br />
-A div that is hidden until moused over (abs position, z-index &gt; 1)<br />
-Onmouseout, it hides itself<br />
-When it is displayed, it has an overflow:scroll</p>
<p>In Safari, when you would scroll and try to click any of the items in the list, it would scroll back to the beginning!</p>
<p>The fix is to make the div visibility:hidden, not display:none. So, since this would leave the scrollbar with no div in IE/FF, I did this in PHP:</p>
<p>if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']),strtolower(&#8221;Safari&#8221;))) {<br />
$visibility = &#8220;visibility:hidden&#8221;;<br />
} else {<br />
$visibility = &#8220;display:none&#8221;;<br />
}</p>
<p>Then just printed out the var in the JavaScript.</p>
]]></content:encoded>
			<wfw:commentRss>http://little-truck.com/wp/?feed=rss2&amp;p=9</wfw:commentRss>
		</item>
		<item>
		<title>Stringing together replaces in JS</title>
		<link>http://little-truck.com/wp/?p=10</link>
		<comments>http://little-truck.com/wp/?p=10#comments</comments>
		<pubDate>Thu, 10 Jul 2008 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">tag:blogger.com,1999:blog-7147885952490972930.post-6219934150545355461</guid>
		<description><![CDATA[You can string together string functions like replace into one line:
lc_make = full_make.replace(&#8221;%20&#8243;,&#8221;_&#8221;).replace(&#8221;%2520&#8243;,&#8221;_&#8221;).replace(&#8221; &#8220;,&#8221;_&#8221;);
]]></description>
			<content:encoded><![CDATA[<p>You can string together string functions like replace into one line:</p>
<p>lc_make = full_make.replace(&#8221;%20&#8243;,&#8221;_&#8221;).replace(&#8221;%2520&#8243;,&#8221;_&#8221;).replace(&#8221; &#8220;,&#8221;_&#8221;);</p>
]]></content:encoded>
			<wfw:commentRss>http://little-truck.com/wp/?feed=rss2&amp;p=10</wfw:commentRss>
		</item>
		<item>
		<title>CLI PHP</title>
		<link>http://little-truck.com/wp/?p=11</link>
		<comments>http://little-truck.com/wp/?p=11#comments</comments>
		<pubDate>Tue, 01 Jul 2008 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">tag:blogger.com,1999:blog-7147885952490972930.post-2328472553459417701</guid>
		<description><![CDATA[It&#8217;s been a while since I last wrote a command line PHP script, but I needed one today to parse through a database dump csv file. This is how to get the ID, which was my first column:
if($file= file_get_contents(&#8217;myfile.csv&#8217;)) {
$line = split(&#8221;\n&#8221;,$file);
foreach($line as $lines) {
$data = split(&#8221;;&#8221;, $lines);
echo $data[0] . &#8220;\n&#8221;;
}
} else {
echo &#8220;couldn&#8217;t open&#8221;;
}
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I last wrote a command line PHP script, but I needed one today to parse through a database dump csv file. This is how to get the ID, which was my first column:</p>
<p>if($file= file_get_contents(&#8217;myfile.csv&#8217;)) {<br />
$line = split(&#8221;\n&#8221;,$file);<br />
foreach($line as $lines) {<br />
$data = split(&#8221;;&#8221;, $lines);<br />
echo $data[0] . &#8220;\n&#8221;;<br />
}<br />
} else {<br />
echo &#8220;couldn&#8217;t open&#8221;;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://little-truck.com/wp/?feed=rss2&amp;p=11</wfw:commentRss>
		</item>
		<item>
		<title>How to clear cache</title>
		<link>http://little-truck.com/wp/?p=12</link>
		<comments>http://little-truck.com/wp/?p=12#comments</comments>
		<pubDate>Mon, 18 Feb 2008 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">tag:blogger.com,1999:blog-7147885952490972930.post-7201105067328295985</guid>
		<description><![CDATA[This is an informational post&#8230;to clear cache on:

Internet Explorer 6: choose Tools-&#62;Internet Options, Delete Files (screen shot)
Internet Explorer 7: choose Tools-&#62;Internet Options, Delete-&#62;Delete Files (screen shot)
Firefox: (Mac-&#62;Firefox &#124; PC-&#62;Tools) -&#62;Preferences, Advanced, Network-&#62;Clear now (screen shot)
Safari: Safari-&#62;Empty cache (screen shot)

]]></description>
			<content:encoded><![CDATA[<p>This is an informational post&#8230;to clear cache on:</p>
<ul>
<li>Internet Explorer 6: choose Tools-&gt;Internet Options, Delete Files (<a href="http://little-truck.com/blog_misc/cache/ie6.gif">screen shot</a>)</li>
<li>Internet Explorer 7: choose Tools-&gt;Internet Options, Delete-&gt;Delete Files (<a href="http://little-truck.com/blog_misc/cache/ie7.gif">screen shot</a>)</li>
<li>Firefox: (Mac-&gt;Firefox | PC-&gt;Tools) -&gt;Preferences, Advanced, Network-&gt;Clear now (<a href="http://little-truck.com/blog_misc/cache/firefox.gif">screen shot</a>)</li>
<li>Safari: Safari-&gt;Empty cache (<a href="http://little-truck.com/blog_misc/cache/safari.gif">screen shot</a>)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://little-truck.com/wp/?feed=rss2&amp;p=12</wfw:commentRss>
		</item>
		<item>
		<title>Optimus Mini Three</title>
		<link>http://little-truck.com/wp/?p=13</link>
		<comments>http://little-truck.com/wp/?p=13#comments</comments>
		<pubDate>Wed, 30 Jan 2008 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">tag:blogger.com,1999:blog-7147885952490972930.post-8190116086721366400</guid>
		<description><![CDATA[I got the coolest thing ever.
After talking about how I wanted copy and paste buttons on the right because I&#8217;m a lefty on the mouse, I finally got it! It&#8217;s called the Optimus Mini Three. &#60;&#8211; pasted using the middle button.
Mine is so pretty too&#8230;I made the buttons be flowers - well, and a firefox [...]]]></description>
			<content:encoded><![CDATA[<p>I got the coolest thing ever.</p>
<p>After talking about how I wanted copy and paste buttons on the right because I&#8217;m a lefty on the mouse, I finally got it! It&#8217;s called the <a href="http://www.artlebedev.com/everything/optimus-mini/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.artlebedev.com');">Optimus Mini Three</a>. &lt;&#8211; pasted using the middle button.</p>
<p>Mine is so pretty too&#8230;I made the buttons be flowers - well, and a firefox logo until I learn that I made the shift + top button be &#8220;open new tab&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://little-truck.com/wp/?feed=rss2&amp;p=13</wfw:commentRss>
		</item>
		<item>
		<title>IE onchange</title>
		<link>http://little-truck.com/wp/?p=14</link>
		<comments>http://little-truck.com/wp/?p=14#comments</comments>
		<pubDate>Sat, 12 Jan 2008 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">tag:blogger.com,1999:blog-7147885952490972930.post-2454635320693096389</guid>
		<description><![CDATA[onchange doesn&#8217;t work consistently in IE, but if you change it to onclick, it works fine in both IE and FF.
]]></description>
			<content:encoded><![CDATA[<p>onchange doesn&#8217;t work consistently in IE, but if you change it to onclick, it works fine in both IE and FF.</p>
]]></content:encoded>
			<wfw:commentRss>http://little-truck.com/wp/?feed=rss2&amp;p=14</wfw:commentRss>
		</item>
	</channel>
</rss>
