<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9021762670508687958</id><updated>2011-11-27T15:49:48.920-08:00</updated><category term='linux'/><category term='apache'/><category term='srikar'/><category term='cadaver'/><category term='smtp'/><category term='continuous integration'/><category term='design patterns'/><category term='java'/><category term='mysql'/><category term='derby'/><category term='webdav'/><category term='web frameworks'/><category term='glassfish'/><category term='syntaxhightlighter'/><category term='maven'/><category term='ssh'/><category term='music'/><category term='hudson'/><category term='microsoft exchange'/><category term='db2'/><category term='msaccess'/><category term='oracle'/><category term='fop'/><category term='sqlserver'/><category term='hsqldb'/><category term='icefaces'/><category term='blackberry'/><category term='css'/><category term='as400'/><category term='sql'/><category term='unix'/><category term='jboss'/><category term='samba'/><category term='carnatic'/><category term='ubuntu'/><category term='piano'/><category term='timestamp'/><category term='solaris'/><category term='J2EE'/><category term='wget'/><category term='rant'/><title type='text'>Sarat Dontula</title><subtitle type='html'>Software Notes</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>45</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-470537474439154241</id><published>2011-02-10T14:39:00.000-08:00</published><updated>2011-02-10T14:40:17.514-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='design patterns'/><title type='text'>Design patterns in jdk. Nice Post.</title><content type='html'>http://www.briandupreez.net/2010/11/design-patterns-in-jdk.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-470537474439154241?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/470537474439154241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=470537474439154241' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/470537474439154241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/470537474439154241'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2011/02/design-patterns-in-jdk-nice-post.html' title='Design patterns in jdk. Nice Post.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-8223753547917214453</id><published>2010-02-04T09:35:00.000-08:00</published><updated>2010-12-02T10:38:08.201-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Maven</title><content type='html'>UPDATE VERSION NUMBERS IN MULTI MODULE PROJECT:- mvn -e release:update-versions -DautoVersionSubmodules=true&lt;br /&gt;&lt;br /&gt;View Super POM via effective-pom:- mvn help:effective-pom&lt;br /&gt;Maven has:- Lifecycles, Phases, Plugins and Goals.&lt;br /&gt;&lt;br /&gt;mvn deploy : deploy is a lifecycle. Which has phases verification, compilation, testing and packaging.&lt;br /&gt;&lt;br /&gt;Executing phase or goal: mvn compile:compile jar:jar&lt;br /&gt;&lt;br /&gt;Prepare your project to go offline: mvn dependency:go-offline&lt;br /&gt;&lt;br /&gt;Go offline: mvn &lt;phase or goal&gt; -o&lt;br /&gt;&lt;br /&gt;Help for plugin:- mvn help:describe –D&lt;pluginname&gt;&lt;br /&gt;Ex:- mvn help:describe -Dplugin=help -Dfull&lt;br /&gt;&lt;br /&gt;Help for profiles:- mvn help:active-profiles&lt;br /&gt;&lt;br /&gt;List hierarchy of dependencies:-  mvn dependency:tree&lt;br /&gt;&lt;br /&gt;List dependencies in alphabetic form:- mvn dependency:resolve&lt;br /&gt;&lt;br /&gt;List plugin dependencies in alphabetic form:- mvn dependency:resolve-plugins&lt;br /&gt;&lt;br /&gt;Analyze dependencies and list any that are unused, or undeclared.:- mvn dependency:analyze&lt;br /&gt;&lt;br /&gt;Printing exception stack trace for a goal:- mvn &lt;yourgoal&gt; -e&lt;br /&gt;&lt;br /&gt;Output debugging info for a goal:- mvn &lt;yourgoal&gt; -X&lt;br /&gt;&lt;br /&gt;Debugging a unit test:- mvn test -Dmaven.surefire.debug&lt;br /&gt;&lt;br /&gt;Manual Profile activation:- mvn &lt;yourgoal&gt; –P YourProfile&lt;br /&gt;&lt;br /&gt;Release using maven:- mvn release:perform&lt;br /&gt;&lt;br /&gt;Creating archetype from project:- mvn archetype:create-from-project&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-8223753547917214453?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/8223753547917214453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=8223753547917214453' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8223753547917214453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8223753547917214453'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2010/02/maven.html' title='Maven'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-1537716184057657522</id><published>2009-07-31T13:08:00.000-07:00</published><updated>2009-07-31T13:09:56.644-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><title type='text'>wget with basic authentication.</title><content type='html'>Here's how you download a file from internet which is secured by basic authentication. Replace myusername, mypassword with your own username and password.&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" language="java"&gt;&lt;br /&gt;wget http://download_file --http-user=myusername --http-passwd=mypassword&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-1537716184057657522?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/1537716184057657522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=1537716184057657522' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/1537716184057657522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/1537716184057657522'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/07/wget-with-basic-authentication.html' title='wget with basic authentication.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-7448958310185871503</id><published>2009-07-29T18:13:00.000-07:00</published><updated>2009-07-29T18:17:07.604-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hudson'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='continuous integration'/><title type='text'>Hudson init script for Ubuntu 9.04</title><content type='html'>Hudson init script for ubuntu 9.04. This is available on hudson's website too. &lt;br /&gt;&lt;br /&gt;http://wiki.hudson-ci.org/display/HUDSON/Installation+and+Execution&lt;br /&gt;&lt;br /&gt;This is what worked for me. The one hudson website is for linux. This you can use as is without modifications (except for "RUN_AS") on ubuntu&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;DESC="Hudson CI Server "&lt;br /&gt;NAME=hudson&lt;br /&gt;PIDFILE=/var/run/$NAME.pid&lt;br /&gt;RUN_AS=sysadm&lt;br /&gt;&lt;br /&gt;d_start() {&lt;br /&gt; start-stop-daemon --start --quiet --background -m --pidfile $PIDFILE --chuid $RUN_AS --exec /usr/bin/java -- -Dhudson.scm.CVSSCM.skipChangeLog=true -jar /opt/hudson/hudson.war&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;d_stop() {&lt;br /&gt; start-stop-daemon --stop --quiet --pidfile $PIDFILE&lt;br /&gt; if [ -e $PIDFILE ]&lt;br /&gt;  then rm $PIDFILE&lt;br /&gt; fi&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;case $1 in&lt;br /&gt; start)&lt;br /&gt; echo -n "Starting $DESC: $NAME "&lt;br /&gt; d_start&lt;br /&gt; echo "."&lt;br /&gt; ;;&lt;br /&gt; stop)&lt;br /&gt; echo -n "Stopping $DESC: $NAME "&lt;br /&gt; d_stop&lt;br /&gt; echo "."&lt;br /&gt; ;;&lt;br /&gt; restart)&lt;br /&gt; echo -n "Restarting $DESC: $NAME "&lt;br /&gt; d_stop&lt;br /&gt; sleep 1&lt;br /&gt; d_start&lt;br /&gt; echo "."&lt;br /&gt; ;;&lt;br /&gt; *)&lt;br /&gt; echo "usage: $NAME {start|stop|restart}"&lt;br /&gt; exit 1&lt;br /&gt; ;;&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;exit 0&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-7448958310185871503?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/7448958310185871503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=7448958310185871503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/7448958310185871503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/7448958310185871503'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/07/hudson-init-script-for-ubuntu-904.html' title='Hudson init script for Ubuntu 9.04'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-4475623749335970804</id><published>2009-07-29T18:06:00.000-07:00</published><updated>2009-07-29T18:10:45.963-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><title type='text'>SSH without Password</title><content type='html'>I got information from this site&lt;br /&gt;&lt;br /&gt;http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html &lt;br /&gt;&lt;br /&gt;SSH Without a Password&lt;br /&gt;&lt;br /&gt;The following steps can be used to ssh from one system to another without specifying a password.&lt;br /&gt;Notes:&lt;br /&gt;&lt;br /&gt;* The system from which the ssh session is started via the ssh command is the client.&lt;br /&gt;* The system that the ssh session connects to is the server.&lt;br /&gt;* These steps seem to work on systems running OpenSSH.&lt;br /&gt;* The steps assume that a DSA key is being used. To use a RSA key substitute 'rsa' for 'dsa'.&lt;br /&gt;* The steps assume that you are using a Bourne-like shell (sh, ksh or bash)&lt;br /&gt;* Some of this information came from:&lt;br /&gt;http://www.der-keiler.de/Mailing-Lists/securityfocus/Secure_Shell/2002-12/0083.html&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;&lt;br /&gt;1.&lt;br /&gt;&lt;br /&gt;On the client run the following commands:&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;$ mkdir -p $HOME/.ssh&lt;br /&gt;$ chmod 0700 $HOME/.ssh&lt;br /&gt;$ ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P ''&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This should result in two files, &lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;$HOME/.ssh/id_dsa (private key) and &lt;br /&gt;$HOME/.ssh/id_dsa.pub (public key).&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;2.&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;Copy $HOME/.ssh/id_dsa.pub to the server.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;3.&lt;br /&gt;&lt;br /&gt;On the server run the following commands:&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;$ cat id_dsa.pub &gt;&gt; $HOME/.ssh/authorized_keys2&lt;br /&gt;$ chmod 0600 $HOME/.ssh/authorized_keys2&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Depending on the version of OpenSSH the following commands may also be required:&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;$ cat id_dsa.pub &gt;&gt; $HOME/.ssh/authorized_keys&lt;br /&gt;$ chmod 0600 $HOME/.ssh/authorized_keys&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;An alternative is to create a link from authorized_keys2 to authorized_keys:&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;$ cd $HOME/.ssh &amp;&amp; ln -s authorized_keys2 authorized_keys&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;4.&lt;br /&gt;&lt;br /&gt;On the client test the results by ssh'ing to the server:&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;$ ssh -i $HOME/.ssh/id_dsa server&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5.&lt;br /&gt;&lt;br /&gt;(Optional) Add the following $HOME/.ssh/config on the client:&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;Host server&lt;br /&gt;IdentityFile ~/.ssh/id_dsa&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This allows ssh access to the server without having to specify the path to the id_dsa file as an argument to ssh each time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-4475623749335970804?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/4475623749335970804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=4475623749335970804' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/4475623749335970804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/4475623749335970804'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/07/ssh-without-password.html' title='SSH without Password'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-3111082938501292194</id><published>2009-07-29T17:10:00.000-07:00</published><updated>2009-07-29T18:12:28.966-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hudson'/><category scheme='http://www.blogger.com/atom/ns#' term='continuous integration'/><title type='text'>HUDSON: THINGS TO REMEMBER [Skip Change Log]</title><content type='html'>While starting hudson use:&lt;br /&gt;&lt;pre&gt;java -Dhudson.scm.CVSSCM.skipChangeLog=&lt;span class="java-keyword"&gt;true&lt;/span&gt; -jar hudson.war&lt;br /&gt;&lt;br /&gt;This makes sure that hudson skips computing change log. Computing change log option is&lt;br /&gt;slow for one thing and caused a lot of problems while I was setting it up in our projects.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-3111082938501292194?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/3111082938501292194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=3111082938501292194' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/3111082938501292194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/3111082938501292194'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/07/hudson-things-to-remember.html' title='HUDSON: THINGS TO REMEMBER [Skip Change Log]'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-4632306501965857049</id><published>2009-07-11T12:17:00.000-07:00</published><updated>2009-07-11T12:20:59.993-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='music'/><category scheme='http://www.blogger.com/atom/ns#' term='carnatic'/><title type='text'>Carnatic Music Website.</title><content type='html'>&lt;a href="http://www.ecse.rpi.edu/Homepages/shivkuma/personal/music/index.html"&gt;&lt;u&gt;http://www.ecse.rpi.edu/Homepages/shivkuma/personal/music/index.html&lt;/u&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;p&gt;Professor Shiv Kumar Kalyanaraman's carnatic music archive. Wonderful website for carnatic music.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-4632306501965857049?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/4632306501965857049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=4632306501965857049' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/4632306501965857049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/4632306501965857049'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/07/carnatic-music-website.html' title='Carnatic Music Website.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-2409055021837908494</id><published>2009-06-29T08:45:00.000-07:00</published><updated>2009-06-29T08:46:16.374-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><title type='text'>Move sqlserver tables to dbo user</title><content type='html'>SELECT 'ALTER SCHEMA dbo TRANSFER ' + SCHEMA_NAME(schema_id) + '.' + name&lt;br /&gt;FROM sys.tables&lt;br /&gt;WHERE schema_id != SCHEMA_ID('dbo');&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-2409055021837908494?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/2409055021837908494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=2409055021837908494' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2409055021837908494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2409055021837908494'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/move-sqlserver-tables-to-dbo-user.html' title='Move sqlserver tables to dbo user'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-2590710202323639453</id><published>2009-06-21T22:18:00.000-07:00</published><updated>2009-06-21T22:24:41.018-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='glassfish'/><category scheme='http://www.blogger.com/atom/ns#' term='derby'/><title type='text'>Starting JavaDB (Derby) in glassfish.</title><content type='html'>I was following sahoo's Blog for creating an enterprise application with ejb3.0.&lt;br /&gt;http://weblogs.java.net/blog/ss141213/archive/2005/12/using_java_pers.html&lt;br /&gt;&lt;br /&gt;Ran into problem since JavaDB isn't started automatically when glassfish starts. &lt;br /&gt;&lt;br /&gt;Error was  "Error connecting to server localhost on port 1527 with message Connection refused: connect."&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Solution:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You will have to issue below command to start derby database:&lt;br /&gt;&lt;br /&gt;GlassFishHome/bin/&gt; asadmin start-database&lt;br /&gt;&lt;br /&gt;Hope this helps someone having similar issues.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-2590710202323639453?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/2590710202323639453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=2590710202323639453' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2590710202323639453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2590710202323639453'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/starting-javadb-derby-in-glassfish.html' title='Starting JavaDB (Derby) in glassfish.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-27038183629953105</id><published>2009-06-20T11:44:00.000-07:00</published><updated>2009-06-20T11:46:18.133-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Samba File Sharing Ubuntu</title><content type='html'>SSH server is disabled by default in ubuntu. From package manager select &amp;amp; install ssh-server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Samba File Sharing:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Setup up username &amp;amp; password:&lt;br /&gt;smbpasswd -a &lt;username&gt;&lt;br /&gt;you'll be prompted to set the password.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Restart Samba service to take effect: [Just for good measure]&lt;/span&gt;&lt;br /&gt;sudo /etc/init.d/samba restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-27038183629953105?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/27038183629953105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=27038183629953105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/27038183629953105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/27038183629953105'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/samba-file-sharing-ubuntu.html' title='Samba File Sharing Ubuntu'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-9162891181746451319</id><published>2009-06-20T11:42:00.000-07:00</published><updated>2009-06-20T11:44:18.751-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>UBUNTU setting up environment variables.</title><content type='html'>Use file  /etc/bash.bashrc  to setup new environment variables.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Do not use: /etc/profile&lt;br /&gt;Do not use: /etc/environment file might work too.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Procedure:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Edit: /etc/bash.bashrc&lt;br /&gt;2. Add this line to the end of the file. This sets JAVA_HOME&lt;br /&gt;&lt;br /&gt;export JAVA_HOME=/usr/lib/j2sdk1.5-sun/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-9162891181746451319?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/9162891181746451319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=9162891181746451319' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/9162891181746451319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/9162891181746451319'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/ubuntu-setting-up-environment-variables.html' title='UBUNTU setting up environment variables.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-3152320849677960161</id><published>2009-06-20T11:34:00.000-07:00</published><updated>2009-06-20T11:41:31.172-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='solaris'/><title type='text'>Linux helpful commands</title><content type='html'>&lt;span style="font-weight: bold;"&gt;List of processes: &lt;/span&gt;&lt;br /&gt;Solaris stats: prstat&lt;br /&gt;Redhat stats:  top&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;COMMON:&lt;/span&gt;&lt;br /&gt;more /proc/version  --- To see which version of linux&lt;br /&gt;cat /proc/cpuinfo&lt;br /&gt;cat /proc/meminfo&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Creating symbolic link (shortcut in *unix) :&lt;/span&gt;&lt;br /&gt;ln            -s           file_name            &lt;actual_file&gt;&lt;shortcut_name&gt;shortcutname&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Placing java in your path:&lt;/span&gt;&lt;br /&gt;create link to the version of java into /usr/bin&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Linux Runlevels:&lt;/span&gt;&lt;br /&gt;who -r (gives run level of the system)&lt;br /&gt;vi \etc\inittab (shows you the runlevel system is starting)&lt;br /&gt;&lt;br /&gt;cd \etc\rc5.d (start up scripts for run level 5. K's represent donot start. S's represent start)&lt;br /&gt;cd \etc\rc3.d (start up scripts for run level 5. K's represent donot start. S's represent start)&lt;br /&gt;mv K36mysqld S36mysqld&lt;br /&gt;&lt;br /&gt;ln -s ../init.d/jboss S36Jboss&lt;br /&gt;mv S36Jboss K36Jboss&lt;br /&gt;rm K36Jboss&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;WGET: [Connect to internet and download a file]&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;wget http://download_file_url&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/shortcut_name&gt;&lt;/actual_file&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-3152320849677960161?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/3152320849677960161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=3152320849677960161' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/3152320849677960161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/3152320849677960161'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/linux-helpful-commands.html' title='Linux helpful commands'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-5779311400585398035</id><published>2009-06-20T11:29:00.000-07:00</published><updated>2009-06-20T13:45:05.659-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='msaccess'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='db2'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>SQL to drop an index on table.</title><content type='html'>&lt;span style="font-weight: bold;"&gt;SQLServer:&lt;/span&gt;&lt;br /&gt;DROP INDEX address.ix_address_loc;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; Syntax for Microsoft SQLJet (and Microsoft Access):&lt;/span&gt;&lt;br /&gt;DROP INDEX index_name ON table_name&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Syntax for IBM DB2 and Oracle:&lt;/span&gt;&lt;br /&gt;DROP INDEX index_name&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; Syntax for MySQL:&lt;/span&gt;&lt;br /&gt;ALTER TABLE table_name DROP INDEX index_name&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-5779311400585398035?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/5779311400585398035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=5779311400585398035' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/5779311400585398035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/5779311400585398035'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/sql-drop-index-on-table.html' title='SQL to drop an index on table.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-8648807556558682141</id><published>2009-06-20T11:27:00.000-07:00</published><updated>2009-06-20T13:45:39.632-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><title type='text'>SQL for alter column</title><content type='html'>Sqlserver:&lt;br /&gt;&lt;br /&gt;alter table customer alter column customer_name varchar(50);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-8648807556558682141?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/8648807556558682141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=8648807556558682141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8648807556558682141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8648807556558682141'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/alter-table-alter-column-syntax.html' title='SQL for alter column'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-7203547995128137740</id><published>2009-06-20T11:25:00.000-07:00</published><updated>2009-06-20T11:26:10.849-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='timestamp'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Oracle Timestamp</title><content type='html'>update customer set timestamp=to_date('1998/05/31:12:00:00AM', 'yyyy/mm/dd:hh:mi:ssam') where customer_id=48303&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;More Info:&lt;/span&gt;&lt;br /&gt;http://infolab.stanford.edu/~ullman/fcdb/oracle/or-time.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-7203547995128137740?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/7203547995128137740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=7203547995128137740' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/7203547995128137740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/7203547995128137740'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/oracle-timestamp.html' title='Oracle Timestamp'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-5018301433582665126</id><published>2009-06-20T11:23:00.000-07:00</published><updated>2009-06-20T11:25:11.875-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='timestamp'/><category scheme='http://www.blogger.com/atom/ns#' term='as400'/><title type='text'>DB2 Timestamp</title><content type='html'>&lt;span style="font-weight: bold;"&gt;SELECT STATEMENT:&lt;/span&gt;&lt;br /&gt;select count(*) from customer where timestamp &gt;='2010-01-01-00.00.00';&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;UPDATE (OR) INSERT STATEMENT:&lt;/span&gt;&lt;br /&gt;update customer set timestamp=('2011-01-01-00.00.01.000000') where timestamp='2010-01-01-00.00.00';&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-5018301433582665126?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/5018301433582665126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=5018301433582665126' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/5018301433582665126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/5018301433582665126'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/db2-timestamp.html' title='DB2 Timestamp'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-5593216795176082234</id><published>2009-06-20T11:19:00.000-07:00</published><updated>2009-06-20T11:22:12.112-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='timestamp'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><title type='text'>Sql Server timestamp field</title><content type='html'>&lt;span style="font-weight: bold;"&gt;INSERT (OR) UPDATE STATEMENTS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;insert into customer (customer_id,timestamp) values (17982698, '2005-10-17T00:00:00.0');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SELECT STATEMENTS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;select count(*) from customer where timestamp &gt;= convert(datetime, '2006/10/01') and issue_date &lt;=convert(datetime, '2007/09/30');&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-5593216795176082234?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/5593216795176082234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=5593216795176082234' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/5593216795176082234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/5593216795176082234'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/sql-server-timestamp-field.html' title='Sql Server timestamp field'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-1626308042495952329</id><published>2009-06-20T11:16:00.000-07:00</published><updated>2009-06-20T11:22:57.285-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='timestamp'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><category scheme='http://www.blogger.com/atom/ns#' term='db2'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Sql Current Timestamp.</title><content type='html'>For mysql, sqlserver, even db2 : current_timestamp&lt;br /&gt;&lt;br /&gt;For oracle: sysdate&lt;br /&gt;&lt;br /&gt;For mysql (one more function): now()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-1626308042495952329?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/1626308042495952329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=1626308042495952329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/1626308042495952329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/1626308042495952329'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/sql-current-timestamp.html' title='Sql Current Timestamp.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-7542229227072168960</id><published>2009-06-20T11:11:00.000-07:00</published><updated>2009-06-20T11:13:47.942-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>MySQL mysqldump tablename.MYD not found (Errcode: 24) when using LOCK TABLES</title><content type='html'>In mysql 4.1 --opt option of mysqldump was made default.&lt;br /&gt;&lt;br /&gt;This makes mysql to LOCK TABLES.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SOLUTION:&lt;/span&gt;&lt;br /&gt;Use --skip-lock-tables to disable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-7542229227072168960?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/7542229227072168960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=7542229227072168960' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/7542229227072168960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/7542229227072168960'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/mysql-mysqldump-tablenamemyd-not-found.html' title='MySQL mysqldump tablename.MYD not found (Errcode: 24) when using LOCK TABLES'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-8992764801237003383</id><published>2009-06-20T11:06:00.000-07:00</published><updated>2009-06-20T11:10:25.672-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Creating MySql Database &amp; Setting up users.</title><content type='html'>Creating mysql Datbase:&lt;br /&gt;1. At mysql command prompt issue command&lt;br /&gt;&lt;br /&gt;create database &lt;&lt;database_name&gt;&gt;;&lt;br /&gt;&lt;br /&gt;2. Giving all users access to all the datbases from the server.&lt;br /&gt;&lt;br /&gt;GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost' IDENTIFIED BY 'some_pass' WITH GRANT OPTION;&lt;br /&gt;&lt;br /&gt;3. Giving all users access to all the datbases from remote machines. '%' in the query signifies that.&lt;br /&gt;&lt;br /&gt;GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' IDENTIFIED BY 'some_pass' WITH GRANT OPTION;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. VERY VERY IMPORTANT DO NOT FORGET:&lt;/span&gt;&lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;&lt;/database_name&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-8992764801237003383?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/8992764801237003383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=8992764801237003383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8992764801237003383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8992764801237003383'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/creating-mysql-database-setting-up.html' title='Creating MySql Database &amp; Setting up users.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-5483174906666693721</id><published>2009-06-20T10:56:00.000-07:00</published><updated>2009-06-20T11:04:00.188-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>LINUX MYSQL GOTCHAS</title><content type='html'>1. bind-address : If your server's ip doesn't change. Might want to make it your server's ip address. Just makes it easier to troubleshoot connectivity issues.&lt;br /&gt;&lt;br /&gt;2. Have to have this under mysqld  [this disables mysql's case sensitivity. This is only a feature on *unix operating systems. Telling you it can be quite annoying...]&lt;br /&gt;lower_case_table_names = 1&lt;br /&gt;&lt;br /&gt;Other key parameters under [mysqld] which can be quite handy. &lt;br /&gt;&lt;br /&gt;key_buffer  = 128M&lt;br /&gt;max_allowed_packet = 5GB&lt;br /&gt;transaction_isolation = READ-UNCOMMITTED  [Especially when working with some persistence middleware provider like ejb2.1 app servers.]&lt;br /&gt;&lt;br /&gt;3. /etc/mysql/my.cnf - Location of configuration file&lt;br /&gt;&lt;br /&gt;4. /etc/init.d/mysql start  - Starts mysql&lt;br /&gt;5. /etc/init.d/mysql stop - Stops mysql&lt;br /&gt;6. /etc/init.d/mysql restart - Restarts mysql.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-5483174906666693721?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/5483174906666693721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=5483174906666693721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/5483174906666693721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/5483174906666693721'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/linux-mysql-gotchas.html' title='LINUX MYSQL GOTCHAS'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-7264572401145000240</id><published>2009-06-20T10:54:00.001-07:00</published><updated>2009-06-20T10:56:01.477-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>How to import and export mysql database?</title><content type='html'>This assumes that mysql is in your classpath. Replace "dbname" in the below command with your own database name.&lt;br /&gt;&lt;br /&gt;mysqldump -u root -p dbname &gt; dump.sql (export)&lt;br /&gt;&lt;br /&gt;mysql -u USER -p dbname &lt; dump.sql     (import)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-7264572401145000240?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/7264572401145000240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=7264572401145000240' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/7264572401145000240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/7264572401145000240'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/06/how-to-import-and-export-mysql-database.html' title='How to import and export mysql database?'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-6818117722684489055</id><published>2009-01-10T11:00:00.001-08:00</published><updated>2009-01-10T11:58:59.268-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='syntaxhightlighter'/><title type='text'>Code Snippet posting in Blogger using Syntax Highlighting</title><content type='html'>Finally able to get code posting in Blogger working.&lt;br /&gt;This url helped me get there &lt;a href="http://blog.gpowered.net/2007/07/howto-post-code.html"&gt;http://blog.gpowered.net/2007/07/howto-post-code.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;public class HelloWorld {&lt;br /&gt;/**&lt;br /&gt;* @Copyright Sarat Dontula :-)&lt;br /&gt;*/&lt;br /&gt;public static void main(String[] args)&lt;br /&gt;{&lt;br /&gt;System.out.println("Hello World");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;What worked for me . In Blogger Layout -&gt; Edit HTML -&gt; After &amp;lt;head&amp;gt; tag place below code. Change the host name.&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="java"&gt;&lt;br /&gt;&amp;lt;link href='http://sdontula.googlepages.com/SyntaxHighlighter.css' rel='stylesheet' type='text/css'/&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Just before &amp;lt;body&amp;gt; place below code&lt;br /&gt;&lt;pre name="code" class="java"&gt; &lt;br /&gt;&amp;lt;script language='javascript' src='http://sdontula.googlepages.com/shCore.js'/&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://sdontula.blogspot.com/shBrushCSharp.js'/&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://sdontula.blogspot.com/shBrushXml.js'/&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://sdontula.blogspot.com/shBrushPython.js'/&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://sdontula.blogspot.com/shBrushXml.js'/&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://sdontula.blogspot.com/shBrushPhp.js'/&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://sdontula.blogspot.com/shBrushJScript.js'/&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://sdontula.googlepages.com/shBrushJava.js'/&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;script language='javascript'&gt;&lt;br /&gt;dp.SyntaxHighlighter.BloggerMode();&lt;br /&gt;dp.SyntaxHighlighter.ClipboardSwf = &amp;#39;/flash/clipboard.swf&amp;#39;;&lt;br /&gt;dp.SyntaxHighlighter.HighlightAll(&amp;#39;code&amp;#39;);&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Again google should make it easy for developers to post code. This is just insane :-(&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-6818117722684489055?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/6818117722684489055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=6818117722684489055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/6818117722684489055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/6818117722684489055'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/01/languagejavascript-srcphpjsdp.html' title='Code Snippet posting in Blogger using Syntax Highlighting'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-3626188147105575884</id><published>2009-01-10T10:17:00.000-08:00</published><updated>2009-01-10T10:22:11.015-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rant'/><category scheme='http://www.blogger.com/atom/ns#' term='syntaxhightlighter'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>Blogger Code Styling &amp; Display.</title><content type='html'>Found below url to style code on blogger.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://rias-techno-wizard.blogspot.com/2008/08/display-css-codes-and-scripts-in-unique.html"&gt;http://rias-techno-wizard.blogspot.com/2008/08/display-css-codes-and-scripts-in-unique.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I tried using syntaxhightlighting from &lt;a href="http://code.google.com/p/syntaxhighlighter/"&gt;http://code.google.com/p/syntaxhighlighter/&lt;/a&gt;  using this blog post &lt;a href="http://www.fromjavatoruby.com/2008/10/ruby-syntax-highlighting-in-blogger.html"&gt;http://www.fromjavatoruby.com/2008/10/ruby-syntax-highlighting-in-blogger.html&lt;/a&gt;  without much luck.&lt;br /&gt;&lt;br /&gt;I tried to host the .js and .css scripts on google page creator. May be google page creator doesn't serve resources if it sees some other domain is requesting it. (Remote Hot Linking). Will have to find out some other way.&lt;br /&gt;&lt;br /&gt;It is crazy that blogger doesn't provide something out of the box to display code snippets. Driving me nuts !!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-3626188147105575884?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/3626188147105575884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=3626188147105575884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/3626188147105575884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/3626188147105575884'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/01/blogger-code-styling-display.html' title='Blogger Code Styling &amp; Display.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-6466604078058220266</id><published>2009-01-09T15:18:00.000-08:00</published><updated>2009-01-10T10:07:04.067-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Apache Redirection</title><content type='html'>Uncomment below three lines in apache/conf/httpd.conf file:&lt;br /&gt;&lt;br /&gt;&lt;div class="codeview"&gt;&lt;br /&gt;LoadModule proxy_module modules/mod_proxy.so&lt;br /&gt;LoadModule proxy_http_module modules/mod_proxy_http.so&lt;br /&gt;LoadModule rewrite_module modules/mod_rewrite.so&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Add below lines lines to httpd.conf:&lt;br /&gt;&lt;br /&gt;&lt;div class="codeview"&gt;&lt;br /&gt;RewriteEngine on&lt;br /&gt;ProxyRequests Off&lt;br /&gt;&lt;proxy&gt;&lt;br /&gt;Order allow,deny&lt;br /&gt;Allow from all&lt;br /&gt;&lt;/proxy&gt;&lt;br /&gt;#Actual Redirection Code Starts&lt;br /&gt;RewriteRule ^/customer-url$ customer-url/ [R]&lt;br /&gt;ProxyPass /customer-url/ http://localhost:8080/customer-url/&lt;br /&gt;ProxyPassReverse /customer-url/ http://localhost:8080/customer-url/&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Above we are making apache accept requests on port 80 for a server which is serving web pages on 8080. It mean http://localhost/customer-url gets it's pages from http://localhost:8080/customer-url .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-6466604078058220266?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/6466604078058220266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=6466604078058220266' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/6466604078058220266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/6466604078058220266'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/01/uncomment-below-three-lines-in.html' title='Apache Redirection'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-9034315500055147101</id><published>2009-01-09T09:20:00.000-08:00</published><updated>2009-01-09T15:36:20.698-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='smtp'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft exchange'/><title type='text'>How to test if a machine has access to the smtp server</title><content type='html'>&lt;pre id="comment_text_8"&gt;This url: &lt;a href="http://support.microsoft.com/kb/304897"&gt;http://support.microsoft.com/kb/304897&lt;/a&gt;&lt;br /&gt;helps us in testing if server&lt;br /&gt;is allowed to relay etc..&lt;br /&gt;&lt;br /&gt;Basically you do:&lt;br /&gt;1. telnet servername port&lt;server-ip&gt;&lt;port&gt;&lt;br /&gt;2. EHLO&lt;br /&gt;3. RSET&lt;br /&gt;&lt;br /&gt;(YOU SHOULD SEE MESSAGE AS A RESULT:&lt;br /&gt;250 2.0.0 Resetting)&lt;br /&gt;&lt;br /&gt;4. MAIL FROM:&lt;a href="mailto:UserName@DomainName.com"&gt;UserName@DomainName.com&lt;/a&gt;&lt;br /&gt;(use an email belonging to the domain)&lt;br /&gt;&lt;br /&gt;5. RCPT TO:&lt;a href="mailto:RecipientName@DomainName.com"&gt;RecipientName@DomainName.com&lt;/a&gt;&lt;br /&gt;(use email belonging to the domain)&lt;br /&gt;&lt;br /&gt;6. QUIT (TO EXIT)&lt;br /&gt;&lt;br /&gt;Above should send out an email without errors.&lt;br /&gt;This should tell us if we can configure email&lt;br /&gt;properly.&lt;br /&gt;&lt;/port&gt;&lt;/server-ip&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-9034315500055147101?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/9034315500055147101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=9034315500055147101' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/9034315500055147101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/9034315500055147101'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2009/01/how-to-test-if-machine-has-access-to.html' title='How to test if a machine has access to the smtp server'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-471212271271120623</id><published>2008-12-18T12:53:00.000-08:00</published><updated>2009-01-10T12:00:02.144-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jboss'/><title type='text'>Installing JBoss as service on Ubuntu</title><content type='html'>Installing JBoss as service on Ubuntu&lt;br /&gt;&lt;a href=" http://chiralsoftware.com/linux-system-administration/jboss-server-deployment.seam"&gt;&lt;br /&gt;http://chiralsoftware.com/linux-system-administration/jboss-server-deployment.seam&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-471212271271120623?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/471212271271120623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=471212271271120623' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/471212271271120623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/471212271271120623'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/installing-jboss-as-service-on-ubuntu.html' title='Installing JBoss as service on Ubuntu'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-2586349715935990480</id><published>2008-12-12T08:16:00.000-08:00</published><updated>2009-01-10T10:09:07.644-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fop'/><title type='text'>Problem fix in fop 0.20. Hard return not recognized.</title><content type='html'>Several days ago we had an issue with fop pdf generator. Fop wasn't recognizing hard returns in user comments and putting all of them in one big giant paragraph. It was an annoying problem.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;In fop-0.93 there is an easy way to fix this problem: &lt;/span&gt;&lt;br /&gt;&amp;lt;fo:block treatment="preserve"&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;For people who are stuck with fop 0.2 like we are have to use below workaround:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I'm using "splitstring" template to parse value from node "Comments" with pattern "hard return" which is represented by &amp;amp;xD . The strings generated by splitting are displayed in their own fo:block, thus preserving hard returns.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Below is the code.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="codeview"&gt;&lt;br /&gt;  &amp;lt;xsl:call-template name="splitstring"&amp;gt;&lt;br /&gt;    &amp;lt;xsl:with-param name="string"&amp;gt;&lt;br /&gt;      &amp;lt;xsl:value-of select="Comments"&amp;gt;&lt;br /&gt;    &amp;lt;/xsl:value-of&amp;gt;&lt;br /&gt;    &amp;lt;xsl:with-param name="pattern"&amp;gt;&lt;br /&gt;      &amp;lt;xsl:value-of select="'&amp;amp;#xD'"&amp;gt;&lt;br /&gt;    &amp;lt;/xsl:value-of&amp;gt;&lt;br /&gt;&amp;lt;/xsl:with-param&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;I found split string function here:&lt;br /&gt;&lt;a href="http://www.exslt.org/str/functions/split/str.split.template.xsl.html"&gt;http://www.exslt.org/str/functions/split/str.split.template.xsl.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Code for the same is as below:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="codeview"&gt;&lt;br /&gt;    &amp;lt;xsl:call-template name="splitstring"&amp;gt;&lt;br /&gt;      &amp;lt;xsl:with-param name="string"&amp;gt;&lt;br /&gt;        &amp;lt;xsl:value-of select="Comments"&amp;gt;&lt;br /&gt;      &amp;lt;/xsl:value-of&amp;gt;&lt;br /&gt;      &amp;lt;xsl:with-param name="pattern"&amp;gt;&lt;br /&gt;        &amp;lt;xsl:value-of select="''"&amp;gt;&lt;br /&gt;      &amp;lt;/xsl:value-of&amp;gt;&lt;br /&gt; &amp;lt;/xsl:with-param&amp;gt;&lt;br /&gt;&amp;lt;xsl:template name="splitstring"&amp;gt;&lt;br /&gt; &amp;lt;xsl:param name="string"/&amp;gt;&lt;br /&gt; &amp;lt;xsl:param name="pattern"/&amp;gt;&lt;br /&gt; &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;    &amp;lt;xsl:when test="not($string)" /&amp;gt;&lt;br /&gt;    &amp;lt;xsl:when test="not($pattern)"&amp;gt;&lt;br /&gt;       &amp;lt;xsl:call-template name="split-characters"&amp;gt;&lt;br /&gt;          &amp;lt;xsl:with-param name="string"&lt;br /&gt;                          select="$string" /&amp;gt;&lt;br /&gt;       &amp;lt;/xsl:call-template&amp;gt;&lt;br /&gt;    &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;    &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;       &amp;lt;xsl:call-template name="split-pattern"&amp;gt;&lt;br /&gt;          &amp;lt;xsl:with-param name="string"&lt;br /&gt;                          select="$string" /&amp;gt;&lt;br /&gt;          &amp;lt;xsl:with-param name="pattern"&lt;br /&gt;                          select="$pattern" /&amp;gt;&lt;br /&gt;       &amp;lt;/xsl:call-template&amp;gt;&lt;br /&gt;    &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt; &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;xsl:template name="split-characters"&amp;gt;&lt;br /&gt; &amp;lt;xsl:param name="string" /&amp;gt;&lt;br /&gt; &amp;lt;xsl:if test="$string"&amp;gt;&lt;br /&gt;    &amp;lt;fo:block&amp;gt;&lt;br /&gt;       &amp;lt;xsl:value-of select="substring($string, 1, 1)" /&amp;gt;&lt;br /&gt;    &amp;lt;/fo:block&amp;gt;&lt;br /&gt;    &amp;lt;xsl:call-template name="split-characters"&amp;gt;&lt;br /&gt;       &amp;lt;xsl:with-param name="string"&lt;br /&gt;                       select="substring($string, 2)" /&amp;gt;&lt;br /&gt;    &amp;lt;/xsl:call-template&amp;gt;&lt;br /&gt; &amp;lt;/xsl:if&amp;gt;&lt;br /&gt;&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;xsl:template name="split-pattern"&amp;gt;&lt;br /&gt; &amp;lt;xsl:param name="string" /&amp;gt;&lt;br /&gt; &amp;lt;xsl:param name="pattern" /&amp;gt;&lt;br /&gt; &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;    &amp;lt;xsl:when test="contains($string, $pattern)"&amp;gt;&lt;br /&gt;       &amp;lt;xsl:if test="not(starts-with($string, $pattern))"&amp;gt;&lt;br /&gt;          &amp;lt;fo:block&amp;gt;&lt;br /&gt;             &amp;lt;xsl:value-of select="substring-before($string, $pattern)" /&amp;gt;&lt;br /&gt;          &amp;lt;/fo:block&amp;gt;&lt;br /&gt;       &amp;lt;/xsl:if&amp;gt;&lt;br /&gt;       &amp;lt;xsl:call-template name="split-pattern"&amp;gt;&lt;br /&gt;          &amp;lt;xsl:with-param name="string"&lt;br /&gt;                          select="substring-after($string, $pattern)" /&amp;gt;&lt;br /&gt;          &amp;lt;xsl:with-param name="pattern"&lt;br /&gt;                          select="$pattern" /&amp;gt;&lt;br /&gt;       &amp;lt;/xsl:call-template&amp;gt;&lt;br /&gt;    &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;    &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;       &amp;lt;fo:block&amp;gt;&lt;br /&gt;          &amp;lt;xsl:value-of select="$string" /&amp;gt;&lt;br /&gt;       &amp;lt;/fo:block&amp;gt;&lt;br /&gt;    &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt; &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre id="comment_text_1"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-2586349715935990480?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/2586349715935990480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=2586349715935990480' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2586349715935990480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2586349715935990480'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/problem-fix-in-fop-020-hard-return-not.html' title='Problem fix in fop 0.20. Hard return not recognized.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-2377867588412939206</id><published>2008-12-08T10:38:00.000-08:00</published><updated>2009-01-10T10:16:29.474-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blackberry'/><category scheme='http://www.blogger.com/atom/ns#' term='srikar'/><title type='text'>My Little one</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UQJRu-HhVS0/ST1p7TnGrVI/AAAAAAAAB0M/AGnC7arbpc0/s1600-h/IMG00001.jpg"&gt;&lt;img style="display: block; text-align: left; cursor: pointer; width: 273px; height: 234px;" src="http://3.bp.blogspot.com/_UQJRu-HhVS0/ST1p7TnGrVI/AAAAAAAAB0M/AGnC7arbpc0/s320/IMG00001.jpg" alt="" id="BLOGGER_PHOTO_ID_5277490805945576786" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;My little one "Srikar Dontula" 's picture on my new T-mobile blackberry pearl 8100.  Blackberry was initially a pain to use. Getting used to it a little bit now. Love it so far....&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-2377867588412939206?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/2377867588412939206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=2377867588412939206' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2377867588412939206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2377867588412939206'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/my-little-one.html' title='My Little one'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_UQJRu-HhVS0/ST1p7TnGrVI/AAAAAAAAB0M/AGnC7arbpc0/s72-c/IMG00001.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-2010338025013819480</id><published>2008-12-08T10:31:00.001-08:00</published><updated>2008-12-08T11:40:20.735-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='piano'/><title type='text'>My first piano recital</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_UQJRu-HhVS0/ST1oHQz71WI/AAAAAAAAB0E/NeUo2JLroHU/s1600-h/IMG00012.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 256px;" src="http://4.bp.blogspot.com/_UQJRu-HhVS0/ST1oHQz71WI/AAAAAAAAB0E/NeUo2JLroHU/s320/IMG00012.jpg" alt="" id="BLOGGER_PHOTO_ID_5277488812329260386" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Picture from my first piano recital (12/06/08). I have been taking classes since end of August '08.  Recitals will be every 6 months. Will have to see if I can post a video next time around.&lt;br /&gt;&lt;br /&gt;Next to me is my teacher Brenda Meether. I take classes at her piano studio. Her web location: &lt;a href="http://www.brendameethermusic.com/"&gt;http://www.brendameethermusic.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-2010338025013819480?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/2010338025013819480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=2010338025013819480' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2010338025013819480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2010338025013819480'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/my-first-piano-recital.html' title='My first piano recital'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_UQJRu-HhVS0/ST1oHQz71WI/AAAAAAAAB0E/NeUo2JLroHU/s72-c/IMG00012.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-383630202029972031</id><published>2008-12-08T08:58:00.000-08:00</published><updated>2008-12-08T09:03:28.401-08:00</updated><title type='text'>SCP transferring files.</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Command to upload files to a server:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;scp &amp;lt;file-name&amp;gt; user@server-ip &amp;lt;destination-file-name&amp;gt;&lt;br /&gt;&lt;br /&gt;ex: scp mail.jar sarat@some-ip mail.jar&lt;br /&gt;&lt;br /&gt;[Above puts the file in user's home directory. Specify particular directory if you wish you place file in a different location]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Command to downloading files from a server:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;scp user@server-ip:&amp;lt;file-name&amp;gt; &amp;lt;local-directory-location&amp;gt;&lt;br /&gt;&lt;br /&gt;ex: scp sarat@some-ip:mail.jar /home/sarat/Desktop/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-383630202029972031?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/383630202029972031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=383630202029972031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/383630202029972031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/383630202029972031'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/scp-transferring-files.html' title='SCP transferring files.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-5437046172107114341</id><published>2008-12-04T10:30:00.000-08:00</published><updated>2008-12-04T10:40:59.803-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cadaver'/><category scheme='http://www.blogger.com/atom/ns#' term='webdav'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Using cadaver for querying webdav</title><content type='html'>Home page for cadaver: &lt;a href="http://www.webdav.org/cadaver/"&gt;http://www.webdav.org/cadaver/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;On ubuntu you can install it from repositories. Below are steps to do the same.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Steps on how to install cadaver from ubuntu repositories.&lt;/span&gt;&lt;br /&gt;(i) From System -&gt; Administration -&gt; Synaptic Package Manager -&gt; Type "Cadaver" and hit search.&lt;br /&gt;(ii) Click on checkbox right next to cadaver -&gt; Select mark for installation -&gt; Hit Apply.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Using cadaver: (I looked for documentation on home page and didn't find any. Below steps might help you get started)&lt;/span&gt;&lt;br /&gt;1. type in "cadaver" on the command line.&lt;br /&gt;2. open http://&amp;lt; ip-address &amp;gt;/&lt;br /&gt;3. cd ../exchange/some-folder/calendar/ (asked me for credentials)&lt;br /&gt;4. ls - to list files. (was able to list files on webdav)&lt;br /&gt;5. propget file-name.EML (lists propeties)&lt;br /&gt;5. get file-name.EML  (gets webpage. shows it on the terminal)&lt;br /&gt;6. propnames test203-1.EML&lt;br /&gt;7. help (to get more help)&lt;br /&gt;8. help command (to list help information) ex:- help ls&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-5437046172107114341?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/5437046172107114341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=5437046172107114341' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/5437046172107114341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/5437046172107114341'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/using-cadaver-for-query-webdav.html' title='Using cadaver for querying webdav'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-7042717291462196212</id><published>2008-12-04T10:15:00.000-08:00</published><updated>2008-12-04T10:22:39.949-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu x-windows problem fix.</title><content type='html'>Recently one of our desktop after restart distorted the whole screen.&lt;br /&gt;&lt;br /&gt;Tried below steps to solve the problem.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. Reinstall ubuntu-desktop (didn't work)&lt;/span&gt;&lt;br /&gt; sudo apt-get remove ubuntu-desktop (removed ubuntu desktop)&lt;br /&gt; sudo apt-get install ubuntu-desktop (re-installed it)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. sudo dpkg --configure -a (didn't work)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. sudo dpkg-reconfigure xserver-xorg  (this solved the problem)&lt;/span&gt;&lt;br /&gt;After issuing the command went through all configuration screens, selected defaults and rebooted ubuntu to see the login screens undistorted.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;1. From login screen to go to command line use "Ctrl + Alt + F1"&lt;br /&gt;2. To go back to login screen use "Ctrl + Alt + F7"&lt;br /&gt;Looks like ubuntu has 6 tty sessions.  F7 takes you to x-windows.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-7042717291462196212?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/7042717291462196212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=7042717291462196212' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/7042717291462196212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/7042717291462196212'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/ubuntu-x-windows-problem-fix.html' title='Ubuntu x-windows problem fix.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-6763976877749067953</id><published>2008-12-04T10:07:00.000-08:00</published><updated>2008-12-04T10:15:09.675-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu upgrade broke network manager.</title><content type='html'>My amd 64 network manager broke after today's upgrade. Followed below link to solve the problem&lt;br /&gt;&lt;br /&gt;https://bugs.launchpad.net/bugs/279433&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;1. Downloaded: &lt;a href="http://launchpadlibrarian.net/18144373/network-manager_0.7%7E%7Esvn20080928t225540%2Beni0-0ubuntu2_amd64.deb"&gt;network-manager_0.7~~svn20080928t225540+eni0-0ubuntu2_amd64.deb&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;from link: https://launchpad.net/ubuntu/intrepid/amd64/network-manager/0.7~~svn20080928t225540+eni0-0ubuntu2&lt;br /&gt;&lt;br /&gt;2. Moved existing network-manager deb from /var/cache/apt/archives/ to the desktop&lt;br /&gt;&lt;br /&gt;mv /var/cache/apt/archives/network-manager-pptp_0.7~~svn20081015t024626-0ubuntu1.8.10.1_amd64.deb ~/Desktop&lt;br /&gt;&lt;br /&gt;3. Copied "network-manager_0.7~~svn20080928t225540+eni0-0ubuntu2_amd64.deb" to /var/cache/apt/archives folder.&lt;br /&gt;&lt;br /&gt;4. Restarted the box. Networking started working!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-6763976877749067953?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/6763976877749067953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=6763976877749067953' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/6763976877749067953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/6763976877749067953'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/ubuntu-upgrade-broke-network-manager.html' title='Ubuntu upgrade broke network manager.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-8188672529272748235</id><published>2008-12-03T23:11:00.001-08:00</published><updated>2008-12-03T23:12:11.921-08:00</updated><title type='text'>Open source LDAP browser/editor</title><content type='html'>LDAP BROWSER/EDITOR: &lt;a href="http://www-unix.mcs.anl.gov/%7Egawor/ldap/download.html"&gt;http://www-unix.mcs.anl.gov/~gawor/ldap/download.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-8188672529272748235?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/8188672529272748235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=8188672529272748235' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8188672529272748235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8188672529272748235'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/open-source-ldap-browsereditor.html' title='Open source LDAP browser/editor'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-8157872036141053103</id><published>2008-12-03T23:03:00.000-08:00</published><updated>2008-12-03T23:10:33.643-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jboss'/><title type='text'>JBoss Notes</title><content type='html'>&lt;span style="font-weight: bold;"&gt;1. How to install jboss as service in ubuntu:&lt;/span&gt;&lt;br /&gt;Create link in /etc/init.d/jboss to /usr/local/jboss/bin/jboss_init_redhat.sh using below command:&lt;br /&gt;ln -s      /etc/init.d/jboss         /usr/local/jboss/bin/jboss_init_redhat.sh&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. How to bind JBoss to a particular IP address rather than localhost.&lt;/span&gt;&lt;br /&gt;(You might be required to do this to call session beans using RMI)&lt;br /&gt;JBOSS Bind Address JAVA_OPTS:&lt;br /&gt;set JAVA_OPTS=%JAVA_OPTS% -Dbind.address=10.10.50.20&lt;br /&gt;link: http://blogs.adobe.com/livecycle/2008/03/livecycle_sample_jboss_runbat.html&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. How to restore JBoss persistence connection rather than restarting:&lt;/span&gt;&lt;br /&gt;Under jmx-console for JBoss. Click on below link under "JCA"&lt;br /&gt;name=jdbc/&amp;lt; your database jndi name &amp;gt;,service=ManagedConnectionPool&lt;br /&gt;Click on flush cache button to restore connection to database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. Start &amp;amp; Stop JBOSS on solaris&lt;/span&gt;&lt;br /&gt;svcadm enable network/jboss:default&lt;br /&gt;svcadm disable network/jboss:default&lt;br /&gt;&lt;br /&gt;svcs -l jboss&lt;br /&gt;svcs -p jboss&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. Installing 2nd instance of JBoss. &lt;/span&gt;&lt;br /&gt;Description:     * default/deploy/jbossweb-tomcat55.sar/server.xml:&lt;br /&gt;&lt;br /&gt;o change 8080 to 18080&lt;br /&gt;&lt;br /&gt;* default/conf/jboss-service.xml&lt;br /&gt;&lt;br /&gt;o change 8083 to 18083&lt;br /&gt;o change 1099 to 11099&lt;br /&gt;o change 1098 to 11098&lt;br /&gt;o change 4445 to 14445&lt;br /&gt;o change 4444 to 14444&lt;br /&gt;&lt;br /&gt;* default/conf/jboss-minimal.xml&lt;br /&gt;&lt;br /&gt;o change 1099 to 11099&lt;br /&gt;o change 1098 to 11098&lt;br /&gt;&lt;br /&gt;* default/deploy/jms/uil2-service.xml&lt;br /&gt;&lt;br /&gt;o change 8093 to 18093&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-8157872036141053103?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/8157872036141053103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=8157872036141053103' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8157872036141053103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8157872036141053103'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/jboss-notes.html' title='JBoss Notes'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-8391293040377489917</id><published>2008-12-03T22:56:00.000-08:00</published><updated>2008-12-03T22:57:27.984-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hsqldb'/><title type='text'>Starting hsqldb database</title><content type='html'>java -classpath lib/hsqldb.jar org.hsqldb.Server&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-8391293040377489917?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/8391293040377489917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=8391293040377489917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8391293040377489917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/8391293040377489917'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/starting-hsqldb-database.html' title='Starting hsqldb database'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-6549983861665233911</id><published>2008-12-03T22:35:00.001-08:00</published><updated>2008-12-03T22:36:35.113-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='glassfish'/><title type='text'>Glassfish Notes</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Starting and Stopping a Domain:&lt;/span&gt;&lt;br /&gt; ./asadmin start-domain &amp;lt; domain-name &amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Setting up SQL Server Datasource in glassfish:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;jtds class:&lt;/span&gt; net.sourceforge.jtds.jdbcx.JtdsDataSource&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;resource type:&lt;/span&gt; javax.sql.ConnectionPoolDataSource&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-6549983861665233911?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/6549983861665233911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=6549983861665233911' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/6549983861665233911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/6549983861665233911'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/glassfish-notes.html' title='Glassfish Notes'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-3015777120763240975</id><published>2008-12-03T22:27:00.000-08:00</published><updated>2008-12-04T10:27:14.670-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><title type='text'>Disabling foreign keys for all tables in a database.</title><content type='html'>&lt;span style="font-weight: bold;"&gt;DROP ALL FOREIGN KEYS SQLSERVER:&lt;/span&gt;&lt;br /&gt;SELECT&lt;br /&gt;'&lt;br /&gt;' +&lt;br /&gt;CASE WHEN xtype = 'TR' THEN&lt;br /&gt;'Drop Trigger ' + [Name]&lt;br /&gt;ELSE&lt;br /&gt;'ALTER TABLE ' + object_name(parent_obj) + ' DROP FOREIGN KEY ' + [name]&lt;br /&gt;END +&lt;br /&gt;';'&lt;br /&gt;AS Script&lt;br /&gt;from sysobjects where xtype IN ('F','TR')&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;DISABLE FOREIGN KEYS SQL Server:&lt;/span&gt;&lt;br /&gt;EXEC sp_MSforeachtable @command1="ALTER TABLE ? NOCHECK CONSTRAINT ALL"&lt;br /&gt;EXEC sp_MSforeachtable @command1="ALTER TABLE ? DISABLE TRIGGER ALL"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;RE-ENABLING FOREIGN KEYS:&lt;/span&gt;&lt;br /&gt;EXEC sp_MSforeachtable @command1="ALTER TABLE ? CHECK CONSTRAINT ALL"&lt;br /&gt;EXEC sp_MSforeachtable @command1="ALTER TABLE ? ENABLE TRIGGER ALL"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;IN MYSQL:&lt;/span&gt;&lt;br /&gt;Just add "sessionVariables=FOREIGN_KEY_CHECKS=0" to your JDBC URL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-3015777120763240975?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/3015777120763240975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=3015777120763240975' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/3015777120763240975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/3015777120763240975'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/disabling-foreign-keys-for-all-tables.html' title='Disabling foreign keys for all tables in a database.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-2825288062013814995</id><published>2008-12-03T22:22:00.000-08:00</published><updated>2008-12-03T22:26:19.022-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='icefaces'/><title type='text'>Session expired error while deploying icefaces application on TOMCAT.</title><content type='html'>Session expired errors.&lt;br /&gt;Fix by editing tomcathome/conf/context.xml&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Look for below comment in context.xml&lt;/span&gt;&lt;br /&gt;Uncomment this to disable session persistence across Tomcat restarts&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Uncomment below configuration item&lt;/span&gt;&lt;br /&gt;&amp;lt;Manager pathname="" /&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-2825288062013814995?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/2825288062013814995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=2825288062013814995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2825288062013814995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/2825288062013814995'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/session-expired-error-while-deploying.html' title='Session expired error while deploying icefaces application on TOMCAT.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-1137895428847276362</id><published>2008-12-03T22:15:00.000-08:00</published><updated>2008-12-03T22:21:53.494-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='as400'/><title type='text'>AS400 Cheat Sheet.</title><content type='html'>&lt;span style="font-weight: bold;"&gt;1. How to view version of AS400&lt;/span&gt;:&lt;br /&gt;1. GO LICPGM -&gt; 10 -&gt; F11&lt;br /&gt;2. DSPSFWRSC (display software resources Hit F11 to see version)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. How to create a new database on AS400 using any sql tool &lt;/span&gt;&lt;br /&gt;create collection databasename (new schema command)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. Clear contens of a file&lt;/span&gt;&lt;br /&gt;clrpfm &lt;library&gt;&lt;library&gt;&lt;filename&gt;&lt;filename&gt;library/filename (clear contents of a file)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. Get IP address of as400&lt;/span&gt;&lt;br /&gt;On the iSeries you can use CFGTCP option 10.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. View ports being used&lt;/span&gt;&lt;br /&gt;NETSTAT from PC or AS400.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6. Kill a program immediately (in QShell)  like [kill -9 in unix]&lt;/span&gt;&lt;br /&gt;On as400 it is: kill -12&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7. ALTER BLOB LENGTH&lt;/span&gt;&lt;br /&gt;alter table attachment alter column document set data type blob(10485760)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8. DSPFFD (DISPLAY FULL FILE DESCRIPTION)&lt;/span&gt;&lt;br /&gt;DISPLAYS COLUMN LENGTHS AND OTHER INFORMATION ABOUT A FILE.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;9. Start QShell on AS400&lt;/span&gt;&lt;br /&gt;Command: strqsh&lt;/filename&gt;&lt;/filename&gt;&lt;/library&gt;&lt;/library&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-1137895428847276362?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/1137895428847276362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=1137895428847276362' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/1137895428847276362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/1137895428847276362'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/as400-cheat-sheet.html' title='AS400 Cheat Sheet.'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-84531963900093145</id><published>2008-12-02T14:21:00.000-08:00</published><updated>2008-12-02T14:25:36.829-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu Service Management</title><content type='html'>To disable a startup service use:  sudo update-rc.d -f mysql remove&lt;br /&gt;(had to use -f option to force remove)&lt;br /&gt;To make mysql startup when ubuntu boots:  sudo update-rc.d mysql defaults&lt;br /&gt;&lt;br /&gt;sudo update-rc.d mysql remove&lt;br /&gt;update-rc.d: /etc/init.d/mysql exists during rc.d purge (use -f to force)&lt;br /&gt;&lt;br /&gt;sudo update-rc.d -f mysql remove&lt;br /&gt;Removing any system startup links for /etc/init.d/mysql ...&lt;br /&gt;  /etc/rc0.d/K21mysql&lt;br /&gt;  /etc/rc1.d/K21mysql&lt;br /&gt;  /etc/rc2.d/S19mysql&lt;br /&gt;  /etc/rc3.d/S19mysql&lt;br /&gt;  /etc/rc4.d/S19mysql&lt;br /&gt;  /etc/rc5.d/S19mysql&lt;br /&gt;  /etc/rc6.d/K21mysql&lt;br /&gt;&lt;br /&gt;sudo update-rc.d mysql defaults&lt;br /&gt;Adding system startup for /etc/init.d/mysql ...&lt;br /&gt;  /etc/rc0.d/K20mysql -&gt; ../init.d/mysql&lt;br /&gt;  /etc/rc1.d/K20mysql -&gt; ../init.d/mysql&lt;br /&gt;  /etc/rc6.d/K20mysql -&gt; ../init.d/mysql&lt;br /&gt;  /etc/rc2.d/S20mysql -&gt; ../init.d/mysql&lt;br /&gt;  /etc/rc3.d/S20mysql -&gt; ../init.d/mysql&lt;br /&gt;  /etc/rc4.d/S20mysql -&gt; ../init.d/mysql&lt;br /&gt;  /etc/rc5.d/S20mysql -&gt; ../init.d/mysql&lt;br /&gt;&lt;br /&gt;This is the link I followed: http://nixcraft.com/shell-scripting/542-ubuntu-linux-control-startup-services-scripts.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-84531963900093145?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/84531963900093145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=84531963900093145' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/84531963900093145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/84531963900093145'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/ubuntu-service-management.html' title='Ubuntu Service Management'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-6927949591337244322</id><published>2008-12-02T11:06:00.000-08:00</published><updated>2008-12-04T10:27:34.606-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlserver'/><title type='text'>SQL Server Problem Fixes</title><content type='html'>***************&lt;br /&gt;1. Apostrophe issue in sql statement:&lt;br /&gt;&lt;br /&gt;select * from business where name = 'Craig's List';&lt;br /&gt;&lt;br /&gt;Above statement fails.&lt;br /&gt;&lt;br /&gt;Use Below: Have to replace single apostrophe with two apostrophes.&lt;br /&gt;&lt;br /&gt;select * from business where name = 'Craig''s List';&lt;br /&gt;&lt;br /&gt;***************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;***************&lt;br /&gt;2. Sql statement errors out when there are spaces in column names.&lt;br /&gt;&lt;br /&gt;"contact on contractor" is column in contractorconversion table.&lt;br /&gt;"BUSINESS NAME" is another column in contractorconversion  table.&lt;br /&gt;&lt;br /&gt;To get around use:  \"&lt;&lt;spaced&gt;&gt;\" around the column name.&lt;br /&gt;&lt;br /&gt;String sqlStmt = "select cc.\"contact on contractor\" as contact from contractorconversion cc, business b where b.name=cc.\"BUSINESS NAME\" and cc.\"BUSINESS NAME\"=";&lt;br /&gt;***************&lt;/spaced&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-6927949591337244322?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/6927949591337244322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=6927949591337244322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/6927949591337244322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/6927949591337244322'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/12/sql-server-problems-encountered.html' title='SQL Server Problem Fixes'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-1067978672508473592</id><published>2008-11-23T16:31:00.000-08:00</published><updated>2008-12-02T14:26:53.986-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web frameworks'/><title type='text'>Web Ajax Frameworks</title><content type='html'>Consider ICEFACES, WICKET, STRIPES, zk.&lt;br /&gt;&lt;br /&gt;http://stripesframework.org&lt;br /&gt;http://icefaces.org&lt;br /&gt;http://wicket.apache.org&lt;br /&gt;http://zkoss.org&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-1067978672508473592?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/1067978672508473592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=1067978672508473592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/1067978672508473592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/1067978672508473592'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/11/web-ajax-frameworks.html' title='Web Ajax Frameworks'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9021762670508687958.post-4961634115855621588</id><published>2008-10-13T09:53:00.000-07:00</published><updated>2008-12-02T14:26:27.533-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='J2EE'/><title type='text'>Important Links</title><content type='html'>EJB:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.theserverside.com/tt/articles/article.tss?l=NewFeaturesinEJB31-Part5"&gt;http://www.theserverside.com/tt/articles/article.tss?l=NewFeaturesinEJB31-Part5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;WEB SERVICES:&lt;br /&gt;&lt;a href="http://www.keith-chapman.org/2008/10/apache-axis2-tips-and-tricks.html"&gt;http://www.keith-chapman.org/2008/10/apache-axis2-tips-and-tricks.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;STRUTS2:&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;http://struts.apache.org/2.0.11.2/docs/struts-2-spring-2-jpa-ajax.html&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9021762670508687958-4961634115855621588?l=sdontula.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sdontula.blogspot.com/feeds/4961634115855621588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9021762670508687958&amp;postID=4961634115855621588' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/4961634115855621588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9021762670508687958/posts/default/4961634115855621588'/><link rel='alternate' type='text/html' href='http://sdontula.blogspot.com/2008/10/important-links.html' title='Important Links'/><author><name>Sarat</name><uri>http://www.blogger.com/profile/08522482472500911293</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
