<?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>Amit Yadav</title>
	<atom:link href="http://www.amityadav.name/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.amityadav.name</link>
	<description>Programming solution</description>
	<lastBuildDate>Fri, 03 Sep 2010 22:05:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Rupee on the Web</title>
		<link>http://www.amityadav.name/rupee-on-the-web/</link>
		<comments>http://www.amityadav.name/rupee-on-the-web/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 14:47:24 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Internet News]]></category>
		<category><![CDATA[rupee]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=591</guid>
		<description><![CDATA[Two young Indian techies have developed a code for the new rupee symbol for the internet. WebRupee is a web Application Programming Interface(API) for the new Indian rupee symbol. This makes the Rupee symbol available to everyone on the web. The API provides a cross browser support for the Rupee symbol. Here is the code [...]]]></description>
			<content:encoded><![CDATA[<p>Two young Indian techies have developed a code for the new rupee symbol for the internet.<br />
WebRupee is a web <strong>A</strong>pplication <strong>P</strong>rogramming <strong>I</strong>nterface(API) for the new Indian rupee symbol. This makes the Rupee symbol available to everyone on the web. The API provides a cross browser support for the Rupee symbol.</p>
<p>Here is the code through which you can get this symbol on the web.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p591code2'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5912"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p591code2"><pre class="html" style="font-family:monospace;">	Rupee
	&lt;!--
	&lt;link rel=&quot;stylesheet&quot; href=&quot;http://cdn.webrupee.com/font&quot; mce_href=&quot;http://cdn.webrupee.com/font&quot; type=&quot;text/css&quot; media=&quot;screen&quot; title=&quot;no title&quot; charset=&quot;utf-8&quot;&gt;--&gt;
	&lt;!-- 	       @font-face{font-family: 'WebRupee';                src: url('http://cdn.webrupee.com/WebRupee.V2.0.eot');                src: local('WebRupee'), url('http://cdn.webrupee.com/WebRupee.V2.0.ttf') format('truetype'),  url('http://cdn.webrupee.com/WebRupee.V2.0.woff') format('woff'), url('http://cdn.webrupee.com/WebRupee.V2.0.svg') format('svg');font-weight: normal;font-style: normal;} .WebRupee{font-family: 'WebRupee';} --&gt;
	&lt;script src=&quot;http://cdn.webrupee.com/js&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:0--&gt;&lt;/script&gt;
&nbsp;
	&lt;span class=&quot;WebRupee&quot;&gt;Rs&lt;/span&gt; 200</pre></td></tr></table></div>

<style type="text/css" media="screen">
		@font-face{font-family: 'WebRupee';src: url('http://cdn.webrupee.com/WebRupee.V2.0.eot');src: local('WebRupee'), url('http://cdn.webrupee.com/WebRupee.V2.0.ttf') format('truetype'),  url('http://cdn.webrupee.com/WebRupee.V2.0.woff') format('woff'), url('http://cdn.webrupee.com/WebRupee.V2.0.svg') format('svg');font-weight: normal;font-style: normal;}
.WebRupee{font-family: 'WebRupee';}
	</style>
<p>	<script src="http://cdn.webrupee.com/js" type="text/javascript"></script><br />
	<span class="WebRupee" style="font-size:16px;font-weight:bold;">Rs</span> 200</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/rupee-on-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animation: Ólafur Arnalds – Ljósið</title>
		<link>http://www.amityadav.name/animation-olafur-arnalds-%e2%80%93-ljosi%c3%b0/</link>
		<comments>http://www.amityadav.name/animation-olafur-arnalds-%e2%80%93-ljosi%c3%b0/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 08:31:36 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Information]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=587</guid>
		<description><![CDATA[http://www.ndesign-studio.com/blog/animation-olafur-arnalds-ljosi%C3%B0 Ólafur Arnalds &#8211; Ljósið (Official Music Video) from Erased Tapes on Vimeo.]]></description>
			<content:encoded><![CDATA[<p>http://www.ndesign-studio.com/blog/animation-olafur-arnalds-ljosi%C3%B0 <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="225" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=6284199&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed type="application/x-shockwave-flash" width="400" height="225" src="http://vimeo.com/moogaloop.swf?clip_id=6284199&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/6284199">Ólafur Arnalds &#8211; Ljósið (Official Music Video)</a> from <a href="http://vimeo.com/erasedtapes">Erased Tapes</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/animation-olafur-arnalds-%e2%80%93-ljosi%c3%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP Paginate Count with group by</title>
		<link>http://www.amityadav.name/cakephp-paginate-count-with-group-by/</link>
		<comments>http://www.amityadav.name/cakephp-paginate-count-with-group-by/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 09:08:04 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=584</guid>
		<description><![CDATA[I am working on a CakePHP project these days, today i ran into a different problem with CakePHP. Sometimes i feel that there are small-small things that are sometimes missed by the Cake developers, but thank God that there are some workarounds available to them.  Here is the problem statement that i encountered, i had [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on a CakePHP project these days, today i ran into a different problem with CakePHP. Sometimes i feel that there are small-small things that are sometimes missed by the Cake developers, but thank God that there are some workarounds available to them.  Here is the problem statement that i encountered, i had a table in which i was having duplicate records and i wanted to show only distinct records in the data grid which was using the CakePHP paginator class to create a paginated data grid.</p>
<p>Now to show only the distinct rows i used the group by clause to eliminate the duplicate records, the records were coming fine but when i saw the paging it was not working right at all. The problem was that the paginator&#8217;s &#8220;paginateCount&#8221; function was also considering the &#8220;Group By&#8221; clause while doing the counting of the total records. This was crazy.</p>
<p>I searched through Google to get a solution to that and found <a href="https://trac.cakephp.org/ticket/5123" target="_blank">this </a>link, where people have already reported a his error to the cake developers. The solution that worked for me was that i needed to override the &#8220;paginateCount&#8221; function and use a different function in my model to get the correct number of total records. I added this function to my model and whola it worked for me. Here is the function that needs to be added model to get things right.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p584code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5844"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code" id="p584code4"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> paginateCount<span style="color: #009900;">&#40;</span><span style="color: #000088;">$conditions</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #000088;">$recursive</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$extra</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$parameters</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/compact"><span style="color: #990000;">compact</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'conditions'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'recursive'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$extra</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'group'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$parameters</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'fields'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$extra</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'group'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_string"><span style="color: #990000;">is_string</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parameters</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'fields'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">// pagination with single GROUP BY field</span>
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parameters</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'fields'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'DISTINCT '</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #000088;">$parameters</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'fields'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'DISTINCT '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$parameters</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'fields'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span>
				<a href="http://www.php.net/unset"><span style="color: #990000;">unset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$extra</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'group'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$count</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>find<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'count'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array_merge"><span style="color: #990000;">array_merge</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parameters</span><span style="color: #339933;">,</span> <span style="color: #000088;">$extra</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">// resort to inefficient method for multiple GROUP BY fields</span>
				<span style="color: #000088;">$count</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>find<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'count'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array_merge"><span style="color: #990000;">array_merge</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parameters</span><span style="color: #339933;">,</span> <span style="color: #000088;">$extra</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$count</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>getAffectedRows<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">// regular pagination</span>
			<span style="color: #000088;">$count</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>find<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'count'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array_merge"><span style="color: #990000;">array_merge</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parameters</span><span style="color: #339933;">,</span> <span style="color: #000088;">$extra</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$count</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=cc53dd5d-c0c6-46ff-8d1d-eb7ae69e4fea" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/cakephp-paginate-count-with-group-by/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A new look for Gmail</title>
		<link>http://www.amityadav.name/a-new-look-for-gmail/</link>
		<comments>http://www.amityadav.name/a-new-look-for-gmail/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 04:23:53 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[gmail]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=580</guid>
		<description><![CDATA[Today when i logged in to my Gmail account i saw that Gmail has a new look. The new look has an easy access to the contacts and tasks. There was an update to the contacts too, now one can sort by last name and add custom labels for phone numbers and other fields.]]></description>
			<content:encoded><![CDATA[<p>Today when i logged in to my Gmail account i saw that Gmail has a new look. The new look has an easy access to the contacts and tasks. There was an update to the contacts too, now one can sort by last name and add custom labels for phone numbers and other fields.</p>
<div id="attachment_581" class="wp-caption alignleft" style="width: 310px"><div class="img size-medium wp-image-581" style="width:300px;">
	<a href="http://www.amityadav.name/wp-content/uploads/2010/08/gmail_update.png"><img src="http://www.amityadav.name/wp-content/uploads/2010/08/gmail_update-300x127.png" alt="" width="300" height="127" /></a>
	<div>Gmail_update</div>
</div><p class="wp-caption-text">Gmail new update</p></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/a-new-look-for-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 localStorage()</title>
		<link>http://www.amityadav.name/html5-localstorage/</link>
		<comments>http://www.amityadav.name/html5-localstorage/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 06:02:44 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[HTML5 & CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[localStorage]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=503</guid>
		<description><![CDATA[As you all know that its been exciting to see lots of new and good features of  HTML5 and CSS3. I have been looking for things that would be very good for the future of HTML5 and CSS3, one such thing that might be very useful in the future is the HTML5 localStorage(), which is [...]]]></description>
			<content:encoded><![CDATA[<p>As you all know that its been exciting to see lots of new and good features of  HTML5 and CSS3. I have been looking for things that would be very good for the future of HTML5 and CSS3, one such thing that might be very useful in the future is the HTML5 localStorage(), which is a client-side database. The values in this database is stored as a key value pair. This database resides on the users browsers and not on the server. You need not write SQL insert/update/delete for manipulating this database. There are functions provided to this which helps in storing, updating and deleting the data stored in localStorage(). This database is available per browser so if some data is stored in the Firefox browser and you switch to Safari you won&#8217;t be able to use the localStorage data in firefox. This is a browser dependent feature, currently its supported by most modern browsers including Safari 4+, Mobile Safari (iPhone/iPad), Firefox 3.5+, Internet Explorer 8+ and Chrome 4+.</p>
<p>Let me show you how to code to use the localstorage() of your browser:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p503code6'); return false;">View Code</a> SCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5036"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p503code6"><pre class="script" style="font-family:monospace;">if (typeof(localStorage) == 'undefined' ) {
	alert('Browser support unavailable, try upgrading your browser');
} else {
	try {
		localStorage.setItem(&quot;date&quot;, &quot;9th July 2010&quot;); //INSERT, &quot;key&quot;, &quot;value&quot;
	} catch (e) {
	 	 if (e == QUOTA_EXCEEDED_ERR) {
	 	 	 alert('Quota exceeded!'); //data wasn't successfully saved due to quota exceed so throw an error
		}
	}
	document.write(localStorage.getItem(&quot;date&quot;));
	localStorage.removeItem(&quot;date&quot;); //DELET
}</pre></td></tr></table></div>

<p>You can use this localStorage() in various ways, you can use it to track the time spent by a user on your site, you can store the date the user logged in the last time etc. In the first impression it may not sound very good to you but its a very nice feature to have for the future.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=67842169-2896-4a00-a063-443b6a131499" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/html5-localstorage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Custom Alertbox Plugin</title>
		<link>http://www.amityadav.name/jquery-custom-alertbox-plugin/</link>
		<comments>http://www.amityadav.name/jquery-custom-alertbox-plugin/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 16:52:44 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=449</guid>
		<description><![CDATA[I was working on an app using Adobe AIR platform. At one stage i was at a point where i needed an alert system that i can customize according to my needs. I searched for some of the plugins that were very good but accidently i bumped into a link where it talks about how [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on an app using Adobe AIR platform. At one stage i was at a point where i needed an alert system that i can customize according to my needs. I searched for some of the plugins that were very good but accidently i bumped into a link where it talks about how to create a jQuery plugin, so i thought of creating my own which i can customize according to my needs.<br />
I am providing the code here so that you can use this code and customize it according to your need.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p449code8'); return false;">View Code</a> SCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4498"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code" id="p449code8"><pre class="script" style="font-family:monospace;">//PLUGIN FOR THE NEW ALERT BOX
 (function($){  
	 $.fn.extend({   
		 customAlert: function(options) {
			var htmlStr = '&lt;div id=&quot;amitOverlay&quot;&gt;&lt;/div&gt;&lt;div id=&quot;alertMsgDiv&quot;&gt;&lt;div id=&quot;aClose&quot;&gt;[X]&lt;/div&gt;&lt;div id=&quot;aMessage&quot;&gt;&lt;/div&gt;&lt;/div&gt;';
			var defaults = {   
				 bgColor: '#000',  
				 opacity: '0.6',  
				 message: 'This is a test message from the plugin',  
			 };  
&nbsp;
			var options = $.extend(defaults, options);  
			$(&quot;body&quot;).append(htmlStr);
			$(&quot;#alertMsgDiv&quot;).css({'display': 'block', 'width': '100px'});
			$(&quot;#amitOverlay&quot;).css({'display': 'block', 'top': '0px', 'left': '0px', 'width': $(this).width() + &quot;px&quot;, 'height': $(this).height() + &quot;px&quot;, 'background-color': options.bgColor, 'opacity': options.opacity});	
&nbsp;
			$(&quot;#aMessage&quot;).html(options.message);
			$(&quot;#alertMsgDiv&quot;).animate({width: 300}, 300);
&nbsp;
			$(&quot;#amitOverlay, #aClose&quot;).click(function(){	
				$(&quot;#alertMsgDiv&quot;).remove();
				$(&quot;#amitOverlay&quot;).remove();									
			});
		 }  
	 });  
 })(jQuery);
&nbsp;
&nbsp;
/*
 USAGE
 $(document).ready(function(){
	$(document).customAlert({opacity:0.4, bgColor: &quot;#aaa&quot;,  message: 'This is a test message' });
 });
 */</pre></td></tr></table></div>

<div>Download the code <a title="Code" href="http://amityadav.name/customAlert.rar" target="_blank">here</a></div>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=e1d2ec40-6735-4b17-acf0-a009f6050a0a" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/jquery-custom-alertbox-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lots of improvements for Firefox 4</title>
		<link>http://www.amityadav.name/lots-of-improvements-for-firefox-4/</link>
		<comments>http://www.amityadav.name/lots-of-improvements-for-firefox-4/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 03:48:28 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Product Releases]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=443</guid>
		<description><![CDATA[Some of the cool new stuff coming in Firefox 4. * New Add-Ons Builder based on Bespin * HTML5 Video display * Painting with Canvas * Image manipulation with Canvas – pixel testing, face detection with opencivitas * Green screen technologies in images and video by detecting pixel colours. * HTML5 embedded inside SVG (yes!) [...]]]></description>
			<content:encoded><![CDATA[<p>Some of the cool new stuff coming in Firefox 4.<br />
    * New Add-Ons Builder based on Bespin<br />
    * HTML5 Video display<br />
    * Painting with Canvas<br />
    * Image manipulation with Canvas – pixel testing, face detection with opencivitas<br />
    * Green screen technologies in images and video by detecting pixel colours.<br />
    * HTML5 embedded inside SVG (yes!)<br />
    * SVG as an IMG<br />
    * SVG as a CSS background<br />
    * SVG filter/mask/clip<br />
    * SVG animations<br />
    * Inline SVG inside HTML5<br />
    * CSS3 (selectors, @font-face, 2D Transforms, Transitions, Shadow, Gradients ,calculations – calc(2em-10px) )<br />
    * APIs: Geolocation, Offline (IndexDB, localStorage, AppCache, FileAPI – binary content of a file input, file drag and drop, web workers, websockets)<br />
    * Websockets controller running the presentation from the mobile.<br />
    * WebGL</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/lots-of-improvements-for-firefox-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Rolls Out Office Web Apps</title>
		<link>http://www.amityadav.name/microsoft-rolls-out-office-web-apps/</link>
		<comments>http://www.amityadav.name/microsoft-rolls-out-office-web-apps/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 11:35:25 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Information]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=433</guid>
		<description><![CDATA[Microsoft rolled out Microsoft Office Web Apps on Skydrive to users in the U.S., U.K., Canada and Ireland June 7th Microsoft_office_live]]></description>
			<content:encoded><![CDATA[<p><a href="http://microsoft.com/">Microsoft</a> rolled out <a href="http://office.live.com/">Microsoft Office Web Apps on Skydrive</a> to users in the U.S., U.K., Canada and Ireland June 7th</p>
<div class="img alignnone size-medium wp-image-432" style="width:300px;">
	<a href="http://www.amityadav.name/wp-content/uploads/2010/06/Microsoft_office_live.png"><img src="http://www.amityadav.name/wp-content/uploads/2010/06/Microsoft_office_live-300x196.png" alt="" width="300" height="196" /></a>
	<div>Microsoft_office_live</div>
</div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/microsoft-rolls-out-office-web-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 &#8211; Multi Column Layout Demonstration</title>
		<link>http://www.amityadav.name/css3-multi-column-layout-demonstration/</link>
		<comments>http://www.amityadav.name/css3-multi-column-layout-demonstration/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 09:33:52 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=429</guid>
		<description><![CDATA[CSS3 &#8211; Multi Column Layout Demonstration http://www.csscripting.com/css-multi-column/]]></description>
			<content:encoded><![CDATA[<p>CSS3 &#8211; Multi Column Layout Demonstration</p>
<p><a class="alignleft" title="Link" href="http://http://www.csscripting.com/css-multi-column/" target="_blank">http://www.csscripting.com/css-multi-column/</a></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=461e5cf8-84e8-49a9-8a19-1ddb189962b3" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/css3-multi-column-layout-demonstration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP Sharing sessions between apps on the same domain</title>
		<link>http://www.amityadav.name/cakephp-sharing-sessions-between-apps-on-the-same-domain/</link>
		<comments>http://www.amityadav.name/cakephp-sharing-sessions-between-apps-on-the-same-domain/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 10:07:43 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=415</guid>
		<description><![CDATA[Few days back i was working on two separate CakePHP applications, suddenly there was a need to maintain session between these two separate apps working on the same domain. Let me explain a bit more. Cake-logo Image via Wikipedia I was having two apps (i)wishlist (ii) lighthouse These are two separate apps under the root [...]]]></description>
			<content:encoded><![CDATA[<p>Few days back i was working on two separate <a class="zem_slink" title="CakePHP" rel="wikipedia" href="http://en.wikipedia.org/wiki/CakePHP">CakePHP</a> <a class="zem_slink" title="Application software" rel="wikipedia" href="http://en.wikipedia.org/wiki/Application_software">applications</a>, suddenly there was a need to maintain session between these two separate apps working on the same domain. Let me explain a bit more.</p>
<div class="zemanta-img zemanta-action-dragged" style="margin: 1em; display: block;">
<div>
<dl class="wp-caption alignright" style="width: 190px;">
<dt class="wp-caption-dt"><div class="img " style="width:76px;">
	<a href="http://en.wikipedia.org/wiki/File:Cake-logo.png"><img src="http://upload.wikimedia.org/wikipedia/en/9/9a/Cake-logo.png" alt="Cake-logo" width="76" height="76" /></a>
	<div>Cake-logo</div>
</div></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a href="http://en.wikipedia.org/wiki/File:Cake-logo.png">Wikipedia</a></dd>
</dl>
</div>
</div>
<p>I was having two apps (i)wishlist (ii) lighthouse</p>
<p>These are two separate apps under the root folder having the directory structure as:<br />
/htdocs<br />
/wishlist<br />
/app<br />
/config<br />
&#8230;.<br />
/lighthouse<br />
/app<br />
/config &#8230;.</p>
<p>By default the sessions are created relative to the apps directory, and this was the problem i was dealing with, not a big thing but i spent a lot of time figuring this, but for you its will work like a charm.</p>
<p>Steps that i follow to make the two apps share sessions between them.<br />
<strong>1.</strong> Edit &#8220;core.php&#8221; for wishlist and the lighthouse and add the line<br />
<span style="color: #ff0000;">ini_set(&#8216;session.cookie_path&#8217;, &#8220;/&#8221;);</span><br />
This is to direct the CakePHP app to create the session on the root</p>
<p><strong>2. </strong>The <strong>Session.cookie</strong> name should be same for the two apps</p>
<p><strong>3.</strong> The <strong>Session.salt</strong> should be same for the two apps</p>
<p><strong>4.</strong> Security.level should be low in both the apps</p>
<p>This is it what is required. Let me know if you are still stuck with the things, happy coding.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=8d80a122-92fc-4bf8-bbf4-c6a5617afc42" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/cakephp-sharing-sessions-between-apps-on-the-same-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Fuzzy Address Matching Algo (Levenshtein)</title>
		<link>http://www.amityadav.name/php-fuzzy-address-matching-algo-levenshtein/</link>
		<comments>http://www.amityadav.name/php-fuzzy-address-matching-algo-levenshtein/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 10:13:30 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[levenshtein]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=409</guid>
		<description><![CDATA[Few days back i encountered a weird problem. I had three tables in my DB viz: students, sites, company. Student table has the address fields and a column named &#8220;site_id&#8221; to connect it to the sites table. Sites table also has its address fields. Now the challenge was to update the &#8220;site_id&#8221; field of the [...]]]></description>
			<content:encoded><![CDATA[<p>Few days back i encountered a weird problem.<br />
I had three tables in my DB viz: students, sites, company. Student table has the address fields and a column named &#8220;site_id&#8221; to connect it to the sites table. Sites table also has its address fields.</p>
<p>Now the challenge was to update the &#8220;site_id&#8221; field of the students table based on the matching address in the student and the site table. The address fields in both the tables were divided into following fields</p>
<ul>
<li> address1</li>
<li> address2</li>
<li> city</li>
<li> state</li>
<li> country</li>
<li> zip</li>
</ul>
<p>Now i had to think of a solution of how to do it. After googling a while i found a function called &#8220;levenshtein()&#8221; in PHP. This function calculated the distance between two given strings, bingo i got an idea and implemented the sddress matching algorithm. I have attached the file with this post.<br />
Kindly let me if that was helpful to you.</p>
<p>Download the code from here -&gt; <a href="../wp-content/uploads/2010/04/fuzzy-match.pdf">fuzzy-match</a></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=11459b1d-9cf9-4078-9aec-0c84c184c5ba" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/php-fuzzy-address-matching-algo-levenshtein/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR 126 (HY000): Incorrect key file for table</title>
		<link>http://www.amityadav.name/error-126-hy000-incorrect-key-file-for-table/</link>
		<comments>http://www.amityadav.name/error-126-hy000-incorrect-key-file-for-table/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 09:57:22 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=404</guid>
		<description><![CDATA[I had a table with 62 Millions records with total size on disk as 1.2 GB. What i was doing was joining this table with other table having 80 thousand records. While running the query the MySQL server showed me an error ERROR 126 (HY000): Incorrect key file for table The problem behind this  was [...]]]></description>
			<content:encoded><![CDATA[<p>I had a table with 62 Millions records with total size on disk as 1.2 GB.<br />
What i was doing was joining this table with other table having 80 thousand records.</p>
<p>While running the query the MySQL server showed me an error</p>
<p>ERROR 126 (HY000): Incorrect key file for table</p>
<p>The problem behind this  was related to the size of the temp directory, there was not enough memory on the drive where the temp directory was located.<br />
<span style="color: #3366ff;"><strong>SOLUTION</strong></span><br />
Try to change the location of the MySQL tmp directory to a place where there is lots of space. you can do this by editing the MySQL config file and adding this entry</p>
<p><span style="color: #3366ff;">tmpdir=&#8221;/path/to/the/temp/directory&#8221;</span></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=01a14e22-c0c2-40bc-8aa5-de42ea7edc56" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/error-126-hy000-incorrect-key-file-for-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QUnit:JavaScript Testing Framework</title>
		<link>http://www.amityadav.name/qunitjavascript-testing-framework/</link>
		<comments>http://www.amityadav.name/qunitjavascript-testing-framework/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 07:07:40 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[QUnit]]></category>
		<category><![CDATA[Unit testing]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=401</guid>
		<description><![CDATA[QUnit is a powerful JavaScript unit testing framework that helps you to debug code. It&#8217;s written by members of the jQuery team, and is the official test suite for jQuery. But QUnit is general enough to test any regular JavaScript code, and it&#8217;s even able to test server-side JavaScript via some JavaScript engine like Rhino [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://docs.jquery.com/QUnit">QUnit</a> is a powerful  <a class="zem_slink" title="JavaScript" rel="wikipedia" href="http://en.wikipedia.org/wiki/JavaScript">JavaScript</a> <a class="zem_slink" title="Unit testing" rel="wikipedia" href="http://en.wikipedia.org/wiki/Unit_testing">unit testing</a> framework that helps you to debug code. It&#8217;s  written by members of the <a href="http://jquery.com/">jQuery</a> team,  and is the official <a class="zem_slink" title="Test suite" rel="wikipedia" href="http://en.wikipedia.org/wiki/Test_suite">test suite</a> for jQuery. But QUnit is general enough  to test any regular JavaScript code, and it&#8217;s even able to test  server-side JavaScript via some JavaScript engine like Rhino or V8.</p>
<p>If you&#8217;re unfamiliar with the idea of &#8220;unit testing&#8221;, don&#8217;t worry.  It&#8217;s not too difficult to understand:</p>
<blockquote><p><em>In <a class="zem_slink" title="Computer programming" rel="wikipedia" href="http://en.wikipedia.org/wiki/Computer_programming">computer programming</a>, unit testing is a <a class="zem_slink" title="Software verification" rel="wikipedia" href="http://en.wikipedia.org/wiki/Software_verification">software  verification</a> and validation method in which a programmer tests if  individual units of <a class="zem_slink" title="Source code" rel="wikipedia" href="http://en.wikipedia.org/wiki/Source_code">source code</a> are fit for use. A unit is the smallest  testable part of an <a class="zem_slink" title="Computer software" rel="wikipedia" href="http://en.wikipedia.org/wiki/Computer_software">application</a>. In <a class="zem_slink" title="Procedural programming" rel="wikipedia" href="http://en.wikipedia.org/wiki/Procedural_programming">procedural</a> programming a unit may be  an individual function or procedure.</em></p></blockquote>
<p>This is quoted from Wikipedia. Simply put, you write tests for each  functionality of your code, and if all of these tests are passed, you  can be sure that the code will be bug-free (mostly, depends on how  thorough your tests are).</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=e724939f-b2c3-4f20-94a2-a746f45ee97f" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/qunitjavascript-testing-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook: HipHop for PHP</title>
		<link>http://www.amityadav.name/facebook-hiphop-for-php/</link>
		<comments>http://www.amityadav.name/facebook-hiphop-for-php/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 06:25:12 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Hip hop]]></category>
		<category><![CDATA[Just-in-time compilation]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=396</guid>
		<description><![CDATA[﻿Facebook officially announced the project, titled HipHop, this morning and confirmed that it would be released as open source this evening. Facebook has been working on a PHP compiler that will increase speed by around 80% and offer a just-in-time (JIT) compilation engine that will offer a number of advantages. Less CPU means fewer servers, which [...]]]></description>
			<content:encoded><![CDATA[<p>﻿Facebook officially announced the project, titled HipHop, this morning and confirmed that it would be  released as <a class="zem_slink" title="Open source" rel="wikipedia" href="http://en.wikipedia.org/wiki/Open_source">open source</a> this evening.</p>
<p><a class="zem_slink" title="Facebook" rel="homepage" href="http://facebook.com">Facebook</a> has been working on a <a class="zem_slink" title="PHP" rel="homepage" href="http://www.php.net/">PHP</a> <a class="zem_slink" title="Compiler" rel="wikipedia" href="http://en.wikipedia.org/wiki/Compiler">compiler</a> that will increase  speed by around 80% and offer a just-in-time (<a class="zem_slink" title="Just-in-time compilation" rel="wikipedia" href="http://en.wikipedia.org/wiki/Just-in-time_compilation">JIT</a>) compilation engine  that will offer a number of advantages.</p>
<p>Less <a class="zem_slink" title="Central processing unit" rel="wikipedia" href="http://en.wikipedia.org/wiki/Central_processing_unit">CPU</a> means fewer servers, which means less overhead. This project  has had a tremendous impact on Facebook</p>
<p>HipHop for PHP isn&#8217;t technically a compiler itself, it is a source <a class="zem_slink" title="Source code" rel="wikipedia" href="http://en.wikipedia.org/wiki/Source_code">code</a> transformer.  HipHop programmatically transforms your  PHP source code into highly optimized C++ and then uses g++ to compile  it.</p>
<p>HipHop executes the source code in a semantically equivalent manner and  sacrifices some rarely used features — such as <a class="zem_slink" title="Eval" rel="wikipedia" href="http://en.wikipedia.org/wiki/Eval">eval()</a> — in exchange for  improved performance.</p>
<p>HipHop includes a code transformer, a reimplementation of PHP&#8217;s <a class="zem_slink" title="Run-time system" rel="wikipedia" href="http://en.wikipedia.org/wiki/Run-time_system">runtime  system</a>, and a rewrite of many common PHP Extensions to take advantage of  these performance optimizations.</p>
<p>You can read more about HipHop <a title="HipHop" href="http://developers.facebook.com/news.php?blog=1&amp;story=358">here</a></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=e26871b7-b7f7-4fd9-8ef4-ef80f4aaa634" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/facebook-hiphop-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Technology Tasting &#8211; HipHop for PHP</title>
		<link>http://www.amityadav.name/facebook-technology-tasting-hiphop-for-php/</link>
		<comments>http://www.amityadav.name/facebook-technology-tasting-hiphop-for-php/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 05:35:53 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=394</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="386" id="utv126242" name="utv_n_674290"><param name="flashvars" value="loc=%2F&amp;autoplay=false&amp;vid=4409735" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.ustream.tv/flash/video/4409735" /><embed flashvars="loc=%2F&amp;autoplay=false&amp;vid=4409735" width="480" height="386" allowfullscreen="true" allowscriptaccess="always" id="utv126242" name="utv_n_674290" src="http://www.ustream.tv/flash/video/4409735" type="application/x-shockwave-flash" /></object></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/facebook-technology-tasting-hiphop-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: Traversing the siblings</title>
		<link>http://www.amityadav.name/jquery-traversing-the-siblings-2/</link>
		<comments>http://www.amityadav.name/jquery-traversing-the-siblings-2/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 07:29:49 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=390</guid>
		<description><![CDATA[The code here traverses through the siblings of the anchor tags. One of the guy at OZZU Forum was having this problem, so thought of putting the code on my blog too.]]></description>
			<content:encoded><![CDATA[<p>The code here traverses through the siblings of the anchor tags. One of the guy at <a href="http://www.ozzu.com/programming-forum/confusing-traversal-with-jquery-t102056.html#p569954" target="_blank">OZZU Forum</a> was having this problem, so thought of putting the code on my blog too.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/jquery-traversing-the-siblings-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP: Paginate using multiple tables/associations</title>
		<link>http://www.amityadav.name/cakephp-paginate-using-multiple-tablesassociations/</link>
		<comments>http://www.amityadav.name/cakephp-paginate-using-multiple-tablesassociations/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 12:10:55 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=363</guid>
		<description><![CDATA[I was stuck with a scenario while working on one of the CakePHP application where i have the following association: City belongsTo =&#62; State State belongsTo =&#62; country In case of Ruby on Rail we can use &#8216;through&#8217; to create a relationship between the City and Country, but in case of CakePHP we have two [...]]]></description>
			<content:encoded><![CDATA[<p>I was stuck with a scenario while working on one of the CakePHP application where i have the following association:</p>
<p>City  belongsTo =&gt; State<br />
State belongsTo =&gt; country</p>
<p>In case of Ruby on Rail we can use &#8216;through&#8217; to create a relationship between the City and Country, but in case of CakePHP we have two things 1) recursive 2) Contain, but in my case both were not working so i searched and found an alternate way of establishing relationship between City and Country so when i run a find on City i also get the Country data in the resultset. Here is the function that i used.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p363code10'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p36310"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code" id="p363code10"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> unbindAndBind<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// unbind State model for entire request</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">City</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">unbindModel</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'belongsTo'</span> <span style="color: #339933;">=&gt;</span>array<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'State'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// unbind State-&gt;Country model for entire request</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">City</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">State</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">unbindModel</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'belongsTo'</span> <span style="color: #339933;">=&gt;</span>array<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Country'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// rebind Site and Company models with custom condition for Company model forcing join</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">City</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">bindModel</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a>
					<span style="color: #009900;">&#40;</span>
					   <span style="color: #0000ff;">'belongsTo'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
					   <span style="color: #0000ff;">'State'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
					   <span style="color: #0000ff;">'Country'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
					  			     <span style="color: #0000ff;">'foreignKey'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> 
								     <span style="color: #0000ff;">'conditions'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'State.country_id = Country.id'</span><span style="color: #009900;">&#41;</span>
								   <span style="color: #009900;">&#41;</span>
					    <span style="color: #009900;">&#41;</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
					<span style="color: #009900; font-weight: bold;">false</span>
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/cakephp-paginate-using-multiple-tablesassociations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firebug 1.5.0</title>
		<link>http://www.amityadav.name/firebug-150/</link>
		<comments>http://www.amityadav.name/firebug-150/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 10:24:50 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=361</guid>
		<description><![CDATA[Mike Radcliffe’s Inspector. A key feature, now solid as a rock, Jan ‘Honza’ Odvarko’s expanded and refined Net panel, with accurate timings, Steve Roussey’s reworking of HTML editing and entity support, Kevin Decker’s CSS and Style side panel improvements, Support for dynamic, graphical breakpoints through out Firebug. Tested support for the soon-to-be-released Firefox 3.6]]></description>
			<content:encoded><![CDATA[<ul>
<li>Mike Radcliffe’s Inspector. A key feature, now solid as a rock,</li>
<li>Jan ‘Honza’ Odvarko’s expanded and refined Net panel, with accurate timings,</li>
<li>Steve Roussey’s reworking of HTML editing and entity support,</li>
<li>Kevin Decker’s <a class="zem_slink" href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets" title="Cascading Style Sheets" rel="wikipedia">CSS</a> and Style side panel improvements,</li>
<li>Support for dynamic, graphical breakpoints through out <a class="zem_slink" href="http://getfirebug.com" title="Firebug" rel="homepage">Firebug</a>.</li>
<li>Tested support for the soon-to-be-released Firefox 3.6</li>
</ul>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=67a8a01a-7885-4dfa-a957-4484efe65f2c"><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/firebug-150/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Real Life Scaling</title>
		<link>http://www.amityadav.name/real-life-scaling/</link>
		<comments>http://www.amityadav.name/real-life-scaling/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 06:00:34 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Scaling]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=356</guid>
		<description><![CDATA[Real Life Scaling: A Tale of Two Websites View more presentations from Justin Carmony.]]></description>
			<content:encoded><![CDATA[<div style="width:425px;text-align:left" id="__ss_2184608"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/JustinCarmony/real-life-scaling-a-tale-of-two-websites" title="Real Life Scaling: A Tale of Two Websites">Real Life Scaling: A Tale of Two Websites</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=reallifescaling-ataleoftwowebsites-small-091010143045-phpapp02&#038;rel=0&#038;stripped_title=real-life-scaling-a-tale-of-two-websites" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=reallifescaling-ataleoftwowebsites-small-091010143045-phpapp02&#038;rel=0&#038;stripped_title=real-life-scaling-a-tale-of-two-websites" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/JustinCarmony">Justin Carmony</a>.</div>
</div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/real-life-scaling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP &#8211; Pagination Sorting on 2 Columns</title>
		<link>http://www.amityadav.name/cakephp-pagination-sorting-on-2-columns/</link>
		<comments>http://www.amityadav.name/cakephp-pagination-sorting-on-2-columns/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 12:18:39 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.amityadav.name/?p=344</guid>
		<description><![CDATA[I was just wondering how one can sort on two columns at the same time through CakePHP framework. It was a need for one om project and i was using whole lot of other components and helpers along with pagination, so i found a way out for doing this. Here is my solution to the [...]]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="border-collapse: separate; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium; font-family: 'Times New Roman'; color: #000000;"><span class="Apple-style-span" style="font-size: 13px; line-height: 16px; font-family: Verdana,Arial,Helvetica,sans-serif;">I was just wondering how one can sort on two columns at the same time through CakePHP framework. It was a need for one om project and i was using whole lot of other components and helpers along with pagination, so i found a way out for doing this.</p>
<p>Here is my solution to the problem.<br />
The way to do it is inject the second sort column into the passed argument array before calling the $this-&gt;paginate function. So here is what i did.</span></span></p>
<div class="quoteHeader" style="margin: 10px 20px 0px;"><strong><br />
</strong></div>
<div id="code_0_26d81722_ln" class="quoteCode" style="border: 1px solid silver; margin: 0px 20px 5px; padding: 0px; overflow: auto; font-family: monospace; background-color: #ebebeb; min-height: 36px;">
<div style="padding: 10px; font-size: 12px;">$this-&gt;mergeSortParameters(array(&#8220;xyz.firstname&#8221;=&gt; ($this-&gt;passedArgs['direction'])? $this-&gt;passedArgs['direction'] : &#8216;asc&#8217;));</div>
</div>
<p>Here is the function that needs to be called before calling the paginate method</p>
<div class="quoteHeader" style="margin: 10px 20px 0px;"><strong><br />
</strong></div>
<div id="code_1_657554f2_ln" class="quoteCode" style="border: 1px solid silver; margin: 0px 20px 5px; padding: 0px; overflow: auto; font-family: monospace; background-color: #ebebeb; min-height: 36px;">
<ol style="border: 0px solid silver; margin: 0px; padding: 0px 0px 0px 45px; background-color: #e7e7e7; list-style-type: decimal-leading-zero; background-image: url(http://www.ozzu.com/styles/light/theme/images/code_line_numbers.gif); font-size: 12px; line-height: 18px;">
<li class="li1" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e7e7e7;">//Function to merge all the sorting parameters</li>
<li class="li2" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e3e3e3;">function mergeSortParameters($sort_extras){</li>
<li class="li1" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e7e7e7;"> $sortParams = array();</li>
<li class="li2" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e3e3e3;"> if( isset($this-&gt;passedArgs["sort"]) ) {</li>
<li class="li1" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e7e7e7;"> // Use merge of sort request and extras</li>
<li class="li2" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e3e3e3;"> $sortParams = am( $sort_extras, array($this-&gt;passedArgs["sort"] =&gt; $this-&gt;passedArgs["direction"]));</li>
<li class="li1" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e7e7e7;"> } elseif( isset( $this-&gt;paginate['order'] ) ) {</li>
<li class="li2" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e3e3e3;"> // Use default sort</li>
<li class="li1" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e7e7e7;"> $sortParams = $this-&gt;paginate['order'];</li>
<li class="li2" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e3e3e3;"> }</li>
<li class="li2" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e3e3e3;"> $this-&gt;passedArgs = array( &#8216;order&#8217; =&gt; $sortParams, &#8216;keywords&#8217; =&gt; $this-&gt;passedArgs['keywords']);</li>
<li class="li1" style="margin: 0px; padding: 0px 10px; font-weight: normal; vertical-align: top; background-color: #e7e7e7;"> }</li>
</ol>
</div>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=01fc2029-9ac7-477b-9f46-babffa3a766c" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.amityadav.name/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.amityadav.name/cakephp-pagination-sorting-on-2-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
