<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-30662357</id><updated>2012-02-09T04:46:07.761+01:00</updated><category term='ubuntu 7.10 Gutsy font mplus mikachan'/><category term='protocol'/><category term='DNS'/><category term='decode'/><category term='jBoss'/><category term='Ubuntu 7.04 Feisty Fawn'/><category term='analyzer'/><category term='encoding'/><category term='maven'/><category term='struts2'/><category term='commons'/><category term='keymap'/><category term='toString'/><category term='debian'/><category term='resource'/><category term='Firefox3 plugin'/><category term='mysql character set'/><category term='eclipse'/><category term='tomcat5.5'/><category term='apache2.2 AuthUserFIle'/><category term='linux'/><category term='ubuntu 7.10'/><category term='xml'/><category term='hibernate'/><category term='shell script'/><category term='MySQL'/><category term='java'/><category term='heap'/><category term='number'/><category term='webdav'/><category term='digester'/><category term='lang'/><category term='apt'/><category term='flv'/><category term='ffmpeg'/><category term='format'/><category term='maven2'/><category term='memory'/><category term='bash'/><category term='font'/><category term='SocketException ulimit'/><category term='config'/><category term='logrotate'/><category term='log4j'/><category term='trac'/><category term='3gp'/><category term='zsh'/><category term='ssl'/><category term='certificate'/><category term='Timezone'/><category term='encode'/><category term='decimal'/><category term='subversion'/><category term='Bind'/><title type='text'>Make It Open</title><subtitle type='html'>The Answer to Life, the Universe, and Everything</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>77</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-30662357.post-1696138256384450514</id><published>2009-01-21T20:55:00.005+01:00</published><updated>2009-01-21T20:58:30.656+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='struts2'/><title type='text'>Struts2: &lt;img src="${url}"/&gt;</title><content type='html'>In case of specifying the url for the image in struts2, you can write as follows.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;s:iterator value="books" status="rowstatus"&amp;gt;&lt;br /&gt;&amp;lt;s:url id="url" value="%{bookImagePath[#rowstatus.index]}"/&amp;gt;&lt;br /&gt; &amp;lt;img src="${url}" alt="Book image" align="top"/&amp;gt;&lt;br /&gt;&amp;lt;/iterator&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-1696138256384450514?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/1696138256384450514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=1696138256384450514&amp;isPopup=true' title='45 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/1696138256384450514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/1696138256384450514'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2009/01/struts2.html' title='Struts2: &amp;lt;img src=&quot;${url}&quot;/&amp;gt;'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>45</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-8546375182688483018</id><published>2009-01-08T23:14:00.002+01:00</published><updated>2009-01-08T23:16:40.153+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><title type='text'>ERROR JDBCExceptionReporter - Duplicate entry</title><content type='html'>By using mysql, I faced the followin error and here is the solution&lt;br /&gt;&lt;pre&gt;2009-01-08 22:55:18,454  WARN JDBCExceptionReporter - SQL Error: 1062, SQLState: 23000&lt;br /&gt;2009-01-08 22:55:18,454 ERROR JDBCExceptionReporter - Duplicate entry '268731' for key 1&lt;br /&gt;2009-01-08 22:55:18,454 ERROR AbstractFlushingEventListener - Could not synchronize database state with sessi&lt;br /&gt;org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Close the session after transaction.commit().&lt;br /&gt;&lt;pre&gt;transaction.commit();&lt;br /&gt;session.flush();&lt;br /&gt;session.close();&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-8546375182688483018?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/8546375182688483018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=8546375182688483018&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/8546375182688483018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/8546375182688483018'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2009/01/error-jdbcexceptionreporter-duplicate.html' title='ERROR JDBCExceptionReporter - Duplicate entry'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-2579944080083151756</id><published>2009-01-08T23:11:00.002+01:00</published><updated>2009-01-08T23:14:06.403+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost</title><content type='html'>I faced the following error and here is the solution.&lt;br /&gt;&lt;pre&gt;  ** BEGIN NESTED EXCEPTION **&lt;br /&gt;&lt;br /&gt;java.io.EOFException&lt;br /&gt;MESSAGE: Can not read response from server. Expected to read 4 bytes, read 2&lt;br /&gt;bytes before connection was unexpectedly lost.&lt;br /&gt;&lt;br /&gt;STACKTRACE:&lt;br /&gt;&lt;br /&gt;java.io.EOFException: Can not read response from server. Expected to read 4&lt;br /&gt;bytes, read 2 bytes before connection was unexpectedly lost. &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Comment the wait_timeout such as below.&lt;br /&gt;&lt;pre&gt;#wait_timeout=30&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-2579944080083151756?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/2579944080083151756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=2579944080083151756&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/2579944080083151756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/2579944080083151756'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2009/01/expected-to-read-4-bytes-read-0-bytes.html' title='Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-7798761714758552550</id><published>2009-01-06T15:10:00.003+01:00</published><updated>2009-01-06T15:14:23.380+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SocketException ulimit'/><title type='text'>SocketException: Too many open files</title><content type='html'>If you see the following error,&lt;br /&gt;&lt;pre&gt;java.net.SocketException: Too many open files&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Try to change the max open file value for the user&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#check current value by calling&lt;br /&gt;ulimit -a&lt;br /&gt;#Set new max open file&lt;br /&gt;ulimit -n 102400&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;as well as the OS&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#Check current value&lt;br /&gt;cat /proc/sys/fs/file-max&lt;br /&gt;#Set the new max open file by adding the following &lt;br /&gt;vi /etc/sysctl.conf&lt;br /&gt;--&lt;br /&gt;fs.file-max = 49500&lt;br /&gt;--&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-7798761714758552550?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/7798761714758552550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=7798761714758552550&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7798761714758552550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7798761714758552550'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2009/01/socketexception-too-many-open-files.html' title='SocketException: Too many open files'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-7035556209257565585</id><published>2008-12-23T09:47:00.002+01:00</published><updated>2008-12-23T09:53:56.119+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><title type='text'>SQL Error: 0, SQLState: 08S01</title><content type='html'>If you see the such a error by using hibernate3, you need the following to avoid it.&lt;br /&gt;&lt;pre&gt;JDBCExceptionReporter　SQL Error: 0, SQLState: 08S01&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;In hibernate.cfg.xml, write&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;property name="c3p0.min_size"&amp;gt;5&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="c3p0.max_size"&amp;gt;20&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="c3p0.timeout"&amp;gt;1800&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="c3p0.max_statements"&amp;gt;50&amp;lt;/property&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then create "c3p0.properties" in your root classpath folder and write&lt;br /&gt;&lt;pre&gt;c3p0.testConnectionOnCheckout=true&lt;br /&gt;c3p0.acquireRetryDelay=1000&lt;br /&gt;c3p0.acquireRetryAttempts=1&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-7035556209257565585?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/7035556209257565585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=7035556209257565585&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7035556209257565585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7035556209257565585'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/12/sql-error-0-sqlstate-08s01.html' title='SQL Error: 0, SQLState: 08S01'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-6895255696466679315</id><published>2008-12-10T09:12:00.001+01:00</published><updated>2008-12-10T09:16:01.462+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>Illegal mix of collations in MySQL</title><content type='html'>In case for having such a error in mysql using Hibernate or so.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;java.sql.SQLException: General error message&lt;br /&gt;from server: "Illegal mix of collations&lt;br /&gt; (utf8_general_ci,COERCIBLE) and &lt;br /&gt;(latin1_swedish_ci,IMPLICIT) for operation '='"&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Add the following in my.cnf&lt;br /&gt;&lt;pre&gt;[client]&lt;br /&gt;default-character-set = utf8&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;[mysqld]&lt;br /&gt;skip-character-set-client-handshake&lt;br /&gt;default-character-set=utf8&lt;br /&gt;character-set-server=utf8&lt;br /&gt;init-connect=SET NAMES utf8&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-6895255696466679315?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/6895255696466679315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=6895255696466679315&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6895255696466679315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6895255696466679315'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/12/illegal-mix-of-collations-in-mysql.html' title='Illegal mix of collations in MySQL'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-817363034534210424</id><published>2008-11-17T11:10:00.002+01:00</published><updated>2008-11-17T11:14:18.501+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apache2.2 AuthUserFIle'/><title type='text'>Apache2.2 : AuthUserFile Error</title><content type='html'>&lt;pre&gt;&amp;lt;Location /svn&amp;gt;&lt;br /&gt;       DAV svn&lt;br /&gt;       SVNParentPath "/var/svn"&lt;br /&gt;       AuthzSVNaccessFile /var/svn/.htpasswd&lt;br /&gt;       AuthType Basic&lt;br /&gt;       AUthName "Dev Project"&lt;br /&gt;       AuthUserFile /var/svn/.htpasswd&lt;br /&gt;&amp;lt;/Location&amp;gt;&lt;/pre&gt;&lt;br /&gt;I set the basic authentication such as above which ended up the below error.&lt;br /&gt;&lt;pre&gt;# /etc/init.d/apache2 reload&lt;br /&gt;Syntax error on line 64 of /etc/apache2/mods-enabled/dav_svn.conf:&lt;br /&gt;Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration&lt;/pre&gt;&lt;br /&gt;Since below,&lt;br /&gt;&lt;pre&gt;$ for i in /usr/lib/apache2/modules/*; do strings $i | grep -q -i AuthUser &amp;&amp; echo $i; done&lt;br /&gt;/usr/lib/apache2/modules/mod_authn_file.so&lt;br /&gt;$ ls /etc/apache2/mods-available/authn_file.load&lt;br /&gt;/etc/apache2/mods-available/authn_file.load&lt;/pre&gt;&lt;br /&gt;You need to do as follow,&lt;br /&gt;&lt;pre&gt;$ sudo /usr/sbin/a2enmod authn_file&lt;br /&gt;Module authn_file installed; run /etc/init.d/apache2 force-reload to enable.&lt;br /&gt;$ /usr/sbin/apache2ctl configtest&lt;br /&gt;Syntax OK&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-817363034534210424?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/817363034534210424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=817363034534210424&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/817363034534210424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/817363034534210424'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/11/apache22-authuserfile-error.html' title='Apache2.2 : AuthUserFile Error'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-5346488948596050165</id><published>2008-11-14T20:01:00.004+01:00</published><updated>2008-11-14T21:45:00.491+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jBoss'/><title type='text'>JBoss Setting</title><content type='html'>After the installation of JBoss, here is the know-how of its setting.&lt;br /&gt;&lt;br /&gt;1) Heap size&lt;br /&gt;&lt;pre&gt;$ sudo vim $JBOSS/bin/run.conf&lt;/pre&gt;&lt;br /&gt;  JAVA_OPTS="-Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"&lt;br /&gt;=&gt;&lt;br /&gt;  JAVA_OPTS="-Xms512m -Xmx768m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"&lt;br /&gt;&lt;br /&gt;2) Port check&lt;br /&gt;&lt;pre&gt;vim $JBOSS/server/default/deploy/jboss-web.deployer/server.xml&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;3) Transaction time out&lt;br /&gt;&lt;pre&gt;vim $JBOSS/server/default/conf/jboss-service.xml&lt;/pre&gt;&lt;br /&gt;&lt;attribute name="TransactionTimeout"&gt;300&lt;/attribute&gt;&lt;br /&gt;=&gt;&lt;br /&gt;&lt;attribute name="TransactionTimeout"&gt;150&lt;/attribute&gt;&lt;br /&gt;&lt;br /&gt;4) Thread number&lt;br /&gt;&lt;pre&gt;vim server/default/deploy/jboss-web.deployer/server.xml&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; maxThreads="250"&lt;br /&gt;=&gt;&lt;br /&gt;maxThreads="200"&lt;br /&gt;&lt;br /&gt;5) Log Output level by log4j&lt;br /&gt;&lt;pre&gt;vim /opt/jboss-4.2.3.GA/server/default/conf/jboss-log4j.xml &lt;br /&gt;   &amp;lt;root&amp;gt;&lt;br /&gt;     &amp;lt;priority value="WARN" /&amp;gt;&lt;br /&gt;      &amp;lt;appender-ref ref="CONSOLE"/&amp;gt;&lt;br /&gt;      &amp;lt;appender-ref ref="FILE"/&amp;gt;&lt;br /&gt;   &amp;lt;/root&amp;gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-5346488948596050165?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/5346488948596050165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=5346488948596050165&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5346488948596050165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5346488948596050165'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/11/jboss-setting.html' title='JBoss Setting'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-5964851914123083191</id><published>2008-11-13T11:59:00.002+01:00</published><updated>2008-11-13T12:00:30.789+01:00</updated><title type='text'>Struts2 and Hibernate v3 Min. Lib.</title><content type='html'>Those are the minimum required libraries for Struts2 and Hibernate v3.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Struts2&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;-commons-logging&lt;br /&gt;-freemaker&lt;br /&gt;-ognl&lt;br /&gt;-struts2-core&lt;br /&gt;-xwork&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;JBoss&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;-hibernate3&lt;br /&gt;-antlr&lt;br /&gt;-comons-collection&lt;br /&gt;-dom4j&lt;br /&gt;-javassist&lt;br /&gt;-jta&lt;br /&gt;-slf4j-api&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-5964851914123083191?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/5964851914123083191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=5964851914123083191&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5964851914123083191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5964851914123083191'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/11/struts2-and-hibernate-v3-min-lib.html' title='Struts2 and Hibernate v3 Min. Lib.'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-4962867322405919442</id><published>2008-08-18T18:40:00.002+02:00</published><updated>2008-08-18T18:43:43.646+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='logrotate'/><category scheme='http://www.blogger.com/atom/ns#' term='log4j'/><title type='text'>Log4J Log rotate</title><content type='html'>It's better to log rotate by Java side than using Linux/Unix logrotate.&lt;br /&gt;This is the example for log4J v1.2x (The v1.3 development is stopped by the way.) series , "log4j.xml" file.&lt;br /&gt;&lt;br /&gt;By using DailyRollingFileAppender, you can log rotate as the date base.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&amp;gt;&lt;br /&gt;&amp;lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"&amp;gt;&lt;br /&gt; &amp;lt;!--Definition of the File Appender --&amp;gt;&lt;br /&gt;    &amp;lt;appender name="file" class="org.apache.log4j.DailyRollingFileAppender"&amp;gt;&lt;br /&gt;     &amp;lt;!-- Date pattern policy --&amp;gt;&lt;br /&gt;        &amp;lt;param name="DatePattern" value=".yyyy-ww" /&amp;gt;&lt;br /&gt;      &lt;br /&gt;      &amp;lt;param name="File" value="logs/hibernate.log"/&amp;gt;&lt;br /&gt;      &amp;lt;!-- Log append --&amp;gt;&lt;br /&gt;     &amp;lt;param name="Append" value="true" /&amp;gt;&lt;br /&gt;     &lt;br /&gt;     &amp;lt;!-- Log layout --&amp;gt;&lt;br /&gt;     &amp;lt;layout class="org.apache.log4j.PatternLayout"&amp;gt;&lt;br /&gt;         &amp;lt;param name="ConversionPattern" value="%d %5p %c{1} - %m%n" /&amp;gt;&lt;br /&gt;      &amp;lt;/layout&amp;gt;&lt;br /&gt;     &lt;br /&gt;     &amp;lt;!-- Default log level --&amp;gt;&lt;br /&gt;     &amp;lt;param name="threshold" value="info"/&amp;gt;&lt;br /&gt;     &lt;br /&gt;    &amp;lt;/appender&amp;gt;&lt;br /&gt;    &lt;br /&gt;    &amp;lt;!--Console log appender --&amp;gt;&lt;br /&gt;    &amp;lt;appender name="stdout" class="org.apache.log4j.ConsoleAppender"&amp;gt;&lt;br /&gt;     &amp;lt;!-- Default log level --&amp;gt;&lt;br /&gt;        &amp;lt;param name="threshold" value="info"/&amp;gt;&lt;br /&gt;        &amp;lt;!-- log layout --&amp;gt;&lt;br /&gt;        &amp;lt;layout class="org.apache.log4j.PatternLayout"&amp;gt;&lt;br /&gt;            &amp;lt;param name="ConversionPattern" value="%d %5p %c{1} - %m%n"/&amp;gt;&lt;br /&gt;        &amp;lt;/layout&amp;gt;&lt;br /&gt;    &amp;lt;/appender&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;root&amp;gt;&lt;br /&gt;    &amp;lt;appender-ref ref="stdout"/&amp;gt;&lt;br /&gt;    &amp;lt;appender-ref ref="file"/&amp;gt;&lt;br /&gt;  &amp;lt;/root&amp;gt;&lt;br /&gt;&amp;lt;/log4j:configuration&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-4962867322405919442?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/4962867322405919442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=4962867322405919442&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/4962867322405919442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/4962867322405919442'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/08/log4j-log-rotate.html' title='Log4J Log rotate'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-7013678189017632110</id><published>2008-06-07T02:00:00.002+02:00</published><updated>2008-06-07T02:03:34.809+02:00</updated><title type='text'>File code converting</title><content type='html'>After moving from Windows dev. environment to Linux, source file needs to be converted to UTF8 from Shift_JIS. It's done easily.&lt;br /&gt;&lt;pre&gt; find ./* -type f -name '*.java' -exec nkf -Luw --overwrite {} \;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-7013678189017632110?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/7013678189017632110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=7013678189017632110&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7013678189017632110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7013678189017632110'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/06/file-code-converting.html' title='File code converting'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-6146419689147900929</id><published>2008-05-27T21:56:00.006+02:00</published><updated>2008-05-31T00:56:36.271+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ffmpeg'/><category scheme='http://www.blogger.com/atom/ns#' term='flv'/><title type='text'>Flv file convert</title><content type='html'>Flv file convert to music format&lt;br /&gt;&lt;br /&gt;.flv to mp3&lt;br /&gt;&lt;pre&gt;$ ffmpeg -i xxx.flv -vn -acodec aac -ab 128k -ac 2 -ar 44100 -y test.mp3&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;.flv to aac&lt;br /&gt;&lt;pre&gt;$ ffmpeg -i xxx.flv -vn -acodec mp3 -ab 128k -ac 2 -ar 44100 -y test.mp3&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;.flv to mp4&lt;br /&gt;&lt;pre&gt;$ ffmpeg -bitexact -y -i OLD_TOWN.flv -vcodec mpeg4 -s 320x240 -r 25 -b 480k -acodec aac -ac 2 &lt;br /&gt;-ar 22050 -ab 69k out.mp4&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;To cut mp3 then&lt;br /&gt;&lt;pre&gt;$ sudo apt-get install poc-streamer&lt;br /&gt;#mp3cut [ -o outputfile ] [ -T title ] [ -A artist ] [ -N album-name ] &lt;br /&gt;[ -t [hh:]mm:ss[+ms]-[hh:]mm:ss[+ms] ] mp3file [[ -t … ] mp3file1 …]&lt;br /&gt;&lt;br /&gt;$ mp3cut -o cut.mp3 -t 00:08-00:49 test.mp3 &lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-6146419689147900929?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/6146419689147900929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=6146419689147900929&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6146419689147900929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6146419689147900929'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/05/flv-file-convert.html' title='Flv file convert'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-4246823560421152146</id><published>2008-05-21T17:16:00.004+02:00</published><updated>2008-05-21T17:24:23.985+02:00</updated><title type='text'>Awstats for Ubuntu</title><content type='html'>awstats is log analyzer I use it for tomcat log analysis.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;Host name="localhost" appBase="webapps" &amp;gt;&lt;br /&gt;        &amp;lt;Valve className="org.apache.catalina.valves.AccessLogValve"&lt;br /&gt;        directory="logs" prefix="ich_access_log."&lt;br /&gt;        suffix=".txt" pattern="combined" resolveHost="false" / &amp;gt;&lt;br /&gt;&amp;lt;/Host &amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Setting for awstats&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;cp -r /usr/share/awstats/icon /var/www/awstats-icon&lt;br /&gt;/usr/lib/cgi-bin/awstats.pl -config=hostname -update&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then access to :http://hostname/cgi-bin/awstats.pl?config=hostname&lt;br /&gt;&lt;br /&gt;Edit cron&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;crontab -e&lt;br /&gt;--&lt;br /&gt;0 1 * * * /usr/lib/cgi-bin/awstats.pl -config=hostname -update&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-4246823560421152146?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/4246823560421152146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=4246823560421152146&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/4246823560421152146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/4246823560421152146'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/05/awstats-for-ubuntu.html' title='Awstats for Ubuntu'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-6774850298796937316</id><published>2008-05-14T23:16:00.002+02:00</published><updated>2008-05-14T23:19:51.862+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Firefox3 plugin'/><title type='text'>Firefox3 Plugins</title><content type='html'>I've been using Hardy 8.04 which implements Firefox3.0b5.&lt;br /&gt;Still many of FF plug-ins are not supported for FF3. If you want to use it by any means.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;1) about:config &lt;br /&gt;2) Choose New&gt;Boolean. Then "checkCompatibility" to "false".&lt;br /&gt;3) Choose New&gt;Boolean. "checkUpdateSecurity" to "false".&lt;br /&gt;4) Restart Firefox and done ;-)&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-6774850298796937316?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/6774850298796937316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=6774850298796937316&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6774850298796937316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6774850298796937316'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/05/firefox3-plugins.html' title='Firefox3 Plugins'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-1746151248899517073</id><published>2008-03-06T10:38:00.001+01:00</published><updated>2008-03-06T10:40:11.372+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu 7.04 Feisty Fawn'/><title type='text'>Change the folder name in English</title><content type='html'>Change the default folder such as Music/Document etc. name in English.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;LANG=C xdg-user-dirs-gtk-update&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-1746151248899517073?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/1746151248899517073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=1746151248899517073&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/1746151248899517073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/1746151248899517073'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/03/change-folder-name-in-english.html' title='Change the folder name in English'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-1596700961826774946</id><published>2008-02-25T23:11:00.001+01:00</published><updated>2008-02-25T23:12:18.965+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zsh'/><title type='text'>zshrc</title><content type='html'>mine&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;# Created by newuser for 4.3.4&lt;br /&gt;&lt;br /&gt;export JAVA_HOME=/usr/lib/jvm/java-6-sun&lt;br /&gt;export PATH=$PATH:/opt/apache-maven-2.0.8/bin&lt;br /&gt;&lt;br /&gt;alias eclipse='/opt/eclipse/eclipse'&lt;br /&gt;alias update='sudo apt-get update'&lt;br /&gt;alias upgrade='sudo apt-get upgrade'&lt;br /&gt;alias du="du -h"&lt;br /&gt;alias df="df -h"&lt;br /&gt;alias ps="ps -aux"&lt;br /&gt;&lt;br /&gt;# For auto compinit&lt;br /&gt;autoload -U compinit&lt;br /&gt;compinit&lt;br /&gt;&lt;br /&gt;# For prompt&lt;br /&gt;PROMPT="%/%% "&lt;br /&gt;PROMPT2="%_%% "&lt;br /&gt;SPROMPT="%r is correct? [n,y,a,e]: "&lt;br /&gt;&lt;br /&gt;# For title bar&lt;br /&gt;case "${TERM}" in&lt;br /&gt;kterm*|xterm)&lt;br /&gt;    precmd() {&lt;br /&gt;        echo -ne "\033]0;${USER}@${HOST%%.*}:${PWD}\007"&lt;br /&gt;    }&lt;br /&gt;    ;;&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;# For history function&lt;br /&gt;HISTFILE=~/.zsh_history&lt;br /&gt;HISTSIZE=10000&lt;br /&gt;SAVEHIST=10000&lt;br /&gt;setopt hist_ignore_dups     # ignore duplication command history list&lt;br /&gt;setopt share_history        # share command history data&lt;br /&gt;&lt;br /&gt;# For History search shortcut&lt;br /&gt;autoload history-search-end&lt;br /&gt;zle -N history-beginning-search-backward-end history-search-end&lt;br /&gt;zle -N history-beginning-search-forward-end history-search-end&lt;br /&gt;bindkey "^P" history-beginning-search-backward-end&lt;br /&gt;bindkey "^N" history-beginning-search-forward-end&lt;br /&gt;&lt;br /&gt;# Editor vi mode&lt;br /&gt;bindkey -v&lt;br /&gt;&lt;br /&gt;# For remembering the previous folder&lt;br /&gt;setopt auto_pushd&lt;br /&gt;&lt;br /&gt;# No beep&lt;br /&gt;setopt nolistbeep&lt;br /&gt;&lt;br /&gt;# For auto-prediction function&lt;br /&gt;autoload predict-on&lt;br /&gt;predict-on&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-1596700961826774946?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/1596700961826774946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=1596700961826774946&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/1596700961826774946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/1596700961826774946'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/02/zshrc.html' title='zshrc'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-4545373229359383723</id><published>2008-02-09T21:48:00.000+01:00</published><updated>2008-02-10T15:12:54.593+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu 7.10 Gutsy font mplus mikachan'/><title type='text'>Ubuntu Gutsy Step1</title><content type='html'>I just bought Dell Inspiron 1720 for my private note PC.&lt;br /&gt;I certainly decided to delete Vista and then install Ubuntu for the box.&lt;br /&gt;This is step by step set up for my reminder.&lt;br /&gt;I skip writing the way to add apt line or so as it is too easy procedure to forget.&lt;br /&gt;&lt;br /&gt;*Sound - you need to install the following package to enable the sound&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$ sudo apt-get install linux-backports-modules-generic&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;1) I suggest to visit here for your little preparation&lt;br /&gt;&lt;a href="http://easylinux.info/wiki/Ubuntu:Gutsy"&gt;http://easylinux.info/wiki/Ubuntu:Gutsy&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2) Font installation&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#Mplus&lt;br /&gt;% sudo cp /usr/share/fonts/truetype/ipa/ipag.ttf .&lt;br /&gt;% sudo fontforge -script m++ipa.pe&lt;br /&gt;% sudo mkdir /usr/share/fonts/truetype/mplus&lt;br /&gt;% sudo mv M*IPAG.ttf /usr/share/fonts/truetype/mplus/.&lt;br /&gt;% sudo fc-cache -f -v /usr/share/fonts/truetype/mplus&lt;br /&gt;&lt;br /&gt;#Mikacha for the same step&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;3) Then go to forum to see what you want to do.&lt;br /&gt;&lt;a href="http://ubuntuforums.org/"&gt;http://ubuntuforums.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4) Adobe related s/w&lt;br /&gt;Flash capability is important. Visit adobe page to download the flash player.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$ tar zvxf install_flash_player_9_linux.tar.gz &lt;br /&gt;$ cd install_flash_player_9_linux/&lt;br /&gt;$ sudo ./flashplayer-installer &lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;Copyright(C) 2002-2006 Adobe Macromedia Software LLC.  All rights reserved.&lt;br /&gt;Adobe Flash Player 9 for Linux&lt;br /&gt;Adobe Flash Player 9 will be installed on this machine.&lt;br /&gt;You are running the Adobe Flash Player installer as the "root" user.&lt;br /&gt;Adobe Flash Player 9 will be installed system-wide.&lt;br /&gt;Support is available at http://www.adobe.com/support/flashplayer/&lt;br /&gt;To install Adobe Flash Player 9 now, press ENTER.&lt;br /&gt;To cancel the installation at any time, press Control-C.&lt;br /&gt;NOTE: Please exit any browsers you may have running.&lt;br /&gt;Press ENTER to continue...&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Please enter the installation path of the Mozilla, Netscape,&lt;br /&gt;or Opera browser (i.e., /usr/lib/mozilla): /usr/lib/firefox&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;----------- Install Action Summary -----------&lt;br /&gt;Adobe Flash Player 9 will be installed in the following directory:&lt;br /&gt;Browser installation directory = /usr/lib/firefox&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Proceed with the installation? (y/n/q): y&lt;/span&gt;&lt;br /&gt;Installation complete.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Perform another installation? (y/n): n&lt;/span&gt;&lt;br /&gt;Please log out of this session and log in for the changes to take effect.&lt;br /&gt;The Adobe Flash Player installation is complete.&lt;br /&gt;&lt;br /&gt;#Then PDF&lt;br /&gt;$sudo aptitude install acroread acroread-plugins acroread-escript&lt;br /&gt;$sudo aptitude install mozilla-acroread&lt;br /&gt;&lt;br /&gt;--set at the first launch :: Edit -&gt; Prefences -&gt; Interne&lt;br /&gt; Browser Executable: /usr/bin/firefox&lt;br /&gt; libgtkembedmoz Folder: /usr/lib/firefox/ &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;5) java capability&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$ sudo apt-get install sun-java6-jre sun-java6-plugin&lt;br /&gt;$ sudo update-java-alternatives -s java-6-sun&lt;br /&gt;$ sudo vim /etc/jvm&lt;br /&gt;--&lt;br /&gt;#Add the following line in the top of the file&lt;br /&gt;/usr/lib/jvm/java-6-sun&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-4545373229359383723?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/4545373229359383723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=4545373229359383723&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/4545373229359383723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/4545373229359383723'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/02/ubuntu-gutsy-step1.html' title='Ubuntu Gutsy Step1'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-6152358980629095194</id><published>2008-01-11T00:08:00.001+01:00</published><updated>2008-05-20T16:13:25.604+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql character set'/><title type='text'>MySQL5 character set</title><content type='html'>All you need to edit my.cnf in order not to write the command like "set name xxx" everytime you restart the service.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[client]&lt;br /&gt;default-character-set = utf8&lt;br /&gt;&lt;br /&gt;[mysqld]&lt;br /&gt;skip-character-set-client-handshake&lt;br /&gt;default-character-set = utf8&lt;br /&gt;character-set-server = utf8&lt;br /&gt;collation-server = utf8_general_ci&lt;br /&gt;init-connect = SET NAMES utf8&lt;br /&gt;&lt;br /&gt;[mysqldump]&lt;br /&gt;default-character-set = utf8&lt;br /&gt;&lt;br /&gt;[mysql]&lt;br /&gt;default-character-set = utf8&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;In order to check the charset&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;mysql&gt; shwo variables like 'char%';&lt;br /&gt;+--------------------------+----------------------------+&lt;br /&gt;| Variable_name            | Value                      |&lt;br /&gt;+--------------------------+----------------------------+&lt;br /&gt;| character_set_client     | utf8                       |&lt;br /&gt;| character_set_connection | utf8                       |&lt;br /&gt;| character_set_database   | latin1                     |&lt;br /&gt;| character_set_filesystem | binary                     |&lt;br /&gt;| character_set_results    | utf8                       |&lt;br /&gt;| character_set_server     | utf8                       |&lt;br /&gt;| character_set_system     | utf8                       |&lt;br /&gt;| character_sets_dir       | /usr/share/mysql/charsets/ |&lt;br /&gt;+--------------------------+----------------------------+&lt;br /&gt;&lt;br /&gt;#Then set charset&lt;br /&gt;mysql&gt;set character_set_database=utf8&lt;br /&gt;mysql&gt; show variables like 'char%';&lt;br /&gt;+--------------------------+----------------------------+&lt;br /&gt;| Variable_name            | Value                      |&lt;br /&gt;+--------------------------+----------------------------+&lt;br /&gt;| character_set_client     | utf8                       |&lt;br /&gt;| character_set_connection | utf8                       |&lt;br /&gt;| character_set_database   | utf8                       |&lt;br /&gt;| character_set_filesystem | binary                     |&lt;br /&gt;| character_set_results    | utf8                       |&lt;br /&gt;| character_set_server     | utf8                       |&lt;br /&gt;| character_set_system     | utf8                       |&lt;br /&gt;| character_sets_dir       | /usr/share/mysql/charsets/ |&lt;br /&gt;+--------------------------+----------------------------+&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-6152358980629095194?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/6152358980629095194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=6152358980629095194&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6152358980629095194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6152358980629095194'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2008/01/mysql5-character-set.html' title='MySQL5 character set'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-7610352298747598926</id><published>2007-12-09T23:22:00.000+01:00</published><updated>2007-12-09T23:25:14.987+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maven2'/><title type='text'>Maven2 deploy to other server</title><content type='html'>Create file settings.xml under .m2&lt;br /&gt;&lt;pre&gt;&amp;lt;?xml version='1.0' encoding='utf-8' ?&amp;gt;&lt;br /&gt;&amp;lt;settings&amp;gt;&lt;br /&gt;  &amp;lt;servers&amp;gt;&lt;br /&gt;    &amp;lt;server&amp;gt;&lt;br /&gt;      &amp;lt;id&amp;gt;scp-repository&amp;lt;/id&amp;gt;&lt;br /&gt;      &amp;lt;username&amp;gt;cavalier&amp;lt;/username&amp;gt;&lt;br /&gt;      &amp;lt;privateKey&amp;gt;C:\Program Files\PuTTY\auth\id_rsa&amp;lt;/privateKey&amp;gt;&lt;br /&gt;      &amp;lt;passphrase&amp;gt;xxxxxx&amp;lt;/passphrase&amp;gt;&lt;br /&gt;      &amp;lt;filePermissions&amp;gt;664&amp;lt;/filePermissions&amp;gt;&lt;br /&gt;      &amp;lt;directoryPermissions&amp;gt;775&amp;lt;/directoryPermissions&amp;gt;&lt;br /&gt;    &amp;lt;/server&amp;gt;&lt;br /&gt;  &amp;lt;/servers&amp;gt;&lt;br /&gt;&amp;lt;/settings&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then add the following to pom.xml&lt;br /&gt;&lt;pre&gt;&amp;lt;distributionManagement&amp;gt;&lt;br /&gt; &amp;lt;repository&amp;gt;&lt;br /&gt; &amp;lt;id&amp;gt;scp-repository&amp;lt;/id&amp;gt;&lt;br /&gt; &amp;lt;url&amp;gt;scp://192.168.0.xx/home/cav/repository&amp;lt;/url&amp;gt;&lt;br /&gt; &amp;lt;/repository&amp;gt;&lt;br /&gt;&amp;lt;/distributionManagement&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-7610352298747598926?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/7610352298747598926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=7610352298747598926&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7610352298747598926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7610352298747598926'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/12/maven2-deploy-to-other-server.html' title='Maven2 deploy to other server'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-340795680667850108</id><published>2007-12-09T23:09:00.000+01:00</published><updated>2007-12-09T23:21:52.239+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='maven2'/><title type='text'>maven2 java version</title><content type='html'>You might need to specify the compile java version by using generics etc in pom.xml file.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;project&amp;gt;&lt;br /&gt;  &amp;lt;build&amp;gt;&lt;br /&gt;    &amp;lt;plugins&amp;gt;&lt;br /&gt;      &amp;lt;plugin&amp;gt;&lt;br /&gt;        &amp;lt;artifactId&amp;gt;maven-compiler-plugin&amp;lt;/artifactId&amp;gt;&lt;br /&gt;        &amp;lt;configuration&amp;gt;&lt;br /&gt;          &amp;lt;source&amp;gt;1.6&amp;lt;/source&amp;gt;&lt;br /&gt;          &amp;lt;target&amp;gt;1.6&amp;lt;/target&amp;gt;&lt;br /&gt;          &amp;lt;encoding&amp;gt;UTF-8&amp;lt;/encoding&amp;gt;&lt;br /&gt;        &amp;lt;/configuration&amp;gt;&lt;br /&gt;      &amp;lt;/plugin&amp;gt;&lt;br /&gt;    &amp;lt;/plugins&amp;gt;&lt;br /&gt;  &amp;lt;/build&amp;gt;&lt;br /&gt;&amp;lt;/project&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-340795680667850108?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/340795680667850108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=340795680667850108&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/340795680667850108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/340795680667850108'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/12/maven2-java-version.html' title='maven2 java version'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-5256042314315147084</id><published>2007-12-01T22:13:00.000+01:00</published><updated>2007-12-01T22:15:51.238+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><title type='text'>Eclipse3.3.1 OutOfMemory</title><content type='html'>Eclipse 3.3.1 has bug on memory part.&lt;br /&gt;https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250&lt;br /&gt;&lt;br /&gt;Edit the "eclipse.ini" to fix the issue.&lt;br /&gt;&lt;pre&gt;-showsplash&lt;br /&gt;org.eclipse.platform&lt;br /&gt;-vmargs&lt;br /&gt;-Dosgi.requiredJavaVersion=1.5&lt;br /&gt;-Xms512m&lt;br /&gt;-Xmx768m&lt;br /&gt;-XX:MaxPermSize=256m&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-5256042314315147084?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/5256042314315147084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=5256042314315147084&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5256042314315147084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5256042314315147084'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/12/eclipse331-outofmemory.html' title='Eclipse3.3.1 OutOfMemory'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-139163724711573903</id><published>2007-12-01T21:54:00.000+01:00</published><updated>2007-12-01T21:57:05.243+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Maven + Eclipse = Error?</title><content type='html'>If you face the something like the following error,&lt;br /&gt;&lt;pre&gt;Unbound classpath variable: ‘M2_REPO/bouncycastle/bcmail-jdk14/132/bcmail-jdk14-132.jar&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Select the Eclipse Project folder from the Navigator window view&lt;br /&gt;Right Click and get the Project Properties.&lt;br /&gt;Select the tree item named “Java Build Path”&lt;br /&gt;Push the button on the Right that says Add Variables.&lt;br /&gt;Then Push the button that says Configure Variables.&lt;br /&gt;Then push the New button&lt;br /&gt;Add a new variable named M2_REPO and map it to the directory that contains the repository above.&lt;br /&gt;Exit back to the “New Variable Classpath entry” dialog.&lt;br /&gt;Select the M2_REPO variable and click extend&lt;br /&gt;Select a jar file and exit.&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-139163724711573903?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/139163724711573903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=139163724711573903&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/139163724711573903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/139163724711573903'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/12/maven-eclipse-error.html' title='Maven + Eclipse = Error?'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-3580815362929165490</id><published>2007-12-01T21:50:00.000+01:00</published><updated>2007-12-01T21:53:21.734+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Maven2 : Adding jar to local repos</title><content type='html'>This is how you can add the Non globally installed jar to your local repos.&lt;br /&gt;&lt;pre&gt;mvn install:install-file -DgroupId=&lt;&lt;$Group Name&gt;&gt; -DartifactId=&lt;&lt;$Project Name&gt;&gt; \&lt;br /&gt;-Dversion=&lt;&lt;$S/W version&gt;&gt; -Dpackaging=jar -Dfile=&lt;&lt;$Path to the jar file&gt;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-3580815362929165490?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/3580815362929165490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=3580815362929165490&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/3580815362929165490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/3580815362929165490'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/12/maven2-adding-jar-to-local-repos.html' title='Maven2 : Adding jar to local repos'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-5848838293453631446</id><published>2007-11-30T23:26:00.000+01:00</published><updated>2007-12-04T10:32:41.982+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trac'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu 7.10'/><title type='text'>Trac Installation</title><content type='html'>For Ubuntu 7.10.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ apt-get install trac&lt;br /&gt;$ sudo mkdir /var/trac&lt;br /&gt;$ cd /var/trac&lt;br /&gt;$ trac-admin test initenv&lt;br /&gt;$ chown -R www-data ./test&lt;br /&gt;&lt;br /&gt;$ apt-get install libapache2-mod-python&lt;br /&gt;$ vi /etc/apache2/sites-available/trac&lt;br /&gt;--&lt;br /&gt; Alias /trac "/usr/share/trac/htdocs/"&lt;br /&gt;&lt;br /&gt; &amp;lt;Location "/tracsvn"&amp;gt;&lt;br /&gt;   SetHandler mod_python&lt;br /&gt; PythonHandler trac.web.modpython_frontend&lt;br /&gt; PythonOption TracUriRoot "/tracsvn"&lt;br /&gt; PythonOption TracEnvParentDir /var/local/trac&lt;br /&gt; AuthType Basic&lt;br /&gt; AuthName "DoJa Repository"&lt;br /&gt; AuthUserFile /etc/subversion/passwd&lt;br /&gt; Require valid-user&lt;br /&gt; SSLRequireSSL&lt;br /&gt;&amp;lt;/Location&amp;gt;&lt;br /&gt;--&lt;br /&gt;$ a2ensite trac&lt;br /&gt;$ /etc/init.d/apache2 reload&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-5848838293453631446?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/5848838293453631446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=5848838293453631446&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5848838293453631446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5848838293453631446'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/11/trac-installation.html' title='Trac Installation'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-2407020534295473627</id><published>2007-11-30T23:22:00.000+01:00</published><updated>2007-12-05T23:56:48.078+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='ssl'/><category scheme='http://www.blogger.com/atom/ns#' term='certificate'/><title type='text'>Subversion Installation</title><content type='html'>For Ubuntu 7.10&lt;br /&gt;&lt;pre&gt;$ sudo apt-get install subversion libapache2-svn&lt;br /&gt;$ sudo mkdir /var/svn&lt;br /&gt;$ sudo svnadmin create /var/svn/$REPOS&lt;br /&gt;$ sudo chown -R www-data:www-data /var/svn/$REPOS&lt;br /&gt;$ sudo chmod -R g+ws /var/svn/$REPOS&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Only allowing to access by SSL&lt;br /&gt;&lt;pre&gt;$ sudo a2enmod ssl&lt;br /&gt;$ sudo apt-get install ssl-cert&lt;br /&gt;&lt;br /&gt;#In order to change the valid days up to 10years&lt;br /&gt;#vi /usr/sbin/make-ssl-cert&lt;br /&gt;--&lt;br /&gt;openssl req -config $TMPFILE -new -days 365 -x509 -nodes -out $output -keyout $output  &amp;gt; /dev/null 2&amp;gt;&amp;1&lt;br /&gt;--&lt;br /&gt;$ sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem&lt;br /&gt;$ sudo chmod a+r /etc/apache2/ssl/apache.pem&lt;br /&gt;&lt;br /&gt;$ cp /etc/apache2/sites-available/default /etc/apache2/sites-available/$SITENAME&lt;br /&gt;$ sudo vim /etc/apache2/sites-available/$SITENAME&lt;br /&gt;change:&lt;br /&gt;NameVirtualHost *:443&lt;br /&gt;&lt;VirtualHost *:443&gt;&lt;br /&gt;add:&lt;br /&gt;SSLEngine on&lt;br /&gt;SSLCertificateFile /etc/apache2/ssl/apache.pem&lt;br /&gt;SSLProtocol all&lt;br /&gt;SSLCipherSuite HIGH:MEDIUM&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-2407020534295473627?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/2407020534295473627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=2407020534295473627&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/2407020534295473627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/2407020534295473627'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/11/subversion-installation.html' title='Subversion Installation'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-8762142297295127689</id><published>2007-11-29T16:31:00.000+01:00</published><updated>2007-11-29T19:32:55.790+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='encoding'/><title type='text'>MySQL Encoding</title><content type='html'>You need to change params for the server and the client.&lt;br /&gt;&lt;pre&gt;# Change MySQL server encode&lt;br /&gt;# By calling the following SQL you can see the current encoding.&lt;br /&gt;# show create table xxx;&lt;br /&gt;# show variables like 'char%';&lt;br /&gt;&lt;br /&gt;mysql$ alter table xxx character set utf8;&lt;br /&gt;mysql$ alter table xxx change sub1 sub1 varchar(256) character set utf8;&lt;br /&gt;mysql$ set names utf8;&lt;br /&gt;mysql$ set character_set_database=utf8&lt;br /&gt;mysql$ set character_set_server=utf8&lt;br /&gt;&lt;br /&gt;#On the client to connet to DB set the following param in URL&lt;br /&gt;jdbc:mysql://localhost/blojsom?autoReconnect=true&amp;amp;useUnicode=true&amp;amp;characterEncoding=utf-8&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-8762142297295127689?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/8762142297295127689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=8762142297295127689&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/8762142297295127689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/8762142297295127689'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/11/mysql-encoding.html' title='MySQL Encoding'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-9147940124532406739</id><published>2007-11-29T12:06:00.000+01:00</published><updated>2007-11-29T12:07:57.520+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DNS'/><category scheme='http://www.blogger.com/atom/ns#' term='Bind'/><title type='text'>Bind Reload</title><content type='html'>Bind reload command differs from the 8 or 9.&lt;br /&gt;&lt;pre&gt;#Bind8&lt;br /&gt;#/usr/sbin/ndc reload&lt;br /&gt;&lt;br /&gt;#Bind9&lt;br /&gt;#/usr/sbin/rndc reload&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-9147940124532406739?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/9147940124532406739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=9147940124532406739&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/9147940124532406739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/9147940124532406739'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/11/bind-reload.html' title='Bind Reload'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-8457035826750074834</id><published>2007-11-23T14:05:00.000+01:00</published><updated>2007-11-23T14:08:17.269+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><category scheme='http://www.blogger.com/atom/ns#' term='heap'/><title type='text'>Eclipse Heap Memory</title><content type='html'>This is how you can change the memory for Eclipse to use.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#vim $ECLIPSE_HOME/eclipse.ini&lt;br /&gt;--&lt;br /&gt;-vmargs&lt;br /&gt;-Xms64m&lt;br /&gt;-Xmx256m&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-8457035826750074834?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/8457035826750074834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=8457035826750074834&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/8457035826750074834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/8457035826750074834'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/11/eclipse-heap-memory.html' title='Eclipse Heap Memory'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-3089759960732199028</id><published>2007-11-23T14:04:00.000+01:00</published><updated>2007-11-23T14:05:23.591+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><category scheme='http://www.blogger.com/atom/ns#' term='tomcat5.5'/><category scheme='http://www.blogger.com/atom/ns#' term='heap'/><title type='text'>Tomcat Heap Memory</title><content type='html'>Here is the how we can change the setting of the memory used for tomcat.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;set CATALINA_OPTS="-Xms512m -Xmx512m"  (Windows)&lt;br /&gt;export CATALINA_OPTS="-Xms512m -Xmx512m"  (ksh/bash)&lt;br /&gt;setenv CATALINA_OPTS "-Xms512m -Xmx512m"  (tcsh/csh)&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-3089759960732199028?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/3089759960732199028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=3089759960732199028&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/3089759960732199028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/3089759960732199028'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/11/tomcat-heap-memory.html' title='Tomcat Heap Memory'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-6917866658022833221</id><published>2007-11-23T14:00:00.000+01:00</published><updated>2007-12-02T13:44:32.340+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='log4j'/><category scheme='http://www.blogger.com/atom/ns#' term='resource'/><category scheme='http://www.blogger.com/atom/ns#' term='config'/><title type='text'>Java:Loading the file</title><content type='html'>The dev environment and the actual service server are different and often face the problem of path to the config file with FileNotFound Exception or so. Here is a solution.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;URL propXML = this.getClass().getResource(RESFILE);&lt;br /&gt;Configuration config = new XMLConfiguration(propXML);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;ClassLoader loader = Thread.currentThread().getContextClassLoader();&lt;br /&gt;DOMConfigurator.configure(loader.getResource("log4j.xml"));&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-6917866658022833221?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/6917866658022833221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=6917866658022833221&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6917866658022833221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6917866658022833221'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/11/javaloading-file.html' title='Java:Loading the file'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-8943100117160958596</id><published>2007-11-16T11:54:00.001+01:00</published><updated>2007-11-16T11:56:13.733+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Timezone'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu 7.04 Feisty Fawn'/><title type='text'>Ubuntu: Change Timezone</title><content type='html'>The way to change the timezone.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;root # ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime&lt;br /&gt;root # date -d &lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-8943100117160958596?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/8943100117160958596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=8943100117160958596&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/8943100117160958596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/8943100117160958596'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/11/ubuntu-change-timezone.html' title='Ubuntu: Change Timezone'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-4397770866909984125</id><published>2007-08-13T18:34:00.000+02:00</published><updated>2007-08-13T18:40:04.191+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='format'/><category scheme='http://www.blogger.com/atom/ns#' term='decimal'/><category scheme='http://www.blogger.com/atom/ns#' term='number'/><title type='text'>Formats decimal numbers by Java</title><content type='html'>&lt;pre&gt;DecimalFormat df = new DecimalFormat("0000");&lt;br /&gt;df.format(77);&lt;br /&gt;#OUTPUT: 0077&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;DecimalFormat df = new DecimalFormat("####");&lt;br /&gt;df.format(77);&lt;br /&gt;#OUTPUT: 77&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;DecimalFormat df = new DecimalFormat("####%");&lt;br /&gt;df.format(77);&lt;br /&gt;#OUTPUT: 77%&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;DecimalFormat df = new DecimalFormat("'AA'####%");&lt;br /&gt;df.format(77);&lt;br /&gt;#OUTPUT: AA77%&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;DecimalFormat df = new DecimalFormat("\u00A5###,###");&lt;br /&gt;df.format(7777);&lt;br /&gt;#OUTPUT: \7,777&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-4397770866909984125?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/4397770866909984125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=4397770866909984125&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/4397770866909984125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/4397770866909984125'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/08/formats-decimal-numbers-by-java.html' title='Formats decimal numbers by Java'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-2926552664116437816</id><published>2007-08-02T19:25:00.000+02:00</published><updated>2007-08-02T19:27:06.326+02:00</updated><title type='text'>Struts2 by Maven for Eclipse</title><content type='html'>&lt;pre&gt;&lt;br /&gt;mvn archetype:create -DgroupId=tutorial \&lt;br /&gt; -DartifactId=tutorial \&lt;br /&gt; -DarchetypeGroupId=org.apache.struts \&lt;br /&gt; -DarchetypeArtifactId=struts2-archetype-starter \&lt;br /&gt; -DarchetypeVersion=2.0.1-SNAPSHOT \&lt;br /&gt; -DremoteRepositories=http://people.apache.org/maven-snapshot-repository&lt;br /&gt;&lt;br /&gt;cd tutorial&lt;br /&gt;mvn -Dwtpversion=1.0 eclipse:eclipse&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-2926552664116437816?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/2926552664116437816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=2926552664116437816&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/2926552664116437816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/2926552664116437816'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/08/struts2-by-maven-for-eclipse.html' title='Struts2 by Maven for Eclipse'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-2047836952319617883</id><published>2007-07-30T16:19:00.000+02:00</published><updated>2007-07-30T16:21:57.179+02:00</updated><title type='text'>Tomcat &amp; MySQL connection Error</title><content type='html'>Long absense after establishing the connection to MySQL from Hibernate, you might face the error below:&lt;br /&gt;&lt;pre&gt;,406 ERROR JDBCExceptionReporter - Communications link failure due to underlying exception:&lt;br /&gt;** BEGIN NESTED EXCEPTIOROR JDBCExceptionReporter - Communications link failure due to underlying exception&lt;br /&gt;&lt;br /&gt;java.io.EOFException&lt;br /&gt;STACKTRACE:&lt;br /&gt;&lt;br /&gt;java.io.EOFException&lt;br /&gt;        at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1956)&lt;br /&gt;        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2368)&lt;br /&gt;        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2867)&lt;br /&gt;        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1616)&lt;br /&gt;        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1708)&lt;br /&gt;        at com.mysql.jdbc.Connection.execSQL(Connection.java:3255)&lt;br /&gt;        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1293)&lt;br /&gt;        at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1428)&lt;br /&gt;        at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:139)&lt;br /&gt;        at org.hibernate.loader.Loader.getResultSet(Loader.java:1669)&lt;br /&gt;        at org.hibernate.loader.Loader.doQuery(Loader.java:662)&lt;br /&gt;.....&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then you can add the following setting in configuration file of hibernate.&lt;br /&gt;&lt;pre&gt;&lt;property name="hibernate.connection.url"&gt;jdbc:mysql://localhost:3306/ichannel?autoReconnect=true&lt;/property&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-2047836952319617883?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/2047836952319617883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=2047836952319617883&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/2047836952319617883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/2047836952319617883'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/07/tomcat-mysql-connection-error.html' title='Tomcat &amp; MySQL connection Error'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-3829737641463267805</id><published>2007-06-27T21:25:00.000+02:00</published><updated>2007-06-27T21:34:21.329+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tomcat5.5'/><title type='text'>UnknownHostException @ Tomcat</title><content type='html'>&lt;pre&gt;&lt;br /&gt;#vim /etc/hosts&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;192.168.0.100 hostname&lt;br /&gt;--&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-3829737641463267805?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/3829737641463267805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=3829737641463267805&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/3829737641463267805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/3829737641463267805'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/unknownhostexception-tomcat.html' title='UnknownHostException @ Tomcat'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-3747356128991961163</id><published>2007-06-27T20:51:00.000+02:00</published><updated>2007-09-07T09:54:25.697+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='analyzer'/><category scheme='http://www.blogger.com/atom/ns#' term='protocol'/><title type='text'>Protocol Analyzer in CUI</title><content type='html'>For CUI protocol analyzer,&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#apt-get install tshark&lt;br /&gt;#tshark -i eth0 -w `date "+%Y%m%d_capture.pcap"` -R "tcp.port==8080"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;-w : output file&lt;br /&gt;-R : filter&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-3747356128991961163?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/3747356128991961163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=3747356128991961163&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/3747356128991961163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/3747356128991961163'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/protocol-analyzer-in-cui.html' title='Protocol Analyzer in CUI'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-6645863021526432262</id><published>2007-06-22T23:58:00.000+02:00</published><updated>2007-06-23T00:02:14.322+02:00</updated><title type='text'>Maven with Eclipse A-Z</title><content type='html'>The simplest A-Z for Maven with Eclipse.&lt;br /&gt;&lt;pre&gt;$mvn archetype:create -DgroupId=xx.xx.XX -DartifactId=AppName -Dversion=0.0.1&lt;br /&gt;$mvn eclipse:add-maven-repo -Declipse.workspace=/home/user/workspace&lt;br /&gt;#Move to the project root folder, then..&lt;br /&gt;$mvn eclipse:eclipse -DdownloadSources=true&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;It's done. Then import the project from the Eclipse and enjoy ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-6645863021526432262?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/6645863021526432262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=6645863021526432262&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6645863021526432262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6645863021526432262'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/maven-with-eclipse-z.html' title='Maven with Eclipse A-Z'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-3754128028452974795</id><published>2007-06-20T23:03:00.000+02:00</published><updated>2007-06-22T11:16:14.059+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu 7.04 Feisty Fawn'/><category scheme='http://www.blogger.com/atom/ns#' term='tomcat5.5'/><title type='text'>AccessControlException By Java</title><content type='html'>When you deploy the contents you might face the AccessControlException which is cased by java security manager. By Ubuntu packaged tomcat5.5, you can edit the policy file.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$sudo vim /etc/tomcat5.5/policy.d/99examples.policy&lt;br /&gt;&lt;br /&gt;grant codeBase "file:${catalina.home}/webapps/gprs/-" {&lt;br /&gt;        permission java.security.AllPermission;&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The example above is the most loose security setting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-3754128028452974795?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/3754128028452974795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=3754128028452974795&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/3754128028452974795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/3754128028452974795'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/accesscontrolexception-by-java.html' title='AccessControlException By Java'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-2062369479740711259</id><published>2007-06-20T21:10:00.000+02:00</published><updated>2007-06-22T11:16:51.199+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><title type='text'>Hibernate cfg.xml file</title><content type='html'>hibernate.cfg.xml file not found issue is the one which troubles us often when we create the web app with hibernate. Here is the workaround code for this issue.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;File file=&lt;br /&gt;new File(getServletContext().getRealPath("/WEB-INF/classes/hibernate.cfg.xml"));&lt;br /&gt;SessionFactory sessionFactory =&lt;br /&gt;new Configuration().configure(file).buildSessionFactory();&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-2062369479740711259?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/2062369479740711259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=2062369479740711259&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/2062369479740711259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/2062369479740711259'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/hibernate-cfgxml-file.html' title='Hibernate cfg.xml file'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-6543853880641542623</id><published>2007-06-17T01:53:00.000+02:00</published><updated>2007-06-22T11:17:07.911+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu 7.04 Feisty Fawn'/><title type='text'>Ubuntu Java configuration</title><content type='html'>In case you need to change the version of java runtime environment which has been installed on you machine. It's simple as this,&lt;br /&gt;&lt;pre&gt;$  sudo /usr/sbin/update-alternatives  --config   java&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-6543853880641542623?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/6543853880641542623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=6543853880641542623&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6543853880641542623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6543853880641542623'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/ubuntu-java-selection.html' title='Ubuntu Java configuration'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-5804444925079594299</id><published>2007-06-13T17:14:00.000+02:00</published><updated>2007-06-22T11:19:27.174+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu 7.04 Feisty Fawn'/><title type='text'>Ubuntu Default editor change</title><content type='html'>&lt;pre&gt;sudo update-alternatives --config editor&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-5804444925079594299?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/5804444925079594299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=5804444925079594299&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5804444925079594299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5804444925079594299'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/ubuntu-default-editor-change.html' title='Ubuntu Default editor change'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-5896966029111593401</id><published>2007-06-13T17:01:00.000+02:00</published><updated>2007-06-22T11:19:41.226+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu 7.04 Feisty Fawn'/><title type='text'>Ubuntu cron</title><content type='html'>Crontab on Ubuntu doesn't work with normal grammer. You need to add.&lt;br /&gt;&lt;pre&gt;SHELL=/bin/bash&lt;br /&gt;PATH=/sbin:/bin:/usr/sbin:/usr/bin&lt;br /&gt;&lt;br /&gt;command &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-5896966029111593401?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/5896966029111593401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=5896966029111593401&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5896966029111593401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5896966029111593401'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/ubuntu.html' title='Ubuntu cron'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-9111953124223805151</id><published>2007-06-12T16:29:00.000+02:00</published><updated>2007-06-22T11:20:00.886+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='maven'/><title type='text'>Maven2 with Hibernate</title><content type='html'>Maven cannot solve the dependency regarding jta as it is released by Sun and based upon their binary license it cannot be deployed on the maven repository.&lt;br /&gt;&lt;br /&gt;You will see something like this below.&lt;br /&gt;&lt;pre&gt;1) javax.transaction:jta:jar:1.0.1B&lt;br /&gt;  Try downloading the file manually from: &lt;br /&gt;      http://java.sun.com/products/jta&lt;br /&gt;  Then, install it using the command: &lt;br /&gt;      mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta \&lt;br /&gt;          -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file&lt;br /&gt;  Path to dependency: &lt;br /&gt;   1) RssUpdater:RssUpdater:package:0.0.1&lt;br /&gt;   2) org.hibernate:hibernate:jar:3.2.4.ga&lt;br /&gt;   3) javax.transaction:jta:jar:1.0.1B&lt;br /&gt;1 required artifact is missing.&lt;br /&gt;for artifact: &lt;br /&gt;  RssUpdater:RssUpdater:package:0.0.1&lt;br /&gt;from the specified remote repositories:&lt;br /&gt;  codehaus.org (http://snapshots.repository.codehaus.org/org/codehaus/mojo/),&lt;br /&gt;  maven.seasar.org (http://maven.seasar.org/maven2),&lt;br /&gt;  central (http://repo1.maven.org/maven2)&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;In order to avoid this, download &lt;a href="http://java.sun.com/products/jta/"&gt;jta&lt;/a&gt; and deploy it onto your local maven repos.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;mvn install:install-file \&lt;br /&gt;  -Dfile=./jta-1_0_1B-classes.zip \&lt;br /&gt;  -DgroupId=javax.transaction \&lt;br /&gt;  -DartifactId=jta -Dversion=1.0.1B \&lt;br /&gt;  -Dpackaging=jar&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-9111953124223805151?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/9111953124223805151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=9111953124223805151&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/9111953124223805151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/9111953124223805151'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/maven2-with-hibernate.html' title='Maven2 with Hibernate'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-6638813965499118961</id><published>2007-06-07T11:15:00.000+02:00</published><updated>2007-06-22T11:20:20.987+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='webdav'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu 7.04 Feisty Fawn'/><title type='text'>Ubuntu webdav</title><content type='html'>The problem probably you face as followed.&lt;br /&gt;&lt;pre&gt;[Sat May 19 13:20:21 2007] [notice]&lt;br /&gt;Apache/2.2.3 (Ubuntu) DAV/2 PHP/5.2.1 configured &lt;br /&gt;-- resuming normal operations&lt;br /&gt;[Sat May 19 13:20:53 2007] [error] [client xx.xxx.xxx.xx]&lt;br /&gt;Could not DELETE /davhome/show.txt due to a failed precondition &lt;br /&gt;(e.g. locks).  [500, #0]&lt;br /&gt;[Sat May 19 13:20:53 2007] [error] [client xx.xxx.xxx.xx]&lt;br /&gt;The locks could not be queried for verification against a possible &lt;br /&gt;"If:" header.  [500, #0]&lt;br /&gt;[Sat May 19 13:20:53 2007] [error] [client xx.xxx.xxx.xx]&lt;br /&gt;Could not open the lock database.  [500, #400]&lt;br /&gt;[Sat May 19 13:20:53 2007] [error] [client xx.xxx.xxx.xx]&lt;br /&gt;(13)Permission denied: Could not open property database.  [500, #1]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then..&lt;br /&gt;&lt;pre&gt;$ sudo touch /var/lock/apache2/DAVLock&lt;br /&gt;$ sudo chown www-data /var/lock/apache2/DAVLock&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-6638813965499118961?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/6638813965499118961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=6638813965499118961&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6638813965499118961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/6638813965499118961'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/ubuntu-webdav.html' title='Ubuntu webdav'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-7698514776533486511</id><published>2007-06-05T19:33:00.000+02:00</published><updated>2007-06-22T11:20:47.003+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu 7.04 Feisty Fawn'/><title type='text'>NW setting of Ubuntu on VMPlayer</title><content type='html'>This is small note of how to set network setting of "vmx" for  Ubuntu as  it didn't work at the original one.&lt;br /&gt;&lt;pre&gt;#ethernet0.virtualDev = "vmxnet" &lt;- Comment this line as it doesn't recognize device.&lt;br /&gt;ethernet0.virtualDev = "e1000"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then&lt;br /&gt;&lt;pre&gt;#vim /etc/network/interface&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet dhcp&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-7698514776533486511?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/7698514776533486511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=7698514776533486511&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7698514776533486511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7698514776533486511'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/06/nw-setting-of-ubuntu-on-vmplayer.html' title='NW setting of Ubuntu on VMPlayer'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-5800147410346698445</id><published>2007-05-17T00:43:00.000+02:00</published><updated>2007-06-22T11:21:47.043+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='digester'/><title type='text'>Commons Digester Variable</title><content type='html'>The variable in xml data can be converted with Digester with the easy following codes.&lt;br /&gt;&lt;pre&gt;Digester digester = DigesterLoader.createDigester(getURL(ruleFile));&lt;br /&gt;       Map vars = new HashMap();&lt;br /&gt;       vars.put("hello","Czesc!");&lt;br /&gt;       MultiVariableExpander expander = new MultiVariableExpander();&lt;br /&gt;       expander.addSource("$", vars);&lt;br /&gt;       Substitutor substitutor = new VariableSubstitutor(expander);&lt;br /&gt;       digester.setSubstitutor(substitutor);&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-5800147410346698445?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/5800147410346698445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=5800147410346698445&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5800147410346698445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5800147410346698445'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/05/commons-digester-variable.html' title='Commons Digester Variable'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-7262374152056638824</id><published>2007-05-15T22:31:00.000+02:00</published><updated>2007-06-22T11:22:28.161+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lang'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='commons'/><category scheme='http://www.blogger.com/atom/ns#' term='toString'/><title type='text'>Commons Lang toString()</title><content type='html'>Jakarta Commons Lang support the reflection for toString() which need to synchronize with the changes made for the object model.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;public String toString(){&lt;br /&gt;   return ReflectionToStringBuilder.toString(this);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;For the customization of the output,&lt;br /&gt;&lt;pre&gt;public String toString(){&lt;br /&gt;   return ReflectionToStringBuilder.toString(this,ToStringStyle.MULTI_LINE_STYLE)&lt;br /&gt;               .append("lastName",lastName).append("firstName",firstName).toString();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-7262374152056638824?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/7262374152056638824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=7262374152056638824&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7262374152056638824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7262374152056638824'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/05/commons-lang-tostring.html' title='Commons Lang toString()'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-8814152413914159132</id><published>2007-05-13T01:16:00.000+02:00</published><updated>2007-06-22T11:23:12.184+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='decode'/><category scheme='http://www.blogger.com/atom/ns#' term='3gp'/><category scheme='http://www.blogger.com/atom/ns#' term='encoding'/><category scheme='http://www.blogger.com/atom/ns#' term='encode'/><title type='text'>Encoding to 3gp file for mobile phones</title><content type='html'>If h/s support AAC.&lt;br /&gt;&lt;pre&gt;#ffmpeg -i infile.mpeg -vcodec mpeg4 -r 15 -b 128k -s qcif -acodec aac -ar 8000&lt;br /&gt;-ac 1 -ab 13 -f 3gp -y output.3gp&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;If not&lt;br /&gt;&lt;pre&gt;ffmpeg -i infile.mpeg -vcodec mpeg4 -r 15 -b 128k -s qcif -acodec amr_nb -ar 8000&lt;br /&gt;-ac 1 -ab 13 -f 3gp -y output.3gp&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;For video editing on Linux, &lt;a href="http://lives.sourceforge.net/index.php?do=downloads&amp;amp;PHPSESSID=f2c533ebac13bc9f16beb63494af766a"&gt;LiVES&lt;/a&gt; would be very nice.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-8814152413914159132?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/8814152413914159132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=8814152413914159132&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/8814152413914159132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/8814152413914159132'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/05/encoding-to-3gp-file-for-mobile-phones.html' title='Encoding to 3gp file for mobile phones'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-7368481859271476587</id><published>2007-03-19T23:33:00.000+01:00</published><updated>2007-06-22T11:23:38.799+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='tomcat5.5'/><title type='text'>Tomcat JkShmFile</title><content type='html'>Under the default config, you might get error when you boot up the tomcat saying,&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;jk_child_init::mod_jk.c (2317): Attachning shm:/etc/apache2/logs/jk-runtime-status errno=2&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Write the following in /etc/apache2/mod-available/jk.load&lt;br /&gt;JkShmFile /var/log/apache2/jk-runtime-status&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-7368481859271476587?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/7368481859271476587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=7368481859271476587&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7368481859271476587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7368481859271476587'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/03/tomcat-jkshmfile.html' title='Tomcat JkShmFile'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-4574755552917402447</id><published>2007-01-05T17:38:00.000+01:00</published><updated>2007-06-22T11:24:34.985+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='font'/><title type='text'>Beautiful Font</title><content type='html'>Download M+font from http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/download/index.html#download&lt;br /&gt;&lt;br /&gt;then follow..&lt;br /&gt;&lt;pre class="input"&gt;% sudo apt-get install fontforge&lt;br /&gt;% tar xvfz mplus-TESTFLIGHT-012.tar.gz&lt;br /&gt;% cd mplus-TESTFLIGHT-012&lt;br /&gt;% sudo cp /usr/share/fonts/truetype/ipa/ipag.ttf .&lt;br /&gt;% sudo fontforge -script m++ipa.pe&lt;br /&gt;% sudo mkdir /usr/share/fonts/truetype/mplus&lt;br /&gt;% sudo mv M*IPAG.ttf /usr/share/fonts/truetype/mplus/.&lt;br /&gt;% sudo fc-cache -f -v /usr/share/fonts/truetype/mplus&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-4574755552917402447?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/4574755552917402447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=4574755552917402447&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/4574755552917402447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/4574755552917402447'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2007/01/beautiful-font.html' title='Beautiful Font'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-5663172589076002728</id><published>2006-12-18T18:00:00.000+01:00</published><updated>2007-06-22T11:19:06.776+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='shell script'/><title type='text'>Delete old files</title><content type='html'>remove.sh&lt;br /&gt;&lt;pre&gt;#!/bin/bash&lt;br /&gt;FILE=/xxx/xxx&lt;br /&gt;find ${FILE} -ctime +5 -type f -exec rm -f {} \;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Change the permission.&lt;br /&gt;&lt;pre&gt;# chmod +x remove.sh&lt;br /&gt;# crontab -e&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Register it as cron job.&lt;br /&gt;&lt;pre&gt;SHELL=/bin/bash&lt;br /&gt;PATH=/sbin:/bin:/usr/sbin:/usr/bin&lt;br /&gt;MAILTO=root&lt;br /&gt;HOME=/&lt;br /&gt;1 20 * * * root /root/remove.sh&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-5663172589076002728?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/5663172589076002728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=5663172589076002728&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5663172589076002728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5663172589076002728'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/12/delete-old-files.html' title='Delete old files'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-7244275161425487367</id><published>2006-11-30T22:55:00.000+01:00</published><updated>2007-06-22T11:25:04.381+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='apt'/><title type='text'>Debian apt management</title><content type='html'>This is the latest package update tool. Unlike netselect-apt, it doesn't use ICMP! which is often blocked now by firewall..&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;# s...location&lt;br /&gt;# d...release type&lt;br /&gt;# f...file to examin&lt;br /&gt;# e...the number of host try&lt;br /&gt;apt-spy -s nl -d unstable -f ls-lR.gz -e 10&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-7244275161425487367?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/7244275161425487367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=7244275161425487367&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7244275161425487367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7244275161425487367'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/11/debian-apt-management.html' title='Debian apt management'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-5114683213274961837</id><published>2006-11-30T22:36:00.000+01:00</published><updated>2007-06-22T11:25:29.088+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='keymap'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>Debian Keymap</title><content type='html'>Simple solution to change the keymap on Debian GNU/Linux.&lt;br /&gt;&lt;pre&gt;loadkeys /usr/share/keymaps/i386/qwerty/jp106.kmap.gz&lt;br /&gt;cp /usr/share/keymaps/i386/qwerty/jp106.kmap.gz /etc/console/boottime.kmap.gz&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-5114683213274961837?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/5114683213274961837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=5114683213274961837&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5114683213274961837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5114683213274961837'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/11/debian-keymap.html' title='Debian Keymap'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-7242857839536406884</id><published>2006-11-13T15:19:00.000+01:00</published><updated>2007-06-22T11:25:50.133+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><title type='text'>HibernateException</title><content type='html'>&lt;pre&gt;&lt;br /&gt;package org.hibernate;&lt;br /&gt;&lt;br /&gt;import org.hibernate.exception.NestableRuntimeException;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * Any exception that occurs inside the persistence layer&lt;br /&gt; * or JDBC driver. &lt;tt&gt;SQLException&lt;/tt&gt;s are always wrapped&lt;br /&gt; * by instances of &lt;tt&gt;JDBCException&lt;/tt&gt;.&lt;br /&gt; *&lt;br /&gt; * @see JDBCException&lt;br /&gt; * @author Gavin King&lt;br /&gt; */&lt;br /&gt;&lt;br /&gt;public class HibernateException extends NestableRuntimeException {&lt;br /&gt;&lt;br /&gt; public HibernateException(Throwable root) {&lt;br /&gt;  super(root);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; public HibernateException(String string, Throwable root) {&lt;br /&gt;  super(string, root);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; public HibernateException(String s) {&lt;br /&gt;  super(s);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-7242857839536406884?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/7242857839536406884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=7242857839536406884&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7242857839536406884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/7242857839536406884'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/11/hibernateexception.html' title='HibernateException'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-1187460568603017306</id><published>2006-11-12T20:23:00.000+01:00</published><updated>2006-11-12T20:28:37.967+01:00</updated><title type='text'>Hibernate - Composite key</title><content type='html'>For a table with a composite key, you may map multiple properties of the class as identifier properties. The &amp;lt;composite-id&amp;gt;element accepts &amp;lt;key-property&amp;gt; property mappings and &amp;lt;key-many-to-one&amp;gt; mappings as child elements.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;composite-id&amp;gt;&lt;br /&gt;        &amp;lt;key-property name="medicareNumber"/&amp;gt;&lt;br /&gt;        &amp;lt;key-property name="dependent"/&amp;gt;&lt;br /&gt;&amp;lt;/composite-id&amp;gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-1187460568603017306?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/1187460568603017306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=1187460568603017306&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/1187460568603017306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/1187460568603017306'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/11/hibernate-composite-key.html' title='Hibernate - Composite key'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-5809296407808632170</id><published>2006-11-06T14:46:00.000+01:00</published><updated>2007-06-22T11:26:18.496+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Regex</title><content type='html'>Small sample to replace the regular expression..&lt;br /&gt;Using Core API&lt;br /&gt;&lt;pre&gt;String body = "&lt;a href=\"xx.xx.j\" class=\"tese\"&gt;&lt;/a&gt;\n&lt;img class=\"sss\"&gt;";&lt;br /&gt;String out;&lt;br /&gt;Pattern pattern = Pattern.compile("class=\".*?\"");&lt;br /&gt;Matcher matcher = pattern.matcher(body);&lt;br /&gt;out = matcher.replaceAll("");&lt;br /&gt;System.out.println(out);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Using Jakarta ORO&lt;br /&gt;&lt;pre&gt;String body = "&lt;a href=\"xx.xx.j\" class=\"tese\"&gt;&lt;/a&gt;\n&lt;img class=\"sss\"&gt;";&lt;br /&gt;String out;&lt;br /&gt;Perl5Util util = new Perl5Util();&lt;br /&gt;out = util.substitute("s/ class=\".*?\"//g", body);&lt;br /&gt;System.out.println(out);&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-5809296407808632170?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/5809296407808632170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=5809296407808632170&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5809296407808632170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/5809296407808632170'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/11/regex.html' title='Regex'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-116043309459690985</id><published>2006-10-10T00:23:00.000+02:00</published><updated>2006-10-10T00:31:34.613+02:00</updated><title type='text'>Gilbert O'Sullivan</title><content type='html'>I love the songs of Gilbert O'Sullivan. This is the ones that I like.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;Clair&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;object width="425" height="350"&gt;&lt;param name="movie" value="http://www.youtube.com/v/k4RNQlp8zwI"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/k4RNQlp8zwI" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Clair, the moment I met you I swear&lt;br /&gt;I felt as if something somewhere&lt;br /&gt;Had happened to me&lt;br /&gt;Which I couldn't see&lt;br /&gt;&lt;br /&gt;And then&lt;br /&gt;The moment I met you again&lt;br /&gt;I knew in my heart we were friends&lt;br /&gt;It had to be so&lt;br /&gt;It couldn't be no&lt;br /&gt;&lt;br /&gt;But try as hard as I might do I don't know why&lt;br /&gt;You get to me in a way I can't describe&lt;br /&gt;Words mean so little when you look up and smile&lt;br /&gt;I don't care what people say,&lt;br /&gt;To me you're more than a child&lt;br /&gt;Oh! Clair, Clair&lt;br /&gt;&lt;br /&gt;Clair, if ever a moment so rare&lt;br /&gt;Was captured for all to compare&lt;br /&gt;That moment is you&lt;br /&gt;It's all that you do&lt;br /&gt;&lt;br /&gt;But why in spite of our age difference do I cry&lt;br /&gt;Each time I leave you I feel I could die&lt;br /&gt;Nothing means more to me than hearing you say&lt;br /&gt;I'm going to marry you&lt;br /&gt;Will you marry me Uncle Ray?&lt;br /&gt;Oh! Clair, Clair&lt;br /&gt;&lt;br /&gt;Clair, I've told you before&lt;br /&gt;Don't you dare&lt;br /&gt;Get back into bed&lt;br /&gt;Can't you see that it's late&lt;br /&gt;No you can't have a drink&lt;br /&gt;Oh! all right then but wait just a bit&lt;br /&gt;While I, in an effort to baby sit,&lt;br /&gt;Catch of my breath what there is left of it.&lt;br /&gt;You can be murder at this hour of the day&lt;br /&gt;But in the morning this hour&lt;br /&gt;Will seem a lifetime away&lt;br /&gt;Oh! Clair, Clair &lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Alone Again&lt;span style="font-style:italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;object width="425" height="350"&gt;&lt;param name="movie" value="http://www.youtube.com/v/D_P-v1BVQn8"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/D_P-v1BVQn8" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;In a little while from now,&lt;br /&gt;If I'm not feeling any less sour&lt;br /&gt;I promised myself to treat myself&lt;br /&gt;And visit a nearby tower,&lt;br /&gt;And climbing to the top,&lt;br /&gt;Will throw myself off&lt;br /&gt;In an effort to make it clear to who&lt;br /&gt;Ever what it's like when your shattered&lt;br /&gt;Left standing in the lurch, at a church&lt;br /&gt;Where people 're saying,&lt;br /&gt;"My God that's tough, she stood him up!&lt;br /&gt;No point in us remaining.&lt;br /&gt;May as well go home."&lt;br /&gt;As I did on my own,&lt;br /&gt;Alone again, naturally&lt;br /&gt;&lt;br /&gt;To think that only yesterday,&lt;br /&gt;I was cheerful, bright and gay,&lt;br /&gt;Looking forward to, but who wouldn't do,&lt;br /&gt;The role I was about to play&lt;br /&gt;But as if to knock me down,&lt;br /&gt;Reality came around&lt;br /&gt;And without so much as a mere touch,&lt;br /&gt;Cut me into little pieces&lt;br /&gt;Leaving me to doubt,&lt;br /&gt;All about God and His mercy&lt;br /&gt;For if He really does exist&lt;br /&gt;Why did He desert me&lt;br /&gt;In my hour of need?&lt;br /&gt;I truly am indeed,&lt;br /&gt;Alone again, naturally&lt;br /&gt;&lt;br /&gt;It seems to me that&lt;br /&gt;There are more hearts&lt;br /&gt;Broken in the world&lt;br /&gt;That can't be mended&lt;br /&gt;Left unattended&lt;br /&gt;What do we do? What do we do?&lt;br /&gt;&lt;br /&gt;(instrumental break)&lt;br /&gt;&lt;br /&gt;Now looking back over the years,&lt;br /&gt;And what ever else that appears&lt;br /&gt;I remember I cried when my father died&lt;br /&gt;Never wishing to have cried the tears&lt;br /&gt;And at sixty-five years old,&lt;br /&gt;My mother, God rest her soul,&lt;br /&gt;Couldn't understand, why the only man&lt;br /&gt;She had ever loved had been taken&lt;br /&gt;Leaving her to start with a heart&lt;br /&gt;So badly broken&lt;br /&gt;Despite encouragement from me&lt;br /&gt;No words were ever spoken&lt;br /&gt;And when she passed away&lt;br /&gt;I cried and cried all day&lt;br /&gt;Alone again, naturally&lt;br /&gt;Alone again, naturally&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-116043309459690985?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/116043309459690985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=116043309459690985&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/116043309459690985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/116043309459690985'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/10/gilbert-osullivan.html' title='Gilbert O&apos;Sullivan'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115991458885282664</id><published>2006-10-04T00:22:00.000+02:00</published><updated>2006-10-04T00:31:11.320+02:00</updated><title type='text'>Hot water supply</title><content type='html'>&lt;A HREF='http://photos1.blogger.com/blogger/6788/2564/640/IMG_0761.jpg'&gt;&lt;IMG SRC='http://photos1.blogger.com/blogger/6788/2564/320/IMG_0761.jpg' border=0 alt='' style='clear:all;float:left;margin: 0px 10px 10px 0px; cursor:hand'&gt;&lt;/A&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Finally we got the repair of the boiler at house. For the last 7days we had no hot water supply at house because of the boiler breakdown. We could enjoy the bath tonight.&amp;nbsp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115991458885282664?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115991458885282664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115991458885282664&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115991458885282664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115991458885282664'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/10/hot-water-supply.html' title='Hot water supply'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115983311287410314</id><published>2006-10-03T01:47:00.000+02:00</published><updated>2006-10-03T01:51:52.886+02:00</updated><title type='text'>Class JarInflater</title><content type='html'>This is the general method to read the image data from jar file.&lt;br /&gt;In DoJa programming, there is a size limitation. In order to reduce the main program file size, at the initial launch of the application, we download the resource file. Then jar file would be better in terms of the usage of the network resource especially for mobile phones.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;public static Image loadJarImage(int pos,String name){&lt;br /&gt; DataInputStream in = null;&lt;br /&gt; JarInflater ji = null;&lt;br /&gt; MediaImage mi = null;&lt;br /&gt; Image img = null;&lt;br /&gt; byte[] b = null;&lt;br /&gt; try{&lt;br /&gt;  //Read the data from sp&lt;br /&gt;  in = Connector.openDataInputStream("scratchpad:///0;pos=" + pos);&lt;br /&gt;  b = new byte[(int)ji.getSize(name)];&lt;br /&gt;  in.readFully( b );&lt;br /&gt;  ji = new JarInflater(b);&lt;br /&gt;  &lt;br /&gt;  mi = MediaManager.getImage(ji.getInputStream(name));&lt;br /&gt;  mi.use();&lt;br /&gt;  img = mi.getImage();&lt;br /&gt;  ji.close();&lt;br /&gt;  in.close();&lt;br /&gt; }catch (Exception ex){&lt;br /&gt;  Util.showErr(ex);&lt;br /&gt; }&lt;br /&gt; return img;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115983311287410314?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115983311287410314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115983311287410314&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115983311287410314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115983311287410314'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/10/class-jarinflater.html' title='Class JarInflater'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115956781745915201</id><published>2006-09-30T00:02:00.000+02:00</published><updated>2006-09-30T00:13:44.036+02:00</updated><title type='text'>Already 2nd half!!</title><content type='html'>&lt;A HREF='http://photos1.blogger.com/blogger/6788/2564/640/IMG_0786.jpg'&gt;&lt;IMG SRC='http://photos1.blogger.com/blogger/6788/2564/320/IMG_0786.jpg' border=0 alt='' style='clear:all;float:left;margin: 0px 10px 10px 0px; cursor:hand'&gt;&lt;/A&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Recently my daughter asks me every morning like "Where do we go?" when she is about to leave the house for the kindergarten. I answer "Kindergarten" and she says "Disssnneeland". Then I think about what she said. Ah-humm "Disneyland!".&lt;br /&gt;&lt;br /&gt;After several days, I'm forced to make a plan to take them to Disneyland. Now I'm looking for the nice hotel around there in France.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115956781745915201?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115956781745915201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115956781745915201&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115956781745915201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115956781745915201'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/09/already-2nd-half.html' title='Already 2nd half!!'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115937934616384869</id><published>2006-09-27T19:32:00.000+02:00</published><updated>2006-09-28T23:24:08.730+02:00</updated><title type='text'>At Command for PDP Context</title><content type='html'>If there is no hotspot around while you are out, it's good to use your mobile as modem to connect to internet via your note PC.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt; Define PDP Context +CGDCONT &lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;at+CGDCONT= &amp;lt; cid &amp;gt; , &amp;lt;PDP_type&amp;gt;, &amp;lt;APN&amp;gt;, &amp;lt;PDP_addr&amp;gt; ,&amp;lt;d_comp&amp;gt;,&amp;lt;h_comp&amp;gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&amp;lt;precedence&amp;gt; a numeric parameter which specifies the precedence class&lt;br /&gt;&amp;lt;delay&amp;gt; a numeric parameter which specifies the delay class&lt;br /&gt;&amp;lt;reliability&amp;gt; a numeric parameter which specifies the reliability class. Only values 3, 4 and 5 are currently supported.&lt;br /&gt;&amp;lt;peak&amp;gt; a numeric parameter which specifies the peak throughput class&lt;br /&gt;&amp;lt;mean&amp;gt; a numeric parameter which specifies the mean throughput class&lt;br /&gt;&lt;br /&gt;&lt;li&gt;at+CGQREQ?&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;+CGQREQ: &amp;lt;cid&amp;gt;, &amp;lt;precedence&amp;gt;,&amp;lt;delay&amp;gt;, &amp;lt;reliability&amp;gt;, &amp;lt;peak&amp;gt;, &amp;lt;mean&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;+CGQREQ=?&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;+CGQREQ: &amp;lt;PDP_type&amp;gt;, (list of supported &amp;lt;precedence&amp;gt;s), (list of supported &amp;lt;delay&amp;gt;s), (list of supported &amp;lt;reliability&amp;gt;s) , (list of supported &amp;lt;peak&amp;gt;s), (list of supported &amp;lt;mean&amp;gt;s)&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;For more info: &lt;a href="http://www.phonestar.com.my/s_at_10.html"&gt;http://www.phonestar.com.my/s_at_10.html&lt;/a&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115937934616384869?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115937934616384869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115937934616384869&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115937934616384869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115937934616384869'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/09/at-command-for-pdp-context.html' title='At Command for PDP Context'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115936809839009110</id><published>2006-09-27T16:12:00.000+02:00</published><updated>2006-09-27T16:45:37.290+02:00</updated><title type='text'>[RFC 2616] Transfer Codings</title><content type='html'>Trouble maker transfer coding:chunked ! Just for ref, putting RFC.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3.6 Transfer Codings&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Transfer-coding values are used to indicate an encoding transformation that has been, can be, or may need to be applied to an entity-body in order to ensure "safe transport" through the network. This differs from a content coding in that the transfer-coding is a property of the message, not of the original entity.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;       transfer-coding         = "chunked" | transfer-extension&lt;br /&gt;       transfer-extension      = token *( ";" parameter )&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Parameters are in the form of attribute/value pairs.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;       parameter               = attribute "=" value&lt;br /&gt;       attribute               = token&lt;br /&gt;       value                   = token | quoted-string&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;All transfer-coding values are case-insensitive. HTTP/1.1 uses transfer-coding values in the TE header field (section 14.39) and in the Transfer-Encoding header field (section 14.41).&lt;br /&gt;&lt;br /&gt;Whenever a transfer-coding is applied to a message-body, the set of transfer-codings MUST include "chunked", unless the message is terminated by closing the connection. When the "chunked" transfer- coding is used, it MUST be the last transfer-coding applied to the message-body. The "chunked" transfer-coding MUST NOT be applied more than once to a message-body. These rules allow the recipient to determine the transfer-length of the message (section 4.4).&lt;br /&gt;&lt;br /&gt;Transfer-codings are analogous to the Content-Transfer-Encoding values of MIME [7], which were designed to enable safe transport of binary data over a 7-bit transport service. However, safe transport has a different focus for an 8bit-clean transfer protocol. In HTTP, the only unsafe characteristic of message-bodies is the difficulty in determining the exact body length (section 7.2.2), or the desire to encrypt data over a shared transport.&lt;br /&gt;&lt;br /&gt;The Internet Assigned Numbers Authority (IANA) acts as a registry for transfer-coding value tokens. Initially, the registry contains the following tokens: "chunked" (section 3.6.1), "identity" (section 3.6.2), "gzip" (section 3.5), "compress" (section 3.5), and "deflate" (section 3.5).&lt;br /&gt;&lt;br /&gt;New transfer-coding value tokens SHOULD be registered in the same way as new content-coding value tokens (section 3.5).&lt;br /&gt;&lt;br /&gt;A server which receives an entity-body with a transfer-coding it does not understand SHOULD return 501 (Unimplemented), and close the connection. A server MUST NOT send transfer-codings to an HTTP/1.0 client.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;3.6.1 Chunked Transfer Coding&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The chunked encoding modifies the body of a message in order to transfer it as a series of chunks, each with its own size indicator, followed by an OPTIONAL trailer containing entity-header fields. This allows dynamically produced content to be transferred along with the information necessary for the recipient to verify that it has received the full message.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;       Chunked-Body   = *chunk&lt;br /&gt;                        last-chunk&lt;br /&gt;                        trailer&lt;br /&gt;                        CRLF&lt;br /&gt;&lt;br /&gt;       chunk          = chunk-size [ chunk-extension ] CRLF&lt;br /&gt;                        chunk-data CRLF&lt;br /&gt;       chunk-size     = 1*HEX&lt;br /&gt;       last-chunk     = 1*("0") [ chunk-extension ] CRLF&lt;br /&gt;&lt;br /&gt;       chunk-extension= *( ";" chunk-ext-name [ "=" chunk-ext-val ] )&lt;br /&gt;       chunk-ext-name = token&lt;br /&gt;       chunk-ext-val  = token | quoted-string&lt;br /&gt;       chunk-data     = chunk-size(OCTET)&lt;br /&gt;       trailer        = *(entity-header CRLF)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The chunk-size field is a string of hex digits indicating the size of the chunk. The chunked encoding is ended by any chunk whose size is zero, followed by the trailer, which is terminated by an empty line.&lt;br /&gt;&lt;br /&gt;The trailer allows the sender to include additional HTTP header fields at the end of the message. The Trailer header field can be used to indicate which header fields are included in a trailer (see section 14.40).&lt;br /&gt;&lt;br /&gt;A server using chunked transfer-coding in a response MUST NOT use the trailer for any header fields unless at least one of the following is true:&lt;br /&gt;&lt;br /&gt;a)the request included a TE header field that indicates "trailers" is acceptable in the transfer-coding of the response, as described in section 14.39; or,&lt;br /&gt;&lt;br /&gt;b)the server is the origin server for the response, the trailer fields consist entirely of optional metadata, and the recipient could use the message (in a manner acceptable to the origin server) without receiving this metadata. In other words, the origin server is willing to accept the possibility that the trailer fields might be silently discarded along the path to the client.&lt;br /&gt;&lt;br /&gt;This requirement prevents an interoperability failure when the message is being received by an HTTP/1.1 (or later) proxy and forwarded to an HTTP/1.0 recipient. It avoids a situation where compliance with the protocol would have necessitated a possibly infinite buffer on the proxy.&lt;br /&gt;&lt;br /&gt;An example process for decoding a Chunked-Body is presented in appendix 19.4.6.&lt;br /&gt;&lt;br /&gt;All HTTP/1.1 applications MUST be able to receive and decode the "chunked" transfer-coding, and MUST ignore chunk-extension extensions they do not understand.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115936809839009110?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115936809839009110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115936809839009110&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115936809839009110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115936809839009110'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/09/rfc-2616-transfer-codings.html' title='[RFC 2616] Transfer Codings'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115922420808494382</id><published>2006-09-26T00:40:00.000+02:00</published><updated>2006-09-26T00:45:49.936+02:00</updated><title type='text'>Quick Sort in Java</title><content type='html'>I developed small application and used sort algorythm. Here is the good performance quick sort Java sample.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;    public static DTO[] sort(DTO _dto[],int left,int right){&lt;br /&gt;        //Quick Sort&lt;br /&gt;        int key;&lt;br /&gt;        if(left&amp;lt;right){&lt;br /&gt;            key = _dto[(left+right)/2].getDateValue();&lt;br /&gt;            int i=left -1;&lt;br /&gt;            int j=right +1;&lt;br /&gt;            while(true){&lt;br /&gt;                while(_dto[++i].getDateValue()&lt;key);&lt;br /&gt;                while(_dto[--j].getDateValue()&gt;key);&lt;br /&gt;                if(i&gt;=j)break;&lt;br /&gt;                DTO t = _dto[i];&lt;br /&gt;                _dto[i]=_dto[j];&lt;br /&gt;                _dto[j] =t;&lt;br /&gt;               &lt;br /&gt;            }&lt;br /&gt;            sort(_dto, left, i-1);&lt;br /&gt;            sort(_dto, j+1, right);&lt;br /&gt;        }&lt;br /&gt;       &lt;br /&gt;       &lt;br /&gt;        /*Bubble Sort&lt;br /&gt;        for(int i=0;i&amp;lt;_dto.length-1;i++){&lt;br /&gt;            for(int j=_dto.length-1;j&amp;gt;i;j--){&lt;br /&gt;                if(_dto[j].getDateValue()&amp;gt;_dto[j-1].getDateValue()){&lt;br /&gt;                      DietDTO t=_dto[j];&lt;br /&gt;                      _dto[j]=_dto[j-1];&lt;br /&gt;                      _dto[j-1]=t;&lt;br /&gt;                }&lt;br /&gt;                     &lt;br /&gt;            }&lt;br /&gt;           &lt;br /&gt;        }&lt;br /&gt;        */&lt;br /&gt;&lt;br /&gt;        return _dto;&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115922420808494382?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115922420808494382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115922420808494382&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115922420808494382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115922420808494382'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/09/quick-sort-in-java.html' title='Quick Sort in Java'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115806328127311666</id><published>2006-09-12T14:08:00.000+02:00</published><updated>2006-09-12T14:14:41.286+02:00</updated><title type='text'>int &lt;=&gt; byte[]</title><content type='html'>In some occation such as the low level processing in the Java programming, you might need to convert the "int" data into "byte array" and the opposite case as well.&lt;br /&gt;&lt;br /&gt;Here is the sample code ( in my case for CLDC1.0 or 1.1 programming).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Converting the int data type into byte array.&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;     /**&lt;br /&gt;     * In order to conver the int data type into byte array&lt;br /&gt;     * @param value the int value you want to convert&lt;br /&gt;     * @return byte array data&lt;br /&gt;     */&lt;br /&gt;    public static byte[] getIntBytes(int value) {&lt;br /&gt;        byte[] b = new byte[4];&lt;br /&gt;        b[0] = (byte) ((value &gt;&gt;&gt; 24) &amp; 0x000000FF);&lt;br /&gt;        b[1] = (byte) ((value &gt;&gt;&gt; 16) &amp; 0x000000FF);&lt;br /&gt;        b[2] = (byte) ((value &gt;&gt;&gt; 8) &amp; 0x000000FF);&lt;br /&gt;        b[3] = (byte) (value &amp; 0x000000FF);&lt;br /&gt;        return b;&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Converting the byte array into int data type &lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;    /**&lt;br /&gt;     * In order to convert the byte array into int data type&lt;br /&gt;     * @param value the byte array you want to convert&lt;br /&gt;     * @return int data&lt;br /&gt;     */&lt;br /&gt;    public static int getInt(byte value[]) {&lt;br /&gt;        int ret = 0;&lt;br /&gt;        ByteArrayInputStream bais = null;&lt;br /&gt;        try {&lt;br /&gt;            bais = new ByteArrayInputStream(value);&lt;br /&gt;            ret = new DataInputStream(bais).readInt();&lt;br /&gt;            bais.close();&lt;br /&gt;            bais = null;&lt;br /&gt;        } catch (Throwable t) {&lt;br /&gt;            t.printStackTrace();&lt;br /&gt;        } finally {&lt;br /&gt;            if (bais != null) {&lt;br /&gt;   &lt;br /&gt;                try {&lt;br /&gt;                    bais.close();&lt;br /&gt;                    bais = null;&lt;br /&gt;                } catch (Throwable t) {&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        return ret;&lt;br /&gt;   &lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115806328127311666?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115806328127311666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115806328127311666&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115806328127311666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115806328127311666'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/09/int-byte.html' title='int &lt;=&gt; byte[]'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115797663902834031</id><published>2006-09-11T14:06:00.000+02:00</published><updated>2006-09-11T14:10:39.030+02:00</updated><title type='text'>Pareto chart</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/6788/2564/1600/Pareto.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/6788/2564/320/Pareto.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;A Pareto chart is a special type of bar chart where the values being plotted are arranged in descending order. It is named for Vilfredo Pareto, and its use in quality assurance was popularized by Joseph M. Juran and Kaoru Ishikawa.&lt;br /&gt;Simple example of a Pareto chart using hypothetical data showing the relative frequency of reasons for arriving late at work.&lt;br /&gt;Enlarge&lt;br /&gt;Simple example of a Pareto chart using hypothetical data showing the relative frequency of reasons for arriving late at work.&lt;br /&gt;&lt;br /&gt;The Pareto chart is one of the seven basic tools of quality control, which include the histogram, Pareto chart, check sheet, control chart, cause-and-effect diagram, flowchart, and scatter diagram. See Quality Management Glossary.&lt;br /&gt;&lt;br /&gt;Typically the left vertical axis is frequency of occurrence, but it can alternatively represent cost or other important unit of measure. The right vertical axis is the cumulative percentage of the total number of occurrences, total cost, or total of the particular unit of measure. The purpose is to highlight the most important among a (typically large) set of factors. In quality control, the Pareto chart often represents the most common sources of defects, the highest occurring type of defect, or the most frequent reasons for customer complaints, etc.&lt;br /&gt;(&lt;a href="http://en.wikipedia.org/wiki/Pareto_chart"&gt;Reference WiKipedia&lt;/a&gt;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115797663902834031?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115797663902834031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115797663902834031&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115797663902834031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115797663902834031'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/09/pareto-chart.html' title='Pareto chart'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115797632440576715</id><published>2006-09-11T11:29:00.000+02:00</published><updated>2006-09-11T14:11:23.940+02:00</updated><title type='text'>Cause &amp; Effect Diagrams</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/6788/2564/1600/Tcs3_1.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/6788/2564/320/Tcs3_1.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The cause &amp;amp; effect diagram                          is the brainchild of Kaoru Ishikawa, who pioneered                          quality management processes in the Kawasaki shipyards,                          and in the process became one of the founding fathers of                          modern management.  The cause and effect diagram is                          used to explore all the potential or real causes (or                          inputs) that result in a single effect (or output).                          Causes are arranged according to their level of                          importance or detail, resulting in a depiction of                          relationships and hierarchy of events. This can help you                          search for root causes, identify areas where there may                          be problems, and compare the relative importance of                          different causes.&lt;br /&gt;&lt;br /&gt;If the influence level of the factor is quantitatively Pareto chart.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115797632440576715?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115797632440576715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115797632440576715&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115797632440576715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115797632440576715'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/09/cause-effect-diagrams.html' title='Cause &amp; Effect Diagrams'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115922590573315189</id><published>2006-09-11T01:08:00.000+02:00</published><updated>2006-09-26T01:15:13.646+02:00</updated><title type='text'>Small Giant Step</title><content type='html'>&lt;a href="http://photos1.blogger.com/blogger/6788/2564/640/IMG_0682.0.jpg"&gt;&lt;img style="CLEAR: all; FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/6788/2564/320/IMG_0682.0.jpg" border="0" /&gt;&lt;/a&gt; This month is her first Debut for social community. Now she goes to British pre-school. So far she really enjoy the time at the kindergarten.&lt;br /&gt;&lt;br /&gt;It's a small step but giant step for her future!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115922590573315189?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115922590573315189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115922590573315189&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115922590573315189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115922590573315189'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/09/small-giant-step_11.html' title='Small Giant Step'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115767288811905668</id><published>2006-09-08T01:34:00.000+02:00</published><updated>2006-09-08T02:02:02.820+02:00</updated><title type='text'>Java :: Leap Year</title><content type='html'>&lt;a href="http://photos1.blogger.com/blogger/6788/2564/640/kicx2750.jpg"&gt;&lt;img style="margin: 0px 10px 10px 0px; float: left;" alt="" src="http://photos1.blogger.com/blogger/6788/2564/320/kicx2750.jpg" border="0" /&gt;&lt;/a&gt; Yes. I recovered all the photos of memory from the S/W crashed HD. I install picasa2 from google and look around the ones taken for 5 years.&lt;br /&gt;&lt;br /&gt; Time flies. Here is the photo 1 year ago @ Italy where the family of my sister in law lives.&lt;br /&gt;&lt;br /&gt; Good memories of pizza , mozzarella and flash back ;-)&lt;br /&gt;&lt;br /&gt;These days I'm bussy @ work and not many time for the dev @ home. Also looking for the good server host to rent the space for the Ajax server side appli. Anyway I don't have  nether time nor money ;-( Need to wait for the next month...&lt;br /&gt;&lt;br /&gt;The formula of calculating the leap year is very simple but easy to forget. Just for a note.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;/**&lt;br /&gt;* This is the method to check the leap year&lt;br /&gt;* @param year the year you want to check if the leap year&lt;br /&gt;* @return true:leap year  false: not the leap year&lt;br /&gt;*/&lt;br /&gt;public static boolean isLeapYear(int year){&lt;br /&gt;boolean result = false;&lt;br /&gt;if ((year % 4 == 0 &amp;&amp;amp; year % 100 != 0)  (year % 400 == 0)) {&lt;br /&gt; result = true;&lt;br /&gt;}&lt;br /&gt;return result;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115767288811905668?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115767288811905668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115767288811905668&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115767288811905668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115767288811905668'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/09/java-leap-year.html' title='Java :: Leap Year'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115741351551885177</id><published>2006-09-05T01:28:00.000+02:00</published><updated>2006-09-05T01:48:52.060+02:00</updated><title type='text'>Vacation @ Poland</title><content type='html'>&lt;a href="http://photos1.blogger.com/blogger/6788/2564/640/KICX3698.jpg"&gt;&lt;img style="CLEAR: all; FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/6788/2564/320/KICX3698.jpg" border="0" /&gt;&lt;/a&gt;  Just before the vacation to Poland, my GNU/Linux PC @ Home crashed because of the mis-configuration of some xorg etc... I bought Acronis Disk Director Suite to recover some of the data stored in the HD. The application was on promotion (25 euro) and very well that I could recover the data of photos for 6 years. ( My wife would kill me if I couldn't get it back ;-0) I immediately made the buckup to DVD which I bought a month ago. Now I know how important it is to make a backup regularlly.&lt;br /&gt;&lt;br /&gt; The vacation was so busy that we couldn't really relax at all. Everyday meeting the relatives and friends of my wife. But kids seems to be very happy that the sister in law and her bf played with them a lot. There we did a lot of shopping as well. We spent the amount of 2 month salary.&lt;br /&gt;&lt;br /&gt; This is the snapshot @ hotel in Berlin on our way back home.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115741351551885177?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115741351551885177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115741351551885177&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115741351551885177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115741351551885177'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/09/vacation-poland.html' title='Vacation @ Poland'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115612061325640759</id><published>2006-08-21T02:28:00.000+02:00</published><updated>2006-08-21T18:06:05.220+02:00</updated><title type='text'>Summer vacation</title><content type='html'>Our summer vacation is comming soon and I spent a whole weekend to find accomodations as we make our travel plan by ourselves for this time. How easy to use travel agency to find a vacation plan... Still I need to make reservation 2 nights in Germany &amp;amp; Poland.&lt;br /&gt;&lt;br /&gt;By the way, I somehow find the way to customize blogger and google map. I put some functions to this blog to see if everything is all right. How cool that blogger can customize the design of the blog. Free (as a free speach) is good that I can enjoy ;-) Finally I could put a bit of Ajax taste in my blog with the big help of google ;-)&lt;br /&gt;&lt;br /&gt;BTW, the kernel 2.6.17.9 is released on 18th Aug. Aren't they on vacation ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115612061325640759?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115612061325640759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115612061325640759&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115612061325640759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115612061325640759'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/08/summer-vacation.html' title='Summer vacation'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115581225768401155</id><published>2006-08-17T11:08:00.000+02:00</published><updated>2006-08-18T00:15:50.456+02:00</updated><title type='text'>Vim setting for .vimrc</title><content type='html'>Vim is the very powerful text editor for GNU/Linux. Here is the sample of the .vimrc which confortably set up your vim.&lt;br /&gt;&lt;pre&gt;" .vimrc&lt;br /&gt;" Clear any existing autocommands:&lt;br /&gt;autocmd!&lt;br /&gt;&lt;br /&gt;" *** User Interface&lt;br /&gt;" use indents of 4 spaces, and have them copied down lines:&lt;br /&gt;set shiftwidth=4&lt;br /&gt;set tabstop=4&lt;br /&gt;set shiftround&lt;br /&gt;set expandtab&lt;br /&gt;set autoindent&lt;br /&gt;&lt;br /&gt;" Set for visible tab&lt;br /&gt;"set listchars=tab:&amp;gt;-,extends:&amp;lt;,trail:-,eol:&amp;lt;&lt;br /&gt;set listchars=tab:&amp;gt;-&lt;br /&gt;set list&lt;br /&gt;&lt;br /&gt;" The format of status line&lt;br /&gt;set statusline=%&amp;lt;%f\ %m%r%h%w%{'['.(&amp;amp;fenc!=''?&amp;fenc:&amp;amp;enc).']['.&amp;ff.']'}%=%l,%c%V%8P&lt;br /&gt;&lt;br /&gt;" No beep&lt;br /&gt;" set vb t_vb=&lt;br /&gt;set visualbell&lt;br /&gt;&lt;br /&gt;" No auto NL&lt;br /&gt;set formatoptions=q&lt;br /&gt;&lt;br /&gt;" Show line number&lt;br /&gt;set number&lt;br /&gt;&lt;br /&gt;" have syntax highlighting in terminals which can display colours:&lt;br /&gt;if has('syntax') &amp;amp;amp;amp;amp;amp;&amp; (&amp;amp;t_Co &amp;gt; 2)&lt;br /&gt;syntax on&lt;br /&gt;endif&lt;br /&gt;&lt;br /&gt;" have fifty lines of command-line (etc) history:&lt;br /&gt;set history=50&lt;br /&gt;&lt;br /&gt;" display the current mode and partially-typed commands in the status line:&lt;br /&gt;set showmode&lt;br /&gt;set showcmd&lt;br /&gt;&lt;br /&gt;" have the mouse enabled all the time:&lt;br /&gt;set mouse=a&lt;br /&gt;&lt;br /&gt;" don't have files trying to override this .vimrc:&lt;br /&gt;set nomodeline&lt;br /&gt;&lt;br /&gt;" Set the type of background color&lt;br /&gt;set background=dark&lt;br /&gt;&lt;br /&gt;" *** Text Formatting -- Specific File Formats&lt;br /&gt;" enable filetype detection:&lt;br /&gt;filetype on&lt;br /&gt;&lt;br /&gt;" for C-like programming, have automatic indentation:&lt;br /&gt;autocmd FileType c,cpp,slang set cindent&lt;br /&gt;&lt;br /&gt;" for actual Java C (not C++) programming where comments have explicit end&lt;br /&gt;" characters, if starting a new line in the middle of a comment automatically&lt;br /&gt;" insert the comment leader characters:&lt;br /&gt;autocmd FileType c,java set formatoptions+=ro smartindent noexpandtab tabstop=4&lt;br /&gt;&lt;br /&gt;" for Perl programming, have things in braces indenting themselves:&lt;br /&gt;autocmd FileType perl set smartindent&lt;br /&gt;&lt;br /&gt;" for CSS, also have things in braces indented:&lt;br /&gt;autocmd FileType css set smartindent&lt;br /&gt;&lt;br /&gt;" for HTML, generally format text, but if a long line has been created leave it&lt;br /&gt;" alone when editing:&lt;br /&gt;autocmd FileType html set formatoptions+=tl&lt;br /&gt;&lt;br /&gt;" for both CSS and HTML, use genuine tab characters for indentation, to make&lt;br /&gt;" files a few bytes smaller:&lt;br /&gt;autocmd FileType html,css set noexpandtab tabstop=4&lt;br /&gt;&lt;br /&gt;" in makefiles, don't expand tabs to spaces, since actual tab characters are&lt;br /&gt;" needed, and have indentation at 4 chars to be sure that all indents are tabs&lt;br /&gt;" (despite the mappings later):&lt;br /&gt;autocmd FileType make set noexpandtab shiftwidth=4&lt;br /&gt;&lt;br /&gt;" *** Search &amp;amp; Replace&lt;br /&gt;" make searches case-insensitive, unless they contain upper-case letters:&lt;br /&gt;set ignorecase&lt;br /&gt;set smartcase&lt;br /&gt;set hlsearch&lt;br /&gt;&lt;br /&gt;" show the `best match so far' as search strings are typed:&lt;br /&gt;set incsearch&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115581225768401155?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115581225768401155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115581225768401155&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115581225768401155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115581225768401155'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/08/vim-setting-for-vimrc.html' title='Vim setting for .vimrc'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115575316980609508</id><published>2006-08-16T20:28:00.000+02:00</published><updated>2006-08-18T16:30:32.920+02:00</updated><title type='text'>Shell Backup Script</title><content type='html'>Here is the shell script for backup of the server contents to another over scp.&lt;br /&gt;&lt;pre&gt;#!/bin/sh&lt;br /&gt;#################################################################&lt;br /&gt;# Script for the backup the contents under the specified folder&lt;br /&gt;# and the all mysql data&lt;br /&gt;#&lt;br /&gt;# -Cavalierski&lt;br /&gt;#################################################################&lt;br /&gt;# The Following setting should be modified for the each environment&lt;br /&gt;##################################################################&lt;br /&gt;#Date format of the back up file. This will be the prefix of the file&lt;br /&gt;DATE_FORMAT=$(date +'%Y%m%d')&lt;br /&gt;&lt;br /&gt;#Specify the folder that you want to backup&lt;br /&gt;TARGET_DIR=(/var/www/xxx /home/xxx/test)&lt;br /&gt;&lt;br /&gt;#Set the backup file name&lt;br /&gt;BACKUP_LOGFILE=${DATE_FORMAT}.log&lt;br /&gt;BACKUP_SQLFILE=${DATE_FORMAT}.sql.gz&lt;br /&gt;&lt;br /&gt;#Setting for MySQL&lt;br /&gt;MYSQL_PASSWD=&lt;br /&gt;&lt;br /&gt;#Setting for Backup server over scp&lt;br /&gt;SCPURL=www.loveanna.net:backup&lt;br /&gt;SCPUSER=xxx&lt;br /&gt;&lt;br /&gt;# Do not edit the below lines&lt;br /&gt;##################################################################&lt;br /&gt;# Temporary backup file&lt;br /&gt;BACKUP_DIR=/tmp/www&lt;br /&gt;function make_backup(){&lt;br /&gt;for f in "$@"&lt;br /&gt;do&lt;br /&gt;if [ -d "$f" ]&lt;br /&gt;then&lt;br /&gt;  tar zcvf ${BACKUP_DIR}/${DATE_FORMAT}_${f##/*/}.tar.gz "$f"/* &amp;gt;&amp;gt;&lt;br /&gt; ${BACKUP_DIR}/${BACKUP_LOGFILE}&lt;br /&gt;else&lt;br /&gt;  echo "[ERROR] $f doesn't exist" &amp;gt;&amp;gt; ${BACKUP_DIR}/${BACKUP_LOGFILE}&lt;br /&gt;fi&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;#The Answer to Life, the Universe, and Everything&lt;br /&gt;return 42;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;mkdir -p $BACKUP_DIR&lt;br /&gt;make_backup ${TARGET_DIR[*]}&lt;br /&gt;mysqldump -uroot --password=$MYSQL_PASSWD --all-databases | gzip&amp;gt;  &lt;br /&gt; $BACKUP_DIR/$BACKUP_SQLFILE&lt;br /&gt;&lt;br /&gt;if [ $?  -ne 0 ]&lt;br /&gt;then&lt;br /&gt;echo "[ERROR] sqldump failed" &amp;gt; ${BACKUP_DIR}/${BACKUP_LOGFILE}&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;BKFILES=$(ls $BACKUP_DIR/${DATE_FORMAT}*)&lt;br /&gt;BKNUM=${#BKFILES[@]}&lt;br /&gt;&lt;br /&gt;for ((i=0;i&amp;lt;BKNUM;i++)); do&lt;br /&gt;scp ${BKFILES[i]} ${SCPUSER}@${SCPURL}&lt;br /&gt;rm -R ${BKFILES[i]:-${BACKUP_DIR}/*}&lt;br /&gt;done&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115575316980609508?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115575316980609508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115575316980609508&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115575316980609508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115575316980609508'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/08/shell-backup-script.html' title='Shell Backup Script'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115575263355679246</id><published>2006-08-16T20:13:00.000+02:00</published><updated>2006-08-16T20:26:27.566+02:00</updated><title type='text'>Useful Eclipse Plug-ins</title><content type='html'>Here are the list that I use for Eclipse on Ubuntu.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://pmd.sourceforge.net/eclipse"&gt;PMD&lt;/a&gt; - Refactoring&lt;/li&gt;&lt;li&gt;&lt;a href="http://ehep.sourceforge.net/update"&gt;CheckStyle&lt;/a&gt;- Check code style&lt;/li&gt;&lt;li&gt;&lt;a href="http://ehep.sourceforge.net/update"&gt;HexEditor&lt;/a&gt;- Hex view on Eclipse&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.omg.org"&gt;EclipseUML&lt;/a&gt;- UML view on Eclipse&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://www.eclipse-plugins.info/eclipse/index.jsp"&gt;The link to the plug-ins for Eclipse&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115575263355679246?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115575263355679246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115575263355679246&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115575263355679246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115575263355679246'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/08/useful-eclipse-plug-ins.html' title='Useful Eclipse Plug-ins'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115507837373179676</id><published>2006-08-09T01:05:00.000+02:00</published><updated>2006-08-09T01:06:13.746+02:00</updated><title type='text'>Firefox flash sound problem</title><content type='html'>The following steps are the solution on the problem of firefox flash sound problem.&lt;br /&gt;&lt;blockquote&gt; # Flash also looks for /usr/lib/libesd.so.1&lt;br /&gt;sudo ln -s /usr/lib/libesd.so.0 /usr/lib/libesd.so.1&lt;br /&gt;&lt;br /&gt;# Flash expects /tmp/.esd/socket to exist.&lt;br /&gt;sudo mkdir -p /tmp/.esd/&lt;br /&gt;sudo touch /tmp/.esd/socket &lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115507837373179676?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115507837373179676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115507837373179676&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115507837373179676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115507837373179676'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/08/firefox-flash-sound-problem.html' title='Firefox flash sound problem'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115507346023366296</id><published>2006-08-08T23:33:00.000+02:00</published><updated>2006-08-17T18:51:53.043+02:00</updated><title type='text'>Install log script for linux</title><content type='html'>Sometimes you need to install the program from the source as it is stable etc. However without the package management , it is difficult to find where the program files are deployed.&lt;br /&gt;&lt;br /&gt;The following commands will tell you where the new files are created. Now that you can remove the programm following the diff output. The following each line is in one line.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;%sudo find / | grep -v -e ^/proc/ -e ^/dev/ -e ^/media/ -e ^/tmp/ -e ^/mnt/ &gt;&lt;span style="font-style: italic;"&gt;beforeinstall.list&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;% sudo find / | grep -v -e ^/proc/ -e ^/dev/ -e ^/media/ -e ^/tmp/ -e ^/mnt/ &gt;&lt;span style="font-style: italic;"&gt;afterinstall.list&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;% diff &lt;span style="font-style: italic;"&gt;beforeinstall.list afterinstall.list&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115507346023366296?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115507346023366296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115507346023366296&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115507346023366296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115507346023366296'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/08/install-log-script-for-linux.html' title='Install log script for linux'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115507280590333305</id><published>2006-08-08T23:21:00.000+02:00</published><updated>2006-08-08T23:33:25.923+02:00</updated><title type='text'>Mastering dpkg</title><content type='html'>Debian GNU/Linux package manager is very cozy tool to manage applications on your system.&lt;br /&gt;Here are the tips of useful commands of "&lt;span style="font-weight: bold;"&gt;dpkg&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;// Search the package&lt;br /&gt;$dpkg  -l  '&lt;span style="font-style: italic;"&gt;firefox*&lt;/span&gt;'&lt;/blockquote&gt;&lt;blockquote&gt;//Search installed package&lt;br /&gt;$dpkg -l | grep &lt;span style="font-style: italic;"&gt;firerox&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;blockquote&gt;//List up the files install by the package&lt;br /&gt;$dpkg -L &lt;span style="font-style: italic;"&gt;firefox&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;blockquote&gt;//Search the package from the specific file&lt;br /&gt;$dpkg -S &lt;span style="font-style: italic;"&gt;mozilla-firefox.png&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;blockquote&gt;//Aquire the complete information of the package&lt;br /&gt;$dpkg -s &lt;span style="font-style: italic;"&gt;firefox&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;Those commands are often needed but often forgotten...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115507280590333305?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115507280590333305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115507280590333305&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115507280590333305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115507280590333305'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/08/mastering-dpkg.html' title='Mastering dpkg'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30662357.post-115205730402130307</id><published>2006-07-05T01:42:00.000+02:00</published><updated>2006-08-21T18:07:39.526+02:00</updated><title type='text'>Blog is Up</title><content type='html'>OK, now it's open.&lt;br /&gt;&lt;br /&gt;So far I use Ubuntu Dapper as a desktop OS at home &amp; work and Eclipse as an IDE. At work, I use J2ME and at home I use J2SE / J2EE for my hobby.&lt;br /&gt;&lt;br /&gt;Recently I've been enjoying the re-config of my Ubuntu but I'm getting in the mood of programming now. I just become a member of SorceForge so I'm looking for the project that I can help.&lt;br /&gt;&lt;br /&gt;With 3 ladies (2 cute daughters &amp;amp; 1 wife) , it is difficult to find time for my hobby. After 23:00-2:00 for 3 hours a day is the precious time for me. Still it's much less than I need.&lt;br /&gt;&lt;br /&gt;Anyway, in this blog, I'll put notes or tips that I learned. Hope you could find them useful.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30662357-115205730402130307?l=make-it-open.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-it-open.blogspot.com/feeds/115205730402130307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=30662357&amp;postID=115205730402130307&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115205730402130307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30662357/posts/default/115205730402130307'/><link rel='alternate' type='text/html' href='http://make-it-open.blogspot.com/2006/07/blog-is-up.html' title='Blog is Up'/><author><name>Cavalierski</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://photos1.blogger.com/blogger/6788/2564/1600/myself.1.jpg'/></author><thr:total>0</thr:total></entry></feed>
