<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DUMGQHo_eCp7ImA9WhRRFE4.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654</id><updated>2011-11-27T15:43:41.440-08:00</updated><category term="Using sysprep" /><category term="Gparted Live CD" /><category term="Windows Vista Business" /><title>Dilip's BLOG</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://yogidilip.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/DilipsBlog" /><feedburner:info uri="dilipsblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CE4HSH45fSp7ImA9WxBWGE8.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-5036700509848435980</id><published>2010-02-10T09:22:00.000-08:00</published><updated>2010-02-10T09:28:59.025-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-10T09:28:59.025-08:00</app:edited><title>Simple Annotation Based Spring Controller</title><content type="html">The example below shows a simple annotation based spring contoller. Efforts has been made to keep the example as simple as possible.&lt;br /&gt;
&lt;br /&gt;
1) Create a dynamic project in Eclipse ( used here is STS- Spring Source Toolsuite)&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_PCd3cJVQlPY/S3LcUNA4gkI/AAAAAAAAA2w/aiekXKcshzI/s1600-h/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_PCd3cJVQlPY/S3LcUNA4gkI/AAAAAAAAA2w/aiekXKcshzI/s320/1.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;
2) Jars needed: Place them in the WEB-INF/lib directory.&lt;br /&gt;
spring-webmvc&lt;br /&gt;
spring.jar&lt;br /&gt;
spring-context.jar&lt;br /&gt;
commons-logging.jar&lt;br /&gt;
jstl.jar&lt;br /&gt;
3) Create a controller in the src directory.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;span style="color: black; font-weight: bold;"&gt;package&lt;/span&gt; &lt;span style="color: #006699;"&gt;com.yogi.test.Controller&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style="color: black; font-weight: bold;"&gt;import&lt;/span&gt; &lt;span style="color: #006699;"&gt;javax.servlet.http.HttpServletRequest&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;
&lt;span style="color: black; font-weight: bold;"&gt;import&lt;/span&gt; &lt;span style="color: #006699;"&gt;javax.servlet.http.HttpSession&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style="color: black; font-weight: bold;"&gt;import&lt;/span&gt; &lt;span style="color: #006699;"&gt;org.springframework.stereotype.Controller&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;
&lt;span style="color: black; font-weight: bold;"&gt;import&lt;/span&gt; &lt;span style="color: #006699;"&gt;org.springframework.web.bind.annotation.RequestMapping&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;
&lt;span style="color: black; font-weight: bold;"&gt;import&lt;/span&gt; &lt;span style="color: #006699;"&gt;org.springframework.web.servlet.ModelAndView&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;@Controller
&lt;span style="color: black; font-weight: bold;"&gt;public&lt;/span&gt; &lt;span style="color: black; font-weight: bold;"&gt;class&lt;/span&gt; TestController &lt;span style="color: #009900;"&gt;{&lt;/span&gt;
 @RequestMapping&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"/HelloWorld.htm"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;
 &lt;span style="color: black; font-weight: bold;"&gt;protected&lt;/span&gt; ModelAndView onSubmit&lt;span style="color: #009900;"&gt;(&lt;/span&gt;HttpServletRequest request, HttpSession session&lt;span style="color: #009900;"&gt;)&lt;/span&gt; &lt;span style="color: black; font-weight: bold;"&gt;throws&lt;/span&gt; &lt;span style="color: #003399; font-weight: bold;"&gt;Exception&lt;/span&gt; &lt;span style="color: #009900;"&gt;{&lt;/span&gt;
&amp;nbsp;
  &lt;span style="color: black; font-weight: bold;"&gt;return&lt;/span&gt; &lt;span style="color: black; font-weight: bold;"&gt;new&lt;/span&gt; ModelAndView&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"helloworld.jsp"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;
 &lt;span style="color: #009900;"&gt;}&lt;/span&gt;
&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;span style="color: #009900;"&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;4) Update web.xml&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #009900;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; white-space: normal;"&gt;

&lt;pre class="xml"&gt;&amp;lt;?xmlversion="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"&amp;gt;
  &amp;lt;display-name&amp;gt;MySpringMVC&amp;lt;/display-name&amp;gt;
  &amp;lt;welcome-file-list&amp;gt;
    &amp;lt;welcome-file&amp;gt;index.html&amp;lt;/welcome-file&amp;gt;
  &amp;lt;/welcome-file-list&amp;gt;
 
  &amp;lt;servlet&amp;gt;
    &amp;lt;servlet-name&amp;gt;MySpringMVC&amp;lt;/servlet-name&amp;gt;
    &amp;lt;servlet-class&amp;gt;org.springframework.web.servlet.DispatcherServlet&amp;lt;/servlet-class&amp;gt;
    &amp;lt;load-on-startup&amp;gt;1&amp;lt;/load-on-startup&amp;gt;
  &amp;lt;/servlet&amp;gt;
 
 
  &amp;lt;servlet-mapping&amp;gt;
    &amp;lt;servlet-name&amp;gt;MySpringMVC&amp;lt;/servlet-name&amp;gt;
    &amp;lt;url-pattern&amp;gt;*.htm&amp;lt;/url-pattern&amp;gt;
  &amp;lt;/servlet-mapping&amp;gt;
&amp;lt;/web-app&amp;gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;span style="color: #009900;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; white-space: normal;"&gt;

&lt;pre class="xml" style="font-family: monospace;"&gt;&lt;span style="color: #009900;"&gt;&lt;span style="color: black; font-weight: bold;"&gt;&lt;span style="color: black; font-weight: bold;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="xml"&gt;5) Creat the application context in WEB-INF (in this case MySpringMVC-servlet.xml)&lt;/pre&gt;&lt;pre class="xml"&gt;&lt;/pre&gt;&lt;pre class="xml"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:p="http://www.springframework.org/schema/p"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans 
       http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.springframework.org/schema/util 
       http://www.springframework.org/schema/util/spring-util-2.0.xsd"&amp;gt;
 
   &amp;lt;!--====================================================--&amp;gt;
   &amp;lt;!-- URL Handler Mappings--&amp;gt;
 &amp;lt;!--++++++++++++++++++++++++++++++++++++++++++++++++++++--&amp;gt;
  &amp;lt;bean id="urlMapping" 
      class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"&amp;gt;
    &amp;lt;property name="alwaysUseFullPath" value="true"/&amp;gt;
    &amp;lt;property name="mappings"&amp;gt;
      &amp;lt;props&amp;gt; 
  &amp;lt;prop key="/HelloWorld.htm"&amp;gt;helloWorldController&amp;lt;/prop&amp;gt;
      &amp;lt;/props&amp;gt;
    &amp;lt;/property&amp;gt;
  &amp;lt;/bean&amp;gt;
 
  &amp;lt;!--====================================================--&amp;gt;
   &amp;lt;!-- View Resolver --&amp;gt;
 &amp;lt;!--++++++++++++++++++++++++++++++++++++++++++++++++++++--&amp;gt;
 &amp;lt;bean id="view-Resolver"  class="org.springframework.web.servlet.view.InternalResourceViewResolver"&amp;gt;
   &amp;lt;property name="viewClass"&amp;gt;
      &amp;lt;value&amp;gt;org.springframework.web.servlet.view.JstlView&amp;lt;/value&amp;gt;
   &amp;lt;/property&amp;gt;
&amp;lt;/bean&amp;gt;
 
  &amp;lt;bean id="helloWorldController" class="com.yogi.test.Controller.TestController" /&amp;gt;
 
&amp;lt;/beans&amp;gt;&lt;/pre&gt;&lt;pre class="xml"&gt;&lt;/pre&gt;&lt;pre class="xml"&gt;&lt;b&gt;6) Create JSP in Web-Content&lt;/b&gt;&lt;/pre&gt;&lt;pre class="xml"&gt;&lt;/pre&gt;&lt;pre class="xml"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;

