<?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>Fri, 11 May 2012 16:19:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>PHP Storm searching for a string</title>
		<link>http://greendotsoftware.com/php/php-storm-searching-for-a-string/</link>
		<comments>http://greendotsoftware.com/php/php-storm-searching-for-a-string/#comments</comments>
		<pubDate>Fri, 11 May 2012 16:18:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[php storm]]></category>
		<category><![CDATA[PHPStorm]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=705</guid>
		<description><![CDATA[If you use PHP Storm, then this will help you find something in the code such as short tags for PHP. We had an issue that some of our server environments did not have php short tags enabled. We needed to get rid of them! So, what you do is open up PHP Storm..then (mac [...]]]></description>
			<content:encoded><![CDATA[<p>If you use PHP Storm, then this will help you find something in the code such as short tags for PHP.<br />
We had an issue that some of our server environments did not have php short tags enabled. We needed to get rid of them!<br />
So, what you do is open up PHP Storm..then (mac version ) and hold down control, and hold down shift, then press F and in the Options check the Regular expression box. Then in the Text to Find enter:</p>
<pre>&lt;\?[^(php|xml)]</pre>
<p>Kudos to Brian for this tip!</p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/php/php-storm-searching-for-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Customer objects in Magento</title>
		<link>http://greendotsoftware.com/magento/simple-customer-objects-in-magento/</link>
		<comments>http://greendotsoftware.com/magento/simple-customer-objects-in-magento/#comments</comments>
		<pubDate>Mon, 07 May 2012 01:58:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[customer object]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=703</guid>
		<description><![CDATA[Have you ever just needed the customers company name or first name, or some custom customer attribute? Well, I am tired of loading the entire customer object for just 2 or 3 things. I have 2 custom customer attributes that I need, companyname and companywebsite This would work for regular things like first name and [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever just needed the customers company name or first name, or some custom customer attribute?</p>
<p>Well, I am tired of loading the entire customer object for just 2 or 3 things.</p>
<p>I have 2 custom customer attributes that I need, companyname and companywebsite</p>
<p>This would work for regular things like first name and last name as well!</p>
<p>Here is how:</p>
<h3>Version 1:</h3>
<pre>// Get the customer data and set it on the object as companyname
 $customer = Mage::getModel('customer/customer')
 -&gt;getCollection()
 -&gt;addFieldToFilter('entity_id', array('eq' =&gt; $customer_id))
 -&gt;addAttributeToSelect('companyname')
 -&gt;addAttributeToSelect('companywebsite')
 -&gt;getItems();</pre>
<pre>$company_name = $customer[$customer_id]-&gt;getData('companyname');
$company_website = $customer[$customer_id]-&gt;getData('companywebsite');</pre>
<h3>Version #2 is slightly more easy to use</h3>
<pre>// Get the customer data and set it on the object as companyname
 $customer = Mage::getModel('customer/customer')
 -&gt;getCollection()
 -&gt;addFieldToFilter('entity_id', array('eq' =&gt; $customer_id))
 -&gt;addAttributeToSelect('companyname')
 -&gt;addAttributeToSelect('companywebsite')
 -&gt;getLastItem();</pre>
<pre>$company_name = $customer-&gt;getData('companyname');
$company_website = $customer-&gt;getData('companywebsite');</pre>
<p>As you can see, version 1 needs to go through the array before you can have access to the method getData.</p>
<p>I would recommend version 2 as it stays with the typical way of doing things ( aka the magento way ).</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/magento/simple-customer-objects-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; how to decode the referer part of a URL</title>
		<link>http://greendotsoftware.com/magento/magento-how-to-decode-the-referer-part-of-a-url/</link>
		<comments>http://greendotsoftware.com/magento/magento-how-to-decode-the-referer-part-of-a-url/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 18:54:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[decode URL]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=687</guid>
		<description><![CDATA[If you have ever wondered how to figure out what that long string of letters and numbers are in a magento URL, here is how to do it. Lets say that our URL is: $string = 'www.whatever.com/customer/account/login/referer/aHR0cDovL2xvY2FsLmJsb29tMi5jb20vc2hvcA,,/'; Mage::helper('core')-&#62;urlDecode($string); From what I can tell, it does the same thing as base64_decode($string); That will be decoded as [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever wondered how to figure out what that long string of letters and numbers are in a magento URL, here is how to do it.</p>
<p>Lets say that our URL is:</p>
<pre>$string = 'www.whatever.com/customer/account/login/referer/aHR0cDovL2xvY2FsLmJsb29tMi5jb20vc2hvcA,,/';</pre>
<pre>Mage::helper('core')-&gt;urlDecode($string);</pre>
<p>From what I can tell, it does the same thing as</p>
<pre>base64_decode($string);</pre>
<p>That will be decoded as</p>
<pre>www.whatever.com/shop</pre>
<p>Pretty fancy work there Magento! But I got you figured out.</p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/magento/magento-how-to-decode-the-referer-part-of-a-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Custom Module with Custom Database Table</title>
		<link>http://greendotsoftware.com/magento/adding-custom-module-with-custom-database-table/</link>
		<comments>http://greendotsoftware.com/magento/adding-custom-module-with-custom-database-table/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 00:39:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[adminhtml]]></category>
		<category><![CDATA[Custom Database Table]]></category>
		<category><![CDATA[Custom Module]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=682</guid>
		<description><![CDATA[http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/custom_module_with_custom_database_table]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/custom_module_with_custom_database_table">http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/custom_module_with_custom_database_table</a></p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/magento/adding-custom-module-with-custom-database-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get a block in a controller</title>
		<link>http://greendotsoftware.com/magento/how-to-get-a-block-in-a-controller/</link>
		<comments>http://greendotsoftware.com/magento/how-to-get-a-block-in-a-controller/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 18:02:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[blocks]]></category>
		<category><![CDATA[controller]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=677</guid>
		<description><![CDATA[If you are in a Magento Controller and you need to get a different block and its methods&#8230;.here is how: // This function would be in a controller called something like CustomerController.php class Bloom_BeautyBio_CustomerController extends Mage_Core_Controller_Front_Action { public function viewAction() { /******** This is the secret sauce that gives you access to the class and [...]]]></description>
			<content:encoded><![CDATA[<p>If you are in a Magento Controller and you need to get a different block and its methods&#8230;.here is how:</p>
<pre>
// This function would be in a controller called something like CustomerController.php

class Bloom_BeautyBio_CustomerController extends Mage_Core_Controller_Front_Action
{
public function viewAction()
    {

/******** This is the secret sauce that gives you access to the class and its methods   ******/
        $viewingOthers = $this->getLayout()->createBlock('beautybio/beautybio')->viewingOtherMember();

        if($viewingOthers)
        {
            $this->_redirect('beautybio/customer/view/#photos');
            exit();
        }

        $this->loadLayout(array('default'));
        $this->renderLayout();
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/magento/how-to-get-a-block-in-a-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Data collection</title>
		<link>http://greendotsoftware.com/uncategorized/magento-data-collection/</link>
		<comments>http://greendotsoftware.com/uncategorized/magento-data-collection/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 20:16:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://greendotsoftware.com/?p=671</guid>
		<description><![CDATA[http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-8-varien-data-collections]]></description>
			<content:encoded><![CDATA[<p>http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-8-varien-data-collections</p>
]]></content:encoded>
			<wfw:commentRss>http://greendotsoftware.com/uncategorized/magento-data-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
	</channel>
</rss>

