<?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>natebean.com</title>
	<atom:link href="http://natebean.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://natebean.com</link>
	<description></description>
	<lastBuildDate>Sun, 01 Apr 2012 20:15:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>A Great Way to Learn Ruby on Rails</title>
		<link>http://natebean.com/224/ruby-on-rails/a-great-way-to-learn-ruby-on-rails/</link>
		<comments>http://natebean.com/224/ruby-on-rails/a-great-way-to-learn-ruby-on-rails/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 22:07:24 +0000</pubDate>
		<dc:creator>natebean</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://natebean.com/?p=224</guid>
		<description><![CDATA[If you are new to Ruby on Rails and looking a great resource to get you making your first application the correct way, I would recommend  Ruby on Rails Tutorial: Learn Rails by Example. This book comes in three formats:  HTML, PDF, and video/screencast.  I personally bought the PDF/screencast combo.  The screencasts have some additional [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fnatebean.com%2F224%2Fruby-on-rails%2Fa-great-way-to-learn-ruby-on-rails%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fnatebean.com%2F224%2Fruby-on-rails%2Fa-great-way-to-learn-ruby-on-rails%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If you are new to Ruby on Rails and looking a great resource to get you making your first application the correct way, I would recommend  <strong><tt><a href="http://goo.gl/Q8Ofx">Ruby on Rails Tutorial: Learn Rails by Example</a>.</tt></strong></p>
<p><strong><a href="http://natebean.com/wp-content/uploads/2011/04/screencasts_thumbnail_play.png"></a><a href="http://goo.gl/Q8Ofx"><img class="aligncenter size-full wp-image-242" title="screencasts_play" src="http://natebean.com/wp-content/uploads/2011/04/screencasts_play.png" alt="" width="294" height="270" /></a></p>
<p></strong></p>
<p>This book comes in three formats:  HTML, PDF, and video/screencast.  I personally bought the PDF/screencast combo.  The screencasts have some additional information/tips that are not captured in the text and I like being able to see how Michael Hartl works.</p>
<p>The HTML version is free, but I enjoyed having access to the PDF for offline viewing and being able to watch the screencasts.</p>
<p>I purchased this book a while back and Michael has done a very good job keeping the book updated as Rails 3 evolves.  It has been nice having a book to reference based on the recent version of Rails.</p>
<p>Here is an excerpt from the website:</p>
<blockquote><p><em>The <a href="http://goo.gl/Q8Ofx">Ruby on Rails Tutorial </a>helps you learn Rails by example through the development of a substantial sample application, including a site layout, a user data model, a full registration and authentication system, user-micropost associations, social &#8220;following&#8221;, and a feed of status updates. The <a href="http://goo.gl/Q8Ofx">Ruby on Rails Tutorial</a> also teaches good software development practices, including version control with <a href="http://git-scm.com/">Git</a> and <a href="http://github.com/">GitHub</a>, test-driven development (TDD) with <a href="http://rspec.info/">RSpec</a>, and instant deployment with <a href="http://heroku.com/">Heroku</a>. Though of necessity the book and screencasts focus on a specific sample application, the emphasis throughout the <a href="http://goo.gl/Q8Ofx">Rails Tutorial</a> is on general principles, so you will have a solid foundation no matter what kind of web application you want to build.</em></p></blockquote>
<p>I&#8217;ve been able to use the foundation of this book on 2 other applications, it has really helped me get up and started much quicker than in the past.</p>
<p>Let me know what you think.  Do you recommendations on other books or resources?</p>
]]></content:encoded>
			<wfw:commentRss>http://natebean.com/224/ruby-on-rails/a-great-way-to-learn-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails Testing Screencasts</title>
		<link>http://natebean.com/124/ruby-on-rails/ruby-on-rails-testing-screencasts/</link>
		<comments>http://natebean.com/124/ruby-on-rails/ruby-on-rails-testing-screencasts/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 03:46:31 +0000</pubDate>
		<dc:creator>natebean</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://natebean.com/?p=124</guid>
		<description><![CDATA[Great content from railscasts.com Beginning with Cucumber Cucumber is a high-level testing framework. In this episode we will create a new Rails application from scratch using behavior driven development. via Railscasts &#8211; Beginning with Cucumber. Webrat If you prefer writing integration tests in ruby instead of Cucumber&#38;apos;s plain english, consider interacting with Webrat directly as I [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fnatebean.com%2F124%2Fruby-on-rails%2Fruby-on-rails-testing-screencasts%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fnatebean.com%2F124%2Fruby-on-rails%2Fruby-on-rails-testing-screencasts%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<div>
<div>
<p><strong>Great content from <a href="http://railscasts.com">railscasts.com</a></strong></p>
<p><strong>Beginning with Cucumber</strong></p>
<blockquote><p>Cucumber is a high-level testing framework. In this episode we will create a new Rails application from scratch using behavior driven development.</p></blockquote>
<p>via <a href="http://railscasts.com/episodes/155-beginning-with-cucumber">Railscasts &#8211; Beginning with Cucumber</a>.</p>
<div>
<p><strong>Webrat</strong></p>
<blockquote><p>If you prefer writing integration tests in ruby instead of Cucumber&amp;apos;s plain english, consider interacting with Webrat directly as I show in this episode.</p></blockquote>
<p>via <a href="http://railscasts.com/episodes/156-webrat">Railscasts &#8211; Webrat</a>.</p>
</div>
</div>
<div>
<p><strong>More on Cucumber</strong></p>
<blockquote><p>There is a lot more to Cucumber than I showed in an earlier episode. See how to refactor complex scenarios in this episode.</p></blockquote>
<p>via <a href="http://railscasts.com/episodes/159-more-on-cucumber">Railscasts &#8211; More on Cucumber</a>.</p>
<div>
<p><strong>Pickle with Cucumber</strong></p>
<blockquote><p>Pickle adds many convenient Cucumber steps for generating models. Also learn about table diffs in this episode.</p></blockquote>
<p>via <a href="http://railscasts.com/episodes?search=pickle">Railscasts &#8211; Free Ruby on Rails Screencasts</a>.</p>
</div>
</div>
</div>
<p><strong>Great screencast on Cucumber and some RSpec.  Worth your 25 minutes.</strong></p>
<p><strong> </strong></p>
<blockquote><p>This is a basic introduction to integration testing with cucumber. In it, I describe how to use cucumber and rspec to implement a feature in a web application, emphasizing the importance of writing tests before code, which is often referred to as TDD (test-driven development) or BDD (behavior-driven development, a refinement of the original TDD).</p></blockquote>
<p>via <a href="http://www.teachmetocode.com/screencasts/4">Teach Me To Code &#8211; Introduction to Outside-in Development with Cucumber</a>.</p>
<p><img style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyNjgxMDU*MDE4ODEmcHQ9MTI2ODEwNTQwNzYzNiZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm9mPTA=.gif" border="0" alt="" width="0" height="0" /></p>
<div id="__ss_1920832" style="width: 425px;"><strong><a title="Writing Software not Code with Cucumber" href="http://www.slideshare.net/bmabey/writing-software-not-code-with-cucumber">Writing Software not Code with Cucumber</a></strong><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=writingsoftwarenotcodewithcucumber-090828141124-phpapp02&amp;stripped_title=writing-software-not-code-with-cucumber" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=writingsoftwarenotcodewithcucumber-090828141124-phpapp02&amp;stripped_title=writing-software-not-code-with-cucumber" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/bmabey">Ben Mabey</a>.</div>
</div>
<p><a href="http://www.benmabey.com/2009/08/28/writing-software-not-code-with-cucumber-slides-from-ruby-hoedown/">Writing Software not Code with Cucumber –<br />
slides from Ruby Hoedown • Blog Archive • Ben Mabey</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://natebean.com/124/ruby-on-rails/ruby-on-rails-testing-screencasts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Miles Johnson // Script: Uploader (Plugin)</title>
		<link>http://natebean.com/32/cakephp/miles-johnson-script-uploader-plugin/</link>
		<comments>http://natebean.com/32/cakephp/miles-johnson-script-uploader-plugin/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 01:31:59 +0000</pubDate>
		<dc:creator>natebean</dc:creator>
				<category><![CDATA[cakePHP]]></category>

		<guid isPermaLink="false">http://natebean.com/?p=32</guid>
		<description><![CDATA[Very nice plugin for cakePHP for uploading files with great documentation.  Got it running with minimal effort.  Would recommend. An all around general purpose file uploader for CakePHP. Packaged as a stand alone plugin with file validation, file scanning and support for a wide range of basic mime types. Class Features: * Automatically sets all [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fnatebean.com%2F32%2Fcakephp%2Fmiles-johnson-script-uploader-plugin%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fnatebean.com%2F32%2Fcakephp%2Fmiles-johnson-script-uploader-plugin%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Very nice plugin for cakePHP for uploading files with great documentation.  Got it running with minimal effort.  Would recommend.</p>
<blockquote><p>An all around general purpose file uploader for CakePHP. Packaged as a stand alone plugin with file validation, file scanning and support for a wide range of basic mime types.</p>
<p>Class Features:</p>
<p>* Automatically sets all ini settings required for file uploading</p>
<p>* Support for a wide range of mime types: text, images, archives, audio, video, application</p>
<p>* Logs all internal errors that can be retrieved and displayed</p>
<p>* Saves a log for all uploads happening during the current request</p>
<p>* Automatically validates against the default mime types and internal errors</p>
<p>* Can scan the uploaded files for viruses using the ClamAV module</p>
<p>* Files can be uploaded anywhere within the webroot folder</p>
<p>* Convenience methods for deleting a file, moving/renaming a file and getting the file extension or dimensions</p>
<p>* Built in methods for resizing images and generating thumbnails</p>
<p>* Custom Behavior to add validation rules to your Models validation set</p>
<p>* Custom Behavior that allows models to attach files to automatically upload the file and save its information to a database</p>
<p>via <a href="http://www.milesj.me/resources/script/uploader-plugin">Miles Johnson // Script: Uploader (Plugin)</a>.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://natebean.com/32/cakephp/miles-johnson-script-uploader-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple hitcount behavior for CakePHP &#8211; lecterror</title>
		<link>http://natebean.com/30/cakephp/simple-hitcount-behavior-for-cakephp-lecterror/</link>
		<comments>http://natebean.com/30/cakephp/simple-hitcount-behavior-for-cakephp-lecterror/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 18:23:39 +0000</pubDate>
		<dc:creator>natebean</dc:creator>
				<category><![CDATA[cakePHP]]></category>

		<guid isPermaLink="false">http://natebean.com/?p=30</guid>
		<description><![CDATA[A nice blog post from dsi.vozibrale.com on how to create a CakePHP behavior.  This helps build on some of the missing points in the CakePHP manual.  This post include also includes good references. Simple hitcount behavior for CakePHP Posted in CakePHP on 07.04.2008. While developing Neutrino, I&#8217;ve decided to implement a simple hitcount behavior. So [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fnatebean.com%2F30%2Fcakephp%2Fsimple-hitcount-behavior-for-cakephp-lecterror%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fnatebean.com%2F30%2Fcakephp%2Fsimple-hitcount-behavior-for-cakephp-lecterror%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A nice blog post from dsi.vozibrale.com on how to create a CakePHP behavior.  This helps build on some of the missing points in the CakePHP manual.  This post include also includes good references.</p>
<blockquote>
<p>Simple hitcount behavior for CakePHP</p>
<p>Posted in CakePHP	on 07.04.2008.</p>
<p>While developing Neutrino, I&#8217;ve decided to implement a simple hitcount behavior. So here it is.</p>
<p>For those few who don&#8217;t know, behaviors are &#8220;extensions&#8221; for models. In other words, they are reusable model logic. They help you keep your code DRY, easily maintainable and portable. In this case, we&#8217;re creating a hit counter behavior, hitcount for short.</p>
<p>via <a href="http://dsi.vozibrale.com/articles/view/simple-hitcount-behavior-for-cakephp">Simple hitcount behavior for CakePHP &#8211; lecterror</a>.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://natebean.com/30/cakephp/simple-hitcount-behavior-for-cakephp-lecterror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test Fixtures for CakePHP Has-and-Belongs-to-Many Relationships &#124; End Point Blog</title>
		<link>http://natebean.com/28/cakephp/test-fixtures-for-cakephp-has-and-belongs-to-many-relationships-end-point-blog/</link>
		<comments>http://natebean.com/28/cakephp/test-fixtures-for-cakephp-has-and-belongs-to-many-relationships-end-point-blog/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 02:44:14 +0000</pubDate>
		<dc:creator>natebean</dc:creator>
				<category><![CDATA[cakePHP]]></category>

		<guid isPermaLink="false">http://natebean.com/?p=28</guid>
		<description><![CDATA[Nice entry on how to get HABTM tests to work in CakePHP 1.2. Test Fixtures for CakePHP Has-and-Belongs-to-Many Relationships CakePHP, a popular MVC framework in/for PHP, offers a pretty easy-to-use object-relational mapper, as well as fairly straightforward fixture class for test data. Consequently, it&#8217;s fairly easy to get into test-driven development with CakePHP, though this [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fnatebean.com%2F28%2Fcakephp%2Ftest-fixtures-for-cakephp-has-and-belongs-to-many-relationships-end-point-blog%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fnatebean.com%2F28%2Fcakephp%2Ftest-fixtures-for-cakephp-has-and-belongs-to-many-relationships-end-point-blog%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Nice entry on how to get HABTM tests to work in CakePHP 1.2.</p>
<blockquote><p>Test Fixtures for CakePHP Has-and-Belongs-to-Many Relationships</p>
<p>CakePHP, a popular MVC framework in/for PHP, offers a pretty easy-to-use object-relational mapper, as well as fairly straightforward fixture class for test data. Consequently, it&#8217;s fairly easy to get into test-driven development with CakePHP, though this can take some acclimation if you&#8217;re coming from Rails or Django or some such; the need to go through a web interface to navigate to and execute your test cases feels, to me, a little unnatural. Nevertheless, you can get writing tests pretty quickly, and the openness of the testing framework means that it won&#8217;t get in your way. Indeed, compared to the overwhelming plethora of testing options one gets in the Ruby space &#8212; and the accompanying sense that the choice of testing framework is akin to one&#8217;s choice of religion, political party, or top 10 desert island album list &#8212; CakePHP&#8217;s straightforward testing feels a little liberating.</p>
<p>Which is why it was a little surprising to me that getting a test fixture going for the join table on a has-and-belongs-to-many (HABTM) association is &#8212; at least in my experience &#8212; not the clearest thing in the world.</p>
<p>via <a href="http://blog.endpoint.com/2009/11/test-fixtures-for-cakephp-has-and.html">Test Fixtures for CakePHP Has-and-Belongs-to-Many Relationships | End Point Blog</a>.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://natebean.com/28/cakephp/test-fixtures-for-cakephp-has-and-belongs-to-many-relationships-end-point-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Very helpful and concise post on using Gimp to make a button</title>
		<link>http://natebean.com/20/gimp/very-helpful-and-concise-post-on-using-gimp-to-make-a-button/</link>
		<comments>http://natebean.com/20/gimp/very-helpful-and-concise-post-on-using-gimp-to-make-a-button/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 20:57:34 +0000</pubDate>
		<dc:creator>natebean</dc:creator>
				<category><![CDATA[Gimp]]></category>

		<guid isPermaLink="false">http://natebean.com/?p=20</guid>
		<description><![CDATA[      Helpful and concise tutorial on using GIMP to design rounded buttons.   For last few day had been doing some designing. Had to make some buttons, so here is a tutorial for making a rounded cornered shiny button. And of course using GIMP   via Nothing To Lose &#124; Little Shiny Blue [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fnatebean.com%2F20%2Fgimp%2Fvery-helpful-and-concise-post-on-using-gimp-to-make-a-button%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fnatebean.com%2F20%2Fgimp%2Fvery-helpful-and-concise-post-on-using-gimp-to-make-a-button%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p> </p>
<p> </p>
<p style="text-align: center;"><a href="http://fossist.net/?p=443"><img src="http://fossist.net/wp-content/uploads/2009/04/09roundedcornersbluebutton.png" alt="" /></a></p>
<p> </p>
<p>Helpful and concise tutorial on using GIMP to design rounded buttons.</p>
<p> </p>
<p>For last few day had been doing some designing. Had to make some buttons, so here is a tutorial for making a rounded cornered shiny button. And of course using GIMP</p>
<p> </p>
<p>via <a href="http://fossist.net/?p=443"> Nothing To Lose | Little Shiny Blue Button</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://natebean.com/20/gimp/very-helpful-and-concise-post-on-using-gimp-to-make-a-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a web 2.0 badge in The Gimp «  Help Developer &#8211; Graphic and Web Design Blog with Collections, Freebies, Tutorials and Forums</title>
		<link>http://natebean.com/14/gimp/create-a-web-20-badge-in-the-gimp-%c2%ab-help-developer-graphic-and-web-design-blog-with-collections-freebies-tutorials-and-forums/</link>
		<comments>http://natebean.com/14/gimp/create-a-web-20-badge-in-the-gimp-%c2%ab-help-developer-graphic-and-web-design-blog-with-collections-freebies-tutorials-and-forums/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 20:50:48 +0000</pubDate>
		<dc:creator>natebean</dc:creator>
				<category><![CDATA[Gimp]]></category>

		<guid isPermaLink="false">http://natebean.com/?p=14</guid>
		<description><![CDATA[Create a web 2.0 badge in The Gimp In this tutorial I will show you how to design a web 2.0 badge in the Gimp. These type of badges have made their place in the web 2.0 design as a great graphic to have on your website for all sorts of options such as subscribing [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fnatebean.com%2F14%2Fgimp%2Fcreate-a-web-20-badge-in-the-gimp-%25c2%25ab-help-developer-graphic-and-web-design-blog-with-collections-freebies-tutorials-and-forums%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fnatebean.com%2F14%2Fgimp%2Fcreate-a-web-20-badge-in-the-gimp-%25c2%25ab-help-developer-graphic-and-web-design-blog-with-collections-freebies-tutorials-and-forums%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Create a web 2.0 badge in The Gimp</p>
<p>In this tutorial I will show you how to design a web 2.0 badge in the Gimp. These type of badges have made their place in the web 2.0 design as a great graphic to have on your website for all sorts of options such as subscribing to an RSS feed. Some techniques in this tutorial are based on the Photoshop tutorial written by Photoshop star which can be found here.</p>
<p>via <a href="http://help-developer.com/index.php/2008/06/create-a-web-20-badge-in-the-gimp/">Create a web 2.0 badge in The Gimp «  Help Developer &#8211; Graphic and Web Design Blog with Collections, Freebies, Tutorials and Forums</a>.</p>
<p>Helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://natebean.com/14/gimp/create-a-web-20-badge-in-the-gimp-%c2%ab-help-developer-graphic-and-web-design-blog-with-collections-freebies-tutorials-and-forums/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Journal &#8211; Random Rows in MySQL</title>
		<link>http://natebean.com/10/mysql/learning-journal-random-rows-in-mysql/</link>
		<comments>http://natebean.com/10/mysql/learning-journal-random-rows-in-mysql/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 02:07:51 +0000</pubDate>
		<dc:creator>natebean</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://natebean.com/?p=10</guid>
		<description><![CDATA[Random Rows in MySQL I have to admit that I had quite some trouble figuring out how I could get MySQL to return some random rows in a query. It was something I had to figure out for myself when I wanted to get a list of random websites off GIDTopsites™ to place on these [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fnatebean.com%2F10%2Fmysql%2Flearning-journal-random-rows-in-mysql%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fnatebean.com%2F10%2Fmysql%2Flearning-journal-random-rows-in-mysql%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Random Rows in MySQL</p>
<p>I have to admit that I had quite some trouble figuring out how I could get MySQL to return some random rows in a query. It was something I had to figure out for myself when I wanted to get a list of random websites off GIDTopsites™ to place on these pages here.</p>
<p>As usual, everything fell nicely into place and it was SO simple&#8230;</p>
<p>RAND()</p>
<p>Using rand(), I just had to add it to my SQL query</p>
<p>like this:</p>
<p>php:</p>
<p>//  random row mysql query example</p>
<p>$sql = &#8220;SELECT * FROM tablename</p>
<p>WHERE somefield=&#8217;something&#8217;</p>
<p>ORDER BY RAND() LIMIT 5&#8243;;</p>
<p>//  or, something like this</p>
<p>$sql = &#8220;SELECT * FROM tablename</p>
<p>ORDER BY RAND()&#8221;;</p>
<p>?&gt;</p>
<p>via <a href="http://www.desilva.biz/mysql/random.html">Learning Journal &#8211; Random Rows in MySQL</a>.</p>
<p>Short and helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://natebean.com/10/mysql/learning-journal-random-rows-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: foreach &#8211; Manual</title>
		<link>http://natebean.com/8/php/php-foreach-manual/</link>
		<comments>http://natebean.com/8/php/php-foreach-manual/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 02:27:25 +0000</pubDate>
		<dc:creator>natebean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://natebean.com/?p=8</guid>
		<description><![CDATA[foreach PHP 4 introduced a foreach construct, much like Perl and some other languages. This simply gives an easy way to iterate over arrays. foreach works only on arrays, and will issue an error when you try to use it on a variable with a different data type or an uninitialized variable. There are two [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fnatebean.com%2F8%2Fphp%2Fphp-foreach-manual%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fnatebean.com%2F8%2Fphp%2Fphp-foreach-manual%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>foreach</p>
<p>PHP 4 introduced a foreach construct, much like Perl and some other languages. This simply gives an easy way to iterate over arrays. foreach works only on arrays, and will issue an error when you try to use it on a variable with a different data type or an uninitialized variable. There are two syntaxes; the second is a minor but useful extension of the first:</p>
<p>foreach (array_expression as $value)</p>
<p>statement</p>
<p>foreach (array_expression as $key =&gt; $value)</p>
<p>statement</p>
<p>via <a href="http://us3.php.net/foreach">PHP: foreach &#8211; Manual</a>.</p>
<p>One of the downsides to jumping between Python and PHP, can&#8217;t always remember the syntax.</p>
]]></content:encoded>
			<wfw:commentRss>http://natebean.com/8/php/php-foreach-manual/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress › WordPress Themes</title>
		<link>http://natebean.com/4/php/wordpress-%e2%80%ba-wordpress-themes/</link>
		<comments>http://natebean.com/4/php/wordpress-%e2%80%ba-wordpress-themes/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 21:23:02 +0000</pubDate>
		<dc:creator>natebean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://natebean.com/?p=4</guid>
		<description><![CDATA[WordPress › WordPress Themes. A good list of WordPress Themes.  Not sure if these are useful if you are on wordpress.com. Installing wordpress on your hosted server is quite easy with this handy guide.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fnatebean.com%2F4%2Fphp%2Fwordpress-%25e2%2580%25ba-wordpress-themes%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fnatebean.com%2F4%2Fphp%2Fwordpress-%25e2%2580%25ba-wordpress-themes%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://wordpress.org/extend/themes/">WordPress › WordPress Themes</a>.</p>
<p>A good list of WordPress Themes.  Not sure if these are useful if you are on wordpress.com.</p>
<p>Installing wordpress on your hosted server is quite easy with this <a href="http://codex.wordpress.org/Installing_WordPress">handy guide.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://natebean.com/4/php/wordpress-%e2%80%ba-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