&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;span style="color: #339933;"&gt;&lt;/span&gt;
&lt;span style="color: #339933;"&gt;&lt;/span&gt;DOCTYPE html PUBLIC &lt;span style="color: blue;"&gt;"-//W3C//DTD HTML 4.01 Transitional//EN"&lt;/span&gt; &lt;span style="color: blue;"&gt;"http://www.w3.org/TR/html4/loose.dtd"&lt;/span&gt;&lt;span style="color: #339933;"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt;html&lt;span style="color: #339933;"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt;head&lt;span style="color: #339933;"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt;meta http-equiv=&lt;span style="color: blue;"&gt;"Content-Type"&lt;/span&gt; content=&lt;span style="color: blue;"&gt;"text/html; charset=ISO-8859-1"&lt;/span&gt;&lt;span style="color: #339933;"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt;title&lt;span style="color: #339933;"&gt;&amp;gt;&lt;/span&gt;Insert title here&lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt;/title&lt;span style="color: #339933;"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt;/head&lt;span style="color: #339933;"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt;body&lt;span style="color: #339933;"&gt;&amp;gt;&lt;/span&gt;
MY FIRST SPRING MVC APPLICATION.
&lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt;/body&lt;span style="color: #339933;"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color: #339933;"&gt;&amp;lt;&lt;/span&gt;/html&lt;span style="color: #339933;"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;span style="color: #339933;"&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;7) Build and Run the application. (Right click and click on Run As --&amp;gt; Run on Server)&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;8) The package explorer should look something like this: &lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_PCd3cJVQlPY/S3LsZSGR4KI/AAAAAAAAA3A/Iv23Jn8gi4M/s1600-h/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_PCd3cJVQlPY/S3LsZSGR4KI/AAAAAAAAA3A/Iv23Jn8gi4M/s320/2.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;/pre&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;pre class="java5" style="font-family: monospace;"&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-5036700509848435980?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/olOxZaeRjr6K7s-mDmXlJb9EBzU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/olOxZaeRjr6K7s-mDmXlJb9EBzU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/olOxZaeRjr6K7s-mDmXlJb9EBzU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/olOxZaeRjr6K7s-mDmXlJb9EBzU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/ZMbIuefezpo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/5036700509848435980/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=5036700509848435980" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/5036700509848435980?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/5036700509848435980?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/ZMbIuefezpo/simple-annotation-based-spring.html" title="Simple Annotation Based Spring Controller" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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://1.bp.blogspot.com/_PCd3cJVQlPY/S3LcUNA4gkI/AAAAAAAAA2w/aiekXKcshzI/s72-c/1.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yogidilip.blogspot.com/2010/02/simple-annotation-based-spring.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IDSHo5fCp7ImA9WxNRFE8.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-7460968076510235474</id><published>2009-09-08T08:30:00.000-07:00</published><updated>2009-09-08T08:59:39.424-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-08T08:59:39.424-07:00</app:edited><title>EJB and Hibernate notes</title><content type="html">&lt;span style="font-weight: bold;"&gt;EJB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*Session Bean -- stateful and stateless&lt;br /&gt;* Entity Bean&lt;br /&gt;* Message Driven Bean&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;EJB Architecture&lt;/span&gt;&lt;br /&gt;* A remote interface -- a client interacts with it&lt;br /&gt;* A home interface -- used for creating objects and for declaring business methods&lt;br /&gt;* A bean object -- an object which actually performs business logi cna EJB-specific operations&lt;br /&gt;* A deployment descriptor -- ( an XML file containing all information required for maintaining        the EJB) or a set of deployment desciptor.&lt;br /&gt;* A primary key class - is only entity bean specific.&lt;br /&gt;&lt;br /&gt;[http://www.comptechdoc.org/docs/kanti/ejb/ejbarchitecture.html]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Entity Bean&lt;/span&gt;&lt;br /&gt;* represent data in the database.&lt;br /&gt;* most of the time container takes care of the persistence, transaction and access control while developer can focus on the bean logic.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Container Managed Bean&lt;/span&gt;&lt;br /&gt;* all the logic for synchronizing the bean's state with the database is handled automatically by the container.&lt;br /&gt;* developer does not need to write any data access logic.&lt;br /&gt;* container takes care of persistence.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Bean Managed Persistence&lt;/span&gt;&lt;br /&gt;* developer can handle the persistence if needed.&lt;br /&gt;* developer can handle the data source.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ORM&lt;/span&gt;&lt;br /&gt;ORM is the automated persistence of objects in Java application to the tables in a relational database.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Hibernate&lt;/span&gt;&lt;br /&gt;*persistence framework&lt;br /&gt;*pure java object relational mapping.&lt;br /&gt;*maps POJO to relational database tables.&lt;br /&gt;*relieves developr from persistence related programming task.&lt;br /&gt;*hibernate.cfg.xml - hibernate configuration file&lt;br /&gt;* *.hbm.xml -- mapping file, tells which tables and columns to use to load and store objects.&lt;br /&gt;*hibernate.properties - resource bundle&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;session&lt;/span&gt;&lt;br /&gt;*light-weight and non-threadsafe object&lt;br /&gt;*sessionFacotry creates session and then closes it once work is done.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Hibernate Persistent Class (Hibernate Bean)&lt;/span&gt;&lt;br /&gt;* just another regular bean class.&lt;br /&gt;* setters and getters, no arg constructor&lt;br /&gt;* can override the equals() and hashcode() methods.&lt;br /&gt;* the persistent class should not be final.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-7460968076510235474?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OW9tHXq7Uh9HjK4ky2pWMPvG3MQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OW9tHXq7Uh9HjK4ky2pWMPvG3MQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/OW9tHXq7Uh9HjK4ky2pWMPvG3MQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OW9tHXq7Uh9HjK4ky2pWMPvG3MQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/W6dZyey9J2Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/7460968076510235474/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=7460968076510235474" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7460968076510235474?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7460968076510235474?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/W6dZyey9J2Q/ejb-and-hibernate-notes.html" title="EJB and Hibernate notes" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2009/09/ejb-and-hibernate-notes.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEICRnY4eip7ImA9WxBXGE4.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-5598714809466231709</id><published>2009-09-08T07:31:00.000-07:00</published><updated>2010-01-29T23:29:27.832-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-29T23:29:27.832-08:00</app:edited><title>JDBC and Database related notes</title><content type="html">&lt;span style="font-weight: bold;"&gt;JDBC Connection steps&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
* loading driver class - Class.ForName("driver class").newInstance();&lt;br /&gt;
* Connection - Connection con =                                                                                                                      DriverManager.getConnection("databaseurl","username","passwprd");&lt;br /&gt;
* statement - Statement stmt = con.CreateStatement();&lt;br /&gt;
* execute sql - stmt.executeQuery("query");&lt;br /&gt;
* get data from resultset - rst.getString("column_name");&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Auto Commit&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
con.setAutoCommit(false);&lt;br /&gt;
.........................&lt;br /&gt;
.........................&lt;br /&gt;
(transaction statements)&lt;br /&gt;
.........................&lt;br /&gt;
.........................&lt;br /&gt;
con.setAutoCommit(true);&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;Calling Stored Procedure&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre class="cpp" name="code"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;"&gt;
&lt;pre class="java" style="font-family: monospace;"&gt;&lt;span style="color: #003399;"&gt;CallableStatement&lt;/span&gt; cs &lt;span style="color: #339933;"&gt;=&lt;/span&gt; con.&lt;span style="color: #006633;"&gt;prepareCall&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;"call show_supplier"&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/span&gt;
&lt;pre class="brush: java"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, mono; font-size: 12px; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace; font-size: medium;"&gt;Resultset rs &lt;span style="color: #339933;"&gt;=&lt;/span&gt; cs.&lt;span style="color: #006633;"&gt;executeQuery&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, mono; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; white-space: pre;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="brush: java"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, mono; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, mono; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="brush: java"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, mono; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;span style="font-weight: bold;"&gt;Warnings(SQL)&lt;/span&gt;

To handle sql warning connection, statement, resultset each object can invoke a method called getwarning. [con.getWarning();]

&lt;span style="font-weight: bold;"&gt;JDBC driver types&lt;/span&gt;

Type1:- JDBC-ODBC bridge
Type2:- Native API partly Java Driver
Type3:- Network Protocol Driver
Type4:- JDBC Net pure Java Driver

&lt;span style="font-weight: bold;"&gt;Logging JDBC&lt;/span&gt;

DriverManager.println();

&lt;span style="font-weight: bold;"&gt;SQL Locator&lt;/span&gt;
A locator is a SQL3 datatype that acts as a logical pointer to data. Used to handle- array, blob and clob data.

&lt;span style="font-weight: bold;"&gt;Transaction Isolation Level&lt;/span&gt;
* 4 levels
* Connection.setIsolationLevel()
* Isolation Levels
TRANSACTION_READ_UNCOMMITTED
TRANSACTOIN_READ_COMMITTED
TRANSACTION_REPEATABLE_READ
TRANSACTION_SERIALIZABLE

&lt;span style="font-weight: bold;"&gt;Anomalies&lt;/span&gt;
* Dirty Reads
* Non-repeatable reads
* Phantom reads

&lt;span style="font-weight: bold;"&gt;Metadata&lt;/span&gt;
* two important classes : DatabaseMetaData and ResultsetMetaData
DatabaseMetaData.getImportedKeys() returns a resultset with data about foreign keys etc.


&lt;span style="font-weight: bold;"&gt;Locking&lt;/span&gt;
Pessimistic Locking: - good for data integrity, bad for concurrency, defensive approach, lock the data and always expect that someone can access the interim data before it gets updated.

optimistic Locking:- exptects that a clash between multiple updates to the same data will seldom occur.

