<?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>Chinto&#039;s blog &#187; web development</title>
	<atom:link href="http://blog.chintoju.com/category/web-development/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.chintoju.com</link>
	<description>Can you get something out of nothing...</description>
	<lastBuildDate>Wed, 21 Sep 2011 06:39:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Free Pattern/Stripe background tile image generator</title>
		<link>http://blog.chintoju.com/2008/09/free-patternstripe-background-tile-image-generator.html</link>
		<comments>http://blog.chintoju.com/2008/09/free-patternstripe-background-tile-image-generator.html#comments</comments>
		<pubDate>Tue, 16 Sep 2008 12:14:00 +0000</pubDate>
		<dc:creator>Kishore</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://blog.chintoju.com/?p=25</guid>
		<description><![CDATA[Ever searched google for some nice background stripe tile images only to be stuck at god awful pattern sites with patterns like dead wood and rusty steel to pink flowers. I DID!! like a gazillion times. Finally someone to the rescue. http://www.stripgenrator.com/ Pick choose create and download your own stripes all for FREE. Pretty much [...]]]></description>
			<content:encoded><![CDATA[<p>Ever searched google for some nice background stripe tile images only to be stuck at god awful pattern sites with patterns like dead wood and rusty steel to pink flowers. I DID!! like a gazillion times.</p>
<p>Finally someone to the rescue.</p>
<p>http://www.stripgenrator.com/</p>
<p>Pick choose create and download your own stripes all for FREE. Pretty much on the lines of ajaxload.info. These guys are cool, they make the web a better place and web development an interesting job, with discoveries to be made every day.</p>
<p>And don&#8217;t forget to click on &#8216;<a href="http://www.stripegenerator.com/index.php?page=showcase">Your Stripes</a>&#8216; to get inspired.</p>
<p>Just go there and check out for your self.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chintoju.com/2008/09/free-patternstripe-background-tile-image-generator.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieve items from Browser Cache (Firefox, Opera, IE)</title>
		<link>http://blog.chintoju.com/2008/07/retrieve-filesitems-from-browser-cache-firefox-opera-ie.html</link>
		<comments>http://blog.chintoju.com/2008/07/retrieve-filesitems-from-browser-cache-firefox-opera-ie.html#comments</comments>
		<pubDate>Fri, 18 Jul 2008 05:57:00 +0000</pubDate>
		<dc:creator>Kishore</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://blog.chintoju.com/?p=24</guid>
		<description><![CDATA[Have you ever had to work on a live site and while uploading the changes something goes bad with whatever and your live copy gets deleted and that&#8217;s the only copy you have at the moment. (This can happen easily if you are using those file manager tools provided by hosting accounts which edit files [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever had to work on a live site and while uploading the changes something goes bad with whatever and your live copy gets deleted and that&#8217;s the only copy you have at the moment. (This can happen easily if you are using those file manager tools provided by hosting accounts which edit files in browser)</p>
<p>Anyway the quickest solution would be to get the files from the browser cache. If you have been testing the site simultaneously. I had to do this recently and it saved me lot of time and embarrassment. So here is how you can do it &#8230;.</p>
<p>On <span style="font-weight:bold;">Firefox 3</span> (My favourite browser)</p>
<p>Type <span style="font-weight:bold;">about:cache</span> in address bar and voila you get access to all the cache. The view is functional and easy to use.</p>
<p><a href="http://bp3.blogger.com/_znpAdmT-J6Q/SIA2GWho_pI/AAAAAAAACbA/YHwI7o-rhoo/s1600-h/ScreenShot004.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5224235050503569042" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_znpAdmT-J6Q/SIA2GWho_pI/AAAAAAAACbA/YHwI7o-rhoo/s320/ScreenShot004.png" border="0" alt="" /></a><br />
<a href="http://bp2.blogger.com/_znpAdmT-J6Q/SIA2Gk7WhSI/AAAAAAAACbI/ezmzaFYNM7w/s1600-h/ScreenShot005.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5224235054369506594" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_znpAdmT-J6Q/SIA2Gk7WhSI/AAAAAAAACbI/ezmzaFYNM7w/s320/ScreenShot005.png" border="0" alt="" /></a></p>
<p>On <span style="font-weight:bold;">Opera 9.5</span>(Increasingly competing for my favourite browser spot, can even do that with one plugin like Firebug)</p>
<p>Type <span style="font-weight:bold;">opera:cache</span> in address bar and voila you go.. the best cache browser in the industry. Opera has some more cool features like SpeedDial.. anyway you can discover all that yourself by downloading it.</p>
<p><a href="http://bp1.blogger.com/_znpAdmT-J6Q/SIAz9oyF2VI/AAAAAAAACaw/lZpLSc63A1w/s1600-h/ScreenShot006.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5224232701762328914" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp1.blogger.com/_znpAdmT-J6Q/SIAz9oyF2VI/AAAAAAAACaw/lZpLSc63A1w/s320/ScreenShot006.png" border="0" alt="" /></a></p>
<p>On <span style="font-weight:bold;">IE 7</span>. This takes just a bit longer. Click on <span style="font-weight:bold;">Tools&gt;Internet Options&gt;Browsing History&gt;Settings&gt;View Files</span>.. pretty logical huh!</p>
<p>Anyway it does the job&#8230;</p>
<p><a href="http://bp0.blogger.com/_znpAdmT-J6Q/SIA1KL823LI/AAAAAAAACa4/vutoQj4nCeU/s1600-h/ScreenShot003.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5224234016872783026" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp0.blogger.com/_znpAdmT-J6Q/SIA1KL823LI/AAAAAAAACa4/vutoQj4nCeU/s320/ScreenShot003.png" border="0" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chintoju.com/2008/07/retrieve-filesitems-from-browser-cache-firefox-opera-ie.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A particular session variable&#8217;s value disappearing from $_SESSION in PHP</title>
		<link>http://blog.chintoju.com/2008/07/a-particular-session-variables-value-disappearing-from-_session-in-php.html</link>
		<comments>http://blog.chintoju.com/2008/07/a-particular-session-variables-value-disappearing-from-_session-in-php.html#comments</comments>
		<pubDate>Sun, 13 Jul 2008 14:03:00 +0000</pubDate>
		<dc:creator>Kishore</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://blog.chintoju.com/?p=23</guid>
		<description><![CDATA[A particular session variable&#8217;s value disappearing from $_SESSION in PHP&#8230; ?? Just check to make sure you DON&#8217;T have register_globals turned On. This took me a few hour&#8217;s to figure out.. Example scenario.. Form Bean class class FormBean { public $email; public $name; } page1.php $form = new FormBean(); $form-&#62;email = "someone@something.com.au"; $_SESSION['form'] = serialize($form); [...]]]></description>
			<content:encoded><![CDATA[<p>A particular session variable&#8217;s value disappearing from $_SESSION in PHP&#8230; ??</p>
<p>Just check to make sure you DON&#8217;T have <span style="font-weight: bold;">register_globals</span> turned <span style="font-weight: bold;">On.</span> This took me a few hour&#8217;s to figure out..</p>
<p>Example scenario..<br />
<span style="text-decoration: underline;">Form Bean class</span><br />
<code><br />
class FormBean<br />
{<br />
public $email;<br />
public $name;<br />
}<br />
</code></p>
<p><span style="text-decoration: underline;">page1.php</span><br />
<code><br />
$form = new FormBean();<br />
$form-&gt;email = "someone@something.com.au";<br />
$_SESSION['form'] = serialize($form);<br />
header("location:page2.php");<br />
</code></p>
<p><span style="text-decoration: underline;">page2.php</span><br />
<code><br />
$form =NULL;<br />
if(isset($_SESSION['form']))<br />
{<br />
$form = unserialize($_SESSION['form']);<br />
}<br />
echo $form-&gt;email;<br />
</code></p>
<p>Expected to print &#8220;someone@something.com.au&#8221; right. Usually it does. If it doesn&#8217;t and you see that all other session variables are intact except &#8216;form&#8217;, then it&#8217;s time to look at your &#8216;register_globals&#8217; setting. One of my client uses this pretty lax hosting which had this on what it has done is &#8230;.</p>
<p><span style="text-decoration: underline;">page2.php</span><br />
<code><br />
<strong>$form =NULL;</strong> <span style="color: #f67c2a;">//This sets the form bean to NULL.. wherever it is stored. Throughout the entire website. (Even IN $_SESSION)</span></code></p>
<p><code> </code></p>
<p><code>if(isset($_SESSION['form']))<br />
{<br />
$form = unserialize($_SESSION['form']);<br />
}<br />
echo $form-&gt;email;<br />
</code></p>
<p>So the <span id="SPELLING_ERROR_0" class="blsp-spelling-error">lesson</span> learnt for me was&#8230; Just check to make sure <span style="font-weight: bold;">register_<span id="SPELLING_ERROR_1" class="blsp-spelling-error"><span id="SPELLING_ERROR_0" class="blsp-spelling-error">globals</span></span></span> is <span style="font-weight: bold;">Off</span> whenever you switch to new hosting.. <span id="SPELLING_ERROR_2" class="blsp-spelling-error"><span id="SPELLING_ERROR_1" class="blsp-spelling-error">coz</span></span> that is pure EVIL.</p>
<p>How you can turn it off.. There are two different ways.</p>
<ol>
<li><span style="font-weight: bold;"><a href="http://www.php.net/ini_set"><span id="SPELLING_ERROR_3" class="blsp-spelling-error"><span id="SPELLING_ERROR_2" class="blsp-spelling-error">ini</span></span>_set</a><br />
</span></li>
<li><span style="font-weight: bold;">.<a href="http://www.askapache.com/php/custom-phpini-tips-and-tricks.html"><span id="SPELLING_ERROR_4" class="blsp-spelling-error"><span id="SPELLING_ERROR_3" class="blsp-spelling-error">htaccess</span></span></a></span></li>
</ol>
<p>This also makes me feel that PHP&#8217;s OOP implementation is either misleading , buggy or at least fundamentally different to other OOP languages like Java or C#.</p>
<p>Consider this in Java:<br />
<span style="text-decoration: underline;">FormBean.java</span><br />
<code><br />
class FormBean<br />
{<br />
public String email;<br />
}<br />
</code></p>
<p><span style="text-decoration: underline;">TestFormBean.java</span><br />
<code><br />
class TestFormBean<br />
{<br />
public static void main(String[] args)<br />
{<br />
FormBean form1 = new FormBean(); <span style="color:#F67C2A">//Create new form bean</span><br />
form1.email = "someone@something.com.au"; <span style="color:#F67C2A">//populate form bean</span></code></p>
<p><code>FormBean form2 = form1; <span style="color:#F67C2A">//Assign created form bean object to another reference variable</span><br />
form1 = null;</p>
<p></code></p>
<p><code> System.out.println(form2.email);<br />
<span style="color:#F67C2A"><br />
//would still print "someone@something.com.au"<br />
//i.e. Just setting one reference to NULL won't kill its object instance.</span><br />
}<br />
}</code><br />
I have tested similar code with PHP though&#8230; I have only realised <strong>register_globals</strong> seems to affect the ways objects and their references are handled. Like setting one reference of an object to NULL killing the object instance, which essentially renders all my other references useless.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chintoju.com/2008/07/a-particular-session-variables-value-disappearing-from-_session-in-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

