<?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>Handstands Across America &#187; Random</title>
	<atom:link href="http://www.handstandsacrossamerica.com/blog/tag/random/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.handstandsacrossamerica.com/blog</link>
	<description>Doing Handstands Wherever I go, Why Not?</description>
	<lastBuildDate>Mon, 11 Oct 2010 18:03:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Random Handstands with MySQL and CSS Fix</title>
		<link>http://www.handstandsacrossamerica.com/blog/2009/08/05/random-handstands-and-css-fix/</link>
		<comments>http://www.handstandsacrossamerica.com/blog/2009/08/05/random-handstands-and-css-fix/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 12:03:30 +0000</pubDate>
		<dc:creator>Sam E.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.handstandsacrossamerica.com/blog/?p=741</guid>
		<description><![CDATA[Random Handstands Well, it turns out that the &#8220;Random&#8221; handstands you see on the right were actually not all that random. They weren&#8217;t showing any from my roadtrip or beyond which was puzzling. I still don&#8217;t know exactly why that code didn&#8217;t work, but I have some that does now, which is less efficient (but [...]]]></description>
			<content:encoded><![CDATA[<h2 class="sub">Random Handstands</h2>
<p>Well, it turns out that the &#8220;Random&#8221; handstands you see on the right were actually not all that random.  They weren&#8217;t showing any from my roadtrip or beyond which was puzzling.  I still don&#8217;t know exactly why that code didn&#8217;t work, but I have some that does now, which is less efficient (but works)!</p>
<p><img style="float:right;margin-left:15px;margin-bottom:15px;border:1px solid #111111;width:50%;height:50%;" src="http://www.handstandsacrossamerica.com/blog/wp-content/uploads/2009/08/mysql.jpg"/>For anyone who is a MySQL guru, I wanted to determine the MAX id, and then generate a random id off of that.  Then using that id, retrieve the information.</p>
<p>I accomplish it by making 2 calls now:</p>
<ul>
<li>Call 1 (Getting a Random id):</p>
<ul>
<li>SELECT FLOOR(MAX(id) * RAND()) FROM `$this->table` LIMIT 1</li>
</ul>
</li>
<li>Call 2 (Getting the properties out for that id):
<ul>
<li>SELECT `id`, `title`, `description`, `small` FROM `$this->table` WHERE id = $rand_id ORDER BY id LIMIT 1</li>
</ul>
</li>
</ul>
<p>How do I make a query that works in one shot, but accomplishes the same thing?</p>
<h2 class="sub">CSS Fix</h2>
<p>My <a href="http://www.handstandsacrossamerica.com/blog/about">About</a> page was looking messed up as the footer came up and swallowed the entire page.  I ended up fixing that thankfully though too.  Yay for fixes!</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.handstandsacrossamerica.com%2Fblog%2F2009%2F08%2F05%2Frandom-handstands-and-css-fix%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.handstandsacrossamerica.com/blog/2009/08/05/random-handstands-and-css-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Did you know?</title>
		<link>http://www.handstandsacrossamerica.com/blog/2009/04/20/did-you-know/</link>
		<comments>http://www.handstandsacrossamerica.com/blog/2009/04/20/did-you-know/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 15:53:00 +0000</pubDate>
		<dc:creator>Sam E.</dc:creator>
				<category><![CDATA[Travel]]></category>
		<category><![CDATA[Chesapeake Bay]]></category>
		<category><![CDATA[Driving]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Tweet]]></category>
		<category><![CDATA[Virginia]]></category>

		<guid isPermaLink="false">http://www.handstandsacrossamerica.com/wordpress/?p=171</guid>
		<description><![CDATA[Milepost 159.15 is where the chesapeake bay watershed ends on I-81.]]></description>
			<content:encoded><![CDATA[<p>Milepost 159.15 is where the chesapeake bay watershed ends on I-81.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.handstandsacrossamerica.com%2Fblog%2F2009%2F04%2F20%2Fdid-you-know%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.handstandsacrossamerica.com/blog/2009/04/20/did-you-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Foreign Affairs</title>
		<link>http://www.handstandsacrossamerica.com/blog/2009/04/20/foreign-affairs/</link>
		<comments>http://www.handstandsacrossamerica.com/blog/2009/04/20/foreign-affairs/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 15:09:00 +0000</pubDate>
		<dc:creator>Sam E.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Driving]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Tweet]]></category>
		<category><![CDATA[Virginia]]></category>

		<guid isPermaLink="false">http://www.handstandsacrossamerica.com/wordpress/?p=170</guid>
		<description><![CDATA[What is foreignaffairs.us? Exit 213B on I-81. I would guess an auto shop?]]></description>
			<content:encoded><![CDATA[<p>What is <a href="http://foreignaffairs.us">foreignaffairs.us</a>?  Exit 213B on I-81.  I would guess an auto shop?</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.handstandsacrossamerica.com%2Fblog%2F2009%2F04%2F20%2Fforeign-affairs%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.handstandsacrossamerica.com/blog/2009/04/20/foreign-affairs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On my route to Greenville,</title>
		<link>http://www.handstandsacrossamerica.com/blog/2009/04/20/on-my-route-to-greenville/</link>
		<comments>http://www.handstandsacrossamerica.com/blog/2009/04/20/on-my-route-to-greenville/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 15:06:00 +0000</pubDate>
		<dc:creator>Sam E.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Driving]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Tweet]]></category>

		<guid isPermaLink="false">http://www.handstandsacrossamerica.com/wordpress/?p=169</guid>
		<description><![CDATA[On my route to Greenville, SC via I-81, I pass Greenville, VA &#124; Blacksburg,VA &#124; Blacksburg, SC &#124; Greenville, SC. Whoa.]]></description>
			<content:encoded><![CDATA[<p>On my route to Greenville, SC via I-81, I pass Greenville, VA | Blacksburg,VA | Blacksburg, SC | Greenville, SC.  Whoa.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.handstandsacrossamerica.com%2Fblog%2F2009%2F04%2F20%2Fon-my-route-to-greenville%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.handstandsacrossamerica.com/blog/2009/04/20/on-my-route-to-greenville/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My co-workers are cool</title>
		<link>http://www.handstandsacrossamerica.com/blog/2008/11/18/my-co-workers-are-cool/</link>
		<comments>http://www.handstandsacrossamerica.com/blog/2008/11/18/my-co-workers-are-cool/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 16:40:00 +0000</pubDate>
		<dc:creator>Sam E.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Instant Message]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.handstandsacrossamerica.com/wordpress/?p=147</guid>
		<description><![CDATA[I thought this was pretty funny, haha. Zach:awesomei am just printing something random to the console and it works Me:TIGHTyou are a GOD Zach:lol, i made alot of mistakes, like the dinosaurs Me:LOL Zach:but least i turned em into oil]]></description>
			<content:encoded><![CDATA[<p>I thought this was pretty funny, haha.<br />
<hr/><span style="font-weight:bold;">Zach:</span><br />awesome<br />i am just printing something random to the console and it works</p>
<p><span style="font-weight:bold;">Me:</span><br />TIGHT<br />you are a GOD</p>
<p><span style="font-weight:bold;">Zach:</span><br />lol, i made alot of mistakes, like the dinosaurs</p>
<p><span style="font-weight:bold;">Me:</span><br />LOL</p>
<p><span style="font-weight:bold;">Zach:</span><br />but least i turned em into oil</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.handstandsacrossamerica.com%2Fblog%2F2008%2F11%2F18%2Fmy-co-workers-are-cool%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.handstandsacrossamerica.com/blog/2008/11/18/my-co-workers-are-cool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coffee?</title>
		<link>http://www.handstandsacrossamerica.com/blog/2008/10/29/coffee/</link>
		<comments>http://www.handstandsacrossamerica.com/blog/2008/10/29/coffee/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 15:21:00 +0000</pubDate>
		<dc:creator>Sam E.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Coffee]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.handstandsacrossamerica.com/wordpress/?p=140</guid>
		<description><![CDATA[Working from Kristen&#8217;s place poses one problem&#8230; No coffee. No problem. I&#8217;ve got grounds and filters, and I can make hot water. Our Yosemite backpacking trip was even more &#8220;ghetto-fied&#8221; where we used a mosquito head net as a coffee strainer.]]></description>
			<content:encoded><![CDATA[<p>Working from Kristen&#8217;s place poses one problem&#8230; No coffee.</p>
<p>No problem.  I&#8217;ve got grounds and filters, and I can make hot water.<br /><img src="http://www.handstandsacrossamerica.com/uploaded_images/Photo-65-781858.jpg"/></p>
<p>Our Yosemite backpacking trip was even more &#8220;ghetto-fied&#8221; where we used a mosquito head net as a coffee strainer.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.handstandsacrossamerica.com%2Fblog%2F2008%2F10%2F29%2Fcoffee%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.handstandsacrossamerica.com/blog/2008/10/29/coffee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let me out!</title>
		<link>http://www.handstandsacrossamerica.com/blog/2008/04/21/let-me-out/</link>
		<comments>http://www.handstandsacrossamerica.com/blog/2008/04/21/let-me-out/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 02:08:00 +0000</pubDate>
		<dc:creator>Sam E.</dc:creator>
				<category><![CDATA[Flying]]></category>
		<category><![CDATA[Blacksburg]]></category>
		<category><![CDATA[HDR]]></category>
		<category><![CDATA[Hokie Flying Club]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Virginia]]></category>

		<guid isPermaLink="false">http://www.handstandsacrossamerica.com/wordpress/?p=30</guid>
		<description><![CDATA[Soo, I rode my bike over to the Tee Hangars today to take some more pictures. They turned out pretty well as can be seen below However&#8230; I think the gate is activated by weight when a car pulls up to it and I was not heavy enough. So&#8230; I broke out of the airport [...]]]></description>
			<content:encoded><![CDATA[<p>Soo, I rode my bike over to the Tee Hangars today to take some more pictures.  They turned out pretty well as can be seen below <img src='http://www.handstandsacrossamerica.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   However&#8230; I think the gate is activated by weight when a car pulls up to it and I was not heavy enough.  So&#8230; I broke out of the airport by scaling the fence, and then used my access card to open the gate and rescue my bike and backpack.</p>
<div style="text-align: center;"><a href="http://www.flickr.com/photos/ssaammee/2432147313"><img src="http://farm3.static.flickr.com/2103/2432147313_1d395662a7.jpg?v=0" /><br /></a>Cessna 150 Cockpit</div>
<p>
<div style="text-align: center;"><a href="http://www.flickr.com/photos/ssaammee/2432174801"><img src="http://farm3.static.flickr.com/2058/2432174801_6b0377b9b1.jpg?v=0" /></p>
<p></a>Piper Cherokee HDR</div>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.handstandsacrossamerica.com%2Fblog%2F2008%2F04%2F21%2Flet-me-out%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.handstandsacrossamerica.com/blog/2008/04/21/let-me-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

