<?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>Anuj Rathi &#187; Technical</title>
	<atom:link href="http://www.anujrathi.com/category/technical/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anujrathi.com</link>
	<description></description>
	<lastBuildDate>Sun, 23 Jan 2011 12:33:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to add facebook &#8216;like&#8217; button to your wordpress blog?</title>
		<link>http://www.anujrathi.com/2010/04/22/how-to-add-facebook-like-button-to-your-wordpress-blog/</link>
		<comments>http://www.anujrathi.com/2010/04/22/how-to-add-facebook-like-button-to-your-wordpress-blog/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 06:34:07 +0000</pubDate>
		<dc:creator>anuj</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://www.anujrathi.com/?p=202</guid>
		<description><![CDATA[Facebook has added the &#8216;Like&#8217; functionality for the web that we all like so much (no pun intended!). And guess what, it&#8217;s dead simple to make each post on your blog likable. Now, assuming you want to create this for each post on your blog (it makes little sense to like a category or tag [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook has added the &#8216;Like&#8217; functionality for the web that we all <em>like</em> so much (no pun intended!). And guess what, it&#8217;s dead simple to make each post on your blog likable.</p>
<p>Now, assuming you want to create this for each post on your blog (it makes little sense to like a category or tag or the blog itself, although it can be done! ), you just need to add this button on each post that you create. For that, all you need is the php file which is included only on single blog posts, and its permalink. For wordpress, the file is called &#8216;single.php&#8217; and is included within your theme. So browse to your wp-content directory, then your plugin&#8217;s name, and then edit the &#8216;single.php&#8217; in it.</p>
<p>The code that you will need on single.php can be generated  <a rel="nofollow" href="http://developers.facebook.com/docs/reference/plugins/like" target="_BLANK">here</a>. Facebook presents to you a widget, through which you can create your custom &#8216;like&#8217; button. In the &#8216;URL to like&#8217;, include &lt;?php the_permalink() ?&gt;<strong></strong>, it&#8217;s the wordpress php code for generating URL for each post. Go ahead and change any other values you would like to tinker with.</p>
<p>Finally click on &#8216;Get Code&#8217;, and include this code in the &#8216;single.php&#8217; of your blog. You&#8217;re done!<br />
<img src="http://anujrathi.com/anuj/fblike.png" alt="Creating Facebook - like button for your blog" /></p>
<p>It&#8217;s too simple to be missed even by the people who don&#8217;t know abc about php or wordpress, and the kind of virality this feature has is immense. Gone are the days when you used to customize your blog for keywords and optimize each post for search engines just to be seen and get more traffic. Facebook provides us with social sharing <em>outside of facebook</em>, even easier than tweeting, IMHO.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anujrathi.com/2010/04/22/how-to-add-facebook-like-button-to-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Why IE6 must die</title>
		<link>http://www.anujrathi.com/2010/03/11/why-ie6-must-die/</link>
		<comments>http://www.anujrathi.com/2010/03/11/why-ie6-must-die/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 19:43:39 +0000</pubDate>
		<dc:creator>anuj</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[stupid people]]></category>
		<category><![CDATA[wrgmg]]></category>

		<guid isPermaLink="false">http://www.anujrathi.com/?p=180</guid>
		<description><![CDATA[And why doesn’t it make sense to still support the evil browser As a web developer, I have been disappointed, disheartened, frustrated, and mostly infuriated by IE6. If you don&#8217;t know what is IE6, most probably you are using it right now. Now, I don’t want to get into the technical details of IE6 and [...]]]></description>
			<content:encoded><![CDATA[<h4>And why doesn’t it make sense to still support the evil browser</h4>
<p><img style="padding-left:170px;"src="http://www.netmag.co.uk/files/bd.png" alt="" /><br />
<br />
As a web developer, I have been disappointed, disheartened, frustrated, and mostly infuriated by IE6. If <em>you</em> don&#8217;t know what is IE6, most probably you are using it right now. Now, I don’t want to get into the technical details of IE6 and why it sucks. I’ll just logically prove to you why supporting IE6 won’t help your business. Without any doubt we can assume that the only people who use IE6 are:<br />
1) People who are just plain stupid (aka <strong>fools</strong>): These people don&#8217;t know what a browser is, and just click on the start button of their XP boxes and click on &#8220;Internet&#8221;.<br />
2) Grandmas (aka <strong>grandmas</strong>): I wouldn&#8217;t say they are stupid, but they are likely to use IE6 for the same reason as above.<br />
3) People who surf the net from cyber cafes(aka &#8216;poor people, hungry people&#8217; or <strong>pphp</strong> ): They don&#8217;t have any other options in many cases. Too poor to own a computer, and too naive to demand a better browser. Some references to <strong>pphp</strong>s can be found <a target="_BLANK" href="http://www.anujrathi.com/2009/04/05/mosquito-net-in-the-net-cafe/">here</a> and <a href="http://www.anujrathi.com/2009/03/05/stupid-people-and-their-online-profiles/" target="_BLANK">here</a>.<br />
4) People whose companies have blocked installation of other browsers and applications (aka <strong>handcuffed</strong>): Tch tch&#8230; sometimes these good old normal people (even internet savvy, you may say) might not be able to use another browser because of their companies. Enterprise apps are many a times built for IE6.<br />
5) People who develop and test their sites on IE6(aka <strong>developers</strong>): Poor people like us, who have a job to protect their site on IE6, and still make it work on other browsers.</p>
<div></div>
<p>After we have established the users for IE6, we can analyse the web to see why it&#8217;s used. And why making your site work in IE6 is not helping you in any way. Let&#8217;s consider the broad categories of websites/web applications one is likely to encounter:</p>
<div></div>
<p>1) <strong>E-commerce</strong> &#8211; Suppose you&#8217;re running your e-commerce site, do you think anyone using a paleolithic browser like IE6 is going to run his/her card through your payment gateway? E-commerce doesn&#8217;t work for <em>fools</em> &#8211; they would select mastercard instead of visa. It doesn&#8217;t work for <em>grandmas</em> &#8211; they won&#8217;t know what a credit card is. Of course it doesn&#8217;t work for <em>pphp</em>- Remember, they are poor people, hungry people. <em>Handcuffed</em> people won&#8217;t be allowed to visit an e-commerce site anyway, and <em>developers</em> are too busy making that site.</p>
<div></div>
<p>2) <strong>Building a Brand</strong>: Rolexes and Ferraris don&#8217;t sell on the web, but still have well maintained websites. The reason is that they want to build or enhance their brand through a slick website and substantial web presence. Branding doesn&#8217;t work for <em>fools</em> &#8211; that&#8217;s their definition. Might work for <em>grandmas</em>, but they would forget the brand name during lunch time. I&#8217;m assuming no branding is necessary for <em>pphp</em>, as they&#8217;re not in any target group &#8211; they never are. <em>Handcuffed</em> people won&#8217;t be allowed to visit a branding site anyway, and <em>developers</em> are too busy making that site.</p>
<div></div>
<p>3) <strong>Content</strong>: People also use internet to read some free content online. If you have any serious content that&#8217;s not about <em>fools</em> or <em>grandmas</em>, then your site is not going to be used by them anyway. <em>Pphp</em> may come to your site, but being too time conscious, before they click on an ad which helps you earn profit,  they&#8217;ll either pack up and leave or use their remaining minutes watching desibaba. <em>Handcuffed</em> people won&#8217;t be allowed to visit a content site anyway, and <em>developers</em> are too busy making that site.</p>
<div></div>
<p>4) <strong>Networking</strong>: Who wants <em>fools</em> to be a part of their social or business network? You got it &#8211; other <em>fools</em>. If your site analytics shows that IE6 users make 40% of your total users, you know that your networking site is going to die &#8211; soon. <em>Grandmas</em> and <em>pphp</em>- ditto. And of course <img src='http://www.anujrathi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Handcuffed people won&#8217;t be allowed to visit a networking site anyway, and developers are too busy making that site.</p>
<div></div>
<p>5) <strong>Mail, apps and other useful sites</strong>: You can hold IE6 users to ransom and refuse supporting it. If your product is good enough(e.g. youtube, google apps, 37signals), people will upgrade their browsers and come to your site anyway.</p>
<p>Moral of the story: Let it d<strong>IE</strong><em></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.anujrathi.com/2010/03/11/why-ie6-must-die/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Photographer of the year competition(s).</title>
		<link>http://www.anujrathi.com/2009/09/06/photographer-of-the-year-competitions/</link>
		<comments>http://www.anujrathi.com/2009/09/06/photographer-of-the-year-competitions/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 13:16:33 +0000</pubDate>
		<dc:creator>anuj</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Website reviews]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[better photography]]></category>
		<category><![CDATA[canvera]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[photography competition]]></category>

		<guid isPermaLink="false">http://www.anujrathi.com/?p=144</guid>
		<description><![CDATA[Better photography, a well known photography magazine of India organizes the “Photographer of the year” competition every year. And year after year, they have organized it successfully offline, accepting entries from the best photographers across India and abroad. This year, however they decided to take this online and canvera.com being the associate partner had to [...]]]></description>
			<content:encoded><![CDATA[<p>Better photography, a well known photography magazine of India organizes the “Photographer of the year” competition every year. And year after year, they have organized it successfully offline, accepting entries from the best photographers across India and abroad. This year, however they decided to take this online and canvera.com being the associate partner had to come up with a web application that would enable photographers to submit their entries through a <a href="http://canvera.com/betterphotography" target="_BLANK">brand new site</a>. </p>
<p>Three weeks was the allotted time for the completion of the project in which the design (and its thousand iterations), development, and QA and all the tweaks would all had to be completed. And my team, i.e. Mayur (a.k.a the designer), Kanupriya (product manager) and myself (<em>the</em> developer) were given the responsibility for the web application. It was definitely a roller coaster ride; new designs being discussed (and partly implemented) daily, new functional requirements and the architecture slowly but surely building up. </p>
<p>I had an option of choosing Ruby on Rails or php or Java EE to build this application, and for a two weeks time frame the former two would have definitely been faster. But we decided for Java, and built the entire application using jsp/struts/tiles/spring/hibernate/postgresql/jboss. It’s a standard web application: A home page which briefly introduces the application, some static pages which explain the competition in the detail, a registration page (with forgot password functionality), login, user profile page, category page, theme page and upload image page. Image storage and thumbnail generation have been given a lot of importance, and is pretty scalable. But to get the thing work in IE6 was a real pain. IE7 didn&#8217;t play too nice either but they all eventually fell in place <img src='http://www.anujrathi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>A javascript library is needed in every modern application, and although a big fan of YUI I decided on jquery this time. And I am amazed by the variety and support in jquery plugins, and slowly becoming my favorite. Although this is the first application where I hadn’t used any AJAX in the whole application, the whole experience is pretty smooth in my opinion. The image upload could have been a little smoother(and it will be, I promise <img src='http://www.anujrathi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) with the flash uploader. Some more small features like an ajax feedback modal dialog box and editing image details might follow soon. </p>
<p>Coming to the competition, there are actually three of those. <a href="http://canvera.com/betterphotography/photographer_of_the_year/" target="_BLANK">Photographer of the year</a>(POY for brief), <a href="http://canvera.com/betterphotography/young_photographer_of_the_year/" target="_BLANK">Young photographer of the year</a>(YPOY), and <a href="http://canvera.com/betterphotography/wedding_photographer_of_the_year/">Wedding photographer of the year</a>(WPOY). YPOY and WPOY are being organized for the first time this year, and as you&#8217;d have guessed, YPOY is only for people under 18. </p>
<p>There are eight themes each for the photographer/young photographer of the year:  Family and friends, Natural elements, life on streets, man/environment, twilight magic, still life, wild life and landscapes and a maximum of four photographs can be uploaded in each theme. For wedding photographer of the year, the themes are: Bridal portraits, couple portraits, family and friends, behind the scenes, emotions and photo series of a single wedding. All competitions are open for amateurs and professionals alike, so just pick up your camera, shoot some cool shots and go uploading!</p>
<p>All in all, it was a very fulfilling experience developing the application, in which arguably the best Indian photographers, young photographers and wedding photographers will upload their best shots! I hope that the best photographers in India would find <a href="http://canvera.com/betterphotography/register/" target="_BLANK">participating in the contest</a> simple and enjoyable. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.anujrathi.com/2009/09/06/photographer-of-the-year-competitions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

