<?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>What&#039;s UP Next</title>
	<atom:link href="http://asitkatiyar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://asitkatiyar.wordpress.com</link>
	<description>Drive your thoughts</description>
	<lastBuildDate>Thu, 26 Nov 2009 04:06:32 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='asitkatiyar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1bb06f8838e4d5a8a4d733d5c74a93a3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>What&#039;s UP Next</title>
		<link>http://asitkatiyar.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://asitkatiyar.wordpress.com/osd.xml" title="What&#039;s UP Next" />
		<item>
		<title>Pranav Mistry: Master of SixthSense Technology</title>
		<link>http://asitkatiyar.wordpress.com/2009/11/19/pranav-mistry-master-of-sixthsense-technology/</link>
		<comments>http://asitkatiyar.wordpress.com/2009/11/19/pranav-mistry-master-of-sixthsense-technology/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 07:18:34 +0000</pubDate>
		<dc:creator>Asit</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[SixthSense]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://asitkatiyar.wordpress.com/?p=155</guid>
		<description><![CDATA[Pranav Mistry demoed some sixth sense technology enabled tools TEDIndia. He showed that how a physical device can interact with the world of data and information. The interesting part is that he started working on his concept tools from using the motion sensors of an ordinary computer mouse.
With the full development and the implementation of his concept devices [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=155&subd=asitkatiyar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="_mcePaste">Pranav Mistry demoed some sixth sense technology enabled tools <a href="http://www.ted.com/" target="_blank">TEDIndia</a>. He showed that how a physical device can interact with the world of data and information. The interesting part is that he started working on his concept tools from using the motion sensors of an ordinary computer mouse.</div>
<div>With the full development and the implementation of his concept devices one can:</div>
<div id="_mcePaste" style="padding-left:30px;">* watch the news as TV news printed on news paper,</div>
<div id="_mcePaste" style="padding-left:30px;">* find more details of any physical object just by taking them in one&#8217;s hands,</div>
<div id="_mcePaste" style="padding-left:30px;">* take pictures just by making frames using one&#8217;s fingers,</div>
<div id="_mcePaste" style="padding-left:30px;">* pick any picture or block of data like a physical object and drop them on your computer screen or any other paper to modify them and a lot more.</div>
<div id="_mcePaste">Microsoft&#8217;s &#8220;Surface&#8221; is also based on multi-touch and gesture recognition, but has some limitations. The concept tools presented by Pranav are really  awesome and brilliant. The constructive use of this technology will bring a revolution in the future world.</div>
<div>I think the best use of this technology to help the physically challenged people. Just imagine how helpful it would be if we can make:</div>
<div id="_mcePaste" style="padding-left:30px;">* Sixth sense enabled paper helping the deaf to display what others say,</div>
<div id="_mcePaste" style="padding-left:30px;">* Sixth sense enabled earphones which tell a blind about an object name, type, size and distance,</div>
<div id="_mcePaste" style="padding-left:30px;">* A speaking device which plays the dialogs which a dumb want to say and a lot more.</div>
<div id="_mcePaste">I really appreciate Pranav to come up with this brilliant idea.</div>
<div></div>
<div><object width="446" height="326"><param name="movie" value="http://video.ted.com/assets/player/swf/EmbedPlayer.swf"></param><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent"></param><param name="bgColor" value="#ffffff"></param> <param name="flashvars" value="vu=http://video.ted.com/talks/dynamic/PranavMistry_2009I-medium.flv&su=http://images.ted.com/images/ted/tedindex/embed-posters/PranavMistry-2009I.embed_thumbnail.jpg&vw=432&vh=240&ap=0&ti=685&introDuration=16500&adDuration=4000&postAdDuration=2000&adKeys=talk=pranav_mistry_the_thrilling_potential_of_sixthsense_tec;year=2009;theme=the_creative_spark;theme=a_taste_of_tedindia;theme=new_on_ted_com;theme=tales_of_invention;theme=what_s_next_in_tech;theme=ted_under_30;theme=design_like_you_give_a_damn;event=TEDIndia+2009;&preAdTag=tconf.ted/embed;tile=1;sz=512x288;" /><embed src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" pluginspace="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" bgColor="#ffffff" width="446" height="326" allowFullScreen="true" flashvars="vu=http://video.ted.com/talks/dynamic/PranavMistry_2009I-medium.flv&su=http://images.ted.com/images/ted/tedindex/embed-posters/PranavMistry-2009I.embed_thumbnail.jpg&vw=432&vh=240&ap=0&ti=685&introDuration=16500&adDuration=4000&postAdDuration=2000&adKeys=talk=pranav_mistry_the_thrilling_potential_of_sixthsense_tec;year=2009;theme=the_creative_spark;theme=a_taste_of_tedindia;theme=new_on_ted_com;theme=tales_of_invention;theme=what_s_next_in_tech;theme=ted_under_30;theme=design_like_you_give_a_damn;event=TEDIndia+2009;"></embed></object></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asitkatiyar.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asitkatiyar.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asitkatiyar.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asitkatiyar.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asitkatiyar.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asitkatiyar.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asitkatiyar.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asitkatiyar.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asitkatiyar.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asitkatiyar.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=155&subd=asitkatiyar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asitkatiyar.wordpress.com/2009/11/19/pranav-mistry-master-of-sixthsense-technology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59f5440eaa4da0039ccd7cf35d943072?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asitkatiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Basic Questions on PHP Part2</title>
		<link>http://asitkatiyar.wordpress.com/2009/11/16/basic-questions-on-php-part2/</link>
		<comments>http://asitkatiyar.wordpress.com/2009/11/16/basic-questions-on-php-part2/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 11:09:03 +0000</pubDate>
		<dc:creator>Asit</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Interview]]></category>
		<category><![CDATA[Web Technology]]></category>

		<guid isPermaLink="false">http://asitkatiyar.wordpress.com/?p=133</guid>
		<description><![CDATA[After getting a very good response on my earlier compilation &#8220;Basic Questions on PHP &#8220;, I am back with a new compilation of basic PHP questions on arrays.
1- How to check if a value exists in an array?
Ans- Use in_array() function for this.
Example:
&#60;?php
$sample = array(&#8220;banana&#8221;,&#8221;apple&#8221;,&#8221;pear&#8221;,&#8221;banana&#8221;);
$newvalue = &#8220;pear&#8221;;
if (in_array($newvalue,$sample)) { echo &#8220;$newvalue is already in the array!&#8221;; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=133&subd=asitkatiyar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="_mcePaste">After getting a very good response on my earlier compilation &#8220;<a class="wpgallery" href="http://asitkatiyar.wordpress.com/2006/06/10/basic-questions-on-php/" target="_blank">Basic Questions on PHP</a> &#8220;, I am back with a new compilation of basic PHP questions on arrays.</div>
<div id="_mcePaste"><span style="color:#808000;"><strong>1-</strong> How to check if a value exists in an array?</span></div>
<div id="_mcePaste"><span style="color:#003366;"><strong>Ans</strong></span><strong>-</strong> Use in_array() function for this.</div>
<div id="_mcePaste">Example:</div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">&lt;?php</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample = array(&#8220;banana&#8221;,&#8221;apple&#8221;,&#8221;pear&#8221;,&#8221;banana&#8221;);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$newvalue = &#8220;pear&#8221;;</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">if (in_array($newvalue,$sample)) { echo &#8220;$newvalue is already in the array!&#8221;; }</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">?&gt;</span></div>
<div id="_mcePaste"><span style="color:#808000;"><strong>2-</strong> How to create an array of consecutive numbers and array of alphabets?</span></div>
<div id="_mcePaste"><span style="color:#003366;"><strong>Ans:</strong></span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">&lt;?php</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$arr_of_numbers = range(1,10);//$arr_of_numbers = array(1,2,3,4,5,6,7,8,9,10)</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$arr_of_letters = range(a,m); //$arr_of_letters = array(a,b,c,d,e,f,g,h,i,j,k,l,m)</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">?&gt;</span></div>
<div id="_mcePaste"><span style="color:#808000;"><strong>3-</strong> How to reset an array?</span></div>
<div id="_mcePaste"><span style="color:#003366;"><strong>Ans: </strong></span>The reset() function does this and returns the first element of the array.</div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample = array(&#8216;itm1&#8242;,&#8217;itm2&#8242;,&#8217;itm3&#8242;,&#8217;itm4&#8242;);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$first = reset($sample);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">echo $first; //itm1</span></div>
<div id="_mcePaste"><span style="color:#808000;"><strong>4-</strong> How to count the frequency a value appears in an array?</span></div>
<div id="_mcePaste"><span style="color:#003366;"><strong>Ans:</strong></span> array_count_values() function does this operation. It returns an associative array with values as keys and their fequencies as values.</div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">&lt;?php</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample_arr = array(1,0,1,2,0,2,2,2,3,4,2,5,2,3,5,3,1,5);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$most_popular = array_count_values($sample_arr);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">print_r($most_popular);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">?&gt;</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">output: Array(</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[1] =&gt; 3</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[0] =&gt; 2</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[2] =&gt; 6</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[3] =&gt; 3</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[4] =&gt; 1</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[5] =&gt; 3</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">)</span></div>
<div id="_mcePaste"><span style="color:#808000;"><strong>5-</strong> How to remove last element of an array?</span></div>
<div id="_mcePaste"><span style="color:#003366;"><strong>Ans:</strong></span> array_pop() function does this.</div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample = array(&#8220;One&#8221;,&#8221;Two&#8221;,&#8221;Three&#8221;,&#8221;Four&#8221;,&#8221;Five&#8221;,&#8221;Six&#8221;);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$last = array_pop($sample);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">echo &#8220;last element is &#8220;.$last; //last element is Six&#8230;</span></div>
<div id="_mcePaste"><span style="color:#808000;"><strong>6-</strong> How to sort an array with alphanumeric values?</span></div>
<div id="_mcePaste"><span style="color:#003366;"><strong>Ans:</strong></span> natsort() function will do this.</div>
<div id="_mcePaste">Example:</div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">&lt;?php</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample = array(&#8220;1.gif&#8221;,&#8221;2.png&#8221;,&#8221;20.jpg&#8221;,&#8221;10.gif&#8221;);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">natsort($sample);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">print_r($sample);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">?&gt;</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">Output:</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">Array (</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[0] =&gt; 1.gif</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[1] =&gt; 2.png</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[3] =&gt; 10.gif</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[2] =&gt; 20.jpg</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">)</span></div>
<div id="_mcePaste"><span style="color:#808000;"><strong>7-</strong> How to change an array into string?</span></div>
<div id="_mcePaste"><span style="color:#003366;"><strong>Ans:</strong></span> We can achieve this using &#8220;implode()&#8221; function.</div>
<div id="_mcePaste">Example:</div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">&lt;?php</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample = array(&#8220;I&#8221;,&#8221;love&#8221;,&#8221;PHP&#8221;);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample_to_string = implode(&#8221; &#8220;, $sample);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">echo &#8220;$sample_to_string&#8221;;//I love PHP</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">?&gt;</span></div>
<div id="_mcePaste"><span style="color:#808000;"><strong>8-</strong> How to remove duplicate values from an array?</span></div>
<div id="_mcePaste"><span style="color:#003366;"><strong>Ans:</strong></span> The array_unique() function will do this.</div>
<div id="_mcePaste">Example:</div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">&lt;?php</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample = array(&#8220;pear&#8221;,&#8221;apple&#8221;,&#8221;pear&#8221;,&#8221;banana&#8221;);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample_to_unique = array_unique($sample);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">print_r($sample_to_unique);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">?&gt;</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">Output:</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">Array</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">(</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[0] =&gt; pear</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[1] =&gt; apple</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[2] =&gt; banana</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">)</span></div>
<div id="_mcePaste"><span style="color:#808000;"><strong>9-</strong> How to interchange key to values and visa versa of an array?</span></div>
<div id="_mcePaste"><span style="color:#003366;"><strong>Ans: </strong></span>We can do this using array_flip() function.</div>
<div id="_mcePaste">Example:</div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">&lt;?php</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample = array(&#8220;John&#8221;,&#8221;Alice&#8221;,&#8221;Boby&#8221;);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">print_r($sample);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$flipped = array_flip($sample);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">print_r($flipped);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">?&gt;</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">Output:</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">Array</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">(</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[0] =&gt; John</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[1] =&gt; Alice</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[2] =&gt; Boby</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">)</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">Array</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">(</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[John] =&gt; 0</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[Alice] =&gt; 1</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[Boby] =&gt; 2</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">)</span></div>
<div id="_mcePaste"><span style="color:#808000;"><strong>10-</strong> How to add an element at the begining of an array?</span></div>
<div id="_mcePaste"><span style="color:#003366;"><strong>Ans:</strong></span> The array_unshift() does this. This function returns the number of elements in the array after additions of the new element.</div>
<div id="_mcePaste">Example:</div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">&lt;?php</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$sample = array(2,3,4,5,6);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">$no_sample = array_unshift($sample,1);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">echo &#8220;Number of elements: $no_sample \n\n&#8221;;</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">print_r($sample);</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">?&gt;</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">Output:</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">Number of elements: 10</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">Array</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">(</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[0] =&gt; 1</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[1] =&gt; 2</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[2] =&gt; 3</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[3] =&gt; 4</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[4] =&gt; 5</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">[5] =&gt; 6</span></div>
<div id="_mcePaste" style="padding-left:30px;"><span style="color:#ff9900;">)</span></div>
<div id="_mcePaste">Hope these questions will help the PHP folks. I will come soon with some new PHP stuff.</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asitkatiyar.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asitkatiyar.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asitkatiyar.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asitkatiyar.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asitkatiyar.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asitkatiyar.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asitkatiyar.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asitkatiyar.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asitkatiyar.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asitkatiyar.wordpress.com/133/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=133&subd=asitkatiyar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asitkatiyar.wordpress.com/2009/11/16/basic-questions-on-php-part2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59f5440eaa4da0039ccd7cf35d943072?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asitkatiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>I Love Firefox</title>
		<link>http://asitkatiyar.wordpress.com/2009/11/13/i-love-firefox/</link>
		<comments>http://asitkatiyar.wordpress.com/2009/11/13/i-love-firefox/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 06:49:02 +0000</pubDate>
		<dc:creator>Asit</dc:creator>
				<category><![CDATA[Myidea]]></category>

		<guid isPermaLink="false">http://asitkatiyar.wordpress.com/?p=127</guid>
		<description><![CDATA[
Nov 09th is the birthday of Firefox and this year it has completed 5 years. I can say these five years firefox has  shown continuous growth to success and popularity. Being a web developer I can bet that firefox is the best internet
browser among others. Most of the open source web developers prefer to use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=127&subd=asitkatiyar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="_mcePaste"><img class="alignleft size-full wp-image-128" title="ff" src="http://asitkatiyar.files.wordpress.com/2009/11/ff.jpg?w=97&#038;h=94" alt="ff" width="97" height="94" /></div>
<div>Nov 09th is the birthday of Firefox and this year it has completed 5 years. I can say these five years firefox has  shown continuous growth to success and popularity. Being a web developer I can bet that firefox is the best internet</div>
<div id="_mcePaste">browser among others. Most of the open source web developers prefer to use this as default web browser. I can recall that I used IE only once just to download firefox on my personal computer. Our most of the development time goes in fixing design related bugs on IE and this is really frustrating.</div>
<div id="_mcePaste">Many many thanks to the firefox development community.</div>
<div></div>
<blockquote>
<div><a href="http://www.spreadfirefox.com/5years/en-US/"><span style="color:#ff6600;">Cheers to Firefox and many many happy returns of the day</span></a>.</div>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asitkatiyar.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asitkatiyar.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asitkatiyar.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asitkatiyar.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asitkatiyar.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asitkatiyar.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asitkatiyar.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asitkatiyar.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asitkatiyar.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asitkatiyar.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=127&subd=asitkatiyar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asitkatiyar.wordpress.com/2009/11/13/i-love-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59f5440eaa4da0039ccd7cf35d943072?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asitkatiyar</media:title>
		</media:content>

		<media:content url="http://asitkatiyar.files.wordpress.com/2009/11/ff.jpg" medium="image">
			<media:title type="html">ff</media:title>
		</media:content>
	</item>
		<item>
		<title>Credit Card Traps</title>
		<link>http://asitkatiyar.wordpress.com/2009/11/12/credit-card-traps/</link>
		<comments>http://asitkatiyar.wordpress.com/2009/11/12/credit-card-traps/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 09:52:16 +0000</pubDate>
		<dc:creator>Asit</dc:creator>
				<category><![CDATA[Myidea]]></category>

		<guid isPermaLink="false">http://asitkatiyar.wordpress.com/?p=119</guid>
		<description><![CDATA[The credit card is one of the very good facilities offered by banks. But some times this facility becomes a hassle for you and you feel like trapped. I&#8217;ve been through same kind of experience last month.
I got last month&#8217;s credit card statement. I was shocked to see that the bank added Rs.2000 for annual card [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=119&subd=asitkatiyar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="_mcePaste"><img class="alignleft size-full wp-image-120" title="card" src="http://asitkatiyar.files.wordpress.com/2009/11/card.jpg?w=87&#038;h=78" alt="card" width="87" height="78" />The credit card is one of the very good facilities offered by banks. But some times this facility becomes a hassle for you and you feel like trapped. I&#8217;ve been through same kind of experience last month.</div>
<div id="_mcePaste">I got last month&#8217;s credit card statement. I was shocked to see that the bank added Rs.2000 for annual card fee, Rs.1000 for add-on card annual fee and some Rs.400 for the service tax against these annual charges. That made mycredit card due shoot-up to almost double.</div>
<div id="_mcePaste">I called to the bank customer care to resolve the issue. The executive told me the same story written in the statement. I claimed that this was not mentioned at the time of applying for the card. The executive then assured me that they are waving off those extra charges. She then said, &#8220;Sir we have a very good offer for the heath insurance policy. Just listen this offer&#8221;. I thought that there is no harm at least in listening the offer. She forwared the call to other (insurance) company executive, they tied up with. Then he started explaining the company health insurance offer. The guy was so smart and I don&#8217;t know when he snared me. He was about the activate the health policy and was going to deduct the policy premium from my credit card.</div>
<div id="_mcePaste">I scent that I am in trap, I suddenly stopped him. I totally refused to activate any policy linked to my credit card.</div>
<div id="_mcePaste">Then I came to know, why the bank added that extra amount. If one gets those extra charges and doesn&#8217;t call them, then he will have to pay that amount. If he calls regarding this, the bank will try to snare him in some offers. In both the cases the bank takes the benifit.</div>
<div id="_mcePaste">I would suggest everyone to be very careful with the use of credit cards. If you are smart enough, you will enjoy it&#8217;s benefits. In other case the facility will become hassle for you.</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asitkatiyar.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asitkatiyar.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asitkatiyar.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asitkatiyar.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asitkatiyar.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asitkatiyar.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asitkatiyar.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asitkatiyar.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asitkatiyar.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asitkatiyar.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=119&subd=asitkatiyar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asitkatiyar.wordpress.com/2009/11/12/credit-card-traps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59f5440eaa4da0039ccd7cf35d943072?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asitkatiyar</media:title>
		</media:content>

		<media:content url="http://asitkatiyar.files.wordpress.com/2009/11/card.jpg" medium="image">
			<media:title type="html">card</media:title>
		</media:content>
	</item>
		<item>
		<title>AJAX Request Using YUI</title>
		<link>http://asitkatiyar.wordpress.com/2009/11/12/ajax-request-using-yui/</link>
		<comments>http://asitkatiyar.wordpress.com/2009/11/12/ajax-request-using-yui/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 05:57:13 +0000</pubDate>
		<dc:creator>Asit</dc:creator>
				<category><![CDATA[YUI]]></category>

		<guid isPermaLink="false">http://asitkatiyar.wordpress.com/?p=115</guid>
		<description><![CDATA[Ajax stands for &#8220;Asynchronous Javascript And XML&#8221;. The interactions between client and server in the standard web applications are &#8220;synchronous&#8221;. This means that one request has to wait for other to complete. In asynchronous request scenario the multiple requests and responses are independent of each other. That means one request will not have to wait for the other [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=115&subd=asitkatiyar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="_mcePaste">Ajax stands for &#8220;Asynchronous Javascript And XML&#8221;. The interactions between client and server in the standard web applications are &#8220;synchronous&#8221;. This means that one request has to wait for other to complete. In asynchronous request scenario the multiple requests and responses are independent of each other. That means one request will not have to wait for the other to complete.</div>
<div id="_mcePaste"><a href="http://developer.yahoo.com/yui/" target="_blank">Yahoo User </a><a href="http://developer.yahoo.com/yui/" target="_blank">Inertface</a> provides a good way to generate the XMLHttpRequest (Ajax request) through its &#8220;<a href="http://developer.yahoo.com/yui/connection/" target="_blank">Connection Manager</a>&#8220;. Here I am giving a very simple example to use YUI connection manager for this:</div>
<p style="padding-left:30px;"><span style="color:#808080;">&lt;html&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;head&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;title&gt;Simple Ajax Request&lt;/title&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://yui.yahooapis.com/2.7.0/build/yahoo/yahoo-min.js&#8221;&gt;&lt;/script&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://yui.yahooapis.com/2.7.0/build/event/event-min.js&#8221;&gt;&lt;/script&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://yui.yahooapis.com/2.7.0/build/connection/connection-min.js&#8221;&gt;&lt;/script&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;/head&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;body&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;h1&gt;Simple Example of creating Ajax Request&lt;/h1&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;script&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> //The callback function:</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> var callback = {</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> success: function(a){</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> //Assign the resonse to the HTML element</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> </span><span style="white-space:pre;"><span style="color:#808080;"> </span></span><span style="color:#808080;"> document.getElementById(&#8216;response&#8217;).innerHTML = a.responseText;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> },</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> failure: function(a){</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> //Alert the failure message</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> alert(a.statusText);</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> }</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> }</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> //Make the Ajax request:</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> function ajaxRequest(){</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> var newRequest = YAHOO.util.Connect.asyncRequest(&#8216;GET&#8217;, &#8216;Request/Url&#8217;, callback);</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> }</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;/script&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;!&#8211;The div element in which the resonse will be shown &#8211;&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;div id=&#8221;response&#8221;&gt;&lt;/div&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;input type=&#8221;button&#8221; value=&#8221;Create Request&#8221; onClick=&#8221;ajaxRequest();&#8221;&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;"> &lt;/body&gt;</span></p>
<p style="padding-left:30px;"><span style="color:#808080;">&lt;/html&gt;</span></p>
<p><span style="color:#000000;">Hope this example helped in better understanding of Ajax using YUI. </span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asitkatiyar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asitkatiyar.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asitkatiyar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asitkatiyar.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asitkatiyar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asitkatiyar.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asitkatiyar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asitkatiyar.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asitkatiyar.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asitkatiyar.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=115&subd=asitkatiyar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asitkatiyar.wordpress.com/2009/11/12/ajax-request-using-yui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59f5440eaa4da0039ccd7cf35d943072?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asitkatiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>YUI Profiler</title>
		<link>http://asitkatiyar.wordpress.com/2009/11/05/yui-profiler/</link>
		<comments>http://asitkatiyar.wordpress.com/2009/11/05/yui-profiler/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 11:35:16 +0000</pubDate>
		<dc:creator>Asit</dc:creator>
				<category><![CDATA[YUI]]></category>

		<guid isPermaLink="false">http://asitkatiyar.wordpress.com/?p=105</guid>
		<description><![CDATA[Yahoo User Interface (YUI) provides a very good feature to profile your javascript code. One can measure the performance of their code in the terms of the number of times the function call, average time, minimum time,
maximum time taken by a code block or script to execute. The best feature I feel with YUI code profiler [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=105&subd=asitkatiyar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div id="_mcePaste">Yahoo User Interface (YUI) provides a very good feature to profile your javascript code. One can measure the performance of their code in the terms of the number of times the function call, average time, minimum time,</div>
<div id="_mcePaste">maximum time taken by a code block or script to execute. The best feature I feel with YUI code profiler is the ability to profile a specific code block like functions. Here I am going to present how to create a profile using YUI profiler for a code block:</div>
<div id="_mcePaste"><span style="color:#993300;">Include the code profiler source file in your script:</span></div>
<div style="padding-left:30px;">&lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://yui.yahooapis.com/2.7.0/build/yahoo/yahoo.js&#8221;&gt;&lt;/script&gt;</div>
<div id="_mcePaste" style="padding-left:30px;">&lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://yui.yahooapis.com/2.7.0/build/profiler/profiler-min.js&#8221;&gt;&lt;/script&gt;</div>
<div id="_mcePaste"><span style="color:#993300;">HTML block:</span></div>
<div id="_mcePaste" style="padding-left:30px;">&lt;div id=&#8221;p_report&#8221;&gt;&lt;/div&gt;</div>
<div id="_mcePaste" style="padding-left:30px;">&lt;input type=&#8221;button&#8221; name=&#8221;d_profile&#8221; id=&#8221;d_profile&#8221; value=&#8221;Create Profile&#8221;&gt;</div>
<div><span style="color:#993300;">JavaScript:</span></div>
<div id="_mcePaste" style="padding-left:30px;">YAHOO.util.Event.on(&#8216;d_profile&#8217;, &#8216;click&#8217;, function(){</div>
<div id="_mcePaste" style="padding-left:30px;">YAHOO.tool.Profiler.registerFunction(&#8220;pObject.sayHello&#8221;);</div>
<div id="_mcePaste" style="padding-left:30px;">var pObject = {</div>
<div id="_mcePaste" style="padding-left:30px;">sayHello : function(){</div>
<div id="_mcePaste" style="padding-left:30px;">return &#8220;Hello&#8221;;</div>
<div id="_mcePaste" style="padding-left:30px;">}</div>
<div id="_mcePaste" style="padding-left:30px;">};</div>
<div id="_mcePaste" style="padding-left:30px;">//register method on a global object &#8211; no second argument needed</div>
<div id="_mcePaste" style="padding-left:30px;">YAHOO.tool.Profiler.registerFunction(&#8220;pObject.sayHello&#8221;);</div>
<div id="_mcePaste" style="padding-left:30px;">//alternate &#8211; providing second argument</div>
<div id="_mcePaste" style="padding-left:30px;">YAHOO.tool.Profiler.registerFunction(&#8220;pObject.sayHello&#8221;, pObject);</div>
<div id="_mcePaste" style="padding-left:30px;">//call this function</div>
<div id="_mcePaste" style="padding-left:30px;">var hello = pObject.sayHello();</div>
<div id="_mcePaste" style="padding-left:30px;">var calls = YAHOO.tool.Profiler.getCallCount(&#8220;pObject.sayHello&#8221;);</div>
<div id="_mcePaste" style="padding-left:30px;">var max = YAHOO.tool.Profiler.getMax(&#8220;pObject.sayHello&#8221;);</div>
<div id="_mcePaste" style="padding-left:30px;">var min = YAHOO.tool.Profiler.getMin(&#8220;pObject.sayHello&#8221;);</div>
<div id="_mcePaste" style="padding-left:30px;">var avg = YAHOO.tool.Profiler.getAverage(&#8220;pObject.sayHello&#8221;);</div>
<div id="_mcePaste" style="padding-left:30px;">YAHOO.tool.Profiler.unregisterFunction(&#8220;pObject.sayHello&#8221;);</div>
<div id="_mcePaste" style="padding-left:30px;">document.getElementById(&#8216;p_report&#8217;).innerHTML =</div>
<div id="_mcePaste" style="padding-left:30px;">&#8220;pObject.sayHello(): was called &#8221; + calls +&#8221; times.&lt;br&gt;&#8221;+</div>
<div id="_mcePaste" style="padding-left:30px;">&#8220;The average time was &#8221; + avg + &#8220;ms.&#8221;+&#8221;&lt;br&gt;&#8221;+</div>
<div id="_mcePaste" style="padding-left:30px;">&#8220;The max time was &#8221; + max + &#8221; ms.&#8221; +&#8221;,&lt;br&gt;&#8221;+</div>
<div id="_mcePaste" style="padding-left:30px;">&#8220;The min time was &#8221; + min + &#8221; ms.&#8221;;</div>
<div id="_mcePaste" style="padding-left:30px;">});</div>
<p>The HTML part will display a button &#8220;Create Profile&#8221;. Clicking on that button will generate the report of the pObject.sayHello() function call and display the result in the div with id &#8220;p_report&#8221;.</p>
<p>This is just an example of how to use <a href="http://developer.yahoo.com/yui/profiler/" target="_blank">YUI code profiler</a>.  Hope this will help creating code profiles.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asitkatiyar.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asitkatiyar.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asitkatiyar.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asitkatiyar.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asitkatiyar.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asitkatiyar.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asitkatiyar.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asitkatiyar.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asitkatiyar.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asitkatiyar.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=105&subd=asitkatiyar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asitkatiyar.wordpress.com/2009/11/05/yui-profiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59f5440eaa4da0039ccd7cf35d943072?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asitkatiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Badi Mushkil se Duniya me Dost Milte Hai&#8230;.</title>
		<link>http://asitkatiyar.wordpress.com/2009/04/07/badi-mushkil-se-duniya-me-dost-milte-hai/</link>
		<comments>http://asitkatiyar.wordpress.com/2009/04/07/badi-mushkil-se-duniya-me-dost-milte-hai/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 10:15:44 +0000</pubDate>
		<dc:creator>Asit</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://asitkatiyar.wordpress.com/?p=90</guid>
		<description><![CDATA[This is a line of a famous Hindi song by Kishor Da. This line completely fits to my friends. 
My father got a major heart attack and I was in Bangalore. I had to rush to my native place, Kanpur. Before leaving, I just informed one of best friend around me about my arrival. I informed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=90&subd=asitkatiyar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is a line of a famous Hindi song by Kishor Da. This line completely fits to my friends. </p>
<p>My father got a major heart attack and I was in Bangalore. I had to rush to my native place, Kanpur. Before leaving, I just informed one of best friend around me about my arrival. I informed other and he booked the flight ticket on-line. I reached  Delhi then from there I took train and reached Kanpur. I was trying to grab an auto, but what I saw another friend  already waiting for me. He took me directly to the hospital where papa was admitted. Within half an hour all my true  friends gathered at the hospital and offered to stay there for any kind of requirement.</p>
<p>We 5 guys stayed at the hospital for full 7 nights without a single nap for a single minute. In that span of time all of  them slept just for 2-3 hours in day time. Although all of them were very busy in there work schedule and one of them was fasting  for 8 days due to Navrata, they took care of my dad with me. Although they are not strong financially, they offered the financial support. But at that time  I required moral support very badly which they provided just by their presence.</p>
<p>Now my dad is out of danger and about to be released from the hospital within 2-3 days. After being assured about  papa&#8217;s health, I came back to Bangalore, but friends are still there supporting my family.  I will not give thanks to them for their efforts but will pray to God to make me available whenever any of my friends  seeks my presence.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asitkatiyar.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asitkatiyar.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asitkatiyar.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asitkatiyar.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asitkatiyar.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asitkatiyar.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asitkatiyar.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asitkatiyar.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asitkatiyar.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asitkatiyar.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=90&subd=asitkatiyar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asitkatiyar.wordpress.com/2009/04/07/badi-mushkil-se-duniya-me-dost-milte-hai/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59f5440eaa4da0039ccd7cf35d943072?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asitkatiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Funny things about Ghajini:</title>
		<link>http://asitkatiyar.wordpress.com/2009/03/26/funny-things-about-ghajini/</link>
		<comments>http://asitkatiyar.wordpress.com/2009/03/26/funny-things-about-ghajini/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 10:47:26 +0000</pubDate>
		<dc:creator>Asit</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://asitkatiyar.wordpress.com/?p=85</guid>
		<description><![CDATA[Amir Khan&#8217;s latest released movie Ghajini is the biggest Bollywood hit of the year 2008. I have seen the movie and appreciated a lot. I could find good humor in the happy part of the movie. but the kids of this generation are smarter and more humorous than the adults. Want to know how? Just [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=85&subd=asitkatiyar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Amir Khan&#8217;s latest released movie Ghajini is the biggest Bollywood hit of the year 2008. I have seen the movie and appreciated a lot. I could find good humor in the happy part of the movie. but the kids of this generation are smarter and more humorous than the adults. Want to know how? Just read below&#8230;.</p>
<div id="attachment_84" class="wp-caption alignleft" style="width: 510px"><img class="size-full wp-image-84" title="image1233726454789" src="http://asitkatiyar.files.wordpress.com/2009/03/image1233726454789.gif?w=500&#038;h=311" alt="fun in Ghajini" width="500" height="311" /><p class="wp-caption-text">Humor in Ghajini</p></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asitkatiyar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asitkatiyar.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asitkatiyar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asitkatiyar.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asitkatiyar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asitkatiyar.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asitkatiyar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asitkatiyar.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asitkatiyar.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asitkatiyar.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=85&subd=asitkatiyar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asitkatiyar.wordpress.com/2009/03/26/funny-things-about-ghajini/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59f5440eaa4da0039ccd7cf35d943072?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asitkatiyar</media:title>
		</media:content>

		<media:content url="http://asitkatiyar.files.wordpress.com/2009/03/image1233726454789.gif" medium="image">
			<media:title type="html">image1233726454789</media:title>
		</media:content>
	</item>
		<item>
		<title>Zend Framework:: Helper method for creating breadcrumbs</title>
		<link>http://asitkatiyar.wordpress.com/2009/03/24/zend-framework-helper-method-for-creating-breadcrumbs/</link>
		<comments>http://asitkatiyar.wordpress.com/2009/03/24/zend-framework-helper-method-for-creating-breadcrumbs/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 10:33:38 +0000</pubDate>
		<dc:creator>Asit</dc:creator>
				<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://asitkatiyar.wordpress.com/?p=80</guid>
		<description><![CDATA[Here I am going to show how one can create breadcrumbs in the web application based on Zend Framework. This can be achieved by creating a helper method. Before creating helper method, we need to do the following exercise:

Create Zend view object,
Add view script path,
Add the default helper path to the view object,

Now lets start [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=80&subd=asitkatiyar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Here I am going to show how one can create breadcrumbs in the web application based on Zend Framework. This can be achieved by creating a helper method. Before creating helper method, we need to do the following exercise:</p>
<ul>
<li>Create Zend view object,</li>
<li>Add view script path,</li>
<li>Add the default helper path to the view object,</li>
</ul>
<p>Now lets start step by step:</p>
<p><strong>Creating Zend view object:</strong></p>
<blockquote><p>$view = Zend_View();</p></blockquote>
<p><strong>Adding view script path:</strong></p>
<blockquote><p>$viewPath = &#8220;path/to/viewsDirectory&#8221;;<br />
$view-&gt;addScriptPath($viewPath);</p></blockquote>
<p><strong>Adding the default helper path to the vew object:</strong></p>
<blockquote><p>$helperPath = &#8220;path/to/helperDirectory&#8221;;      Zend_Controller_Action_HelperBroker::getStaticHelper(&#8216;viewRenderer&#8217;)-&gt;setView($view);<br />
$view-&gt;addHelperPath($helperPath, &#8216;Helper_&#8217;);</p></blockquote>
<p>Now creating the class for the breadcrumbs:</p>
<blockquote><p>class Helper_BreadCrumbs {</p>
<p>public function breadCrumb(){<br />
$cFront = Zend_Controller_Front::getInstance();<br />
$module = $cFront-&gt;getRequest()-&gt;getModuleName();<br />
$module = strtolower($module);</p>
<p>$controller = $cFront-&gt;getRequest()-&gt;getControllerName();<br />
$controller = strtolower($controller);</p>
<p>$action = $cFront-&gt;getRequest()-&gt;getActionName();<br />
$action = strtolower($action);</p>
<p>if($module == &#8220;default&#8221; &amp;&amp; $controller == &#8220;index&#8221; &amp;&amp; $action == &#8220;index&#8221;){<br />
return;<br />
}<br />
//Home link<br />
$home = &#8216;&lt;a href=&#8221;/&#8221;&gt;Home&lt;/a&gt;&#8217;;</p>
<p>//start breadcrumbs<br />
$bCrumbs = $home . &#8220;::&#8221;;<br />
if($action == &#8220;index&#8221;){<br />
$bCrumbs .= $controller;<br />
}<br />
else{<br />
$bCrumbs .= &#8220;&lt;a href=&#8217;/$controller&#8217;&gt;$controller&lt;/a&gt;::<br />
&lt;a href=&#8217;/$controller/$action&#8217;&gt;$action&lt;/a&gt;&#8221;;<br />
}</p>
<p>return $bCrumbs;<br />
}<br />
}</p></blockquote>
<p>Hope this article will help the web application users to indicate &#8220;where are you&#8221;.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asitkatiyar.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asitkatiyar.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asitkatiyar.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asitkatiyar.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asitkatiyar.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asitkatiyar.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asitkatiyar.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asitkatiyar.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asitkatiyar.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asitkatiyar.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=80&subd=asitkatiyar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asitkatiyar.wordpress.com/2009/03/24/zend-framework-helper-method-for-creating-breadcrumbs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59f5440eaa4da0039ccd7cf35d943072?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asitkatiyar</media:title>
		</media:content>
	</item>
		<item>
		<title>Zend Framework:: Caching the database query results</title>
		<link>http://asitkatiyar.wordpress.com/2009/03/20/zend-framework-caching-the-database-query-results/</link>
		<comments>http://asitkatiyar.wordpress.com/2009/03/20/zend-framework-caching-the-database-query-results/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 09:52:29 +0000</pubDate>
		<dc:creator>Asit</dc:creator>
				<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://asitkatiyar.wordpress.com/?p=76</guid>
		<description><![CDATA[Caching is basically used to improve the performance of the application. Your application may consists of multiple expensive queries ruining the application performance.  The Zend_Cache component of Zend Framework provides a good feature to improve the page performance by caching the database query results. Here is the sample code :
// Creating the cache options
$frontend = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=76&subd=asitkatiyar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Caching is basically used to improve the performance of the application. Your application may consists of multiple expensive queries ruining the application performance.  The Zend_Cache component of Zend Framework provides a good feature to improve the page performance by caching the database query results. Here is the sample code :</p>
<blockquote><p><span style="color:#800080;">// Creating the cache options<br />
$frontend = array(<br />
&#8216;lifetime&#8217; =&gt; 86400, // cache lifetime of 24 hours (time is in seconds)<br />
&#8216;automatic_serialization&#8217; =&gt; true  //default is false<br />
);</span></p>
<p><span style="color:#800080;">$cachedir = /path/to/cacheDirectory;<br />
if(!is_dir($cachedir)){<br />
mkdir($cachedir,0755);<br />
}</span></p>
<p><span style="color:#800080;">$backend = array(&#8216;cache_dir&#8217; =&gt; $cachedir);</span></p>
<p><span style="color:#800080;">// Getting a Zend_Cache_Core object<br />
$zend_cache = Zend_Cache::factory(&#8216;Core&#8217;, &#8216;File&#8217;, $frontend, $backend);</span></p>
<p><span style="color:#800080;">$result = run_query($zend_cache);<br />
print_r($result);</span></p>
<p><span style="color:#800080;">function run_query($cacheObj){<br />
$q = &#8220;Database query&#8221;;<br />
if(!$result = $cacheObj-&gt;cache-&gt;load(&#8220;myresult&#8221;)){<br />
$db = Zend_Db::factory(DB_connection_parameters);<br />
$result = $db-&gt;fetchAll($q);<br />
$cacheObj-&gt;save($result, &#8220;myresult&#8221;);<br />
}<br />
else {<br />
echo &#8220;This result is from cache.&#8221;;<br />
}<br />
return $result;<br />
}</span></p></blockquote>
<p><span style="color:#800000;">Caution: </span>You should give the unique name in the &#8220;load(&#8216;name&#8217;) and save(&#8216;name&#8217;)&#8221; functions.<br />
Otherwise you will get the same result on the pages where the query is intended to produce<br />
different results.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asitkatiyar.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asitkatiyar.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asitkatiyar.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asitkatiyar.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asitkatiyar.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asitkatiyar.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asitkatiyar.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asitkatiyar.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asitkatiyar.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asitkatiyar.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asitkatiyar.wordpress.com&blog=250539&post=76&subd=asitkatiyar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asitkatiyar.wordpress.com/2009/03/20/zend-framework-caching-the-database-query-results/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/59f5440eaa4da0039ccd7cf35d943072?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">asitkatiyar</media:title>
		</media:content>
	</item>
	</channel>
</rss>