<?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 TechQuest</title>
	<atom:link href="http://prblm.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://prblm.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 24 Jan 2011 07:30:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='prblm.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>My TechQuest</title>
		<link>http://prblm.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://prblm.wordpress.com/osd.xml" title="My TechQuest" />
	<atom:link rel='hub' href='http://prblm.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Linux startup script seems not to have access to user environment</title>
		<link>http://prblm.wordpress.com/2010/06/08/linux-startup-script-seems-not-to-have-access-to-user-environment/</link>
		<comments>http://prblm.wordpress.com/2010/06/08/linux-startup-script-seems-not-to-have-access-to-user-environment/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 19:00:57 +0000</pubDate>
		<dc:creator>aakashd</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[init]]></category>
		<category><![CDATA[rc.local]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://prblm.wordpress.com/?p=42</guid>
		<description><![CDATA[prblm: I was trying to configure a debian server, and the configuration script was suppose to run every time server boots up. The obvious thing to do would be to write a script and add it to rc.local. I was assuming that the script would be run as root user, and was using path and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=42&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>prblm:</strong> I was trying to configure a debian server, and the configuration script was suppose to run every time server boots up. The obvious thing to do would be to write a script and add it to rc.local. I was assuming that the script would be run as root user, and was using path and environment available to root user. But it nothing seemed to work, and on enabling boot logging, I figure out it could not find binaries in path.</p>
<p><strong>solution:</strong> I am still not sure if the scripts executed at boot sequence are executed as root user with limited environment or they are executed as System user. But none the less, execute your commands as stated below</p>
<pre>su -u root -l -c "&lt;command&gt;"</pre>
<p>This will execute the command you want to execute as the root user, with his own environment as if he is logged in while executing the command.</p>
<p>This comes in handy when lot of tools like svn, git manages authentication using files stored in user home directory, also there are certain path elements which are just too much to setup again.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prblm.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prblm.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prblm.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prblm.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prblm.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prblm.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prblm.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prblm.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prblm.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prblm.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prblm.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prblm.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prblm.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prblm.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=42&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prblm.wordpress.com/2010/06/08/linux-startup-script-seems-not-to-have-access-to-user-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e37c9e6e0c67f4888e04ca784b5ed694?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aakash</media:title>
		</media:content>
	</item>
		<item>
		<title>FactoryBean returned null object: not fully initialized due to circular bean reference</title>
		<link>http://prblm.wordpress.com/2009/12/29/factorybean-returned-null-object-not-fully-initialized-due-to-circular-bean-reference/</link>
		<comments>http://prblm.wordpress.com/2009/12/29/factorybean-returned-null-object-not-fully-initialized-due-to-circular-bean-reference/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 18:13:11 +0000</pubDate>
		<dc:creator>aakashd</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[circular referencing]]></category>

		<guid isPermaLink="false">http://prblm.wordpress.com/?p=38</guid>
		<description><![CDATA[prblm: There are two beans in Spring container, which have dependency on each other. Thus while creating the beans, container cannot create any of the bean successfully. solution: There is only one elegant solution where, you mention dependency in a single bean configuration. This will avoid the circular referencing and to complete the bean initialization [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=38&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>prblm: </strong>There are two beans in Spring container, which have dependency on each other. Thus while creating the beans, container cannot create any of the bean successfully.</p>
<p><strong>solution:</strong> There is only one elegant solution where, you mention dependency in a single bean configuration. This will avoid the circular referencing and to complete the bean initialization use a BeanPostProcessor, which would complete the initialization of the second bean. I found the code sample in <a href="http://forum.springsource.org/archive/index.php/t-10186.html" target="_blank">this</a> discussion thread at the bottom.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prblm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prblm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prblm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prblm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prblm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prblm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prblm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prblm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prblm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prblm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prblm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prblm.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prblm.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prblm.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=38&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prblm.wordpress.com/2009/12/29/factorybean-returned-null-object-not-fully-initialized-due-to-circular-bean-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e37c9e6e0c67f4888e04ca784b5ed694?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aakash</media:title>
		</media:content>
	</item>
		<item>
		<title>How to support old urls, when changing the URL structures</title>
		<link>http://prblm.wordpress.com/2009/12/23/how-to-support-old-urls-when-changing-the-url-structures/</link>
		<comments>http://prblm.wordpress.com/2009/12/23/how-to-support-old-urls-when-changing-the-url-structures/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 18:48:26 +0000</pubDate>
		<dc:creator>aakashd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://prblm.wordpress.com/?p=36</guid>
		<description><![CDATA[prblm: We were performing a major restructuring of our URLs to make them more seo friendly. And in the process there were a lot of backend changes, which would make supporting the old URLs impossible. Also keeping both the code bases for URL supports was insanity. solution: One of our brilliant developers Avlesh came up [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=36&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>prblm:</strong> We were performing a major restructuring of our URLs to make them more <a href="http://en.wikipedia.org/wiki/Search_engine_optimization" target="_blank">seo friendly</a>. And in the process there were a lot of backend changes, which would make supporting the old URLs impossible. Also keeping both the code bases for URL supports was insanity.</p>
<p><strong>solution:</strong> One of our brilliant developers <a href="http://avlesh.com/" target="_blank">Avlesh</a> came up with an approach of using url rewriter for converting old urls into new urls. Ours being a java based app, we were already using <a href="http://tuckey.org/urlrewrite/" target="_blank">UrlRewriteFilter</a>. If you are using apache, you could go along with <a href="http://httpd.apache.org/docs/2.0/misc/rewriteguide.html" target="_blank">mod_rewrite</a>. Make sure that the old urls get <a href="http://en.wikipedia.org/wiki/URL_redirection" target="_blank">permanently redirected (HTTP 301)</a> to the new URLs. Permanently redirecting a url will suggest search engines that they need to stop service the old URL for any search request, and the new URL takes over the legacy of old one.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prblm.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prblm.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prblm.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prblm.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prblm.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prblm.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prblm.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prblm.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prblm.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prblm.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prblm.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prblm.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prblm.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prblm.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=36&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prblm.wordpress.com/2009/12/23/how-to-support-old-urls-when-changing-the-url-structures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e37c9e6e0c67f4888e04ca784b5ed694?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aakash</media:title>
		</media:content>
	</item>
		<item>
		<title>Hibernate commits happen in a particular order only</title>
		<link>http://prblm.wordpress.com/2009/12/23/hibernate-commits-happen-in-a-particular-order-only/</link>
		<comments>http://prblm.wordpress.com/2009/12/23/hibernate-commits-happen-in-a-particular-order-only/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 18:37:31 +0000</pubDate>
		<dc:creator>aakashd</dc:creator>
				<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[flush]]></category>
		<category><![CDATA[transaction]]></category>

		<guid isPermaLink="false">http://prblm.wordpress.com/?p=31</guid>
		<description><![CDATA[prblm: Using hibernate to persist data. There are two operations happening simultaneously, one insert and one update. The update is ordered first in the code and then insert. The inserts for certain reasons depend on update happening first. But when code is executed, it appears that insert happens before update. solution: Will explain why, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=31&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>prblm:</strong> Using hibernate to persist data. There are two operations happening simultaneously, one insert and one update. The update is ordered first in the code and then insert. The inserts for certain reasons depend on update happening first. But when code is executed, it appears that insert happens before update.</p>
<p><strong>solution: </strong>Will explain why, but the only solution is to flush session after update and then execute the insert command.</p>
<p><strong>description:</strong> Search for &#8220;The SQL statements are issued in the following order&#8221; without quote on this <a href="https://www.hibernate.org/hib_docs/nhibernate/html/manipulatingdata.html" target="_blank">hibernate documentation</a>. Just for the lazy folks, here is what it says.</p>
<p>The SQL statements are issued in the following order</p>
<ul>
<li>all entity insertions, in the same order the corresponding objects                     were saved using <tt>ISession.Save()</tt></li>
<li>all entity updates</li>
<li>all collection deletions</li>
<li>all collection element deletions, updates and insertions</li>
<li>all collection insertions</li>
<li>all entity deletions, in the same order the corresponding objects                     were deleted using <tt>ISession.Delete()</tt></li>
</ul>
<p>(An exception is that objects using <tt>native</tt> ID generation are              inserted when they are saved.)</p>
<p>Except when you explicity <tt>Flush()</tt>, there are absolutely no              guarantees about <em>when</em> the <tt>Session</tt> executes              the JDBC calls, only the <em>order</em> in which they are executed.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prblm.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prblm.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prblm.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prblm.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prblm.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prblm.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prblm.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prblm.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prblm.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prblm.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prblm.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prblm.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prblm.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prblm.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=31&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prblm.wordpress.com/2009/12/23/hibernate-commits-happen-in-a-particular-order-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e37c9e6e0c67f4888e04ca784b5ed694?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aakash</media:title>
		</media:content>
	</item>
		<item>
		<title>Not able to ping localhost on Ubuntu</title>
		<link>http://prblm.wordpress.com/2009/09/01/not-able-to-ping-localhost-on-ubuntu/</link>
		<comments>http://prblm.wordpress.com/2009/09/01/not-able-to-ping-localhost-on-ubuntu/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 06:13:44 +0000</pubDate>
		<dc:creator>aakashd</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ping]]></category>

		<guid isPermaLink="false">http://prblm.wordpress.com/?p=32</guid>
		<description><![CDATA[prblm: I was not able to ping localhost on Ubuntu, but I can access external sites without any problem. None of the services hosted and accessed from localhost are working. solution: The issue is due to the loopback interface not being properly configured. When system boots, it configures network interfaces as per configuration in file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=32&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>prblm:</strong> I was not able to ping localhost on Ubuntu, but I can access external sites without any problem. None of the services hosted and accessed from localhost are working.</p>
<p><strong>solution:</strong> The issue is due to the loopback interface not being properly configured. When system boots, it configures network interfaces as per configuration in file &#8220;/etc/network/interfaces&#8221;. localhost is identified and pingable if interface lo (loopback) is configured. Make sure that following entry is present in the interfaces file &#8211;</p>
<p>auto lo<br />
iface lo inet loopback</p>
<p>After saving the file execute &#8220;sudo /etc/init.d/networking restart&#8221;. This will reload the configuration. Execute &#8220;ifconfig lo&#8221; to check if you get inet addr:127.0.0.1</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prblm.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prblm.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prblm.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prblm.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prblm.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prblm.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prblm.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prblm.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prblm.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prblm.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prblm.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prblm.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prblm.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prblm.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=32&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prblm.wordpress.com/2009/09/01/not-able-to-ping-localhost-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e37c9e6e0c67f4888e04ca784b5ed694?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aakash</media:title>
		</media:content>
	</item>
		<item>
		<title>java.sql.Date(epoch) with SimpleDateFormat doesn&#8217;t show time details</title>
		<link>http://prblm.wordpress.com/2009/08/14/java-sql-dateepoch-with-simpledateformat-doesnt-show-time-details/</link>
		<comments>http://prblm.wordpress.com/2009/08/14/java-sql-dateepoch-with-simpledateformat-doesnt-show-time-details/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 10:14:32 +0000</pubDate>
		<dc:creator>aakashd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://prblm.wordpress.com/?p=29</guid>
		<description><![CDATA[prblm: I created java.sql.Date object by providing epoch to it and when I format using SimpleDateFormat time factor was missing in the output. solution: Actually it was my mistake that I used the sql Date object, assuming that as it inherits java.util.Date the object behavior would remain same (how foolish of me to expect correct [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=29&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>prblm:</strong> I created java.sql.Date object by providing epoch to it and when I format using SimpleDateFormat time factor was missing in the output.</p>
<p><strong>solution: </strong>Actually it was my mistake that I used the sql Date object, assuming that as it inherits java.util.Date the object behavior would remain same (how foolish of me to expect correct inheritance implementation).  The sql Date tries to imitate database Date object where it does not contain time details. So the solution is to create java.util.Date always with SimpleDateFormat rather than java.sql.Date.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prblm.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prblm.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prblm.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prblm.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prblm.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prblm.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prblm.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prblm.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prblm.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prblm.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prblm.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prblm.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prblm.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prblm.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=29&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prblm.wordpress.com/2009/08/14/java-sql-dateepoch-with-simpledateformat-doesnt-show-time-details/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e37c9e6e0c67f4888e04ca784b5ed694?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aakash</media:title>
		</media:content>
	</item>
		<item>
		<title>Rerouting http application request within different applications</title>
		<link>http://prblm.wordpress.com/2009/06/11/rerouting-http-application-request-within-different-applications/</link>
		<comments>http://prblm.wordpress.com/2009/06/11/rerouting-http-application-request-within-different-applications/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 11:08:22 +0000</pubDate>
		<dc:creator>aakashd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://prblm.wordpress.com/?p=26</guid>
		<description><![CDATA[prblm: My application uses a third party http request which doesn&#8217;t support authentication, whereas I want the authentication to be done for my particular application. Another scenario is a client is to make an ajax request to an application which is not exposed over the net, and the other server is to server requests coming [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=26&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>prblm</strong>: My application uses a third party http request which doesn&#8217;t support authentication, whereas I want the authentication to be done for my particular application. Another scenario is a client is to make an ajax request to an application which is not exposed over the net, and the other server is to server requests coming from provate IPs only.</p>
<p><strong>solution</strong>:Accept a URL in your appplication with all the parameters requred and in URL rewrite itself, reroute it to internal IP address with the request parameters as it is.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prblm.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prblm.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prblm.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prblm.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prblm.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prblm.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prblm.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prblm.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prblm.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prblm.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prblm.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prblm.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prblm.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prblm.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=26&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prblm.wordpress.com/2009/06/11/rerouting-http-application-request-within-different-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e37c9e6e0c67f4888e04ca784b5ed694?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aakash</media:title>
		</media:content>
	</item>
		<item>
		<title>hibernate does not consider aliases when executing native SQL query</title>
		<link>http://prblm.wordpress.com/2009/06/11/hibernate-does-not-consider-aliases-when-executing-native-sql-query/</link>
		<comments>http://prblm.wordpress.com/2009/06/11/hibernate-does-not-consider-aliases-when-executing-native-sql-query/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 11:01:54 +0000</pubDate>
		<dc:creator>aakashd</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[JConnector]]></category>

		<guid isPermaLink="false">http://prblm.wordpress.com/?p=24</guid>
		<description><![CDATA[prblm: I am executing a native SQL query on MySQL with aliases, which I expect hibernate would use to fetch data out of resultset while transforming it into an object. But it throws SQLException due to column being fetched not found. It seems that hibernate is calling getXXX using the actual column name rather than [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=24&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>prblm</strong>: I am executing a native SQL query on MySQL with aliases, which I expect hibernate would use to fetch data out of resultset while transforming it into an object. But it throws SQLException due to column being fetched not found. It seems that hibernate is calling getXXX using the actual column name rather than alias.</p>
<p><strong>solution</strong>:While creating connection using jdbc, use useOldAliasMetadataBehavior=true</p>
<p><strong>description</strong>: As per JDBC specification result set interface should provide two methods getColumnName and getColumnLabel. But old MySQL JConnector versions provide only getColumnName method and which returns the column alias (or label). In Certain release (dont remember which one) they started providing both methods, but to keep backward compatibility they introduced a parameter &#8220;<em>useOldAliasMetadataBehavior</em>&#8221; which would make getColumnName return alias and all the existing applications would still work. Till JConnector release 5.1 default value for this option was true, thus we never faced the heat. When I upgrade to 5.1.x, default value has been set to false and hibernate still thinks that MySQL JConnector would return alias on getColumnName method call.</p>
<p>The only work around till hibernates dialect incorporates this behavior it to explicitly setting option &#8220;<em>useOldAliasMetadataBehavior=true</em>&#8220;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prblm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prblm.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prblm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prblm.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prblm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prblm.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prblm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prblm.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prblm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prblm.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prblm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prblm.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prblm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prblm.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=24&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prblm.wordpress.com/2009/06/11/hibernate-does-not-consider-aliases-when-executing-native-sql-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e37c9e6e0c67f4888e04ca784b5ed694?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aakash</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL foreign key constraint fails even when data is correct</title>
		<link>http://prblm.wordpress.com/2009/06/11/mysql-foreign-key-constraint-fails-even-when-data-is-correct/</link>
		<comments>http://prblm.wordpress.com/2009/06/11/mysql-foreign-key-constraint-fails-even-when-data-is-correct/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 10:44:18 +0000</pubDate>
		<dc:creator>aakashd</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[constraint]]></category>
		<category><![CDATA[foreign key]]></category>

		<guid isPermaLink="false">http://prblm.wordpress.com/?p=19</guid>
		<description><![CDATA[prblm: I have a parent child table pair, and trying to insert data into child table which exists in parent table. The datatype and length of field etc etc is exactly same. But still MySQL throws constriant violation error. solution:Its not a universal solution as such, but please check if the constriant was created properly. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=19&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>prblm:</strong> I have a parent child table pair, and trying to insert data into child table which exists in parent table. The datatype and length of field etc etc is exactly same. But still MySQL throws constriant violation error.</p>
<p><strong>solution</strong>:Its not a universal solution as such, but please check if the constriant was created properly. If at the time of constraint creation FOREIGN_KEY_CHECKS was set to 0/false; the constraint definition would be stored in information_schema without evaluating if the table/column/schema names used even exists.</p>
<p><strong>description</strong>:Though at first glance the behavior of not checking the schema name looks sinister, the very flag FOREIGN_KEY_CHECKS tells MySQL that constriants are not to be checked. This would simple use the table/constraint creation script to dump the definition in information_schema and would be used to evaluate the constraint when activated.</p>
<p>And as the MySQL error descriptions are as bad as they can be, whatever failure happens with data insertion in case of constraint evaluation is coined as constriant failure.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prblm.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prblm.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prblm.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prblm.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prblm.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prblm.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prblm.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prblm.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prblm.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prblm.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prblm.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prblm.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prblm.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prblm.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=19&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prblm.wordpress.com/2009/06/11/mysql-foreign-key-constraint-fails-even-when-data-is-correct/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e37c9e6e0c67f4888e04ca784b5ed694?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aakash</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript execute a function using its name as String literal</title>
		<link>http://prblm.wordpress.com/2009/06/11/javascript-execute-a-function-using-its-name-as-string-literal/</link>
		<comments>http://prblm.wordpress.com/2009/06/11/javascript-execute-a-function-using-its-name-as-string-literal/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 10:34:49 +0000</pubDate>
		<dc:creator>aakashd</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://prblm.wordpress.com/?p=15</guid>
		<description><![CDATA[prblm: I have a function name passed on to me as string variable, and I have to execute the function. solutiong: There are two ways we can do it. eval(&#8216;function_name&#8217;+'()&#8217;); window['function_name'](); description: There isn&#8217;t much to discuss about eval way. Its a standard javascript function which can be used to execute javascript code which is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=15&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>prblm</strong>: I have a function name passed on to me as string variable, and I have to execute the function.</p>
<p><strong>solutiong</strong>: There are two ways we can do it.</p>
<ul>
<li>eval(&#8216;function_name&#8217;+'()&#8217;);</li>
<li>window['function_name']();</li>
</ul>
<p><strong>description</strong>: There isn&#8217;t much to discuss about eval way. Its a standard javascript function which can be used to execute javascript code which is in string form. Its perfect to construct method call and execute it.</p>
<p>The second interesting part is using window as array of objects. Window is a very high level object and all the functions, objects and variables defined at global level are stored with it as if its an array. These objects (function is an object) can be referred by their names as keys.</p>
<p>Back to basics of javascript: Everything in javascript is finally stored as an array.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prblm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prblm.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prblm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prblm.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prblm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prblm.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prblm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prblm.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prblm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prblm.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prblm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prblm.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prblm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prblm.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prblm.wordpress.com&amp;blog=7307358&amp;post=15&amp;subd=prblm&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prblm.wordpress.com/2009/06/11/javascript-execute-a-function-using-its-name-as-string-literal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e37c9e6e0c67f4888e04ca784b5ed694?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aakash</media:title>
		</media:content>
	</item>
	</channel>
</rss>
