<?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>Troy Thompson</title>
	<atom:link href="http://tr0y.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tr0y.com</link>
	<description>Web Developer</description>
	<pubDate>Wed, 12 Nov 2008 01:09:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Easy Collapsible FAQ with jQuery</title>
		<link>http://tr0y.com/2008/11/09/easy-collapsible-faq-with-jquery/</link>
		<comments>http://tr0y.com/2008/11/09/easy-collapsible-faq-with-jquery/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 00:33:04 +0000</pubDate>
		<dc:creator>Troy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[demo]]></category>

		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://tr0y.com/?p=49</guid>
		<description><![CDATA[Simple FAQ with collapsible answers using jQuery.

Example:

Why is it that when someone tells you that there’s billions of stars in the universe, you believe them. But if they tell you there’s wet paint somewhere you have to touch it?
Curiosity
Why is there an expiration date on sour cream?
Because it is made out of dairy - Steph
They [...]]]></description>
			<content:encoded><![CDATA[<div class='microid-mailto+http:sha1:5c5b9abec8646b5c5771ff496e68163c20aa9760'><p>Simple FAQ with collapsible answers using jQuery.<br />
<span id="more-49"></span><br />
Example:</p>
<dl id="faq">
<dt>Why is it that when someone tells you that there’s billions of stars in the universe, you believe them. But if they tell you there’s wet paint somewhere you have to touch it?</dt>
<dd>Curiosity</dd>
<dt>Why is there an expiration date on sour cream?</dt>
<dd>Because it is made out of dairy - Steph</dd>
<dd>They have expiration dates? - Troy</dd>
<dt>What is the answer to Life, the Universe, and Everything?</dt>
<dd>42</dd>
</dl>
<p>HTML Code:<br />
[sniplet FAQ HTML]</p>
<p>JS Code<br />
[sniplet FAQ JS]</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://tr0y.com/2008/11/09/easy-collapsible-faq-with-jquery/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Remove Unwanted Drupal Module JS and CSS</title>
		<link>http://tr0y.com/2008/06/27/remove-unwanted-drupal-module-js-and-css/</link>
		<comments>http://tr0y.com/2008/06/27/remove-unwanted-drupal-module-js-and-css/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 20:30:39 +0000</pubDate>
		<dc:creator>Troy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[drupal]]></category>

		<category><![CDATA[theming]]></category>

		<guid isPermaLink="false">http://tr0y.com/?p=44</guid>
		<description><![CDATA[You need to edit the template.php in your drupal theme.
Add the following.
function _phptemplate_variables($hook, $vars = array() )
{
	$css = drupal_add_css();
	unset($css['all']['module']);
	unset($css['all']['module'][drupal_get_path('module','cck').'/date.css']);//xtra example
	unset($css['all']['module'][drupal_get_path('module','cck').'/fieldgroup.css']);//xtra example
	$css['all']['module']['modules/thickbox/thickbox.css'] = 1;
	$vars['styles'] = drupal_get_css($css);

	$js = drupal_add_js();
	unset($js['module']['modules/thickbox/thickbox.js']);
	$vars['scripts'] = drupal_get_js('header', $js);	

	return $vars;
}

]]></description>
			<content:encoded><![CDATA[<div class='microid-mailto+http:sha1:92f28e3fc42ae1438c70d836e78e9a2e67699770'><p>You need to edit the template.php in your drupal theme.</p>
<p>Add the following.</p>
<pre>function _phptemplate_variables($hook, $vars = array() )
{
	$css = drupal_add_css();
	unset($css['all']['module']);
	unset($css['all']['module'][drupal_get_path('module','cck').'/date.css']);//xtra example
	unset($css['all']['module'][drupal_get_path('module','cck').'/fieldgroup.css']);//xtra example
	$css['all']['module']['modules/thickbox/thickbox.css'] = 1;
	$vars['styles'] = drupal_get_css($css);

	$js = drupal_add_js();
	unset($js['module']['modules/thickbox/thickbox.js']);
	$vars['scripts'] = drupal_get_js('header', $js);	

	return $vars;
}
</pre>
</div>]]></content:encoded>
			<wfw:commentRss>http://tr0y.com/2008/06/27/remove-unwanted-drupal-module-js-and-css/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Searching on Multiple Fields in CakePHP</title>
		<link>http://tr0y.com/2008/05/14/searching-on-multiple-fields-in-cakephp/</link>
		<comments>http://tr0y.com/2008/05/14/searching-on-multiple-fields-in-cakephp/#comments</comments>
		<pubDate>Wed, 14 May 2008 23:06:11 +0000</pubDate>
		<dc:creator>Troy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[cakephp]]></category>

		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://tr0y.com/?p=37</guid>
		<description><![CDATA[Lets say you want to provide users with a way to search for authors in CakePHP.
Your authors table looks something like ( id, firstname, lastname, bio ).
Usually when you want to search on something like this you would do the following.
SELECT * FROM authors WHERE lname LIKE '%Jon%' OR lname LIKE '%Jon%';
Great, you found Jon, [...]]]></description>
			<content:encoded><![CDATA[<div class='microid-mailto+http:sha1:348b3e092108a3eb42d0685c6dc3e88909f3fb13'><p>Lets say you want to provide users with a way to search for authors in CakePHP.</p>
<p>Your authors table looks something like ( id, firstname, lastname, bio ).</p>
<p>Usually when you want to search on something like this you would do the following.</p>
<pre>SELECT * FROM authors WHERE lname LIKE '%Jon%' OR lname LIKE '%Jon%';</pre>
<p>Great, you found Jon, but what if you replaced the above query with "Jon Doe"?</p>
<pre>SELECT * FROM authors WHERE lname LIKE '%Jon Doe%' OR lname LIKE '%Jon Doe%';</pre>
<p>Crap, we can't find Jon anymore. Okay how about the following:</p>
<pre>SELECT * FROM authors WHERE concat(fname,' ',lname) like '%Jon Doe%';</pre>
<p>Aha! We found Jon Doe again.</p>
<p>But what if we searched for "Doe Jon". Again, we are not able to find Jon Doe.</p>
<p>So now what? Well MySQL lets you build a fulltext index on multiple fields.<br />
Execute the following query.</p>
<pre>ALTER TABLE `authors` ADD FULLTEXT `fullname` (`fname`,`lname`);</pre>
<p>This allows us to do things like</p>
<pre>SELECT * FROM authors WHERE match(fname,lname) against ('doe jon' IN BOOLEAN MODE);</pre>
<p>And still get Jon Doe. <img src='http://tr0y.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Now you can fight this fulltext search stuff all you want, but you're just going to end up with a huge query that doesn't perform as well as a fulltext query.</p>
<p>If you have a database that does not support this, then you should consider upgrading if you can.<br />
<a href="http://bin.cakephp.org/saved/30431">Here is some code</a> that creates a query that does a search on each field <strong>without fulltext indexing</strong>.</p>
<p>Using a fulltext query in CakePHP is a matter of using the following condition ( yes, this is very hacky looking ):</p>
<pre>$paginator_options['conditions'] = array("1" =&gt; "1 AND MATCH(Author.fname,Author.lname) AGAINST('{$conditions['Author.search']}*' IN BOOLEAN MODE )");
$this-&gt;set('authors', $this-&gt;paginate($paginator_options));</pre>
</div>]]></content:encoded>
			<wfw:commentRss>http://tr0y.com/2008/05/14/searching-on-multiple-fields-in-cakephp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Howto Create a hotkey to commit in Subclipse</title>
		<link>http://tr0y.com/2008/05/04/howto-create-a-hotkey-to-commit-in-subclipse/</link>
		<comments>http://tr0y.com/2008/05/04/howto-create-a-hotkey-to-commit-in-subclipse/#comments</comments>
		<pubDate>Sun, 04 May 2008 17:32:33 +0000</pubDate>
		<dc:creator>Troy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[aptana]]></category>

		<category><![CDATA[eclipse]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[subclipse]]></category>

		<category><![CDATA[svn]]></category>

		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://tr0y.com/?p=36</guid>
		<description><![CDATA[I use Subclipse as a plugin for Eclipse / Aptana, and there is no hotkey to perform a commit. This means anytime you want to commit something you have to navigate the file tree and then the context menus to commit, I'd rather not leave the keyboard to do a commit.
So after some digging around [...]]]></description>
			<content:encoded><![CDATA[<div class='microid-mailto+http:sha1:d46e0c0afa4c8416e8affadf41f3b561951a93a7'><p>I use Subclipse as a plugin for Eclipse / Aptana, and there is no hotkey to perform a commit. This means anytime you want to commit something you have to navigate the file tree and then the context menus to commit, I'd rather not leave the keyboard to do a commit.</p>
<p>So after some digging around I figured out how to add a hotkey, and I wanted to share.</p>
<p>Open Eclipse / Aptana</p>
<p>Window &gt; Preferences</p>
<p>In the filter box, type "keys"</p>
<p>Scroll to "Save All" and double click it.</p>
<p>In the <em>Command</em> field set change the <em>Category</em> to "SVN"</p>
<p>Change the <em>Name</em> to "&amp;Commit..."</p>
<p>Change the key sequence to the key combo you want to perform a commit. I use alt + shift + s, but that might be weird for some folks.</p>
<p>Click <em>Add</em></p>
<p>If you were successful you should be able to use your key combo to perform a commit for now on.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://tr0y.com/2008/05/04/howto-create-a-hotkey-to-commit-in-subclipse/feed/</wfw:commentRss>
		</item>
		<item>
		<title>99 Boxes</title>
		<link>http://tr0y.com/2008/03/02/99-boxes/</link>
		<comments>http://tr0y.com/2008/03/02/99-boxes/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 01:27:47 +0000</pubDate>
		<dc:creator>Troy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[99boxes]]></category>

		<category><![CDATA[demo]]></category>

		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://tr0y.com/2008/03/02/99-boxes/</guid>
		<description><![CDATA[I used to have this game called 99 Boxes on my Palm, and a month go I felt like recreating it in jQuery for fun.
I don't know who the original creator was, but this is the game.

Please note the code isn't polished at all, I should DRY it up some, however it works... so I'm [...]]]></description>
			<content:encoded><![CDATA[<div class='microid-mailto+http:sha1:d722caa2b4e0a83de43336cd546b8c22c7ccfbc8'><p>I used to have this game called 99 Boxes on my Palm, and a month go I felt like recreating it in jQuery for fun.<br />
I don't know who the original creator was, but this is the game.</p>
<p><span id="more-32"></span><br />
Please note the code isn't polished at all, I should DRY it up some, however it works... so I'm just going to leave it be for now.<br />
I'll post code snippets if and when I go back and polish the code.</p>
<h2>99 Boxes<br />Boxes Left <span id="boxes-left">100</span></h2>
<div id="game">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://tr0y.com/2008/03/02/99-boxes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress Minor update, and why I love SVN</title>
		<link>http://tr0y.com/2008/02/07/wordpress-minor-update-and-why-i-love-svn/</link>
		<comments>http://tr0y.com/2008/02/07/wordpress-minor-update-and-why-i-love-svn/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 00:23:52 +0000</pubDate>
		<dc:creator>Troy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[svn]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://tr0y.com/2008/02/07/wordpress-minor-update-and-why-i-love-svn/</guid>
		<description><![CDATA[So a minor WordPress released an update 3 days ago.  If you don't update, one could use xmlrpc.php to edit posts on your blog, too bad a majority of WordPress users do not know it or can't be troubled to upgrade.
Honestly, if I were on 2.3.2 and didn't have SVN I probably would not [...]]]></description>
			<content:encoded><![CDATA[<div class='microid-mailto+http:sha1:65b59410548747e69922d18f97a19b5ef2a9dfa9'><p>So a minor <a href="http://wordpress.org/" rel="external">WordPress</a> released an update 3 days ago.  If you don't update, one could use xmlrpc.php to edit posts on your blog, too bad a majority of WordPress users do not know it or can't be troubled to upgrade.</p>
<p>Honestly, if I were on 2.3.2 and didn't have SVN I probably would not upgrade either.</p>
<p>However, I was able to upgrade 3 sites in less than 10 minutes with SVN. <img src='http://tr0y.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Note, I use the branch and not the trunk, there is a misconception that if you're using SVN WordPress you're using bleeding edge software that is unstable.<br />
Even the <a href="http://wordpress.org/download/svn/" rel="external">WordPress Subversion Access page</a> shows an example of checking out from the trunk, which is a bad idea unless your developing a plugin for a later version of WordPress.</p>
<p>The <a href="http://svn.automattic.com/wordpress/branches/2.3/" rel="external">WordPress branch</a> has been stable for me so far, but I only update when I hear an announcement or I'm feeling experimental.</p>
<p>You can also use svn externals to automatically update plugins.</p>
<p>Just navigate to wordpress plugins directory<br />
type “svn pe svn:externals .”<br />
e.g.<br />
akismet <a href="http://svn.wp-plugins.org/akismet/trunk/" onclick="javascript:pageTracker._trackPageview('/outbound/comment/svn.wp-plugins.org');" rel="nofollow">http://svn.wp-plugins.org/akismet/trunk/</a><br />
audit-trail <a href="http://svn.wp-plugins.org/audit-trail/trunk/" onclick="javascript:pageTracker._trackPageview('/outbound/comment/svn.wp-plugins.org');" rel="nofollow">http://svn.wp-plugins.org/audit-trail/trunk/</a><br />
etc.</p>
<p>Save, then "svn up".</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://tr0y.com/2008/02/07/wordpress-minor-update-and-why-i-love-svn/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Link for Borders Coupons</title>
		<link>http://tr0y.com/2008/01/25/link-for-borders-coupons/</link>
		<comments>http://tr0y.com/2008/01/25/link-for-borders-coupons/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 15:25:58 +0000</pubDate>
		<dc:creator>Troy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[borders]]></category>

		<category><![CDATA[coupons]]></category>

		<category><![CDATA[deals]]></category>

		<guid isPermaLink="false">http://tr0y.com/2008/01/25/link-for-borders-coupons/</guid>
		<description><![CDATA[So I was looking at my email, and I get Borders coupons constantly. Instead of wading through my email for coupons, so I figured I might as well make a bookmark to see all available coupons.
Use the following Google search query to get Borders Coupons:
http://www.google.com/search?q=inurl:bordersmedia.com/coup/&#38;num=100&#38;as_qdr=m&#38;filter=0
Enjoy.
]]></description>
			<content:encoded><![CDATA[<div class='microid-mailto+http:sha1:341b95b70b42d852ef892a7fe7d26c938632acfd'><p>So I was looking at my email, and I get Borders coupons constantly. Instead of wading through my email for coupons, so I figured I might as well make a bookmark to see all available coupons.</p>
<p>Use the following Google search query to get Borders Coupons:<br />
<a href="http://www.google.com/search?q=inurl:bordersmedia.com/coup/&amp;num=100&amp;as_qdr=m&amp;filter=0" rel="external">http://www.google.com/search?q=inurl:bordersmedia.com/coup/&amp;num=100&amp;as_qdr=m&amp;filter=0</a></p>
<p>Enjoy.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://tr0y.com/2008/01/25/link-for-borders-coupons/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Collapsible Nested ULs with jQuery</title>
		<link>http://tr0y.com/2008/01/17/collapsible-menus-with-jquery-and-nested-uls/</link>
		<comments>http://tr0y.com/2008/01/17/collapsible-menus-with-jquery-and-nested-uls/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 21:22:19 +0000</pubDate>
		<dc:creator>Troy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[demo]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://tr0y.com/2008/01/17/collapsible-menus-with-jquery-and-nested-uls/</guid>
		<description><![CDATA[This is a quick demo showing one how to expand and collapse menus of unlimited depth with jQuery.

Demo

1 Main Topic

1.1 Subtopic
1.2 Subtopic

1.2.1 Subtopic
1.2.2 Subtopic
1.2.3 Subtopic

1.2.3.1 Subtopic
1.2.3.2 Subtopic
1.2.3.3 Subtopic




1.3 Subtopic
1.4 Subtopic


2 Main Topic

2.1 Subtopic
2.2 Subtopic


3 Main Topic

Code
HTML
<pre class="html4strict"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;ul</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&#34;demo&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1 Main Topic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;ul&#62;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1.1 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1.2 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;ul&#62;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1.2.1 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1.2.2 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1.2.3 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;ul&#62;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1.2.3.1 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1.2.3.2 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1.2.3.3 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/ul&#62;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/ul&#62;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1.3 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>1.4 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/ul&#62;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span>2 Main Topic
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;ul&#62;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>2.1 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&#34;#&#34;</span><span style="color: #000000; font-weight: bold;">&#62;</span></span>2.2 Subtopic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/a&#62;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/ul&#62;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;li&#62;</span></span>3 Main Topic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/li&#62;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&#60;/ul&#62;</span></span></pre>
Note: If you are creating an outline, be sure to use the xoxo microformat with this, see http://microformats.org/wiki/xoxo
Javascript
No sniplet called <strong>[...</strong>]]></description>
			<content:encoded><![CDATA[<div class='microid-mailto+http:sha1:79be77ef4be2cb760ee7ea51658324864f94f6b2'><p>This is a quick demo showing one how to expand and collapse menus of unlimited depth with <a href="http://jquery.com/" rel="external">jQuery</a>.</p>
<p><span id="more-28"></span></p>
<h3>Demo</h3>
<ul id="demo" class="xoxo">
<li><a href="#">1 Main Topic</a>
<ul>
<li><a href="#">1.1 Subtopic</a></li>
<li><a href="#">1.2 Subtopic</a>
<ul>
<li><a href="#">1.2.1 Subtopic</a></li>
<li><a href="#">1.2.2 Subtopic</a></li>
<li><a href="#">1.2.3 Subtopic</a>
<ul>
<li><a href="#">1.2.3.1 Subtopic</a></li>
<li><a href="#">1.2.3.2 Subtopic</a></li>
<li><a href="#">1.2.3.3 Subtopic</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">1.3 Subtopic</a></li>
<li><a href="#">1.4 Subtopic</a></li>
</ul>
</li>
<li>2 Main Topic
<ul>
<li><a href="#">2.1 Subtopic</a></li>
<li><a href="#">2.2 Subtopic</a></li>
</ul>
</li>
<li>3 Main Topic</li>
</ul>
<h3>Code</h3>
<h4>HTML</h4>
<p>[sniplet Nested ULs]<br />
Note: If you are creating an outline, be sure to use the xoxo microformat with this, see <a href="http://microformats.org/wiki/xoxo" rel="external">http://microformats.org/wiki/xoxo</a></p>
<h4>Javascript</h4>
<p>[sniplet Nested ULs JS]</p>
<p>Note: Be sure to include <a href="http://jquery.com/" rel="external">jQuery </a></p>
<h4>Optional CSS</h4>
<pre>.expander { cursor:pointer; }</pre>
</div>]]></content:encoded>
			<wfw:commentRss>http://tr0y.com/2008/01/17/collapsible-menus-with-jquery-and-nested-uls/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Roo, FasterCSV alternative?</title>
		<link>http://tr0y.com/2008/01/16/roo-fastercsv-alternative/</link>
		<comments>http://tr0y.com/2008/01/16/roo-fastercsv-alternative/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 00:15:19 +0000</pubDate>
		<dc:creator>Troy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[fastercsv]]></category>

		<category><![CDATA[gem]]></category>

		<category><![CDATA[roo]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://tr0y.com/2008/01/16/roo-fastercsv-alternative/</guid>
		<description><![CDATA[I just discovered Roo on RubyForge. Looking at the documentation it looks like a FasterCSV alternative.
 This gem allows you to access the content of

Open-office spreadsheets (.ods)
Excel spreadsheets (.xls)
Google (online) spreadsheets


I can not see it replacing FasterCSV at the moment, as a lot of the features presented are available through FasterCSV.
In my mind, the only [...]]]></description>
			<content:encoded><![CDATA[<div class='microid-mailto+http:sha1:20d344db2348c88f93fd4354a25b1f21bdc9c057'><p>I just discovered <a href="http://roo.rubyforge.org/" rel="external">Roo on RubyForge</a>. Looking at the documentation it looks like a FasterCSV alternative.</p>
<blockquote><p> This gem allows you to access the content of</p>
<ul>
<li>Open-office spreadsheets (.ods)</li>
<li>Excel spreadsheets (.xls)</li>
<li>Google (online) spreadsheets</li>
</ul>
</blockquote>
<p>I can not see it replacing <a href="http://fastercsv.rubyforge.org/" rel="external">FasterCSV</a> at the moment, as a lot of the features presented are available through FasterCSV.</p>
<p>In my mind, the only thing separating this from FasterCSV is the ability to save your spreadsheets to Google Docs. This is cool because one could share a spreadsheet with a customer, and write generated reports to it for automated reporting.</p>
<p>I happen to store all my hours worked in a Google document, so this would be great for generating excel reports by month to give to my employer.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://tr0y.com/2008/01/16/roo-fastercsv-alternative/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SSH Keypairs for Easy Login</title>
		<link>http://tr0y.com/2008/01/02/ssh-keypairs-for-easy-login/</link>
		<comments>http://tr0y.com/2008/01/02/ssh-keypairs-for-easy-login/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 22:18:34 +0000</pubDate>
		<dc:creator>Troy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[productivity]]></category>

		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://tr0y.com/2008/01/02/ssh-keypairs-for-easy-login/</guid>
		<description><![CDATA[ Tired of entering your password everytime you want to connect to a server? Me too, read this.
 Creating your public Key

 	On your local machine.
Open Terminal.
 	ssh-keygen
 	Hit enter when asked for filename or password

Creating Server Aliases

 	Edit ~/.ssh/config file
 	Add the following:
Host ALIAS
HostName HOST.COM
User USER
Save

Adding Key to Authorized Keys on Server

scp ~/.ssh/id_rsa.pub ALIAS:
ssh [...]]]></description>
			<content:encoded><![CDATA[<div class='microid-mailto+http:sha1:f39f758f0e703539961ffc3d1be4044ba7bcdf31'><p class="content"> Tired of entering your password everytime you want to connect to a server? Me too, read this.</p>
<h4> Creating your public Key</h4>
<ol>
<li> 	On your local machine.</li>
<li>Open Terminal.</li>
<li> 	ssh-keygen</li>
<li> 	Hit enter when asked for filename or password</li>
</ol>
<h4>Creating Server Aliases</h4>
<ol>
<li> 	Edit ~/.ssh/config file</li>
<li> 	Add the following:<br />
Host ALIAS<br />
HostName HOST.COM<br />
User USER</li>
<li>Save</li>
</ol>
<h4>Adding Key to Authorized Keys on Server</h4>
<ol>
<li>scp ~/.ssh/id_rsa.pub ALIAS:</li>
<li>ssh ALIAS</li>
<li>Enter password when prompted.</li>
<li>mkdir .ssh</li>
<li>chmod 700 .ssh</li>
<li>cd .ssh</li>
<li> 	touch authorized_keys</li>
<li> 	chmod 600 authorized_keys</li>
<li> 	cat ~/id_rsa.pub &gt;&gt; authorized_keys</li>
</ol>
<p>Now you should be able to do ... ssh ALIAS and instantly login to your server.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://tr0y.com/2008/01/02/ssh-keypairs-for-easy-login/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
