<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - arunpjohny</title>
<link>http://snipplr.com/users/arunpjohny</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 01 Dec 2008 11:17:33 GMT</pubDate>
<item>
<title>(JavaScript) Extjs Panel Drag and Drop</title>
<link>http://snipplr.com/view/9089/extjs-panel-drag-and-drop/</link>
<description><![CDATA[ <p>This example gives a idea about how to create a simple panel which can be dragged and dropped into another panel</p> ]]></description>
<pubDate>Sat, 18 Oct 2008 00:04:00 GMT</pubDate>
<guid>http://snipplr.com/view/9089/extjs-panel-drag-and-drop/</guid>
</item>
<item>
<title>(JavaScript) Extjs CheckboxSelectionModel keepExisting</title>
<link>http://snipplr.com/view/8024/extjs-checkboxselectionmodel-keepexisting/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 25 Aug 2008 22:59:22 GMT</pubDate>
<guid>http://snipplr.com/view/8024/extjs-checkboxselectionmodel-keepexisting/</guid>
</item>
<item>
<title>(JavaScript) Grid row colouring</title>
<link>http://snipplr.com/view/5638/grid-row-colouring/</link>
<description><![CDATA[ <p>getRowClass changes the row CSS properties its applied for, but inside a row each cell element will have its own CSS class again.</p> ]]></description>
<pubDate>Mon, 31 Mar 2008 22:32:47 GMT</pubDate>
<guid>http://snipplr.com/view/5638/grid-row-colouring/</guid>
</item>
<item>
<title>(Other) Find files that contain a text string</title>
<link>http://snipplr.com/view/5478/find-files-that-contain-a-text-string/</link>
<description><![CDATA[ <p>The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r descends into subdirectories.</p> ]]></description>
<pubDate>Tue, 18 Mar 2008 09:01:44 GMT</pubDate>
<guid>http://snipplr.com/view/5478/find-files-that-contain-a-text-string/</guid>
</item>
<item>
<title>(JavaScript) Get/set Cursor In Html TextArea</title>
<link>http://snipplr.com/view/5144/getset-cursor-in-html-textarea/</link>
<description><![CDATA[ <p>I got this code from http://blog.vishalon.net/Post/57.aspx


The actual two methods required are

function doGetCaretPosition (ctrl) {
	var CaretPos = 0;
	// IE Support
	if (document.selection) {
		ctrl.focus ();
		var Sel = document.selection.createRange ();
		Sel.moveStart ('character', -ctrl.value.length);
		CaretPos = Sel.text.length;
	}
	// Firefox support
	else if (ctrl.selectionStart || ctrl.selectionStart == '0')
		CaretPos = ctrl.selectionStart;
	return (CaretPos);
}

function setCaretPosition(ctrl, pos)
{
	if(ctrl.setSelectionRange)
	{
		ctrl.focus();
		ctrl.setSelectionRange(pos,pos);
	}
	else if (ctrl.createTextRange) {
		var range = ctrl.createTextRange();
		range.collapse(true);
		range.moveEnd('character', pos);
		range.moveStart('character', pos);
		range.select();
	}
}</p> ]]></description>
<pubDate>Thu, 21 Feb 2008 07:27:52 GMT</pubDate>
<guid>http://snipplr.com/view/5144/getset-cursor-in-html-textarea/</guid>
</item>
<item>
<title>(Other) Disable running tests during build</title>
<link>http://snipplr.com/view/4940/disable-running-tests-during-build/</link>
<description><![CDATA[ <p>Property skip will skip both compilation and execution of tests.
Property skipTests   will compile tests but will skip executing them</p> ]]></description>
<pubDate>Thu, 07 Feb 2008 22:32:35 GMT</pubDate>
<guid>http://snipplr.com/view/4940/disable-running-tests-during-build/</guid>
</item>
<item>
<title>(Other) Setting compiler version to Java5 in maven2</title>
<link>http://snipplr.com/view/4939/setting-compiler-version-to-java5-in-maven2/</link>
<description><![CDATA[ <p>This is used to set the compiler version to Java5 in maven2. We can put this in pom.xml, in the profile section. 

If we activate this profile, all the  projects we build will follow Java5 compilation</p> ]]></description>
<pubDate>Thu, 07 Feb 2008 22:18:56 GMT</pubDate>
<guid>http://snipplr.com/view/4939/setting-compiler-version-to-java5-in-maven2/</guid>
</item>
<item>
<title>(Other) Setting plugins properties in maven2</title>
<link>http://snipplr.com/view/4938/setting-plugins-properties-in-maven2/</link>
<description><![CDATA[ <p>Setting any property value for a maven plugin in pom.xml.

This configuration is used to set the compilation version to java5</p> ]]></description>
<pubDate>Thu, 07 Feb 2008 22:12:44 GMT</pubDate>
<guid>http://snipplr.com/view/4938/setting-plugins-properties-in-maven2/</guid>
</item>
<item>
<title>(Other) Check out project from cvs branch</title>
<link>http://snipplr.com/view/4275/check-out-project-from-cvs-branch/</link>
<description><![CDATA[ <p>Check out a project from cvs branch.

The scm section of the pom.xml will contain tag name</p> ]]></description>
<pubDate>Thu, 06 Dec 2007 08:12:37 GMT</pubDate>
<guid>http://snipplr.com/view/4275/check-out-project-from-cvs-branch/</guid>
</item>
<item>
<title>(SQL) add plpgsql support in postgresql(Linux)</title>
<link>http://snipplr.com/view/4258/add-plpgsql-support-in-postgresqllinux/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 04 Dec 2007 04:03:12 GMT</pubDate>
<guid>http://snipplr.com/view/4258/add-plpgsql-support-in-postgresqllinux/</guid>
</item>
<item>
<title>(JavaScript) ext js BorderLayout</title>
<link>http://snipplr.com/view/4213/ext-js-borderlayout/</link>
<description><![CDATA[ <p>version ext-2.0-rc1.
Dependencies
   ext-all-debug.js
   ext-yui-adapter.js
   ext-all.css</p> ]]></description>
