<?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>TechTrouts.com &#187; servers</title>
	<atom:link href="http://techtrouts.com/topics/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtrouts.com</link>
	<description>Doin' the dev dance o/</description>
	<lastBuildDate>Thu, 23 Jul 2009 10:42:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Application deployment shell script using rsync</title>
		<link>http://techtrouts.com/application-deployment-shell-script-using-rsync/</link>
		<comments>http://techtrouts.com/application-deployment-shell-script-using-rsync/#comments</comments>
		<pubDate>Thu, 07 May 2009 22:14:07 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://techtrouts.com/application-deployment-shell-script-using-rsync/</guid>
		<description><![CDATA[Hi all, here is a simple deployment shell script (.sh) using rsync to deploy your local application to a productive location. You can download it here. Follow the README file for setup and usage. Feedback comments are always welcome :)]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>here is a simple deployment shell script (.sh) using rsync to deploy your local application to a productive location.</p>
<p>You can download it <a href="http://techtrouts.com/downloads/deploy_sh.zip" title="Application deployment shell script using rsync">here</a>.</p>
<p>Follow the README file for setup and usage.</p>
<p>Feedback comments are always welcome :)</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/application-deployment-shell-script-using-rsync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clear file contents on an unix command line</title>
		<link>http://techtrouts.com/clear-file-contents-on-a-unix-command-line/</link>
		<comments>http://techtrouts.com/clear-file-contents-on-a-unix-command-line/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 12:05:16 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[how-tos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://techtrouts.com/clear-file-contents-on-a-unix-command-line/</guid>
		<description><![CDATA[this one is pretty useful. in order to clear the contents of &#8220;file.ext&#8221;, just: $&#62;file.ext You&#8217;re actually just putting a null content on the file, but it&#8217;s a very effective way to quickly clear a file contents on unix, especially if you want to keep permissions, etc. Very useful for clearing error logs.]]></description>
			<content:encoded><![CDATA[<p>this one is pretty useful.<br />
in order to clear the contents of &#8220;file.ext&#8221;, just:</p>
<pre>$&gt;file.ext</pre>
<p>You&#8217;re actually just putting a null content on the file, but it&#8217;s a very effective way to quickly clear a file contents on unix, especially if you want to keep permissions, etc.</p>
<p>Very useful for clearing error logs.</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/clear-file-contents-on-a-unix-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>how to install yum on Red Hat Enterprise Linux 4</title>
		<link>http://techtrouts.com/how-to-install-yum-on-red-hat-enterprise-linux-4/</link>
		<comments>http://techtrouts.com/how-to-install-yum-on-red-hat-enterprise-linux-4/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 15:14:59 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[how-tos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://techtrouts.com/how-to-install-yum-on-red-hat-enterprise-linux-4/</guid>
		<description><![CDATA[This case applies to most Red Hat Enterprise Linux 4, from i386 to i686 machines, i&#8217;ve successfully used it on our Red Hat Enterprise Linux ES release 4 (Nahant Update 6): To use it for other systems / architectures, check the packages given at (check). 1. Get the main packages (check) http://dag.wieers.com/rpm/packages/yum/ $wget http://dag.wieers.com/rpm/packages/yum/yum-2.4.2-0.4.el4.rf.noarch.rpm (check) [...]]]></description>
			<content:encoded><![CDATA[<p>This case applies to most Red Hat Enterprise Linux 4, from i386 to i686 machines, i&#8217;ve successfully used it on our Red Hat Enterprise Linux ES release 4 (Nahant Update 6):<br />
To use it for other systems / architectures, check the packages given at (check).</p>
<p><strong>1. Get the main packages</strong></p>
<p>(check) <a href="http://dag.wieers.com/rpm/packages/yum/" title="yum rpm packages" rel="nofollow" target="_blank">http://dag.wieers.com/rpm/packages/yum/</a></p>
<pre>$wget http://dag.wieers.com/rpm/packages/yum/yum-2.4.2-0.4.el4.rf.noarch.rpm</pre>
<p>(check) <a href="http://rpmfind.net/linux/rpm2html/%3Cbr%3E%3C/a%3Esearch.php?query=libsqlite.so.0&amp;submit=Search+...&amp;system=&amp;arch=" title="libsqlite rpm packages" rel="nofollow" target="_blank">http://rpmfind.net/linux/rpm2html/<br />
search.php?query=libsqlite.so.0&amp;submit=Search+&#8230;&amp;system=&amp;arch=</a></p>
<pre>$wget ftp://fr2.rpmfind.net/linux/PLD/dists/ac/ready/i386/libsqlite-2.8.15-1.i386.rpm</pre>
<p>(check) <a href="http://rpmfind.net/linux/rpm2html/%3Cbr%3E%3C/a%3Esearch.php?query=python-elementtree&amp;submit=Search+...&amp;system=&amp;arch=" title="python-elementtree rpm packages" rel="nofollow" target="_blank">http://rpmfind.net/linux/rpm2html/<br />
search.php?query=python-elementtree&amp;submit=Search+&#8230;&amp;system=&amp;arch=</a></p>
<pre>$wget ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-elementtree-1.2.6-7.el4.rf.i386.rpm</pre>
<p>(check) <a href="http://rpmfind.net/linux/rpm2html/%3Cbr%3E%3C/a%3Esearch.php?query=python-sqlite&amp;submit=Search+...&amp;system=&amp;arch=" title="python-sqlite rpm packages" rel="nofollow" target="_blank">http://rpmfind.net/linux/rpm2html/<br />
search.php?query=python-sqlite&amp;submit=Search+&#8230;&amp;system=&amp;arch=</a></p>
<pre>$wget ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-sqlite-0.5.0-1.2.el4.rf.i386.rpm</pre>
<p>(check) <a href="http://rpmfind.net/linux/rpm2html/%3Cbr%3E%3C/a%3Esearch.php?query=urlgrabber&amp;submit=Search+...&amp;system=&amp;arch=" title="python-urlgrabber rpm packages" rel="nofollow" target="_blank">http://rpmfind.net/linux/rpm2html/<br />
search.php?query=urlgrabber&amp;submit=Search+&#8230;&amp;system=&amp;arch=</a></p>
<pre>$wget ftp://rpmfind.net/linux/dag/redhat/el4/en/x86_64/dag/RPMS/python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm</pre>
<p><strong>2. Install Rpm&#8217;s</strong></p>
<pre>$rpm -ivh libsqlite-2.8.15-1.i386.rpm
$rpm -ivh python-elementtree-1.2.6-7.el4.rf.i386.rpm
$rpm -ivh python-sqlite-0.5.0-1.2.el4.rf.i386.rpm
$rpm -ivh python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
$rpm -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm</pre>
<p><strong>3. Setup the Repository</strong><br />
(check) <a href="http://dag.wieers.com/rpm/packages/rpmforge-release/" title="rpmforge-release rpm packages" rel="nofollow" target="_blank">http://dag.wieers.com/rpm/packages/rpmforge-release/</a></p>
<pre>$wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
$rpm -ivh rpmforge-release-0.3.6-1.el4.rf.i386.rpm</pre>
<p><strong>4. Yum update all packages</strong></p>
<pre>$yum update</pre>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/how-to-install-yum-on-red-hat-enterprise-linux-4/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		</item>
		<item>
		<title>How to check Architecture from command line</title>
		<link>http://techtrouts.com/how-to-check-architecture-from-command-line/</link>
		<comments>http://techtrouts.com/how-to-check-architecture-from-command-line/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 14:40:02 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://techtrouts.com/how-to-check-architecture-from-command-line/</guid>
		<description><![CDATA[use: $uname -m]]></description>
			<content:encoded><![CDATA[<p>use:</p>
<pre>$uname -m</pre>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/how-to-check-architecture-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check if unix based machine is linux from command line</title>
		<link>http://techtrouts.com/how-to-check-if-machine-is-linux-from-command-line/</link>
		<comments>http://techtrouts.com/how-to-check-if-machine-is-linux-from-command-line/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 14:37:51 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://techtrouts.com/how-to-check-if-machine-is-linux-from-command-line/</guid>
		<description><![CDATA[use: uname -s Linux Systems return &#8220;Linux&#8221;. The Macs, for example, return &#8220;Darwin&#8221;.]]></description>
			<content:encoded><![CDATA[<p>use:</p>
<pre>uname -s</pre>
<p>Linux Systems return &#8220;Linux&#8221;.<br />
The Macs, for example, return &#8220;Darwin&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/how-to-check-if-machine-is-linux-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to check linux distro on a command line</title>
		<link>http://techtrouts.com/how-to-check-linux-distro-on-a-command-line/</link>
		<comments>http://techtrouts.com/how-to-check-linux-distro-on-a-command-line/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 14:29:39 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://techtrouts.com/how-to-check-linux-distro-on-a-command-line/</guid>
		<description><![CDATA[For what i know, there is no standard way to know for sure&#8230; but each Distro have their own version file you can cat somewhere. Try these: - &#8220;$cat /etc/redhat-release&#8221; will show you information for red hat based distros. - &#8220;$cat /etc/SuSE-release&#8221; for SUSE based distros. - &#8220;$cat /etc/mandrake-release&#8221; for mandrake distros. - &#8220;$cat /etc/debian_version&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>For what i know, there is no standard way to know for sure&#8230;<br />
but each Distro have their own version file you can cat somewhere.<br />
Try these:</p>
<p>- &#8220;$cat /etc/redhat-release&#8221; will show you information for red hat based distros.</p>
<p>- &#8220;$cat /etc/SuSE-release&#8221; for SUSE based distros.</p>
<p>- &#8220;$cat /etc/mandrake-release&#8221; for mandrake distros.</p>
<p>- &#8220;$cat /etc/debian_version&#8221; for debian based distros.</p>
<p>- &#8220;$cat /etc/UnitedLinux-release&#8221; might also return some more information.</p>
<p>I also found this useful tip at <em><a href="http://www.linuxhelp.net/forums/command_check_linux_distribution_t8759.html" target="_blank">linuxhelp.net</a>:<br />
You *might* get some clues by running &#8220;uname -r&#8221; which will show you kernel version &#8211; Some ditributors will rename the kernel to make it specific to their distro (eg, RHEL kernels have RHEL in their name)</em></p>
<p>Note:  As pointed out by Ricardo &#8220;$cat /etc/debian_version&#8221; won&#8217;t return the distro itself, but the version of the distro. Sorry :/</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/how-to-check-linux-distro-on-a-command-line/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to check Linux version from command line</title>
		<link>http://techtrouts.com/how-to-check-linux-version-from-command-line/</link>
		<comments>http://techtrouts.com/how-to-check-linux-version-from-command-line/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 13:42:11 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://techtrouts.com/how-to-check-linux-version-from-command-line/</guid>
		<description><![CDATA[To check your linux version from command line: $cat /proc/version Go to How to check Linux Distro from command line for more information.]]></description>
			<content:encoded><![CDATA[<p>To check your linux version from command line:</p>
<pre>
$cat /proc/version
</pre>
<p>Go to <a href="http://techtrouts.com/how-to-check-linux-distro-on-a-command-line/" title="How to check Linux Distro from command line">How to check Linux Distro from command line</a> for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/how-to-check-linux-version-from-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL 5 Storage Engines: MyISAM, MRG_MyISAM and InnoDB</title>
		<link>http://techtrouts.com/mysql-5-storage-engines-myisam-mrg_myisam-and-innodb/</link>
		<comments>http://techtrouts.com/mysql-5-storage-engines-myisam-mrg_myisam-and-innodb/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 17:32:21 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[how-tos]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://techtrouts.com/mysql-5-storage-engines-myisam-mrg_myisam-and-innodb/</guid>
		<description><![CDATA[I&#8217;ve been around choosing the appropriate Storage Engine for fallforward&#8217;s development, and so i&#8217;m posting some tips on Storage Engines for MySQL 5. Storage engines differ essencially in how they organize the data, indexes, caching, etc. The pratical results are different possibilities in data organization and restrictions (foreign keys, constraints, triggers (on delete, on update), [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been around choosing the appropriate Storage Engine for fallforward&#8217;s development, and so i&#8217;m posting some tips on Storage Engines for MySQL 5.</p>
<p>Storage engines differ essencially in how they organize the data, indexes, caching, etc.<br />
The pratical results are different possibilities in data organization and restrictions (foreign keys, constraints, triggers (on delete, on update), etc) as well as different performance capabilities.</p>
<h4>Technical Differences: </h4>
<p>MyISAM is designed to be a simple and effective storage engine, ideal for small websites, blogs, etc. Doesn&#8217;t require much technical knowledge and get&#8217;s the work done. It also features full-text index, allowing you to take advantage of the very useful &#8220;MATCH col AGAINT(&#8216;needle&#8217;)&#8221; text search clause.</p>
<p>MRG_MyISAM is treated as MyISAM but can be &#8220;shared&#8221; among different databases &#8211; very useful for main tables in multiple-database applications, as long as your working on the same MySQL server.</p>
<p>InnoDB is designed to be more of a storage engine for applications. It features foreign keys, triggers, etc &#8211; essential for multi-million rows and organizational data.</p>
<h4>Performance:</h4>
<p>A few years back MyISAM would kick ass on SELECT clauses, whereas InnoDB was usually better for heavy INSERT / UPDATE and DELETE clauses.<br />
These days InnoDB can be even faster than MyISAM for SELECT clauses.</p>
<p>Though MyISAM can be much faster for a simple &#8220;SELECT count(*) from table&#8221; query as it caches the amount of rows on a table, they work more or less the same when you use the &#8220;where some_col=&#8217;some_val&#8217;&#8221; clause. On the other hand text searching on full-text index kicks ass over any &#8220;LIKE &#8216;%needle%&#8217; &#8221; clause.</p>
<p>MRG_MyISAM is pretty much like MyISAM, though it can usually get a little bit slower due to multiple database usage and locking.</p>
<p>All in all InnoDB has come a long way these past few years, and has become my first choice for applications, though i still use separate MyISAM tables for full-text searching on text fields.</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/mysql-5-storage-engines-myisam-mrg_myisam-and-innodb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>flushdns on mac osx leopard 10.5.2</title>
		<link>http://techtrouts.com/flushdns-on-mac-osx-leopard-1052/</link>
		<comments>http://techtrouts.com/flushdns-on-mac-osx-leopard-1052/#comments</comments>
		<pubDate>Tue, 27 May 2008 16:14:33 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[how-tos]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://techtrouts.com/flushdns-on-mac-osx-leopard-1052/</guid>
		<description><![CDATA[The windows &#8220;ipconfig /flushdns&#8221; command for mac os: In Mac OSX versions 10.5.2 and later: $ dscacheutil -flushcache In Mac OSX versions 10.5.1 and before: $ lookupd -flushcache]]></description>
			<content:encoded><![CDATA[<p>The windows &#8220;<em>ipconfig /flushdns</em>&#8221; command for mac os:</p>
<p>In Mac OSX versions 10.5.2 and later:<br />
<strong>$ dscacheutil -flushcache</strong></p>
<p>In Mac OSX versions 10.5.1 and before:<br />
<strong>$ lookupd -flushcache</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/flushdns-on-mac-osx-leopard-1052/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mac &#8211; mysql does not connect on localhost but connect&#8217;s on 127.0.0.1</title>
		<link>http://techtrouts.com/mac-mysql-does-not-connect-on-localhost-but-connects-on-127001/</link>
		<comments>http://techtrouts.com/mac-mysql-does-not-connect-on-localhost-but-connects-on-127001/#comments</comments>
		<pubDate>Mon, 26 May 2008 11:23:56 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[how-tos]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://techtrouts.com/mac-mysql-does-not-connect-on-localhost-but-connects-on-127001/</guid>
		<description><![CDATA[Hi, this issue came to me after i got &#8220;Can&#8217;t connect to local MySQL server through socket &#8216;/var/mysql/mysql.sock&#8217;&#8221; on a mysql connection on php on a fresh installed mac &#8211; php connect&#8217;s correctly to 127.0.0.1 , but does not connect to localhost . On a mac the default mysql socket is &#8216;/private/tmp/mysql.sock&#8216; and not &#8216;/var/mysql/mysql.sock&#8217;, [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>this issue came to me after i got &#8220;<em>Can&#8217;t connect to local MySQL server through socket &#8216;/var/mysql/mysql.sock&#8217;</em>&#8221; on a mysql connection on php on a fresh installed mac &#8211; php connect&#8217;s correctly to <em>127.0.0.1</em> , but does not connect to <em>localhost</em> .</p>
<p>On a mac the default mysql socket is  &#8216;<em>/private/tmp/mysql.sock</em>&#8216; and not <em>&#8216;/var/mysql/mysql.sock&#8217;</em>, you can confirm it by using <strong>$ locate mysql.sock</strong> on a Terminal.</p>
<p>So basically you have to change the php default connection socket to mysql to &#8216;<em>/private/tmp/mysql.sock</em>&#8216; . To do this you have to edit your php.ini &#8211; probably located at &#8216;<em>/private/etc/php.ini</em>&#8216; &#8211; via:</p>
<ul>
<li><strong>$ sudo nano /private/etc/php.ini</strong></li>
<li><strong>ctrl+w</strong> (where is) &#8220;<em>mysql.default_socket</em>&#8220;</li>
<li>alter to &#8220;mysql.default_socket = /private/tmp/mysql.sock&#8221;</li>
<li><strong>crtl+x</strong> followed by <strong>y</strong> and <strong>enter</strong> to save php.ini</li>
<li><strong>$ sudo httpd -k restart</strong> to restart Apache 2</li>
</ul>
<p>Retry connecting to mysql localhost on php &#8211; should be working :)</p>
<p>Update:<br />
if you use mysqli you also must set &#8220;mysqli.default_socket  = /private/tmp/mysql.sock&#8221; on php.ini;</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/mac-mysql-does-not-connect-on-localhost-but-connects-on-127001/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
