<?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>GimmeSoda &#187; Linux Command Line</title>
	<atom:link href="http://www.gimmesoda.com/category/programming/linux-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gimmesoda.com</link>
	<description>The Blog of a Programmer</description>
	<lastBuildDate>Sun, 29 Jan 2012 10:26:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Another Magento Installer Update!</title>
		<link>http://www.gimmesoda.com/another-magento-installer-update/</link>
		<comments>http://www.gimmesoda.com/another-magento-installer-update/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 02:21:26 +0000</pubDate>
		<dc:creator>JuanJose</dc:creator>
				<category><![CDATA[Linux Command Line]]></category>
		<category><![CDATA[Magento Commerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.gimmesoda.com/?p=576</guid>
		<description><![CDATA[It took me long enough but I finally updated the Magento installer to handle the newest stable version of Magento. Check out the updated post here.
Magento 1.5.0.1 Installer
]]></description>
			<content:encoded><![CDATA[<p>It took me long enough but I finally updated the Magento installer to handle the newest stable version of Magento. Check out the updated post here.</p>
<p><a href="http://www.gimmesoda.com/installing-magento-commerce-on-dreamhost/">Magento 1.5.0.1 Installer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gimmesoda.com/another-magento-installer-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Setup of PEAR on a DreamHost Account</title>
		<link>http://www.gimmesoda.com/simple-setup-of-pear-on-a-dreamhost-account/</link>
		<comments>http://www.gimmesoda.com/simple-setup-of-pear-on-a-dreamhost-account/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 07:17:08 +0000</pubDate>
		<dc:creator>JuanJose</dc:creator>
				<category><![CDATA[DreamHost]]></category>
		<category><![CDATA[Linux Command Line]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Randomness]]></category>

		<guid isPermaLink="false">http://www.gimmesoda.com/?p=565</guid>
		<description><![CDATA[While DH installs a basic set of PEAR modules it&#8217;s a common situation need others, when that situation comes up you&#8217;ll often be referred to the PEAR article on the DH wiki. I&#8217;ve taken the instructions found there and created a shell script you can download and execute, it&#8217;ll do the  [...]]]></description>
			<content:encoded><![CDATA[<p>While DH installs a basic set of PEAR modules it&#8217;s a common situation need others, when that situation comes up you&#8217;ll often be referred to the <a href="http://wiki.dreamhost.com/PEAR">PEAR article</a> on the <a href="http://wiki.dreamhost.com">DH wiki</a>. I&#8217;ve taken the instructions found there and created a shell script you can download and execute, it&#8217;ll do the following:</p>
<ol>
<li>Creates a .pearrc file in your home directory.</li>
<li>Sets the download_dir, cache_dir, and temp_dir to folders within your /home/user/pear directory</li>
<li>Sets the PHP_PEAR_PHP_BIN variables by adding &#8220;export PHP_PEAR_PHP_BIN=/usr/local/php5/bin/php&#8221; to your .bash_profile</li>
<li>Modifies your PATH variable by adding &#8220;export PATH=/home/user/pear:/usr/local/php5/bin:$PATH&#8221; to your .bash_profile. This change also sets the PHP5 binary as the default for your shell.</li>
</ol>
<p>Next time you call pear you&#8217;ll be using your custom settings and when you attempt to install any modules it will be done within your home directory. Now in order to use these PEAR modules in your application you will need to add the following to your app:</p>
<pre>$pear_user_config = '/home/user/.pearrc';
set_include_path('.' . PATH_SEPERATOR . '/home/user/pear/php' . PATH_SEPERATOR . get_include_path());</pre>
<p>Make sure to update &#8220;user&#8221; in the path to the actual user you are using and you&#8217;ll be set.</p>
<h2>Download and Execute the Script</h2>
<p>Just execute the following in a shell session:</p>
<pre>wget http://files.gimmesoda.com/dreamhost/install_pear.sh; chmod 0744 install_pear.sh; ./install_pear.sh;</pre>
<p>You can download and review the shell script from <a href="http://files.gimmesoda.com/dreamhost/install_pear.sh">here</a>, just open it up in a text editor of your choice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gimmesoda.com/simple-setup-of-pear-on-a-dreamhost-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-to Display a Debian Server&#8217;s RSA Fingerprint</title>
		<link>http://www.gimmesoda.com/how-to-display-a-debian-servers-rsa-fingerprint/</link>
		<comments>http://www.gimmesoda.com/how-to-display-a-debian-servers-rsa-fingerprint/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 06:53:38 +0000</pubDate>
		<dc:creator>JuanJose</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Linux Command Line]]></category>

		<guid isPermaLink="false">http://www.gimmesoda.com/?p=504</guid>
		<description><![CDATA[Need to verify a rsa host fingerprint for a debian server? Have someone connect and run the following command:
ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
]]></description>
			<content:encoded><![CDATA[<p>Need to verify a rsa host fingerprint for a debian server? Have someone connect and run the following command:</p>
<p>ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gimmesoda.com/how-to-display-a-debian-servers-rsa-fingerprint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>-bash: /bin/rm: Argument list too long (AKA: Too Many Files)</title>
		<link>http://www.gimmesoda.com/bash-binrm-argument-list-too-long-aka-too-many-files/</link>
		<comments>http://www.gimmesoda.com/bash-binrm-argument-list-too-long-aka-too-many-files/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 21:15:17 +0000</pubDate>
		<dc:creator>JuanJose</dc:creator>
				<category><![CDATA[Linux Command Line]]></category>

		<guid isPermaLink="false">http://www.gimmesoda.com/2008/02/21/bash-binrm-argument-list-too-long-aka-too-many-files/</guid>
		<description><![CDATA[find /path/to/directory/ -exec rm {} \;
So apparently that command is magical! Alright, so it&#8217;s not magical but it was able to delete over 200,000 spam messages from a users Maildir/ when the rm command failed. &#8220;-bash: /bin/rm: Argument list too long&#8221;, it complained! So asking around I found out  [...]]]></description>
			<content:encoded><![CDATA[<p>find /path/to/directory/ -exec rm {} \;</p>
<p>So apparently that command is magical! Alright, so it&#8217;s not magical but it was able to delete over 200,000 spam messages from a users Maildir/ when the rm command failed. &#8220;-bash: /bin/rm: Argument list too long&#8221;, it complained! So asking around I found out about that beauty of a command and how rm can only take a certain amount of arguments before failing.</p>
<p>Nice to know, as my journey of learning more about Debian Linux (and Linux in general) continues.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gimmesoda.com/bash-binrm-argument-list-too-long-aka-too-many-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Resizing Using PHP and the GD library</title>
		<link>http://www.gimmesoda.com/image-resizing-using-php-and-the-gd-library/</link>
		<comments>http://www.gimmesoda.com/image-resizing-using-php-and-the-gd-library/#comments</comments>
		<pubDate>Sun, 26 Nov 2006 10:48:00 +0000</pubDate>
		<dc:creator>JuanJose</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux Command Line]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.gimmesoda.com/?p=15</guid>
		<description><![CDATA[I&#8217;m developing a new system core, can&#8217;t really say what it&#8217;s about but I&#8217;m having some fun doing it. Coding it is interesting, I&#8217;m getting to pull out and update some of my php code. Below is some code for image resizing, I use config files to set some default information like directories to save  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m developing a new system core, can&#8217;t really say what it&#8217;s about but I&#8217;m having some fun doing it. Coding it is interesting, I&#8217;m getting to pull out and update some of my php code. Below is some code for image resizing, I use config files to set some default information like directories to save to and max width/height requirements. Also the entire system uses language files so I don&#8217;t output the text directly either, except for what I&#8217;m going to remove which is the uploaded file information.</p>
<p>Resize JPG images using the GD library and PHP.</p>
<blockquote><p>function get_image_information($key) {<br /> global $thumbnail_dest, $image_dest, $thumb_max_height, $thumb_max_width, $image_max_height, $image_max_width;<br /> $filename = $_FILES[$key]["name"];<br /> $file_type = $_FILES[$key]["type"];<br /> $file_tmpname = $_FILES[$key]["tmp_name"];<br /> $file_error = $_FILES[$key]["error"];<br /> $file_size = $_FILES[$key]["size"];</p>
<p> if($file_error == 0 &&amp; $file_size > 0) {<br />  if($file_type == &#8220;image/pjpeg&#8221;  $file_type == &#8220;image/jpeg&#8221;  $file_type == &#8220;image/jpg&#8221;) {<br />   $image_name = md5(time() . rand(1001,10000)) . &#8220;.jpg&#8221;;<br />   $thumb_dest = $thumbnail_dest . $image_name;<br />   $image_dest = $image_dest . $image_name;<br />   create_image($file_tmpname, $thumb_max_height, $thumb_max_width, $thumb_dest);<br />   create_image($file_tmpname, $image_max_height, $image_max_width, $image_dest);<br />   return &#8220;thumbs/&#8221; . $image_name;<br />  } else {<br />   $success .= file_upload_success_1 . $filename . file_upload_success_2 . &#8220;<br />&#8220;;<br />   $success .= &#8220;We can only accept jpg uploads. Upload Failed.&#8221;;<br />   return $success;<br />  }<br /> } else {<br />  if($file_error == 1) {<br />   echo $file_upload_fail_1;<br />  } elseif($file_error == 2) {<br />   echo $file_upload_fail_2;<br />  } elseif($file_error == 3) {<br />   echo $file_upload_fail_3;<br />  } elseif($file_error == 4) {<br />   echo $file_upload_fail_4;<br />  } elseif($file_error == 6) {<br />   echo $file_upload_fail_6;<br />  }<br />  return false;<br /> }<br />}<br />function create_image($image, $max_width, $max_height, $dest) {<br /> $image = imagecreatefromjpeg($image);<br /> if ($image === false) {<br />  die (&#8216;Unable to open image&#8217;);<br /> }</p>
<p> $width = imagesx($image);<br /> $height = imagesy($image);</p>
<p> if($width < $max_width &#038;&#038; $height < $max_height) {<br />  $new_width = $width;<br />  $new_height = $height;<br /> } else {<br />  $scale = min($max_width/$width, $max_height/$height);<br />  $new_width = floor($scale * $width);<br />  $new_height = floor($scale * $height);<br /> }</p>
<p> $image_resized = imagecreatetruecolor($new_width, $new_height);<br /> imagecopyresampled($image_resized, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);<br /> imagejpeg($image_resized, $dest, 90);<br />}</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gimmesoda.com/image-resizing-using-php-and-the-gd-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.gimmesoda.com @ 2012-02-10 09:20:52 -->