<pubDate>Thu, 29 Nov 2007 07:11:05 GMT</pubDate>
<guid>http://snipplr.com/view/4213/ext-js-borderlayout/</guid>
</item>
<item>
<title>(SQL) Restore postgres backup file(dumpall)</title>
<link>http://snipplr.com/view/4162/restore-postgres-backup-filedumpall/</link>
<description><![CDATA[ <p>Restore a postgres backup file created using pg_dumpall command.

Login as postgres user</p> ]]></description>
<pubDate>Mon, 19 Nov 2007 22:48:10 GMT</pubDate>
<guid>http://snipplr.com/view/4162/restore-postgres-backup-filedumpall/</guid>
</item>
<item>
<title>(SQL) Posgres backups in linux</title>
<link>http://snipplr.com/view/4161/posgres-backups-in-linux/</link>
<description><![CDATA[ <p>Login as postgres user and try this command.

It will create a backup of entire data directory</p> ]]></description>
<pubDate>Mon, 19 Nov 2007 22:38:32 GMT</pubDate>
<guid>http://snipplr.com/view/4161/posgres-backups-in-linux/</guid>
</item>
<item>
<title>(SQL) Get the last date a given month</title>
<link>http://snipplr.com/view/3936/get-the-last-date-a-given-month/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 19 Oct 2007 04:27:09 GMT</pubDate>
<guid>http://snipplr.com/view/3936/get-the-last-date-a-given-month/</guid>
</item>
<item>
<title>(SQL) Add a interval to a given date in postgresql</title>
<link>http://snipplr.com/view/3935/add-a-interval-to-a-given-date-in-postgresql/</link>
<description><![CDATA[ <p>Add a given interval to a date. The intervals can be year, month or day</p> ]]></description>
<pubDate>Fri, 19 Oct 2007 04:26:27 GMT</pubDate>
<guid>http://snipplr.com/view/3935/add-a-interval-to-a-given-date-in-postgresql/</guid>
</item>
<item>
<title>(SQL) Get name of the weekday of a date in Postgresql</title>
<link>http://snipplr.com/view/3918/get-name-of-the-weekday-of-a-date-in-postgresql/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 16 Oct 2007 22:45:41 GMT</pubDate>
<guid>http://snipplr.com/view/3918/get-name-of-the-weekday-of-a-date-in-postgresql/</guid>
</item>
<item>
<title>(SQL) Function to get year from a date in Postgresql</title>
<link>http://snipplr.com/view/3917/function-to-get-year-from-a-date-in-postgresql/</link>
<description><![CDATA[ <p>This kind of functions will be use full if we are migrating a database from one provider to another like from MS SQL Server to Postgresql.</p> ]]></description>
<pubDate>Tue, 16 Oct 2007 22:44:10 GMT</pubDate>
<guid>http://snipplr.com/view/3917/function-to-get-year-from-a-date-in-postgresql/</guid>
</item>
<item>
<title>(SQL) Difference between two dates in Postgresql</title>
<link>http://snipplr.com/view/3916/difference-between-two-dates-in-postgresql/</link>
<description><![CDATA[ <p>Getting the difference between two dates in Postgresql. The difference can be in days, months or years.

For difference in days, months or years pass day, month or year as the first argument</p> ]]></description>
<pubDate>Tue, 16 Oct 2007 22:40:34 GMT</pubDate>
<guid>http://snipplr.com/view/3916/difference-between-two-dates-in-postgresql/</guid>
</item>
<item>
<title>(Other) Getting HTTP Request properties and attributes in freemarker template</title>
<link>http://snipplr.com/view/3911/getting-http-request-properties-and-attributes-in-freemarker-template/</link>
<description><![CDATA[ <p>The Request and RequestParameters are two Hashes provided by freemarker, it will be available in all templates</p> ]]></description>
<pubDate>Tue, 16 Oct 2007 03:31:52 GMT</pubDate>
<guid>http://snipplr.com/view/3911/getting-http-request-properties-and-attributes-in-freemarker-template/</guid>
</item>
<item>
<title>(SQL) Postgresql : Alter the datatype of a column</title>
<link>http://snipplr.com/view/3793/postgresql--alter-the-datatype-of-a-column/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 26 Sep 2007 22:42:51 GMT</pubDate>
<guid>http://snipplr.com/view/3793/postgresql--alter-the-datatype-of-a-column/</guid>
</item>
</channel>
</rss>