<?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>pgdesigning &#124; Priyantha's BLOG</title>
	<atom:link href="http://www.pgdesigning.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pgdesigning.com</link>
	<description>Toolbox for Web designers and Developers!</description>
	<pubDate>Thu, 24 Dec 2009 13:26:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Five common PHP design patterns</title>
		<link>http://www.pgdesigning.com/php/2009/12/24/five-common-php-design-patterns/</link>
		<comments>http://www.pgdesigning.com/php/2009/12/24/five-common-php-design-patterns/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 13:26:03 +0000</pubDate>
		<dc:creator>Priyantha</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Software Engineering]]></category>

		<guid isPermaLink="false">http://www.pgdesigning.com/?p=39</guid>
		<description><![CDATA[Hi All
I hope this article will help you guys a lot with some basic stuff we could use in designing applications or rather you do re-factoring in your code.
Main design pattens discussed in this article are listed below

The factory pattern
The singleton pattern
The observer pattern
The chain-of-command pattern
The strategy pattern

Visit the original post
]]></description>
			<content:encoded><![CDATA[<p>Hi All</p>
<p>I hope this article will help you guys a lot with some basic stuff we could use in designing applications or rather you do re-factoring in your code.</p>
<p>Main design pattens discussed in this article are listed below</p>
<ul>
<li>The factory pattern</li>
<li>The singleton pattern</li>
<li>The observer pattern</li>
<li>The chain-of-command pattern</li>
<li>The strategy pattern</li>
</ul>
<p><span class="post_link"><a href="http://www.ibm.com/developerworks/library/os-php-designptrns" target="_blank">Visit the original post</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pgdesigning.com/php/2009/12/24/five-common-php-design-patterns/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OSCommerce module to customise products</title>
		<link>http://www.pgdesigning.com/oscommerce/2009/12/08/oscommerce-module-to-customise-products/</link>
		<comments>http://www.pgdesigning.com/oscommerce/2009/12/08/oscommerce-module-to-customise-products/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 02:37:50 +0000</pubDate>
		<dc:creator>Priyantha</dc:creator>
		
		<category><![CDATA[OSCommerce]]></category>

		<guid isPermaLink="false">http://www.pgdesigning.com/?p=38</guid>
		<description><![CDATA[
This is the recent project I was working on to developing a module to customize oscommerce product.


You can upload any image or a text and see how it look like before you print on a sticker and if you are happy you can order it.

Tech. used :- PHP GD Lib, AJAX, MySQL 

You can visit [...]]]></description>
			<content:encoded><![CDATA[<p>
This is the recent project I was working on to developing a module to customize oscommerce product.
</p>
<p>
You can upload any image or a text and see how it look like before you print on a sticker and if you are happy you can order it.
</p>
<p>Tech. used :- <strong>PHP GD Lib, AJAX, MySQL </strong></p>
<p>
You can visit a live demo on the given link below
</p>
<p><span class="post_link"><a target="_blank" href="http://www.so-sticky.com/catalog/photos-graffiti-bleu-abstrait-p-714.html">Visit the live DEMO</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pgdesigning.com/oscommerce/2009/12/08/oscommerce-module-to-customise-products/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Get All keywords in Adword v200909 in PHP</title>
		<link>http://www.pgdesigning.com/php/2009/11/03/get-all-keywords-in-adword-v200909-in-php/</link>
		<comments>http://www.pgdesigning.com/php/2009/11/03/get-all-keywords-in-adword-v200909-in-php/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 08:37:44 +0000</pubDate>
		<dc:creator>Priyantha</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Google Adword]]></category>

		<guid isPermaLink="false">http://www.pgdesigning.com/?p=37</guid>
		<description><![CDATA[I hope this will help you guys when working with adword new API. I just completed this function and thought of sharing it for you all. I couldn&#8217;t find any PHP code in the net to do the same.
Cheers,
Priya.
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
class GetAllKeywordsExample {
static function main($keywords_input, $match_type) {
$return_array = array();
try {
// Get AdWordsUser from credentials in &#8220;../auth.ini&#8221;
// relative [...]]]></description>
			<content:encoded><![CDATA[<p>I hope this will help you guys when working with adword new API. I just completed this function and thought of sharing it for you all. I couldn&#8217;t find any PHP code in the net to do the same.</p>
<p>Cheers,</p>
<p>Priya.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>class GetAllKeywordsExample {<br />
static function main($keywords_input, $match_type) {<br />
$return_array = array();<br />
try {<br />
// Get AdWordsUser from credentials in &#8220;../auth.ini&#8221;<br />
// relative to the AdWordsUser.php file&#8217;s directory.<br />
$user = new AdWordsUser();</p>
<p>// Log SOAP XML request and response.<br />
$user-&gt;LogDefaults();</p>
<p>// Get the TargetingIdeaService.<br />
$keywordService = $user-&gt;GetTargetingIdeaService();</p>
<p>$keyword = new Keyword();<br />
$keyword-&gt;text = $keywords_input;<br />
$keyword-&gt;matchType = $match_type;</p>
<p>$keyword_array = array($keyword);<br />
$relatedToKeywordSearchParameter = new RelatedToKeywordSearchParameter($keyword_array);</p>
<p>$targetingIdeaSelector = new TargetingIdeaSelector();<br />
$targetingIdeaSelector-&gt;searchParameters = array(<br />
$relatedToKeywordSearchParameter<br />
);<br />
$targetingIdeaSelector-&gt;ideaType = &#8216;KEYWORD&#8217;;<br />
$targetingIdeaSelector-&gt;requestType = &#8216;IDEAS&#8217;;<br />
$targetingIdeaSelector-&gt;paging = new Paging(0,800);</p>
<p>// Get all Keywords.<br />
$keywordPage = $keywordService-&gt;get($targetingIdeaSelector);</p>
<p>// Prepare keyword array.<br />
if(isset($keywordPage-&gt;entries)) {<br />
foreach ($keywordPage-&gt;entries as $keyword_entry) {<br />
foreach($keyword_entry as $keyword_entry_array){<br />
/*<br />
*/<br />
//var_dump($keyword);<br />
foreach ($keyword_entry_array as $keyword){<br />
if($keyword-&gt;key == &#8216;KEYWORD&#8217;){<br />
$keyword_value = $keyword-&gt;value;<br />
if($keyword_value-&gt;value-&gt;matchType == $match_type){<br />
$return_array[] = array(<br />
&#8216;keyword&#8217;=&gt;$keyword_value-&gt;value-&gt;text<br />
);<br />
}<br />
}<br />
}<br />
}<br />
}<br />
} else {<br />
throw new Exception(&#8221;ERROR&#8221;,0);<br />
}<br />
} catch (Exception $e) {</p>
<p>$return_array[] = array(<br />
&#8216;keyword&#8217;=&gt;$e-&gt;getMessage());</p>
<p>}<br />
return $return_array;<br />
}<br />
}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pgdesigning.com/php/2009/11/03/get-all-keywords-in-adword-v200909-in-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My 2nd Facebook application is online</title>
		<link>http://www.pgdesigning.com/facebook/2009/10/27/my-2nd-facebook-application-is-completed/</link>
		<comments>http://www.pgdesigning.com/facebook/2009/10/27/my-2nd-facebook-application-is-completed/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 02:04:41 +0000</pubDate>
		<dc:creator>Priyantha</dc:creator>
		
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://www.pgdesigning.com/?p=36</guid>
		<description><![CDATA[
I have released my second Facebook application very recently. This is an event handling application for netevents.be

Visit Netevents at Facebook
]]></description>
			<content:encoded><![CDATA[<p>
I have released my second Facebook application very recently. This is an event handling application for netevents.be
</p>
<p><span class="post_link"><a href="http://apps.facebook.com/netevents/" target="_blank">Visit Netevents at Facebook</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pgdesigning.com/facebook/2009/10/27/my-2nd-facebook-application-is-completed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Drupal video trainnig</title>
		<link>http://www.pgdesigning.com/drupal/2009/06/30/drupal-video-trainnig/</link>
		<comments>http://www.pgdesigning.com/drupal/2009/06/30/drupal-video-trainnig/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 05:24:26 +0000</pubDate>
		<dc:creator>Priyantha</dc:creator>
		
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://pgdesigning.com/?p=34</guid>
		<description><![CDATA[HI Guys,
I found a good video traing web site for drupal. check this out
Visit this site
]]></description>
			<content:encoded><![CDATA[<p>HI Guys,</p>
<p>I found a good video traing web site for drupal. check this out</p>
<p><span class="post_link"><a target="_blank" href="http://learn.awakenedvoice.com/tag/drupal/">Visit this site</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pgdesigning.com/drupal/2009/06/30/drupal-video-trainnig/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The 23 Gang of Four Design Patterns (Cheat Sheet)</title>
		<link>http://www.pgdesigning.com/software-engineering/2009/06/29/the-23-gang-of-four-design-patterns-cheat-sheet/</link>
		<comments>http://www.pgdesigning.com/software-engineering/2009/06/29/the-23-gang-of-four-design-patterns-cheat-sheet/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 06:26:29 +0000</pubDate>
		<dc:creator>Priyantha</dc:creator>
		
		<category><![CDATA[Software Engineering]]></category>

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

		<guid isPermaLink="false">http://pgdesigning.com/?p=33</guid>
		<description><![CDATA[1. Strategy:
Defines a family of algorithms, encapsulates each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients who use it.
2. Decorator:
Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
3. Factory Method
Define an interface for creating an object, but let the subclasses decide which [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1. Strategy:</strong></p>
<p>Defines a family of algorithms, encapsulates each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients who use it.</p>
<p><strong>2. Decorator:</strong></p>
<p>Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.</p>
<p><strong>3. Factory Method</strong></p>
<p>Define an interface for creating an object, but let the subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.</p>
<p><strong>4. Observer</strong></p>
<p>Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.</p>
<p><strong>5. Chain of Responsibility</strong></p>
<p>Avoid coupling the sender of a request to its receiver by giving more then one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.</p>
<p><strong>6. Singleton</strong></p>
<p>Ensure a class only has one instance, and provide a global point of access to it.</p>
<p><strong>7. Flyweight</strong></p>
<p>Use sharing to support large numbers of fine-grained objects efficiently. A flyweight is a shared object that can be used in multiple contexts simultaneously. The flyweight acts as an independent object in each context; it’s indistinguishable from an instance of the object that’s not shared.</p>
<p><strong>8. Adapter</strong></p>
<p>Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn’t otherwise because of incompatibility interfaces.</p>
<p><strong>9. Façade</strong></p>
<p>Provide a unified interface to a set of interfaces in a system. Façade defines a higher-level interface that makes the subsystem easier to use.</p>
<p><strong>10. Template</strong></p>
<p>Define a skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithms structure.</p>
<p><strong>11. Builder</strong></p>
<p>Separate the construction of a complex object from its representation so that the same construction processes can create different representations.</p>
<p><strong>12. Iterator</strong></p>
<p>Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.</p>
<p><strong>13. Composite</strong></p>
<p>Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.</p>
<p><strong>14. Command</strong></p>
<p>Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.</p>
<p><strong>15. Mediator</strong></p>
<p>Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and lets you vary their interaction independently.</p>
<p><strong>16.  State</strong></p>
<p>Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.</p>
<p><strong>17. Proxy</strong></p>
<p>Provide a surrogate or placeholder for another object to control access to it.</p>
<p><strong>18. Abstract Factory</strong></p>
<p>Provide an interface for creating families of related or dependent objects without specifying their concrete classes.</p>
<p><strong>19. Bridge</strong></p>
<p>Decouple an abstraction from its implementation so that the two can vary independently.</p>
<p><strong>20. Interpreter</strong></p>
<p>Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.</p>
<p><strong>21. Memento</strong></p>
<p>Without violating encapsulation, capture and externalize an object’s internal state so that the object can be restored to this state later.</p>
<p><strong>22. Prototype</strong></p>
<p>Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.</p>
<p><strong>23. Visitor</strong></p>
<p>Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pgdesigning.com/software-engineering/2009/06/29/the-23-gang-of-four-design-patterns-cheat-sheet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Bug #40886 static methods assigned to instances</title>
		<link>http://www.pgdesigning.com/php/2009/06/24/bug-40886-static-methods-assigned-to-instances/</link>
		<comments>http://www.pgdesigning.com/php/2009/06/24/bug-40886-static-methods-assigned-to-instances/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 01:45:30 +0000</pubDate>
		<dc:creator>Priyantha</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://pgdesigning.com/?p=31</guid>
		<description><![CDATA[I found a nice article that debating about the static method implementation in PHP. Guys who are interesting may read it&#8230;
Read the article
]]></description>
			<content:encoded><![CDATA[<p>I found a nice article that debating about the static method implementation in PHP. Guys who are interesting may read it&#8230;</p>
<p><span class="post_link"><a href="http://bugs.php.net/bug.php?id=40886" target="_blank">Read the article</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pgdesigning.com/php/2009/06/24/bug-40886-static-methods-assigned-to-instances/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Play Badminton : The Smash Shot in Badminton</title>
		<link>http://www.pgdesigning.com/sports/2009/06/21/how-to-play-badminton-the-smash-shot-in-badminton/</link>
		<comments>http://www.pgdesigning.com/sports/2009/06/21/how-to-play-badminton-the-smash-shot-in-badminton/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 05:11:00 +0000</pubDate>
		<dc:creator>Priyantha</dc:creator>
		
		<category><![CDATA[Badminton]]></category>

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

		<guid isPermaLink="false">http://pgdesigning.com/?p=30</guid>
		<description><![CDATA[



]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="src" value="http://www.youtube.com/v/hnw89edmxX4&amp;hl=en&amp;fs=1&amp;" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/hnw89edmxX4&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pgdesigning.com/sports/2009/06/21/how-to-play-badminton-the-smash-shot-in-badminton/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ULTIMATE BRUSH PACK NO.4</title>
		<link>http://www.pgdesigning.com/photoshop/2009/06/18/ultimate-brush-pack-no4/</link>
		<comments>http://www.pgdesigning.com/photoshop/2009/06/18/ultimate-brush-pack-no4/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 04:48:28 +0000</pubDate>
		<dc:creator>Priyantha</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

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

		<guid isPermaLink="false">http://pgdesigning.com/?p=28</guid>
		<description><![CDATA[
Download the brush
]]></description>
			<content:encoded><![CDATA[<p><img class="left" src="http://static3.brusheezy.com/images/screenshots/0000/3838/thumb.jpg?1245275681" alt="Thumb" /><br />
<span class="post_link"><a target="_blank" href="http://www.brusheezy.com/brush/1285-ULTIMATE-BRUSH-PACK-NO-4">Download the brush</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pgdesigning.com/photoshop/2009/06/18/ultimate-brush-pack-no4/feed/</wfw:commentRss>
		</item>
		<item>
		<title>jQuery TOOLS - The missing UI library for the Web</title>
		<link>http://www.pgdesigning.com/css/2009/06/17/jquery-tools-the-missing-ui-library-for-the-web/</link>
		<comments>http://www.pgdesigning.com/css/2009/06/17/jquery-tools-the-missing-ui-library-for-the-web/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 05:00:21 +0000</pubDate>
		<dc:creator>Priyantha</dc:creator>
		
		<category><![CDATA[CSS]]></category>

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

		<guid isPermaLink="false">http://pgdesigning.com/?p=27</guid>
		<description><![CDATA[HI all,
Check this site, you guys may find this as a very useful site for rich UI designing.
Visit jQuery Tools
]]></description>
			<content:encoded><![CDATA[<p>HI all,<br />
Check this site, you guys may find this as a very useful site for rich UI designing.<br />
<span class="post_link"><a href="http://flowplayer.org/tools/index.html" target="_blank">Visit jQuery Tools</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pgdesigning.com/css/2009/06/17/jquery-tools-the-missing-ui-library-for-the-web/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

