<?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:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7894313694166518472</id><updated>2010-05-04T04:17:21.637+04:30</updated><title type='text'>Hamid Reza Fahimi</title><subtitle type='html'></subtitle><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.hfahimi.com/atom.xml'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-4553349110202373450</id><published>2009-04-20T17:24:00.004+04:30</published><updated>2009-04-20T17:30:23.934+04:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>sql IN logical operation for java</title><content type='html'>Hi,&lt;br /&gt;have you ever needed sql IN for java language ?&lt;br /&gt;OK, in this post I'm going to use new java 5 feature (varargs method) to simulate sql IN:&lt;br /&gt;&lt;pre&gt;public static boolean in(int i, int... ints) {&lt;br /&gt; Arrays.sort(ints);&lt;br /&gt; return Arrays.binarySearch(ints, i) &gt;= 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;as you see, our function gets 2 parameters, first one is your desired value and second one is your search list.&lt;br /&gt;now, when you call the method:&lt;br /&gt;&lt;pre&gt;public static void main(String[] args) {&lt;br /&gt;   System.out.println(in(1, 2, 3, 4, 5, 1));&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;it returns:&lt;br /&gt;&lt;pre&gt;true&lt;br /&gt;&lt;/pre&gt;i hope you find this tip useful;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-4553349110202373450?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/4553349110202373450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=4553349110202373450' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/4553349110202373450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/4553349110202373450'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2009/04/sql-in-logical-operation-for-java.html' title='sql IN logical operation for java'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-2233005850236920353</id><published>2009-04-11T16:58:00.007+04:30</published><updated>2009-04-11T17:20:02.004+04:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='dump'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>backup from mysql database's routines</title><content type='html'>Sometimes we need get backup just from mysql database's routines.&lt;br /&gt;command below shows us how we can do that:&lt;br /&gt;&lt;pre&gt;mysqldump dbname -uusername -p -Rtd &gt; /path/to/your/dump/file&lt;br /&gt;&lt;br /&gt;-u username&lt;br /&gt;-p prompt password&lt;br /&gt;-R stored procedures and functions&lt;br /&gt;-t prevent writing table creation&lt;br /&gt;-d "       "       row information&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/7894313694166518472-2233005850236920353?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/2233005850236920353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=2233005850236920353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/2233005850236920353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/2233005850236920353'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2009/04/backup-from-mysql-databases-routines.html' title='backup from mysql database&apos;s routines'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-6204984388121510256</id><published>2008-05-27T12:33:00.008+04:30</published><updated>2008-05-27T13:18:28.453+04:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='farsi'/><category scheme='http://www.blogger.com/atom/ns#' term='utf8'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='persian'/><title type='text'>how to detecet is there persian alphabet(s) in a string via php?</title><content type='html'>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;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-6204984388121510256?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/6204984388121510256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=6204984388121510256' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/6204984388121510256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/6204984388121510256'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2008/05/how-to-detecet-is-there-persian.html' title='how to detecet is there persian alphabet(s) in a string via php?'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-6716455492585272484</id><published>2008-05-07T15:28:00.003+04:30</published><updated>2008-05-07T16:49:50.298+04:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='war file'/><title type='text'>how to deploy war file into web root ?</title><content type='html'>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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-6716455492585272484?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/6716455492585272484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=6716455492585272484' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/6716455492585272484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/6716455492585272484'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2008/05/how-to-deploy-war-file-into-web-root.html' title='how to deploy war file into web root ?'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-1584547608067928228</id><published>2008-03-03T17:54:00.007+03:30</published><updated>2008-03-03T18:16:13.166+03:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>how to get all oracle components version ?</title><content type='html'>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;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-1584547608067928228?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/1584547608067928228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=1584547608067928228' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/1584547608067928228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/1584547608067928228'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2008/03/how-to-get-all-oracle-components.html' title='how to get all oracle components version ?'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-873885548306062491</id><published>2008-01-30T09:25:00.000+03:30</published><updated>2008-01-30T11:54:51.675+03:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='90 7 3 rule'/><title type='text'>90, 7, 3 rule</title><content type='html'>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!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-873885548306062491?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/873885548306062491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=873885548306062491' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/873885548306062491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/873885548306062491'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2008/01/90-7-3-rule.html' title='90, 7, 3 rule'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-6083150776113025789</id><published>2008-01-21T17:36:00.000+03:30</published><updated>2008-01-21T20:25:58.704+03:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='temporary table'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='memory table'/><title type='text'>temporary/memory tables in mysql</title><content type='html'>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 :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-6083150776113025789?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/6083150776113025789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=6083150776113025789' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/6083150776113025789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/6083150776113025789'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2008/01/temporarymemory-tables-in-mysql.html' title='temporary/memory tables in mysql'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-2515939355362782500</id><published>2008-01-15T16:40:00.000+03:30</published><updated>2008-01-17T15:13:40.286+03:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='jfreechart'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Set JFreeChart data from database</title><content type='html'>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;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-2515939355362782500?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/2515939355362782500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=2515939355362782500' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/2515939355362782500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/2515939355362782500'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2008/01/set-jfreechart-data-from-database.html' title='Set JFreeChart data from database'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-2781055202049004640</id><published>2008-01-07T16:19:00.000+03:30</published><updated>2008-01-17T15:12:07.678+03:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='array'/><title type='text'>How to search and sort primitive arrays in Java ?</title><content type='html'>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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-2781055202049004640?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/2781055202049004640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=2781055202049004640' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/2781055202049004640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/2781055202049004640'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2008/01/how-to-search-and-sort-primitive-arrays.html' title='How to search and sort primitive arrays in Java ?'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-3610665988054729808</id><published>2008-01-03T14:51:00.000+03:30</published><updated>2008-01-04T18:56:35.036+03:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='english'/><title type='text'>boring English teacher!</title><content type='html'>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!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-3610665988054729808?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/3610665988054729808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=3610665988054729808' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/3610665988054729808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/3610665988054729808'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2008/01/boring-english-teacher.html' title='boring English teacher!'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-4803098603281710998</id><published>2007-12-26T16:12:00.000+03:30</published><updated>2008-01-07T17:00:38.650+03:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='j2ee'/><category scheme='http://www.blogger.com/atom/ns#' term='war file'/><category scheme='http://www.blogger.com/atom/ns#' term='tomcat'/><category scheme='http://www.blogger.com/atom/ns#' term='lib'/><title type='text'>deploy war file without lib in Tomcat</title><content type='html'>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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-4803098603281710998?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/4803098603281710998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=4803098603281710998' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/4803098603281710998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/4803098603281710998'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2007/12/deploy-war-file-without-lib-in-tomcat.html' title='deploy war file without lib in Tomcat'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-7410835767235347454</id><published>2007-12-25T15:08:00.000+03:30</published><updated>2007-12-26T15:09:51.303+03:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='job'/><title type='text'>advantages and disadvantages of software developing as a job</title><content type='html'>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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-7410835767235347454?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/7410835767235347454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=7410835767235347454' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/7410835767235347454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/7410835767235347454'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2007/12/advantages-and-disadvantages-of.html' title='advantages and disadvantages of software developing as a job'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-6899917879893656961</id><published>2007-12-22T17:42:00.000+03:30</published><updated>2008-01-04T18:56:20.839+03:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='mountain climbing'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='intellij'/><title type='text'>first wintery  mountain climbing</title><content type='html'>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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-6899917879893656961?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/6899917879893656961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=6899917879893656961' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/6899917879893656961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/6899917879893656961'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2007/12/first-wintery-mountain-climbing.html' title='first wintery  mountain climbing'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7894313694166518472.post-3213553646688178859</id><published>2007-12-19T16:19:00.000+03:30</published><updated>2007-12-22T12:56:46.640+03:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='hello'/><title type='text'>Hello World !</title><content type='html'>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 ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7894313694166518472-3213553646688178859?l=blog.hfahimi.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/3213553646688178859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7894313694166518472&amp;postID=3213553646688178859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/3213553646688178859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7894313694166518472/posts/default/3213553646688178859'/><link rel='alternate' type='text/html' href='http://blog.hfahimi.com/2007/12/hello-world.html' title='Hello World !'/><author><name>Hamid Reza</name><uri>http://www.blogger.com/profile/12030567956040432159</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05547654490159909780'/></author><thr:total>0</thr:total></entry></feed>