<?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>Techie-Gyan &#187; API</title>
	<atom:link href="http://www.techiegyan.com/category/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techiegyan.com</link>
	<description></description>
	<lastBuildDate>Fri, 25 Nov 2011 05:37:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A list of useful software tools – 3</title>
		<link>http://www.techiegyan.com/2011/04/19/a-list-of-useful-software-tools-%e2%80%93-3/</link>
		<comments>http://www.techiegyan.com/2011/04/19/a-list-of-useful-software-tools-%e2%80%93-3/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 17:58:24 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[addon]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[basics]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.techiegyan.com/?p=1725</guid>
		<description><![CDATA[Top100 Tools for Learning 2010 View more presentations from Jane Hart]]></description>
			<content:encoded><![CDATA[<div style="width:425px" id="__ss_5467243"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/janehart/top100-tools-for-learning-2010" title="Top100 Tools for Learning 2010">Top100 Tools for Learning 2010</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/5467243" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/janehart">Jane Hart</a> </div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.techiegyan.com/2011/04/19/a-list-of-useful-software-tools-%e2%80%93-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Spring 3 &#8211; Synopsis, all modules</title>
		<link>http://www.techiegyan.com/2011/03/09/spring-3-synopsis-all-modules/</link>
		<comments>http://www.techiegyan.com/2011/03/09/spring-3-synopsis-all-modules/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 10:44:28 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[j2ee]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.techiegyan.com/?p=1603</guid>
		<description><![CDATA[Spring 3 View more presentations from André Faria Gomes]]></description>
			<content:encoded><![CDATA[<div style="width:425px" id="__ss_3005855"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/andrefaria/spring-3" title="Spring 3">Spring 3</a></strong> <object id="__sse3005855" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=spring3-100127102423-phpapp02&#038;stripped_title=spring-3&#038;userName=andrefaria" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse3005855" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=spring3-100127102423-phpapp02&#038;stripped_title=spring-3&#038;userName=andrefaria" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/andrefaria">André Faria Gomes</a> </div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.techiegyan.com/2011/03/09/spring-3-synopsis-all-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Introduction To Android</title>
		<link>http://www.techiegyan.com/2010/10/24/an-introduction-to-android/</link>
		<comments>http://www.techiegyan.com/2010/10/24/an-introduction-to-android/#comments</comments>
		<pubDate>Sun, 24 Oct 2010 19:32:02 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.techiegyan.com/?p=1531</guid>
		<description><![CDATA[An Introduction To Android View more presentations from natdefreitas.]]></description>
			<content:encoded><![CDATA[<div style="width:425px" id="__ss_1046655"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/natdefreitas/an-introduction-to-android" title="An Introduction To Android">An Introduction To Android</a></strong><object id="__sse1046655" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=an-introduction-to-androidwithnffinal-1235051497625329-1&#038;stripped_title=an-introduction-to-android&#038;userName=natdefreitas" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse1046655" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=an-introduction-to-androidwithnffinal-1235051497625329-1&#038;stripped_title=an-introduction-to-android&#038;userName=natdefreitas" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/natdefreitas">natdefreitas</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.techiegyan.com/2010/10/24/an-introduction-to-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Commons</title>
		<link>http://www.techiegyan.com/2010/08/23/apache-commons/</link>
		<comments>http://www.techiegyan.com/2010/08/23/apache-commons/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 09:26:59 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[addon]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[basics]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[j2ee]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://www.techiegyan.com/?p=1483</guid>
		<description><![CDATA[An overview of many commons libraries. Will try to cover the popular ones in separate posts. Apache Commons &#8211; Don\&#39;t re-invent the wheel View more presentations from tcurdt.]]></description>
			<content:encoded><![CDATA[<p>An overview of many commons libraries. Will try to cover the popular ones in separate posts.</p>
<div style="width:425px" id="__ss_762432"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/tcurdt/apache-commons-dont-reinvent-the-wheel-presentation" title="Apache Commons - Don\&#39;t re-invent the wheel">Apache Commons &#8211; Don\&#39;t re-invent the wheel</a></strong><object id="__sse762432" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=commons-1226968082756899-9&#038;stripped_title=apache-commons-dont-reinvent-the-wheel-presentation" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse762432" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=commons-1226968082756899-9&#038;stripped_title=apache-commons-dont-reinvent-the-wheel-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/tcurdt">tcurdt</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.techiegyan.com/2010/08/23/apache-commons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why re-invent the wheel? Apache Commons &#8211; Lang</title>
		<link>http://www.techiegyan.com/2010/08/23/why-re-invent-the-wheel-apache-commons-lang/</link>
		<comments>http://www.techiegyan.com/2010/08/23/why-re-invent-the-wheel-apache-commons-lang/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 09:22:19 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[addon]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[basics]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[j2ee]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://www.techiegyan.com/?p=1462</guid>
		<description><![CDATA[While coding what we do most? I think checking the Object variable if it is not null before using it. There are various things which we do usually in our code like iterating an Array for deleting the item, Escaping Strings for a particular use, Adding days to the current date, Adding an item in [...]]]></description>
			<content:encoded><![CDATA[<p>While coding what we do most? I think checking the Object variable if it is not null before using it. There are various things which we do usually in our code like iterating an Array for deleting the item, Escaping Strings for a particular use, Adding days to the current date, Adding an item in Array, reversing the Array, remove a part of String etc. We can not avoid doing these things in our code and i think these are main reason of petty bugs in the application. Apache commons solve this problem in a very nice way. It has a set of projects dedicated to specific types of utilities. You can check the details on the prject page (http://commons.apache.org/) it self. </p>
<p>Here I am trying to list some of the very basic utilities of commons lang project which can save our application from petty issues and reduce the code size.</p>
<p><strong>1. ArrayUtils</strong>: These functions can also be used for primitive types directly. Check the API page (http://commons.apache.org/lang/api-release/index.html)</p>
<pre class="brush: java; title: ; notranslate">
   ArrayUtils.add(Object[] array, Object element) //adds object to the array
   ArrayUtils.add(Object[] array, index, Object element) //adds object to the array at specified index
   ArrayUtils.addAll(Object[] array1, Object[] array2) //add all objects to the array and create combined array
   ArrayUtils.contains(Object[] array, Object element) //checks if object is part of array or not
   ArrayUtils.indexOf(Object[] array, Object elementToFind) //finds index of object in array
   ArrayUtils.remove(Object[] array, Object elementToremove) //removes object from the array
</pre>
<p><strong>2. StringUtils</strong>: I find this really useful while handling Strings. Go through the API of this class. I am sure you can use this class and save a lot of time &#038; bugs.</p>
<pre class="brush: java; title: ; notranslate">
   StringUtils.abbreviate(String str, int maxwidth); //use this while showing long strings on UI. it will use  ellipse at the end.
   StringUtils.isBlank(String str); //Checks null and content and returns true in case only blanks are there is string
   StringUtils.isEmpty(String str);//Check null and returns true in case string is empty i.e. no blanks also.
   StringUtils.isNumeric(String str);// Checks if String is numeric
   StringUtils.trim(String str); // Trims the string to only the content and removes blanks
   StringUtils.isAlphnumeric(String str); //Checks if string is alphanumeric
   StringUtils.countMatches(String str, Sting sub);// Count number of matches of sub string in str.
</pre>
<p><strong>3. StringEscapeUtils</strong>: Another possible source of error. Use this to avoid issues and confusions. Keep your string as it is and use these escape functions before using them accordingly.</p>
<pre class="brush: java; title: ; notranslate">
   StringEscapeUtils.escapeCsv(); // Escapes string for CSV
   StringEscapeUtils.escapeJava();// Escapes string for Java
   StringEscapeUtils.escapeSql();// Escapes string for Sql
   StringEscapeUtils.escapeXml();// Escapes string for XML
   StringEscapeUtils.unescapeCsv(); // Yes you can un-escape also <img src='http://www.techiegyan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
   </pre>
<p><strong>4. DateUtils</strong> : A Utility wrapper on Date and Calendar objects and does provide many functions on it.</p>
<pre class="brush: java; title: ; notranslate">
   DateUtils.addDays(Date date, int amount); // Add days to the current date, see more in API for similar functions
   DateUtils.isSameDay(Calendar cal1, Calendar cal2); // Checks if cal1 and cal2 are same day
   </pre>
<p><strong>5. SystemUtils</strong> : Set of functions to find System properties</p>
<pre class="brush: java; title: ; notranslate">
   SystemUtils.IS_JAVA_1_4;
   SystemUtils.IS_OS_LINUX;
   SystemUtils.USER_TIMEZONE;
   SystemUtils.getJavaHome();
   </pre>
<p>I am sure you can save time, code size and a lot of petty issues in code if you use commons. It is widely used by many open source projects. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.techiegyan.com/2010/08/23/why-re-invent-the-wheel-apache-commons-lang/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

