<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-7894313694166518472</atom:id><lastBuildDate>Fri, 11 Jul 2008 11:41:33 +0000</lastBuildDate><title>Hamid Reza Fahimi</title><description/><link>http://blog.hfahimi.com/</link><managingEditor>noreply@blogger.com (Hamid Reza)</managingEditor><generator>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-6204984388121510256</guid><pubDate>Tue, 27 May 2008 08:03:00 +0000</pubDate><atom:updated>2008-05-27T13:18:28.453+04:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>farsi</category><category domain='http://www.blogger.com/atom/ns#'>utf8</category><category domain='http://www.blogger.com/atom/ns#'>php</category><category domain='http://www.blogger.com/atom/ns#'>persian</category><title>how to detecet is there persian alphabet(s) in a string via php?</title><description>Because &lt;a href="http://www.oyax.com/"&gt;our system&lt;/a&gt; should detect direction of a string, we need a function that tell us the string has Persian alphabet or no,&lt;br /&gt;so i write a little function to check it for us:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;function hasPersianAlphabet($str) {&lt;br /&gt;$persianAlphabet = array('ا', 'ب', 'پ',&lt;br /&gt;'ت', 'ث', 'ج', 'چ', 'ح', 'خ', 'د',&lt;br /&gt;'ذ', 'ر', 'ز', 'ژ', 'ط', 'ظ', 'س',&lt;br /&gt;'ش', 'ض', 'ص', 'ع', 'غ', 'ف', 'ق',&lt;br /&gt;'ك', 'ک', 'گ', 'ل', 'م', 'ن', 'و',&lt;br /&gt;'ه', 'ي', 'ی', 'ه', 'آ', 'ء', 'ئ', 'ة');&lt;br /&gt;str_ireplace($persianAlphabet, '', $str, $count);&lt;br /&gt;return $count &gt; 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;</description><link>http://blog.hfahimi.com/2008/05/how-to-detecet-is-there-persian.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-6716455492585272484</guid><pubDate>Wed, 07 May 2008 10:58:00 +0000</pubDate><atom:updated>2008-05-07T16:49:50.298+04:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>war file</category><title>how to deploy war file into web root ?</title><description>Some times we need deploy our peoject into root directory of your domain (not sub directory), to solve the problem:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;make war file (for example myproject.war)&lt;/li&gt;&lt;li&gt;rename the war file to ROOT.war (attention the filename must be uppercase)&lt;/li&gt;&lt;li&gt;deploy war file&lt;/li&gt;&lt;/ol&gt;now, you can see &lt;u&gt;&lt;span style="font-weight: bold;"&gt;/&lt;/span&gt;&lt;/u&gt; in tomcat web application manager page that deployed in site root.</description><link>http://blog.hfahimi.com/2008/05/how-to-deploy-war-file-into-web-root.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-1584547608067928228</guid><pubDate>Mon, 03 Mar 2008 14:24:00 +0000</pubDate><atom:updated>2008-03-03T18:16:13.166+03:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>oracle</category><title>how to get all oracle components version ?</title><description>You can use 2 queries to get oracle components version:&lt;br /&gt;&lt;pre&gt;1. select * from product_component_version&lt;br /&gt;&lt;/pre&gt;in this case you get result like below&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;PRODUCT                  VERSION   STATUS&lt;br /&gt;---------------------------------------------&lt;br /&gt;NLSRTL                   9.2.0.1.0 Production&lt;br /&gt;Oracle9i Enterprise E... 9.2.0.1.0 Production&lt;br /&gt;PL/SQL                   9.2.0.1.0 Production&lt;br /&gt;TNS for Solaris:         9.2.0.1.0 Production&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;all fields have crystal clear contents, so i won't describe them&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;pre&gt;2. select * from v$version&lt;br /&gt;&lt;/pre&gt;that returns same result as above but all fields is concated&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;BANNER&lt;br /&gt;---------------------------------------------&lt;br /&gt;Oracle9i Enterprise Edition Release 9.2...&lt;br /&gt;PL/SQL Release 9.2.0.1.0 - Production&lt;br /&gt;CORE 9.2.0.1.0 Production&lt;br /&gt;TNS for Solaris: Version 9.2.0.1.0 - Produ...&lt;br /&gt;NLSRTL Version 9.2.0.1.0 - Production&lt;br /&gt;&lt;/pre&gt;</description><link>http://blog.hfahimi.com/2008/03/how-to-get-all-oracle-components.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-873885548306062491</guid><pubDate>Wed, 30 Jan 2008 05:55:00 +0000</pubDate><atom:updated>2008-01-30T11:54:51.675+03:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>90 7 3 rule</category><title>90, 7, 3 rule</title><description>Few days ago, my boss told me a rule in software projects (or maybe other projects).&lt;br /&gt;The rule called &lt;span style="font-weight: bold;"&gt;90, 7, 3 rule&lt;/span&gt; ! which means:&lt;br /&gt;&lt;blockquote&gt;90 percent of project is thinking&lt;br /&gt;7 percent is implementing&lt;br /&gt;and&lt;br /&gt;3 percent is debugging&lt;br /&gt;&lt;/blockquote&gt;isn't it fantastic ?&lt;br /&gt;&lt;br /&gt;Maybe some developers do vice versa!&lt;br /&gt;&lt;br /&gt;I hope we were not who developers that did 90% implementing, 7% debugging and 3% thinking!</description><link>http://blog.hfahimi.com/2008/01/90-7-3-rule.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-6083150776113025789</guid><pubDate>Mon, 21 Jan 2008 14:06:00 +0000</pubDate><atom:updated>2008-01-21T20:25:58.704+03:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>temporary table</category><category domain='http://www.blogger.com/atom/ns#'>mysql</category><category domain='http://www.blogger.com/atom/ns#'>memory table</category><title>temporary/memory tables in mysql</title><description>As you know memory tables (temporary tables) are a kind of tables which store data in memory and respond  to your query very fast.&lt;br /&gt;I've experienced temporary tables in Oracle  and SQL Server by myself but I had no practical experience about that in mysql till yesterday!&lt;br /&gt;Yesterday, I had a query that was very slow and took 4-5 hours for running! So I started to search about temporary tables in mysql and found how to use them.&lt;br /&gt;After I used memory table in my queries, it took only 9 minutes !!! It was unbelievable.&lt;br /&gt;So I decied to post a new mini article here and share result of my research with you.&lt;br /&gt;&lt;br /&gt;There is a very simple command for creating a memory table :&lt;br /&gt;&lt;pre&gt;create table tbl1(fld varchar(64)) engine=memory;&lt;/pre&gt;This commands will create a table in memory for us but it's empty. Now, how we can fill it ? We can use insert command for filling this table or fill it on creation time:&lt;br /&gt;&lt;pre&gt;create table my_table engine=memory&lt;br /&gt;select ip,country from ip_location;&lt;/pre&gt;As you see it's like a piece of cake ;)&lt;br /&gt;Now we have a table in memory which help to decrease our query run time. if you get&lt;br /&gt;&lt;pre&gt;Error Code : 1114&lt;br /&gt;The table 'my_table' is full&lt;/pre&gt;error message during creation memory table, you have some solutions to solve the problem:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. &lt;/span&gt;increase &lt;b&gt;max_heap_table_size&lt;/b&gt; system variables.&lt;br /&gt;&lt;pre&gt; set @@max_heap_table_size=1048576&lt;br /&gt;/* your favorite size in byte, it's 1 MB */&lt;/pre&gt;It's a system variables that force maximum size on memory tables&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;2.&lt;/span&gt; limit rows by &lt;b&gt;max_rows&lt;/b&gt; table option. It's a table option in the create table statement to keep the table from becoming too large&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;3.&lt;/span&gt; decrease length of fields type, for example if you have a field as varchar(100) change it to varchar(32)&lt;br /&gt;&lt;br /&gt;After creation, the table will be accessible for all sessions till server doesn't restart or shut down, after that you have your memory table without any rows.&lt;br /&gt;&lt;br /&gt;You can read a complete document about memory tables &lt;a href="http://dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The solution solved my problems, I wish you enjoyed it :)</description><link>http://blog.hfahimi.com/2008/01/temporarymemory-tables-in-mysql.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-2515939355362782500</guid><pubDate>Tue, 15 Jan 2008 13:10:00 +0000</pubDate><atom:updated>2008-01-17T15:13:40.286+03:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>jfreechart</category><category domain='http://www.blogger.com/atom/ns#'>java</category><category domain='http://www.blogger.com/atom/ns#'>database</category><title>Set JFreeChart data from database</title><description>A couple of days ago I needed to generate some charts using Java so I searched for a library which could do it. Soon I found &lt;a href="http://www.jfree.org/jfreechart/"&gt;JFreeChart&lt;/a&gt; library and downloaded it from &lt;a href="http://www.jfree.org/jfreechart/download.html"&gt;here&lt;/a&gt;. But I was surprised when I saw the user guide wasn't free! Therefore I decided to write this post and describe how to obtain JFreeChart data from database (I'll use mysql database).&lt;br /&gt;&lt;br /&gt;At first I copied &lt;span style="font-family:courier new;"&gt;jcommon-1.0.12.jar&lt;/span&gt;, &lt;span style="font-family:courier new;"&gt;jfreechart-1.0.9.jar&lt;/span&gt; and &lt;span style="font-family:courier new;"&gt;mysql-connector-java-5.0.7-bin.jar&lt;/span&gt; files to &lt;span style="font-family:courier new;"&gt;/WEB-INF/lib&lt;/span&gt; directory then I created a table in the database and filled it with below data:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;type             count&lt;br /&gt;----------------------&lt;br /&gt;invoice_detail    3273&lt;br /&gt;----------------------&lt;br /&gt;object_status     2819&lt;br /&gt;----------------------&lt;br /&gt;service_sales_... 1540&lt;br /&gt;----------------------&lt;br /&gt;call_function     1183&lt;br /&gt;----------------------&lt;br /&gt;contact           904&lt;br /&gt;----------------------&lt;br /&gt;invoice           775&lt;br /&gt;----------------------&lt;br /&gt;payment           596&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Now I create &lt;span style="font-family:courier new;"&gt;DatabaseChart &lt;/span&gt;servlet for connecting to database and generating my chart&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;import org.jfree.data.jdbc.JDBCPieDataset;&lt;br /&gt;import org.jfree.chart.JFreeChart;&lt;br /&gt;import org.jfree.chart.ChartFactory;&lt;br /&gt;import org.jfree.chart.ChartUtilities;&lt;br /&gt;&lt;br /&gt;import javax.servlet.http.HttpServlet;&lt;br /&gt;import javax.servlet.http.HttpServletRequest;&lt;br /&gt;import javax.servlet.http.HttpServletResponse;&lt;br /&gt;import javax.servlet.ServletException;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.io.OutputStream;&lt;br /&gt;import java.sql.SQLException;&lt;br /&gt;import java.sql.DriverManager;&lt;br /&gt;import java.sql.Connection;&lt;br /&gt;&lt;br /&gt;public class DatabaseChart extends HttpServlet {&lt;br /&gt;&lt;br /&gt;public void doPost(HttpServletRequest request,&lt;br /&gt;HttpServletResponse response)&lt;br /&gt;throws ServletException, IOException {}&lt;br /&gt;&lt;br /&gt;public void doGet(HttpServletRequest request,&lt;br /&gt;HttpServletResponse response)&lt;br /&gt; throws ServletException, IOException {&lt;br /&gt;Connection connection = null;&lt;br /&gt;try {&lt;br /&gt; Class.forName("com.mysql.jdbc.Driver").&lt;br /&gt;newInstance();&lt;br /&gt; try {&lt;br /&gt;     connection = DriverManager.&lt;br /&gt;getConnection("jdbc:mysql://localhost/&lt;br /&gt;my_db?user=my_un&amp;amp;password=my_pass&amp;amp;&lt;br /&gt;useUnicode=true&amp;amp;&lt;br /&gt;characterEncoding=utf-8");&lt;br /&gt; } catch (SQLException e) {&lt;br /&gt;     e.printStackTrace();&lt;br /&gt; }&lt;br /&gt;} catch (InstantiationException e) {&lt;br /&gt; e.printStackTrace();&lt;br /&gt;} catch (IllegalAccessException e) {&lt;br /&gt; e.printStackTrace();&lt;br /&gt;} catch (ClassNotFoundException e) {&lt;br /&gt; e.printStackTrace();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;JDBCPieDataset dataset =&lt;br /&gt;new JDBCPieDataset(connection);&lt;br /&gt;try {&lt;br /&gt; dataset.executeQuery("Select `type`, `count`&lt;br /&gt;From my_table order by count desc");&lt;br /&gt; JFreeChart chart = ChartFactory.&lt;br /&gt;createPieChart("Pie Chart", dataset,&lt;br /&gt;true, true, false);&lt;br /&gt; if (chart != null) {&lt;br /&gt;     response.setContentType("image/png");&lt;br /&gt;     OutputStream out = response.&lt;br /&gt;     getOutputStream();&lt;br /&gt;     ChartUtilities.writeChartAsPNG(out,&lt;br /&gt;       chart, 450, 400);&lt;br /&gt; }&lt;br /&gt;} catch (SQLException e) {&lt;br /&gt; e.printStackTrace();&lt;br /&gt;}&lt;br /&gt;try {if(connection != null){connection.close();&lt;br /&gt;}}&lt;br /&gt;catch (SQLException e) {e.printStackTrace();}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;at the end I add the servlet information to &lt;span style="font-family:courier new;"&gt;web.xml&lt;/span&gt; file&lt;br /&gt;&lt;pre&gt; &amp;lt;servlet&amp;gt;&lt;br /&gt;&amp;lt;servlet-name&amp;gt;generate_chart&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;&amp;lt;servlet-class&amp;gt;DatabaseChart&amp;lt;/servlet-class&amp;gt;&lt;br /&gt;&amp;lt;/servlet&amp;gt;&lt;br /&gt;&amp;lt;servlet-mapping&amp;gt;&lt;br /&gt;&amp;lt;servlet-name&amp;gt;generate_chart&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;&amp;lt;url-pattern&amp;gt;/generate_chart&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;now if you run the project you will get a chart like this&lt;br /&gt;&lt;br /&gt;&lt;img src="http://blog.hfahimi.com/uploaded_images/jfreechart-736559.png" title="generated chart" border="0" /&gt;</description><link>http://blog.hfahimi.com/2008/01/set-jfreechart-data-from-database.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-2781055202049004640</guid><pubDate>Mon, 07 Jan 2008 12:49:00 +0000</pubDate><atom:updated>2008-01-17T15:12:07.678+03:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>java</category><category domain='http://www.blogger.com/atom/ns#'>array</category><title>How to search and sort primitive arrays in Java ?</title><description>Always I was keen on solution for sorting and searching primitive arrays. Today I found &lt;span style="font-weight: bold;"&gt;java.util.Arrays&lt;/span&gt; class that includes some useful static methods for sorting, searching, filling and ... For sorting you can use &lt;span style="font-weight: bold;"&gt;Arrays.sort(&lt;/span&gt;aPrimitiveArray&lt;span style="font-weight: bold;"&gt;)&lt;/span&gt; static method, look here :&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;String[] test = {"d", "z", "a"};&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Arrays.sort(test);&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;System.out.println(Arrays.toString(test));&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;The result will be:&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;blockquote&gt;[a, d, z]&lt;/blockquote&gt;&lt;/span&gt;As you see we've used &lt;span style="font-weight: bold;"&gt;Arrays.toString(&lt;/span&gt;test&lt;span style="font-weight: bold;"&gt;)&lt;/span&gt; for printing sorted array.&lt;br /&gt;&lt;br /&gt;And for searching you can use  &lt;span style="font-weight: bold;"&gt;Arrays.binarySearch(&lt;/span&gt;aPrimitiveArray, key&lt;span style="font-weight: bold;"&gt;)&lt;/span&gt; static method:&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;Arrays.sort(test);&lt;br /&gt;System.out.println(Arrays.toString(test));&lt;br /&gt;System.out.println(Arrays.binarySearch(test, "a"));&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;The result will be:&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;[a, d, z]&lt;br /&gt;1&lt;/span&gt;&lt;/blockquote&gt;1 is index of found key otherwise it will be a less than zero number.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Attention: &lt;/span&gt;that&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;before using &lt;span style="font-weight: bold;"&gt;Arrays.binarySearch(&lt;/span&gt;aPrimitiveArray, key&lt;span style="font-weight: bold;"&gt;)&lt;/span&gt; method you have to sort array by &lt;span style="font-weight: bold;"&gt;Arrays.sort(&lt;/span&gt;aPrimitiveArray&lt;span style="font-weight: bold;"&gt;)&lt;/span&gt; method.</description><link>http://blog.hfahimi.com/2008/01/how-to-search-and-sort-primitive-arrays.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-3610665988054729808</guid><pubDate>Thu, 03 Jan 2008 11:21:00 +0000</pubDate><atom:updated>2008-01-04T18:56:35.036+03:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>english</category><title>boring English teacher!</title><description>Two days ago English teacher was absent. she went to holidays because she is Christian.&lt;br /&gt;Instead another teacher came for teaching us.  I think she was illiterate, she couldn't speak English fluent and when we asked her about new word she said "I'm not dictionary, check your dictionary please"!&lt;br /&gt;&lt;br /&gt;The class was boring and all of us yawned frequently :D&lt;br /&gt;In break time we went to institute office and talked with our supervisor for leaving class but he said "It's very impolite, please stay till end of class"! and we were forced to tolerate that stupid teacher!</description><link>http://blog.hfahimi.com/2008/01/boring-english-teacher.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-4803098603281710998</guid><pubDate>Wed, 26 Dec 2007 12:42:00 +0000</pubDate><atom:updated>2008-01-07T17:00:38.650+03:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>j2ee</category><category domain='http://www.blogger.com/atom/ns#'>war file</category><category domain='http://www.blogger.com/atom/ns#'>tomcat</category><category domain='http://www.blogger.com/atom/ns#'>lib</category><title>deploy war file without lib in Tomcat</title><description>At this post I'd talk about how to decrease size of big war files and make deployment faster.&lt;br /&gt;I have a 15 MB war file and the size of lib (jar files) directory is 14.8 MB! So I need a solution that enables me to upload my project lib directory just for once and after that deploy my war file without lib directory.&lt;br /&gt;&lt;br /&gt;At first I renamed my lib directory to myprojlib and then copied (for example using ftp) it to &lt;span style="font-weight: bold;"&gt;${tomcat home}/common/lib&lt;/span&gt; folder on the server.&lt;br /&gt;After that I modify &lt;span style="font-weight: bold;"&gt;catalina.properties&lt;/span&gt; file in &lt;span style="font-weight: bold;"&gt;${tomcat home}/conf &lt;/span&gt;and add my myprojlib path to &lt;b&gt;common.loader&lt;/b&gt; according below:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family: courier new;"&gt;common.loader=${catalina.home}/common/classes,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;${catalina.home}/common/i18n/*.jar,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;${catalina.home}/common/endorsed/*.jar,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;${catalina.home}/common/lib/*.jar,&lt;/span&gt;&lt;b style="font-family: courier new;"&gt;&lt;br /&gt;${catalina.home}/common/lib/myprojlib/*.jar&lt;/b&gt;&lt;br /&gt;&lt;/blockquote&gt;Now save the file and restart my Tomcat.&lt;br /&gt;&lt;br /&gt;After that I remove lib folder from my project and compile it without lib directory. Be careful &lt;span style="font-weight: bold;"&gt;don't package jar files&lt;/span&gt; in your project. My war file is&lt;br /&gt;180KB now and I deploy it easily and I shouldn’t deploy 15 MB war file every time.</description><link>http://blog.hfahimi.com/2007/12/deploy-war-file-without-lib-in-tomcat.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-7410835767235347454</guid><pubDate>Tue, 25 Dec 2007 11:38:00 +0000</pubDate><atom:updated>2007-12-26T15:09:51.303+03:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>software</category><category domain='http://www.blogger.com/atom/ns#'>job</category><title>advantages and disadvantages of software developing as a job</title><description>2 days ago my English teacher asked me that wrote a note about advantages and disadvantages of my job.&lt;br /&gt;&lt;br /&gt;Today, I'm going to talk about advantages and disadvantages of Software Developing as a job. However it's my current job and I'm indisputable satisfied with that, but I promise I'll write about that candidly.&lt;br /&gt;&lt;br /&gt;At first let's talk about advantages of Software Developing.&lt;br /&gt;As you know, nowadays IT (Information Technology) is using in any kind of industries and careers so you have a variety job opportunities that help you find your ideal job. In addition salaries are good, if you can achieve to middle level knowledge about your field you will have a reasonable salaries. Also according that job you will be up-to-date and know today’s knowledge.&lt;br /&gt;&lt;br /&gt;And about disadvantages...&lt;br /&gt;&lt;br /&gt;One of them is sore eyes, yes; it's a real about who work with computers more than 2-3 hours a day.&lt;br /&gt;And another bad thing is backache, because you sit back of compute for long time without any movement.&lt;br /&gt;Also the worst disadvantages is (in my opinion) you don't have any deal with people and you should engage in stupid computer ;)&lt;br /&gt;&lt;br /&gt;As you see, I mentioned just 3 cons and pros about my job but there are a lot that I didn't write about them.&lt;br /&gt;I think every body can increase advantages of his/her job and decrease disadvantage of that.&lt;br /&gt;For example, I can improve my knowledge for making more money and getting promotion, have a regular sport program for avoiding illness and company in social activities for making up deal with computer.</description><link>http://blog.hfahimi.com/2007/12/advantages-and-disadvantages-of.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-6899917879893656961</guid><pubDate>Sat, 22 Dec 2007 14:12:00 +0000</pubDate><atom:updated>2008-01-04T18:56:20.839+03:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>mountain climbing</category><category domain='http://www.blogger.com/atom/ns#'>java</category><category domain='http://www.blogger.com/atom/ns#'>intellij</category><title>first wintery  mountain climbing</title><description>1. My wife and I went to first wintery mountain climbing on Friday. The weather was cold (around -6 C) but it's sunny. At first we had some problems with our ice creepers but i found their temper ;)&lt;br /&gt;&lt;br /&gt;Everything was ok but when we was returning my knee got pain. One or two month ago I went to doctor and he said "it's not important , but you should strengthen your knee" !&lt;br /&gt;&lt;br /&gt;Anyhow that was fantastic for us. You can see some pictures about that below.&lt;br /&gt;&lt;br /&gt;&lt;p align="center"&gt;&lt;a href="http://www.hfahimi.com/?showimage=138"&gt;&lt;img src="http://www.hfahimi.com/thumbnails/thumb_20071222212954_pict5462.jpg" style="padding: 5px;" align="left" border="0" height="75" width="100" /&gt;&lt;/a&gt;&lt;a href="http://www.hfahimi.com/index.php?showimage=137"&gt;&lt;img src="http://www.hfahimi.com/thumbnails/thumb_20071222212548_pict5463.jpg" style="padding: 5px;" align="left" border="0" height="75" width="100" /&gt;&lt;/a&gt;&lt;a href="http://www.hfahimi.com/index.php?showimage=136"&gt;&lt;img src="http://www.hfahimi.com/thumbnails/thumb_20071222212338_pict5491.jpg" style="padding: 5px;" align="left" border="0" height="75" width="100" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Today my intellij IDEA made me crazy, when I compiled and ran my j2ee App, appeared situation as coma after one or two click on links! I couldn't understand what's wrong. God, help me :(&lt;br /&gt;&lt;br /&gt;3. I found a &lt;a href="http://www.englishpage.com/irregularverbs/irregularverbs.html"&gt;page&lt;/a&gt; that lists all irregular verbs in English language, enjoy it.</description><link>http://blog.hfahimi.com/2007/12/first-wintery-mountain-climbing.html</link><author>noreply@blogger.com (Hamid Reza)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7894313694166518472.post-3213553646688178859</guid><pubDate>Wed, 19 Dec 2007 12:49:00 +0000</pubDate><atom:updated>2007-12-22T12:56:46.640+03:30</atom:updated><category domain='http://www.blogger.com/atom/ns#'>hello</category><title>Hello World !</title><description>It's my first post in blogger just for improving my English language skill !&lt;br /&gt;I'm decided on write about my interesting things like programming(J2EE, PHP 5, MySQL, Oracle), climbing, music, life and ...&lt;br /&gt;don't be lazy! follow my blog if you like finding out more ;)</description><link>http://blog.hfahimi.com/2007/12/hello-world.html</link><author>noreply@blogger.com (Hamid Reza)</author></item></channel></rss>