<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Tudor Barbu's professional blog</title>
	
	<link>http://blog.motane.lu</link>
	<description>skillz...i has them</description>
	<lastBuildDate>Tue, 31 Aug 2010 09:10:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/motanelu" /><feedburner:info uri="motanelu" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>PHP switch</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/9Cyie5a9rzo/</link>
		<comments>http://blog.motane.lu/2010/08/31/php-switch/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 09:10:24 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[strange stuff]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1424</guid>
		<description>Over the years, I&amp;#8217;ve encountered a lot of strange things in PHP, but this one is off the scale:

$value = 'zero';
&amp;#160;
switch &amp;#40;$value&amp;#41; &amp;#123;
    case 0:
        echo 'value is zero';
        break;
    default:
     [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EZV7E3CAq2jsWC5YJWVWYtWEsrY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EZV7E3CAq2jsWC5YJWVWYtWEsrY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EZV7E3CAq2jsWC5YJWVWYtWEsrY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EZV7E3CAq2jsWC5YJWVWYtWEsrY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/9Cyie5a9rzo" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/08/31/php-switch/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/08/31/php-switch/</feedburner:origLink></item>
		<item>
		<title>JavaZone by Lady Java</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/jsoZQQAvaNA/</link>
		<comments>http://blog.motane.lu/2010/08/16/javazone-by-lady-java/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 22:51:01 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1419</guid>
		<description>Viral advertising in IT. I&amp;#8217;m starting to like this&amp;#8230;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6ZZmKXaMXMZGjkS0Mrqx-yhNwFc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6ZZmKXaMXMZGjkS0Mrqx-yhNwFc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6ZZmKXaMXMZGjkS0Mrqx-yhNwFc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6ZZmKXaMXMZGjkS0Mrqx-yhNwFc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/jsoZQQAvaNA" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/08/16/javazone-by-lady-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/08/16/javazone-by-lady-java/</feedburner:origLink></item>
		<item>
		<title>Accessing a method defined in the current class’ “granpa”</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/LexDTYOH9Rk/</link>
		<comments>http://blog.motane.lu/2010/08/04/accessing-a-method-defined-in-the-current-class-granpa/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 09:18:29 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[extreme php]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1410</guid>
		<description>Problem: we have an hierarchy of 3 classes, each extending the one in front (grandfather, father, son). A method &amp;#8211; let&amp;#8217;s say foo() &amp;#8211; is defined in the grandfather class and overridden with a new functionality in the father class.
Question: Is there a way in the son class to access the original method (with the [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QDxmxyIheqyb6S8pd5IypWn0H4s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QDxmxyIheqyb6S8pd5IypWn0H4s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QDxmxyIheqyb6S8pd5IypWn0H4s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QDxmxyIheqyb6S8pd5IypWn0H4s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/LexDTYOH9Rk" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/08/04/accessing-a-method-defined-in-the-current-class-granpa/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/08/04/accessing-a-method-defined-in-the-current-class-granpa/</feedburner:origLink></item>
		<item>
		<title>PHP 5.3 certification beta-testers</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/CzQnehOK-E4/</link>
		<comments>http://blog.motane.lu/2010/07/09/php-5-3-certification-beta-testers/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 13:44:53 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1405</guid>
		<description>Zend is looking for beta-tester for its new PHP 5.3 certification programme.  If you&amp;#8217;re interested, all you have to do is simply take this survey and provide your contact details (so that they can find you).
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OlsXn9IDTiJTsHcRmPsXMorNiWs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OlsXn9IDTiJTsHcRmPsXMorNiWs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/OlsXn9IDTiJTsHcRmPsXMorNiWs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OlsXn9IDTiJTsHcRmPsXMorNiWs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/CzQnehOK-E4" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/07/09/php-5-3-certification-beta-testers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/07/09/php-5-3-certification-beta-testers/</feedburner:origLink></item>
		<item>
		<title>Remove empty array elements with recursive lambda in PHP 5.3</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/qwpitwdb5F0/</link>
		<comments>http://blog.motane.lu/2010/06/17/remove-empty-array-elements-with-recursive-lambda-in-php-5-3/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 16:08:52 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[extreme php]]></category>
		<category><![CDATA[lambda]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php 5.3]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1393</guid>
		<description>How do you remove empty elements from a PHP array? The answer&amp;#8217;s quite simple: array_filter(). Straight from manual and works like a charm:

$filtered = array_filter&amp;#40;$raw&amp;#41;;

Well, most of the time. It&amp;#8217;s not recursive by default, so it only removes empty items on the first level of the array. If you have nested arrays and wish to [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/nPp6wcXhW_lWbcya59F7LEcJKqo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nPp6wcXhW_lWbcya59F7LEcJKqo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/nPp6wcXhW_lWbcya59F7LEcJKqo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nPp6wcXhW_lWbcya59F7LEcJKqo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/qwpitwdb5F0" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/06/17/remove-empty-array-elements-with-recursive-lambda-in-php-5-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/06/17/remove-empty-array-elements-with-recursive-lambda-in-php-5-3/</feedburner:origLink></item>
		<item>
		<title>Javascript based Flash Player</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/iFN2DX9_2RQ/</link>
		<comments>http://blog.motane.lu/2010/06/02/javascript-based-flash-player/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 10:18:21 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1388</guid>
		<description>I stumbled upon this Slashdot article, about Smokescreen, a Flash player written entirely in Javascript and which can&amp;#8230;are you ready for this&amp;#8230;run on the iPhone/iPad/iPod Touch. In your face mr. Jobs!!!
Take a look at the demo, it&amp;#8217;s very impressive.
I&amp;#8217;m quite sure that by the end of the week Adobe will buy RevShock, the company that [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dR9mcm7SQgMbN4UA7FjiZLv8_Lo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dR9mcm7SQgMbN4UA7FjiZLv8_Lo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dR9mcm7SQgMbN4UA7FjiZLv8_Lo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dR9mcm7SQgMbN4UA7FjiZLv8_Lo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/iFN2DX9_2RQ" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/06/02/javascript-based-flash-player/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/06/02/javascript-based-flash-player/</feedburner:origLink></item>
		<item>
		<title>Constants for table names</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/B9jTr4W0JSw/</link>
		<comments>http://blog.motane.lu/2010/06/01/constants-for-table-names/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 20:19:44 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1367</guid>
		<description>While working on a PHP project, I had the following idea: wouldn&amp;#8217;t be better to use constants for table names? I mean, having a file, let&amp;#8217;s say /application/config/tables.php, which would look something like:

define&amp;#40;'TABLE_USERS', 'users'&amp;#41;;

And afterwards, use this value throughout the application:
&amp;#8230;in the associated Zend_Db_Table_Abstract

class Users extends Zend_Db_Table_Abstract
&amp;#123;
    protected $_name = TABLE_USERS;
&amp;#125;

&amp;#8230;in joins:

$this-&amp;#62;select&amp;#40;Zend_Db_Table::SELECT_WITH_FROM_PART&amp;#41;
 [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jFcJVPBMHaxRKC5a3BEchDY9Zd8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jFcJVPBMHaxRKC5a3BEchDY9Zd8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jFcJVPBMHaxRKC5a3BEchDY9Zd8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jFcJVPBMHaxRKC5a3BEchDY9Zd8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/B9jTr4W0JSw" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/06/01/constants-for-table-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/06/01/constants-for-table-names/</feedburner:origLink></item>
		<item>
		<title>Serious privacy issues with photocopiers</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/rlm8P8p-az0/</link>
		<comments>http://blog.motane.lu/2010/05/28/serious-privacy-issues-with-photocopiers/#comments</comments>
		<pubDate>Fri, 28 May 2010 15:02:57 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1380</guid>
		<description>&amp;#8230;scary
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/peg9kmurqDktO_d94aECueie_wg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/peg9kmurqDktO_d94aECueie_wg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/peg9kmurqDktO_d94aECueie_wg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/peg9kmurqDktO_d94aECueie_wg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/rlm8P8p-az0" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/05/28/serious-privacy-issues-with-photocopiers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/05/28/serious-privacy-issues-with-photocopiers/</feedburner:origLink></item>
		<item>
		<title>Strange PHP scoping</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/2WH69zi0YIU/</link>
		<comments>http://blog.motane.lu/2010/05/11/strange-php-scoping/#comments</comments>
		<pubDate>Tue, 11 May 2010 07:03:23 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[extreme php]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[theoretical issues]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1360</guid>
		<description>I came to the conclusion that PHP is the programing language with the weirdest features. After the variable variables mess, that allows to you to name your variables stuff like !@#$%^&amp;#038;*()_+= and not be able to use them directly, I thought I saw everything. But no, yesterday I&amp;#8217;ve bumped in another strange PHP feature. An [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Bya5N88CoAlsDwI3Q8Xi6PYGBns/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Bya5N88CoAlsDwI3Q8Xi6PYGBns/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Bya5N88CoAlsDwI3Q8Xi6PYGBns/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Bya5N88CoAlsDwI3Q8Xi6PYGBns/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/2WH69zi0YIU" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/05/11/strange-php-scoping/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/05/11/strange-php-scoping/</feedburner:origLink></item>
		<item>
		<title>Macbook – first impression</title>
		<link>http://feedproxy.google.com/~r/motanelu/~3/gw6WrXOAmmQ/</link>
		<comments>http://blog.motane.lu/2010/04/26/macbook-first-impression/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 18:38:32 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1350</guid>
		<description>Last week I got my hands on a Macbook for the first time and I must say I&amp;#8217;m quite impress with it. I&amp;#8217;m not an Apple fanboy that likes everything that has Apple&amp;#8217;s logo on it. I bought once an iPod and that&amp;#8217;s it. No iPhone, no iPad, no Apple stickers on my car.  [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5DIPqUaaoEr3ZvCCBbSmuCTSEvE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5DIPqUaaoEr3ZvCCBbSmuCTSEvE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5DIPqUaaoEr3ZvCCBbSmuCTSEvE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5DIPqUaaoEr3ZvCCBbSmuCTSEvE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/motanelu/~4/gw6WrXOAmmQ" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.motane.lu/2010/04/26/macbook-first-impression/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://blog.motane.lu/2010/04/26/macbook-first-impression/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 2.126 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-09-01 23:57:30 -->
