<?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>Manmohanjit Singh &#187; PHP</title>
	<atom:link href="http://manmohanjit.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://manmohanjit.com</link>
	<description>Expressing Myself</description>
	<lastBuildDate>Tue, 07 Sep 2010 02:35:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Picasa integration&#8230; check, Twitter integration maybe not</title>
		<link>http://manmohanjit.com/2010/08/24/picasa-integration-check-twitter-integration-maybe-not/</link>
		<comments>http://manmohanjit.com/2010/08/24/picasa-integration-check-twitter-integration-maybe-not/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 13:13:32 +0000</pubDate>
		<dc:creator>Manmohanjit Singh</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Picasa]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://manmohanjit.com/?p=1235</guid>
		<description><![CDATA[It took a lot of thinking but I&#8217;ve finally integrated Picasa with my current theme as I&#8217;ve promised earlier. After looking at Picasa&#8217;s API, I actually gave up. But with help of several tutorials, I regained hope. So I started. And now its fully functional. I&#8217;m using two jQuery plugins to manage the images. TinyCarousel [...]]]></description>
			<content:encoded><![CDATA[<p>It took a lot of thinking but I&#8217;ve finally integrated Picasa with my current theme as I&#8217;ve <a href="http://localhost.org/wordpress/2010/08/21/picasa-test/">promised earlier</a>. After looking at <a href="http://code.google.com/apis/picasaweb/overview.html">Picasa&#8217;s API</a>, I actually gave up. But with help of several tutorials, I regained hope. So I started. And now its fully functional.</p>
<p>I&#8217;m using two jQuery plugins to manage the images. <a href="http://www.baijs.nl/tinycarousel/">TinyCarousel</a> is one of them, it creates an image slider for navigation and <a href="http://colorpowered.com/colorbox/">ColorBox</a> helps open clicked images without leaving the page. It&#8217;s actually fun. Formatting images from the album feed is a breeze with the help of <a href="http://simplepie.org/">SimplePie</a> which by default is included in WordPress. It does all the back end work for me.</p>
<div id="039c77f770f013798e01b81b59cbca06" class="picasa-album"><a class="buttons prev" href="#"></a><a class="buttons next" href="#"></a><div class="viewport"><ul class="overview"><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6C_r5N0bI/AAAAAAAAAE0/l47sV98KRbo/s125-c/Jason%20Derulo%20(7).jpg');" class="direct-image-link" title="Jason Derulo (7).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6C_r5N0bI/AAAAAAAAAE0/l47sV98KRbo/s700/Jason%20Derulo%20(7).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979825319399858">Jason Derulo (7).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6C-beKl0I/AAAAAAAAAEs/Nsc0IPqcnwE/s125-c/Jason%20Derulo%20(5).jpg');" class="direct-image-link" title="Jason Derulo (5).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6C-beKl0I/AAAAAAAAAEs/Nsc0IPqcnwE/s700/Jason%20Derulo%20(5).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979803731105602">Jason Derulo (5).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6C9oQxGII/AAAAAAAAAEo/BAt-6hFZuxI/s125-c/Jason%20Derulo%20(48).jpg');" class="direct-image-link" title="Jason Derulo (48).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6C9oQxGII/AAAAAAAAAEo/BAt-6hFZuxI/s700/Jason%20Derulo%20(48).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979789984700546">Jason Derulo (48).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6C8xH602I/AAAAAAAAAEk/0VvRUE63bJs/s125-c/Jason%20Derulo%20(47).jpg');" class="direct-image-link" title="Jason Derulo (47).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6C8xH602I/AAAAAAAAAEk/0VvRUE63bJs/s700/Jason%20Derulo%20(47).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979775183639394">Jason Derulo (47).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh3.ggpht.com/_1aKXJovK1_4/TF6C8AZ4jxI/AAAAAAAAAEg/gxyq2J-kHDA/s125-c/Jason%20Derulo%20(46).jpg');" class="direct-image-link" title="Jason Derulo (46).jpg" href="http://lh3.ggpht.com/_1aKXJovK1_4/TF6C8AZ4jxI/AAAAAAAAAEg/gxyq2J-kHDA/s700/Jason%20Derulo%20(46).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979762105650962">Jason Derulo (46).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6C71QCtAI/AAAAAAAAAEc/NGczYMMdNoE/s125-c/Jason%20Derulo%20(45).jpg');" class="direct-image-link" title="Jason Derulo (45).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6C71QCtAI/AAAAAAAAAEc/NGczYMMdNoE/s700/Jason%20Derulo%20(45).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979759111582722">Jason Derulo (45).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh5.ggpht.com/_1aKXJovK1_4/TF6C7Q5tobI/AAAAAAAAAEY/xACraltHUZI/s125-c/Jason%20Derulo%20(44).jpg');" class="direct-image-link" title="Jason Derulo (44).jpg" href="http://lh5.ggpht.com/_1aKXJovK1_4/TF6C7Q5tobI/AAAAAAAAAEY/xACraltHUZI/s700/Jason%20Derulo%20(44).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979749354250674">Jason Derulo (44).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh3.ggpht.com/_1aKXJovK1_4/TF6C6lWCUXI/AAAAAAAAAEU/Esz87tnynvA/s125-c/Jason%20Derulo%20(43).jpg');" class="direct-image-link" title="Jason Derulo (43).jpg" href="http://lh3.ggpht.com/_1aKXJovK1_4/TF6C6lWCUXI/AAAAAAAAAEU/Esz87tnynvA/s700/Jason%20Derulo%20(43).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979737661886834">Jason Derulo (43).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6C59WM4GI/AAAAAAAAAEQ/gmwMYWLbkUU/s125-c/Jason%20Derulo%20(42).jpg');" class="direct-image-link" title="Jason Derulo (42).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6C59WM4GI/AAAAAAAAAEQ/gmwMYWLbkUU/s700/Jason%20Derulo%20(42).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979726925160546">Jason Derulo (42).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh3.ggpht.com/_1aKXJovK1_4/TF6C5NwkPuI/AAAAAAAAAEM/KnjUIS4fptY/s125-c/Jason%20Derulo%20(41).jpg');" class="direct-image-link" title="Jason Derulo (41).jpg" href="http://lh3.ggpht.com/_1aKXJovK1_4/TF6C5NwkPuI/AAAAAAAAAEM/KnjUIS4fptY/s700/Jason%20Derulo%20(41).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979714150842082">Jason Derulo (41).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6C4gPByTI/AAAAAAAAAEI/m7yW2hr5iXo/s125-c/Jason%20Derulo%20(40).jpg');" class="direct-image-link" title="Jason Derulo (40).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6C4gPByTI/AAAAAAAAAEI/m7yW2hr5iXo/s700/Jason%20Derulo%20(40).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979701930576178">Jason Derulo (40).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6C33qS1yI/AAAAAAAAAEE/QuVAVM16biI/s125-c/Jason%20Derulo%20(4).jpg');" class="direct-image-link" title="Jason Derulo (4).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6C33qS1yI/AAAAAAAAAEE/QuVAVM16biI/s700/Jason%20Derulo%20(4).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979691039086370">Jason Derulo (4).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6C3SomUJI/AAAAAAAAAEA/H0vo9H6cwi0/s125-c/Jason%20Derulo%20(39).jpg');" class="direct-image-link" title="Jason Derulo (39).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6C3SomUJI/AAAAAAAAAEA/H0vo9H6cwi0/s700/Jason%20Derulo%20(39).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979681099862162">Jason Derulo (39).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh3.ggpht.com/_1aKXJovK1_4/TF6C24-5LSI/AAAAAAAAAD8/w9RVQWqbLz4/s125-c/Jason%20Derulo%20(38).jpg');" class="direct-image-link" title="Jason Derulo (38).jpg" href="http://lh3.ggpht.com/_1aKXJovK1_4/TF6C24-5LSI/AAAAAAAAAD8/w9RVQWqbLz4/s700/Jason%20Derulo%20(38).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979674214051106">Jason Derulo (38).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh5.ggpht.com/_1aKXJovK1_4/TF6C2QfdXuI/AAAAAAAAAD4/VVjWYe7uj-g/s125-c/Jason%20Derulo%20(37).jpg');" class="direct-image-link" title="Jason Derulo (37).jpg" href="http://lh5.ggpht.com/_1aKXJovK1_4/TF6C2QfdXuI/AAAAAAAAAD4/VVjWYe7uj-g/s700/Jason%20Derulo%20(37).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979663344787170">Jason Derulo (37).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6C14hwyqI/AAAAAAAAAD0/E4xxnXPFg5s/s125-c/Jason%20Derulo%20(36).jpg');" class="direct-image-link" title="Jason Derulo (36).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6C14hwyqI/AAAAAAAAAD0/E4xxnXPFg5s/s700/Jason%20Derulo%20(36).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979656911997602">Jason Derulo (36).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh3.ggpht.com/_1aKXJovK1_4/TF6C1F6Mx8I/AAAAAAAAADw/xrG0Bv8k7aE/s125-c/Jason%20Derulo%20(35).jpg');" class="direct-image-link" title="Jason Derulo (35).jpg" href="http://lh3.ggpht.com/_1aKXJovK1_4/TF6C1F6Mx8I/AAAAAAAAADw/xrG0Bv8k7aE/s700/Jason%20Derulo%20(35).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979643324286914">Jason Derulo (35).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6C0zHeZxI/AAAAAAAAADs/V3ilaxHh39g/s125-c/Jason%20Derulo%20(34).jpg');" class="direct-image-link" title="Jason Derulo (34).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6C0zHeZxI/AAAAAAAAADs/V3ilaxHh39g/s700/Jason%20Derulo%20(34).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979638279694098">Jason Derulo (34).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6CzoUhdnI/AAAAAAAAADo/DEA5UFQ9MW4/s125-c/Jason%20Derulo%20(33).jpg');" class="direct-image-link" title="Jason Derulo (33).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6CzoUhdnI/AAAAAAAAADo/DEA5UFQ9MW4/s700/Jason%20Derulo%20(33).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979618201761394">Jason Derulo (33).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh5.ggpht.com/_1aKXJovK1_4/TF6CzO1KHxI/AAAAAAAAADk/LjR8z56h-M4/s125-c/Jason%20Derulo%20(32).jpg');" class="direct-image-link" title="Jason Derulo (32).jpg" href="http://lh5.ggpht.com/_1aKXJovK1_4/TF6CzO1KHxI/AAAAAAAAADk/LjR8z56h-M4/s700/Jason%20Derulo%20(32).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979611359321874">Jason Derulo (32).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh3.ggpht.com/_1aKXJovK1_4/TF6CyneCU8I/AAAAAAAAADg/3Q4AwiBCPBc/s125-c/Jason%20Derulo%20(31).jpg');" class="direct-image-link" title="Jason Derulo (31).jpg" href="http://lh3.ggpht.com/_1aKXJovK1_4/TF6CyneCU8I/AAAAAAAAADg/3Q4AwiBCPBc/s700/Jason%20Derulo%20(31).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979600793359298">Jason Derulo (31).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh5.ggpht.com/_1aKXJovK1_4/TF6CxlFgHHI/AAAAAAAAADc/T-G1uzW1hck/s125-c/Jason%20Derulo%20(30).jpg');" class="direct-image-link" title="Jason Derulo (30).jpg" href="http://lh5.ggpht.com/_1aKXJovK1_4/TF6CxlFgHHI/AAAAAAAAADc/T-G1uzW1hck/s700/Jason%20Derulo%20(30).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979582973713522">Jason Derulo (30).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh5.ggpht.com/_1aKXJovK1_4/TF6CxObiVmI/AAAAAAAAADY/BLGnrO8rMnE/s125-c/Jason%20Derulo%20(3).jpg');" class="direct-image-link" title="Jason Derulo (3).jpg" href="http://lh5.ggpht.com/_1aKXJovK1_4/TF6CxObiVmI/AAAAAAAAADY/BLGnrO8rMnE/s700/Jason%20Derulo%20(3).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979576892118626">Jason Derulo (3).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6CwuXTdXI/AAAAAAAAADU/rZ4yhguNpoY/s125-c/Jason%20Derulo%20(29).jpg');" class="direct-image-link" title="Jason Derulo (29).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6CwuXTdXI/AAAAAAAAADU/rZ4yhguNpoY/s700/Jason%20Derulo%20(29).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979568284431730">Jason Derulo (29).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6Cv7yubxI/AAAAAAAAADQ/GZdybAMr9mg/s125-c/Jason%20Derulo%20(28).jpg');" class="direct-image-link" title="Jason Derulo (28).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6Cv7yubxI/AAAAAAAAADQ/GZdybAMr9mg/s700/Jason%20Derulo%20(28).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979554709237522">Jason Derulo (28).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh5.ggpht.com/_1aKXJovK1_4/TF6Cu947X0I/AAAAAAAAADM/CnDjbHeN_EA/s125-c/Jason%20Derulo%20(27).jpg');" class="direct-image-link" title="Jason Derulo (27).jpg" href="http://lh5.ggpht.com/_1aKXJovK1_4/TF6Cu947X0I/AAAAAAAAADM/CnDjbHeN_EA/s700/Jason%20Derulo%20(27).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979538092252994">Jason Derulo (27).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6CuIJdm6I/AAAAAAAAADI/O_PNXOwwuz4/s125-c/Jason%20Derulo%20(26).jpg');" class="direct-image-link" title="Jason Derulo (26).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6CuIJdm6I/AAAAAAAAADI/O_PNXOwwuz4/s700/Jason%20Derulo%20(26).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979523666090914">Jason Derulo (26).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6CtTKYNgI/AAAAAAAAADE/hYFd_xbhbLs/s125-c/Jason%20Derulo%20(25).jpg');" class="direct-image-link" title="Jason Derulo (25).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6CtTKYNgI/AAAAAAAAADE/hYFd_xbhbLs/s700/Jason%20Derulo%20(25).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979509442852354">Jason Derulo (25).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6Cs9UQV9I/AAAAAAAAADA/71n486lRvcM/s125-c/Jason%20Derulo%20(24).jpg');" class="direct-image-link" title="Jason Derulo (24).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6Cs9UQV9I/AAAAAAAAADA/71n486lRvcM/s700/Jason%20Derulo%20(24).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979503578699730">Jason Derulo (24).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh3.ggpht.com/_1aKXJovK1_4/TF6CsURfQpI/AAAAAAAAAC8/Fx8dHwoue3Q/s125-c/Jason%20Derulo%20(23).jpg');" class="direct-image-link" title="Jason Derulo (23).jpg" href="http://lh3.ggpht.com/_1aKXJovK1_4/TF6CsURfQpI/AAAAAAAAAC8/Fx8dHwoue3Q/s700/Jason%20Derulo%20(23).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979492561240722">Jason Derulo (23).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh3.ggpht.com/_1aKXJovK1_4/TF6Cryn5x6I/AAAAAAAAAC4/9X2B1I3kSwI/s125-c/Jason%20Derulo%20(22).jpg');" class="direct-image-link" title="Jason Derulo (22).jpg" href="http://lh3.ggpht.com/_1aKXJovK1_4/TF6Cryn5x6I/AAAAAAAAAC4/9X2B1I3kSwI/s700/Jason%20Derulo%20(22).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979483528447906">Jason Derulo (22).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6CqwqeuhI/AAAAAAAAAC0/ZMCxGWrVH9g/s125-c/Jason%20Derulo%20(21).jpg');" class="direct-image-link" title="Jason Derulo (21).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6CqwqeuhI/AAAAAAAAAC0/ZMCxGWrVH9g/s700/Jason%20Derulo%20(21).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979465822517778">Jason Derulo (21).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6Cp9J8ZvI/AAAAAAAAACw/8JNwQoLwTBQ/s125-c/Jason%20Derulo%20(20).jpg');" class="direct-image-link" title="Jason Derulo (20).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6Cp9J8ZvI/AAAAAAAAACw/8JNwQoLwTBQ/s700/Jason%20Derulo%20(20).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979451995842290">Jason Derulo (20).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh3.ggpht.com/_1aKXJovK1_4/TF6CpBRYvzI/AAAAAAAAACs/d74UmWNlQEw/s125-c/Jason%20Derulo%20(2).jpg');" class="direct-image-link" title="Jason Derulo (2).jpg" href="http://lh3.ggpht.com/_1aKXJovK1_4/TF6CpBRYvzI/AAAAAAAAACs/d74UmWNlQEw/s700/Jason%20Derulo%20(2).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979435920932658">Jason Derulo (2).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh5.ggpht.com/_1aKXJovK1_4/TF6CoW-ZYZI/AAAAAAAAACo/yoq5xqGI1YE/s125-c/Jason%20Derulo%20(19).jpg');" class="direct-image-link" title="Jason Derulo (19).jpg" href="http://lh5.ggpht.com/_1aKXJovK1_4/TF6CoW-ZYZI/AAAAAAAAACo/yoq5xqGI1YE/s700/Jason%20Derulo%20(19).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979424566993298">Jason Derulo (19).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh5.ggpht.com/_1aKXJovK1_4/TF6Cnt9cMlI/AAAAAAAAACk/iQBGjvMz_eo/s125-c/Jason%20Derulo%20(18).jpg');" class="direct-image-link" title="Jason Derulo (18).jpg" href="http://lh5.ggpht.com/_1aKXJovK1_4/TF6Cnt9cMlI/AAAAAAAAACk/iQBGjvMz_eo/s700/Jason%20Derulo%20(18).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979413557129810">Jason Derulo (18).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6Cm0ZQxuI/AAAAAAAAACg/XxegQM_Mo7Y/s125-c/Jason%20Derulo%20(17).jpg');" class="direct-image-link" title="Jason Derulo (17).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6Cm0ZQxuI/AAAAAAAAACg/XxegQM_Mo7Y/s700/Jason%20Derulo%20(17).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979398104565474">Jason Derulo (17).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh3.ggpht.com/_1aKXJovK1_4/TF6CmHeEHGI/AAAAAAAAACc/1wXb2jUZhBo/s125-c/Jason%20Derulo%20(16).jpg');" class="direct-image-link" title="Jason Derulo (16).jpg" href="http://lh3.ggpht.com/_1aKXJovK1_4/TF6CmHeEHGI/AAAAAAAAACc/1wXb2jUZhBo/s700/Jason%20Derulo%20(16).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979386045111394">Jason Derulo (16).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6ClSKaLiI/AAAAAAAAACY/QOjxVnhcWu4/s125-c/Jason%20Derulo%20(15).jpg');" class="direct-image-link" title="Jason Derulo (15).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6ClSKaLiI/AAAAAAAAACY/QOjxVnhcWu4/s700/Jason%20Derulo%20(15).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979371735592482">Jason Derulo (15).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6Ck_2aauI/AAAAAAAAACU/Fj9WUS9s6sc/s125-c/Jason%20Derulo%20(14).jpg');" class="direct-image-link" title="Jason Derulo (14).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6Ck_2aauI/AAAAAAAAACU/Fj9WUS9s6sc/s700/Jason%20Derulo%20(14).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979366819883746">Jason Derulo (14).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6Cj5R4rGI/AAAAAAAAACQ/c9iT6XoJLr0/s125-c/Jason%20Derulo%20(13).jpg');" class="direct-image-link" title="Jason Derulo (13).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6Cj5R4rGI/AAAAAAAAACQ/c9iT6XoJLr0/s700/Jason%20Derulo%20(13).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979347876195426">Jason Derulo (13).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh4.ggpht.com/_1aKXJovK1_4/TF6CjTT0f1I/AAAAAAAAACM/p7r2Ujqj89k/s125-c/Jason%20Derulo%20(12).jpg');" class="direct-image-link" title="Jason Derulo (12).jpg" href="http://lh4.ggpht.com/_1aKXJovK1_4/TF6CjTT0f1I/AAAAAAAAACM/p7r2Ujqj89k/s700/Jason%20Derulo%20(12).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979337683763026">Jason Derulo (12).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh5.ggpht.com/_1aKXJovK1_4/TF6Ciq60oGI/AAAAAAAAACI/QX-J00EGRN8/s125-c/Jason%20Derulo%20(11).jpg');" class="direct-image-link" title="Jason Derulo (11).jpg" href="http://lh5.ggpht.com/_1aKXJovK1_4/TF6Ciq60oGI/AAAAAAAAACI/QX-J00EGRN8/s700/Jason%20Derulo%20(11).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979326841495650">Jason Derulo (11).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6Ch-mAPoI/AAAAAAAAACE/6T9eMJ-1bdU/s125-c/Jason%20Derulo%20(10).jpg');" class="direct-image-link" title="Jason Derulo (10).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6Ch-mAPoI/AAAAAAAAACE/6T9eMJ-1bdU/s700/Jason%20Derulo%20(10).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979314943016578">Jason Derulo (10).jpg</a></li><li><a rel="039c77f770f013798e01b81b59cbca06" style="background-image:url('http://lh6.ggpht.com/_1aKXJovK1_4/TF6ChVn62yI/AAAAAAAAACA/a8d3yhXFas0/s125-c/Jason%20Derulo%20(1).jpg');" class="direct-image-link" title="Jason Derulo (1).jpg" href="http://lh6.ggpht.com/_1aKXJovK1_4/TF6ChVn62yI/AAAAAAAAACA/a8d3yhXFas0/s700/Jason%20Derulo%20(1).jpg"></a><a class="picasa-image-link" title="View this image on Picasa" href="http://picasaweb.google.com/115831860493142173853/JasonDerulo#5502979303945198370">Jason Derulo (1).jpg</a></li></ul></div><div class="clear"></div></div>
<p>Cool eh? Try hovering or clicking on an image. Dig into my <a href="view-source:http://content.manmohanjit.com/themes/default/normal/files/script.js">source code</a> to get more information. All done with CSS3 and some Javascript(or shall I say jQuery). Sorry IE&#8217;ers, no support for y&#8217;all but it works great on IE7 and above.</p>
<p>About the Twitter integration, I don&#8217;t think its going to be possible. Various reasons.</p>
]]></content:encoded>
			<wfw:commentRss>http://manmohanjit.com/2010/08/24/picasa-integration-check-twitter-integration-maybe-not/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sending custom headers using .htaccess</title>
		<link>http://manmohanjit.com/2010/07/02/sending-custom-headers-using-htaccess/</link>
		<comments>http://manmohanjit.com/2010/07/02/sending-custom-headers-using-htaccess/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 11:10:03 +0000</pubDate>
		<dc:creator>Manmohanjit Singh</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://manmohanjit.com/?p=861</guid>
		<description><![CDATA[I had some free time so I thought of just playing around with my site. I&#8217;m not much of a Apache guy but I found out today that you can send custom headers using your .htaccess file. You can do it with PHP by using the header(); function. Anyway this is how you do it [...]]]></description>
			<content:encoded><![CDATA[<p>I had some free time so I thought of just playing around with my site. I&#8217;m not much of a Apache guy but I found out today that you can send custom headers using your .htaccess file. You can do it with PHP by using the <a href="http://php.net/manual/en/function.header.php"><em>header();</em></a> function.</p>
<p>Anyway this is how you do it using your .htaccess file:</p>
<pre>Header set Message "Oh hai thar~!! From: Manmohanjit Singh"</pre>
<p>It may sound immature but its fund <img src='http://manmohanjit.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . Anyway <a href="http://redbot.org/?uri=http%3A%2F%2Fmanmohanjit.com%2F">check out my headers</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://manmohanjit.com/2010/07/02/sending-custom-headers-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perfect function to create a readable slug with PHP</title>
		<link>http://manmohanjit.com/2010/06/08/perfect-function-to-create-a-readable-slug-with-php/</link>
		<comments>http://manmohanjit.com/2010/06/08/perfect-function-to-create-a-readable-slug-with-php/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 16:36:18 +0000</pubDate>
		<dc:creator>Manmohanjit Singh</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://manmohanjit.com/?p=542</guid>
		<description><![CDATA[If you&#8217;re in the process of building a new custom CMS, you might want those clean shiny URL&#8217;s(or slugs). You can&#8217;t have spaces in it, neither can you have funny looking symbols. You also need to make sure its readable. After reading an article at Intrepid and at cubiq.org, I merged both those functions(that were [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re in the process of building a new custom CMS, you might want those clean shiny URL&#8217;s(or slugs). You can&#8217;t have spaces in it, neither can you have funny looking symbols. You also need to make sure its readable. After reading an article at <a href="http://www.intrepidstudios.com/blog/2009/2/10/function-to-generate-a-url-friendly-string.aspx">Intrepid</a> and at <a href="http://cubiq.org/the-perfect-php-clean-url-generator">cubiq.org</a>, I merged both those functions(that were provided) into one that would generate a perfect readable slug using PHP.</p>
<p>Here&#8217;s the PHP function to do so:</p>
<pre>function create_slug($str) {
	$result = @iconv('UTF-8', 'ASCII//TRANSLIT', $str);
	$result = strtolower($result);
	$result = preg_replace("/[^a-z0-9\s-]/", "", $result);
	$result = trim(preg_replace("/\s+/", " ", $result));
	$result = preg_replace("/\s/", "-", $result);
	$result = preg_replace("/[\/_|+ -]+/", '-', $result);
	return $result;
}</pre>
<p>This is the slug generated for this post title:</p>
<pre>perfect-function-to-create-a-readable-slug-with-php</pre>
]]></content:encoded>
			<wfw:commentRss>http://manmohanjit.com/2010/06/08/perfect-function-to-create-a-readable-slug-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Snippet] Checking for an Ajax request using PHP</title>
		<link>http://manmohanjit.com/2010/05/07/snippet-checking-for-an-ajax-request-using-php/</link>
		<comments>http://manmohanjit.com/2010/05/07/snippet-checking-for-an-ajax-request-using-php/#comments</comments>
		<pubDate>Fri, 07 May 2010 12:48:28 +0000</pubDate>
		<dc:creator>Manmohanjit Singh</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://manmohanjit.com/?p=269</guid>
		<description><![CDATA[Here&#8217;s a piece of code that might come in handy while handling Ajax requests through PHP. With this code, you can easily check if there is an Ajax request. function isAjax() { if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) &#38;&#38; strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { return true; } else { return false; } } To check for an Ajax request is as [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a piece of code that might come in handy while handling Ajax requests through PHP. With this code, you can easily check if there is an Ajax request.</p>
<pre>function isAjax() {
	if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) &amp;&amp; strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
		return true;
	}
	else {
		return false;
	}
}</pre>
<p>To check for an Ajax request is as simple as this:</p>
<pre>if(isAjax()) {
	//there is an ajax request
}
else {
	//:( no ajax request
}</pre>
<p>So now you don&#8217;t need to send in a post/get parameter just to check for an Ajax request, just use the code above.</p>
]]></content:encoded>
			<wfw:commentRss>http://manmohanjit.com/2010/05/07/snippet-checking-for-an-ajax-request-using-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Posted x something ago; Twitter like timestamp using some PHP</title>
		<link>http://manmohanjit.com/2010/02/16/posted-x-something-ago-twitter-like-timestamp-using-some-php/</link>
		<comments>http://manmohanjit.com/2010/02/16/posted-x-something-ago-twitter-like-timestamp-using-some-php/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 08:51:37 +0000</pubDate>
		<dc:creator>Manmohanjit Singh</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://italkbullshit.com/manmohanjit.com/?p=27</guid>
		<description><![CDATA[Have you used or seen Twitter? The cool way they display the time a tweet was posted on? Example: “8 minutes ago”. I don’t know if you think its cool or not, but I sure think it is. I have been finding this piece of code either ready for me to use or even a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://twitter.com/GuyKawasaki"><img class="alignnone size-full wp-image-230" title="Twitter" src="http://content.manmohanjit.com/uploads/2010/01/twitter-time-php.jpg" alt="" width="631" height="211" /></a></p>
<p>Have you used or seen Twitter? The cool way they display the time a tweet was posted on? Example: “8 minutes ago”. I don’t know if you think its cool or not, but I sure think it is.</p>
<p>I have been finding this piece of code either ready for me to use or even a tutorial. I came across the code at snipplr, a place where you can share your code. It’s a useful site, that I suggest you bookmark. Anyway, it uses the time() format to calculate the seconds/minutes/hours/days/years/decades ago. You can view the code <a href="http://snipplr.com/view/17338/">here</a>.</p>
<pre>function newTime($tm,$rcs = 0) {
	// http://snipplr.com/view/17338/
	$cur_tm = time(); $dif = $cur_tm-$tm;
	$pds = array('second','minute','hour','day','week','month','year','decade');
	$lngh = array(1,60,3600,86400,604800,2630880,31570560,315705600);
	for($v = sizeof($lngh)-1; ($v &gt;= 0)&amp;&amp;(($no = $dif/$lngh[$v])&lt;=1); $v--); if($v &lt; 0) $v = 0; $_tm = $cur_tm-($dif%$lngh[$v]);
	$no = floor($no); if($no &lt;&gt; 1) $pds[$v] .='s'; $x=sprintf("%d %s ",$no,$pds[$v]);
	if(($rcs == 1)&amp;&amp;($v &gt;= 1)&amp;&amp;(($cur_tm-$_tm) &gt; 0)) $x .= time_ago($_tm);
	return $x."ago";
}</pre>
<p>To use it, <code>echo newTime(1264837797);</code>. It’ll return “56 minutes ago”.</p>
]]></content:encoded>
			<wfw:commentRss>http://manmohanjit.com/2010/02/16/posted-x-something-ago-twitter-like-timestamp-using-some-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP based Style Switcher with Cookies</title>
		<link>http://manmohanjit.com/2010/02/16/php-based-style-switcher-with-cookies/</link>
		<comments>http://manmohanjit.com/2010/02/16/php-based-style-switcher-with-cookies/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 08:50:36 +0000</pubDate>
		<dc:creator>Manmohanjit Singh</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://italkbullshit.com/manmohanjit.com/?p=29</guid>
		<description><![CDATA[I’ve came across many ’style-changers’, most of them either use Javascript or PHP to set the cookie, but this time I’ll use PHP. Its much more beneficial to do so because if I had used Javascript, browsers that don’t support Javascript will be left out. This is a very basic, simple and easy to use [...]]]></description>
			<content:encoded><![CDATA[<div class="entry">
<p>I’ve came across many ’style-changers’, most of them either use Javascript or PHP to set the cookie, but this time I’ll use PHP. Its much more beneficial to do so because if I had used Javascript, browsers that don’t support Javascript will be left out.</p>
<p>This is a very basic, simple and easy to use style changer. I tried to simplify the codes as much as possible.</p>
<p>So unlike last time where I just handed out the links, this time I’ve included many notes in each file. Basically this style-changer consists of two file, index.php and switcher.php. switcher.php is used to set the cookie and redirect the user back from where he/she came where as index.php is a dummy page with a basic style, once you click on a link on the top right of the index.php page. It will change the style using the $_GET method. The server will then set a cookie so that when ever you visit that particular site, the style will be what you picked earlier unless you clear all your cookies.</p>
<p><a href="http://content.manmohanjit.com/uploads/demos/style-switcher/" target="_blank"><img src="http://content.manmohanjit.com/uploads/demos/demo.png" alt="Demo" width="250" height="50" /></a> <a href="http://content.manmohanjit.com/uploads/demos/style-switcher/download.zip" target="_blank"><img src="http://content.manmohanjit.com/uploads/demos/download.png" alt="Download" width="250" height="50" /></a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://manmohanjit.com/2010/02/16/php-based-style-switcher-with-cookies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
