<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Anti Veeranna</title>
	<atom:link href="http://anti.masendav.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://anti.masendav.com</link>
	<description>The pain, the pleasure ..</description>
	<lastBuildDate>Mon, 21 Dec 2009 20:13:48 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='anti.masendav.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/4bcfee0d9ee44e2077f53417fa1a91f9?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Anti Veeranna</title>
		<link>http://anti.masendav.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://anti.masendav.com/osd.xml" title="Anti Veeranna" />
	<atom:link rel='hub' href='http://anti.masendav.com/?pushpress=hub'/>
		<item>
		<title>Soap, lather, rinse, repeat</title>
		<link>http://anti.masendav.com/2009/12/21/soap-lather-rinse-repeat/</link>
		<comments>http://anti.masendav.com/2009/12/21/soap-lather-rinse-repeat/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 20:13:48 +0000</pubDate>
		<dc:creator>Anti Veeranna</dc:creator>
				<category><![CDATA[Pain]]></category>
		<category><![CDATA[Pleasure]]></category>
		<category><![CDATA[php soap]]></category>

		<guid isPermaLink="false">http://anti.masendav.com/?p=31</guid>
		<description><![CDATA[I have had to deal with Soap lately. Mostly it works, except when it doesn&#8217;t. In my case I found out that its not exactly straightforward to make a Nusoap client talk to a PHP5 Soap server. Of course, it also depends on the WSDL. Probably. Maybe. In any case I was in a world [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anti.masendav.com&blog=10922697&post=31&subd=masendav&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I have had to deal with Soap lately. Mostly it works, except when it doesn&#8217;t. In my case I found out that its not exactly straightforward to make a Nusoap client talk to a PHP5 Soap server. Of course, it also depends on the WSDL. Probably. Maybe. In any case I was in a world of pain, which I do really not want to describe in more detail.</p>
<p>But then I found this article, and it made my day <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <a href="http://72.249.21.88/nonintersecting/2006/11/15/the-s-stands-for-simple/">S stands for Simple</a>. I have been suspecting this, but now its proven. Sigh.</p>
<blockquote><p>Let me sum up. The definition of SOAP is in constant flux, SOAP is anything but simple, and it is no longer meant for accessing objects-even though that’s what all the tools still do.</p></blockquote>
<br />Posted in Pain, Pleasure Tagged: php soap <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masendav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masendav.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masendav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masendav.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masendav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masendav.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masendav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masendav.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masendav.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masendav.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anti.masendav.com&blog=10922697&post=31&subd=masendav&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://anti.masendav.com/2009/12/21/soap-lather-rinse-repeat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>59.438862 24.754472</georss:point>
		<geo:lat>59.438862</geo:lat>
		<geo:long>24.754472</geo:long>
		<media:content url="http://1.gravatar.com/avatar/1087e5be38970bb9a686ea8cc834c129?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anti Veeranna</media:title>
		</media:content>
	</item>
		<item>
		<title>Python API for TargetApi.com</title>
		<link>http://anti.masendav.com/2009/12/13/python-api-for-targetapi-com/</link>
		<comments>http://anti.masendav.com/2009/12/13/python-api-for-targetapi-com/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 15:00:35 +0000</pubDate>
		<dc:creator>Anti Veeranna</dc:creator>
				<category><![CDATA[Pleasure]]></category>
		<category><![CDATA[python targetapi]]></category>

		<guid isPermaLink="false">http://anti.masendav.com/?p=19</guid>
		<description><![CDATA[Have you ever used DailyPerfect? Try it, its quite nice. Now the guys who built it have released their API for public use, it is called Target Api and is available at www.targetapi.com, there you can read about it and sign up for API key.
Once you have the API key, one the options to actually [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anti.masendav.com&blog=10922697&post=19&subd=masendav&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Have you ever used <a href="http://www.dailyperfect.com">DailyPerfect</a>? Try it, its quite nice. Now the guys who built it have released their API for public use, it is called Target Api and is available at <a href="http://www.targetapi.com/">www.targetapi.com</a>, there you can read about it and sign up for API key.</p>
<p>Once you have the API key, one the options to actually play with it is through Python, using a little library I wrote and made available at GitHub.</p>
<p><a href="http://github.com/antiveeranna/py-targetapi">http://github.com/antiveeranna/py-targetapi</a></p>
<p>Go, read the source, checkout, fork, improve, play, contribute your improvements, whatever rocks your boat <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />Posted in Pleasure Tagged: python targetapi <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masendav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masendav.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masendav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masendav.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masendav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masendav.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masendav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masendav.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masendav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masendav.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anti.masendav.com&blog=10922697&post=19&subd=masendav&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://anti.masendav.com/2009/12/13/python-api-for-targetapi-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>59.438862 24.754472</georss:point>
		<geo:lat>59.438862</geo:lat>
		<geo:long>24.754472</geo:long>
		<media:content url="http://1.gravatar.com/avatar/1087e5be38970bb9a686ea8cc834c129?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anti Veeranna</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting started with Unit testing your PHP Code</title>
		<link>http://anti.masendav.com/2009/12/12/getting-started-with-unit-testing-your-php-code/</link>
		<comments>http://anti.masendav.com/2009/12/12/getting-started-with-unit-testing-your-php-code/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 19:49:05 +0000</pubDate>
		<dc:creator>Anti Veeranna</dc:creator>
				<category><![CDATA[Pleasure]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://masendav.wordpress.com/?p=12</guid>
		<description><![CDATA[Giorgio Sironi compiled a really nice e-book explaining practical PHP testing with PHPUnit. You can download the book from his site. 
Posted in Pleasure Tagged: php      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anti.masendav.com&blog=10922697&post=12&subd=masendav&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Giorgio Sironi compiled a really nice e-book explaining practical PHP testing with PHPUnit. You can <a href="http://giorgiosironi.blogspot.com/2009/12/practical-php-testing-is-here.html">download the book from his site</a>. </p>
<br />Posted in Pleasure Tagged: php <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masendav.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masendav.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masendav.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masendav.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masendav.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masendav.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masendav.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masendav.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masendav.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masendav.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anti.masendav.com&blog=10922697&post=12&subd=masendav&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://anti.masendav.com/2009/12/12/getting-started-with-unit-testing-your-php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>59.438862 24.754472</georss:point>
		<geo:lat>59.438862</geo:lat>
		<geo:long>24.754472</geo:long>
		<media:content url="http://1.gravatar.com/avatar/1087e5be38970bb9a686ea8cc834c129?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anti Veeranna</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP type juggling</title>
		<link>http://anti.masendav.com/2009/12/12/php-type-juggling/</link>
		<comments>http://anti.masendav.com/2009/12/12/php-type-juggling/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 12:13:10 +0000</pubDate>
		<dc:creator>Anti Veeranna</dc:creator>
				<category><![CDATA[Pain]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://masendav.wordpress.com/?p=3</guid>
		<description><![CDATA[Given the following piece of PHP code:

$a = '1112000000001779149';
$b = '1112000000001779148';
var_dump($a == $b);

Can you tell, without trying to run it, what the result is?
The answer &#8211; it depends on your platform. On a 64bit platform you will get boolean false, on a 32bit platform you will get boolean true.
Why? Because PHP does type juggling, if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anti.masendav.com&blog=10922697&post=3&subd=masendav&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Given the following piece of PHP code:</p>
<pre class="brush: php;">
$a = '1112000000001779149';
$b = '1112000000001779148';
var_dump($a == $b);
</pre>
<p>Can you tell, without trying to run it, what the result is?</p>
<p>The answer &#8211; it depends on your platform. On a 64bit platform you will get boolean false, on a 32bit platform you will get boolean true.</p>
<p>Why? Because PHP does type juggling, if strings are compared and they look like numbers, then they will be convereted to numbers before doing the comparision. And the following piece of code demonstrates the behaviour:</p>
<pre class="brush: php;">
print php_uname('m');
print &quot;\n&quot;;
print PHP_INT_SIZE;
print &quot;\n&quot;;
print (int)1112000000001779149;
print &quot;\n&quot;;
</pre>
<p>If you run it on different platforms, then this is the result that you will get:</p>
<pre class="brush: plain;">
x86_64
8
1112000000001779149
</pre>
<pre class="brush: plain;">
i386
4
-1
</pre>
<p>From this its already obvious, why the above string comparision resulted in true on 32bit platform. Its because -1 indeed equals -1.</p>
<p>Solution?</p>
<p>Either use === for comparisions, or if you care about your numbers, use the <a href="http://www.php.net/bc">bcmath </a>extension</p>
<br />Posted in Pain Tagged: php <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masendav.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masendav.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masendav.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masendav.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masendav.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masendav.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masendav.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masendav.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masendav.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masendav.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anti.masendav.com&blog=10922697&post=3&subd=masendav&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://anti.masendav.com/2009/12/12/php-type-juggling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>59.438862 24.754472</georss:point>
		<geo:lat>59.438862</geo:lat>
		<geo:long>24.754472</geo:long>
		<media:content url="http://1.gravatar.com/avatar/1087e5be38970bb9a686ea8cc834c129?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anti Veeranna</media:title>
		</media:content>
	</item>
		<item>
		<title>Eating habits of developers</title>
		<link>http://anti.masendav.com/2008/06/12/eating-habits-of-developers/</link>
		<comments>http://anti.masendav.com/2008/06/12/eating-habits-of-developers/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 20:05:41 +0000</pubDate>
		<dc:creator>Anti Veeranna</dc:creator>
				<category><![CDATA[Pleasure]]></category>
		<category><![CDATA[fun]]></category>

		<guid isPermaLink="false">http://masendav.wordpress.com/?p=15</guid>
		<description><![CDATA[This one started out as an internal joke, but it has become quite generic  
    * Java developers always go to eat together, in pairs, hand in hand, well organized (synchronized)
    * PHP devs go at random times, some of them run, some walk, some take the elevator. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anti.masendav.com&blog=10922697&post=15&subd=masendav&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>This one started out as an internal joke, but it has become quite generic <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>    * Java developers always go to eat together, in pairs, hand in hand, well organized (synchronized)<br />
    * PHP devs go at random times, some of them run, some walk, some take the elevator. (loose coding style)<br />
    * DB devs choose someone, who will then go to kitchen and fetch the food for everyone (also known as proxy)<br />
    * Delphi devs get the plate, put it in the center of kitchen, then get a fork and then walk between the food containers and plate, until plate is filled (drag ‘n drop)<br />
    * C devs kill their own animals and eat them raw (low-level)<br />
    * C++ devs prepare their food from prefabricated components in microwave oven (not that low-level)<br />
    * Frontend (HTML) devs decorate their food with cucumbers, tomatoes and generally everything else in the fridge and then play around with it until the food is cold<br />
    * Python devs always take the stairs (mandatory stepping) (from Jaagup Irve)<br />
    * Perl devs bring their own food to the work and eat it alone in the corner, while everybody else is giving them weird glances (You call THAT food? eewwwww) (syntax)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/masendav.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/masendav.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masendav.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masendav.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masendav.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masendav.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masendav.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masendav.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masendav.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masendav.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masendav.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masendav.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anti.masendav.com&blog=10922697&post=15&subd=masendav&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://anti.masendav.com/2008/06/12/eating-habits-of-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>59.438862 24.754472</georss:point>
		<geo:lat>59.438862</geo:lat>
		<geo:long>24.754472</geo:long>
		<media:content url="http://1.gravatar.com/avatar/1087e5be38970bb9a686ea8cc834c129?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Anti Veeranna</media:title>
		</media:content>
	</item>
	</channel>
</rss>