<?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>Green Dot Software</title>
	<atom:link href="http://greendotsoftware.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://greendotsoftware.com</link>
	<description>Custom Software Development</description>
	<lastBuildDate>Tue, 14 Feb 2012 18:14:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Magento: Get a rough total for all rows in all tables in mysql</title>
		<link>http://greendotsoftware.com/magento/magento-get-a-rough-total-for-all-rows-in-all-tables-in-mysql/</link>
		<comments>http://greendotsoftware.com/magento/magento-get-a-rough-total-for-all-rows-in-all-tables-in-mysql/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 18:12:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=667</guid>
		<description><![CDATA[$query = &#8220;SELECT table_rows FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = &#8216;database_name_goes_here&#8217;&#8221;; $result = Mage::getSingleton(&#8216;core/resource&#8217;) -&#62;getConnection(&#8216;core_read&#8217;)-&#62;fetchAll($query); $total = 0; for( $i = 0; $i { $total += $result[$i]['table_rows']; } echo &#8216;Grand Total = &#8216; . $total;]]></description>
			<content:encoded><![CDATA[<p>$query = &#8220;SELECT table_rows FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = &#8216;database_name_goes_here&#8217;&#8221;;</p>
<p>$result = Mage::getSingleton(&#8216;core/resource&#8217;) -&gt;getConnection(&#8216;core_read&#8217;)-&gt;fetchAll($query);<br />
$total = 0;</p>
<p>for( $i = 0; $i {<br />
$total += $result[$i]['table_rows'];</p>
<p>}<br />
echo &#8216;Grand Total = &#8216; . $total;</p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/magento/magento-get-a-rough-total-for-all-rows-in-all-tables-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redhat &#8211; Sort log file by date</title>
		<link>http://greendotsoftware.com/command-line-2/redhat-sort-log-file-by-date/</link>
		<comments>http://greendotsoftware.com/command-line-2/redhat-sort-log-file-by-date/#comments</comments>
		<pubDate>Sun, 12 Feb 2012 02:49:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[magento log]]></category>
		<category><![CDATA[sort logs]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=663</guid>
		<description><![CDATA[$ ls -l -r &#8211;sort=time]]></description>
			<content:encoded><![CDATA[<p>$ ls -l -r &#8211;sort=time</p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/command-line-2/redhat-sort-log-file-by-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>magento and ajax</title>
		<link>http://greendotsoftware.com/magento/magento-and-ajax/</link>
		<comments>http://greendotsoftware.com/magento/magento-and-ajax/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 21:35:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[ajax]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=659</guid>
		<description><![CDATA[http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-3-magento-controller-dispatch Good tutorial]]></description>
			<content:encoded><![CDATA[<p>http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-3-magento-controller-dispatch</p>
<p>Good tutorial</p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/magento/magento-and-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; get shipping amount for a quote</title>
		<link>http://greendotsoftware.com/magento/magento-get-shipping-amount-for-a-quote/</link>
		<comments>http://greendotsoftware.com/magento/magento-get-shipping-amount-for-a-quote/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 15:42:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[shipping]]></category>
		<category><![CDATA[shipping total]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=652</guid>
		<description><![CDATA[If your on the checkout/cart page, you can get the shipping totals: $shipping_total = $this-&#62;getQuote()-&#62;getShippingAddress()-&#62;getShippingAmount();]]></description>
			<content:encoded><![CDATA[<p>If your on the checkout/cart page, you can get the shipping totals:<br />
$shipping_total = $this-&gt;getQuote()-&gt;getShippingAddress()-&gt;getShippingAmount();</p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/magento/magento-get-shipping-amount-for-a-quote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change ssh login folder</title>
		<link>http://greendotsoftware.com/command-line-2/change-ssh-login-folder/</link>
		<comments>http://greendotsoftware.com/command-line-2/change-ssh-login-folder/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 17:04:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=646</guid>
		<description><![CDATA[After you ssh into server: $ vi /etc/passwd You should see something similar to bloom:x:502:503::/var/www/vhosts:/bin/bash devuser:x:48:505::/home/devuser:/bin/bash bloomcom:x:503:506::/var/www/vhosts:/bin/bash Just change the part where is says: /var/www/vhosts to whatever folder you want]]></description>
			<content:encoded><![CDATA[<p>After you ssh into server:<br />
$ vi /etc/passwd</p>
<p>You should see something similar to<br />
bloom:x:502:503::/var/www/vhosts:/bin/bash<br />
devuser:x:48:505::/home/devuser:/bin/bash<br />
bloomcom:x:503:506::/var/www/vhosts:/bin/bash</p>
<p>Just change the part where is says: /var/www/vhosts<br />
to whatever folder you want</p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/command-line-2/change-ssh-login-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the current size of your hard drives</title>
		<link>http://greendotsoftware.com/command-line-2/get-the-current-size-of-your-hard-drives/</link>
		<comments>http://greendotsoftware.com/command-line-2/get-the-current-size-of-your-hard-drives/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 23:50:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[hard drive size]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=648</guid>
		<description><![CDATA[$ df -h ( hit enter ) Will return something similar to: Filesystem Size Used Avail Use% Mounted on /dev/sda5 128G 80G 47G 64% / /dev/sda2 2.0G 264M 1.6G 15% /tmp /dev/sda1 99M 23M 71M 25% /boot tmpfs 16G 0 16G 0% /dev/shm]]></description>
			<content:encoded><![CDATA[<pre>$ df -h ( hit enter )</pre>
<p>Will return something similar to:</p>
<pre>Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             128G   80G   47G  64% /
/dev/sda2             2.0G  264M  1.6G  15% /tmp
/dev/sda1              99M   23M   71M  25% /boot
tmpfs                  16G     0   16G   0% /dev/shm</pre>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/command-line-2/get-the-current-size-of-your-hard-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the 50 largest files from your server</title>
		<link>http://greendotsoftware.com/command-line-2/get-the-50-largest-files-from-your-server/</link>
		<comments>http://greendotsoftware.com/command-line-2/get-the-50-largest-files-from-your-server/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 23:47:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=634</guid>
		<description><![CDATA[After logging in to your server via ssh: $ find / -type f -printf "%s %h/%f\n" &#124; sort -rn -k1 &#124; head -n 50 &#124; awk '{ print $1/1048576 "MB" " " $2}' ( hit enter )]]></description>
			<content:encoded><![CDATA[<pre>After logging in to your server via ssh:
 $ find / -type f -printf "%s %h/%f\n" | sort -rn -k1 | head -n 50 | awk '{ print $1/1048576 "MB" " " $2}' ( hit enter )</pre>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/command-line-2/get-the-50-largest-files-from-your-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache &#8211; current open processes</title>
		<link>http://greendotsoftware.com/command-line-2/apache-current-open-processes/</link>
		<comments>http://greendotsoftware.com/command-line-2/apache-current-open-processes/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 21:33:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache processes]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=642</guid>
		<description><![CDATA[Using terminal $ ps ax &#124; grep httpd &#124; wc -l]]></description>
			<content:encoded><![CDATA[<p>Using terminal</p>
<pre>$ ps ax | grep httpd | wc -l</pre>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/command-line-2/apache-current-open-processes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Install: Mysql Error – SQLSTATE[HY000] [2002]</title>
		<link>http://greendotsoftware.com/php/magento-install-mysql-error-%e2%80%93-sqlstatehy000-2002/</link>
		<comments>http://greendotsoftware.com/php/magento-install-mysql-error-%e2%80%93-sqlstatehy000-2002/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 17:30:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[mysql error]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=639</guid>
		<description><![CDATA[Edit PHP config file: /etc/php.ini $ sudo nano /etc/php.ini Do a search for pdo_mysql_default In nano, type &#60;control button&#62; and press W type in pdo_mysql_default and hit enter Change to  pdo_mysql.default_socket=/tmp/mysql.sock Restart apache: $ sudo apachectl restart]]></description>
			<content:encoded><![CDATA[<p>Edit PHP config file: /etc/php.ini</p>
<pre>$ sudo nano /etc/php.ini</pre>
<p>Do a search for pdo_mysql_default</p>
<p>In nano, type &lt;control button&gt; and press W</p>
<p>type in pdo_mysql_default and hit enter</p>
<p>Change to</p>
<pre> pdo_mysql.default_socket=/tmp/mysql.sock</pre>
<p>Restart apache:</p>
<pre>$ sudo apachectl restart</pre>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/php/magento-install-mysql-error-%e2%80%93-sqlstatehy000-2002/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing mcrypt into Mac OSX 10.7</title>
		<link>http://greendotsoftware.com/command-line-2/installing-mcrypt-into-mac-osx-10-7/</link>
		<comments>http://greendotsoftware.com/command-line-2/installing-mcrypt-into-mac-osx-10-7/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 13:35:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Mac OSX 10.7]]></category>
		<category><![CDATA[mcrypt]]></category>
		<category><![CDATA[php.ini]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=628</guid>
		<description><![CDATA[Taken from http://craigwaterman.com/2011/07/21/adding-mcrypt-to-php-on-os-x-10-7-lion/ but cleaned up a few potential gotchas: This is a guide for those who need to install (or re-install) mcrypt under PHP in OS X 10.7 (Lion). You’ll need the following: PHP Source Code—Lion seems to ship with 5.3.6, you can get that here. You should double-check your version with phpinfo() just in case. libmcrypt 2.5.8 [...]]]></description>
			<content:encoded><![CDATA[<p>Taken from http://craigwaterman.com/2011/07/21/adding-mcrypt-to-php-on-os-x-10-7-lion/ but cleaned up a few potential gotchas:</p>
<p>This is a guide for those who need to install (or re-install) mcrypt under PHP in OS X 10.7 (Lion).</p>
<p>You’ll need the following:</p>
<ul>
<li>PHP Source Code—Lion seems to ship with 5.3.6, you can get that <a href="http://us.php.net/get/php-5.3.6.tar.gz/from/a/mirror" target="_blank">here</a>. You should double-check your version with <code>phpinfo()</code> just in case.</li>
<li>libmcrypt 2.5.8 (yes, it really is from 2007). that’s <a href="http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/" target="_blank">here</a>. I grabbed the bz2 version.</li>
<li>Xcode 4.1 – supported on Lion; it’s available <a href="http://itunes.apple.com/us/app/xcode/id448457090?mt=12" target="_blank">on the Mac App Store</a>. You’ll still need an Apple Developer account to download the post-install updates.</li>
<li>A place to uncompress and compile everything, move your php and libmcrypt downloads here.</li>
<ul>
<li>I usually use a directory in under my home named Source. In this case, I’m putting everything in a Lion specific folder: <code>/Users/sushi/Source/lion/</code></li>
</ul>
</ul>
<div>Now we need to uncompress our sources:</div>
<pre>$ cd ~/Source/lion ( hit enter )
$ tar xvfj libmcrypt-2.5.8.tar.bz2 ( hit enter )
$ tar xvfz php-5.3.6.tar.gz ( hit enter )</pre>
<p>Let’s configure libmcrypt for installation:</p>
<pre>$ cd libmcrypt-2.5.8 ( hit enter )
$ MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O2 -fno-common -arch i386 -arch x86_64' \
LDFLAGS='-O2 -arch i386 -arch x86_64' \
CXXFLAGS='-O2 -fno-common -arch i386 -arch x86_64' \
./configure --disable-dependency-tracking ( hit enter )</pre>
<p>If you get some errors, try removing a few items:</p>
<pre>$ MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O2 -fno-common' \
LDFLAGS='-O2' \
CXXFLAGS='-O2 -fno-common' \
./configure --disable-dependency-tracking ( hit enter )</pre>
<p>Now let’s build and install libmcrypt itself.</p>
<p>&nbsp;</p>
<pre>$ make ( hit enter )
$ sudo make install ( hit enter )</pre>
<p>You can run make -j8 if you’re on a Quad-Core i7 and are curious how much it speeds up compilation, it makes <strong>no</strong> difference for installing mcrypt.</p>
<p>With libmcrypt ready to use, we need to compile the php extension for it.</p>
<pre>$ cd ~/Source/lion/php-5.3.6/ext/mcrypt ( hit enter )
$ /usr/bin/phpize ( hit enter )
MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O2 -fno-common -arch i386 -arch x86_64' \
LDFLAGS='-O2 -arch i386 -arch x86_64' \
CXXFLAGS='-O2 -fno-common -arch i386 -arch x86_64' \
./configure --with-php-config=/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config ( hit enter )</pre>
<p>( You might have to hit enter again to make it execute )</p>
<p>If you get some errors try removing a few things like we did above:</p>
<pre>MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS='-O2 -fno-common' \
LDFLAGS='-O2' \
CXXFLAGS='-O2 -fno-common' \
./configure --with-php-config=/Developer/SDKs/MacOSX10.7.sdk/usr/bin/php-config ( hit enter )</pre>
<p>$ make ( hit enter ) $ sudo make install ( hit enter )</p>
<p>Everything should be ready to hook up at this point, we’ll need to update /etc/php.ini to tell php to load the extension.</p>
<p>Verify that /etc/php.ini exists. If you’ve never worked with it before, or have just upgraded to Lion, you’ll need to copy php.ini.default to php.ini with:</p>
<pre># skip this step if /etc/php.ini already exists.
$ sudo cp /etc/php.ini.default /etc/php.ini ( hit enter )</pre>
<p>Update php.ini and tell php to load our newly compiled mcrypt.so</p>
<pre>$ sudo nano /etc/php.ini ( hit enter )</pre>
<p>Add the following to the end of the file, then save and exit:</p>
<pre>extension=mcrypt.so</pre>
<p>Now restart Apache:</p>
<pre>$ sudo apachectl graceful ( hit enter )</pre>
<pre>OR</pre>
<pre>$ sudo apachectl stop ( hit enter )</pre>
<pre>THEN</pre>
<pre>$ sudo apachectl start ( hit enter )</pre>
<p>OR using Macs typical user interface:</p>
<ul>
<li>Open System Preferences</li>
<li>Select Sharing</li>
<li>Uncheck and re-check “Web Sharing”—this restarts the web server.</li>
<ul>
<li>For some reason my Web Sharing was unchecked even though Apache was already running, if this happens to you, just “check/uncheck/check” to make sure it’s actually restarted.</li>
</ul>
</ul>
<p>Verify in your phpinfo() that mcrypt is really there, it should look like this:</p>
<p><img class="aligncenter size-medium wp-image-636" title="mcrypt-sample" src="http://greendotsoftware.com/wp-content/uploads/2012/01/mcrypt-sample-300x160.png" alt="" width="300" height="160" />And that should be it</p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/command-line-2/installing-mcrypt-into-mac-osx-10-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

