<?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>Webuml - Developer Notes &#187; dev</title>
	<atom:link href="http://www.webuml.com/blog/category/dev/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webuml.com/blog</link>
	<description>Developer Notes</description>
	<lastBuildDate>Tue, 26 Jan 2010 10:00:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A short look on nwire</title>
		<link>http://www.webuml.com/blog/a-short-look-on-nwire/34</link>
		<comments>http://www.webuml.com/blog/a-short-look-on-nwire/34#comments</comments>
		<pubDate>Wed, 14 Oct 2009 06:49:03 +0000</pubDate>
		<dc:creator>khelo</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[explore]]></category>
		<category><![CDATA[nwire]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.webuml.com/blog/?p=34</guid>
		<description><![CDATA[nwire is a new eclipse for extension, and it allows you to  explore your code.  When I say explore , I really mean explore. It&#8217;s not a static stuff where you watch a diagram.  More about this in the youtube presentations .

This is a must have extension for devs who do a lot of refactoring [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nwiresoftware.com/download/get-nwire"><strong>nwire</strong></a> is a new eclipse for extension, and it allows you to  <strong>explore</strong> your code.  When I say explore , I really mean explore. It&#8217;s not a static stuff where you watch a diagram.  More about this in the youtube presentations .</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/crtGjrvwO70" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/crtGjrvwO70"></embed></object></p>
<p>This is a must have extension for devs who do a lot of refactoring , as you can see everything , including what uses or changes a variable , which in softwares like wordpress is a bless. Some pics bellow.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webuml.com/blog/a-short-look-on-nwire/34/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notice: Indirect modification of overloaded property ..</title>
		<link>http://www.webuml.com/blog/notice-indirect-modification-of-overloaded-property/27</link>
		<comments>http://www.webuml.com/blog/notice-indirect-modification-of-overloaded-property/27#comments</comments>
		<pubDate>Tue, 13 Oct 2009 11:54:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[notice]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.webuml.com/blog/?p=27</guid>
		<description><![CDATA[You get this because you have the __get method set up , and you are trying to access an array that is not declared.
class a {
 //      private $stuff = array();
 public function foo()
 {
     $this-&#62;stuff['asd'] = 'foo';
 }

 public function __get($name)
 {
     return null;
 }
$a = [...]]]></description>
			<content:encoded><![CDATA[<p>You get this because you have the <strong>__get</strong> method set up , and you are trying to access an array that is not declared.</p>
<pre>class a {
 //      private $stuff = array();
 public function foo()
 {
     $this-&gt;stuff['asd'] = 'foo';
 }

 public function __get($name)
 {
     return null;
 }
$a = new a();
$a-&gt;foo();</pre>
<p>The above code will result in :</p>
<pre><strong><strong>Notice</strong>:</strong>  Indirect modification of overloaded property a::$stuff has no effect</pre>
<p>I think this happens only for 5.2.x . More details <a href="http://weierophinney.net/matthew/archives/131-Overloading-arrays-in-PHP-5.2.0.html">here</a>.</p>
<p>I encountered this bug while refactoring a set of classes. The property got lost from the parent , who had a <a href="http://php.net/manual/en/language.oop5.magic.php"><strong>__get</strong></a> method set , and was called from the child class.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webuml.com/blog/notice-indirect-modification-of-overloaded-property/27/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Uploading a image in php with curl</title>
		<link>http://www.webuml.com/blog/uploading-a-image-in-php-with-curl/20</link>
		<comments>http://www.webuml.com/blog/uploading-a-image-in-php-with-curl/20#comments</comments>
		<pubDate>Mon, 12 Oct 2009 08:16:16 +0000</pubDate>
		<dc:creator>khelo</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://www.webuml.com/blog/?p=20</guid>
		<description><![CDATA[In the latest years we (php programmers) have spent a lot of time  behind classes and frameworks ,  making all our repetitive tasks available in simple and understandable forms like :
$image = new Image('/var/www/image.jpg');
$image-&#62;upload('http://www.somesite.com/upload.php');
However , when the Image class can not be used ,  most of use will google for  &#8220;how to upload an image [...]]]></description>
			<content:encoded><![CDATA[<p>In the latest years we (<strong>php</strong> programmers) have spent a lot of time  behind <strong>classes</strong> and <strong>frameworks</strong> ,  making all our repetitive tasks available in simple and understandable forms like :</p>
<pre>$image = new Image('/var/www/image.jpg');
$image-&gt;upload('http://www.somesite.com/upload.php');</pre>
<p>However , when the Image class <strong>can not</strong> be used ,  most of use will <strong>google</strong> for  &#8220;how to upload an image with php curl&#8221;.</p>
<p>The following snippet of code can be used to upload a image:</p>
<pre>$url = 'http://somesite.com/upload.php;
$file = 'image.jpg';</pre>
<pre>$curl  = curl_init($url);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS,
             array('image' =&gt; "@$file;type=image;type=image/jpeg"));
$resp = curl_exec($curl);</pre>
<p>Note the @ before the file. It will extract the binary contents of file , so be wary of your php memory limit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webuml.com/blog/uploading-a-image-in-php-with-curl/20/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding custom admin config options in Magento</title>
		<link>http://www.webuml.com/blog/adding-custom-module-for-custom-admin-config-options-in-magento/13</link>
		<comments>http://www.webuml.com/blog/adding-custom-module-for-custom-admin-config-options-in-magento/13#comments</comments>
		<pubDate>Fri, 09 Oct 2009 08:32:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[module]]></category>

		<guid isPermaLink="false">http://www.webuml.com/blog/?p=13</guid>
		<description><![CDATA[I had  a problem   related to the admin configuration options in Magento. (not 100% resolved yet) .  It took me  some time to figure it out.  To have your magento module add it&#8217;s own configuration options in the sytem area , there are (theoretically) some simple steps to follow. However , I obtained the access [...]]]></description>
			<content:encoded><![CDATA[<p>I had  a problem   related to the admin configuration options in <strong>Magento</strong>. (not 100% resolved yet) .  It took me  some time to figure it out.  To have your <strong>magento</strong> <strong>module</strong> add it&#8217;s own <strong>configuration options</strong> in the sytem area , there are (theoretically) some <a href="http://devzone.pratthost.com/2008/09/29/magento-add-custom-module-for-custom-admin-config-options/">simple steps</a> to follow. However , I obtained the <strong>access denied </strong>screen when I tried to view the configuration options. If you have caching enabled, you will only get a blank screen. (How cool is that?)</p>
<p>One quick solution is to go to <strong>Magento-&gt;System-&gt;Roles</strong> , edit the <strong>Administrator</strong> group and set the permissions to All again.  Searching for a bug  related to this problem , I have found that the solution is allready posted <a title="access denied in magento admin" href="http://inchoo.net/ecommerce/magento/access-denied-in-magento-admin/">here </a>, so I&#8217;ll skip the rest of the details. Be sure <strong>NOT TO</strong> uncheck all the permissions and then save, or you  will not have to edit the database to restore your permissions  ( How cool is that? A store owner has to pay a programmer to fix the mess if he screws permissions).</p>
<p>If you accidentally found my post while trying to discover how you can create custom admin config options in Magento,  you can <a href="http://inchoo.net/wp-content/uploads/2009/08/ActiveCodeline_CoolDash.zip">download</a> a blank magento <strong>module </strong> (description <a href="http://www.candesprojects.com/magento/develop-magento-admin-module-with-cooldash/">here</a> ), which can be used as a template for your admin configuration options.  Be adivsed that it still has the above mentioned <strong>problem</strong>.</p>
<p>K.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webuml.com/blog/adding-custom-module-for-custom-admin-config-options-in-magento/13/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Some integration plugins are pure crap</title>
		<link>http://www.webuml.com/blog/some-integration-plugins-are-pure-crap/8</link>
		<comments>http://www.webuml.com/blog/some-integration-plugins-are-pure-crap/8#comments</comments>
		<pubDate>Thu, 08 Oct 2009 20:08:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[crap]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.webuml.com/blog/?p=8</guid>
		<description><![CDATA[I recently stumbled uppon a Wordpress integration plugin for Magento , which was actually hosted on Magento main site. The plugin required both Mangento and Wordpress to be edited. Which is crap.  That&#8217;s not a wordpress integration, that&#8217;s wordpress hackintegration .
Because both Magento and Wordpress have to be edited, neither can be upgraded anymore. [...]]]></description>
			<content:encoded><![CDATA[<p>I recently stumbled uppon a <strong>Wordpress</strong> integration plugin for <strong>Magento</strong> , which was actually hosted on <strong>Magento</strong> <strong>main</strong> <strong>site</strong>. The <strong>plugin</strong> required both Mangento and Wordpress to be edited. Which is <strong>crap</strong>.  That&#8217;s not a wordpress integration, that&#8217;s wordpress hackintegration .</p>
<p>Because both Magento and Wordpress have to be edited, neither can be upgraded anymore. And because you actually include and run Wordpress code for <strong>each</strong> Magento request ,  a <strong>Wordpress</strong> error will  stop Magento from working.</p>
<p>And finally , wordpress content is only included and displayed within mangento , but not integrated.</p>
<p>Such lame plugins should never be posted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webuml.com/blog/some-integration-plugins-are-pure-crap/8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
