<?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>FarmSoft Studios Scratchpad</title>
	<atom:link href="http://scratchpad.farmsoftstudios.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://scratchpad.farmsoftstudios.com</link>
	<description>What We're Thinking About Right Now...</description>
	<pubDate>Thu, 20 Nov 2008 15:04:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Adding A User In MySQL</title>
		<link>http://scratchpad.farmsoftstudios.com/2008/11/web-design/adding-a-user-in-mysql/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2008/11/web-design/adding-a-user-in-mysql/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 15:01:36 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Web Design]]></category>

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

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

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=60</guid>
		<description><![CDATA[Do you need to quickly add a specific user with access to only a certain table?  Issue this command as a root or admin user:
GRANT ALL ON testdb.* TO 'testuser'@'localhost' IDENTIFIED BY 'pass1';
You can also limit user&#8217;s privileges to specific ip addresses or domains in case you need to access your databases from a [...]]]></description>
			<content:encoded><![CDATA[<p>Do you need to quickly add a specific user with access to only a certain table?  Issue this command as a root or admin user:</p>
<p><code>GRANT ALL ON testdb.* TO 'testuser'@'localhost' IDENTIFIED BY 'pass1';</code></p>
<p>You can also limit user&#8217;s privileges to specific ip addresses or domains in case you need to access your databases from a different host.</p>
<p><code>GRANT ALL ON *.* TO 'testuser'@'remote.farmsoftstudios.com' IDENTIFIED BY 'pass1';</code></p>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2008/11/web-design/adding-a-user-in-mysql/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Find The Version Of CentOS/RHEL Without Rebooting</title>
		<link>http://scratchpad.farmsoftstudios.com/2008/11/linux/find-the-version-of-centosrhel-without-rebooting/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2008/11/linux/find-the-version-of-centosrhel-without-rebooting/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 01:48:22 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=59</guid>
		<description><![CDATA[Want to know if you have CentOS 4.5 or 5.0? Issue this command:
cat /etc/redhat-release
That file contains the needed version information.
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5 (Final)
]]></description>
			<content:encoded><![CDATA[<p>Want to know if you have CentOS 4.5 or 5.0? Issue this command:<br />
<code>cat /etc/redhat-release</code><br />
That file contains the needed version information.</p>
<pre>[root@localhost ~]# cat /etc/redhat-release
CentOS release 5 (Final)</pre>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2008/11/linux/find-the-version-of-centosrhel-without-rebooting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mounting a Samba (SMB) Share in CentOS</title>
		<link>http://scratchpad.farmsoftstudios.com/2008/10/linux/mounting-a-samba-smb-share-in-centos/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2008/10/linux/mounting-a-samba-smb-share-in-centos/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 19:45:00 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

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

		<category><![CDATA[command line]]></category>

		<category><![CDATA[file share]]></category>

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

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=57</guid>
		<description><![CDATA[Need to mount a samba share on your CentOS server from the command line?
Create a directory on the root:
mkdir /sharename
Then mount the share:
mount -t cifs //&#60;servername&#62;/&#60;sharename&#62; /sharename
if you type df -h you should see that your share is now mounted on the mountpoint that you created earlier.
]]></description>
			<content:encoded><![CDATA[<p>Need to mount a samba share on your CentOS server from the <strong>command line</strong>?</p>
<p>Create a directory on the root:<br />
<code>mkdir /sharename</code></p>
<p>Then mount the share:</p>
<pre class="screen"><tt class="command">mount -t cifs //&lt;servername&gt;/&lt;sharename&gt; /sharename</tt></pre>
<p>if you type <tt>df -h</tt> you should see that your share is now mounted on the mountpoint that you created earlier.</p>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2008/10/linux/mounting-a-samba-smb-share-in-centos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Connecting to the Remote Windows Console with Mac&#8217;s RDP Client</title>
		<link>http://scratchpad.farmsoftstudios.com/2008/10/apple-computer/connecting-to-the-remote-windows-console-with-macs-rdp-client/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2008/10/apple-computer/connecting-to-the-remote-windows-console-with-macs-rdp-client/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 16:41:52 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
		
		<category><![CDATA[Apple Computer]]></category>

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

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

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

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

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

		<category><![CDATA[Remote Desktop]]></category>

		<category><![CDATA[Windows Server 2003]]></category>

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=55</guid>
		<description><![CDATA[Ever needed to connect to the remote console of the machine rather than running through a terminal services session so that you could install certain software, or reset stuck terminal services sessions from a remote location?  All you have to do is type /console behind the host in the window.


]]></description>
			<content:encoded><![CDATA[<p>Ever needed to connect to the remote console of the machine rather than running through a terminal services session so that you could install certain software, or reset stuck terminal services sessions from a remote location?  All you have to do is type <tt>/console</tt> behind the host in the window.<br />
<a href="http://scratchpad.farmsoftstudios.com/wp-content/uploads/2008/10/remotedesktopconsole.jpg"></a></p>
<p style="text-align: center;"><img class="size-medium wp-image-56" title="Remote Desktop Connecting to Console" src="http://scratchpad.farmsoftstudios.com/wp-content/uploads/2008/10/remotedesktopconsole-300x124.jpg" alt="Remote Desktop Connecting to Console" width="300" height="124" /></p>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2008/10/apple-computer/connecting-to-the-remote-windows-console-with-macs-rdp-client/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Pandora Music Application</title>
		<link>http://scratchpad.farmsoftstudios.com/2008/10/farmsoft-studios/pandora-music-application/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2008/10/farmsoft-studios/pandora-music-application/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 20:15:32 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
		
		<category><![CDATA[FarmSoft Studios]]></category>

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

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=54</guid>
		<description><![CDATA[I wrote a little application that allows you to play music from Pandora right from your dock.  It does not take up a tab in your web browser, and it supports playing while minimized, which Safari does not.  You can get it here: http://www.farmsoftstudios.com/pandora/
]]></description>
			<content:encoded><![CDATA[<p>I wrote a little application that allows you to play music from Pandora right from your dock.  It does not take up a tab in your web browser, and it supports playing while minimized, which Safari does not.  You can get it here: <a href="http://www.farmsoftstudios.com/pandora/">http://www.farmsoftstudios.com/pandora/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2008/10/farmsoft-studios/pandora-music-application/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Alternating Table Backgrounds in PHP</title>
		<link>http://scratchpad.farmsoftstudios.com/2008/09/graphic-design/alternating-table-backgrounds-in-php/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2008/09/graphic-design/alternating-table-backgrounds-in-php/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 19:15:24 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
		
		<category><![CDATA[Graphic Design]]></category>

		<category><![CDATA[Web Design]]></category>

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

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=53</guid>
		<description><![CDATA[If you like the alternating table backgrounds that are in applications like iTunes, and want them in your web application, there is a simple way to do so in PHP:
&#60;table&#62;
 &#60;tr class=&#8221;title&#8221;&#62;
  &#60;td&#62;&#60;/td&#62;
 &#60;/tr&#62;
&#60;?php
$i=0;
foreach($row as $r){
   if($i&#38;0){$alt=&#8216; class=&#8221;even&#8221;&#8216;;}else{$alt=&#8221;;}
   echo &#8220;&#60;tr&#8221;.$alt.&#8220;&#62;&#8221;;
   //other table stuff in here
   $i++;
   echo &#8220;&#60;/tr&#62;&#8221;;
}
?&#62;
&#60;/table&#62;

]]></description>
			<content:encoded><![CDATA[<p>If you like the alternating table backgrounds that are in applications like iTunes, and want them in your web application, there is a simple way to do so in PHP:</p>
<p><code><span style="color: #000000;">&lt;table&gt;<br />
 &lt;tr class=&#8221;title&#8221;&gt;<br />
  &lt;td&gt;&lt;/td&gt;<br />
 &lt;/tr&gt;<br />
<span style="color: #0000bb;">&lt;?php<br />
$i</span><span style="color: #007700;">=</span><span style="color: #0000bb;">0</span><span style="color: #007700;">;<br />
foreach(</span><span style="color: #0000bb;">$row </span><span style="color: #007700;">as </span><span style="color: #0000bb;">$r</span><span style="color: #007700;">){<br />
   if(</span><span style="color: #0000bb;">$i</span><span style="color: #007700;">&amp;</span><span style="color: #0000bb;">0</span><span style="color: #007700;">){</span><span style="color: #0000bb;">$alt</span><span style="color: #007700;">=</span><span style="color: #dd0000;">&#8216; class=&#8221;even&#8221;&#8216;</span><span style="color: #007700;">;}else{</span><span style="color: #0000bb;">$alt</span><span style="color: #007700;">=</span><span style="color: #dd0000;">&#8221;</span><span style="color: #007700;">;}<br />
   echo </span><span style="color: #dd0000;">&#8220;&lt;tr&#8221;</span><span style="color: #007700;">.</span><span style="color: #0000bb;">$alt</span><span style="color: #007700;">.</span><span style="color: #dd0000;">&#8220;&gt;&#8221;</span><span style="color: #007700;">;<br />
   </span><span style="color: #ff8000;">//other table stuff in here<br />
   </span><span style="color: #0000bb;">$i</span><span style="color: #007700;">++;<br />
   echo </span><span style="color: #dd0000;">&#8220;&lt;/tr&gt;&#8221;</span><span style="color: #007700;">;<br />
}<br />
</span><span style="color: #0000bb;">?&gt;<br />
</span>&lt;/table&gt;</span><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2008/09/graphic-design/alternating-table-backgrounds-in-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Project Management</title>
		<link>http://scratchpad.farmsoftstudios.com/2008/09/web-design/project-management/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2008/09/web-design/project-management/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 13:29:36 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

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

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=52</guid>
		<description><![CDATA[These days, I consider the failure to use version control a professional malpractice. I’m also a zealot when it comes to deleting dead code. In fact, I derive quite a bit of enjoyment out of deleting existing code. Unused code, old code, mockups, things that were started and never finished, things that someone thought they needed and never did—I’m delighted to delete [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>These days, I consider the failure to use version control a professional malpractice. I’m also a zealot when it comes to deleting dead code. In fact, I derive quite a bit of enjoyment out of deleting existing code. Unused code, old code, mockups, things that were started and never finished, things that someone thought they needed and never did—I’m delighted to delete them all.</p></blockquote>
<p>Quoting from the latest PHP|Architect (August 2008) article, I found Jeff Moore&#8217;s writing insightful as well as helpful.  A strong contender for clean code, he suggests deleting stranded, dead, or depreciated codeblocks.  As far as his suggestion for version control, I would completely agree.  I maintained/wrote an entire project without version control (along with two other developers), and I sincerely hope that I never have to do that again.  It was a total disaster.  FTP overwrites, deleted code that had dependancies, and no way to roll back equalled extreme project management headaches.</p>
<p> </p>
<p>My Advice: <strong>Use Version Control. Period.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2008/09/web-design/project-management/feed/</wfw:commentRss>
		</item>
		<item>
		<title>We&#8217;ve Moved.</title>
		<link>http://scratchpad.farmsoftstudios.com/2008/09/web-design/weve-moved/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2008/09/web-design/weve-moved/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 04:35:06 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
		
		<category><![CDATA[FarmSoft Studios]]></category>

		<category><![CDATA[Web Design]]></category>

		<category><![CDATA[North Carolina]]></category>

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=51</guid>
		<description><![CDATA[Instead of serving your web design / programming needs in the rolling hills of Wisconsin, we&#8217;re now available in the Statesville, Mooresville, Charlotte, and greater Piedmont area.  Look us up if you get a chance!
]]></description>
			<content:encoded><![CDATA[<p>Instead of serving your web design / programming needs in the rolling hills of Wisconsin, we&#8217;re now available in the Statesville, Mooresville, Charlotte, and greater Piedmont area.  Look us up if you get a chance!</p>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2008/09/web-design/weve-moved/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Blocking a certain IP address with iptables</title>
		<link>http://scratchpad.farmsoftstudios.com/2008/08/linux/blocking-a-certain-ip-address-with-iptables/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2008/08/linux/blocking-a-certain-ip-address-with-iptables/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 14:50:02 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=50</guid>
		<description><![CDATA[To block an ip address from accessing your linux box, you can use the following iptables rule:
iptables -A INPUT -s 222.124.24.131 -j DROP
If you just need to block a certain port (i.e. port 22 for SSH), you would do it like so:
iptables -A INPUT -s 222.124.24.131 -p tcp --destination-port 22 -j DROP
]]></description>
			<content:encoded><![CDATA[<p>To block an ip address from accessing your linux box, you can use the following iptables rule:<br />
<code>iptables -A INPUT -s 222.124.24.131 -j DROP</code></p>
<p>If you just need to block a certain port (i.e. port 22 for SSH), you would do it like so:</p>
<p><code>iptables -A INPUT -s 222.124.24.131 -p tcp --destination-port 22 -j DROP</code></p>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2008/08/linux/blocking-a-certain-ip-address-with-iptables/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Change&#8230;</title>
		<link>http://scratchpad.farmsoftstudios.com/2008/08/uncategorized/change/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2008/08/uncategorized/change/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 04:00:16 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=49</guid>
		<description><![CDATA[Well, it certainly is not pretty yet, but my blog is now more integrated with my site than before.  I was using K2 as my theme, and I wanted it integrated more into my site&#8217;s look and feel.  One step at a time as I have a few moments here and there&#8230;.
]]></description>
			<content:encoded><![CDATA[<p>Well, it certainly is not pretty yet, but my blog is now more integrated with my site than before.  I was using K2 as my theme, and I wanted it integrated more into my site&#8217;s look and feel.  One step at a time as I have a few moments here and there&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2008/08/uncategorized/change/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
