<?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>Technology is good</title>
	<atom:link href="http://geekbrigade.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekbrigade.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 17:23:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='geekbrigade.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Technology is good</title>
		<link>http://geekbrigade.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://geekbrigade.wordpress.com/osd.xml" title="Technology is good" />
	<atom:link rel='hub' href='http://geekbrigade.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Fancy, Sleek and Stylish JQuery Popup With ColorBox</title>
		<link>http://geekbrigade.wordpress.com/2011/08/03/fancy-sleek-and-stylish-jquery-popup-with-colorbox/</link>
		<comments>http://geekbrigade.wordpress.com/2011/08/03/fancy-sleek-and-stylish-jquery-popup-with-colorbox/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 05:59:27 +0000</pubDate>
		<dc:creator>meter down</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[beautiful popup]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html popup]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[javascript popup]]></category>
		<category><![CDATA[jquery popup]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[popup window]]></category>
		<category><![CDATA[sexy popup]]></category>
		<category><![CDATA[simple popup]]></category>
		<category><![CDATA[sleek popup]]></category>

		<guid isPermaLink="false">https://geekbrigade.wordpress.com/2011/08/03/fancy-sleek-and-stylish-jquery-popup-with-colorbox/</guid>
		<description><![CDATA[First of all you must be a little familiar with jQuery. But you are not expected to be a jQuery expert. Secondly, you must also be familiar with javascript and CSS and thirdly, you must be eager to learn . For quite a few days I was searching for something that gives me the ability [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=271&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First of all you must be a little familiar with <a href="http://jquery.com/">jQuery</a>. But you are not expected to be a jQuery expert. Secondly, you must also be familiar with javascript and CSS and thirdly, you must be eager to learn <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>For quite a few days I was searching for something that gives me the ability to</p>
<ol>
<li>open a link (outside webpage) in a popup window</li>
<li>Open HTML controls in popup</li>
<li>Can show images in the popup</li>
<li>Can show images as a slideshow in a popup</li>
<li>Can show inline HTML in a popup</li>
<li>Should be sexy, not like the old school HTML popup window</li>
</ol>
<p><span id="more-271"></span></p>
<p>After quite a lot of research and comparisons, I came across <a href="http://colorpowered.com/colorbox/">ColorBox</a>. It perfectly suits my requirements. Okay lets stop talking and start coding <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can download the project source code from <a href="http://dl.dropbox.com/u/3497612/ColorBox%20Tutorial.zip">here</a> but read the following steps for making yourself familiar with the code<em>.<br />
</em></p>
<ol>
<li>Go to colorbox webiste <a title="http://colorpowered.com/colorbox/" href="http://colorpowered.com/colorbox/">http://colorpowered.com/colorbox/</a></li>
<li>Get yourself a little familiar with this beauty by trying a few examples over <a href="http://colorpowered.com/colorbox/core/example1/index.html">here</a></li>
<li>The example code contains an HTML file with a single link (&lt;a&gt; tag) in it. When that link is clicked,  <a href="http://www.google.com">www.google.com</a>  opens in the popup window.</li>
<li>Other files that the package contains are the css file “colorbox.css” , javascript file “jquery.colorbox.js” and the images folder in the same folder as of the html file.</li>
<li>That’s it. Open the html file in a browser and click on the link “Outside Webpage (Iframe)” and a popup appears similar to the following image
<p style="text-align:center;"><a href="http://geekbrigade.files.wordpress.com/2011/08/image.png" target="_blank"><img class="aligncenter" style="display:block;border:0 none;" title="image" src="http://geekbrigade.files.wordpress.com/2011/08/image_thumb.png?w=444&#038;h=245" alt="image" width="444" height="245" border="0" /></a></p>
</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geekbrigade.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geekbrigade.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geekbrigade.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geekbrigade.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/geekbrigade.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/geekbrigade.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/geekbrigade.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/geekbrigade.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geekbrigade.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geekbrigade.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geekbrigade.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geekbrigade.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geekbrigade.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geekbrigade.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=271&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://geekbrigade.wordpress.com/2011/08/03/fancy-sleek-and-stylish-jquery-popup-with-colorbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f08dd8479b8d23075ae4d90993d907a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Meter Down</media:title>
		</media:content>

		<media:content url="http://geekbrigade.files.wordpress.com/2011/08/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Install Oracle Glassfish Application Server on Windows</title>
		<link>http://geekbrigade.wordpress.com/2011/07/29/how-to-install-oracle-glassfish-application-server-on-windows/</link>
		<comments>http://geekbrigade.wordpress.com/2011/07/29/how-to-install-oracle-glassfish-application-server-on-windows/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 10:07:51 +0000</pubDate>
		<dc:creator>meter down</dc:creator>
				<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web/Application Server]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[application server]]></category>
		<category><![CDATA[glassfish]]></category>
		<category><![CDATA[Installations]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">https://geekbrigade.wordpress.com/2011/07/29/how-to-install-oracle-glassfish-application-server-on-windows/</guid>
		<description><![CDATA[Download executable jar from here. Put the downloaded file in C drive or anywhere you like Open command prompt ( Start &#62; Run &#62; write cmd and press OK) On command prompt go to C drive Run the following commandjava –Xms256m –jar glassfish-installer-v2ur2-b04-windows.jar You will see this screen Scroll down the page and Accept button [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=265&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ol>
<li>Download executable jar from <a href="http://glassfish.java.net/downloads/v2ur2-b04.html">here</a>.</li>
<li>Put the downloaded file in C drive or anywhere you like</li>
<li>Open command prompt ( Start &gt; Run &gt; write cmd and press OK)
<div id="extendedEntryBreak"><span id="more-265"></span></div>
</li>
<li>On command prompt go to C drive</li>
<li>Run the following command<span style="font-family:Courier New;">java –Xms256m –jar glassfish-installer-v2ur2-b04-windows.jar</span></li>
<li>You will see this screen<br />
<img style="display:block;float:none;border-width:0;margin:15px auto;" title="image" src="http://geekbrigade.files.wordpress.com/2011/07/image_thumb.png?w=240&#038;h=196" alt="image" width="240" height="196" border="0" /></li>
<li>Scroll down the page and Accept button will be enabled ( You can’t force me to read it <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )</li>
<li>Installation starts and you see lots of garbage on command prompt screen <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </li>
<li>Installation done? Nops, just a few more steps</li>
<li>Now you will have a directory C:\glassfish</li>
<li>We must activate setup.xml in glassfish directory. For that, open command prompt and go to C:\glassfish.</li>
<li>Run this command<br />
<span style="font-family:Courier New;">ant –f setup.xml</span></li>
<li>Ouch! I got an error. Apache Ant is not installed on my system.&#8217;ant&#8217; is not recognized as an internal or external command,<br />
operable program or batch file.</li>
<li>Lets first install Ant.<br />
Fortunately, we already have ant with us in the glassfish directory under glassfish/lib/ant directory. Now we are gonna set ANT_HOME and PATH variables for ANT.a. Right click My Computer and choose “properties” then click on “Advanced” tab and press “Environment Variables” button.<br />
b. In “System Variables” click “New” button and enter ANT_HOME as Variable name and C:\glassfish\lib\ant as Variable value.<br />
c. In the System Variables, find “Path” variable and click Edit. Put this at the end of the variable value ;%ANT_HOEM%\bin.To verify the installation, open a new command prompt and run this command<br />
<span style="font-family:Courier New;">ant –version<br />
</span>Ant version number will be printed on the console<br />
<span style="font-family:Courier New;">Apache Ant version 1.6.5 compiled on June 2 2005</span></li>
<li>Now back to the Glassfish installation. Run this command again<br />
<span style="font-family:Courier New;">ant –f setup.xml</span></li>
<li>If windows firewall popup appears, unblock it.</li>
<li>If the installation is successful you will get a Build Successful message.</li>
<li>Hurray! we have done it.</li>
<li>Now lets check if glassfish is properly installed or not.</li>
<li>Go to C:\glassfish\bin and run the following command<br />
<span style="font-family:Courier New;">asadmin start-domain domain1</span><br />
But I got an error her<br />
C:\glassfish\domains is not a directory<br />
CLI156 Could not start the domain domain1.If you look to the end of previous command output, you will see this<br />
<span style="font-family:Courier New;">create.domain:<br />
[exec] Port 8080 is in use.<br />
[exec] CLI130 Could not create domain, domain1<br />
[delete] Deleting: C:\glassfish\passfile<br />
</span>So obvious, port 8080 is in use. If you know what program is using it, close it or change the port in C:/glassfish/setup.xml file. Search 8080 in file and put anything else like 8081. Save the file and do step 15 on wards again.</li>
<li>I hope now every problem is solved.</li>
<li>Open your browser and hit the following URL<br />
<a title="http://localhost:8081/" href="http://localhost:8081/">http://localhost:8081/</a>You will see a success message on the web page.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geekbrigade.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geekbrigade.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geekbrigade.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geekbrigade.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/geekbrigade.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/geekbrigade.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/geekbrigade.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/geekbrigade.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geekbrigade.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geekbrigade.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geekbrigade.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geekbrigade.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geekbrigade.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geekbrigade.wordpress.com/265/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=265&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://geekbrigade.wordpress.com/2011/07/29/how-to-install-oracle-glassfish-application-server-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f08dd8479b8d23075ae4d90993d907a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Meter Down</media:title>
		</media:content>

		<media:content url="http://geekbrigade.files.wordpress.com/2011/07/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Delete Duplicate Rows in Database Table</title>
		<link>http://geekbrigade.wordpress.com/2011/07/05/how-to-delete-duplicate-rows-in-database-table/</link>
		<comments>http://geekbrigade.wordpress.com/2011/07/05/how-to-delete-duplicate-rows-in-database-table/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 09:39:06 +0000</pubDate>
		<dc:creator>meter down</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[TOAD]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[delete duplicate]]></category>
		<category><![CDATA[sql delete]]></category>
		<category><![CDATA[sql delete duplicate]]></category>

		<guid isPermaLink="false">http://geekbrigade.wordpress.com/?p=259</guid>
		<description><![CDATA[I had a situation today, I accidentally executed SQL insert script twice. The bad thing was that the table had no primary key or unique key defined which may have stopped it from execution. Lesson: Not having Primary keys is a bad idea So, now I can not delete each row manually so I had [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=259&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a situation today, I accidentally executed SQL insert script twice. The bad thing was that the table had no primary key or unique key defined which may have stopped it from execution.</p>
<p><em> Lesson: Not having Primary keys is a bad idea</em></p>
<p>So, now I can not delete each row manually so I had to write a query which could do that for me. Thanks god it saved me a lot of time.</p>
<p>So here goes the query, rather queries for performing the same functionality.</p>
<p><span id="more-259"></span></p>
<p><strong>First Method<br />
</strong><br />
DELETE FROM department<br />
WHERE rowid not in<br />
(<br />
SELECT MIN(rowid)<br />
FROM department d<br />
GROUP BY D.department_id<br />
)</p>
<p><strong>Second Method</strong></p>
<p>DELETE FROM department A<br />
WHERE ROWID &gt; (<br />
SELECT min(rowid)</p>
<p>FROM department B<br />
WHERE A.department_id = B.department_id);</p>
<p>&nbsp;</p>
<p><strong>Third Method</strong></p>
<p>DELETE FROM department A<br />
WHERE EXISTS<br />
(<br />
SELECT &#8216;x&#8217;<br />
FROM department B<br />
WHERE A.department_id = B.department_id<br />
AND B.rowid      &gt; A.rowid);</p>
<p>I hope it helps.</p>
<p>&nbsp;</p>
<p>Enjoy&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geekbrigade.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geekbrigade.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geekbrigade.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geekbrigade.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/geekbrigade.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/geekbrigade.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/geekbrigade.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/geekbrigade.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geekbrigade.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geekbrigade.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geekbrigade.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geekbrigade.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geekbrigade.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geekbrigade.wordpress.com/259/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=259&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://geekbrigade.wordpress.com/2011/07/05/how-to-delete-duplicate-rows-in-database-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f08dd8479b8d23075ae4d90993d907a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Meter Down</media:title>
		</media:content>
	</item>
		<item>
		<title>Find Second Or nth Highest Value In A SQL Database Table Column</title>
		<link>http://geekbrigade.wordpress.com/2011/06/28/find-second-or-nth-highest-value-in-a-sql-database-table-column/</link>
		<comments>http://geekbrigade.wordpress.com/2011/06/28/find-second-or-nth-highest-value-in-a-sql-database-table-column/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 10:16:04 +0000</pubDate>
		<dc:creator>meter down</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[TOAD]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[highest number]]></category>
		<category><![CDATA[queries]]></category>
		<category><![CDATA[second highest]]></category>

		<guid isPermaLink="false">http://geekbrigade.wordpress.com/?p=252</guid>
		<description><![CDATA[Finding highest or lowest number in a column is easy, you can do that with max() and min() SQL function. But I had recently been asked in an interview to write a query that could find the second highest value in a table column. Ooops, and I didn&#8217;t do well in that interview either.LOL Before [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=252&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Finding highest or lowest number in a column is easy, you can do that with max() and min() SQL function. But I had recently been asked in an interview to write a query that could find the second highest value in a table column.</p>
<p>Ooops, and I didn&#8217;t do well in that interview either.LOL</p>
<p>Before showing you the query, first, let me make things more easy for you. Here is the table script for our very simple JOB table.</p>
<p><span style="color:#0000ff;">CREATE TABLE AAMT.JOB</span><br />
<span style="color:#0000ff;"> (</span><br />
<span style="color:#0000ff;"> JOB_ID       INTEGER,</span><br />
<span style="color:#0000ff;"> DESCRIPTION  VARCHAR2(50 BYTE)</span><br />
<span style="color:#0000ff;"> );</span></p>
<p>Done? Lets move on and insert a few records in JOB table.</p>
<p><span style="color:#0000ff;">Insert into JOB   (JOB_ID, DESCRIPTION) Values   (1, &#8216;Teaching&#8217;);</span><br />
<span style="color:#0000ff;"> Insert into JOB   (JOB_ID, DESCRIPTION) Values   (2, &#8216;Programming&#8217;);</span><br />
<span style="color:#0000ff;"> Insert into JOB   (JOB_ID, DESCRIPTION) Values   (3, &#8216;Administration&#8217;);</span><br />
<span style="color:#0000ff;"> Insert into JOB   (JOB_ID, DESCRIPTION) Values   (10, &#8216;DBA&#8217;);</span><br />
<span style="color:#0000ff;"> Insert into JOB   (JOB_ID, DESCRIPTION) Values   (5, &#8216;Pilot&#8217;);</span><br />
<span style="color:#0000ff;"> Insert into JOB   (JOB_ID, DESCRIPTION) Values   (8, &#8216;Security&#8217;);</span><br />
<span style="color:#0000ff;"> COMMIT;</span></p>
<p>OK, ladies and gentlemen here goes an Oracle query that does the same. Rownum is our thing here, rownum will serve our purpose .I hope it would be helpful for you.</p>
<p><span style="color:#0000ff;">select job_id from</span><br />
<span style="color:#0000ff;"> (select rownum r,job_id from job order by job_id desc)</span><br />
<span style="color:#0000ff;"> where r=2;</span></p>
<p>This is another version I found on web</p>
<p><span style="color:#0000ff;">SELECT job_id FROM</span><br />
<span style="color:#0000ff;"> (SELECT job_id,row_number() OVER (ORDER BY JOB_ID DESC )r  FROM job)</span><br />
<span style="color:#0000ff;"> WHERE r=2;</span></p>
<p>Both queries return</p>
<p>8</p>
<p>I hope this would help.</p>
<p>Please leave feedback or if you have better solution, please share.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geekbrigade.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geekbrigade.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geekbrigade.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geekbrigade.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/geekbrigade.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/geekbrigade.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/geekbrigade.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/geekbrigade.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geekbrigade.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geekbrigade.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geekbrigade.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geekbrigade.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geekbrigade.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geekbrigade.wordpress.com/252/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=252&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://geekbrigade.wordpress.com/2011/06/28/find-second-or-nth-highest-value-in-a-sql-database-table-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f08dd8479b8d23075ae4d90993d907a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Meter Down</media:title>
		</media:content>
	</item>
		<item>
		<title>GNOME 2.26 has released</title>
		<link>http://geekbrigade.wordpress.com/2009/05/28/gnome-2-26-has-released/</link>
		<comments>http://geekbrigade.wordpress.com/2009/05/28/gnome-2-26-has-released/#comments</comments>
		<pubDate>Thu, 28 May 2009 11:27:23 +0000</pubDate>
		<dc:creator>meter down</dc:creator>
				<category><![CDATA[gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Open Source News]]></category>
		<category><![CDATA[gnome 2.26]]></category>
		<category><![CDATA[gnome 2.26 release notes]]></category>
		<category><![CDATA[gnome 2.26 released]]></category>
		<category><![CDATA[latest gnome]]></category>
		<category><![CDATA[linux gnome]]></category>

		<guid isPermaLink="false">http://geekbrigade.wordpress.com/?p=246</guid>
		<description><![CDATA[The GNOME project is proud to release this new version of the GNOME desktop environment and developer platform. Among the hundreds of bug fixes and user-requested improvements, GNOME 2.26 has several highly visible changes: the inclusion of a new disc burning application, simpler file sharing and a generally smoother user experience. Learn more about GNOME [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=246&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><img class="size-full wp-image-245 aligncenter" title="two-twenty-six" src="http://geekbrigade.files.wordpress.com/2009/05/two-twenty-six.png?w=500&#038;h=166" alt="two-twenty-six" width="500" height="166" /></p>
<p>The GNOME project is proud to release this new version of the GNOME desktop environment and developer platform. Among the hundreds of bug fixes and user-requested improvements, GNOME 2.26 has several highly visible changes: the inclusion of a new disc burning application, simpler file sharing and a generally smoother user experience. Learn more about GNOME 2.26 through the detailed <a href="http://library.gnome.org/misc/release-notes/2.26/" target="_blank">release notes.</a></p>
<p>For more news, tech tutorials and tech information click <a href="http://tutorialinc.blogspot.com/" target="_self">here </a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geekbrigade.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geekbrigade.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geekbrigade.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geekbrigade.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/geekbrigade.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/geekbrigade.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/geekbrigade.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/geekbrigade.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geekbrigade.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geekbrigade.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geekbrigade.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geekbrigade.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geekbrigade.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geekbrigade.wordpress.com/246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=246&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://geekbrigade.wordpress.com/2009/05/28/gnome-2-26-has-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f08dd8479b8d23075ae4d90993d907a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Meter Down</media:title>
		</media:content>

		<media:content url="http://geekbrigade.files.wordpress.com/2009/05/two-twenty-six.png" medium="image">
			<media:title type="html">two-twenty-six</media:title>
		</media:content>
	</item>
		<item>
		<title>Get a free Ubuntu 9.04 CD</title>
		<link>http://geekbrigade.wordpress.com/2009/04/20/get-a-free-ubuntu-904-cd/</link>
		<comments>http://geekbrigade.wordpress.com/2009/04/20/get-a-free-ubuntu-904-cd/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 09:46:22 +0000</pubDate>
		<dc:creator>meter down</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[free ubuntu cd]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 9.04]]></category>
		<category><![CDATA[ubuntu 9.04 new features]]></category>

		<guid isPermaLink="false">http://geekbrigade.wordpress.com/?p=239</guid>
		<description><![CDATA[The next ubuntu stable version is going to be released on 23rd April 2009.If you want to order your free CDS use the following linkhttps://shipit.ubuntu.com/ If you want to know new features in ubuntu 9.04 as follows * Linux kernel version 2.6.28 * A new notification system * Faster boot times * GNOME 2.26 desktop [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=239&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#ff6600;"><img class="alignright size-medium wp-image-240" title="ubuntu_logo" src="http://geekbrigade.files.wordpress.com/2009/04/ubuntu_logo.png?w=300&#038;h=78" alt="ubuntu_logo" width="300" height="78" /><strong>The next ubuntu stable version is going to be released on 23rd April 2009.If you want to order your free CDS use the following <a href="//shipit.ubuntu.com/" target="_blank"><span style="text-decoration:underline;"><span style="color:#0000ff;">linkhttps://shipit.ubuntu.com/</span></span></a> </strong></span></p>
<p>If you want to know new features in ubuntu 9.04 as follows</p>
<p>* Linux kernel version 2.6.28</p>
<p>* A new notification system</p>
<p>* Faster boot times</p>
<p>* GNOME 2.26 desktop environment</p>
<p>* Community desktop themes and brand new artwork</p>
<p>* Evolutionary EXT4 filesystem</p>
<p>* Support for many new devices (wireless, webcams, mobile phones, etc.)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geekbrigade.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geekbrigade.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geekbrigade.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geekbrigade.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/geekbrigade.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/geekbrigade.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/geekbrigade.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/geekbrigade.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geekbrigade.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geekbrigade.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geekbrigade.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geekbrigade.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geekbrigade.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geekbrigade.wordpress.com/239/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=239&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://geekbrigade.wordpress.com/2009/04/20/get-a-free-ubuntu-904-cd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f08dd8479b8d23075ae4d90993d907a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Meter Down</media:title>
		</media:content>

		<media:content url="http://geekbrigade.files.wordpress.com/2009/04/ubuntu_logo.png?w=300" medium="image">
			<media:title type="html">ubuntu_logo</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu 9.04 Coming Soon</title>
		<link>http://geekbrigade.wordpress.com/2009/04/20/ubuntu-904-coming-soon/</link>
		<comments>http://geekbrigade.wordpress.com/2009/04/20/ubuntu-904-coming-soon/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 09:35:32 +0000</pubDate>
		<dc:creator>meter down</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 9.04]]></category>
		<category><![CDATA[ubuntu latest version]]></category>

		<guid isPermaLink="false">http://geekbrigade.wordpress.com/?p=236</guid>
		<description><![CDATA[Its almost ready Here is what Ubuntu team has to say The Ubuntu team is happy to bring you the latest and greatest software the Open Source community has to offer. This is their latest result, the Ubuntu 9.04 release candidate, which brings a host of excellent new features. Upgrading from Ubuntu 8.10 To upgrade [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=236&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-235" title="jaunty-rc" src="http://geekbrigade.files.wordpress.com/2009/04/jaunty-rc.jpg?w=500&#038;h=74" alt="jaunty-rc" width="500" height="74" /></p>
<p>Its almost ready <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Here is what Ubuntu team has to say</p>
<div style="text-align:center;"><span style="color:#cc6600;">The Ubuntu team is happy to bring you the latest and greatest</span> <span style="color:#cc6600;">software the Open Source community has to offer.</span> <span style="color:#cc6600;"> This is their latest result, the Ubuntu 9.04 release candidate,</span> <span style="color:#cc6600;">which brings a host of excellent new features.</span></p>
<div style="text-align:left;">
<h3>Upgrading from Ubuntu 8.10</h3>
<p class="line862">
<p class="line862">To upgrade from Ubuntu 8.10 on a desktop system, press Alt+F2 and type in &#8220;<tt>update-manager -d</tt>&#8221; (without the quotes) into the command box. Update Manager should open up and tell you: <tt>New distribution release '9.04' is available.</tt> Click <tt>Upgrade</tt> and follow the on-screen instructions.</p>
<p class="line862">To upgrade from Ubuntu 8.10 on a server system: install the <tt class="backtick">update-manager-core</tt> package if it is not already installed; edit <tt class="backtick">/etc/update-manager/release-upgrades</tt> and set <tt class="backtick">Prompt=normal</tt>; launch the upgrade tool with the command <tt class="backtick">sudo do-release-upgrade</tt>; and follow the on-screen instructions.</p>
<h3>Download</h3>
<p class="line874">Get it while it&#8217;s hot. ISOs and torrents are available at:</p>
<p><a class="http" href="http://releases.ubuntu.com/releases/9.04/">http://releases.ubuntu.com/releases/9.04/</a> (Ubuntu Desktop, Server, and Netbook Remix)<br />
<a class="http" href="http://releases.ubuntu.com/releases/kubuntu/9.04/">http://releases.ubuntu.com/releases/kubuntu/9.04/</a> (Kubuntu)<br />
<a class="http" href="http://cdimage.ubuntu.com/releases/9.04/rc/">http://cdimage.ubuntu.com/releases/9.04/rc/</a> (Ubuntu MID)<br />
<a class="http" href="http://cdimage.ubuntu.com/edubuntu/9.04/rc/">http://cdimage.ubuntu.com/edubuntu/9.04/rc/</a> (Ubuntu Education Edition)<br />
<a class="http" href="http://cdimage.ubuntu.com/xubuntu/releases/9.04/rc/">http://cdimage.ubuntu.com/xubuntu/releases/9.04/rc/</a> (Xubuntu)<br />
<a class="http" href="http://cdimage.ubuntu.com/ubuntustudio/releases/9.04/rc/">http://cdimage.ubuntu.com/ubuntustudio/releases/9.04/rc/</a> (UbuntuStudio)<br />
<a class="http" href="http://cdimage.ubuntu.com/mythbuntu/releases/9.04/rc/">http://cdimage.ubuntu.com/mythbuntu/releases/9.04/rc/</a> (Mythbuntu)<br />
<a class="http" href="http://cdimage.ubuntu.com/netboot/9.04/rc/">http://cdimage.ubuntu.com/netboot/9.04/rc/</a> (Ubuntu ARM)</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geekbrigade.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geekbrigade.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geekbrigade.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geekbrigade.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/geekbrigade.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/geekbrigade.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/geekbrigade.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/geekbrigade.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geekbrigade.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geekbrigade.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geekbrigade.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geekbrigade.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geekbrigade.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geekbrigade.wordpress.com/236/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=236&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://geekbrigade.wordpress.com/2009/04/20/ubuntu-904-coming-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f08dd8479b8d23075ae4d90993d907a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Meter Down</media:title>
		</media:content>

		<media:content url="http://geekbrigade.files.wordpress.com/2009/04/jaunty-rc.jpg" medium="image">
			<media:title type="html">jaunty-rc</media:title>
		</media:content>
	</item>
		<item>
		<title>How to set and view DBMS OUTPUT of Oralce in TOAD</title>
		<link>http://geekbrigade.wordpress.com/2009/04/09/how-to-set-and-view-dbms-output-of-oralce-in-toad/</link>
		<comments>http://geekbrigade.wordpress.com/2009/04/09/how-to-set-and-view-dbms-output-of-oralce-in-toad/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 07:40:48 +0000</pubDate>
		<dc:creator>meter down</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[TOAD]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dbms output]]></category>
		<category><![CDATA[X dbms_output]]></category>
		<category><![CDATA[X dbms_output.put_line]]></category>
		<category><![CDATA[X oralce output]]></category>

		<guid isPermaLink="false">http://geekbrigade.wordpress.com/?p=221</guid>
		<description><![CDATA[To open the DBMS Output window in TOAD, go to View &#38;gt; DBMS output. To test if it is working or not  use the following procedure in TOAD sql editor and execute it. DECLARE tempvar NUMBER; BEGIN DBMS_OUTPUT.PUT_LINE(&#8216;hello world&#8217;); END; Have a look at the image displayed under. Write the SQL mention above into an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=221&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To open the DBMS Output window in TOAD, go to View &amp;gt; DBMS output.<br />
To test if it is working or not  use the following procedure in TOAD sql editor and execute it.</p>
<p><img class="alignleft size-full wp-image-226" title="toad-1" src="http://geekbrigade.files.wordpress.com/2009/04/toad-1.jpg?w=500&#038;h=378" alt="toad-1" width="500" height="378" /></p>
<p><span style="color:#0000ff;">DECLARE<br />
tempvar NUMBER;<br />
BEGIN<br />
</span></p>
<p><span style="color:#0000ff;">DBMS_OUTPUT.PUT_LINE(&#8216;hello world&#8217;);<br />
</span><span style="color:#0000ff;">END;</span></p>
<p>Have a look at the image displayed under. Write the SQL mention above into an SQL editor and press Execute Statement button after selecting the entire sql.<span style="color:#0000ff;"><br />
</span></p>
<p><img class="alignleft size-full wp-image-227" title="toad-2" src="http://geekbrigade.files.wordpress.com/2009/04/toad-2.jpg?w=500&#038;h=469" alt="toad-2" width="500" height="469" /></p>
<p>Once you execute the above sql, open the output window to see the output. See the image below.</p>
<p><img class="alignleft size-full wp-image-225" title="toad-3" src="http://geekbrigade.files.wordpress.com/2009/04/toad-3.jpg?w=500&#038;h=235" alt="toad-3" width="500" height="235" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geekbrigade.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geekbrigade.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geekbrigade.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geekbrigade.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/geekbrigade.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/geekbrigade.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/geekbrigade.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/geekbrigade.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geekbrigade.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geekbrigade.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geekbrigade.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geekbrigade.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geekbrigade.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geekbrigade.wordpress.com/221/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=221&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://geekbrigade.wordpress.com/2009/04/09/how-to-set-and-view-dbms-output-of-oralce-in-toad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f08dd8479b8d23075ae4d90993d907a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Meter Down</media:title>
		</media:content>

		<media:content url="http://geekbrigade.files.wordpress.com/2009/04/toad-1.jpg" medium="image">
			<media:title type="html">toad-1</media:title>
		</media:content>

		<media:content url="http://geekbrigade.files.wordpress.com/2009/04/toad-2.jpg" medium="image">
			<media:title type="html">toad-2</media:title>
		</media:content>

		<media:content url="http://geekbrigade.files.wordpress.com/2009/04/toad-3.jpg" medium="image">
			<media:title type="html">toad-3</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create and use an Oralce Sequence</title>
		<link>http://geekbrigade.wordpress.com/2009/04/08/how-to-create-and-use-an-oralce-sequence/</link>
		<comments>http://geekbrigade.wordpress.com/2009/04/08/how-to-create-and-use-an-oralce-sequence/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 08:07:51 +0000</pubDate>
		<dc:creator>meter down</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Increment and decrement an oracle sequence]]></category>
		<category><![CDATA[Oracle sequence]]></category>

		<guid isPermaLink="false">http://geekbrigade.wordpress.com/?p=208</guid>
		<description><![CDATA[This is how you can create an oracle sequence Syntax CREATE SEQUENCE sequence_name MINVALUE VALUE MAXVALUE VALUE START WITH VALUE INCREMENT BY VALUE CACHE VALUE; A Demo CREATE SEQUENCE my_seq MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH 1 INCREMENT BY 1 CACHE 20; &#8211; If you don&#8217;t provide MAXVALUE its default value is 99999999999999999999999999 Using Sequence [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=208&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#000000;">This is how you can create an oracle sequence </span></p>
<h4><span style="color:#000080;"><span style="color:#000000;"><strong>Syntax</strong></span><br />
</span></h4>
<p style="text-align:justify;"><span style="color:#0000ff;">CREATE SEQUENCE </span>sequence_name<br />
MINVALUE VALUE<br />
MAXVALUE <span style="color:#0000ff;">VALUE</span><br />
<span style="color:#0000ff;">START WITH VALUE</span><br />
<span style="color:#0000ff;">INCREMENT BY VALUE</span><br />
CACHE <span style="color:#0000ff;">VALUE</span>;</p>
<h4><span style="color:#000000;"> A Demo</span></h4>
<p><span style="color:#0000ff;">CREATE SEQUENCE</span> my_seq<br />
MINVALUE 1<br />
MAXVALUE 999999999999999999999999999<br />
<span style="color:#0000ff;">START WITH <span style="color:#000000;">1</span><br />
INCREMENT BY <span style="color:#000000;">1</span></span><br />
CACHE 20;<br />
<span style="color:#008000;">&#8211; If you don&#8217;t provide MAXVALUE its default value is </span><span style="color:#008000;">99999999999999999999999999</span></p>
<h3><span id="more-208"></span></h3>
<h4><span style="color:#000000;">Using Sequence</span></h4>
<p><span style="color:#0000ff;">SELECT </span>my_seq.NEXTVAL <span style="color:#0000ff;">FROM </span>dual;</p>
<p>NEXTVAL<br />
&#8212;&#8212;&#8212;-<br />
1</p>
<p><span style="color:#0000ff;">SELECT</span> my_seq.NEXTVAL <span style="color:#0000ff;">FROM</span> dual;</p>
<p>NEXTVAL<br />
&#8212;&#8212;&#8212;-<br />
2</p>
<p><span style="color:#0000ff;">SELECT</span> my_seq.NEXTVAL <span style="color:#0000ff;">FROM </span>dual;</p>
<p>NEXTVAL<br />
&#8212;&#8212;&#8212;-<br />
3</p>
<p><span style="color:#0000ff;">SELECT </span>my_seq.NEXTVAL <span style="color:#0000ff;">FROM </span>dual;</p>
<p>NEXTVAL<br />
&#8212;&#8212;&#8212;-<br />
4</p>
<h4><strong>Drop Sequence</strong></h4>
<p><span style="color:#0000ff;">DROP sequence </span>my_seq;</p>
<h3>Increment/Decrement/Alter/Reset Sequence</h3>
<p>Now if I want to reset the sequence to a previous value, lets say my current sequence number is 4 and I want my sequence number back at 1. Here is how you can do that.</p>
<p><span style="color:#0000ff;">ALTER SEQUENCE</span> my_seq <span style="color:#0000ff;">INCREMENT BY</span> -3;</p>
<p><span style="color:#0000ff;">SELECT </span>my_seq.<span style="color:#0000ff;">NEXTVAL </span><span style="color:#0000ff;">FROM </span>dual;</p>
<p>NEXTVAL</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>1</p>
<p>If you accendently decremented it by -4, you may get the following error</p>
<p><span style="color:#008000;">ORA-08004: sequence my_seq.NEXTVAL goes below MINVALUE and cannot be instantiated</span></p>
<p>In that case execute the following statment</p>
<p><span style="color:#0000ff;">ALTER SEQUENCE</span> my_seq <span style="color:#0000ff;">INCREMENT BY</span> 4;</p>
<p><span style="color:#0000ff;">SELECT </span>my_seq.<span style="color:#0000ff;">NEXTVAL </span><span style="color:#0000ff;">FROM </span>dual;</p>
<p>This may solve your problem</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geekbrigade.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geekbrigade.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geekbrigade.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geekbrigade.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/geekbrigade.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/geekbrigade.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/geekbrigade.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/geekbrigade.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geekbrigade.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geekbrigade.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geekbrigade.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geekbrigade.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geekbrigade.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geekbrigade.wordpress.com/208/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=208&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://geekbrigade.wordpress.com/2009/04/08/how-to-create-and-use-an-oralce-sequence/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f08dd8479b8d23075ae4d90993d907a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Meter Down</media:title>
		</media:content>
	</item>
		<item>
		<title>How to deploy web project on tomcat?</title>
		<link>http://geekbrigade.wordpress.com/2009/04/07/how-to-deploy-web-project-on-tomcat/</link>
		<comments>http://geekbrigade.wordpress.com/2009/04/07/how-to-deploy-web-project-on-tomcat/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 19:31:24 +0000</pubDate>
		<dc:creator>meter down</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[deploying appllication on tomcat]]></category>
		<category><![CDATA[tomcat web project]]></category>

		<guid isPermaLink="false">http://geekbrigade.wordpress.com/?p=42</guid>
		<description><![CDATA[There are two methods to deploy an application in tomcat 1- Deploy the application in webapps directory directly under tomcat directory. Put the .war file of project in webapp directory and restart tomcat. 2- You have a working project with correct directory structure anywhere on filesystem and you want to deploy that without moving it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=42&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are two methods to deploy an application in tomcat</p>
<p><span style="color:#0000ff;"><strong>1- Deploy the application in </strong><strong><em>webapps</em> directory directly under tomcat directory.</strong></span></p>
<p>Put the .war file of project in webapp directory and restart tomcat.</p>
<p><span style="color:#0000ff;"><strong>2- You have a working project with correct directory structure anywhere on filesystem and you want to deploy that without moving it to <em>webapps </em></strong><strong>directory.</strong></span></p>
<p>But I don&#8217;t wanna create a war file then putting it in webapps directory and later on whenever I make a change I&#8217;ll have to deploy it again.</p>
<p><span id="more-42"></span></p>
<p>To overcome this issue do the following</p>
<p>2.1- Go to tomcat directory</p>
<p>2.2- Then go to tomcat_home/conf/Catalina/localhost directory</p>
<p><em><strong>Note: </strong>sometimes<strong> Catalina/localhost </strong>directory structure does not exit. If this is case then first create Catalina direcoty  and then inside Catalina create localhost directorie.</em></p>
<p>2.3- Create an xml file. Give it a name. This name will be used to access the application from URL. In my case I name it <em>adbank.xml</em> and in the URL for my application is</p>
<p>http://localhost:8080/adbank</p>
<p>2.4- Add the following line in this xml file</p>
<pre><code>&lt;Context path="/AdBlast" docBase="/home/baig/Workspace-AdBlast/AdBank/webapp/webroot" debug="0" reloadable="true"/&gt;</code></pre>
<p>path: provide any name(I personally don&#8217;t know its functionality but the path did not matte for me)</p>
<p>docBase: provide the path to you project. I had a few problems with it, I solved it when I provided the path up to the directory where my project&#8217;s WEB-INF directory is placed.</p>
<p>2.4- Restart tomcat</p>
<p>2.4- Access you application with a URL similar to this one</p>
<p>http://localhost:8080/adbank</p>
<p><em>replace adbank with the name of your xml file.</em></p>
<h2><span style="color:#0000ff;"><em>More information </em></span></h2>
<p><em>http://www.cs.ucl.ac.uk/teaching/java/tomcatfaq.html<br />
</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geekbrigade.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geekbrigade.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geekbrigade.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geekbrigade.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/geekbrigade.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/geekbrigade.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/geekbrigade.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/geekbrigade.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geekbrigade.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geekbrigade.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geekbrigade.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geekbrigade.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geekbrigade.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geekbrigade.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geekbrigade.wordpress.com&amp;blog=6569477&amp;post=42&amp;subd=geekbrigade&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://geekbrigade.wordpress.com/2009/04/07/how-to-deploy-web-project-on-tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f08dd8479b8d23075ae4d90993d907a2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Meter Down</media:title>
		</media:content>
	</item>
	</channel>
</rss>