&lt;span style="font-weight: bold;"&gt;batch updating&lt;/span&gt;
stmt.addBatch(SQL statment here);
stmt.addBatch(SQL statment here);
stmt.addBatch(SQL statment here);
................................
................................
stmt.executeBatch();
stmt.clearBatch();&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-5598714809466231709?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MzbW877VpiIHijBv5opMx2_AB68/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MzbW877VpiIHijBv5opMx2_AB68/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MzbW877VpiIHijBv5opMx2_AB68/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MzbW877VpiIHijBv5opMx2_AB68/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/0NpHPeNsAag" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/5598714809466231709/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=5598714809466231709" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/5598714809466231709?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/5598714809466231709?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/0NpHPeNsAag/jdbc-and-database-related-notes.html" title="JDBC and Database related notes" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2009/09/jdbc-and-database-related-notes.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUADRH8zfSp7ImA9WxJbFUg.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-4314777711311606088</id><published>2009-07-25T10:39:00.000-07:00</published><updated>2009-07-25T14:36:15.185-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-25T14:36:15.185-07:00</app:edited><title>JDK and JRE version conflict: major.minor version 50.0</title><content type="html">The error mentioned above in the post heading is a frequent arrival when different version of jdk and jre conflict. This error occurs when somebody compiles a program with higher version of javac and tries to run with lower version of jre or vice-versa.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#javac -version &lt;/span&gt;&lt;br /&gt;javac 1.6_0_10&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#java -version&lt;/span&gt;&lt;br /&gt;java version "1.3.1_01"&lt;br /&gt;java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)&lt;br /&gt;Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)&lt;br /&gt;&lt;br /&gt;Solution - Temp&lt;br /&gt;&lt;br /&gt;1. Download Jre1.6 or whatever version same as the javac version.&lt;br /&gt;2. Manually set path to the new jre.&lt;br /&gt;3. open a command window and type&lt;br /&gt;&lt;br /&gt;#set path="C:\Program Files\Java\jre1.6_0_10\bin";&lt;br /&gt;&lt;br /&gt;3. Now, for this session of the cmd window whenever you invoke java -- new jre will be invoked.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-4314777711311606088?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7lkCABdOS2huUv566Lf5OnlTRtE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7lkCABdOS2huUv566Lf5OnlTRtE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7lkCABdOS2huUv566Lf5OnlTRtE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7lkCABdOS2huUv566Lf5OnlTRtE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/7o5XdU2cAos" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/4314777711311606088/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=4314777711311606088" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/4314777711311606088?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/4314777711311606088?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/7o5XdU2cAos/jdk-and-jre-version-conflict-majorminor.html" title="JDK and JRE version conflict: major.minor version 50.0" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2009/07/jdk-and-jre-version-conflict-majorminor.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUHRHo9eCp7ImA9WxJbFEs.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-7376480029555651717</id><published>2009-07-19T13:59:00.000-07:00</published><updated>2009-07-24T12:37:15.460-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-24T12:37:15.460-07:00</app:edited><title>Hibernate</title><content type="html">Few hibernate tutorials:&lt;br /&gt;&lt;br /&gt;1. &lt;a href="https://www.hibernate.org/"&gt;https://www.hibernate.org&lt;/a&gt;&lt;a href="https://www.hibernate.org/hib_docs/tools/viewlets/createcfgxml_viewlet_swf.html"&gt;  &lt;/a&gt;(Hibernate core and annotations downloads)&lt;br /&gt;2. &lt;a href="https://www.hibernate.org/255.html"&gt;https://www.hibernate.org/255.html&lt;/a&gt; (Hibernate Eclipse Plugin)&lt;br /&gt;3.&lt;a href="https://www.hibernate.org/hib_docs/tools/viewlets/createcfgxml_viewlet_swf.html"&gt;https://www.hibernate.org/hib_docs/tools/viewlets/createcfgxml_viewlet_swf.html&lt;/a&gt; (introductory video)&lt;br /&gt;4. &lt;a href="http://www.roseindia.net/hibernate/firstexample.shtml"&gt;http://www.roseindia.net/hibernate/firstexam&lt;/a&gt;&lt;a href="http://www.roseindia.net/hibernate/firstexample.shtml"&gt;ple.shtml&lt;/a&gt; (First example)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;A simple Hibernate implementation with a POJO object. &lt;/span&gt;(Eclipse)&lt;br /&gt;&lt;br /&gt;Step1:&lt;br /&gt;** Create a simple Java project in eclipse.&lt;br /&gt;** Configure the build path and add hibernate.jar and mysql-connector-driver.jar in it.&lt;br /&gt;**Further include all the required jar files. (see the hibernate distribution and all the jar files that are in the required folder.)&lt;br /&gt;** Download sl4j from &lt;a href="http://www.slf4j.org/download.html"&gt;http://www.slf4j.org/download.html&lt;/a&gt; and include any one of(and only one)  &lt;em&gt;slf4j-nop.jar&lt;/em&gt;, &lt;em&gt;slf4j-simple.jar&lt;/em&gt;,     &lt;em&gt;slf4j-log4j12.jar&lt;/em&gt;, &lt;em&gt;slf4j-jdk14.jar&lt;/em&gt; or     &lt;em&gt;logback-classic.jar &lt;/em&gt;in the build path.&lt;br /&gt;**** Be very careful not to mix different version of sl4j. Use the same version of sl4j-api.jar and any one of the above mentioned jar files. If mixed an error will occur that read:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON       from class org.slf4j.LoggerFactory   at org.slf4j.LoggerFactory.&lt;clinit&gt;(LoggerFactory.java&lt;/clinit&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;clinit&gt;:60)&lt;/clinit&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;clinit&gt;&lt;br /&gt;** &lt;/clinit&gt;&lt;/span&gt;The Java build path libraries should look like:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PCd3cJVQlPY/SmoILbGB5RI/AAAAAAAAAuY/cDkQHNIaFNQ/s1600-h/Hibernate1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 250px;" src="http://3.bp.blogspot.com/_PCd3cJVQlPY/SmoILbGB5RI/AAAAAAAAAuY/cDkQHNIaFNQ/s320/Hibernate1.JPG" alt="" id="BLOGGER_PHOTO_ID_5362107298682627346" border="0" /&gt;&lt;/a&gt;5. Now create a JavaBean. This bean maps to a table called user which stores id, username and password information in a mysql database.&lt;br /&gt;&lt;br /&gt;package yogidilip.tutorial;&lt;br /&gt;&lt;br /&gt;public class HibernateBean {&lt;br /&gt;&lt;br /&gt; private String username;&lt;br /&gt; private String password;&lt;br /&gt; private long id;&lt;br /&gt;&lt;br /&gt; public String getUsername() {&lt;br /&gt;     return username;&lt;br /&gt; }&lt;br /&gt; public void setUsername(String username) {&lt;br /&gt;     this.username = username;&lt;br /&gt; }&lt;br /&gt; public String getPassword() {&lt;br /&gt;     return password;&lt;br /&gt; }&lt;br /&gt; public void setPassword(String password) {&lt;br /&gt;     this.password = password;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;  public long getId() {&lt;br /&gt;         return id;&lt;br /&gt;     }&lt;br /&gt;     public void setId(long id) {&lt;br /&gt;         this.id = id;&lt;br /&gt;     }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;6. Create a bean implementation class. This is the man hibernate implementation class. It uses the session factory to read the hibernate configuration file and opens the connection to the database.&lt;br /&gt;&lt;br /&gt;package yogidilip.tutorial;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import org.hibernate.MappingException;&lt;br /&gt;import org.hibernate.Session;&lt;br /&gt;import org.hibernate.SessionFactory;&lt;br /&gt;import org.hibernate.cfg.Configuration;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class HibernateImpl {&lt;br /&gt;&lt;br /&gt;public static void main(String[] args) throws MappingException {&lt;br /&gt; Session session = null;&lt;br /&gt;&lt;br /&gt; try{&lt;br /&gt; //this step will read hibernate.cfg.xml&lt;br /&gt; SessionFactory sessionfactory = new Configuration().configure().buildSessionFactory();&lt;br /&gt; session = sessionfactory.openSession();&lt;br /&gt;&lt;br /&gt; //Create new instance of user and set values in it by reading them from form object&lt;br /&gt;&lt;br /&gt; System.out.println("Inserting Record");&lt;br /&gt; HibernateBean user = new HibernateBean();&lt;br /&gt; user.setId(7);&lt;br /&gt; user.setUsername("Dilip");&lt;br /&gt; user.setPassword("Rachana");&lt;br /&gt; session.save(user);&lt;br /&gt; /*session.beginTransaction().commit();*/&lt;br /&gt; System.out.println("Done");&lt;br /&gt; }&lt;br /&gt; catch(Exception e){&lt;br /&gt;  System.out.println(e);&lt;br /&gt; }&lt;br /&gt; finally{&lt;br /&gt;     session.flush();&lt;br /&gt;     session.close();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;7. Create a hibernate.cfg.xml file in the src directory. This file will contain all the database related connection information.&lt;br /&gt;&lt;hibernate-configuration&gt;&lt;session-factory&gt;&lt;property name="hibernate.hbm2ddl.auto"&gt;&lt;/property&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"&lt;br /&gt;                                       "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&amp;gt;&lt;br /&gt;&amp;lt;hibernate-configuration&amp;gt;&lt;br /&gt;&amp;lt;session-factory&amp;gt;&lt;br /&gt;&amp;lt;property name="hibernate.connection.driver_class"&amp;gt;com.mysql.jdbc.Driver&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="hibernate.connection.url"&amp;gt;jdbc:mysql://localhost/User&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="hibernate.connection.username"&amp;gt;root&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="hibernate.connection.password"&amp;gt;admin&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="show_sql"&amp;gt;true&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="dialect"&amp;gt;org.hibernate.dialect.MySQLDialect&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="hibernate.hbm2ddl.auto"&amp;gt;update&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;!--&amp;lt;property name="hibernate.dialect"&amp;gt;org.hibernate.dialect.MySQLDialect&amp;lt;/property&amp;gt;&lt;br /&gt;--&amp;gt;&amp;lt;mapping resource="user.hbm.xml"/&amp;gt;&lt;br /&gt;&amp;lt;/session-factory&amp;gt;&lt;br /&gt;&amp;lt;/hibernate-configuration&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;!--&lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;&lt;br /&gt;  --&gt;&lt;mapping resource="user.hbm.xml"&gt;&lt;/mapping&gt;&lt;/session-factory&gt;&lt;br /&gt;&lt;!-- &lt;hibernate-configuration&gt;&lt;session-factory&gt;&lt;mapping resource="user.hbm.xml"&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;br /&gt;&lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"                                          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;&lt;br /&gt;&lt;hibernate-configuration&gt;&lt;br /&gt; &lt;session-factory&gt;&lt;br /&gt;  &lt;property name="hibernate.connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;&lt;br /&gt;  &lt;property name="hibernate.connection.url"&gt;jdbc:mysql://localhost/User&lt;/property&gt;&lt;br /&gt;  &lt;property name="hibernate.connection.username"&gt;root&lt;/property&gt;&lt;br /&gt;  &lt;property name="hibernate.connection.password"&gt;admin&lt;/property&gt;&lt;br /&gt;  &lt;property name="show_sql"&gt;true&lt;/property&gt;&lt;br /&gt;  &lt;property name="dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;&lt;br /&gt;  &lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt;&lt;br /&gt;  &lt;!--&lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;&lt;br /&gt;  --&gt;&lt;mapping resource="user.hbm.xml"&gt;8. The actual ORM mapping file user.hbm.xml should look like.&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE hibernate-mapping PUBLIC&lt;br /&gt;  "-//Hibernate/Hibernate Mapping DTD 3.0//EN"&lt;br /&gt;  "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"&amp;gt;&lt;br /&gt;&amp;lt;hibernate-mapping&amp;gt;&lt;br /&gt;&amp;lt;class name="yogidilip.tutorial.HibernateBean" table="USER"&amp;gt;&lt;br /&gt;     &amp;lt;id name="id" type="long" column="ID" &amp;gt;&lt;br /&gt;     &amp;lt;generator class="assigned"/&amp;gt;&lt;br /&gt;    &amp;lt;/id&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;property name="username"&amp;gt;&lt;br /&gt;       &amp;lt;column name="USERNAME" /&amp;gt;&lt;br /&gt;    &amp;lt;/property&amp;gt;&lt;br /&gt;    &amp;lt;property name="password"&amp;gt;&lt;br /&gt;      &amp;lt;column name="PASSWORD"/&amp;gt;&lt;br /&gt;    &amp;lt;/property&amp;gt;&lt;br /&gt; &amp;lt;/class&amp;gt;&lt;br /&gt;&amp;lt;/hibernate-mapping&amp;gt;&lt;br /&gt;&lt;hibernate-mapping&gt;&lt;class name="yogidilip.tutorial.HibernateBean" table="USER"&gt;&lt;id name="id" type="long" column="ID"&gt;&lt;generator class="assigned"&gt;&lt;/generator&gt;&lt;property name="username"&gt;&lt;column name="USERNAME"&gt;&lt;/column&gt;&lt;property name="password"&gt;&lt;column name="PASSWORD"&gt;&lt;/column&gt;&lt;/property&gt;&lt;/property&gt;&lt;br /&gt;9. The mysql syntax for creating the database and table user should look like.&lt;br /&gt;&lt;br /&gt;CREATE DATABASE User;&lt;br /&gt;&lt;br /&gt;CREATE TABLE user (&lt;br /&gt;id INT NOT NULL AUTO_INCREMENT ,&lt;br /&gt;username VARCHAR( 255 ) NOT NULL ,&lt;br /&gt;password VARCHAR( 255 ) NOT NULL ,&lt;br /&gt;PRIMARY KEY ( id )&lt;br /&gt;) TYPE = INNODB;&lt;br /&gt;&lt;br /&gt;10. To run the example the HibernateImpl.java file can be run as a regular Java program. If everything goes well you should be able to see a success message that looks like.&lt;br /&gt;&lt;br /&gt;log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).&lt;br /&gt;log4j:WARN Please initialize the log4j system properly.&lt;br /&gt;Inserting Record&lt;br /&gt;Done&lt;br /&gt;Hibernate: insert into USER (USERNAME, PASSWORD, ID) values (?, ?, ?)&lt;br /&gt;&lt;br /&gt;11. &lt;span style="font-weight: bold;"&gt;This post is a modified version of the tutorial &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;a href="http://www.roseindia.net/hibernate/firstexample.shtml"&gt;http://www.roseindia.net/hibernate/firstexample.shtml&lt;/a&gt; at &lt;a href="http://www.roseindia.net"&gt;roseindia.net&lt;/a&gt; . All the credit goes to the author of the above tutorial. &lt;/span&gt;&lt;br /&gt;&lt;/id&gt;&lt;/class&gt;&lt;/hibernate-mapping&gt;&lt;/mapping&gt;&lt;/hibernate-configuration&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-7376480029555651717?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HcgyZfbimnVlFiev55W5RaJncoY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HcgyZfbimnVlFiev55W5RaJncoY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HcgyZfbimnVlFiev55W5RaJncoY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HcgyZfbimnVlFiev55W5RaJncoY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/y8gQB_cfFjg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/7376480029555651717/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=7376480029555651717" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7376480029555651717?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7376480029555651717?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/y8gQB_cfFjg/hibernate.html" title="Hibernate" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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/_PCd3cJVQlPY/SmoILbGB5RI/AAAAAAAAAuY/cDkQHNIaFNQ/s72-c/Hibernate1.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yogidilip.blogspot.com/2009/07/hibernate.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIAQnk6cSp7ImA9WxJVF04.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-7412376954443151409</id><published>2009-07-04T12:33:00.000-07:00</published><updated>2009-07-04T12:42:23.719-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-04T12:42:23.719-07:00</app:edited><title>Weblogic Tutorial</title><content type="html">Collection of some Weblogic Tutorials.&lt;br /&gt;&lt;br /&gt;1. &lt;a href="http://edocs.bea.com/wls/docs70/adminguide/startstop.html"&gt;http://edocs.bea.com/wls/docs70/adminguide/startstop.html&lt;/a&gt;   -- Starting and Stopping server.&lt;br /&gt;2. &lt;a href="http://egeneration.beasys.com/platform/docs81/confgwiz/index.html"&gt;http://egeneration.beasys.com/platform/docs81/confgwiz/index.html &lt;/a&gt;-- Configuring domains and templates.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-7412376954443151409?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bc3x3nDv1Jjq2ANFO0LAExPnjeY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bc3x3nDv1Jjq2ANFO0LAExPnjeY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bc3x3nDv1Jjq2ANFO0LAExPnjeY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bc3x3nDv1Jjq2ANFO0LAExPnjeY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/aq-mSB__xbk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/7412376954443151409/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=7412376954443151409" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7412376954443151409?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7412376954443151409?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/aq-mSB__xbk/weblogic-tutorial.html" title="Weblogic Tutorial" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2009/07/weblogic-tutorial.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0cCSXc-eCp7ImA9WxJXEEo.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-6085918939787824480</id><published>2009-06-03T15:37:00.000-07:00</published><updated>2009-06-03T16:17:48.950-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-03T16:17:48.950-07:00</app:edited><title>Java Spring Framework</title><content type="html">Some tutorials to start with :&lt;br /&gt;&lt;br /&gt;* &lt;a href="http://www.javabeat.net/articles/71-introduction-to-spring-web-framework-1.html"&gt;http://www.javabeat.net/articles/71-introduction-to-spring-web-framework-1.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-6085918939787824480?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DMG_5hvrT5fDI58Uf2BbfUhRLBs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DMG_5hvrT5fDI58Uf2BbfUhRLBs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DMG_5hvrT5fDI58Uf2BbfUhRLBs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DMG_5hvrT5fDI58Uf2BbfUhRLBs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/Quy38c_JJ3A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/6085918939787824480/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=6085918939787824480" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/6085918939787824480?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/6085918939787824480?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/Quy38c_JJ3A/java-spring-framework.html" title="Java Spring Framework" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2009/06/java-spring-framework.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0ECSHo4fCp7ImA9WxJTEE8.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-6640008829226931276</id><published>2009-04-11T01:22:00.001-07:00</published><updated>2009-04-17T20:34:29.434-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-17T20:34:29.434-07:00</app:edited><title>Java Interview Questions</title><content type="html">For the past few days I have been reading a lot about probable java interview questions. Finally, I thought to share it and here is what I have got. For now I will add some fundamental questions and answers and keep the post updating as I come across more. I have tried to put the answer as brief as possible so as it would be easy to remember. Answers here are taken from different Java books one being "The Complete Reference".&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Fundamentals:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;class: a template for object.&lt;br /&gt;object: instance of a class.&lt;br /&gt;constructor: initializes an object immediately upon creation.&lt;br /&gt;&lt;br /&gt;Data Types:&lt;br /&gt;Primitive: byte, short, int, long, char, float, double, and boolean&lt;br /&gt;byte:- 8 bit&lt;br /&gt;short:- 16 bit&lt;br /&gt;int :-  32 bit&lt;br /&gt;long:- 64 bit&lt;br /&gt;float:- 32 bit&lt;br /&gt;double:-64 bit&lt;br /&gt;&lt;br /&gt;char:- 16 bit; 8 bit in C/C++; represents unicode.&lt;br /&gt;&lt;br /&gt;final variable: value never changes&lt;br /&gt;final method: can't be overridden&lt;br /&gt;final class: can't be extended; all methods are implicitly final&lt;br /&gt;&lt;br /&gt;access modifiers: public, private, protected&lt;br /&gt;public: accessible by any other code.&lt;br /&gt;private: is not accessible outside the class.&lt;br /&gt;protected: seen outside the current package, but only to classes that subclass the class directly.&lt;br /&gt;default: accessible in the same package.&lt;br /&gt;&lt;br /&gt;static: any member declared static can be accessed before any object of its class are created, and without reference to any object. If a field or method is defined as static then there is only one copy for entire class rather than one copy for each instance. Static methods cannot access non-static field or call non-static method.&lt;br /&gt;&lt;br /&gt;static variables: usually global variables; no copy is made&lt;br /&gt;static methods: can only call other static methods; must only access static dta; cannot refer to this or super.&lt;br /&gt;&lt;br /&gt;abstract class: cannot be instansitaed but can be extended.&lt;br /&gt;abstract methods: with no method body, should be inside and abstract class.&lt;br /&gt;Interface: abstract class with only abstract methods.&lt;br /&gt;&lt;br /&gt;polymorphism: one interface, multiple methods&lt;br /&gt;method overloading: parameter defines the method implementation.&lt;br /&gt;method overriding: in inheritance; subclass overrides the superclass's method with same signature and parameter; name and type signature hast to be same or else they will be just overloaded.&lt;br /&gt;&lt;br /&gt;super(): calls the constructor of the superclass&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Advanced Java:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;finalize() : free resources captured by any Java object.&lt;br /&gt;&lt;br /&gt;Object Serialization: Writing an object and re-constructing the same object back in the exact form is known as object serialization. Object serialization is used in Remote Method Invocation (RMI)--communication between objects via sockets and for lightweight persistence--the archival of an object for use in a later invocation of the same program which is possible through JDBC. Serialization can be done with the helo of the interface Serializable.&lt;br /&gt;&lt;br /&gt;Serialization: mechanism by which user can save the state of an object by converting it to a byte stream.&lt;br /&gt;&lt;br /&gt;Connection Pool: Connection pool is about an application server storing the database connection information in order to reuse it again. If there is a connection pool every time if any request is made the system does not have to create a new connection. Connection pooling is popular in web based data driven application and Enterprise applications.&lt;br /&gt;&lt;br /&gt;Map and HashMap :- Map is an interface whereas HashMap is a class that implements Map.&lt;br /&gt;Vector and ArrayList :- Vector is synchronized and Arraylist is not. whenever multiple threads are supposed to access the same instance  vectors should be used else Arraylist should be used. Arraylist gives better perfromance in non-synchronized case.&lt;br /&gt;&lt;br /&gt;Swing and AWT:- Swing has light components whereas AWT has heavy-weight components.&lt;br /&gt;Java supports passing by value.&lt;br /&gt;wrapper classes: specialized classes corresponding to each of the primitive data types like Integer, Character Double.&lt;br /&gt;&lt;br /&gt;checked exceptions: checked exceptions are those that the compiler force to catch like IOException.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;J2EE&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-6640008829226931276?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vX9nF8O61pVCHWXK2d-9j9dCnzE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vX9nF8O61pVCHWXK2d-9j9dCnzE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/vX9nF8O61pVCHWXK2d-9j9dCnzE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vX9nF8O61pVCHWXK2d-9j9dCnzE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/QrmTBefmNPI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/6640008829226931276/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=6640008829226931276" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/6640008829226931276?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/6640008829226931276?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/QrmTBefmNPI/java-interview-questions.html" title="Java Interview Questions" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2009/04/java-interview-questions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08CR3g5cCp7ImA9WxRVF0o.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-7764678328058672280</id><published>2008-11-15T09:02:00.000-08:00</published><updated>2008-11-15T09:57:46.628-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-11-15T09:57:46.628-08:00</app:edited><title>Using John the Ripper for detecting weak passwords</title><content type="html">&lt;b&gt;John the Ripper&lt;/b&gt;(JTR) is a free password cracking software tool. Initially developed for the UNIX based environment, it currently runs on fifteen different platforms (11 architecture-specific flavors of Unix, DOS, Win32, BeOS&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;, and OpenVMS). It is one of the most popular password testing/breaking programs as it combines a number of password crackers into one package, auto-detects password hash types, and includes a customizable cracker [wiki].&lt;br /&gt;Few weeks back in my "Network and Information Security" class I was assigned to crack a password file. The password file was a unix based password file with 447 password hashes. I first tried to start JTR in Ubuntu, and downloaded the Unix src of JTR from &lt;a href="http://www.openwall.com/john/"&gt;http://www.openwall.com/john/&lt;/a&gt; . To build the program in Ubuntu I first unzipped the tar :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dilip$tar -xzf john-1.7.2.tar.gz &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;then changed the folder to the run folder inside the john-1.7.2 directory&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dilip$cd john-1.7.2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dilip$cd run&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here we can see a make file. I tried running the make.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dilip$make&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, at this point the make returns a number of options for the platform its being build on. For ubuntu I did not saw any speicific platform option so I went with the generic one.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dilip$make clean generic&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If everything goes well then the john executables will be created in the same directory as run. Now, to start cracking the password I ran the command.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dilip$./john passwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where passwd is the password file that contains the password hashes. This should be all for John to start cracking the password. Optionally, john also takes some password list to compare with the password file. The password list are basically a huge collection of word lists or dictionaries. Lot of these kind of world lists can be found in the internet. Even different kind of wordlists can be downloaded from different sites and combined in one file using any .txt file joiner as all these wordlists are in .txt format. The command to supply a wordlist is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dilip$./john w:wordlist.txt passwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where &lt;span style="font-style: italic;"&gt;wordlist.txt&lt;/span&gt; is the wordlist created.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;In Windows&lt;/span&gt;&lt;br /&gt;John also works on windows. For that a windows version of John should be downloaded from &lt;a href="http://www.openwall.com/john/"&gt;http://www.openwall.com/john/&lt;/a&gt;. In contrast to linux version, John in windows is reaady to use once you extract the john zipped folder. John can be invoked from the windows command line and supplied the password or wordlist as mentioned above. For windows I used:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;C:&gt;/john-mmx passwd&lt;/span&gt;&lt;br /&gt;where &lt;span style="font-style: italic;"&gt;mmx&lt;/span&gt; option utilizes the mmx feature of the processor.&lt;br /&gt;John takes a long time depending upon the speed of the processor and the length of the password file. I kept it running for about 2 weeks to get just 75 password :).&lt;br /&gt;&lt;br /&gt;Links for some wordlists:&lt;br /&gt;&lt;a href="ftp://ftp.cerias.purdue.edu/pub/dict/dictionaries/English/"&gt;ftp://ftp.cerias.purdue.edu/pub/dict/dictionaries/English/&lt;/a&gt;&lt;br /&gt;&lt;a href="ftp://ftp.ox.ac.uk/pub/wordlists/"&gt;ftp://ftp.ox.ac.uk/pub/wordlists/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sourceforge.net/project/downloading.php?groupname=cracklib&amp;amp;filename=cracklib-words.gz&amp;amp;use_mirror=voxel"&gt;http://sourceforge.net/project/downloading.php?groupname=cracklib&amp;amp;filename=cracklib-words.gz&amp;amp;use_mirror=voxel&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.openwall.com/wordlists/"&gt;http://www.openwall.com/wordlists/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-7764678328058672280?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Q9vMMFwPpJlm7eHk7qDWIcn1Kv8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q9vMMFwPpJlm7eHk7qDWIcn1Kv8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Q9vMMFwPpJlm7eHk7qDWIcn1Kv8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q9vMMFwPpJlm7eHk7qDWIcn1Kv8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/SqCt62dxK1M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/7764678328058672280/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=7764678328058672280" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7764678328058672280?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7764678328058672280?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/SqCt62dxK1M/using-john-ripper-for-detecting-wek.html" title="Using John the Ripper for detecting weak passwords" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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>2</thr:total><feedburner:origLink>http://yogidilip.blogspot.com/2008/11/using-john-ripper-for-detecting-wek.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcGRXwzcSp7ImA9WxRXFkU.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-7863450792732114278</id><published>2008-10-22T06:07:00.000-07:00</published><updated>2008-10-22T06:43:44.289-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-22T06:43:44.289-07:00</app:edited><title>Adding Apache Tomcat Server 5.5 to NetBeans IDE 6.1</title><content type="html">Since few days I was thinking of writing some Java servlets with NetBeans IDE. I downloaded and installed NetBeans IDE 6.1. I was about to write my first servlet, but I came to know that Apache Tomcat server was no more bundled with NetBeans 6.1 and that I have to add it separately as an external server, which was a little bit irritating news but with no other options I have to add it.&lt;br /&gt;I then downloaded the 5.5 version of Apache Tomcat. To add as an external server  I was supposed to download the zipped version of the server rather then the windows installer. I downloaded the server from the Apache site &lt;a href="http://tomcat.apache.org/download-55.cgi"&gt;http://tomcat.apache.org/download-55.cgi&lt;/a&gt; and then unzipped in c:\ in my hard drive.&lt;br /&gt;Now, I first have to create a servlet project. I opened the NetBeans IDE. Clicked on File--&gt; New Project. I choose the Web Application project.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PCd3cJVQlPY/SP8nocQdYFI/AAAAAAAAAKo/DB1qTFZzvsg/s1600-h/pic1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_PCd3cJVQlPY/SP8nocQdYFI/AAAAAAAAAKo/DB1qTFZzvsg/s320/pic1.JPG" alt="" id="BLOGGER_PHOTO_ID_5259966465525506130" border="0" /&gt;&lt;/a&gt;After giving the name and location of the project when I clicked on the drop down button to see the server list I was able to see only the GlasFishV2 Server.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PCd3cJVQlPY/SP8oGsW2U7I/AAAAAAAAAKw/tYcIE7MiRWg/s1600-h/pic3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_PCd3cJVQlPY/SP8oGsW2U7I/AAAAAAAAAKw/tYcIE7MiRWg/s320/pic3.JPG" alt="" id="BLOGGER_PHOTO_ID_5259966985243349938" border="0" /&gt;&lt;/a&gt;So, now at this point I clicked on the add button and showed the path to the Apache Tomcate server that I had unzipped early (in c:\).&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PCd3cJVQlPY/SP8rk4lPBvI/AAAAAAAAAK4/ChKGKa8bUNk/s1600-h/pic5.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_PCd3cJVQlPY/SP8rk4lPBvI/AAAAAAAAAK4/ChKGKa8bUNk/s320/pic5.JPG" alt="" id="BLOGGER_PHOTO_ID_5259970802455873266" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PCd3cJVQlPY/SP8r9F-GpzI/AAAAAAAAALA/H__-jBrKbLc/s1600-h/pic6.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_PCd3cJVQlPY/SP8r9F-GpzI/AAAAAAAAALA/H__-jBrKbLc/s320/pic6.JPG" alt="" id="BLOGGER_PHOTO_ID_5259971218366703410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;To successfully add the server I have to make some changes on the configuration of the server. Mainly add an user. So while adding an user there is an option to create an user (a checkbox), I checked on that which created me an user.  For more information please follow this wiki link &lt;a href="http://wiki.netbeans.org/AddExternalTomcat"&gt;http://wiki.netbeans.org/AddExternalTomcat&lt;/a&gt;&lt;br /&gt;After successful addition of the server it did showed up in the dropdown for the server list.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PCd3cJVQlPY/SP8sM8aecbI/AAAAAAAAALI/g9F7nCmFFeY/s1600-h/pic3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_PCd3cJVQlPY/SP8sM8aecbI/AAAAAAAAALI/g9F7nCmFFeY/s320/pic3.JPG" alt="" id="BLOGGER_PHOTO_ID_5259971490679255474" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I continued clicking on next and finally finish. I didn't selected any frameworks because I was going to create a generic servlet. Finally I clicked finished and everything was setup and I was ready to write my first servlet with NetBeans.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PCd3cJVQlPY/SP8sznNzVsI/AAAAAAAAALQ/o_UBxJmn_PU/s1600-h/pic4.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_PCd3cJVQlPY/SP8sznNzVsI/AAAAAAAAALQ/o_UBxJmn_PU/s320/pic4.JPG" alt="" id="BLOGGER_PHOTO_ID_5259972155003852482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-7863450792732114278?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uN5D0z277th2bDIV9wWfGxgpAHY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uN5D0z277th2bDIV9wWfGxgpAHY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uN5D0z277th2bDIV9wWfGxgpAHY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uN5D0z277th2bDIV9wWfGxgpAHY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/sO35Cx0xi_0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/7863450792732114278/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=7863450792732114278" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7863450792732114278?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7863450792732114278?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/sO35Cx0xi_0/adding-apache-tomcat-server-55-with.html" title="Adding Apache Tomcat Server 5.5 to NetBeans IDE 6.1" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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/_PCd3cJVQlPY/SP8nocQdYFI/AAAAAAAAAKo/DB1qTFZzvsg/s72-c/pic1.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yogidilip.blogspot.com/2008/10/adding-apache-tomcat-server-55-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUAHRH05eSp7ImA9WxRXFkk.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-7609137862053797097</id><published>2008-10-21T19:38:00.000-07:00</published><updated>2008-10-21T19:48:55.321-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-21T19:48:55.321-07:00</app:edited><title>DNS goes down in XP service pack 3</title><content type="html">Since few days back I am having a weird problem. My internet seems to work fine for some time and suddenly it crashes and I can't browse pages. When I run the MSN troubleshooter, I can see that the problem is with the DNS Suffix. Even if I type the ip add of a web page directly in the address bar, the page is displayed successfully. Till now my research in this issue points that its an issue with the Windows XP service pack 3 (by the way as far I remember I started having this problem sometime after I installed service pack 3). Now, I don't know what to do..whether uninstall service pack3 and fall back to service pack 2( which I really don't want to do) or look for some other solutions.&lt;br /&gt;Related links:&lt;br /&gt;&lt;a href="http://forums.techarena.in/windows-xp-support/1023601.htm"&gt;http://forums.techarena.in/windows-xp-support/1023601.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-7609137862053797097?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wcDpf-OzPkMI0U5rYAD7EGrdfEA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wcDpf-OzPkMI0U5rYAD7EGrdfEA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wcDpf-OzPkMI0U5rYAD7EGrdfEA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wcDpf-OzPkMI0U5rYAD7EGrdfEA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/HBu2vs2Fq0Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/7609137862053797097/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=7609137862053797097" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7609137862053797097?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7609137862053797097?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/HBu2vs2Fq0Q/dns-goes-down-in-xp-service-pack-3.html" title="DNS goes down in XP service pack 3" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2008/10/dns-goes-down-in-xp-service-pack-3.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0ICRXsyeCp7ImA9WxRQE04.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-1230544835478939893</id><published>2008-10-02T18:33:00.000-07:00</published><updated>2008-10-06T17:32:44.590-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-06T17:32:44.590-07:00</app:edited><title>X-Server problem in Ubuntu</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PCd3cJVQlPY/SOV22e2eWZI/AAAAAAAAAKc/U-vkNof9J94/s1600-h/Ubuntu_X_error.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_PCd3cJVQlPY/SOV22e2eWZI/AAAAAAAAAKc/U-vkNof9J94/s320/Ubuntu_X_error.JPG" alt="" id="BLOGGER_PHOTO_ID_5252735218764110226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I am still stuck with the X-Server problem in Ubuntu. Here is the image and the error I get when I turn on my Ubuntu Virtual Machine. Any suggestions and solutions will be highly appreciated.&lt;br /&gt;&lt;br /&gt;The original problem was described on :&lt;br /&gt;&lt;a href="http://yogidilip.blogspot.com/2008/09/ubuntu-server-as-virtual-machine-on-xp.html#links"&gt;http://yogidilip.blogspot.com/2008/09/ubuntu-server-as-virtual-machine-on-xp.html#links&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-1230544835478939893?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kwq7bJrJ-VPyVrXiGlWGdsKIy2c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kwq7bJrJ-VPyVrXiGlWGdsKIy2c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kwq7bJrJ-VPyVrXiGlWGdsKIy2c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kwq7bJrJ-VPyVrXiGlWGdsKIy2c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/caUNiqdPB64" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/1230544835478939893/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=1230544835478939893" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/1230544835478939893?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/1230544835478939893?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/caUNiqdPB64/x-server-problem-in-ubuntu.html" title="X-Server problem in Ubuntu" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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/_PCd3cJVQlPY/SOV22e2eWZI/AAAAAAAAAKc/U-vkNof9J94/s72-c/Ubuntu_X_error.JPG" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://yogidilip.blogspot.com/2008/10/x-server-problem-in-ubuntu.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcDRHw7cCp7ImA9WxRRFkg.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-4801241897056508968</id><published>2008-09-28T20:04:00.001-07:00</published><updated>2008-09-28T20:14:35.208-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-28T20:14:35.208-07:00</app:edited><title>j42uRiLs.exe:--What is this..?</title><content type="html">My computer has been acting weird since few days. Especially its very slow and my internet browsing speed has also declined. Further, I get some splash screen, showing some add for few second. When I looked on my task manager I can see internet explorer running as a process..but there is no IE window on my screen (probably its the add that's splashing up).... So, I scanned my whole computer with Malwarebyte's Anti Malware (see the previous post about it). It finally detected "j42uRiLs.exe" as a Trojan Agent and asked to delete it. I deleted it and it seems like its working fine. If anyone has encounter a similar situation or the process please give me some tips.&lt;br /&gt;&lt;br /&gt;thanks,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-4801241897056508968?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JlccKa_LbAMERO827-nVhHSOKRc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JlccKa_LbAMERO827-nVhHSOKRc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/JlccKa_LbAMERO827-nVhHSOKRc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JlccKa_LbAMERO827-nVhHSOKRc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/h5o3bWqM5Sc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/4801241897056508968/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=4801241897056508968" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/4801241897056508968?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/4801241897056508968?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/h5o3bWqM5Sc/j42urilsexe-what-is-this.html" title="j42uRiLs.exe:--What is this..?" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2008/09/j42urilsexe-what-is-this.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUDQX4_eCp7ImA9WxRRFEU.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-3602989011428465128</id><published>2008-09-18T01:25:00.000-07:00</published><updated>2008-09-26T19:24:30.040-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-26T19:24:30.040-07:00</app:edited><title>Playing with Goolge Chrome</title><content type="html">Still playing with it :)&lt;div&gt;I installed the new browser from Google--Google Chrome. I started playing with it. In overall it looks good. I had fun using it. The tab browser system, the no menu sytem, the bookmark bar system everything was cool. The only thing that worried me was about the security issue. I saw a number of articles in web talking about the security vulnerability issues in Google Chrome. I post here some of the links: &lt;/div&gt;&lt;div&gt;&lt;a href="http://www.informationweek.com/news/internet/google/showArticle.jhtml?articleID=210300297"&gt;http://www.informationweek.com/news/internet/google/showArticle.jhtml?articleID=210300297&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.techytuts.com/internet/serious-security-issues-with-google-chrome-exploit.html"&gt;http://www.techytuts.com/internet/serious-security-issues-with-google-chrome-exploit.html&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.ghacks.net/2008/09/03/google-chrome-security-vulnerability/"&gt;http://www.ghacks.net/2008/09/03/google-chrome-security-vulnerability/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Google Chrome was one of the most awaited browser. In a very short span of time it has become quite popular. But the security issues that raised in just the first week of the release was a serious concern. The later version of the browser will probably not have those vulnerabilities. In overall, its predictable that Google Chrome is going to be one of the most popular browser in near future. &lt;/div&gt;&lt;div&gt;&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/7027271576527025654-3602989011428465128?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VA54bdm0rY5sZuTMJR_PVgJvfNo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VA54bdm0rY5sZuTMJR_PVgJvfNo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VA54bdm0rY5sZuTMJR_PVgJvfNo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VA54bdm0rY5sZuTMJR_PVgJvfNo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/pSXZTYjS3SM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/3602989011428465128/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=3602989011428465128" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/3602989011428465128?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/3602989011428465128?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/pSXZTYjS3SM/playing-with-goolge-chrome.html" title="Playing with Goolge Chrome" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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>4</thr:total><feedburner:origLink>http://yogidilip.blogspot.com/2008/09/playing-with-goolge-chrome.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IAQn0-fyp7ImA9WxRSFk8.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-3438638894302137797</id><published>2008-09-16T20:14:00.001-07:00</published><updated>2008-09-16T20:19:03.357-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-16T20:19:03.357-07:00</app:edited><title>X Server problem in Ubuntu Server 8.4</title><content type="html">As, I mentioned in my earilier post, (&lt;a href="http://yogidilip.blogspot.com/2008/09/ubuntu-server-as-virtual-machine-on-xp.html#links"&gt;http://yogidilip.blogspot.com/2008/09/ubuntu-server-as-virtual-machine-on-xp.html#links) &lt;/a&gt;I installed a virtual Ubuntu Server 8.04 on my XP. Now the problem is that I cannot run startx in Ubuntu. Whenever I type the command it gives me some error:&lt;div&gt; &lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; white-space: pre; "&gt;error X: cannot stat /etc/X11/X (No such file or directory), aborting. ...Unable to connect to X Server.&lt;/span&gt;&lt;div&gt;I don't know what's goin on? I am trying to figure out this problem. Once I got the solution, I will post it here. Any suggestions or solutions is highly appreciated.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;thanks,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-3438638894302137797?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/a2OxdcdefEUcpb7oaNjha95C53Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/a2OxdcdefEUcpb7oaNjha95C53Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/a2OxdcdefEUcpb7oaNjha95C53Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/a2OxdcdefEUcpb7oaNjha95C53Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/uXxr8Sb0ROg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/3438638894302137797/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=3438638894302137797" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/3438638894302137797?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/3438638894302137797?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/uXxr8Sb0ROg/x-server-problem-in-ubuntu-server-84.html" title="X Server problem in Ubuntu Server 8.4" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2008/09/x-server-problem-in-ubuntu-server-84.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUHSXY7eip7ImA9WxRSFEk.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-4787457112086056900</id><published>2008-09-14T17:24:00.000-07:00</published><updated>2008-09-14T19:03:58.802-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-14T19:03:58.802-07:00</app:edited><title>Antivirus XP 2008 License Agreement REMOVAL</title><content type="html">Oh my God! it took me one complete day to figure out what the hell is "Antivirus XP 2008 License Agreement" popup and remove  it.  Everytime I boot my computer a popup would pop up asking me to install the Antivirus XP 2008. Further, there would be a big warning message in my desktop stating that my computer has been infected and I need to install some anti spyware software (see the image in the preivous post). &lt;div&gt;I did a little bit research in this and found that "Antivirus XP 2008" popup was a fake popup and all those messages about my computer infection were fake and were displayed so as to convince me to buy the Antivirus XP 2008 anti-spyware software. I tried a number of anti-spyware software and finally a sofware named "Malewarebyte's Antimalware", a freeware, helped me remove it. This software did an excellent job in removing all of the infected files and registry keys. Now my computer acts as normal and I am happy. &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Instructions to remove "&lt;/span&gt;&lt;span class="Apple-style-span"  style="  white-space: pre; font-family:Arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Antivirus XP 2008 License Agreement"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre;font-family:Arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;--&gt; Go to the page &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre;font-family:Arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a href="http://www.bleepingcomputer.com/malware-removal/remove-antivirus-xp-2008"&gt;http://www.bleepingcomputer.com/malware-removal/remove-antivirus-xp-2008&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre;font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;--&gt; Download the Anti-Malware tool&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre;font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;--&gt; Scan your computer with the tool.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre;font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;--&gt;The tool will find all the malware's and trojans. The scan screen will look something like this:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://2.bp.blogspot.com/_PCd3cJVQlPY/SM3ASzYvhXI/AAAAAAAAAIs/riVFPXlyGRk/s320/image5.bmp" style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" border="0" alt="" id="BLOGGER_PHOTO_ID_5246060570220660082" /&gt;&lt;div&gt;--&gt;Delete all the infected files and restart the computer. &lt;/div&gt;&lt;div&gt;--&gt; Now if everything goes well, you should be free from the malware and the pop up screen for "&lt;span class="Apple-style-span"  style="  white-space: pre; font-family:Arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Antivirus XP 2008 License Agreement&lt;/span&gt;&lt;/span&gt;" should not show up. &lt;/div&gt;&lt;div&gt;The complete instruction on using the malware byte is in the above link.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thanks&lt;/div&gt;&lt;div&gt;&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/7027271576527025654-4787457112086056900?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1CL71dmCpQpQkJua05Ly68PkiK0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1CL71dmCpQpQkJua05Ly68PkiK0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1CL71dmCpQpQkJua05Ly68PkiK0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1CL71dmCpQpQkJua05Ly68PkiK0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/4tqarlvv9ys" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/4787457112086056900/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=4787457112086056900" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/4787457112086056900?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/4787457112086056900?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/4tqarlvv9ys/antivirus-xp-2008-license-agreement.html" title="Antivirus XP 2008 License Agreement REMOVAL" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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://2.bp.blogspot.com/_PCd3cJVQlPY/SM3ASzYvhXI/AAAAAAAAAIs/riVFPXlyGRk/s72-c/image5.bmp" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://yogidilip.blogspot.com/2008/09/antivirus-xp-2008-license-agreement.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4HSHY6fCp7ImA9WxRSFEw.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-7566478100129138084</id><published>2008-09-14T08:35:00.001-07:00</published><updated>2008-09-14T11:45:39.814-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-14T11:45:39.814-07:00</app:edited><title>Adware.CWSIEFeats detected</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PCd3cJVQlPY/SM1acpzNMdI/AAAAAAAAAIE/AYgSbONm278/s1600-h/image2.bmp"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_PCd3cJVQlPY/SM1acpzNMdI/AAAAAAAAAIE/AYgSbONm278/s320/image2.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5245948589259960786" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I was surfing internet yesterday and somehow an adware named Adware.CWSIEFeats got installed in my computer. I immediately came to know about it because it changed my desktop background. My desktop background looked like something shown in the image. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then I ran my Symantec Antivirus and scaned the whole system. The scan found a couple of adware with the name mentioned above.  &lt;/div&gt;&lt;div&gt;Then I googled it and found the symantec response page for the adware; &lt;a href="http://www.symantec.com/security_response/writeup.jsp?docid=2004-120817-5800-99&amp;amp;tabid=2"&gt;http://www.symantec.com/security_response/writeup.jsp?docid=2004-120817-5800-99&amp;amp;tabid=2&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;. I manually deleted those .exe files from my computer and then restarted the computer. After that the background screen is gone but still my computer does not acts normal. Especially if anyhow I launch the IE..the computer freezes and I have to manually restart the computer. At this point, I guess its because of the registry keys the adware has added in my system. I am yet to figure out this and completely slove the problem. Any suggestions and solutions is highly recommended. &lt;/div&gt;&lt;div&gt;The symantec removal page for this adware is; &lt;a href="http://www.symantec.com/security_response/writeup.jsp?docid=2004-120817-5800-99&amp;amp;tabid=3"&gt;http://www.symantec.com/security_response/writeup.jsp?docid=2004-120817-5800-99&amp;amp;tabid=3&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;thanks&lt;/div&gt;&lt;div&gt;&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/7027271576527025654-7566478100129138084?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MJEut2D4upikV6utyoWDoEMyLS0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MJEut2D4upikV6utyoWDoEMyLS0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MJEut2D4upikV6utyoWDoEMyLS0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MJEut2D4upikV6utyoWDoEMyLS0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/qAg2qFG7I0g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/7566478100129138084/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=7566478100129138084" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7566478100129138084?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/7566478100129138084?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/qAg2qFG7I0g/adwarecswfeats-detected.html" title="Adware.CWSIEFeats detected" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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/_PCd3cJVQlPY/SM1acpzNMdI/AAAAAAAAAIE/AYgSbONm278/s72-c/image2.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yogidilip.blogspot.com/2008/09/adwarecswfeats-detected.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0YMQXs5fyp7ImA9WxRTGEg.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-3726604817438731779</id><published>2008-09-07T23:14:00.000-07:00</published><updated>2008-09-07T23:26:20.527-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-07T23:26:20.527-07:00</app:edited><title>Ubuntu Server as a Virtual Machine on XP</title><content type="html">From a long time I was planning to install a Virtual Server on my Dell Laptop (with XP). It took me a long time to  which VM should I load on. Finally, last week I ended up with installing Ubuntu Server 8.0. Sequentillay I;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;downloaded Vmware Server from &lt;a href="http://www.ubuntu.com/getubuntu/download"&gt;http://www.vmware.com/download/server/&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;registered on the same page and obtained a free serial number for the VMware Server.&lt;/li&gt;&lt;li&gt;downloaded the Ubuntu Server from &lt;a href="http://www.ubuntu.com/getubuntu/download"&gt;http://www.ubuntu.com/getubuntu/download&lt;/a&gt;&lt;/li&gt;&lt;li&gt;installed the VMware Server.&lt;/li&gt;&lt;li&gt;Created a Virtual Machine in VMWare Server.&lt;/li&gt;&lt;li&gt;Edited the boot options in the virtual machine to be booted by the iso image rather then the cd.&lt;/li&gt;&lt;li&gt;started the virtual machine and everything works as charm.&lt;/li&gt;&lt;/ul&gt;thanks,&lt;br /&gt;I will post the snapshots of this story very soon. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-3726604817438731779?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/j9xEmzYVAbZZhNFIQsX17LKkI1U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/j9xEmzYVAbZZhNFIQsX17LKkI1U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/j9xEmzYVAbZZhNFIQsX17LKkI1U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/j9xEmzYVAbZZhNFIQsX17LKkI1U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/UToCxEXlO4M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/3726604817438731779/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=3726604817438731779" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/3726604817438731779?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/3726604817438731779?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/UToCxEXlO4M/ubuntu-server-as-virtual-machine-on-xp.html" title="Ubuntu Server as a Virtual Machine on XP" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2008/09/ubuntu-server-as-virtual-machine-on-xp.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck4CSXY4cCp7ImA9WxdXGUo.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-4210189610144565735</id><published>2008-07-01T20:17:00.000-07:00</published><updated>2008-07-01T20:56:08.838-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-01T20:56:08.838-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Gparted Live CD" /><title>Using Gparted with Dell Vostro 1500</title><content type="html">I was planning to make a Fat32 partition on my hard drive to use it with knoppix. I downloaded the Gparted ISO image and burned it into a CD. Those who don't know what is Gparted: it's a debian based linux utility software basically used to resize, move and create partition. This is what i did and got stucked.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Boot the system with the Gparted cd.&lt;/li&gt;&lt;li&gt;Do everything as said in the screen.&lt;/li&gt;&lt;li&gt;Finally, the problem occurred when the X-server crashed continuously.&lt;/li&gt;&lt;li&gt;This is how I solve the problem&lt;/li&gt;&lt;ol&gt;&lt;li&gt;sudo Forcevideo (it means type "sudo Forcevideo" in the prompt that occurs after the X-server crashes) the X-server and choose the option medium.&lt;/li&gt;&lt;li&gt;Supply keyboard configuration as P101&lt;/li&gt;&lt;li&gt;Reply "No" to Video Hardware detection.&lt;/li&gt;&lt;li&gt;Choose "Vesa" as the driver&lt;/li&gt;&lt;li&gt;Reply "No" to Kernel Frame Buffer.&lt;/li&gt;&lt;li&gt;Reply "No" to Monitor auto detection.&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;This should be all to reconfigure the X-server. Now in the prompt type "sudo startx".&lt;/li&gt;&lt;li&gt;Now you should be able to run the X-server.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Thanks, Let me know if there are any questions or concerns.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-4210189610144565735?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZsgCyHlT60AkBJxk2fNFvMBGmDU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZsgCyHlT60AkBJxk2fNFvMBGmDU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZsgCyHlT60AkBJxk2fNFvMBGmDU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZsgCyHlT60AkBJxk2fNFvMBGmDU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/DGPDd3DGaKo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/4210189610144565735/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=4210189610144565735" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/4210189610144565735?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/4210189610144565735?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/DGPDd3DGaKo/using-gparted-with-dell-vostro-1500.html" title="Using Gparted with Dell Vostro 1500" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2008/07/using-gparted-with-dell-vostro-1500.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4DQnYzeip7ImA9WxdSFE8.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-133494315430725876</id><published>2008-05-21T20:59:00.000-07:00</published><updated>2008-05-21T21:02:53.882-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-05-21T21:02:53.882-07:00</app:edited><title>A Simple Graphics Editor in JAVA</title><content type="html">After a bit of practice on JMF..now I wanna get a hand on java awt package. So, what I thought is I am going to make a simple graphics editor in java...that can draw different 2D geometrical figures and manipulate those figures. I have just started it...lets see how far can I get. If you guys have any suggestions please feel free to leave comments.&lt;br /&gt;&lt;br /&gt;thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-133494315430725876?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OHKl-n2u7Xrw3LhuVjOK7gjrtQE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OHKl-n2u7Xrw3LhuVjOK7gjrtQE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/OHKl-n2u7Xrw3LhuVjOK7gjrtQE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OHKl-n2u7Xrw3LhuVjOK7gjrtQE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/LnSUWToPhQo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/133494315430725876/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=133494315430725876" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/133494315430725876?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/133494315430725876?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/LnSUWToPhQo/simple-graphics-editor-in-java.html" title="A Simple Graphics Editor in JAVA" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2008/05/simple-graphics-editor-in-java.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEMSX0yfip7ImA9WxdSFE8.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-6824774747272711778</id><published>2008-05-11T08:45:00.000-07:00</published><updated>2008-05-21T20:58:08.396-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-05-21T20:58:08.396-07:00</app:edited><title>A simple media player in Java</title><content type="html">I have been using JMF to write some simple java programs that can play some audio and video file. Finally, I decided that I am going to make a simple media player in java. Currently I am working on that..my player is ready to go but with minimal features. Once I am done with  all the major functions, I will post the whole code here. If you guys doing the same thing and need some help please feel free to leave any comments. I will be more than happy to discuss with you guys.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Here is my first file. Copy and paste this code segment in a java file. This file basically implemnts the JMF package.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;import java.awt.*;&lt;br /&gt;import java.io.*;&lt;br /&gt;import javax.media.*;&lt;br /&gt;import java.net.URL;&lt;br /&gt;import javax.swing.*;&lt;br /&gt;&lt;br /&gt;public class DilipPlayer extends JPanel{&lt;br /&gt;  //Global Variable declaration&lt;br /&gt;  Player mediaPlayer;&lt;br /&gt;  Component video, controls;&lt;br /&gt;&lt;br /&gt;  public DilipPlayer(URL mediaURL){&lt;br /&gt;      setLayout(new BorderLayout());&lt;br /&gt;      Manager.setHint( Manager.LIGHTWEIGHT_RENDERER, true );&lt;br /&gt;      //add a line of code here if u want the lightweight swing component support&lt;br /&gt;      try&lt;br /&gt;      {&lt;br /&gt;          //Create a player to play the media specified in the mediaURL&lt;br /&gt;          mediaPlayer = Manager.createRealizedPlayer(mediaURL);&lt;br /&gt;          //get the components for the video and the playback&lt;br /&gt;          video = mediaPlayer.getVisualComponent();&lt;br /&gt;          controls = mediaPlayer.getControlPanelComponent();&lt;br /&gt;          if(video != null)&lt;br /&gt;              add(video, BorderLayout.CENTER); //and video component&lt;br /&gt;          if(controls != null)&lt;br /&gt;              add(controls, BorderLayout.SOUTH); //and controls component&lt;br /&gt;          mediaPlayer.start(); //start playing the media     &lt;br /&gt;      }//end try&lt;br /&gt;      catch(NoPlayerException nomediaPlayer){&lt;br /&gt;          System.out.println("No media player found");&lt;br /&gt;      }//end catch1&lt;br /&gt;      catch(CannotRealizeException cannotrelaizeexception){&lt;br /&gt;          System.out.println("Could not realize media player");&lt;br /&gt;      }//end catch2&lt;br /&gt;      catch(IOException ioexception){&lt;br /&gt;          System.out.println("Cannot read from the source");&lt;br /&gt;      }//end catch3     &lt;br /&gt;  }//end constructor&lt;br /&gt;  //This code is being written here for testing purpose..might work..might not work..&lt;br /&gt;  //method to implement stop &lt;br /&gt;  public void stopPlaying(){&lt;br /&gt;      mediaPlayer.stop();&lt;br /&gt;  }//end method stopMusic&lt;br /&gt;&lt;br /&gt;  public void pauseMusic(){&lt;br /&gt;   &lt;br /&gt;  }//end method pauseMusic&lt;br /&gt;}//end class&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The second file with main method and UI programming.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;* DilipPlayer.java May 12, 2008&lt;br /&gt;*&lt;br /&gt;* Copyright (c) 2008 by Dilip Yogi. All rights reserved.&lt;br /&gt;*&lt;br /&gt;* I reserve all rights to this software. You may use it and&lt;br /&gt;* distribute it freely, provided you do not remove this header&lt;br /&gt;* and attribute partial credit to the author, Dilip Yogi (yogidilip@gmail.com.&lt;br /&gt;*/&lt;br /&gt;import javax.swing.*;&lt;br /&gt;import java.net.*;&lt;br /&gt;import java.awt.event.*;&lt;br /&gt;import java.awt.*;&lt;br /&gt;import javax.media.*;&lt;br /&gt;&lt;br /&gt;public class DilipPlayer3 extends JFrame implements ActionListener{&lt;br /&gt;&lt;br /&gt;  //Global variable declaration&lt;br /&gt;  JFrame mediatest = new JFrame("Dipware Media Player Version 2.0");&lt;br /&gt;  DilipPlayer mediapanel;&lt;br /&gt;  JMenuBar menubar;&lt;br /&gt;  JMenu fileMenu, playerMenu,aboutMenu;&lt;br /&gt;  JMenuItem openSubMenu, exitSubMenu, aboutSubMenu, playpauseSubMenu, stopSubMenu, recordSubMenu;&lt;br /&gt;  JMenuItem fullScreenSubMenu, playlistSubMenu, toolbarSubMenu;&lt;br /&gt;  JToolBar toolbar;&lt;br /&gt;  //buttons for toolbar&lt;br /&gt;  JButton openButton, playButton, pauseButton, stopButton, fullscreenButton, playlistButton, recordButton;&lt;br /&gt;  URL mediaURL;&lt;br /&gt;&lt;br /&gt;  //constructor declaration. All the UI designing stuffs is being done here&lt;br /&gt;  public DilipPlayer3(){&lt;br /&gt;  //Swing components creation and attachment&lt;br /&gt;  menubar = new JMenuBar();&lt;br /&gt;  fileMenu = new JMenu("File");&lt;br /&gt;  fileMenu.setMnemonic('F');&lt;br /&gt;  playerMenu = new JMenu("Player");&lt;br /&gt;  playerMenu.setMnemonic('P');&lt;br /&gt;  aboutMenu = new JMenu("About");&lt;br /&gt;  aboutMenu.setMnemonic('A');&lt;br /&gt;  openSubMenu = new JMenuItem("Open", 'O');&lt;br /&gt;  exitSubMenu = new JMenuItem("Exit", 'X');&lt;br /&gt;  aboutSubMenu = new JMenuItem("About Dipware Player", 'B');&lt;br /&gt;  playpauseSubMenu = new JMenuItem("Play/Pause", 'P');&lt;br /&gt;  stopSubMenu = new JMenuItem("Stop", 'S');&lt;br /&gt;  recordSubMenu = new JMenuItem("Record", 'R');&lt;br /&gt;  fullScreenSubMenu = new JMenuItem("Full Screen", 'Z');&lt;br /&gt;  playlistSubMenu = new JMenuItem("PlayList", 'L');&lt;br /&gt;  toolbarSubMenu = new JMenuItem("View Toolbar", 'T');&lt;br /&gt;&lt;br /&gt;  menubar.add(fileMenu);&lt;br /&gt;  menubar.add(playerMenu);&lt;br /&gt;  menubar.add(aboutMenu);&lt;br /&gt;&lt;br /&gt;  //add sub menus &lt;br /&gt;  fileMenu.add(openSubMenu);&lt;br /&gt;  fileMenu.add(exitSubMenu);&lt;br /&gt;  fileMenu.insertSeparator(1);&lt;br /&gt;  playerMenu.add(playpauseSubMenu);&lt;br /&gt;  playerMenu.add(stopSubMenu);&lt;br /&gt;  playerMenu.add(recordSubMenu);&lt;br /&gt;  playerMenu.add(fullScreenSubMenu);&lt;br /&gt;  playerMenu.add(playlistSubMenu);&lt;br /&gt;  playerMenu.add(toolbarSubMenu);&lt;br /&gt;  playerMenu.insertSeparator(3);&lt;br /&gt;  playerMenu.insertSeparator(5);&lt;br /&gt;  aboutMenu.add(aboutSubMenu);&lt;br /&gt;&lt;br /&gt;  //create toolbar and buttons in toolbar here&lt;br /&gt;  toolbar = new JToolBar("Toolbar", JToolBar.HORIZONTAL);&lt;br /&gt;&lt;br /&gt;  openButton = new JButton("Open");&lt;br /&gt;  playButton = new JButton("Play");&lt;br /&gt;  //playButton.setIcon(new ImageIcon("play.gif","play"));&lt;br /&gt;  pauseButton = new JButton("Pause");&lt;br /&gt;  stopButton = new JButton("Stop");&lt;br /&gt;  recordButton = new JButton("Rec");&lt;br /&gt;  fullscreenButton = new JButton("Full Screen");&lt;br /&gt;  playlistButton = new JButton("List");&lt;br /&gt;&lt;br /&gt;  toolbar.add(openButton);&lt;br /&gt;  toolbar.add(playButton);&lt;br /&gt;  toolbar.add(pauseButton);&lt;br /&gt;  toolbar.add(stopButton);&lt;br /&gt;  toolbar.add(recordButton);&lt;br /&gt;  toolbar.add(fullscreenButton);&lt;br /&gt;  openButton.addActionListener(this);&lt;br /&gt;  playButton.addActionListener(this);&lt;br /&gt;  pauseButton.addActionListener(this);&lt;br /&gt;  stopButton.addActionListener(this);&lt;br /&gt;  recordButton.addActionListener(this);&lt;br /&gt;  fullscreenButton.addActionListener(this);&lt;br /&gt;  playlistButton.addActionListener(this);&lt;br /&gt;&lt;br /&gt;  //add the ActionListener here&lt;br /&gt;  openSubMenu.addActionListener(this);&lt;br /&gt;  exitSubMenu.addActionListener(this);&lt;br /&gt;  playpauseSubMenu.addActionListener(this);&lt;br /&gt;  stopSubMenu.addActionListener(this);&lt;br /&gt;  recordSubMenu.addActionListener(this);&lt;br /&gt;  fullScreenSubMenu.addActionListener(this);&lt;br /&gt;  playlistSubMenu.addActionListener(this);&lt;br /&gt;  toolbarSubMenu.addActionListener(this);&lt;br /&gt;  aboutSubMenu.addActionListener(this);&lt;br /&gt;&lt;br /&gt;  //mediatest frame is being made visible here&lt;br /&gt;  mediatest.pack();&lt;br /&gt;  mediatest.setVisible(true);&lt;br /&gt;  mediatest.setSize(700, 450);&lt;br /&gt;  mediatest.setJMenuBar(menubar);&lt;br /&gt;  mediatest.add(toolbar, BorderLayout.NORTH);&lt;br /&gt;  }//end constructor&lt;br /&gt;&lt;br /&gt;  //main method&lt;br /&gt;  public static void main(String [] args){&lt;br /&gt;      DilipPlayer3 obj1 = new DilipPlayer3();&lt;br /&gt;  }//end main method&lt;br /&gt;&lt;br /&gt;  //method openFile&lt;br /&gt;  public void openFile(){&lt;br /&gt;      //show open dialog&lt;br /&gt;      //Getting the URL and passing it to the player&lt;br /&gt;   &lt;br /&gt;      JFileChooser filechooser = new JFileChooser();&lt;br /&gt;      int result= filechooser.showOpenDialog(null);&lt;br /&gt;      if(result== JFileChooser.APPROVE_OPTION)//user choose a file&lt;br /&gt;      {&lt;br /&gt;      mediaURL = null;&lt;br /&gt;          try{&lt;br /&gt;              mediaURL = filechooser.getSelectedFile().toURL();&lt;br /&gt;           &lt;br /&gt;          }//end try&lt;br /&gt;          catch(MalformedURLException malformedURLException){&lt;br /&gt;              System.out.println("Could not create URL for the file");&lt;br /&gt;          }//end catch&lt;br /&gt;          if(mediaURL != null){mediatest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;          mediapanel = new DilipPlayer(mediaURL);&lt;br /&gt;          String currplay=mediaURL.toString();&lt;br /&gt;          JOptionPane.showMessageDialog(mediatest, "You are playing  " +currplay);&lt;br /&gt;          mediatest.add(mediapanel);&lt;br /&gt;          }//end if&lt;br /&gt;      }//end if &lt;br /&gt;  }//end method openFile&lt;br /&gt;&lt;br /&gt;//event handling in menus starts here&lt;br /&gt;&lt;br /&gt;  public void actionPerformed(ActionEvent e){&lt;br /&gt;      //write the implementation code here&lt;br /&gt;      if((e.getSource()==openSubMenu)||(e.getSource()== openButton)){&lt;br /&gt;      openFile();&lt;br /&gt;      }//open file&lt;br /&gt;      else if(e.getSource()==exitSubMenu){&lt;br /&gt;          //write code to close window&lt;br /&gt;          System.exit(0);&lt;br /&gt;      }//end if for exit here&lt;br /&gt;      else if((e.getSource() == playpauseSubMenu)||(e.getSource()==playButton)){&lt;br /&gt;          //write code here&lt;br /&gt;          JOptionPane.showMessageDialog(mediatest, "Keep patience, this feature is yet to implement");&lt;br /&gt;      }//end if for playpauseSubMenu&lt;br /&gt;      else if((e.getSource()== stopSubMenu)||(e.getSource()==stopButton)){&lt;br /&gt;          //write code here&lt;br /&gt;          stopMusic();&lt;br /&gt;      JOptionPane.showMessageDialog(mediatest, "This feature is in testing phase");&lt;br /&gt;      }//end if for stopSubMenu&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;      else if((e.getSource()== recordSubMenu)||(e.getSource()== recordButton)){&lt;br /&gt;          JOptionPane.showMessageDialog(mediatest, "Keep patience, this feature is yet to implement");&lt;br /&gt;      }//end if recordSubMenu&lt;br /&gt;      else if((e.getSource() == fullScreenSubMenu)||(e.getSource()==fullscreenButton)){&lt;br /&gt;          JOptionPane.showMessageDialog(mediatest, "Keep patience, this feature is yet to implement");&lt;br /&gt;      }//end if for fullScreenSubMenu&lt;br /&gt;      else if((e.getSource() == playlistSubMenu)|| (e.getSource()== playlistButton))&lt;br /&gt;      {&lt;br /&gt;          JOptionPane.showMessageDialog(mediatest, "Keep patience, this feature is yet to implement"); &lt;br /&gt;      }//end if for playlistSubMenu&lt;br /&gt;      else if(e.getSource()== toolbarSubMenu){&lt;br /&gt;          JOptionPane.showMessageDialog(mediatest, "Keep patience, this feature is yet to implement");&lt;br /&gt;      }&lt;br /&gt;      else if(e.getSource()== aboutSubMenu){&lt;br /&gt;          JOptionPane.showMessageDialog(mediatest, "Dipware Media Player Version 2.0. (C) 2008 Dilip Yogi");&lt;br /&gt;      }//end if for aboutSubMenu&lt;br /&gt;  }//end method actionPerformed&lt;br /&gt;&lt;br /&gt;  //this code is being tested&lt;br /&gt;  public void stopMusic(){&lt;br /&gt;      DilipPlayer obj1 = new DilipPlayer(mediaURL);&lt;br /&gt;      obj1.stopPlaying();&lt;br /&gt;  }//end stopMusic&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}//end class&lt;br /&gt;&lt;br /&gt;You have to download and install JMF (Java Media Framework) for this code to work.&lt;br /&gt;&lt;br /&gt;thanks,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-6824774747272711778?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/juddGslmlaH9FKgmfC2psEVaj6k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/juddGslmlaH9FKgmfC2psEVaj6k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/juddGslmlaH9FKgmfC2psEVaj6k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/juddGslmlaH9FKgmfC2psEVaj6k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/6SMwjvbynjM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/6824774747272711778/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=6824774747272711778" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/6824774747272711778?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/6824774747272711778?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/6SMwjvbynjM/simple-media-player-in-java.html" title="A simple media player in Java" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2008/05/simple-media-player-in-java.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkAGR3s_eip7ImA9WxdaGEU.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-1474240917922736770</id><published>2008-05-07T15:20:00.000-07:00</published><updated>2008-08-27T17:52:06.542-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-27T17:52:06.542-07:00</app:edited><title>Using JMF in Eclipse</title><content type="html">I was trying to use JMF API. I was thinking of making some applets that can play audio and video. I downloaded the JMF API from the sun site. Since long I have been using Eclipse as the IDE for java development. But, I was having hard time adding JMF in Eclipse. My java programs were not recognizing the jmf classes. Finally, here is how I solved the problem.  &lt;ul&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;Open Eclipse&lt;/li&gt;&lt;li&gt;Go to Project Properties&lt;/li&gt;&lt;li&gt;Click on Java Build Path&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Go to the tab libraries&lt;/li&gt;&lt;li&gt;Click on button "Add external Jar Files"&lt;/li&gt;&lt;li&gt;show the jmf.jar file and then click on open&lt;/li&gt;&lt;/ul&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PCd3cJVQlPY/SCIsbdo_7PI/AAAAAAAAAA4/RWAxepXOfQ0/s1600-h/eclipse.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_PCd3cJVQlPY/SCIsbdo_7PI/AAAAAAAAAA4/RWAxepXOfQ0/s320/eclipse.JPG" alt="" id="BLOGGER_PHOTO_ID_5197765770263653618" border="0" /&gt;&lt;/a&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;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="MsoNormal"&gt;This should be all to add jmf in Eclipse. Now your java program should be able to recognize the jmf classes. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-1474240917922736770?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HP5_-DsuoE-7HrlGQ_vJ-SGuTOk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HP5_-DsuoE-7HrlGQ_vJ-SGuTOk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HP5_-DsuoE-7HrlGQ_vJ-SGuTOk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HP5_-DsuoE-7HrlGQ_vJ-SGuTOk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/TbRq5DzOFVM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/1474240917922736770/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=1474240917922736770" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/1474240917922736770?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/1474240917922736770?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/TbRq5DzOFVM/using-jmf-in-eclipse.html" title="Using JMF in Eclipse" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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://1.bp.blogspot.com/_PCd3cJVQlPY/SCIsbdo_7PI/AAAAAAAAAA4/RWAxepXOfQ0/s72-c/eclipse.JPG" height="72" width="72" /><thr:total>6</thr:total><feedburner:origLink>http://yogidilip.blogspot.com/2008/05/using-jmf-in-eclipse.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EFRXo6cCp7ImA9WxZaEk4.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-358349186827720102</id><published>2008-04-26T10:34:00.000-07:00</published><updated>2008-04-26T10:40:14.418-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-04-26T10:40:14.418-07:00</app:edited><title>Upgrading windows XP to Vista</title><content type="html">I was trying to upgrade few windows XP boxes with the new Vista Business premium. I was using the dell boxes for it. I tried a couple of them and it did not worked as expected. I first upgraded windows XP with vista...it took about 2 hrs to do that. Everything went well till the last phase of the upgrade. After the last phase the computer get restarted and then the next time it booted...it was looking to do some repairing...and that repairing went on and on and on...and forever.....Till this point i don't know what's wrong but...it does not seems to work. Lastly, I installed a clean Vista.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-358349186827720102?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2QB-skGfnEa3WrQ15uc-CAzmcrU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2QB-skGfnEa3WrQ15uc-CAzmcrU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2QB-skGfnEa3WrQ15uc-CAzmcrU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2QB-skGfnEa3WrQ15uc-CAzmcrU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/6fhrNd6Sv5g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/358349186827720102/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=358349186827720102" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/358349186827720102?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/358349186827720102?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/6fhrNd6Sv5g/upgrading-windows-xp-to-vista.html" title="Upgrading windows XP to Vista" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2008/04/upgrading-windows-xp-to-vista.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYMR384eyp7ImA9WxZUFU8.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-5410839438526316013</id><published>2008-04-06T17:10:00.000-07:00</published><updated>2008-04-06T17:13:06.133-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-04-06T17:13:06.133-07:00</app:edited><title>Hyper-V support in Dell Server</title><content type="html">I was doing some research on Hyper-V. Actually I was looking if the Dell servers we have are compatible with the Microsoft's Hyper-V. I found that only a few of Dell servers are designed to support Hyper-V. Here is the complete list from the Dell website.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-5410839438526316013?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/oxa5nj9-1niEgGNZ2osPH8R5OME/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oxa5nj9-1niEgGNZ2osPH8R5OME/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/oxa5nj9-1niEgGNZ2osPH8R5OME/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oxa5nj9-1niEgGNZ2osPH8R5OME/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/tfhx_YDIVPc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/5410839438526316013/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=5410839438526316013" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/5410839438526316013?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/5410839438526316013?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/tfhx_YDIVPc/hyper-v-support-in-dell-server.html" title="Hyper-V support in Dell Server" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2008/04/hyper-v-support-in-dell-server.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0AASX84fyp7ImA9WxZXFE8.&quot;"><id>tag:blogger.com,1999:blog-7027271576527025654.post-411374510841954403</id><published>2008-02-27T10:41:00.000-08:00</published><updated>2008-03-01T19:49:08.137-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-03-01T19:49:08.137-08:00</app:edited><title>Goolag Scanner</title><content type="html">Still playing with it. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7027271576527025654-411374510841954403?l=yogidilip.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/YM0S-C7IiZ0kUGYFq9cLWgqXh70/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YM0S-C7IiZ0kUGYFq9cLWgqXh70/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/YM0S-C7IiZ0kUGYFq9cLWgqXh70/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YM0S-C7IiZ0kUGYFq9cLWgqXh70/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DilipsBlog/~4/DKIEiok3MAo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yogidilip.blogspot.com/feeds/411374510841954403/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=7027271576527025654&amp;postID=411374510841954403" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/411374510841954403?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7027271576527025654/posts/default/411374510841954403?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/DilipsBlog/~3/DKIEiok3MAo/goolag-scanner.html" title="Goolag Scanner" /><author><name>Dilip</name><uri>http://www.blogger.com/profile/15867698324931869235</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><feedburner:origLink>http://yogidilip.blogspot.com/2008/02/goolag-scanner.html</feedburner:origLink></entry></feed>

