<?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>Devender&#039;s Weblog</title>
	<atom:link href="http://devender.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://devender.wordpress.com</link>
	<description>Who is John Galt ?</description>
	<lastBuildDate>Sun, 08 Nov 2009 22:06:56 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='devender.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e1c7783bc72f560eafaa4a9c9613ee28?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Devender&#039;s Weblog</title>
		<link>http://devender.wordpress.com</link>
	</image>
			<item>
		<title>Language wars are the new IDE wars</title>
		<link>http://devender.wordpress.com/2009/11/03/language-wars-are-the-new-ide-wars/</link>
		<comments>http://devender.wordpress.com/2009/11/03/language-wars-are-the-new-ide-wars/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:29:58 +0000</pubDate>
		<dc:creator>devender</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[programmers language ruby java]]></category>

		<guid isPermaLink="false">http://devender.wordpress.com/?p=258</guid>
		<description><![CDATA[(I feel really sorry for Managers, every programmer has his/her favorite programming language and is trying to sneak it into the system. And you know what, it is already in your code base, sorry but that&#8217;s the truth and whatever side you take, you will end up loosing. )
I think people used to have IDE [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=258&subd=devender&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>(I feel really sorry for Managers, every programmer has his/her favorite programming language and is trying to sneak it into the system. And you know what, it is already in your code base, sorry but that&#8217;s the truth and whatever side you take, you will end up loosing. )</p>
<p>I think people used to have IDE wars cause they only had one primary language to work with, but now with the explosion of languages and almost all of them having some port that runs on the JVM everyone is either trying to sneak it in or advertise the virtues of using it. And that ultimately results in a passionate email war.</p>
<p>And of course if you have, somehow magically gotten past that there is always the discussion on the best IDE for that language, hehehe let the wars continue.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devender.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devender.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devender.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devender.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devender.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devender.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devender.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devender.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devender.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devender.wordpress.com/258/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=258&subd=devender&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://devender.wordpress.com/2009/11/03/language-wars-are-the-new-ide-wars/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd521b7911352127217de208e0a86f4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devender</media:title>
		</media:content>
	</item>
		<item>
		<title>Integrating Facebook Connect into your Web App</title>
		<link>http://devender.wordpress.com/2009/11/02/integrating-facebook-connect-into-your-web-app/</link>
		<comments>http://devender.wordpress.com/2009/11/02/integrating-facebook-connect-into-your-web-app/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 23:15:28 +0000</pubDate>
		<dc:creator>devender</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ruby rails facebook connect howto]]></category>

		<guid isPermaLink="false">http://devender.wordpress.com/?p=249</guid>
		<description><![CDATA[Lately I have been spending time researching on how to integrate with facebook connect. There is a ton of documentation on the facebook wiki page, but as with any wiki you need to know what you are looking for. I am going to document here what I found.
For the really impatient (like me) check out [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=249&subd=devender&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Lately I have been spending time researching on how to integrate with facebook connect. There is a ton of documentation on the facebook wiki page, but as with any wiki you need to know what you are looking for. I am going to document here what I found.</p>
<p>For the really impatient (like me) check out this <a href="http://www.facebook.com/video/video.php?v=630563174283">video</a>.</p>
<ol>
<li>To begin with go to this <a href="http://wiki.developers.facebook.com/index.php/Facebook_Connect">Wiki</a> page on facebook to get familiar with facebook connect and reasons for using it.</li>
<li>Install the <a href="http://www.facebook.com/developers">facebook developer app</a> into your facebook page (makes it easy to keep track of your api keys and your webpages ).</li>
<li>Next on the <a href="http://www.facebook.com/developers">facebook developer app</a> register your domain and it will generate  the api key and secret (don&#8217;t worry about saving it you can always look it up from the developer app).</li>
<li>Once you have done that you will need to download and place this file <strong>xd_receiver.htm</strong> into your applications root folder. (For step by step instructions to do this go <a href="http://wiki.developers.facebook.com/index.php/Connect/Setting_Up_Your_Site">here</a>.)</li>
<li>Include this tag in every page that you plan to use facebook connect on.
<pre><code>  &lt; script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US" type="text/javascript" &gt;&lt; / script &gt;</code></pre>
</li>
<li> And also include this snippet to initiate the connection.
<pre><code>&lt; script type="text/javascript" &gt;
        FB.init("a8072b7845a8815f63966e90abe4a1e0", "/xd_receiver.htm");
    &lt; / script &gt;

</code>Should be in the body not head</pre>
</li>
<li> Place the login button
<pre><code>fb:login-button length='long' onlogin="successful_login();"</code></pre>
</li>
<li>You need to create the function successful_login, that will do something when facebook authenticates the user. I just went and pulled the user&#8217;s picture and show it. The code for that is here
<pre><code>$("#login").html("&lt; fb:profile-pic uid='loggedinuser' facebook-logo='true' &gt; &lt; /fb:profile-pic &gt;. Welcome, &lt; fb:name uid='loggedinuser' useyou='false' &gt;&lt; / fb:name &gt;.");</code></pre>
</li>
</ol>
<p>And that&#8217;s about it, if you want you can check out my example at <a href="http://devender.net/">devender.net</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devender.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devender.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devender.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devender.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devender.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devender.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devender.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devender.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devender.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devender.wordpress.com/249/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=249&subd=devender&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://devender.wordpress.com/2009/11/02/integrating-facebook-connect-into-your-web-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd521b7911352127217de208e0a86f4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devender</media:title>
		</media:content>
	</item>
		<item>
		<title>TextMate Love</title>
		<link>http://devender.wordpress.com/2009/09/08/textmate-love/</link>
		<comments>http://devender.wordpress.com/2009/09/08/textmate-love/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 18:25:19 +0000</pubDate>
		<dc:creator>devender</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://devender.wordpress.com/?p=234</guid>
		<description><![CDATA[I love TextMate, working in it feels no natural. Although I have been an avid VI user, more and more nowadays I keep opening up TM. And it would be so nice if TM were available on Ubuntu.
And yeah trying to make gedit act like textmate sucks donkey b****
UPDATE: Ok so I tried netbeans and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=234&subd=devender&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I love TextMate, working in it feels no natural. Although I have been an avid VI user, more and more nowadays I keep opening up TM. And it would be so nice if TM were available on Ubuntu.</p>
<p>And yeah trying to make gedit act like textmate sucks donkey b****</p>
<p>UPDATE: Ok so I tried netbeans and also ruby mine and I still think TextMate is the best.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devender.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devender.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devender.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devender.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devender.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devender.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devender.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devender.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devender.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devender.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=234&subd=devender&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://devender.wordpress.com/2009/09/08/textmate-love/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd521b7911352127217de208e0a86f4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devender</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading To Snow Leopard, What a pain!!</title>
		<link>http://devender.wordpress.com/2009/09/05/upgrading-to-snow-leopard-what-a-pain/</link>
		<comments>http://devender.wordpress.com/2009/09/05/upgrading-to-snow-leopard-what-a-pain/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 11:37:45 +0000</pubDate>
		<dc:creator>devender</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[snow leopard mac]]></category>

		<guid isPermaLink="false">http://devender.wordpress.com/?p=231</guid>
		<description><![CDATA[Man what a pain, the actual upgrade was very smooth but then my mac ports broke followed by sqlite, mercurial &#8230;&#8230;

First thing you will run into is MacPorts are broken. To fix it is download it again and reinstall (apparently each version of MacPorts is very specific to the OS) and after you do that, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=231&subd=devender&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Man what a pain, the actual upgrade was very smooth but then my mac ports broke followed by sqlite, mercurial &#8230;&#8230;</p>
<ul>
<li>First thing you will run into is <span style="color:#3366ff;"><strong>MacPorts</strong></span> are broken. To fix it is download it again and reinstall (apparently each version of <span style="color:#3366ff;"><strong>MacPorts</strong></span> is very specific to the OS) and after you do that, un-install  and res-install all your ports, this will get apps that will work with Snow Leopard (the 64 bit version). Here&#8217;s what I do not understand when Ubuntu can maintain apt-get why can&#8217;t Apple maintain mac ports and make it easy for developers ?</li>
<li>Anyway moving on, if you had <strong>Mercurial</strong> installed from <strong>MacPorts</strong>, you can forget about it (Since mercurial is dependent on <strong>python26</strong> which is at present broken with MacPorts. Workaround is, just download the mac version of mercurial for mercurial&#8217;s <a href="http://mercurial.berkwood.com/">website</a> and install.</li>
<li>Reinstall sqlite3.</li>
<li>If you had installed <span style="color:#ff0000;"><strong>Ruby</strong></span> and <span style="color:#ff0000;"><strong>Gems</strong></span> manually  then you will have to re-do it again here are the links to do that reinstall <a href="http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard">ruby</a>, reinstall <a href="http://oleganza.tumblr.com/post/127709563/snow-leopard-with-legacy-macports-and-rubygems">gems</a> this will setup the 64 bit version of ruby.</li>
</ul>
<p>Great, now back to some productive work @#$@!$%@</p>
<p>Keywords uninitialized constant SQLite3::Driver::Native::Driver::API,  python26,</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devender.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devender.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devender.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devender.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devender.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devender.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devender.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devender.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devender.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devender.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=231&subd=devender&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://devender.wordpress.com/2009/09/05/upgrading-to-snow-leopard-what-a-pain/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd521b7911352127217de208e0a86f4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devender</media:title>
		</media:content>
	</item>
		<item>
		<title>Pragmatic Thinking &amp; Learning</title>
		<link>http://devender.wordpress.com/2009/08/16/pragmatic-thinking-learning/</link>
		<comments>http://devender.wordpress.com/2009/08/16/pragmatic-thinking-learning/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 22:32:26 +0000</pubDate>
		<dc:creator>devender</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[brain]]></category>
		<category><![CDATA[improvement]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[pragmatic]]></category>
		<category><![CDATA[thinking]]></category>

		<guid isPermaLink="false">http://devender.wordpress.com/?p=226</guid>
		<description><![CDATA[Tell me something

Have you ever felt that you have reached a plateau in your career ?
Read the pragmatic programmer and couldn&#8217;t get enough of it ? or wanted a follow up to it ?
Felt stuck ? Reached a stalemate ?
Had great many plans but never really completed them ?
Knew there is something better but did [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=226&subd=devender&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div>Tell me something</div>
<ul>
<li>Have you ever felt that you have <strong>reached a plateau in your career </strong>?</li>
<li>Read the <strong>pragmatic programmer</strong> and couldn&#8217;t get enough of it ? or wanted <strong>a follow up</strong> to it ?</li>
<li><strong>Felt</strong> stuck ? Reached a <strong>stalemate</strong> ?</li>
<li>Had great many <strong>plans</strong> but <strong>never</strong> really <strong>completed</strong> them ?</li>
<li>Knew there is <strong>something</strong> <strong>better</strong> but did not know how to reach it ?</li>
<li>Wanted to get better, just <strong>did not know how</strong> to ?</li>
</ul>
<p>Well I can with <strong>100 %</strong> confidence tell you the answer to all these questions and more is reading the book &#8216;<em><a href="http://www.pragprog.com/titles/ahptl/pragmatic-thinking-and-learning" target="_blank"><strong>Pragmatic Thinking &amp; Learning : Refactor your Wetware</strong></a></em>&#8216; -by Andy Hunt .</p>
<p>In this book Andy shows us</p>
<ul>
<li>Why the <strong>brain works</strong> as it does?</li>
<li>How to move <strong>beyond beginner</strong> level performance to expertise ?</li>
<li>What are our cognitive biases or <strong>bugs in our brain</strong> and how to overcome them?</li>
<li>How to learn deliberately ? (<strong>learning</strong> that <strong>sticks</strong>).</li>
<li>How to <strong>harvest</strong> your <strong>ideas</strong> and insight ?</li>
<li>How to stay <strong>sharp</strong> and why is it important ?</li>
<li>and so much more.</li>
</ul>
<p>As I was reading the book I could already see changes in me and my performance (not that kind). I can honestly tell you this book has helped me.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devender.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devender.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devender.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devender.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devender.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devender.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devender.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devender.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devender.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devender.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=226&subd=devender&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://devender.wordpress.com/2009/08/16/pragmatic-thinking-learning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd521b7911352127217de208e0a86f4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devender</media:title>
		</media:content>
	</item>
		<item>
		<title>Some helpful Sqls for Oracle</title>
		<link>http://devender.wordpress.com/2009/07/14/some-helpful-sqls-for-oracle/</link>
		<comments>http://devender.wordpress.com/2009/07/14/some-helpful-sqls-for-oracle/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 23:50:48 +0000</pubDate>
		<dc:creator>devender</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[oracle sql data dictionary]]></category>

		<guid isPermaLink="false">http://devender.wordpress.com/?p=201</guid>
		<description><![CDATA[1. For finding out the current running sql for a particular user
SELECT a.sql_text
 FROM v$session s,
 v$sqlarea a
 WHERE s.user    = 'USER'
AND s.status        ='ACTIVE'
AND s.sql_hash_value=a.hash_value
AND s.sql_address   =a.address;
2. To find locked objects in Oracle
3. To see all the seesion for a user
   select * from v$session s where s.username = 'PROQ';
4. To see locked [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=201&subd=devender&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>1. For finding out the current running sql for a particular user</p>
<pre style="text-align:left;padding-left:30px;">SELECT a.sql_text
 FROM v$session s,
 v$sqlarea a
 WHERE s.user    = 'USER'
AND s.status        ='ACTIVE'
AND s.sql_hash_value=a.hash_value
AND s.sql_address   =a.address;</pre>
<p style="text-align:left;">2. <a href="http://www.praetoriate.com/oracle_tips_find_locks.htm">To find locked objects in Oracle</a></p>
<p style="text-align:left;">3. To see all the seesion for a user</p>
<pre style="text-align:left;">   select * from v$session s where s.username = 'PROQ';</pre>
<p>4. To see locked objects and the session</p>
<pre style="text-align:left;padding-left:30px;">select     oracle_username || ' (' || s.osuser || ')' username
   ,  s.sid || ',' || s.serial# sess_id
   ,  owner || '.' || object_name object
   ,  object_type
   ,  decode( l.block
      ,       0, 'Not Blocking'
      ,       1, 'Blocking'
      ,       2, 'Global') status
   ,  decode(v.locked_mode
     ,       0, 'None'
     ,       1, 'Null'
     ,       2, 'Row-S (SS)'
     ,       3, 'Row-X (SX)'
     ,       4, 'Share'
     ,       5, 'S/Row-X (SSX)'
     ,       6, 'Exclusive', TO_CHAR(lmode)) mode_held
  from       v$locked_object v
  ,  dba_objects d
  ,  v$lock l
  ,  v$session s
  where      v.object_id = d.object_id
  and        v.object_id = l.id1
  and        v.session_id = s.sid
  order by oracle_username
  ,  session_id</pre>
<p>And then kill the session with this</p>
<pre style="text-align:left;padding-left:30px;">alter system kill session '94,2168';</pre>
<p>5. Tables by user</p>
<pre style="text-align:left;padding-left:30px;">select owner,count(*) from all_all_tables group by owner; </pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devender.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devender.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devender.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devender.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devender.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devender.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devender.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devender.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devender.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devender.wordpress.com/201/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=201&subd=devender&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://devender.wordpress.com/2009/07/14/some-helpful-sqls-for-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd521b7911352127217de208e0a86f4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devender</media:title>
		</media:content>
	</item>
		<item>
		<title>Should a correct solution be elegant too?</title>
		<link>http://devender.wordpress.com/2009/07/10/should-a-correct-soultion-be-elegant-too/</link>
		<comments>http://devender.wordpress.com/2009/07/10/should-a-correct-soultion-be-elegant-too/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 20:06:06 +0000</pubDate>
		<dc:creator>devender</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[programmers programming rant]]></category>

		<guid isPermaLink="false">http://devender.wordpress.com/?p=198</guid>
		<description><![CDATA[Many times when engineers propose a design/solution we are told &#8216;Well lets just get over the hump for now and refactor it later&#8221;  or &#8216;oh, that&#8217;s an elegant solution but lets just get it done for now&#8217; and the worst of all you are just ignored. (Makes you think if you are speaking in a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=198&subd=devender&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Many times when engineers propose a design/solution we are told &#8216;Well lets just get over the hump for now and refactor it later&#8221;  or &#8216;oh, that&#8217;s an elegant solution but lets just get it done for now&#8217; and the worst of all you are just ignored. (Makes you think if you are speaking in a different language)</p>
<p>This almost always pains me, I just cannot understand how can a solution be correct and not be elegant to me a complete design is something that is <strong>correct</strong>, <strong>elegant</strong>, <strong>maintainable</strong> and <strong>easy to extend</strong>. Something that will stand the test of time. Something that can be reused.</p>
<p>I learnt the hard way every thing that you ever write and put into the system, someday you will have to enhance it, so would it not be better for you if you do it right the fist time around ?</p>
<p>I guess it is the engineer in me, I get bored if there is no puzzle to solve.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devender.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devender.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devender.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devender.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devender.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devender.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devender.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devender.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devender.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devender.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=198&subd=devender&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://devender.wordpress.com/2009/07/10/should-a-correct-soultion-be-elegant-too/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd521b7911352127217de208e0a86f4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devender</media:title>
		</media:content>
	</item>
		<item>
		<title>Why no rigior ?</title>
		<link>http://devender.wordpress.com/2009/07/08/why-no-rigior/</link>
		<comments>http://devender.wordpress.com/2009/07/08/why-no-rigior/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 16:49:46 +0000</pubDate>
		<dc:creator>devender</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[rant programmers]]></category>

		<guid isPermaLink="false">http://devender.wordpress.com/?p=179</guid>
		<description><![CDATA[Recently I had to fix a problem with a job hanging, so I pulled out my trusty YouKit profiler, profiled the app and was quickly able to detect the problem.
Basically it was an old fashioned connection leak due to a mix of bad coding, no &#8216;max wait time&#8217; set on get connection and to make [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=179&subd=devender&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I had to fix a problem with a job hanging, so I pulled out my trusty <a href="http://www.yourkit.com/">YouKit</a> profiler, profiled the app and was quickly able to detect the problem.</p>
<p>Basically it was an old fashioned connection leak due to a mix of bad coding, no &#8216;max wait time&#8217; set on get connection and to make the problem worse it is multi-threaded.</p>
<p>At first look, all the threads were in a blocked state, so I reduced the number of threads to one (oh thank goodness for Executors), and soon the problem became pretty evident. Oh there were other problems too like creating infinite number of threads, when we have very finite number of resources, parent thread dying without waiting for child threads to complete&#8230;&#8230;</p>
<p>Why do programmers think making a piece of code multi threaded is so easy ? Especially when you are dealing with legacy code (and I mean code written over the past 10 years by various people), trust me all it is going to do, is zoom into existing issues in the code.</p>
<p>I think the first step in increasing the performance of any app, would be just profile it! Find out where it spends 80% of the time and try to tune it that.</p>
<p>And that&#8217;s where my issue of <em>rigor</em> arises, I rarely see anyone wanting to profile an application before tuning it, solution to every problem seems to be to go GungHo with threading.</p>
<p>This attitude is also evident in another very popular notion of &#8220;throwing pancakes on the wall&#8221; to see what sticks.</p>
<p>Ok when did engineering disappear from IT ? seriously did I miss that memo ? most of us have some sort of bachelors degree, if not a masters so why are we behaving like code monkeys ? What happened to measurement ? reading ?</p>
<p>What happened to critical thinking ? I read an article &#8216;Are we losing our ability to think critically?&#8217; from the <a href="http://cacm.acm.org/magazines/2009/7/32082-are-we-losing-our-ability-to-think-critically/fulltext">ACM</a> (yes you should read that magazine or pick Dr.Dobbs or some professional computing journal if you are serious about your craft.) And I have to say the answer to that question is YES.</p>
<p>But can you blame em? nowadays all developers are crammed into one giant room where you cant even hear your own thoughts. It is no wonder developers are the biggest promotors of headphones.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devender.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devender.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devender.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devender.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devender.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devender.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devender.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devender.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devender.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devender.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=179&subd=devender&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://devender.wordpress.com/2009/07/08/why-no-rigior/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd521b7911352127217de208e0a86f4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devender</media:title>
		</media:content>
	</item>
		<item>
		<title>Doing evil things, overriding jar location in Maven</title>
		<link>http://devender.wordpress.com/2009/05/12/doing-evil-things-overriding-jar-locataion-in-maven/</link>
		<comments>http://devender.wordpress.com/2009/05/12/doing-evil-things-overriding-jar-locataion-in-maven/#comments</comments>
		<pubDate>Tue, 12 May 2009 20:14:26 +0000</pubDate>
		<dc:creator>devender</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[java maven]]></category>

		<guid isPermaLink="false">http://devender.wordpress.com/?p=174</guid>
		<description><![CDATA[Every once in a while you are stuck in a situation where you just cannot add a jar into the repository but you still want to use maven, there is a work around. In the old maven 1.x you had to do this using the project properties now it is even easier just add a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=174&subd=devender&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Every once in a while you are stuck in a situation where you just cannot add a jar into the repository but you still want to use maven, there is a work around. In the old maven 1.x you had to do this using the project properties now it is even easier just add a dependency  like below and add the jar to the ${basedir}/lib folder. The system tag was created for a totally different purpose, but here we are using it for our overriding jar locations.</p>
<pre>&lt;dependency&gt;
 &lt;groupId&gt;pircbot&lt;/groupId&gt;
 &lt;artifactId&gt;pircbot&lt;/artifactId&gt;
 &lt;version&gt;1.0&lt;/version&gt;
 &lt;scope&gt;system&lt;/scope&gt;
 &lt;systemPath&gt;${basedir}/lib/pircbot-1.0.jar&lt;/systemPath&gt;
 &lt;/dependency&gt;</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devender.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devender.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devender.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devender.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devender.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devender.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devender.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devender.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devender.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devender.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=174&subd=devender&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://devender.wordpress.com/2009/05/12/doing-evil-things-overriding-jar-locataion-in-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd521b7911352127217de208e0a86f4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devender</media:title>
		</media:content>
	</item>
		<item>
		<title>I want to work on Ruby</title>
		<link>http://devender.wordpress.com/2009/05/12/i-want-to-work-on-ruby/</link>
		<comments>http://devender.wordpress.com/2009/05/12/i-want-to-work-on-ruby/#comments</comments>
		<pubDate>Tue, 12 May 2009 19:15:08 +0000</pubDate>
		<dc:creator>devender</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ruby rant]]></category>

		<guid isPermaLink="false">http://devender.wordpress.com/?p=172</guid>
		<description><![CDATA[Man this is so sad, I want to be working on ruby and rails but my present job is all about Java    this is a very sad situation.
Now I can only work on it nights and weekends (and at work only when no one is looking).
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=172&subd=devender&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Man this is so sad, I want to be working on ruby and rails but my present job is all about Java  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  this is a very sad situation.</p>
<p>Now I can only work on it nights and weekends (and at work only when no one is looking).</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devender.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devender.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devender.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devender.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devender.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devender.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devender.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devender.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devender.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devender.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devender.wordpress.com&blog=609686&post=172&subd=devender&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://devender.wordpress.com/2009/05/12/i-want-to-work-on-ruby/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd521b7911352127217de208e0a86f4f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devender</media:title>
		</media:content>
	</item>
	</channel>
</rss>