<?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>A Thought Repository</title>
	<atom:link href="http://cognitivecache.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cognitivecache.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 07 Aug 2008 22:20:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='cognitivecache.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/41cfef6e8c3ab30c9f29e8e5ed3da0a7?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>A Thought Repository</title>
		<link>http://cognitivecache.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cognitivecache.wordpress.com/osd.xml" title="A Thought Repository" />
		<item>
		<title>Log4j writing to a dynamic log file for every run</title>
		<link>http://cognitivecache.wordpress.com/2008/08/07/log4j-writing-to-a-dynamic-log-file-for-every-run/</link>
		<comments>http://cognitivecache.wordpress.com/2008/08/07/log4j-writing-to-a-dynamic-log-file-for-every-run/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 22:20:00 +0000</pubDate>
		<dc:creator>saagariscool</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://cognitivecache.wordpress.com/2008/08/07/log4j-writing-to-a-dynamic-log-file-for-every-run/</guid>
		<description><![CDATA[In my recent project, I was using Log4J and I had a requirement where I had to write to a new dynamic log file every time and the name of the log file was determined at runtime. In specific terms each run would produce a Project and the log file had to reflect the project [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=43&subd=cognitivecache&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In my recent project, I was using Log4J and I had a requirement where I had to write to a new dynamic log file every time and the name of the log file was determined at runtime. In specific terms each run would produce a Project and the log file had to reflect the project name. Since this project name could be repeated across runs, the timestamp needed to be added to the log file. I searched across Google and didn&#8217;t find much help in this regard. So I decided to post the code I wrote.</p>
<p>I didn&#8217;t want to lose setting the log levels from the log4j.xml file and wanted all the options I could configure for the FileAppender except the file name. The file name was configured too, but the code had to overwrite and create a new file at runtime. Here is the code..</p>
<div style="background-color:#736F6E;color:white;">
<p>  Date projDate = new Date(Long.parseLong(project.getTimeStamp()));<br />  StringBuffer dateStr = new StringBuffer();<br />  SimpleDateFormat sdf = new SimpleDateFormat(&#8220;yyyy_MM_dd_HH_mm_ss&#8221;);<br />  dateStr = sdf.format(projDate, dateStr, new FieldPosition(0));<br />  String logFileName = logsDir + File.separator + project.getName() + &#8220;_&#8221; + dateStr.toString() + &#8220;.log&#8221;;<br />  log.info(&#8220;\n**************Log file for this run: &#8221; + logFileName + &#8220;\n**************\n&#8221;);</p>
<p>  Logger rootLogger = Logger.getRootLogger();<br />  Enumeration appenders = rootLogger.getAllAppenders();<br />  FileAppender fa = null;<br />  while(appenders.hasMoreElements())<br />  {<br />   Appender currAppender = (Appender) appenders.nextElement();<br />   if(currAppender instanceof FileAppender)<br />   {<br />    fa = (FileAppender) currAppender;<br />   }<br />  }<br />  if(fa != null)<br />  {<br />   fa.setFile(logFileName);<br />   fa.activateOptions();<br />  }<br />  else<br />  {<br />   log.info(&#8220;No File Appender found&#8221;);<br />  }</p>
</div>
<p>That&#8217;s it. The logs were created for each and parallel runs would write to different files&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cognitivecache.wordpress.com/43/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cognitivecache.wordpress.com/43/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cognitivecache.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cognitivecache.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cognitivecache.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cognitivecache.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cognitivecache.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cognitivecache.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cognitivecache.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cognitivecache.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cognitivecache.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cognitivecache.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=43&subd=cognitivecache&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cognitivecache.wordpress.com/2008/08/07/log4j-writing-to-a-dynamic-log-file-for-every-run/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb7af798b6408095da78c5d3e29d4c4d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">saagariscool</media:title>
		</media:content>
	</item>
		<item>
		<title>Totally Annoyed with Toyota of Plano service guys</title>
		<link>http://cognitivecache.wordpress.com/2008/07/19/totally-annoyed-with-toyota-of-plano-service-guys/</link>
		<comments>http://cognitivecache.wordpress.com/2008/07/19/totally-annoyed-with-toyota-of-plano-service-guys/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 00:59:00 +0000</pubDate>
		<dc:creator>saagariscool</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[rants]]></category>

		<guid isPermaLink="false">http://cognitivecache.wordpress.com/2008/07/19/totally-annoyed-with-toyota-of-plano-service-guys/</guid>
		<description><![CDATA[I went to Toyota of Plano and was pretty annoyed with their service department and this Chris guy who was upset that I didnt get the Dealer recommended maintenance for $300 and got just the factory recommended one. Here is the story..
I needed a 15000 mile maintenance for my car and I called up the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=42&subd=cognitivecache&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I went to Toyota of Plano and was pretty annoyed with their service department and this Chris guy who was upset that I didnt get the Dealer recommended maintenance for $300 and got just the factory recommended one. Here is the story..</p>
<p>I needed a 15000 mile maintenance for my car and I called up the Toyota of Plano guys and asked how much it would cost. The guy on the phone said it costs me $335 or so. I was indeed surprised at such high amount and checked the Toyota website. All the Toyota recommends for my car is the following. (<a href="http://smg.toyotapartsandservice.com/guides.php?v=3&amp;y=2007&amp;int_id=3">Source</a>)</p>
<p>Replace engine oil and oil filter 1<br />Rotate tires<br />Clean cabin air filter<br />Visually inspect brake linings/drums and brake pads/discs<br />Inspect the following:<br />   Ball joints and dust covers   <br />   Brake lines and hoses   <br />   Drive shaft boots   <br />   Engine coolant 3   <br />   Exhaust pipes and mountings   <br />   Steering gear box</p>
<p>I then asked this service dept. guy if it was the factory recommended one or the Dealer recommended one. He said it was dealer recommended one and he went on to list a bunch of things they would do. He said they were very important for the car. The only question I had in my mind was if all those were so important for the car then why wouldn&#8217;t Toyota recommend that. But I didnt ask him that and asked him how much would the factory recommended one cost me. He says $93.20. He said I could come in and talk to some Chris guy who would take care of it. I say okay and start out to get one.</p>
<p>I go there and wait for my turn and then some guy comes in and fills my request form. I mentioned clearly I needed 15k facory recommended maintenance and asked him how much it would cost. He said, oh it costs 80 bucks and notes 80 on the sheet. I say okay and ask are you Chris. He is like, no, that guy right there is Chris, I will fill it and keep it on Chris&#8217; desk so he can take care of it. I say okay and then leave my car and wait. After an hour or so, Chris guy comes and tells me its ready. I say okay and go to pay the bill. The lady at the counter says $85 and some change. I asked her if I could get a sheet that describes what all has been done and she shows me a billing list which doesnt contain most of those listed above. I asked if they have been done at all and like to see the detailed list and she tells me, Oh ask Chris and he will have the checklist that they check the boxes when they perform the inspections and all. I say okay, pay my bill and walk out to Chris. </p>
<p>I ask this Chris guy if I could get a detailed list, he is like, wait and he says, If you got a dealer recommended one, I would have the list, and then he answers his cell phone, and then says it would be in the maintenance guide you have in the car, and then brings me a list that has the above checked. And then he goes on, &#8220;See you just have tire rotation and oil change, there is no wheel balancing and all done because you took a factory recommended one and not a dealer recommended one&#8221;, and I say, &#8220;Okay, so what difference does it make&#8221;. He says &#8220;Oh you will not know that now, after a few miles when you hit 70 miles per hour and your wheels start vibrating then you will notice.&#8221; I never knew thats a way to talk to a customer and in such derogatory tone. I got really pissed off and asked him, &#8220;So if its gonna affect my car and all, why doesnt Toyota recommend whatever your dealership is recommending. And he says &#8220;Look man, I am just trying to help you..&#8221; Great way to escape without an answer. </p>
<p>The checklist that he gave me says the service is $93.20 and I show it to him and ask if it costs $93.20 then how come, I was charged only $85 and change and he says, ya its lesser than that right. I say, of course, but I am just curious why the difference. And he says, the guy who talked to you put 85 on the paper (he had actually put 80 but may be taxes is 5), so I had to give it to you for 85. This was totally ridiculous. I dont know if they have a pricing system at all, some guy says its 80 to me and so he says he gave it to me 85 instead of 93. The difference might be a few dollars, but what I dont like is the fact that the same thing costs different amount to different people. So, you go to walmart and ask a rep what the price of a hdtv on a tv stand is. He mistakes the price of the tv stand to be that of TV and says 200, so now will Walmart give the TV to you for 50 bucks. Doesnt make sense to me at all..</p>
<p>And then I ask him, did you put the seal on my Toyota Passport guide, and he was like you didnt give it to me. The last two times, the service rep guys took care of it without me even asking them. I say, okay, let me get it for you, and then he walks with me to the car. I give him the booklet, and I say, I just need the signature and your seal and he goes &#8220;I know what I need to put in there, I have been doing this for some time&#8221;. I wouldn&#8217;t mind if he said that in a friendly way but he was outright rude. He goes, fills it up and comes back and I ask him, one last qn, is the blinking message on Dashboard that says &#8220;Maint Reqd&#8221; reset, and he says, it should have been, and guess what I start and the blinking is still present. And then he resets it and says, now it is reset. If I hadn&#8217;t asked I needed to go back again for that.  </p>
<p>I am totally surprised by the total inefficiency and the carelessness that they show towards the customers and the worst part is they are getting away with it. And I am also appalled at their discretionary variable pricing system. May be today was a bad day or I got the wrong guys, but in my opinion today, Thumbs down to Toyota of Plano&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cognitivecache.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cognitivecache.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cognitivecache.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cognitivecache.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cognitivecache.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cognitivecache.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cognitivecache.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cognitivecache.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cognitivecache.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cognitivecache.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cognitivecache.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cognitivecache.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=42&subd=cognitivecache&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cognitivecache.wordpress.com/2008/07/19/totally-annoyed-with-toyota-of-plano-service-guys/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb7af798b6408095da78c5d3e29d4c4d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">saagariscool</media:title>
		</media:content>
	</item>
		<item>
		<title>Java: Loading an XML file from the CLASSPATH</title>
		<link>http://cognitivecache.wordpress.com/2008/07/16/java-loading-an-xml-file-from-the-classpath/</link>
		<comments>http://cognitivecache.wordpress.com/2008/07/16/java-loading-an-xml-file-from-the-classpath/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 23:07:00 +0000</pubDate>
		<dc:creator>saagariscool</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://cognitivecache.wordpress.com/2008/07/16/java-loading-an-xml-file-from-the-classpath/</guid>
		<description><![CDATA[Today, I faced this issue in Java coding. I needed to load an XML file which was in my classpath but not in the same directory as the classes. The deliverable was a jar and the properties and the configuration XML files were in a different folder and were appended to the classpath at the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=41&subd=cognitivecache&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today, I faced this issue in Java coding. I needed to load an XML file which was in my classpath but not in the same directory as the classes. The deliverable was a jar and the properties and the configuration XML files were in a different folder and were appended to the classpath at the runtime. The issue was that the file could not be located through the the statement
<div style="background-color:#736F6E;color:white;">String fileName = getClass.getSystemResource(&#8220;config.xml&#8221;).getFile;</div>
<p>Then I thought that it checks relative to the current class and so used the statement</p>
<div style="background-color:#736F6E;color:white;">String fileName = ClassLoader.getSystemResource(&#8220;config.xml&#8221;).getFile;</div>
<p>But then, it wouldn&#8217;t still recognize the file. The reason is the same, it checks relative to the classes folder. I did not want to get the classpath from the system and browse through it for the config file since the class path could get larger. A couple of google searches and a little research later, I found the solution. The workaround is by using the following statement</p>
<div style="background-color:#736F6E;color:white;">String fileName = Thread.currentThread().getContextClassLoader().getResource(&#8220;config.xml&#8221;).getFile;</div>
<p>It only makes sense since in the above statement, you get hold of the context class loader and find the path in the entire classpath&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cognitivecache.wordpress.com/41/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cognitivecache.wordpress.com/41/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cognitivecache.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cognitivecache.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cognitivecache.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cognitivecache.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cognitivecache.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cognitivecache.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cognitivecache.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cognitivecache.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cognitivecache.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cognitivecache.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=41&subd=cognitivecache&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cognitivecache.wordpress.com/2008/07/16/java-loading-an-xml-file-from-the-classpath/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb7af798b6408095da78c5d3e29d4c4d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">saagariscool</media:title>
		</media:content>
	</item>
		<item>
		<title>Dont ever say that you don&#8217;t have enough time</title>
		<link>http://cognitivecache.wordpress.com/2008/06/26/dont-ever-say-that-you-dont-have-enough-time/</link>
		<comments>http://cognitivecache.wordpress.com/2008/06/26/dont-ever-say-that-you-dont-have-enough-time/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 03:34:00 +0000</pubDate>
		<dc:creator>saagariscool</dc:creator>
				<category><![CDATA[Opinions]]></category>
		<category><![CDATA[personal development]]></category>

		<guid isPermaLink="false">http://cognitivecache.wordpress.com/2008/06/26/dont-ever-say-that-you-dont-have-enough-time/</guid>
		<description><![CDATA[Nice quote from Pravsworld

If you want to get inspired daily, subscribe to their email list. Its pretty cool  
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=40&subd=cognitivecache&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Nice quote from <a href="http://www.pravsworld.com/">Pravsworld</a></p>
<p><a href="http://bp3.blogger.com/_Gajs5LkULck/SGMO0dBJhkI/AAAAAAAAAWs/AH_qp-7bGvI/s1600-h/enough_time.jpg"><img style="display:block;text-align:center;cursor:hand;margin:0 auto 10px;" src="http://bp3.blogger.com/_Gajs5LkULck/SGMO0dBJhkI/AAAAAAAAAWs/AH_qp-7bGvI/s400/enough_time.jpg" border="0" /></a></p>
<p>If you want to get inspired daily, subscribe to their email list. Its pretty cool <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cognitivecache.wordpress.com/40/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cognitivecache.wordpress.com/40/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cognitivecache.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cognitivecache.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cognitivecache.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cognitivecache.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cognitivecache.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cognitivecache.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cognitivecache.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cognitivecache.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cognitivecache.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cognitivecache.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=40&subd=cognitivecache&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cognitivecache.wordpress.com/2008/06/26/dont-ever-say-that-you-dont-have-enough-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb7af798b6408095da78c5d3e29d4c4d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">saagariscool</media:title>
		</media:content>

		<media:content url="http://bp3.blogger.com/_Gajs5LkULck/SGMO0dBJhkI/AAAAAAAAAWs/AH_qp-7bGvI/s400/enough_time.jpg" medium="image" />
	</item>
		<item>
		<title>Mee Sreyobilashi &#8211; Suicide is not an option, so is giving up for an entrepreneur</title>
		<link>http://cognitivecache.wordpress.com/2008/06/19/mee-sreyobilashi-suicide-is-not-an-option-so-is-giving-up-for-an-entrepreneur/</link>
		<comments>http://cognitivecache.wordpress.com/2008/06/19/mee-sreyobilashi-suicide-is-not-an-option-so-is-giving-up-for-an-entrepreneur/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 03:26:00 +0000</pubDate>
		<dc:creator>saagariscool</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Opinions]]></category>
		<category><![CDATA[entreprenuer]]></category>
		<category><![CDATA[movies]]></category>

		<guid isPermaLink="false">http://cognitivecache.wordpress.com/2008/06/19/mee-sreyobilashi-suicide-is-not-an-option-so-is-giving-up-for-an-entrepreneur/</guid>
		<description><![CDATA[Just watched the Telugu movie Mee Sreyobhilashi. Gist of the story. Around 10 people who are vexed with life and want to end it travel together in a bus to take the bus down to a valley and die together. Their journey to the realization of the value of life is the movie&#8230;
The movie spurred [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=39&subd=cognitivecache&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just watched the Telugu movie Mee Sreyobhilashi. Gist of the story. Around 10 people who are vexed with life and want to end it travel together in a bus to take the bus down to a valley and die together. Their journey to the realization of the value of life is the movie&#8230;</p>
<p>The movie spurred a bunch of thoughts. First of all, why should anyone commit a suicide.  God has given us the life to live. Life is a challenge, we need to face it. If everyone starts ending their life due to some problems or the other, then what is the essence of life in itself. Death is just the absence of life, not an end to it. No problem on earth is big enough to force any one to death. People who are handicapped or have many other disabilities are living a happy life with tons of self-confidence. Why cant normal people do the same&#8230;</p>
<p>And then there is one more way of looking at the whole thing. If living the life symbolizes your dream of making it big, your dream of being a success, giving up symbolizes the death of a life, the death of an aspiration, the death of a hope.. A person never really is a failure until he gives up. One thing is for sure. Every one of us is going to die sooner or later. And that is one thing that we can never avoid. That is one thing we cannot run away from. Then whats the point of living life in an insipid manner. What is the point of giving up&#8230; Live life to the fullest and never give up&#8230; The day you give up is the day you fail, whether you give up your hopes or dreams or even your life&#8230; Dont quit your hopes, your aspirations, your life&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cognitivecache.wordpress.com/39/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cognitivecache.wordpress.com/39/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cognitivecache.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cognitivecache.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cognitivecache.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cognitivecache.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cognitivecache.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cognitivecache.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cognitivecache.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cognitivecache.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cognitivecache.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cognitivecache.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=39&subd=cognitivecache&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cognitivecache.wordpress.com/2008/06/19/mee-sreyobilashi-suicide-is-not-an-option-so-is-giving-up-for-an-entrepreneur/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb7af798b6408095da78c5d3e29d4c4d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">saagariscool</media:title>
		</media:content>
	</item>
		<item>
		<title>Power of Java, In deleting the files that Windows cannot</title>
		<link>http://cognitivecache.wordpress.com/2008/05/14/power-of-java-in-deleting-the-files-that-windows-cannot/</link>
		<comments>http://cognitivecache.wordpress.com/2008/05/14/power-of-java-in-deleting-the-files-that-windows-cannot/#comments</comments>
		<pubDate>Wed, 14 May 2008 23:15:00 +0000</pubDate>
		<dc:creator>saagariscool</dc:creator>
				<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://cognitivecache.wordpress.com/2008/05/14/power-of-java-in-deleting-the-files-that-windows-cannot/</guid>
		<description><![CDATA[Today, in one of the programs, I messed up a little piece of code that creates a folder in another, which ended up creating folders in an infinite loop. The folder name was ae, but there were so many of them ae in ae in ae &#8230;. Then I just wanted to clear the folder [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=38&subd=cognitivecache&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today, in one of the programs, I messed up a little piece of code that creates a folder in another, which ended up creating folders in an infinite loop. The folder name was ae, but there were so many of them ae in ae in ae &#8230;. Then I just wanted to clear the folder and start afresh with the fixed code. But guess what. Windows would not delete the folder because the name is too long. This was the exact error..</p>
<p>&#8220;cannot delete the file name you specified is not valid or too long&#8221;</p>
<p>I tried from Command prompt and tried other solutions from Google search like assigning a name on shared and trying to delete from network. And nothing worked. That&#8217;s when I decided, let&#8217;s take Java&#8217;s help. Wrote a simple piece of code to loop through until it reaches the final folder and deletes everything. Ran the code and 2 minutes later, everything was gone. One more reason to love Java and being a programmer. Here is the code in case you are interested..</p>
<div style="background-color:#736F6E;color:white;">
<p>import java.io.File;<br />public class FileDelete<br />{</p>
<p>    private void deleteFiles(File file)<br />    {<br />        if(file.isDirectory())<br />        {<br />            File child[] = file.listFiles();<br />            for(int i = 0; i &lt; child.length; i++)<br />            {<br />                deleteFiles(child[i]);<br />            }</p>
<p>        }<br />        if(!file.delete())<br />        {<br />            System.out.println(&#8220;Cannot delete file: &#8221; + file.getAbsolutePath());<br />        }<br />    }<br /> public static void main(String[] args)<br /> {<br />  System.out.println(&#8220;Attempting to delete files&#8221;);<br />  File _work = new File(&#8220;&#8221;);<br />  FileDelete fd = new FileDelete();  <br />  fd.deleteFiles(_work);<br /> }<br />}</p>
<p></div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cognitivecache.wordpress.com/38/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cognitivecache.wordpress.com/38/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cognitivecache.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cognitivecache.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cognitivecache.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cognitivecache.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cognitivecache.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cognitivecache.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cognitivecache.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cognitivecache.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cognitivecache.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cognitivecache.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=38&subd=cognitivecache&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cognitivecache.wordpress.com/2008/05/14/power-of-java-in-deleting-the-files-that-windows-cannot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb7af798b6408095da78c5d3e29d4c4d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">saagariscool</media:title>
		</media:content>
	</item>
		<item>
		<title>Britain&#8217;s got talent, hell ya with these kind of Michal Jackson + Bhangra, it sure does</title>
		<link>http://cognitivecache.wordpress.com/2008/05/03/britains-got-talent-hell-ya-with-these-kind-of-michal-jackson-bhangra-it-sure-does/</link>
		<comments>http://cognitivecache.wordpress.com/2008/05/03/britains-got-talent-hell-ya-with-these-kind-of-michal-jackson-bhangra-it-sure-does/#comments</comments>
		<pubDate>Sat, 03 May 2008 00:41:00 +0000</pubDate>
		<dc:creator>saagariscool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cognitivecache.wordpress.com/2008/05/03/britains-got-talent-hell-ya-with-these-kind-of-michal-jackson-bhangra-it-sure-does/</guid>
		<description><![CDATA[Don&#8217;t need to describe the video much. The audience reaction says it all  

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=37&subd=cognitivecache&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Don&#8217;t need to describe the video much. The audience reaction says it all <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="text-align:center; display: block;"><a href="http://cognitivecache.wordpress.com/2008/05/03/britains-got-talent-hell-ya-with-these-kind-of-michal-jackson-bhangra-it-sure-does/"><img src="http://img.youtube.com/vi/KA2B5X0LhMY/2.jpg" alt="" /></a></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cognitivecache.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cognitivecache.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cognitivecache.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cognitivecache.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cognitivecache.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cognitivecache.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cognitivecache.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cognitivecache.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cognitivecache.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cognitivecache.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cognitivecache.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cognitivecache.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=37&subd=cognitivecache&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cognitivecache.wordpress.com/2008/05/03/britains-got-talent-hell-ya-with-these-kind-of-michal-jackson-bhangra-it-sure-does/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb7af798b6408095da78c5d3e29d4c4d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">saagariscool</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/KA2B5X0LhMY/2.jpg" medium="image" />
	</item>
		<item>
		<title>Impressed with Jawbone headset and its customer service support</title>
		<link>http://cognitivecache.wordpress.com/2008/04/29/impressed-with-jawbone-headset-and-its-customer-service-support/</link>
		<comments>http://cognitivecache.wordpress.com/2008/04/29/impressed-with-jawbone-headset-and-its-customer-service-support/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 22:05:00 +0000</pubDate>
		<dc:creator>saagariscool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cognitivecache.wordpress.com/2008/04/29/impressed-with-jawbone-headset-and-its-customer-service-support/</guid>
		<description><![CDATA[A week or two ago, I purchased the Jawbone bluetooth headset which has got a lot of reviews as the best bluetooth headset in the market. I should say I am pretty impressed. The noise canceling feature is just awesome, people on the other side rarely hear any other noises other than my voice. After [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=36&subd=cognitivecache&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A week or two ago, I purchased the <a href="http://jawbone.com">Jawbone bluetooth headset</a> which has got a lot of reviews as the best bluetooth headset in the market. I should say I am pretty impressed. The noise canceling feature is just awesome, people on the other side rarely hear any other noises other than my voice. After trying the multiple ear pieces and loops and fixed on a set. I haven&#8217;t used a bluetooth headset before so I can&#8217;t really compare. My long calls started turning effortless and I was pretty happy with the piece. Worth every penny, oh yeah..</p>
<p>And then the inevitable according to <a href="http://en.wikipedia.org/wiki/Murphy's_law">Murphy&#8217;s law</a> had happened. I broke the left standard ear loop. I was trying to remove it when it broke. I called up the Jawbone support guy. They wouldn&#8217;t give their number on the website but a quick Google search revealed their support phone number 408-848-4348. The customer service guy was cool and he told me that he will send me a complimentary one in 7 business days. Now, how cool is that. I didn&#8217;t know you could also buy the ear loops from their website, you pay $10 for the ear loops but then you will need to order the 4 piece set. I should say that I am pretty impressed both with the piece and the customer service. All the negative reviews on the web, I guess those guys were probably having a bad day <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cognitivecache.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cognitivecache.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cognitivecache.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cognitivecache.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cognitivecache.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cognitivecache.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cognitivecache.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cognitivecache.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cognitivecache.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cognitivecache.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cognitivecache.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cognitivecache.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=36&subd=cognitivecache&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cognitivecache.wordpress.com/2008/04/29/impressed-with-jawbone-headset-and-its-customer-service-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb7af798b6408095da78c5d3e29d4c4d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">saagariscool</media:title>
		</media:content>
	</item>
		<item>
		<title>Too smart or too novice in Java: Relevance of for loops</title>
		<link>http://cognitivecache.wordpress.com/2008/04/28/too-smart-or-too-novice-in-java-relevance-of-for-loops/</link>
		<comments>http://cognitivecache.wordpress.com/2008/04/28/too-smart-or-too-novice-in-java-relevance-of-for-loops/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 22:46:00 +0000</pubDate>
		<dc:creator>saagariscool</dc:creator>
				<category><![CDATA[Opinions]]></category>
		<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://cognitivecache.wordpress.com/2008/04/28/too-smart-or-too-novice-in-java-relevance-of-for-loops/</guid>
		<description><![CDATA[During the course of my work, I have had to fix some code written by others and modify existing code for enhanced functionality. In one of such projects, I encountered this piece of code written by someone
for(boolean valid = false; !valid; valid = true)        {    [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=35&subd=cognitivecache&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>During the course of my work, I have had to fix some code written by others and modify existing code for enhanced functionality. In one of such projects, I encountered this piece of code written by someone</p>
<div style="background-color:#736F6E;color:white;">for(boolean valid = false; !valid; valid = true)<br />        {<br />            try<br />            {<br />                sp = spf.newSAXParser();<br />                parser = new ProjectParser();<br />                sp.parse(projectFile, parser);<br />            }<br />            catch(Exception e)<br />            {<br />                e.printStackTrace();<br />                log.throwable(e);<br />                throw new RuntimeException((new StringBuilder(&#8220;Unable to parse &#8220;)).append(projectFile.getAbsoluteFile()).toString());<br />            }<br />        }</div>
<p>Let&#8217;s see how this for loop works. It initializes a boolean called valid with a value false. The condition is until valid is false. The increment is making valid true. And then inside the loop, the coder wants to accomplish something. Now what is the point of this for loop at all. Was the for loop used because the coder didn&#8217;t know that loops are used for, you guessed right, looping. If he/she just wanted it to run only once, then what is the point of using a for loop at all. How different is the below code from the above code. </p>
<div style="background-color:#736F6E;color:white;">            try<br />            {<br />                sp = spf.newSAXParser();<br />                parser = new ProjectParser();<br />                sp.parse(projectFile, parser);<br />            }<br />            catch(Exception e)<br />            {<br />                e.printStackTrace();<br />                log.throwable(e);<br />                throw new RuntimeException((new StringBuilder(&#8220;Unable to parse &#8220;)).append(projectFile.getAbsoluteFile()).toString());<br />            }</div>
<p>This would execute the code only once and that is the desired behavior that was accomplished by using the for loop for once. I think keeping your code clean and staying away from such unnecessary stuff helps you in keeping your code clean and reducing any unwanted bugs. Why turn the hand around the neck to eat something when you could directly eat it.. Is this trying to be too smart or being too much of a novice to know what loops are used for. Or is there something, that I am missing that is something great that I haven&#8217;t realized in using this type of code. If someone could elaborate, I would be glad&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cognitivecache.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cognitivecache.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cognitivecache.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cognitivecache.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cognitivecache.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cognitivecache.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cognitivecache.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cognitivecache.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cognitivecache.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cognitivecache.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cognitivecache.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cognitivecache.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=35&subd=cognitivecache&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cognitivecache.wordpress.com/2008/04/28/too-smart-or-too-novice-in-java-relevance-of-for-loops/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb7af798b6408095da78c5d3e29d4c4d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">saagariscool</media:title>
		</media:content>
	</item>
		<item>
		<title>Pay auto/car Loan or Invest in a CD or other investment. When do you break even</title>
		<link>http://cognitivecache.wordpress.com/2008/03/14/pay-autocar-loan-or-invest-in-a-cd-or-other-investment-when-do-you-break-even/</link>
		<comments>http://cognitivecache.wordpress.com/2008/03/14/pay-autocar-loan-or-invest-in-a-cd-or-other-investment-when-do-you-break-even/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 18:57:00 +0000</pubDate>
		<dc:creator>saagariscool</dc:creator>
				<category><![CDATA[Financial]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Opinions]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://cognitivecache.wordpress.com/2008/03/14/pay-autocar-loan-or-invest-in-a-cd-or-other-investment-when-do-you-break-even/</guid>
		<description><![CDATA[The previous post of mine on auto loan had lots of discussion and ifs and buts. I decided to make it pretty simple this time. Here is the case. You have $10000 with you today, that you can use to pay off a car loan of equivalent amount which is at a interest rate of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=34&subd=cognitivecache&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The <a href="http://cognitivecache.blogspot.com/2007/10/making-sense-of-auto-loan-whether-you.html#comments">previous post</a> of mine on auto loan had lots of discussion and ifs and buts. I decided to make it pretty simple this time. Here is the case. You have $10000 with you today, that you can use to pay off a car loan of equivalent amount which is at a interest rate of 5.5% or you can pay the monthly installment on the car loan and invest the current $1000 you have in a CD or shares..</p>
<p>Analysis<br />&#8212;&#8212;&#8211;</p>
<p>Current car loan = $10000<br />Interest rate = 5.5%<br />Term = 2 years or 24 months</p>
<p>From <a href="http://www.bankrate.com/brm/auto-loan-calculator.asp?unroundedPayment=440.95656158136234&amp;loanAmount=10000.00&amp;nrOfYears=2.00&amp;nrOfMonths=24&amp;interestRate=5.50&amp;startMonth=4&amp;startDay=1&amp;startYear=2008&amp;monthlyPayment=440.96&amp;Submit.x=30&amp;Submit.y=7&amp;Submit=Calculate&amp;monthlyAdditional=0&amp;yearlyAdditional=0&amp;yearlyAdditionalMonth=9&amp;oneAdditional=0&amp;oneAdditionalMonth=9&amp;oneAdditionalYear=2007&amp;paidOffDate=May+1%2C+2010">Bank Rate Calculator</a> the equal monthly installment is $440.96</p>
<p>Let us say Best CD rate available is 5% (which is impossible at this time). So the case under study is that you have $10000 in hand today and you have $440.96 from your monthly income available to you to pay the car loan</p>
<p>Pay the car loan<br />&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>In this case you paid off the car loan and you put the $440.96 in a Savings account like <a href="http://home.ingdirect.com/">ING Direct</a>. Let us say in an ideal scenario you are making 4% on your savings account (ING doesn&#8217;t offer this interest at this time). So putting $440.96 in a Savings account for 2 years, at the end of 2 years, (from <a href="http://www.dinkytown.net/java/CompoundSavings.html">dinkytown</a>)</p>
<p>Total = $11,505<br />Taxes = 28% of (11505-10000) = $421.4<br />After taxes total savings = $1083.6<br />After paying taxes, money you have with you = $11083.60</p>
<p>Put in a CD<br />&#8212;&#8212;&#8212;&#8212;</p>
<p>From <a href="http://www.bankrate.com/brm/calc/cdc/CertDeposit.asp">Bankrate</a> $10000 at 5% for two years will yield a total of $11,052.</p>
<p>Total = $11,052<br />Taxes = 28% of (11,052-10000) = $294.56<br />After taxes, net with you = $757.44<br />After paying taxes, money you have = $10,757.44</p>
<p>Paying the car versus CD<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Difference you lose by not paying the car loan and investing in a CD =  $11083.6-$10757.44 = $326.16</p>
<p>Incentives for not paying the car loan is the fact that you are only liable to $441 a month, if you lose the job or if you are on bench in consulting, then you have $10000 with you and you are only liable to $441 a month. So, that makes it easier for your mental peace</p>
<p>If you do not put in a CD and invest in shares or something, then what percent interest rate on your $10000 investment justifies your not paying off the car loan? lets calculate that. This means that your $10000 has to become $11,505 in 2 years. Using the formula for compound interest, that would be 7.26% assuming interest compounded annually. That is a very low interest rate compared to gains on Shares. But then, you never know about Shares. You might as well lose your money. </p>
<p>So, that&#8217;s the calculation folks. Know your facts, analyze your situation and make a good decision <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cognitivecache.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cognitivecache.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cognitivecache.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cognitivecache.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cognitivecache.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cognitivecache.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cognitivecache.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cognitivecache.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cognitivecache.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cognitivecache.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cognitivecache.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cognitivecache.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cognitivecache.wordpress.com&blog=4454176&post=34&subd=cognitivecache&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cognitivecache.wordpress.com/2008/03/14/pay-autocar-loan-or-invest-in-a-cd-or-other-investment-when-do-you-break-even/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb7af798b6408095da78c5d3e29d4c4d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">saagariscool</media:title>
		</media:content>
	</item>
	</channel>
</rss>