<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>My thoughts..</title>
	<atom:link href="http://psiva.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://psiva.wordpress.com</link>
	<description>on what I work on</description>
	<lastBuildDate>Tue, 13 Dec 2011 12:02:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='psiva.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>My thoughts..</title>
		<link>http://psiva.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://psiva.wordpress.com/osd.xml" title="My thoughts.." />
	<atom:link rel='hub' href='http://psiva.wordpress.com/?pushpress=hub'/>
		<item>
		<title>FDI in retail..</title>
		<link>http://psiva.wordpress.com/2011/11/28/fdi-in-retail/</link>
		<comments>http://psiva.wordpress.com/2011/11/28/fdi-in-retail/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 00:46:46 +0000</pubDate>
		<dc:creator>psiva</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[thoughts..]]></category>

		<guid isPermaLink="false">http://psiva.wordpress.com/?p=98</guid>
		<description><![CDATA[Is it not ironic that Indian government allowed for FDI in retail in the era of occupy protests? Not sure if we are going in the right direction. RBI governor says this move will ensure the supply chain problems will be reduced and will ease inflation. How stupid is that? If you know the problem, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=98&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Is it not ironic that Indian government allowed for FDI in retail in the era of occupy protests? Not sure if we are going in the right direction. RBI governor says this move will ensure the supply chain problems will be reduced and will ease inflation. How stupid is that? If you know the problem, why not fix it? Is that saying that these companies are far more efficient than Indian Govt? In the hindsight it may be true but still is that the positive that should be taken as a basis for allowing FDI in  retail.</p>
<p>Sincerely hope we do not end in a crisis that is sweeping the west.</p>
<br />Filed under: <a href='http://psiva.wordpress.com/category/misc/'>Misc</a> Tagged: <a href='http://psiva.wordpress.com/tag/thoughts/'>thoughts..</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/psiva.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/psiva.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/psiva.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/psiva.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/psiva.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/psiva.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/psiva.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/psiva.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/psiva.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/psiva.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/psiva.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/psiva.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/psiva.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/psiva.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=98&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://psiva.wordpress.com/2011/11/28/fdi-in-retail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e51fecaf3f7adb422d09328173d33a5f?s=96&#38;d=" medium="image">
			<media:title type="html">psiva</media:title>
		</media:content>
	</item>
		<item>
		<title>Take passport photos at home</title>
		<link>http://psiva.wordpress.com/2011/11/04/take-passport-photos-at-home/</link>
		<comments>http://psiva.wordpress.com/2011/11/04/take-passport-photos-at-home/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 18:34:21 +0000</pubDate>
		<dc:creator>psiva</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://psiva.wordpress.com/?p=94</guid>
		<description><![CDATA[If you want to take passport photos at home , please check out IDPhoto4You and ePassportPhoto Filed under: Misc<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=94&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to take passport photos at home , please check out <a href="http://www.idphoto4you.com/" title="IDPhoto4You">IDPhoto4You</a> and <a href="http://www.epassportphoto.com/" title="ePassportPhoto">ePassportPhoto</a></p>
<br />Filed under: <a href='http://psiva.wordpress.com/category/misc/'>Misc</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/psiva.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/psiva.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/psiva.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/psiva.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/psiva.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/psiva.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/psiva.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/psiva.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/psiva.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/psiva.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/psiva.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/psiva.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/psiva.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/psiva.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=94&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://psiva.wordpress.com/2011/11/04/take-passport-photos-at-home/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e51fecaf3f7adb422d09328173d33a5f?s=96&#38;d=" medium="image">
			<media:title type="html">psiva</media:title>
		</media:content>
	</item>
		<item>
		<title>Why are we celebrating ?</title>
		<link>http://psiva.wordpress.com/2011/08/29/why-are-we-celebrating/</link>
		<comments>http://psiva.wordpress.com/2011/08/29/why-are-we-celebrating/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 11:03:53 +0000</pubDate>
		<dc:creator>psiva</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://psiva.wordpress.com/?p=92</guid>
		<description><![CDATA[One things that intrigued me most is why are we celebrating the Team Anna&#8217;s success. When many in this country accept cash for votes, employees submitting fake bills for reimbursement etc, Chief Ministers thrown out of power because they wanted the govt employees work.. do we have a moral right to fight against corruption? are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=92&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One things that intrigued me most is why are we celebrating the Team Anna&#8217;s success. When many in this country accept cash for votes, employees submitting fake bills for reimbursement etc, Chief Ministers thrown out of power because they wanted the govt employees work.. do we have a moral right to fight against corruption? are we saying having a tough lokpal bill will eradicate all these? even if we assume, law gets passed the way we wanted it to be, are we sure we will follow it in letter and spirit. I do not think so because there is no dearth of laws in this country but none are followed / implemented. But then , why such euphoria for what has happened on Saturday in Parliament?</p>
<p>Unless and until there is a significant mindset and attitude change among the people, bills like this come and go with no change to our daily lives.</p>
<p>Next time when someone accepts cash for votes, or submits a fake bill for reimbursement we need to think.. am I right in asking for a law on corruption..</p>
<p>The change has to come from each one of us, then even without the law, we can be a corruption free country.</p>
<br />Filed under: <a href='http://psiva.wordpress.com/category/misc/'>Misc</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/psiva.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/psiva.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/psiva.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/psiva.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/psiva.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/psiva.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/psiva.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/psiva.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/psiva.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/psiva.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/psiva.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/psiva.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/psiva.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/psiva.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=92&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://psiva.wordpress.com/2011/08/29/why-are-we-celebrating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e51fecaf3f7adb422d09328173d33a5f?s=96&#38;d=" medium="image">
			<media:title type="html">psiva</media:title>
		</media:content>
	</item>
		<item>
		<title>Playing VOB, IFO and BUP files</title>
		<link>http://psiva.wordpress.com/2011/08/15/playing-vob-ifo-and-bup-files/</link>
		<comments>http://psiva.wordpress.com/2011/08/15/playing-vob-ifo-and-bup-files/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 01:32:36 +0000</pubDate>
		<dc:creator>psiva</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[DVD Video]]></category>

		<guid isPermaLink="false">http://psiva.wordpress.com/?p=87</guid>
		<description><![CDATA[VOB is short for DVD Video Object. IFO is Information file and BUP is a back up for IFO files. IFO files contain all the information that is needed to play the DVD video. To play DVD video files, download VLC player and navigate to Video_TS.IFO file. Any IFO file will work but if you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=87&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>VOB is short for DVD Video Object. IFO is Information file and BUP is a back up for IFO files.</p>
<p>IFO files contain all the information that is needed to play the DVD video.</p>
<p>To play DVD video files, download VLC player and navigate to Video_TS.IFO file. Any IFO file will work but if you want to watch the entire video in one go, use Video_TS.IFO file.</p>
<br />Filed under: <a href='http://psiva.wordpress.com/category/misc/'>Misc</a> Tagged: <a href='http://psiva.wordpress.com/tag/dvd-video/'>DVD Video</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/psiva.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/psiva.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/psiva.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/psiva.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/psiva.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/psiva.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/psiva.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/psiva.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/psiva.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/psiva.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/psiva.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/psiva.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/psiva.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/psiva.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=87&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://psiva.wordpress.com/2011/08/15/playing-vob-ifo-and-bup-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e51fecaf3f7adb422d09328173d33a5f?s=96&#38;d=" medium="image">
			<media:title type="html">psiva</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Mockups or Wireframes</title>
		<link>http://psiva.wordpress.com/2011/08/11/creating-mockups-or-wireframes/</link>
		<comments>http://psiva.wordpress.com/2011/08/11/creating-mockups-or-wireframes/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 18:36:41 +0000</pubDate>
		<dc:creator>psiva</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[balsamiq]]></category>
		<category><![CDATA[good software]]></category>
		<category><![CDATA[mockups]]></category>

		<guid isPermaLink="false">http://psiva.wordpress.com/?p=82</guid>
		<description><![CDATA[If you need to create mockups for your applications, check out balsamiq . Really cool and makes mockups fun. Filed under: Misc Tagged: balsamiq, good software, mockups<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=82&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you need to create mockups for your applications, check out <a href="http://balsamiq.com/" title="balsamiq" target="_blank">balsamiq</a> . Really cool and makes mockups fun.</p>
<br />Filed under: <a href='http://psiva.wordpress.com/category/misc/'>Misc</a> Tagged: <a href='http://psiva.wordpress.com/tag/balsamiq/'>balsamiq</a>, <a href='http://psiva.wordpress.com/tag/good-software/'>good software</a>, <a href='http://psiva.wordpress.com/tag/mockups/'>mockups</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/psiva.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/psiva.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/psiva.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/psiva.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/psiva.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/psiva.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/psiva.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/psiva.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/psiva.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/psiva.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/psiva.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/psiva.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/psiva.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/psiva.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=82&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://psiva.wordpress.com/2011/08/11/creating-mockups-or-wireframes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e51fecaf3f7adb422d09328173d33a5f?s=96&#38;d=" medium="image">
			<media:title type="html">psiva</media:title>
		</media:content>
	</item>
		<item>
		<title>Connecting to LDAP using Java</title>
		<link>http://psiva.wordpress.com/2011/08/05/connecting-to-ldap-using-java/</link>
		<comments>http://psiva.wordpress.com/2011/08/05/connecting-to-ldap-using-java/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 19:59:10 +0000</pubDate>
		<dc:creator>psiva</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://psiva.wordpress.com/?p=81</guid>
		<description><![CDATA[For more information on LDAP queries refer to LDAP basics Filed under: Misc<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=81&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: java;">
javax.naming.directory.DirContext myContext;
		try {
			String serverName = &quot;xyz.abc.com&quot;;
			java.util.Hashtable&lt;String, String&gt; envVars = new java.util.Hashtable&lt;String, String&gt;();
			envVars.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
					&quot;com.sun.jndi.ldap.LdapCtxFactory&quot;);
			envVars.put(javax.naming.Context.PROVIDER_URL, &quot;ldap://&quot; + serverName);
			envVars.put(javax.naming.Context.SECURITY_AUTHENTICATION, &quot;simple&quot;);
			envVars.put(javax.naming.Context.SECURITY_PRINCIPAL, &quot;LDAPUserName&quot;);
			envVars.put(javax.naming.Context.SECURITY_CREDENTIALS, &quot;Password&quot;);
			myContext = new javax.naming.directory.InitialDirContext(envVars);
			javax.naming.directory.SearchControls searchCtrls = new javax.naming.directory.SearchControls();
			searchCtrls.setSearchScope(javax.naming.directory.SearchControls.SUBTREE_SCOPE);
			String[] attributes = { &quot;name&quot;,&quot;mail&quot;,&quot;department&quot;,&quot;telephoneNumber&quot;,&quot;manager&quot;,&quot;postalAddress&quot;,&quot;postalCode&quot;,&quot;st&quot;,&quot;co&quot;,&quot;employeeId&quot;};
			searchCtrls.setReturningAttributes(attributes);
			searchCtrls.setCountLimit(new Long(&quot;50&quot;).longValue());
			String name = &quot;&quot;;
			String filter = &quot;(&amp;(objectClass=organizationalPerson)(sAMAccountName=12345678))&quot;;
			javax.naming.NamingEnumeration values = myContext.search(
					&quot;DC=domain,DC=fg,DC=abc,DC=com&quot;, filter, searchCtrls);
			Map results = new HashMap();
			Map ldapResult = new HashMap();
			int idx = 1;
			while (values.hasMoreElements()) {
				
				javax.naming.directory.SearchResult result = (javax.naming.directory.SearchResult) values.next();
				javax.naming.directory.Attributes attribs = result.getAttributes();
				if (null != attribs) {
					for (javax.naming.NamingEnumeration ae = attribs.getAll() ; ae
							.hasMoreElements();) {			
						javax.naming.directory.Attribute atr = (javax.naming.directory.Attribute) ae.next();
						String attributeID = atr.getID();
						System.out.println(attributeID);
						java.util.Enumeration vals = atr.getAll();		
						String nextVal = (String)vals.nextElement();
						ldapResult.put(attributeID, nextVal);
					}
					results.put(new Integer(idx), ldapResult);
					ldapResult = new HashMap&lt;String,String&gt;();
					idx++;
				}
			}
			Iterator resultItr = results.entrySet().iterator();
			Iterator ldapItr = null;
			HashMap map = null;
		    while (resultItr.hasNext()) {
		        Map.Entry pairs = (Map.Entry)resultItr.next();
		        map = ((HashMap)pairs.getValue());
		        ldapItr = map.entrySet().iterator();
		        while(ldapItr.hasNext()){
		         Map.Entry result = (Map.Entry)ldapItr.next();
		         System.out.println(result.getKey()+&quot; &quot;+result.getValue());
		         if(result.getKey().equals(&quot;manager&quot;)){
		        	 javax.naming.ldap.LdapName dn = new javax.naming.ldap.LdapName(result.getValue().toString());
		        	 String manager = dn.get(dn.size()-1);
		        	 manager = manager.replace(&quot;CN=&quot;,&quot;&quot;).replace(&quot;\\&quot;,&quot;&quot;);
		        	 System.out.println(manager);
		         }
		        }
		        System.out.println(&quot;**************&quot;);
		    }
			myContext.close();
		} catch (NamingException e) {
			e.printStackTrace();
		}
	</pre></p>
<p>For more information on LDAP queries refer to <a href="http://technet.microsoft.com/en-us/library/aa996205%28EXCHG.65%29.aspx" title="LDAP basics">LDAP basics</a></p>
<br />Filed under: <a href='http://psiva.wordpress.com/category/misc/'>Misc</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/psiva.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/psiva.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/psiva.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/psiva.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/psiva.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/psiva.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/psiva.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/psiva.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/psiva.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/psiva.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/psiva.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/psiva.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/psiva.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/psiva.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=81&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://psiva.wordpress.com/2011/08/05/connecting-to-ldap-using-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e51fecaf3f7adb422d09328173d33a5f?s=96&#38;d=" medium="image">
			<media:title type="html">psiva</media:title>
		</media:content>
	</item>
		<item>
		<title>Converting Java date from one timezone to another</title>
		<link>http://psiva.wordpress.com/2011/07/27/converting-java-date-from-one-timezone-to-another/</link>
		<comments>http://psiva.wordpress.com/2011/07/27/converting-java-date-from-one-timezone-to-another/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 16:30:08 +0000</pubDate>
		<dc:creator>psiva</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://psiva.wordpress.com/?p=75</guid>
		<description><![CDATA[Filed under: Misc<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=75&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>        <pre class="brush: java;">
       String strDate = &quot;20110711T175921.000 GMT&quot;;
	TimeZone est = TimeZone.getTimeZone(&quot;America/New_York&quot;);
	TimeZone gmt = TimeZone.getTimeZone(&quot;GMT&quot;);
	try
	{
	//create SimpleDateFormat object with source string date format
	SimpleDateFormat sdfSource = new SimpleDateFormat(&quot;yyyyMMdd'T'hhmmss&quot;);
	sdfSource.setTimeZone(gmt);
	//parse the string into Date object
	Date date = sdfSource.parse(strDate);
	
	//create SimpleDateFormat object with desired date format
	SimpleDateFormat sdfDestination = new SimpleDateFormat(&quot;yyyy-MM-dd'T'HH:mm:ss&quot;);
	sdfDestination.setTimeZone(est);
	//parse the date into another format
	strDate = sdfDestination.format(date);
	 
	System.out.println(&quot;Converted date is : &quot; + strDate);
	 
	}
	catch(ParseException pe)
	{
	System.out.println(&quot;Parse Exception : &quot; + pe);
	} 
       </pre></p>
<br />Filed under: <a href='http://psiva.wordpress.com/category/misc/'>Misc</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/psiva.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/psiva.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/psiva.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/psiva.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/psiva.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/psiva.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/psiva.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/psiva.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/psiva.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/psiva.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/psiva.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/psiva.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/psiva.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/psiva.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=75&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://psiva.wordpress.com/2011/07/27/converting-java-date-from-one-timezone-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e51fecaf3f7adb422d09328173d33a5f?s=96&#38;d=" medium="image">
			<media:title type="html">psiva</media:title>
		</media:content>
	</item>
		<item>
		<title>Decimal Precision using Java</title>
		<link>http://psiva.wordpress.com/2011/07/27/decimal-precision-using-java/</link>
		<comments>http://psiva.wordpress.com/2011/07/27/decimal-precision-using-java/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 14:23:56 +0000</pubDate>
		<dc:creator>psiva</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[precision]]></category>

		<guid isPermaLink="false">http://psiva.wordpress.com/?p=59</guid>
		<description><![CDATA[Below is a sample code to achieve decimal precision using Java. The example rounds the value with a precision of 2. output : 39863889.37 Filed under: Misc Tagged: java, precision<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=59&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below is a sample code to achieve decimal precision using Java. The example rounds the value with a precision of 2.</p>
<p><pre class="brush: java;">
String strName = &quot;398638.89373573&quot;;
java.text.DecimalFormat df = new java.text.DecimalFormat(&quot;#0.00&quot;);
java.math.BigDecimal pt = new java.math.BigDecimal(strName);;
String test = df.format((pt.doubleValue())*100);
</pre></p>
<p>output : 39863889.37</p>
<br />Filed under: <a href='http://psiva.wordpress.com/category/misc/'>Misc</a> Tagged: <a href='http://psiva.wordpress.com/tag/java/'>java</a>, <a href='http://psiva.wordpress.com/tag/precision/'>precision</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/psiva.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/psiva.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/psiva.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/psiva.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/psiva.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/psiva.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/psiva.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/psiva.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/psiva.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/psiva.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/psiva.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/psiva.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/psiva.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/psiva.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=59&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://psiva.wordpress.com/2011/07/27/decimal-precision-using-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e51fecaf3f7adb422d09328173d33a5f?s=96&#38;d=" medium="image">
			<media:title type="html">psiva</media:title>
		</media:content>
	</item>
		<item>
		<title>Mysql in mac for rails 3</title>
		<link>http://psiva.wordpress.com/2011/07/23/mysql-in-mac-for-rails-3/</link>
		<comments>http://psiva.wordpress.com/2011/07/23/mysql-in-mac-for-rails-3/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 17:56:05 +0000</pubDate>
		<dc:creator>psiva</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails3]]></category>

		<guid isPermaLink="false">http://psiva.wordpress.com/?p=55</guid>
		<description><![CDATA[Over the last few hours, I have struggled a lot to get mysql working with rails on snow leopard. Finally found the following steps to solve the problem. 1. Follow the steps mentioned here to install mysql. Make sure you install the 64 bit version. 2. Add gem &#8216;mysql2&#8242;,&#8217;&#60; 0.3&#8242; to the gemfile 3. Run [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=55&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Over the last few hours, I have struggled a lot to get mysql working with rails on snow leopard. Finally found the following steps to solve the problem.</p>
<p>1. Follow the steps mentioned <a href="http://www.simonwhatley.co.uk/installing-mysql-on-mac-osx-10-6-snow-leopard" title="here" target="_blank">here</a> to install mysql. Make sure you install the 64 bit version.</p>
<p>2. Add gem &#8216;mysql2&#8242;,&#8217;&lt; 0.3&#8242; to the gemfile</p>
<p>3. Run bundle install</p>
<p>4. Run the following command<br />
sudo install_name_tool -change libmysqlclient.16.dylib /usr/local/mysql/lib/libmysqlclient.16.dylib /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle</p>
<p>Ensure you change the paths accordingly as per your installation.</p>
<p>5. Change database.yml to have adapter:mysql2 instead of mysql</p>
<p>6. Run rake db:migrate</p>
<p>That&#8217;s it. Hope this helps someone.</p>
<br />Filed under: <a href='http://psiva.wordpress.com/category/misc/'>Misc</a> Tagged: <a href='http://psiva.wordpress.com/tag/mysql/'>mysql</a>, <a href='http://psiva.wordpress.com/tag/rails3/'>rails3</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/psiva.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/psiva.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/psiva.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/psiva.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/psiva.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/psiva.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/psiva.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/psiva.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/psiva.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/psiva.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/psiva.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/psiva.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/psiva.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/psiva.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=55&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://psiva.wordpress.com/2011/07/23/mysql-in-mac-for-rails-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e51fecaf3f7adb422d09328173d33a5f?s=96&#38;d=" medium="image">
			<media:title type="html">psiva</media:title>
		</media:content>
	</item>
		<item>
		<title>Paypal Javascript</title>
		<link>http://psiva.wordpress.com/2009/03/08/paypal-javascript/</link>
		<comments>http://psiva.wordpress.com/2009/03/08/paypal-javascript/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 19:40:37 +0000</pubDate>
		<dc:creator>psiva</dc:creator>
				<category><![CDATA[scripts]]></category>
		<category><![CDATA[calculator]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[paypal]]></category>

		<guid isPermaLink="false">http://psiva.wordpress.com/2009/03/08/paypal-javascript/</guid>
		<description><![CDATA[Following is a sample script for Paypal Calculator. function calc(val) { var num = parseFloat(val.replace('$','')); if (isNaN(num)) return 0; var fee1 = (num/100)*2.9; // 2.9% var rfee1 = Math.round(fee1*100)/100; var fee2 = 0.30; // .30 var newNum = num-(rfee1+fee2) if(newNum 0.005) { return "$"+(newNum.to_Fix_sub(2)) } else { newNum = Math.round(newNum*100)/100; //rounds up return "$"+(newNum.toFixed(4)) } [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=49&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following is a sample script for Paypal Calculator.<br />
<code><br />
function calc(val) {<br />
var num = parseFloat(val.replace('$',''));<br />
if (isNaN(num)) return 0;<br />
var fee1 = (num/100)*2.9; // 2.9%<br />
var rfee1 = Math.round(fee1*100)/100;<br />
var fee2 = 0.30; // .30<br />
var newNum = num-(rfee1+fee2)</p>
<p>if(newNum 0.005)<br />
{<br />
return "$"+(newNum.to_Fix_sub(2))<br />
}</p>
<p>else<br />
{<br />
newNum = Math.round(newNum*100)/100; //rounds up<br />
return "$"+(newNum.toFixed(4))</p>
<p>}</p>
<p>} </p>
<p>Number.prototype.to_Fix_sub = function(n){<br />
var str = this.toString();<br />
str = str.split(".")[0]+str.substr(str.indexOf("."), n+1);<br />
for(i=0; i&lt;n; i++){if(typeof(str.split(".")[1].charAt(i))=="undefined"){str += "0";}}<br />
return str;<br />
}</p>
<p></code></p>
<br />Posted in scripts Tagged: calculator, javascript, paypal <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/psiva.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/psiva.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/psiva.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/psiva.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/psiva.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/psiva.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/psiva.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/psiva.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/psiva.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/psiva.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/psiva.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/psiva.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/psiva.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/psiva.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=psiva.wordpress.com&amp;blog=1538393&amp;post=49&amp;subd=psiva&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://psiva.wordpress.com/2009/03/08/paypal-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e51fecaf3f7adb422d09328173d33a5f?s=96&#38;d=" medium="image">
			<media:title type="html">psiva</media:title>
		</media:content>
	</item>
	</channel>
</rss>
