<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>My First Blog on wordpress</title>
	<atom:link href="http://vvishwa.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vvishwa.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 04 Jul 2009 20:11:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vvishwa.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>My First Blog on wordpress</title>
		<link>http://vvishwa.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vvishwa.wordpress.com/osd.xml" title="My First Blog on wordpress" />
	<atom:link rel='hub' href='http://vvishwa.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Starting with Spring DAO layer &#8211; Stored procedures/functions</title>
		<link>http://vvishwa.wordpress.com/2009/06/29/starting-with-spring-dao-layer-stored-proceduresfunctions/</link>
		<comments>http://vvishwa.wordpress.com/2009/06/29/starting-with-spring-dao-layer-stored-proceduresfunctions/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 18:45:00 +0000</pubDate>
		<dc:creator>vvishwa</dc:creator>
				<category><![CDATA[Spring Development]]></category>

		<guid isPermaLink="false">http://vvishwa.wordpress.com/2009/06/29/starting-with-spring-dao-layer-stored-proceduresfunctions/</guid>
		<description><![CDATA[Configuring Spring JDBC DAO- Create a Java/or Dynamic Web project in eclipse. Copy all the spring jar files from /dist/modules into your project&#8217;s lib folder and add these jar files to java build path. Copy all the jar files (except commons-attributes-compiler.jar) from /lib/jakarta-commons into your project&#8217;s lib folder and add these jar files to java [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=17&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<div>
<div>Configuring Spring JDBC DAO-</p>
<p>Create a Java/or Dynamic Web project in eclipse.<br />
Copy all the spring jar files from /dist/modules into your project&#8217;s lib folder and add these jar files to java build path.<br />
Copy all the jar files (except commons-attributes-compiler.jar) from /lib/jakarta-commons into your project&#8217;s lib folder and add these jar files to java build path. (Without these libraries tomcat will complain the following Exception-<br />
java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory)</p>
<p>Now you are all set to begin web development with Spring DAO layer.</p>
<p>Following I show how we can configure Datasource/and the beans that use datasource using applicationContext.xml. and also I will show you how we can call Database functions/stored procedures running on MS SQL Server.</p>
<p>Following is the applicationContext.xml, where you configure your beans, specify the database connection settings here in datasource bean definition.</p></div>
<p><a href="http://vvishwa.files.wordpress.com/2009/06/appcontext.jpg"><img style="text-align:center;width:320px;display:block;height:216px;margin:0 auto 10px;" src="http://vvishwa.files.wordpress.com/2009/06/appcontext.jpg?w=450" border="0" alt="" /></a></p>
<p>Following is a simple java class that shows how to call a function and map input/output parameters -</p>
<p><a href="http://vvishwa.files.wordpress.com/2009/06/callfunction.jpg"><img style="text-align:center;width:320px;display:block;height:298px;margin:0 auto 10px;" src="http://vvishwa.files.wordpress.com/2009/06/callfunction.jpg?w=450" border="0" alt="" /></a></p>
<p>Following is a simple java class that shows how to call a stored procedure and map input/output paremeters using a private inner class.</p>
<p><span style="font-size:85%;color:#333333;"> </span><a href="http://vvishwa.files.wordpress.com/2009/06/calltoproc.jpg"><img style="text-align:center;width:320px;display:block;height:318px;margin:0 auto 10px;" src="http://vvishwa.files.wordpress.com/2009/06/calltoproc.jpg?w=450" border="0" alt="" /></a></div>
<div>
<p>Following is a model object used by the above java class -</p>
<p><a href="http://vvishwa.files.wordpress.com/2009/06/model.jpg"><img style="text-align:center;width:235px;display:block;height:320px;margin:0 auto 10px;" src="http://vvishwa.files.wordpress.com/2009/06/model.jpg?w=450" border="0" alt="" /></a></p>
<p>thats it..you have an application with DAO layer. You can use similiar approach in web applications, For standalone make sure you have applicationContext.xml in classpath. For web applications, have applicationContext.xml in WEB-INF folder and define a context parameter with name (contextConfigLocation) and value (/WEB-INF/applicationContext.xml)</p></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vvishwa.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vvishwa.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vvishwa.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vvishwa.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vvishwa.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vvishwa.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vvishwa.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vvishwa.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vvishwa.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vvishwa.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vvishwa.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vvishwa.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vvishwa.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vvishwa.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=17&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vvishwa.wordpress.com/2009/06/29/starting-with-spring-dao-layer-stored-proceduresfunctions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5ec1fcfaa8dd1b25ecfa826fa0e0ecb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vvishwa</media:title>
		</media:content>

		<media:content url="http://vvishwa.files.wordpress.com/2009/06/appcontext.jpg" medium="image" />

		<media:content url="http://vvishwa.files.wordpress.com/2009/06/callfunction.jpg" medium="image" />

		<media:content url="http://vvishwa.files.wordpress.com/2009/06/calltoproc.jpg" medium="image" />

		<media:content url="http://vvishwa.files.wordpress.com/2009/06/model.jpg" medium="image" />
	</item>
		<item>
		<title>Starting with GWT (Google Web ToolKit)</title>
		<link>http://vvishwa.wordpress.com/2009/06/24/starting-with-gwt-google-web-toolkit/</link>
		<comments>http://vvishwa.wordpress.com/2009/06/24/starting-with-gwt-google-web-toolkit/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 19:15:00 +0000</pubDate>
		<dc:creator>vvishwa</dc:creator>
				<category><![CDATA[GWT Development]]></category>

		<guid isPermaLink="false">http://vvishwa.wordpress.com/2009/06/24/starting-with-gwt-google-web-toolkit/</guid>
		<description><![CDATA[Eclipse provides a standard plugin for GWT. 1). Download the GWT plugin following the instructions on http://code.google.com/eclipse/docs/install-eclipse-3.4.html 2). Create a new Web Application Project. The Project gets configured ready for GWT development and it comes with a sample GreetingService service. 3). Clean build the Project and right click on the project and select Run As [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=16&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Eclipse provides a standard plugin for GWT.</p>
<p>1). Download the GWT plugin following the instructions on<br />
http://code.google.com/eclipse/docs/install-eclipse-3.4.html</p>
<p>2). Create  a new Web Application Project.</p>
<p>The Project gets configured ready for GWT development and it comes with a sample GreetingService service.</p>
<p>3). Clean build the Project and right click on the project and select Run As &#8211; Web Application. You will see the application running in Hosted browser.</p>
<p>You can make changes to your client code and verify the changes in hosted browser. You don&#8217;t need to restart the server as all the changes being hot-deployed to hosted server.</p>
<p>&#8211; more examples to come..check out soon..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vvishwa.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vvishwa.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vvishwa.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vvishwa.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vvishwa.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vvishwa.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vvishwa.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vvishwa.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vvishwa.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vvishwa.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vvishwa.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vvishwa.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vvishwa.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vvishwa.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=16&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vvishwa.wordpress.com/2009/06/24/starting-with-gwt-google-web-toolkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5ec1fcfaa8dd1b25ecfa826fa0e0ecb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vvishwa</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server Tips</title>
		<link>http://vvishwa.wordpress.com/2009/06/24/sql-server-tips/</link>
		<comments>http://vvishwa.wordpress.com/2009/06/24/sql-server-tips/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 18:05:00 +0000</pubDate>
		<dc:creator>vvishwa</dc:creator>
				<category><![CDATA[SQL Development]]></category>

		<guid isPermaLink="false">http://vvishwa.wordpress.com/2009/06/24/sql-server-tips/</guid>
		<description><![CDATA[1). Get a list of values as a comma-seperated list SELECT DISTINCT STUFF( ( SELECT &#8216;,&#8217; + RTRIM(fieldName) FROM table1 where id = &#8216;id&#8217; FOR XML PATH(&#8221;)),1 ,1, &#8221;) FROM table1 where id = &#8216;id&#8217; 2). Get just the time from datetime field .e.g. 12:11 AM select (CASE SUBSTRING(CONVERT(varchar(24), getDate(), 121), 12, 12) when &#8217;00:00:00.000&#8242; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=15&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1). Get a list of values as a comma-seperated list</p>
<p><span style="color:#000066;">SELECT DISTINCT STUFF( ( SELECT &#8216;,&#8217; + RTRIM(fieldName) FROM table1 where id = &#8216;id&#8217;<br />
FOR XML<br />
PATH(&#8221;)),1 ,1, &#8221;)<br />
FROM table1 where id = &#8216;id&#8217;</span></p>
<p>2). Get just the time from datetime field .e.g. 12:11 AM</p>
<p><span style="color:#000066;">select (CASE SUBSTRING(CONVERT(varchar(24), getDate(), 121), 12, 12)<br />
when &#8217;00:00:00.000&#8242; then &#8221;<br />
else substring(convert(varchar(20), getDate(), 9), 13, 5) + &#8216; &#8216; + substring(convert(varchar(30), getDate(), 9), 25, 2)<br />
end) AS &#8216;just_the_time&#8217;</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vvishwa.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vvishwa.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vvishwa.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vvishwa.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vvishwa.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vvishwa.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vvishwa.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vvishwa.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vvishwa.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vvishwa.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vvishwa.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vvishwa.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vvishwa.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vvishwa.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=15&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vvishwa.wordpress.com/2009/06/24/sql-server-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5ec1fcfaa8dd1b25ecfa826fa0e0ecb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vvishwa</media:title>
		</media:content>
	</item>
		<item>
		<title>Starting With Hibernate</title>
		<link>http://vvishwa.wordpress.com/2009/06/24/starting-with-hibernate/</link>
		<comments>http://vvishwa.wordpress.com/2009/06/24/starting-with-hibernate/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 17:15:00 +0000</pubDate>
		<dc:creator>vvishwa</dc:creator>
				<category><![CDATA[Hibernate Development]]></category>

		<guid isPermaLink="false">http://vvishwa.wordpress.com/2009/06/24/starting-with-hibernate/</guid>
		<description><![CDATA[Tools : Eclipse, SQL Server 1). Create a Dynamic Web project in Eclipse. 2). Copy the following jar files into project&#8217;s lib folder and project&#8217;s class path. antlr-2.7.6.jar asm.jar asm-attrs.jar cglib-2.1.3.jar commons-collections-2.1.1.jar commons-logging-1.1.jar dom4j-1.6.1.jar hibernate3.jar javassist.jar jta-1.1.jar sqljdbc.jar (FOR MS SQL Server) 3). Create the Hibernate configuration file hibernate.cfg.xml as follows - 4). For example [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=8&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<div>Tools : Eclipse, SQL Server</p>
<p>1). Create a Dynamic Web project in Eclipse.<br />
2). Copy the following jar files into project&#8217;s lib folder and project&#8217;s class path.</p>
<p>antlr-2.7.6.jar<br />
asm.jar<br />
asm-attrs.jar<br />
cglib-2.1.3.jar<br />
commons-collections-2.1.1.jar<br />
commons-logging-1.1.jar<br />
dom4j-1.6.1.jar<br />
hibernate3.jar<br />
javassist.jar<br />
jta-1.1.jar</p>
<p>sqljdbc.jar (FOR MS SQL Server)</p>
<p>3). Create the Hibernate configuration file hibernate.cfg.xml as follows -</p>
<p><a href="http://vvishwa.files.wordpress.com/2009/06/hbconfig.jpg"><img style="display:block;text-align:center;width:320px;height:87px;margin:0 auto 10px;" src="http://vvishwa.files.wordpress.com/2009/06/hbconfig.jpg?w=450" border="0" alt="" /></a></p>
<p>4). For example in above configuration we defined a hibernate mapping file status.hbm.xml which can look like -</p>
<p><a href="http://vvishwa.files.wordpress.com/2009/06/statushbm.jpg"><img style="display:block;text-align:center;width:320px;height:134px;margin:0 auto 10px;" src="http://vvishwa.files.wordpress.com/2009/06/statushbm.jpg?w=450" border="0" alt="" /></a></p>
<p>5). Store all the configuration files in src/default package.</p>
<p>6). Create a HibernateUtil class for serving sessions utilizing sessionFactory as follows -</p>
<p><a href="http://vvishwa.files.wordpress.com/2009/06/hbutil.jpg"><img style="display:block;text-align:center;width:320px;height:200px;margin:0 auto 10px;" src="http://vvishwa.files.wordpress.com/2009/06/hbutil.jpg?w=450" border="0" alt="" /></a></p>
<p>7). Create a DAO class</p>
<p><a href="http://vvishwa.files.wordpress.com/2009/06/utildao.jpg"><img style="display:block;text-align:center;width:294px;height:320px;margin:0 auto 10px;" src="http://vvishwa.files.wordpress.com/2009/06/utildao.jpg?w=450" border="0" alt="" /></a></p>
<p>8). Create a java class for status.hbm.xml mapping as follows -</p>
<p><a href="http://vvishwa.files.wordpress.com/2009/06/statusjava.jpg"><img style="text-align:center;width:320px;display:block;height:298px;margin:0 auto 10px;" src="http://vvishwa.files.wordpress.com/2009/06/statusjava.jpg?w=450" border="0" alt="" /></a></p>
<p>9) Now you are ready to use Hibernate using the above utility class HibernateUtil and the Hibernate configuration mappings.<br />
Following is a sample program -<br />
<a href="http://vvishwa.files.wordpress.com/2009/06/sample.jpg"><img style="text-align:center;width:320px;display:block;height:230px;margin:0 auto 10px;" src="http://vvishwa.files.wordpress.com/2009/06/sample.jpg?w=450" border="0" alt="" /></a></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vvishwa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vvishwa.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vvishwa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vvishwa.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vvishwa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vvishwa.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vvishwa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vvishwa.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vvishwa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vvishwa.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vvishwa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vvishwa.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vvishwa.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vvishwa.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=8&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vvishwa.wordpress.com/2009/06/24/starting-with-hibernate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5ec1fcfaa8dd1b25ecfa826fa0e0ecb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vvishwa</media:title>
		</media:content>

		<media:content url="http://vvishwa.files.wordpress.com/2009/06/hbconfig.jpg" medium="image" />

		<media:content url="http://vvishwa.files.wordpress.com/2009/06/statushbm.jpg" medium="image" />

		<media:content url="http://vvishwa.files.wordpress.com/2009/06/hbutil.jpg" medium="image" />

		<media:content url="http://vvishwa.files.wordpress.com/2009/06/utildao.jpg" medium="image" />

		<media:content url="http://vvishwa.files.wordpress.com/2009/06/statusjava.jpg" medium="image" />

		<media:content url="http://vvishwa.files.wordpress.com/2009/06/sample.jpg" medium="image" />
	</item>
		<item>
		<title>Removing Non-Alpha Numeric characters except period (.), dash (-), ampersand (&amp;), pound (#), comma (,) and underscore (_) using Oracle REGEXP</title>
		<link>http://vvishwa.wordpress.com/2008/08/15/removing-non-alpha-numeric-characters-except-period-dash-ampersand-pound-comma-and-underscore-_-using-oracle-regexp/</link>
		<comments>http://vvishwa.wordpress.com/2008/08/15/removing-non-alpha-numeric-characters-except-period-dash-ampersand-pound-comma-and-underscore-_-using-oracle-regexp/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 21:08:00 +0000</pubDate>
		<dc:creator>vvishwa</dc:creator>
				<category><![CDATA[SQL Development]]></category>

		<guid isPermaLink="false">http://vvishwa.wordpress.com/2008/08/15/removing-non-alpha-numeric-characters-except-period-dash-ampersand-pound-comma-and-underscore-_-using-oracle-regexp/</guid>
		<description><![CDATA[We had a requirement to have the text fields to accept only alphanumeric and some special characters. I tried to use the Orcale Regular expression for this as follows - SELECT trim(REGEXP_REPLACE(REGEXP_REPLACE(&#8216;.-&#38;,_#HELLDS GjkjkO87&#38;%^^^^^^^^^^&#38;**&#8217;,&#8217;[^\\_\\sa-zA-Z0-9\\&#38;\\.\\,\\-]&#8216;,&#8217; &#8216;),&#8217; *&#8217;,&#8217; &#8216;)) FROM DUAL REGEXP_REPLACE takes the actual string as first argument pattern as the second argument and the replacement text [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=4&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We had a requirement to have the text fields to accept only alphanumeric and some special characters. I tried to use the Orcale Regular expression for this as follows -</p>
<p>SELECT trim(REGEXP_REPLACE(REGEXP_REPLACE(&#8216;.-&amp;,_#HELLDS GjkjkO87&amp;%^^^^^^^^^^&amp;**&#8217;,&#8217;[^\\_\\sa-zA-Z0-9\\&amp;\\.\\,\\-]&#8216;,&#8217; &#8216;),&#8217; *&#8217;,&#8217; &#8216;)) FROM DUAL</p>
<p>REGEXP_REPLACE takes the actual string as first argument<br />
pattern as the second argument<br />
and the replacement text  as the third argument</p>
<p>The first call to REGEXP_REPLACE replaces the unwanted characters to Spaces.<br />
and second call replaces the multiple white spaces to single white space.<br />
and lastly TRIM is applied to remove leading/ending white spaces.</p>
<p>SELECT trim(REGEXP_REPLACE(REGEXP_REPLACE(&#8216;.-&amp;,_#HELLDS GjkjkO87&amp;%^^^^^^^^^^&amp;**&#8217;,&#8217;[^\\_\\sa-zA-Z0-9\\&amp;\\.\\,\\-]&#8216;,&#8217; &#8216;),&#8217; *&#8217;,&#8217; &#8216;)) FROM DUAL</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vvishwa.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vvishwa.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vvishwa.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vvishwa.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vvishwa.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vvishwa.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vvishwa.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vvishwa.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vvishwa.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vvishwa.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vvishwa.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vvishwa.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vvishwa.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vvishwa.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vvishwa.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vvishwa.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=4&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vvishwa.wordpress.com/2008/08/15/removing-non-alpha-numeric-characters-except-period-dash-ampersand-pound-comma-and-underscore-_-using-oracle-regexp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5ec1fcfaa8dd1b25ecfa826fa0e0ecb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vvishwa</media:title>
		</media:content>
	</item>
		<item>
		<title>Current Time in Millis in C#</title>
		<link>http://vvishwa.wordpress.com/2008/08/08/current-time-in-millis-in-c/</link>
		<comments>http://vvishwa.wordpress.com/2008/08/08/current-time-in-millis-in-c/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 21:47:00 +0000</pubDate>
		<dc:creator>vvishwa</dc:creator>
				<category><![CDATA[.NET Development]]></category>

		<guid isPermaLink="false">http://vvishwa.wordpress.com/2008/08/08/current-time-in-millis-in-c/</guid>
		<description><![CDATA[In Java, we do System.currentTimeInMillis to get the current time in milliseconds. This returns a long value which can be used as an unique number. While developing .NET C# code, I tried to get the same, but I didn&#8217;t find any method/property that gives this value. After some research I found that we can get [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=3&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Java, we do System.currentTimeInMillis to get the current time in milliseconds. This returns a long value which can be used as an unique number. While developing .NET C# code, I tried to get the same, but I didn&#8217;t find any method/property that gives this value.<br />
After some research I found that we can get the same value using the following code -</p>
<p>long millis = (DateTime.UtcNow-new DateTime (1970, 1,1)).TotalMilliseconds;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vvishwa.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vvishwa.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vvishwa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vvishwa.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vvishwa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vvishwa.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vvishwa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vvishwa.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vvishwa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vvishwa.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vvishwa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vvishwa.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vvishwa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vvishwa.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vvishwa.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vvishwa.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vvishwa.wordpress.com&amp;blog=8384212&amp;post=3&amp;subd=vvishwa&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vvishwa.wordpress.com/2008/08/08/current-time-in-millis-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5ec1fcfaa8dd1b25ecfa826fa0e0ecb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vvishwa</media:title>
		</media:content>
	</item>
	</channel>
</rss>
