<?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-32310573</id><updated>2012-02-20T23:04:09.102-08:00</updated><category term='ready state'/><category term='pig'/><category term='Hadoop  configuration'/><category term='Dashain Ashirwad'/><category term='Check progress of file copy java'/><category term='Conflict in nepal'/><category term='Nepals View'/><category term='Distributed Computing JINI'/><category term='facelets classNotFoundException'/><category term='Corruption in Nepal'/><category term='Mysql'/><category term='Scale Up vs Scale out vs Scale in systems'/><category term='HDFS configuration'/><category term='Third world country'/><category term='Type in Nepali'/><category term='scalability types'/><category term='email validator'/><category term='Nepali unicode'/><category term='Hadoop Distributed Cache usage'/><category term='My introduction'/><category term='Running Jini in Ubuntu'/><category term='Clustering with JINI Javaspace'/><category term='Richfaces'/><category term='xml utility in JAVA'/><category term='केटाहरुको दशै आशिर्वाद'/><category term='Semantic modelling of Hbase'/><category term='Hbase'/><category term='gmail notification'/><category term='com.sun.el.ExpressionFactoryImpl'/><category term='Javascript run in Java tutorial'/><category term='configuration'/><category term='java.lang.ClassNotFoundException'/><category term='Hadoop'/><category term='Hbase Configuration'/><category term='Check whether  file is in copy state'/><category term='I have done and I have not'/><category term='Java JSF'/><category term='Solution'/><category term='Hadoop Distributed Cache Tutorial'/><category term='Problem'/><category term='pdf certificate generate in java'/><category term='java compilation problem'/><category term='Java based Validation Utility'/><category term='unresolved compilation problem'/><category term='English to Nepali'/><category term='parse xml in java'/><category term='Unicode Encoding'/><category term='Hadoop Distributed Cache 0.20.2'/><category term='Verisk IT Hike to Pokhara'/><category term='Evaluating javascript Java'/><category term='pig tutorial'/><category term='Javaspae'/><category term='Spring JBOSS configuration'/><category term='Generating pdf reports in JAVA using iText library'/><category term='UTF-8'/><category term='date validator'/><category term='could only be replicated to 0 nodes'/><category term='Possibilities'/><category term='sudo in Ubuntu'/><category term='nagios'/><category term='sudo UBUNTU failure'/><category term='Nepal'/><category term='Politicians in Nepal'/><category term='xml java tutorial'/><category term='Poverty'/><category term='River side Resort lunch'/><category term='utility validator'/><category term='pdf report in java'/><category term='Distributed Key Value Store'/><category term='Underutilization of resources'/><category term='Commons Validator'/><category term='A view of Nepal from the eye of a Nepali'/><category term='xml parsing java tutorial'/><category term='UBUNTU'/><category term='एक रात्री कालिमाटीमा'/><category term='अङ्रेजी बाट नेपाली'/><category term='केटीहरुको दशै आशिर्वाद'/><category term='jini'/><category term='Javascript in Java'/><category term='Jini Ubuntu'/><category term='notify service by email'/><category term='Check file copying java'/><category term='Unicode Nepali'/><category term='Empty linux recycle bin'/><category term='Javascript Expression in Java'/><category term='Facelets'/><category term='sarangkot Hiking Nepal'/><category term='instead of 1'/><category term='evaluate XML  in JAVA'/><category term='Corrupt politician in Nepal'/><category term='Requirements for Pig'/><category term='Distributed Cache Java Program'/><category term='apache pig'/><category term='Commons validator Tutorial'/><category term='दशै आशिर्वाद'/><title type='text'>bishal acharya</title><subtitle type='html'>My personal weblog. I post occasional articles related to Technology and my personal welfares.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>32</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-32310573.post-8858878338586046481</id><published>2011-10-25T21:57:00.000-07:00</published><updated>2011-10-25T22:16:13.956-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HDFS configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='Hadoop  configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='Hbase'/><category scheme='http://www.blogger.com/atom/ns#' term='Hbase Configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='Hadoop'/><title type='text'>Hadoop HDFS and HBase Configuration</title><content type='html'>&lt;b&gt;Hadoop HDFS and HBase Configuration&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;We assume that you have theoretical knowledge of hadoop, hdfs, hbase and ZooKeeper. This document will provide the basic configuration for hdfs, hbase and ZooKeeper.&lt;br /&gt;&lt;br /&gt;Software Requirements for hadoop/Hbase: &lt;br /&gt;1. JavaTM 1.6.x &lt;br /&gt;2. ssh must be installed and sshd must be running to use the Hadoop scripts that manage remote Hadoop daemons. &lt;br /&gt;3. Hadoop&lt;br /&gt;4. HBase&lt;br /&gt;5. Zoo Keeper&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Machine Descriptions:&lt;/b&gt;&lt;br /&gt;hbasemaster : Hbase Master&lt;br /&gt;nameNode : Namenode&lt;br /&gt;&lt;br /&gt;RS1: Region Server for Hbase&lt;br /&gt;RS2: Region Server for Hbase&lt;br /&gt;RS3: Region Server for Hbase&lt;br /&gt;&lt;br /&gt;zk1: ZooKeeper Quorum&lt;br /&gt;zk2: ZooKeeper Quorum&lt;br /&gt;zk3: ZooKeeper Quorum&lt;br /&gt;&lt;br /&gt;dt1: Data Nodes and Task Tracker&lt;br /&gt;dt2: Data Nodes and Task Tracker&lt;br /&gt;dt3: Data Nodes and Task Tracker&lt;br /&gt;dt4: Data Nodes and Task Tracker&lt;br /&gt;&lt;br /&gt;If we are searching for Job tracker, we will make it when we need to work on map reduce till then we do not need job tracker.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Hadoop Configuration&lt;/b&gt;&lt;br /&gt;Unzip the hadoop folder in /home/hadoop/softwares i.e. /home/hadoop/softwares/hadoop-0.20.1/&lt;br /&gt;&lt;br /&gt;In conf/hadoop-env.sh of hadoop-0.20.1,set JAVA_HOME: "/opt/jdk1.6.0_06",&lt;br /&gt;Administrators can configure individual daemons using the configuration options HADOOP_*_OPTS. Various options available are shown below in the table. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;NameNode  HADOOP_NAMENODE_OPTS &lt;br /&gt;DataNode  HADOOP_DATANODE_OPTS &lt;br /&gt;SecondaryNamenode  HADOOP_SECONDARYNAMENODE_OPTS &lt;br /&gt;JobTracker  HADOOP_JOBTRACKER_OPTS &lt;br /&gt;TaskTracker  HADOOP_TASKTRACKER_OPTS &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Folder structure: (/home/hadoop/hdfs)&lt;br /&gt;For data node: /home/hadoop/hdfs/data&lt;br /&gt;For name node: /home/hadoop/hdfs/name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note that we should have a common user named "hadoop" under a group named "supergroup".&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ssh Configuration in Hadoop cluster&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Step 1: Generate key at server machine &lt;br /&gt;ssh-keygen -t dsa&lt;br /&gt;&lt;br /&gt;Respond to the prompt: &lt;br /&gt;• give empty passphrase (return key) &lt;br /&gt;• leave default filepath or give &lt;br /&gt;&lt;br /&gt;Step 2: Import to authorized keys&lt;br /&gt;cat file.pub (eg ~/.ssh/id_dsa.pub) &gt;&gt; ~/.ssh/authorized_keys&lt;br /&gt;&lt;br /&gt;Step 3: Change mode file of the following folders &lt;br /&gt;• ~/.ssh--&gt;700 &lt;br /&gt;• ~/.ssh/* --&gt;644 &lt;br /&gt;&lt;br /&gt;Step 4: Copy public key from server to all nodes&lt;br /&gt;--ssh-copy-id -i source-filename user@remotehostname(or ip)&lt;br /&gt;--give passphrase of the user here&lt;br /&gt;&lt;br /&gt;Verification: &lt;br /&gt;ssh destination host (or ip)&lt;br /&gt;it should not ask for password&lt;br /&gt;&lt;b&gt;&lt;br /&gt;HDFS Configurations: &lt;/b&gt;&lt;br /&gt;Hadoop configuration is driven by two types of important configuration files: &lt;br /&gt;1. Read-only default configuration - src/core/core-default.xml, src/hdfs/hdfs-default.xml and src/mapred/mapred-default.xml. &lt;br /&gt;2. Site-specific configuration - conf/core-site.xml, conf/hdfs-site.xml and conf/mapred-site.xml. &lt;br /&gt;&lt;br /&gt;In ~/hadoop-0.20.1/conf, we need to make changes to core-site.xml and hdfs-site.xml configuration files for hadoop.&lt;br /&gt;&lt;br /&gt;core-site.xml: We need to mention the ip address or domain name of Name node. &lt;br /&gt;Parameter  Value  Notes &lt;br /&gt;fs.default.name  URI of NameNode.  hdfs://namenode.XYZ.com:9001/ &lt;br /&gt;&lt;br /&gt;conf/hdfs-site.xml &lt;br /&gt;Parameter  Value &lt;br /&gt;dfs.name.dir  /home/hadoop/hdfs/name &lt;br /&gt;dfs.data.dir  /home/hadoop/hdfs/data &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Slaves&lt;/b&gt;&lt;br /&gt;List all slave hostnames or IP addresses in your conf/slaves file, one per line.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Starting Hadoop&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To start a Hadoop cluster we will need to start both the HDFS and MapReduce&lt;br /&gt;&lt;br /&gt;Format a new distributed filesystem:&lt;br /&gt;$ bin/hadoop namenode -format&lt;br /&gt;&lt;br /&gt;Start the HDFS with the following command, run on the designated NameNode:&lt;br /&gt;$ bin/start-dfs.sh&lt;br /&gt;&lt;br /&gt;The bin/start-dfs.sh script also consults the ${HADOOP_CONF_DIR}/slaves file on the NameNode and starts the DataNode daemon on all the listed slaves.&lt;br /&gt;&lt;br /&gt;Stop HDFS with the following command, run on the designated NameNode:&lt;br /&gt;$ bin/stop-dfs.sh&lt;br /&gt;&lt;br /&gt;The bin/stop-dfs.sh script also consults the ${HADOOP_CONF_DIR}/slaves file on the NameNode and stops the DataNode daemon on all the listed slaves.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;HBASE Configuration&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Step 1 # Download HBase distribution from apache mirror. We are using Hbase 0.20.3&lt;br /&gt;Step 2 # Extract the distribution to /home/hadoop/softwares/&lt;br /&gt;Step 3 # Rename the folder name to hbase&lt;br /&gt;Step 4 # Give all the permission (777) to the user to access hbase directory for user hadoop&lt;br /&gt;Step 5 # Set the JAVA_HOME in hbase-site.xml file&lt;br /&gt;&lt;br /&gt;hbase-site.conf&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Parameter  value  Description &lt;/b&gt;&lt;br /&gt;hbase.rootdir  hdfs://hbaseMaster.XYZ.com:9001/hbase  &lt;br /&gt;hbase.master  hbaseMaster. XYZ.com  &lt;br /&gt;hbase.cluster.distributed *  true  The mode cluster will be in.true : fully distributed with&lt;br /&gt;unmanaged Zookeeper when false : standalone or pseudo distributed with managed zookeeper &lt;br /&gt;hbase.zookeeper.quorum *  zk1.XYZ.com,zk2.XYZ.com,xk3.XYZ.com  Comma separated list of servers in the ZooKeeper Quorum.&lt;br /&gt;This is the list of servers which we will start/stop ZooKeeper on. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 6 # either put hdfs-site.xml in hbase path or copy hdfs-site.xml from hadoop installation directory to hbase/conf directory&lt;br /&gt;&lt;br /&gt;&lt;b&gt;hdfs-site.conf &lt;/b&gt;&lt;br /&gt;Parameter  Value  Description &lt;br /&gt;dfs.data.dir  /home/hadoop/hdfs/data  &lt;br /&gt;dfs.name.dir  /home/hadoop/hdfs/name  &lt;br /&gt;dfs.namenode.logging.level  all  The logging level for dfs namenode. Other values are "dir"(trac&lt;br /&gt;e namespace mutations), "block"(trace block under/over replications and block&lt;br /&gt;creations/deletions), or "all" &lt;br /&gt;dfs.datanode.socket.write.timeout  0  &lt;br /&gt;dfs.datanode.max.xcievers  2048  &lt;br /&gt;dfs.datanode.handler.count  10  &lt;br /&gt;&lt;br /&gt;step 7 # Set the regionServers list on regionservers file in hbase/conf&lt;br /&gt;RS1.d2hs.com&lt;br /&gt;RS2.d2hs.com&lt;br /&gt;RS3.d2hs.com&lt;br /&gt;&lt;br /&gt;step 8 #Give the permissions to hadoop user for hbase directory and hadoop directory (CHMOD 755)&lt;br /&gt;step 9 # edit ~/.bashrc file and append ulimit -c 2048 to the end of the file being root user&lt;br /&gt;step 10 # edit /etc/security/limits.conf to include the following two lines&lt;br /&gt;hadoop     soft     nofile     32768&lt;br /&gt;hadoop     hard    nofile     32768&lt;br /&gt;&lt;br /&gt;step 11 # start the hdfs nameNode on the namenode master &lt;br /&gt;bin/start-dfs.sh&lt;br /&gt;&lt;br /&gt;step 12# start the HBase system from the hbase directory&lt;br /&gt;bin/hbase-start-hbase.sh&lt;br /&gt;Step #13 start hbase shell&lt;br /&gt;bin/hbase shell&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Hadoop commands&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To view the details of HM directory&lt;br /&gt;&lt;br /&gt;bin/hadoop dfs –ls /user/local/input/HM/&lt;br /&gt;bin/hadoop dfs –cat /user/local/input/HM/files.txt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The right number of reduces seems to be 0.95 or 1.75 multiplied by (&lt;no. of nodes&gt; * mapred.tasktracker.reduce.tasks.maximum) &lt;a href="http://www.google.com.np/url?sa=t&amp;rct=j&amp;q=right%2Bnumber%2Bof%2Breduces%2Bseems%2Bto%2Bbe%2B0.95&amp;source=web&amp;cd=3&amp;ved=0CCgQFjAC&amp;url=http%3A%2F%2Fhadoop.apache.org%2Fcommon%2Fdocs%2Fr0.20.2%2Fmapred_tutorial.html&amp;ei=gZOnTsrYHcfnrAfZwq30DQ&amp;usg=AFQjCNG-8ZEa76ki8Jv1jcnBpI3ZnaBKTg"&gt;see apache mapreduce&lt;/a&gt;&lt;br /&gt;The right level of parallelism for maps seems to be around 10-100 maps per-node&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Setting replication factor for a directory in HDFS&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;hadoop dfs -setrep -w 3 -R /user/hadoop/dir1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;see &lt;a href="http://www.google.com.np/url?sa=t&amp;rct=j&amp;q=hadoop%2Bdistributed%2Bcache%2Btutorial&amp;source=web&amp;cd=10&amp;ved=0CGoQFjAJ&amp;url=http%3A%2F%2Fbishalacharya.blogspot.com%2F2011%2F09%2Fusing-distributed-cache-in-hadoop.html&amp;ei=wZOnTtIPyKysB4LcxLkN&amp;usg=AFQjCNF-A9nMYPXeKwENR1m65NBttNC2Lg"&gt;hadoop distributedCache&lt;/a&gt; &lt;b&gt;for tutorial on Hadoop's Distributed Cache&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-8858878338586046481?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/8858878338586046481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=8858878338586046481' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/8858878338586046481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/8858878338586046481'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/10/hadoop-hdfs-and-hbase-configuration.html' title='Hadoop HDFS and HBase Configuration'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-7301202848175953016</id><published>2011-10-22T00:41:00.000-07:00</published><updated>2011-10-22T03:39:17.124-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='एक रात्री कालिमाटीमा'/><title type='text'>२०६८ कार्तिक ! एक रात्री कालिमाटीमा</title><content type='html'>&lt;div align="justify"&gt;अतितका तिता मिठा अनुभवहरु आज मेरो मानासपलटमा सागरको छालसरी कलाबाजी खेलिरहेको छ , सायद त्यसैले होला हातमा कलम समाई मध्यरातको यस चकमन्न समयमा मनका खुल्दुलिहरु बिसर्जीत गर्न यी औलाहरु तम्सिरहेका छन् । २६ बर्ष बितेको पटक्कै भान भएन यद्यपी बितेका समयको एक छ्यण पनि मलाई यसरि कागज कोर्न मन लागेको चेतना थिएन । आज एक्काशी लेख्न मन किन आतुर भईरहेको छ ? सायद बिगतको बेदनाले होकी आउदो भविस्यको उराठलाग्दो त्राशले कागजमै दुइ शब्द लेखेर भए पनि मनको बिरहलाई पोख्न आतुर छ यो मन । &lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-wOHKHyc1Oi4/TqKYzgUyAQI/AAAAAAAAAYs/84Y7A50mgTU/s1600/pen.jpg" imageanchor="1" style="clear:left; float:left;margin-right:1em; margin-bottom:1em"&gt;&lt;img border="0" height="156" width="300" src="http://1.bp.blogspot.com/-wOHKHyc1Oi4/TqKYzgUyAQI/AAAAAAAAAYs/84Y7A50mgTU/s400/pen.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="justify"&gt;हेर्दा हेर्दै समयले फास्ट फार्वर्ड गरेको छ. गत महिना आइरन बिग्रेर सुरु भएको यो सिलसिला मेरो आइपड हुदै अहिले  ल्याप्तोप सम्म पुगेको छ । समय व्यतित गर्न निकै गार्हो हुदो रहेछ, त्यहिपनि मनमा जे आउँछ त्यहि लेखेर समय व्यतित गरिरहेको छु । अहिले कागज र कलमले वर्ड र कम्प्युटरलाई बिर्सायेका छन् छ्यनिक भरको लागि भएपनि ।  मन ननै अध्यात्ममा लाग्छ ननै भौतिकवादतिर । मन बैराग्गियेर हावामा कसिंगर उडेझैँ अज्ञात गन्तव्यतिर रुमल्लियिरहेको छ । अब बल्ल बुझे जस्तो लाग्छ किन मन र मस्तिकछलाई देउतासंग तुलना गरिएको । निराश, निकम्मा, अकर्मन्य, अनाकर्सक यो सुस्तरी सास फेरिरहेको जीवन खोक्रो दम्ब देखाएर भएपनि आफ्नो गन्तब्य खोजि रहेको छ, भुलीरहेको छ, मानौ प्रसन्न मुद्रामा स्वयम् नारायण आउनेछन् अगाडी अनि दिने छन् मुफ्तमा तिन बरदान । हुनत नारायण पनि पावर भएकै देउता हुन् । त्रेता युगमा राम बनेर रावणलाई तह लगाए भने द्वापर युगमा कृष्ण बनेर कंशलाइ तर कलियुगमा यिनलाई हम्मे हम्मे परे जस्तो छ त्यसैले नेपालमा हाल दुइ वटा अवतार लिएका छन् । एकातिर शितल निवासमा उनै  राम, उतातिर सिंघदर्बारमा त झन् बाबुराम र ब्याकअपमा पशुपतिनाथ । &lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;मनको खुल्दुली पानामा उतार्न ल्याप्तोपले त साथ् दिएननै भाग्यले पनि साथ नदेला जस्तो छ. एक पलमा मेरो कोठाको उज्यालो अध्यारोमा परिणत हुन पुगेको छ. निकै बेरपछि आभाष भयो यो त मेरो दिनचर्याको एक अभिन्न अंग बन्न पुगेको लोडसेदिंग पो रहेछ. कोठामा उज्ज्यालो हरायेजस्तै छ्यनिक रुपमा मेरो सुद्धिपनि हराएछ. अध्यारोमा छामछाम छुम छुम गर्दै मैनबत्ती खोज्न लागे, बल्लतल्ल भेटेपछि फेरी कागजमा देशको सरकारप्रतिको घृणा पोख्न पन लाग्यो &lt;a href="http://bishalacharya.blogspot.com/2011/10/poisoned-ethics-and-tainted.html"&gt;see poisoned ethics&lt;/a&gt; तर आवेशलाई थामेर आफ्नै स्वप्नासंसारतिर लागे । सडकका कुकुरहरुको भुकाईको निरन्तर आवाज आईरहेको थियो मनमा लाग्यो यी कुकुरहरु मध्येरातको समयमा पनि हाम्रो टोलको सुरक्छ्याको निमित्त तम्तयार छन् । आफ्नो कर्तब्य प्रति कति धेरै निष्ठा यिनीहरुको । सायद हाम्रो देशको नेताहरु पनि कुकुर भईदिएको भए देश कति सुरक्छित हुन्थ्यो होला । फेरी प्रसङ्ग आफ्नै समस्यातिर मोडिएको छ । ग्यास सकिएको पनि दुइ हफ्ता भईसक्यो, कालिमाटीको फोहोर रेस्तुरेन्टमा दिगमिग मान्दै खाएको पनि हफ्तौ भईसक्यो,जहिले सोधेपनि पसलेले ग्यास छैन मात्र भन्छ । कोठाको बाल्टिन रित्तै छन्,आज रातीत पानि औछा कि र भरुम । कुनातिर मिनेरल वाटरका खाली बोतलहरु प्रसन्न मुद्रामा मलाई चिढयाईरहेका छन् ,मैला लुगाहरु काठमाडौँको फोहोरको राससरि थुप्रिएका छन् । यो हफ्ता त जसरिपनि दिदीको घरमा सबै लुगाहरु धुन लैजानेछु. त्यतिकैमा मोबाइलको रिंगको आवाज गुन्जियो । घरबाट फोन आएको रैछ । फोन उठाए उताबाट हेलो भनेको सुनियो त्यसपछि केहि आवाज नसुनिएको जस्तो नबुझिने आवाज आयो, कोठामा केहि बेर हेलो हेलो सब्दको आवाज सुनिरहयो मानौ म ठुला ठुला स्वरमा अंग्रेजी सब्दहरु उच्चारण गरिरहेको थिए । त्यस पछी फोन कट्यो । सरकारी नेटवर्कलाइ सराप्न मन लग्यो फेरीपनि मन संभाले आफैभित्र गुम्सायिराखे । एक्काशी कोठाको बिजुली आयो ।  सियफलको प्रकाश संगै मेरो मस्तिक्छ पनि एकोहोरो भएको भाव भयो. दायाँ बायाँ यत्रतत्र सर्वत्र समस्याको भुमरीमा छु जस्तो लाग्यो. कताबाट सुरु गरुम समस्या सुल्झ्याउँन अत्यन्तै गार्हो होला जस्तो छ बरु एकछिन को लागि भए पनि मस्तिक्छ खालि बनाउछु, सुत्छु बरु फेरी मध्येरातमा नेपाल खानेपानीको बोलावा आउँछ, एकछिनको लागि भए पनि सुकुन गन्छु, कलम बिसाँउछु। &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-7301202848175953016?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/7301202848175953016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=7301202848175953016' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/7301202848175953016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/7301202848175953016'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/10/blog-post.html' title='२०६८ कार्तिक ! एक रात्री कालिमाटीमा'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-wOHKHyc1Oi4/TqKYzgUyAQI/AAAAAAAAAYs/84Y7A50mgTU/s72-c/pen.jpg' height='72' width='72'/><thr:total>1</thr:total><georss:featurename>Kathmandu 44600, Nepal</georss:featurename><georss:point>27.702871 85.31824400000005</georss:point><georss:box>-9.080261000000004 25.55261900000005 64.486003 145.08386900000005</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-3380693332907266515</id><published>2011-10-16T01:28:00.000-07:00</published><updated>2012-02-07T14:00:45.358-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='I have done and I have not'/><title type='text'>What I have done and what I have not !</title><content type='html'>&lt;div align="justify"&gt;I dont take the credit for publishing this post. I would have to admit that I copied the concept for this post from &lt;a href="http://sadhanasharma.blogspot.com/"&gt;Sadhana&lt;/a&gt; . Its the attraction in the theme which I could not resist.&lt;br /&gt;&lt;br /&gt;It is really difficult admitting something which might ruin your image and I am not quite sure I would be able to do it now but I promise to do it in future when I could gather enough guts within myself.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What I have done so far?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Flown in a Jet &lt;/b&gt; : Yes, to be exact 5 times   [Update] Now as of Feb 7 2012 It is 9 times.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Adventure sports :&lt;/b&gt; Did Bungy jump from 160m cliff. Went to pokhara for Paragliding from sarangkot hill. My plan was canceled 15 minutes prior to scheduled time for paragliding due to sinister rain. Sky diving is on my list as well but the bottomline for sky diving is that I have to go abroad.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3.Been to continents ?&lt;/b&gt; Only Asia I regret. Europe and America is on my list. OK, no bias with continents I add Africa, Australia and Antarctica too on the list. Fingers crossed for my wish. [Update] 2012 January I stepped on Europe in Frankfort and have been living in North America. Now its the turn for Australia, Africa.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;6.Been to different countries ?&lt;/b&gt; Nepal, India, Japan just three until now. There are a lot of countries in my cards of visit. I would love to go to Iceland, Sicily Italy, Paris, Galapagos, Vienna and USA. More to add to this list. Its 4 now. USA added to the list in Jan 11 2012&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;7.Swimming :&lt;/b&gt; Been to pool but I cannot swim. 5 feet depth is the ultimate place I would dare to be.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;8.Eaten raw meat :&lt;/b&gt; Ya, From Raw fish, Raw squid, Raw flesh of whale, Raw octopus, Raw sea-urchin, Raw crab and finally now don't blame me, I was forced this time : Raw flesh of horse.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;9.Had crush on a girl :&lt;/b&gt; hahaha, Yes many times I am not an objection :) But never had a girlfriend. Now dont ask for their names. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;10. Lived in freezing cold :&lt;/b&gt; Yes, In Hokkaido, Japan I lived in a city called Wakkanai near Russia, The northernmost city of Japan where temperature might fall to -30 degree celcius in winter.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;11.Seen an Ocean :&lt;/b&gt; Yes pacific Ocean in Japan.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;12.Traveled on roof of a bus :&lt;/b&gt; Yes, while returning back from Phulchoki hill after watching the snow probably when I was in 3rd year of my B.E. The bus was packed and we did not have any option but rather to travel on top of the bus. Dont regret it :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;13.Touched Snow :&lt;/b&gt; Snow was part of my life when I was studying in northern japan. 6 months of snowfall. It was enjoying initially but later on I was fed up throwing snow from my apartment. My door would be jammed by piles of overnight snowfall.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;14.Taken alcoholic drinks :&lt;/b&gt; Yes :) The first time I tasted beer was when I was in 3rd year B.E. The initial taste was horrible. It was just a sip but enough for me to make a negative image of it. I learned to drink beer in Japan. Now I take it occasionally. I don't drink hard drinks though. Whiskey, Gin, Vodka, Scotch is still a taboo for me. Just beer and that too with friends only.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;15. Seen Code monkeys :&lt;/b&gt; Yes, a lot of them. I can name them too :D I have also seen the remix version called Gorilla Monkey. My project mates know this :P&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What I have not done so far?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Never Been to America :&lt;/b&gt; It would be a dream come true If i get a chance to go. Want to get an American degree. Its more than just an academic degree. Its a passion, passion to see the world, to be amongst the best in the world would be a matter of pride and honor to any person in this world. [Update] I am in America now :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Never had any girlfriend :&lt;/b&gt; Nowadays its become a fashion to have at least one girlfriend. Not having a girlfriend is seen as an inability. I dont have one until now. Fingers crossed :D&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. Never been to a disco :&lt;/b&gt; Yet to visit a disco. The reason why i havent been to a discotheque might be because I cant dance. Its not that I dont like dance but I cant do it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. Never seen a big mountain close : &lt;/b&gt; Its a shame really. I am born in Nepal but am yet to witness the glory of our wonderful mountains. I truly wish to go to Annapurna circuit, Gosaikunda, manang, Mustang to witness lovely mountains which have been in my dreams for decades now.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5. Never danced :&lt;/b&gt; The reason is simple as that : I cannot dance. I love doing new stuffs, lets see If I could do it one day.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;6. Never got the experience of Roller Coaster :&lt;/b&gt; No Roller Coaster in Nepal. [Update] Am thinking of going to a roller coaster in Vegas.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;7. Never smoked :&lt;/b&gt; May be once. Just to know what is the magic in it that so many people take it. It was nothing special&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And the list for have and have not goes on. The have list will certainly increase in future.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-3380693332907266515?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/3380693332907266515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=3380693332907266515' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/3380693332907266515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/3380693332907266515'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/10/i-have-done-and-i-have-not.html' title='What I have done and what I have not !'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>3</thr:total><georss:featurename>Kathmandu 44600, Nepal</georss:featurename><georss:point>27.702871 85.31824400000005</georss:point><georss:box>-9.080261000000004 25.55261900000005 64.486003 145.08386900000005</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-5302270638300132834</id><published>2011-10-14T03:06:00.000-07:00</published><updated>2011-10-14T03:35:24.297-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Empty linux recycle bin'/><category scheme='http://www.blogger.com/atom/ns#' term='could only be replicated to 0 nodes'/><category scheme='http://www.blogger.com/atom/ns#' term='instead of 1'/><title type='text'>Could only be replicated to 0 nodes, instead of 1  Hadoop 0.20.2</title><content type='html'>&lt;b&gt;could only be replicated to 0 nodes, instead of 1 &lt;/b&gt;is a common problem we encounter in hadoop time and often. &lt;br /&gt;&lt;br /&gt;I faced this problem in my single node hadoop cluster. When I surfed in the internet for possible answer, I was taken to hadoop's website HowToSetupYourDevelopmentEnvironment. The hadoop wiki was making suggestions to erase all HDFS data and reformat it. The suggestion was far from being pragmatic that we have to reformat our cluster for any potential problem in HDFS. Imagine we have a production cluster and we have to reformat it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Steps to Fix :&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Issue df command to view the space available in each Linux mount we have and more specifically the mount hadoop is in.&lt;br /&gt;&lt;br /&gt;[root@bishal hadoop-0.20.2]# df -kh&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Filesystem            Size  Used Avail Use%  Mounted on&lt;br /&gt;/dev/hdg3             143G  135G  0M   100%  /&lt;br /&gt;/dev/hdg1              99M   11M  83M  12%   /boot&lt;br /&gt;none                  2.0G     0  2.0G 0%    /dev/shm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Upon issuing this comand I found that my filesystem had no disk space available. The inability of hadoop write in HDFS was due to insufficient disk space. Freed some disk space and the problem was solved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Issue Linux command to empty Recycle bin&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;[root@bishal hadoop-0.20.2]# rm -rf ~/.Trash/*rm&lt;br /&gt;&lt;br /&gt;Now recheck the disk space. Delete some unnecessary files in your FileSystem if upon emptying Recycle bin not enough space is freed. Enough disk space should be freed to let hadoop write files in HDFS. If the block size for hadoop is 128MB, make sure we have fread at least 128MB of disk space.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now run your MapReduce job. The problem with should be fixed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-5302270638300132834?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/5302270638300132834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=5302270638300132834' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5302270638300132834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5302270638300132834'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/10/could-only-be-replicated-to-0-nodes.html' title='Could only be replicated to 0 nodes, instead of 1  Hadoop 0.20.2'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total><georss:featurename>Kathmandu 44600, Nepal</georss:featurename><georss:point>27.702871 85.31824400000005</georss:point><georss:box>-9.080261000000004 25.55261900000005 64.486003 145.08386900000005</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-4675214162413944366</id><published>2011-10-12T08:06:00.000-07:00</published><updated>2011-10-22T03:27:43.066-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Corruption in Nepal'/><category scheme='http://www.blogger.com/atom/ns#' term='Politicians in Nepal'/><category scheme='http://www.blogger.com/atom/ns#' term='Corrupt politician in Nepal'/><title type='text'>poisoned ethics and tainted professionalism : Politicians of Nepal</title><content type='html'>&lt;div align="justify"&gt;Its the day when it all started. The situation around me was provocative to some people while for others it was just another opportunity to remain in and around power. The struggle has begun, It is seen as a class struggle between those who were always at power and occupying the resources for long time and those who were always lagging behind in all aspects be it social, political or economical. There is always this difference which causes disturbance. In nature, when there is this difference in proportion at the rate of consuming and the rate of producing then there is natural disturbance and someone has to perish in order to maintain this order, in this case it might be the producer or the consumer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Nepal is going through this phase, the suppression and dominance of certain clan and class has reached saturation level. Moreover, the increase in political awareness amongst the masses and ever contracting information gap has fueled revolt. This time it seems like the country is in a stage of fragmentation, people have started fighting amongst each other, everyone is representing some class and sector and they have almost forgot they are Nepalis first before being from any class and sector. Although its a natural process which has occurred in almost all part of the world and its just recent that Nepal is facing this problem.Certainly there has to be an end to this destruction. Someone has to win, either the revolutionaries and patriots or the corrupts who in the name of democracy and political freedom has sucked the blood from the fellow countrymen since ages. Its the last chance for the corrupts, to win this battle and will try to give whatever power they have to win.Now this has become the battle between the poor the suppressed and the suppressors. The UML and Congress are seen as the ones carrying old traditional thoughts and are reluctant to change whereas the Maoists who are portrayed as destructor's, the violators of law by them have brought radical political thoughts and ideas.Is it just that the Maoists want to change the economic and political system of Nepal or they have other motives as well? Although its a daunting task for them its not an impossible task. But, what we have seen of Maoists up until now, Its easier for the commoners to see them as no different than Nepali Congress or CPN UML. This time they have the support of the mass next time who knows. Nevertheless, we cannot undermine the class which do wants change and wants the state to recognize them after decades of oppression. There are people like Vijay Gachhadar, K.P Oli, Bidya Bhandari, Madhab Nepal, Bhim Rawal, Sushil koirala, Ramchandra Paudel, KhumBahadur Khadka, Govinda Raj Joshi, Bharat Mohan Adhikari,j.p Gupta, Rajendra mahato, Sarad singh Bhandari, Govinda Raj Joshi, Mahanta Thakur, Hridayesh Tripathi and most of the politicians who have been involved in crime and corruption of some sort in the past.Can we expect peace and progress with these politicians still intact as rulers ? But the fate of the country is such that these parasites keep on germinating and do not perish no matter how fragile is the condition of the nation. The country is entangled at the moment with these parasites, and they will leave no stone unturned to suck blood from the people. Its the time when people have to take power in their hands and should penalize the felons hiding in the curtain of democracy, but the big question lies here how ? people dont want yet another war. The justice has to attained. The verdict should be made but in peaceful democratic manner.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Certainly its not an easy task to eliminate these looters, but one day or another the day of justice will come and people wont forgive them then. They have to suffer each and every bit of pain they have given to the people. The history of mankind is the evidence that bad never wins no matter how much it tries to hide in the skin of truth and humanity. Madhab Nepal as such has created history in the history of Nepal as being the most corrupt and morally degraded figure. He seemed to be worst than the panches and mandales in the kings regime, Although the panches and mandales were tyrants and oppressors but they would never compromise their dignity in front of foreigners. But, Madhab Nepal seemed to be in a great mood in pleasing whosoever involved in making him the PM.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Apparently when I had completed my plus 2 and came to Kathmandu along with many other students throughout the country with dreams of being doctors and engineers. It was then when although having given heart out many of the students couldn't be doctors and get scholarships simply because along with us giving exam was academically weaker but being the daughter of Madhab Kumar Nepal who pleaded in front of India for giving scholarships to her daughter taking the right of many other brilliant students. He has been continually doing similar act of ethical and moral corruption since then be it the case when his under-qualified bureaucrat was sent to Hongkong who has been under lime light of corruption and complain since then. He has been successful in taking his wife to a senior post of Nepal Bank Limited and also was engaged in bringing his brother to singha durbar in his reign as PM of Nepal. His brother in law being an officer in CIAA is an evidence of him being a king of nepotism. When I was in Japan, He was on a trip to it as well. There many of the UML cadres left the party seeing his greediness. He had been to a shopping Mall where he had been continually pressurizing the cadres to buy him whichever materials he saw. Seeing a greedy person, who was then the chief of UML many people left the party. The country was yet to forget the betrayed Mahakali Treaty when it had to face the same person again. People of country has to bear in their mind that It is Madhab Nepal who said that he is not in favor of Constituent assembly when he was PM. It is not a big surprise to us because we had never sent him to make the constitution. The people now are capable of understanding who are real leaders and who are the masquerades. People from two areas slapped him in election but what a fate of the country? It still had to bear his moral corruption for more than an year. Relieved at last now when the PM is Baburam Bhattarai. During his tenure, People felt as if they were living in a country where there were no ethics, where there were no morality.Be it the case with his minister Karima Begam slapping a CDO or another minister Chanda Chaudhary breaking glass of the public vehicle. The worst part of these incidents were that Madhab Nepal never showed a sign of shame and repugnance. He was bold as ever. Evidently with such incidents, Nepal was declared most corrupt country in Asia. Adding insult to injury, he removed Ansari, state minister simply because he had won in CA elections, making the cabinet a mockery to democracy. Democracy is a system where elected people are to rule a nation. But, here the case was different. Madhab Nepal made a history again, in making a cabinet a nest of loosers in CA election. Never in the history of any country such a drama had been seen, when people were ruled by losers. Bidya Bahndari, shankar pokhrel, Madhab Nepal, Sujata Koirala all were losers in the election.. But to the good fate of them and the bad fate of the country, these people ruled out by the general public came to power once again. Simply disgusting. With communist in tag behind him, It was he who removed the pictures of Marx and Lenin when American ambassador Milinosky was on a visit to Balkhu. His period as a PM marks as the most unethical and corrupt In the history of our country.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Monetary corruption does not affects much as does the moral corruption. The morally corrupt is an extremist who is similar to an idol, it has no feeling, no love, no affection and it does not feels what is happening in and around him. I wont say that people like Madhab Nepal are most dangerous to this nation but I would certainly say that poisoned ethics and tainted professionalism as his is the most dangerous thing prevalent in political leaders in Nepal, because the disease they are carrying has no cure. And it has great probability of transferring to people around him.Its the fate of our nation we keep on producing people like him, our society should bear the responsibility in not being able to teach ethics to our leaders. The society should have been sterilized before it could have given birth to him. As his height, and mustache his heart is narrow too, In fact the narrowest in our country. Cursed by a widow, the country has to suffer its fate, and time and again people like him will be born in this land.&lt;br /&gt;&lt;br /&gt;I might seem pretty harsh towards a person when there are so many like him in Nepal. The reason why I chose Madhab Kumar Nepal for the topic was simply because he suits best for the topic. Although there are many other Madhab Nepal alike politicians masquerading in the name of democracy, My intention here is to let fellow Nepali know of characters that resembles Madhab Nepal. The article represents my personal view and I might have to bear different tags when viewers read it. Please feel free to express your own opinion about politicians in Nepal.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-4675214162413944366?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/4675214162413944366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=4675214162413944366' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4675214162413944366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4675214162413944366'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/10/poisoned-ethics-and-tainted.html' title='poisoned ethics and tainted professionalism : Politicians of Nepal'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total><georss:featurename>Kathmandu 44600, Nepal</georss:featurename><georss:point>27.702871 85.31824400000005</georss:point><georss:box>-9.080261000000004 25.55261900000005 64.486003 145.08386900000005</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-2905480774233721968</id><published>2011-10-12T05:17:00.000-07:00</published><updated>2011-10-14T08:01:25.893-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='English to Nepali'/><category scheme='http://www.blogger.com/atom/ns#' term='Type in Nepali'/><category scheme='http://www.blogger.com/atom/ns#' term='Nepali unicode'/><category scheme='http://www.blogger.com/atom/ns#' term='अङ्रेजी बाट नेपाली'/><category scheme='http://www.blogger.com/atom/ns#' term='Unicode Nepali'/><title type='text'>Nepali Unicode Converter,Type in Nepali</title><content type='html'>Nepali Unicode Converter.Type in Nepali &lt;br /&gt;&lt;br /&gt;Type the words in Roman characters below to get the Unicode Nepali equivalent of the same. The given application is a simple Nepali Unicode converter which returns Nepali Unicode characters for a given set of Roman characters. I will follow up with detailed usage instructions to type properly in Nepali hereafter.&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript" src="https://www.google.com/jsapi?key=ABQIAAAA9dplMVb-FH3zgHbwWPGOaRRfIGzsLabfqHhuJcA0iHxXNRxLfxTrJMaji-Qt6aivqKBApDXaKQ3PzQ"&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;      google.load("elements", "1", {            packages: "transliteration"          });      function onLoad() {        var options = {            sourceLanguage:                google.elements.transliteration.LanguageCode.ENGLISH,            destinationLanguage:                [google.elements.transliteration.LanguageCode.NEPALI],            shortcutKey: 'ctrl+g',            transliterationEnabled: true        };        // Create an instance on TransliterationControl with the required        // options.        var control =            new google.elements.transliteration.TransliterationControl(options);        // Enable transliteration in the editable DIV with id        // 'transliterateDiv'.        control.makeTransliteratable(['transliterateDiv']);      }      google.setOnLoadCallback(onLoad);    &lt;/script&gt;&lt;br /&gt;नेपाली मा टाईप गर्नुश.Convert from Roman to Nepali(Press Ctrl+g to toggle between English and Nepali)&lt;br /&gt;&lt;br /&gt;&lt;div id="transliterateDiv" contenteditable="true" style="width:600px;height:200px;border:1px solid;overflow-y:scroll"&gt;&lt;/div&gt;&lt;/body&gt;&lt;br /&gt;&lt;/html&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-2905480774233721968?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/2905480774233721968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=2905480774233721968' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/2905480774233721968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/2905480774233721968'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/10/type-in-nepali-english-to-nepali.html' title='Nepali Unicode Converter,Type in Nepali'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>1</thr:total><georss:featurename>Kathmandu 44600, Nepal</georss:featurename><georss:point>27.702871 85.31824400000005</georss:point><georss:box>-9.080261000000004 25.55261900000005 64.486003 145.08386900000005</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-5670565082757284914</id><published>2011-09-29T23:35:00.000-07:00</published><updated>2011-10-11T08:50:48.719-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Check whether  file is in copy state'/><category scheme='http://www.blogger.com/atom/ns#' term='ready state'/><category scheme='http://www.blogger.com/atom/ns#' term='Check file copying java'/><category scheme='http://www.blogger.com/atom/ns#' term='Check progress of file copy java'/><title type='text'>Java class to test whether a file is in copying state or ready state</title><content type='html'>The following Java utility class could be used to test whether a file is in Copying state or it has been copied to file system. The class uses java scanner class. An infinite loop is used and upon each check the thread goes to sleep for 10 seconds. When the copying is completed the loop breaks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;/**&lt;br /&gt; * &lt;br /&gt; */&lt;br /&gt;package com.bishal.Test;&lt;br /&gt;&lt;br /&gt;import java.io.File;&lt;br /&gt;import java.io.FileNotFoundException;&lt;br /&gt;import java.util.Scanner;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * @author bishal acharya&lt;br /&gt; * This class is used to test whether a file is in copy state&lt;br /&gt; *         or Ready state.&lt;br /&gt; */&lt;br /&gt;public class CopyProgress {&lt;br /&gt;&lt;br /&gt;    private boolean isFileReady(String filePath) {&lt;br /&gt;        File file = new File(filePath);&lt;br /&gt;&lt;br /&gt;        Scanner scanner;&lt;br /&gt;        boolean isCopying = true;&lt;br /&gt;        while (true) {&lt;br /&gt;            try {&lt;br /&gt;                scanner = new Scanner(file);&lt;br /&gt;                isCopying = false;&lt;br /&gt;            } catch (FileNotFoundException e) {&lt;br /&gt;                System.out.println(&amp;quot;File not found or is in copy State. &amp;quot;);&lt;br /&gt;                sleepThread();&lt;br /&gt;            }&lt;br /&gt;            if (isCopying == false) {&lt;br /&gt;                break;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        System.out.println(&amp;quot;copy completed ::&amp;quot;);&lt;br /&gt;        return isCopying;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    /**&lt;br /&gt;     * sleep for 10 seconds&lt;br /&gt;     */&lt;br /&gt;    private static void sleepThread() {&lt;br /&gt;        System.out.println(&amp;quot;sleeping for 10 seconds&amp;quot;);&lt;br /&gt;        try {&lt;br /&gt;            Thread.sleep(10000);&lt;br /&gt;        } catch (InterruptedException e) {&lt;br /&gt;            e.printStackTrace();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public static void main(String args[]) {&lt;br /&gt;        CopyProgress cp = new CopyProgress();&lt;br /&gt;        cp.isFileReady(&amp;quot;C:\\Documents and Settings\\bacharya\\My Documents\\videos\\Se7en.avi&amp;quot;);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Check Output : The output for the project would be&lt;br /&gt;&lt;br /&gt;File is in copy State. &lt;br /&gt;sleeping for 10 seconds&lt;br /&gt;File is in copy State. &lt;br /&gt;sleeping for 10 seconds&lt;br /&gt;File is in copy State. &lt;br /&gt;sleeping for 10 seconds&lt;br /&gt;File is in copy State. &lt;br /&gt;sleeping for 10 seconds&lt;br /&gt;File is in copy State. &lt;br /&gt;sleeping for 10 seconds&lt;br /&gt;File is in copy State. &lt;br /&gt;sleeping for 10 seconds&lt;br /&gt;File is in copy State. &lt;br /&gt;sleeping for 10 seconds&lt;br /&gt;File is in copy State. &lt;br /&gt;sleeping for 10 seconds&lt;br /&gt;File is in copy State. &lt;br /&gt;sleeping for 10 seconds&lt;br /&gt;copy completed ::&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-5670565082757284914?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/5670565082757284914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=5670565082757284914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5670565082757284914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5670565082757284914'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/09/java-class-to-test-whether-file-is-copy.html' title='Java class to test whether a file is in copying state or ready state'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-8251256621575756114</id><published>2011-09-27T05:25:00.000-07:00</published><updated>2011-10-22T03:28:24.058-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Scale Up vs Scale out vs Scale in systems'/><category scheme='http://www.blogger.com/atom/ns#' term='scalability types'/><title type='text'>Scale Up vs Scale out vs Scale in</title><content type='html'>&lt;div align="justify"&gt;&lt;b&gt;Scalability Types&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Scale Up vs Scale out vs Scale in&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The general understanding of scalability is that If a system does not denigrates in performance when load or data size on the system increases then it is called scalable system. This definition is quite acceptable. But, what if our business requirement change? Will the system be still of the same scale? This question might trigger a need to define scalability in another way.&lt;br /&gt;If an application or system is able to cope up well not only when many users turn up or data size increases in the system but also when the business requirements changes then the system is called scalable system. Now this definition to scalability not only addresses the change in load to the system but also addresses the business requirements change. There might be other dimensions to consider like administrative measures, functional measures and come up with a truly scalable system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Scale Up systems:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Scale up systems is also known as vertically scalable systems. The ability of systems to improve its performance when the resources are scaled vertically is known as scale up systems. The resources could be memory, disk capacity, bandwidth etc. These systems traditionally run on top of single server and could possibly enhance its performance when scaled vertically. Examples of these systems are traditional databases, web servers and traditional applications windows applications. Many of scale up systems are single threaded applications but can be multi Threaded too. The computation is centralized.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Scale In Systems: &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The ability of systems to run multiple threads upon multi core machines is known as scale in systems. For eg.  10 instances of Mysql running on top of 10 core machine is a scale-in system. The computation in these systems is de-centralized within different cores. Most of the scale-in systems are multi-threaded systems with the ability to run on top of several processors. Eg. Of scale in system is multiple instances of databaseserver running on multi-core server.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Scale Out systems:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Scale out system is also known as horizontally scalable systems. Both scale up and scale in systems face several discrepancies when the overall dataset that the system handles is quite large. Processing such a massive scale dataset could really be a daunting task for those systems. Scaling up means going out from few core single machine to several commodity machines. Each node contributes to scaling out for these systems. Addition of additional nodes increases the overall scalability of the system. These systems could be single or multi threaded and the computation is de-centralized. Massive level of parallelism could be leveraged for distributed processing of huge datasets. Google Map Reduce has been the technology buzz as far as scale-out systems are concerned. Products like Hadoop, GreenPlum, Vertica and TeraData are scale out systems with all of them having support for Map-Reduce style of distributed job processing. Hadoop for example could scale out to several thousand commodity machines. The most noticeable things about these architectures is that all of them are shared nothing architectures. In shared nothing architecture every node is independent to any other node in the cluster and can perform its tasks independently. These systems could be single or multi threaded and the computation is always de-centralized.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-8251256621575756114?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/8251256621575756114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=8251256621575756114' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/8251256621575756114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/8251256621575756114'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/09/scale-up-vs-scale-out-vs-scale-in.html' title='Scale Up vs Scale out vs Scale in'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-803940807692998313</id><published>2011-09-25T02:00:00.000-07:00</published><updated>2011-11-20T00:06:38.525-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sarangkot Hiking Nepal'/><category scheme='http://www.blogger.com/atom/ns#' term='River side Resort lunch'/><category scheme='http://www.blogger.com/atom/ns#' term='Verisk IT Hike to Pokhara'/><title type='text'>Hike to SarangKot and RSR 2011 August 12</title><content type='html'>&lt;div align="justify"&gt;This was my first hike coordination and I was feeling a sense of responsibility as well as excitement towards the plan. This hike meant more to me than just go to some place and have fun. I was to make my first maiden hike to sarangkot, Pokhara which was something I had kept in my minds for quite a long time and besides this being my first trip there, it was meant to make me fly. We were about 10 people going and the top at the plan was to glide in a parachute. All fingers were crossed but we were still at the mercy of the weather of pokhara. Gliding in the sky was by far the most exciting aspect of our hike. To view the wonderful valley from the sky was something we would really dream of. But it was going to happen this time. &lt;br /&gt;&lt;br /&gt;The trip started late as expected. The culprit were babinz and Pratik: the last hikers to arrive at D2 premises. We passed our time playing ping-pong and carem. Finally, they arrived. Thanks to them for making our trip, really I appreciate them coming. Better late than never. So, here we are at the premises of our workplace. This is when we managed to take our first snap. Missed other guys. May be Rajani, she took this picture. But nevermind we had officially started our travel with a sense of excitement and expectations of what was about to come.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;First snap at D2 Premises&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-3PahduxFDvg/Tn7hUF-fddI/AAAAAAAAAUk/8J32yjMGFeQ/s1600/SAM_0128.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="225" width="400" src="http://4.bp.blogspot.com/-3PahduxFDvg/Tn7hUF-fddI/AAAAAAAAAUk/8J32yjMGFeQ/s400/SAM_0128.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here we are at Kalimati, Now wait on for a second. We were meant to go to Sarangkot. So why are we at Kalimati ? Does not makes sense. Does it  ? ya, we stopped at kalimati, kathmandu at a restaurent to have our breakfast. Nothing special. Sandwiches, omlete and Tea was what we ate as far as I remember. Because our budget allocated by our office for the hike was limited, we had to make sure that we paid our personal expenses if there were an additional cost above our estimation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;BreakFast at kalimati &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-k8frKhj3G98/Tn7ghb6cfII/AAAAAAAAAUU/ML0ZW6_ooKg/s1600/SAM_7508.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="300" width="400" src="http://2.bp.blogspot.com/-k8frKhj3G98/Tn7ghb6cfII/AAAAAAAAAUU/ML0ZW6_ooKg/s400/SAM_7508.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Its quiz Time. Babins looks happy. Now dont blame me. My grammar is correct its his name which is plural :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Memory card full of songs was there but something different was needed to make the trip even more eventful. So, I had decided the earlier night that I would make some questions and let the guys play a quiz while we were in the VAN. Bikesh dai was selected as the quiz master and things went rather well. All of the hikers got their share of shots on giving a correct answer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-uOEpB2ym3LQ/Tn7g2mE0tVI/AAAAAAAAAUc/YkWhu63IaGU/s1600/SAM_7511.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="300" width="400" src="http://3.bp.blogspot.com/-uOEpB2ym3LQ/Tn7g2mE0tVI/AAAAAAAAAUc/YkWhu63IaGU/s400/SAM_7511.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Lunch @ River side Resort (me, ashish and Shamesh dai) shamesh dai looks happy&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Our plan made a twist when we suddenly decided to take a lunch at River side resort in Kurintar. I had not been to RSR before so was at mercy of other guys who had gone there earlier to decide whether to have a lunch there or somewhere else.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-pEtlTM_BsaY/Tn7h0uVEVXI/AAAAAAAAAUs/zSkWOjMwhvk/s1600/SAM_0161.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="225" width="400" src="http://3.bp.blogspot.com/-pEtlTM_BsaY/Tn7h0uVEVXI/AAAAAAAAAUs/zSkWOjMwhvk/s400/SAM_0161.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Babins wants more than just a lunch. may be swimming :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-H-f8JkdQnmY/Tn7iDgzwJvI/AAAAAAAAAU0/SjjoD2yKMxY/s1600/SAM_0165.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="225" width="400" src="http://3.bp.blogspot.com/-H-f8JkdQnmY/Tn7iDgzwJvI/AAAAAAAAAU0/SjjoD2yKMxY/s400/SAM_0165.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;For those people who haven't been to RSR : guess what is this ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-h_xvf_jDQ_g/Tn7iQ1QfRlI/AAAAAAAAAU8/ru4im0YeVDg/s1600/SAM_0166.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="225" width="400" src="http://3.bp.blogspot.com/-h_xvf_jDQ_g/Tn7iQ1QfRlI/AAAAAAAAAU8/ru4im0YeVDg/s400/SAM_0166.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Swimming pool water was awesomely cool&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Now this was one of the best part of our travel. Swimming at RSR. The water was extremely cool. Even the guys like me and Ashish who could not swim decided to jump into the pool to join the fun. It was worth of an experience. Some guys even jumped in the jumper including me at the same location. That was fun too.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-cmwO6zRMKm0/Tn7ie98jpqI/AAAAAAAAAVE/Mr8a0pBNv7U/s1600/SAM_0185.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="225" width="400" src="http://3.bp.blogspot.com/-cmwO6zRMKm0/Tn7ie98jpqI/AAAAAAAAAVE/Mr8a0pBNv7U/s400/SAM_0185.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Devis Fall - Dipesh with his SLR and Bikesh dai smiling as always&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here we are at Pokhara. We arrived at saturday's evening and booked a lodge for us and went to WoodRock for some live music. It was fun. Gunjan was the pick of dancers at woodrock. He had a lot of fun including other guys. The other morning after the hangover, We decided to pay a visit to Devis fall. The waterfall although looked small in width had extremely strong current. We had our breakfast at devis fall and Lunch at local Thakali. We went to phewa lake for 1 hour boating. It was fun. But above all, We were waiting for the magical time to arrive. The paragliding was scheduled at 11 o'clock. But, unfortunately it was shifted to 2 o'clock. God knows why ? we were waiting at the agents office when suddenly at 1:45 black clouds appeared out of nowhere. Our plan was completely ruined by the weather. With heavy heart and drooped face we decided to return back to Kathmandu but with a spirit that we would come back again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-0UNAk2sTins/Tn7isERT41I/AAAAAAAAAVM/ad3b29mIRoo/s1600/SAM_0207.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="225" width="400" src="http://4.bp.blogspot.com/-0UNAk2sTins/Tn7isERT41I/AAAAAAAAAVM/ad3b29mIRoo/s400/SAM_0207.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-6xfxQRJjLdI/Tn7oT7v9E3I/AAAAAAAAAWk/idUOwm6yl7I/s1600/devisfall.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="400" width="268" src="http://1.bp.blogspot.com/-6xfxQRJjLdI/Tn7oT7v9E3I/AAAAAAAAAWk/idUOwm6yl7I/s400/devisfall.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Time to be sailors at phewa lake&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-eiXoDoPg1s0/Tn7i2tY962I/AAAAAAAAAVU/PYcLpw-vD0Q/s1600/SAM_0234.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="225" width="400" src="http://4.bp.blogspot.com/-eiXoDoPg1s0/Tn7i2tY962I/AAAAAAAAAVU/PYcLpw-vD0Q/s400/SAM_0234.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-2wCmuKfa7A4/Tn7i-saGnpI/AAAAAAAAAVc/I3w4dHamT5k/s1600/SAM_0250.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="225" width="400" src="http://1.bp.blogspot.com/-2wCmuKfa7A4/Tn7i-saGnpI/AAAAAAAAAVc/I3w4dHamT5k/s400/SAM_0250.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Begnas Lake&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-7xZAiwUkDf0/Tn7jPgbfxTI/AAAAAAAAAVk/3FGPKGVETgc/s1600/SAM_0303.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="225" width="400" src="http://2.bp.blogspot.com/-7xZAiwUkDf0/Tn7jPgbfxTI/AAAAAAAAAVk/3FGPKGVETgc/s400/SAM_0303.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;True Hikers. Tired, exhausted but onto their destination&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Xf7vj_GVzCI/Tn7jlMTDJcI/AAAAAAAAAVs/7ABhlTRkIoE/s1600/SAM_0319.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="225" width="400" src="http://4.bp.blogspot.com/-Xf7vj_GVzCI/Tn7jlMTDJcI/AAAAAAAAAVs/7ABhlTRkIoE/s400/SAM_0319.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;All guys happy&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-G1tNASg9USs/Tn7ll1OfTaI/AAAAAAAAAV0/GjgXXXIUDgU/s1600/happy.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="268" width="400" src="http://3.bp.blogspot.com/-G1tNASg9USs/Tn7ll1OfTaI/AAAAAAAAAV0/GjgXXXIUDgU/s400/happy.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Me happy at the pool&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-5Fup-l0fWuU/Tn7l21XleyI/AAAAAAAAAV8/HwjDbaxrmo0/s1600/me.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="400" width="268" src="http://1.bp.blogspot.com/-5Fup-l0fWuU/Tn7l21XleyI/AAAAAAAAAV8/HwjDbaxrmo0/s400/me.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Rajani taking a snap&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-SNtyb49INkk/Tn7nwhbS9hI/AAAAAAAAAWc/JqMCS_0NlzY/s1600/rajani.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="268" width="400" src="http://1.bp.blogspot.com/-SNtyb49INkk/Tn7nwhbS9hI/AAAAAAAAAWc/JqMCS_0NlzY/s400/rajani.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Night at Pokhara Pipal Bot&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-HQ1YcaSNbxE/Tn7m8q5e0zI/AAAAAAAAAWE/M07ebwbL-i0/s1600/pipalbot.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="268" width="400" src="http://1.bp.blogspot.com/-HQ1YcaSNbxE/Tn7m8q5e0zI/AAAAAAAAAWE/M07ebwbL-i0/s400/pipalbot.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Night Time party at WoodRock&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-bZwU84E6asM/Tn7nOE3587I/AAAAAAAAAWM/VmJ1xvKHGbw/s1600/woodrock.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="268" width="400" src="http://2.bp.blogspot.com/-bZwU84E6asM/Tn7nOE3587I/AAAAAAAAAWM/VmJ1xvKHGbw/s400/woodrock.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After two days of excitement, drama, fun. we returned back to kathmandu on sunday evening prabably at 8 o clock. On the way back, we took some snacks : fried fish and shrimp at Mugling. Well Ram dai gave all of us nightmares when he drove from pokhara to kathmandu. Certainly he is a cooler driver than that. Now this trip was a real good one if I forget the last time cancellation of our paragliding plan.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-803940807692998313?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/803940807692998313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=803940807692998313' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/803940807692998313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/803940807692998313'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/09/hike-to-sarangkot-and-rsr-2011-august.html' title='Hike to SarangKot and RSR 2011 August 12'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-3PahduxFDvg/Tn7hUF-fddI/AAAAAAAAAUk/8J32yjMGFeQ/s72-c/SAM_0128.JPG' height='72' width='72'/><thr:total>5</thr:total><georss:featurename>Kathmandu 44600, Nepal</georss:featurename><georss:point>27.702871 85.31824400000005</georss:point><georss:box>-9.080261000000004 25.55261900000005 64.486003 145.08386900000005</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-5717194794819950977</id><published>2011-09-13T22:31:00.000-07:00</published><updated>2011-09-17T02:06:40.801-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pdf certificate generate in java'/><category scheme='http://www.blogger.com/atom/ns#' term='Generating pdf reports in JAVA using iText library'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf report in java'/><title type='text'>Generating pdf reports in JAVA using iText library</title><content type='html'>The given Java program demonstrates a tutorial based upon iText to produce pdf report in the form of a Certificate. The final generated certificate will be a pdf file and look like the figure given. Three java classes are used for the sample as listed below. Cetrificate class represents the basic certificate object to be generated encapsulating all the required contents wanted on the certificate pdf report. CerrtificateReport is the main Java class which when run produces pdf certificate report under ./templates/ directory. The java report tutorial also uses XmlUtils file which is a xml utility class for reading xml files. The class has a method which returns the list of entries in the xml file required by our application.&lt;br /&gt;&lt;br /&gt;Classes Used in the pdf Report generating application.&lt;br /&gt;&lt;br /&gt;1. Cerrificate.java&lt;br /&gt;2. CertificateReport.java&lt;br /&gt;3. XmlUtils.java&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Libraries Used:&lt;br /&gt;iText1-3.jar&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Certificate.java&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;package org.dvst.dvs;&lt;br /&gt;import java.util.Date;&lt;br /&gt;import java.util.List;&lt;br /&gt;/**&lt;br /&gt;* DTO for producing certificate&lt;br /&gt;*  @author bishal acharya&lt;br /&gt;*/&lt;br /&gt;public class Certificate {&lt;br /&gt;private int registrationNo;&lt;br /&gt;private String fullName;&lt;br /&gt;private String fatherName;&lt;br /&gt;private String permanentAddres;&lt;br /&gt;private int citizenshipNo;&lt;br /&gt;private int passportNo;&lt;br /&gt;private String creditHours;&lt;br /&gt;private String system;&lt;br /&gt;private Date fromDate;&lt;br /&gt;private Date toDate;&lt;br /&gt;private String course;&lt;br /&gt;private String imagePath;&lt;br /&gt;private List&amp;lt;String&amp;gt; headers;&lt;br /&gt;private String workSystem;&lt;br /&gt;&lt;br /&gt;public int getRegistrationNo() {&lt;br /&gt;return registrationNo;&lt;br /&gt;}&lt;br /&gt;public void setRegistrationNo(int registrationNo) {&lt;br /&gt;this.registrationNo = registrationNo;&lt;br /&gt;}&lt;br /&gt;public String getFullName() {&lt;br /&gt;return fullName;&lt;br /&gt;}&lt;br /&gt;public void setFullName(String fullName) {&lt;br /&gt;this.fullName = fullName;&lt;br /&gt;}&lt;br /&gt;public String getFatherName() {&lt;br /&gt;return fatherName;&lt;br /&gt;}&lt;br /&gt;public void setFatherName(String fatherName) {&lt;br /&gt;this.fatherName = fatherName;&lt;br /&gt;}&lt;br /&gt;public String getPermanentAddres() {&lt;br /&gt;return permanentAddres;&lt;br /&gt;}&lt;br /&gt;public void setPermanentAddres(String permanentAddres) {&lt;br /&gt;this.permanentAddres = permanentAddres;&lt;br /&gt;}&lt;br /&gt;public int getPassportNo() {&lt;br /&gt;return passportNo;&lt;br /&gt;}&lt;br /&gt;public void setPassportNo(int passportNo) {&lt;br /&gt;this.passportNo = passportNo;&lt;br /&gt;}&lt;br /&gt;public int getCitizenshipNo() {&lt;br /&gt;return citizenshipNo;&lt;br /&gt;}&lt;br /&gt;public void setCitizenshipNo(int citizenshipNo) {&lt;br /&gt;this.citizenshipNo = citizenshipNo;&lt;br /&gt;}&lt;br /&gt;public String getCreditHours() {&lt;br /&gt;return creditHours;&lt;br /&gt;}&lt;br /&gt;public void setCreditHours(String creditHours) {&lt;br /&gt;this.creditHours = creditHours;&lt;br /&gt;}&lt;br /&gt;public String getSystem() {&lt;br /&gt;return system;&lt;br /&gt;}&lt;br /&gt;public void setSystem(String system) {&lt;br /&gt;this.system = system;&lt;br /&gt;}&lt;br /&gt;public Date getFromDate() {&lt;br /&gt;return fromDate;&lt;br /&gt;}&lt;br /&gt;public void setFromDate(Date fromDate) {&lt;br /&gt;this.fromDate = fromDate;&lt;br /&gt;}&lt;br /&gt;public Date getToDate() {&lt;br /&gt;return toDate;&lt;br /&gt;}&lt;br /&gt;public void setToDate(Date toDate) {&lt;br /&gt;this.toDate = toDate;&lt;br /&gt;}&lt;br /&gt;public String getCourse() {&lt;br /&gt;return course;&lt;br /&gt;}&lt;br /&gt;public void setCourse(String course) {&lt;br /&gt;this.course = course;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public String getImagePath() {&lt;br /&gt;return imagePath;&lt;br /&gt;}&lt;br /&gt;public void setImagePath(String imagePath) {&lt;br /&gt;this.imagePath = imagePath;&lt;br /&gt;}&lt;br /&gt;public List&amp;lt;String&amp;gt; getHeaders() {&lt;br /&gt;return headers;&lt;br /&gt;}&lt;br /&gt;public void setHeaders(List&amp;lt;String&amp;gt; headers) {&lt;br /&gt;this.headers = headers;&lt;br /&gt;}&lt;br /&gt;public String getWorkSystem() {&lt;br /&gt;return workSystem;&lt;br /&gt;}&lt;br /&gt;public void setWorkSystem(String workSystem) {&lt;br /&gt;this.workSystem = workSystem;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CertificateReport.java&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;package org.dvst.dvs;&lt;br /&gt;import java.io.FileOutputStream;&lt;br /&gt;import java.text.SimpleDateFormat;&lt;br /&gt;import java.util.Date;&lt;br /&gt;import java.util.List;&lt;br /&gt;import com.lowagie.text.Chunk;&lt;br /&gt;import com.lowagie.text.Document;&lt;br /&gt;import com.lowagie.text.Font;&lt;br /&gt;import com.lowagie.text.PageSize;&lt;br /&gt;import com.lowagie.text.Paragraph;&lt;br /&gt;import com.lowagie.text.pdf.PdfWriter;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* @author bishal acharya&lt;br /&gt;*/&lt;br /&gt;public class CertificateReport {&lt;br /&gt;public CertificateReport(Certificate certificate) throws Exception {&lt;br /&gt;SimpleDateFormat formatter = new SimpleDateFormat(&amp;quot;EEE, d MMM yyyy&amp;quot;);&lt;br /&gt;Document document = new Document(PageSize.A4.rotate());&lt;br /&gt;document.setPageSize(PageSize.A4);&lt;br /&gt;PdfWriter.getInstance(document,&lt;br /&gt;new FileOutputStream(&amp;quot;./templates/&amp;quot; + certificate.getFullName()&lt;br /&gt;+ &amp;quot;-&amp;quot; + certificate.getRegistrationNo() + &amp;quot;.pdf&amp;quot;));&lt;br /&gt;document.open();&lt;br /&gt;Paragraph p1 = new Paragraph(30);&lt;br /&gt;p1.add(new Chunk(certificate.getHeaders().get(0), new Font(&lt;br /&gt;Font.TIMES_ROMAN, 8)));&lt;br /&gt;p1.setAlignment(1);&lt;br /&gt;Paragraph p2 = new Paragraph();&lt;br /&gt;p2.add(new Chunk(certificate.getHeaders().get(1), new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9, Font.BOLD)));&lt;br /&gt;p2.setAlignment(1);&lt;br /&gt;Paragraph p3 = new Paragraph();&lt;br /&gt;p3.add(new Chunk(certificate.getHeaders().get(2), new Font(&lt;br /&gt;Font.TIMES_ROMAN, 14, Font.BOLD)));&lt;br /&gt;p3.setAlignment(1);&lt;br /&gt;Paragraph p4 = new Paragraph();&lt;br /&gt;p4.add(new Chunk(certificate.getHeaders().get(3), new Font(&lt;br /&gt;Font.TIMES_ROMAN, 14)));&lt;br /&gt;p4.setAlignment(1);&lt;br /&gt;Paragraph p5 = new Paragraph(60);&lt;br /&gt;p5.add(new Chunk(&amp;quot;Reg. No. (DVSDT) :- &amp;quot;&lt;br /&gt;+ certificate.getRegistrationNo(),&lt;br /&gt;new Font(Font.TIMES_ROMAN, 9)));&lt;br /&gt;p5.setAlignment(0);&lt;br /&gt;p5.setIndentationLeft(80);&lt;br /&gt;Paragraph p6 = new Paragraph(45);&lt;br /&gt;p6.add(new Chunk(&amp;quot;Certificate&amp;quot;, new Font(Font.TIMES_ROMAN, 17,&lt;br /&gt;Font.BOLD)));&lt;br /&gt;p6.setAlignment(1);&lt;br /&gt;Paragraph p7 = new Paragraph(30);&lt;br /&gt;p7.add(new Chunk(&amp;quot;This certificate is awarded to &amp;quot; + &amp;quot;  &amp;quot;, new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9)));&lt;br /&gt;p7.add(new Chunk(certificate.getFullName() + &amp;quot;  &amp;quot;, new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9, Font.BOLD)));&lt;br /&gt;p7.add(new Chunk(&amp;quot;son of  &amp;quot;, new Font(Font.TIMES_ROMAN, 9)));&lt;br /&gt;p7.add(new Chunk(&amp;quot;Mr.  &amp;quot; + certificate.getFatherName(), new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9, Font.BOLD)));&lt;br /&gt;p7.setAlignment(1);&lt;br /&gt;Paragraph p8 = new Paragraph(18);&lt;br /&gt;p8.add(new Chunk(&amp;quot;Permanent resident of&amp;quot; + &amp;quot;  &amp;quot;, new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9)));&lt;br /&gt;&lt;br /&gt;p8.add(new Chunk(certificate.getPermanentAddres() + &amp;quot;  &amp;quot;, new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9, Font.BOLD)));&lt;br /&gt;p8.add(new Chunk(&amp;quot;holding citizenship No : &amp;quot;, new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9)));&lt;br /&gt;p8.add(new Chunk(certificate.getCitizenshipNo() + &amp;quot; &amp;quot;, new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9, Font.BOLD)));&lt;br /&gt;p8.setAlignment(1);&lt;br /&gt;Paragraph p9 = new Paragraph(18);&lt;br /&gt;p9.add(new Chunk(&amp;quot;&amp;amp; passport No. &amp;quot;, new Font(Font.TIMES_ROMAN, 9)));&lt;br /&gt;p9.add(new Chunk(certificate.getPassportNo() + &amp;quot; &amp;quot;, new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9, Font.BOLD)));&lt;br /&gt;p9.add(new Chunk(&amp;quot;for successful completion of &amp;quot;&lt;br /&gt;+ certificate.getCreditHours()&lt;br /&gt;+ &amp;quot; Credit Hours course on Preliminary&amp;quot;, new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9)));&lt;br /&gt;p9.setAlignment(1);&lt;br /&gt;Paragraph p10 = new Paragraph(18);&lt;br /&gt;p10.add(new Chunk(&lt;br /&gt;&amp;quot;education for the workers going to Republic of Korea under&amp;quot;,&lt;br /&gt;new Font(Font.TIMES_ROMAN, 9)));&lt;br /&gt;p10.add(new Chunk(&amp;quot;  &amp;quot; + certificate.getWorkSystem(), new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9, Font.BOLD)));&lt;br /&gt;p10.setAlignment(1);&lt;br /&gt;&lt;br /&gt;Paragraph p11 = new Paragraph(18);&lt;br /&gt;p11.add(new Chunk(&amp;quot;from  &amp;quot;&lt;br /&gt;+ formatter.format(certificate.getFromDate()) + &amp;quot;  &amp;quot; + &amp;quot;to  &amp;quot;&lt;br /&gt;+ formatter.format(certificate.getToDate()), new Font(&lt;br /&gt;Font.TIMES_ROMAN, 9)));&lt;br /&gt;p11.setAlignment(1);&lt;br /&gt;&lt;br /&gt;Paragraph p12 = new Paragraph(45);&lt;br /&gt;p12.add(new Chunk(&lt;br /&gt;&amp;quot;---------------------&amp;quot;&lt;br /&gt;+ &amp;quot;                                                                &amp;quot;&lt;br /&gt;+ &amp;quot;                                                          &amp;quot;&lt;br /&gt;+ &amp;quot;  ---------------------------&amp;quot;, new Font(&lt;br /&gt;Font.TIMES_ROMAN, 8)));&lt;br /&gt;&lt;br /&gt;p12.setAlignment(1);&lt;br /&gt;Paragraph p13 = new Paragraph(10);&lt;br /&gt;p13.add(new Chunk(&lt;br /&gt;&amp;quot;   Coordinator&amp;quot;&lt;br /&gt;+ &amp;quot;                                                           &amp;quot;&lt;br /&gt;+ &amp;quot;                                                                        &amp;quot;&lt;br /&gt;+ &amp;quot;Executive Director&amp;quot;, new Font(Font.TIMES_ROMAN, 8)));&lt;br /&gt;p13.setAlignment(1);&lt;br /&gt;Paragraph p14 = new Paragraph(20);&lt;br /&gt;p14.setAlignment(1);&lt;br /&gt;p14.add(new Chunk(formatter.format(new Date()), new Font(&lt;br /&gt;Font.TIMES_ROMAN, 7, Font.BOLD)));&lt;br /&gt;&lt;br /&gt;document.add(p1);&lt;br /&gt;document.add(p2);&lt;br /&gt;document.add(p3);&lt;br /&gt;document.add(p4);&lt;br /&gt;document.add(p5);&lt;br /&gt;document.add(p6);&lt;br /&gt;document.add(p7);&lt;br /&gt;document.add(p8);&lt;br /&gt;document.add(p9);&lt;br /&gt;document.add(p10);&lt;br /&gt;document.add(p11);&lt;br /&gt;document.add(p12);&lt;br /&gt;document.add(p13);&lt;br /&gt;document.add(p14);&lt;br /&gt;com.lowagie.text.Image image = com.lowagie.text.Image&lt;br /&gt;.getInstance(&amp;quot;./templates/me.JPG&amp;quot;);&lt;br /&gt;image.setBorder(1);&lt;br /&gt;image.scaleAbsolute(100, 100);&lt;br /&gt;image.setAbsolutePosition(450, 730);&lt;br /&gt;document.add(image);&lt;br /&gt;document.close();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;List&amp;lt;String&amp;gt; headerList = XmlUtils.getNodeValue(&amp;quot;DataElement&amp;quot;, &amp;quot;Value&amp;quot;,&lt;br /&gt;DvsdtConstants.xmlConfigurationpath);&lt;br /&gt;try {&lt;br /&gt;Certificate c = new Certificate();&lt;br /&gt;c.setFullName(&amp;quot;Bishal Acharya&amp;quot;);&lt;br /&gt;c.setFatherName(&amp;quot;Manoj Acharya&amp;quot;);&lt;br /&gt;c.setRegistrationNo(15236);&lt;br /&gt;c.setCitizenshipNo(102545);&lt;br /&gt;c.setPassportNo(3518161);&lt;br /&gt;c.setFromDate(new Date());&lt;br /&gt;c.setToDate(new Date());&lt;br /&gt;c.setCreditHours(&amp;quot;Fourty Five (45)&amp;quot;);&lt;br /&gt;c.setPermanentAddres(&amp;quot;Shahid Marga Biratnagar&amp;quot;);&lt;br /&gt;c.setWorkSystem(&amp;quot;Employment Permit System&amp;quot;);&lt;br /&gt;c.setHeaders(headerList);&lt;br /&gt;CertificateReport cR = new CertificateReport(c);&lt;br /&gt;&lt;br /&gt;} catch (Exception e) {&lt;br /&gt;System.out.println(e);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;XmlUtils.java&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;package org.dvst.dvs;&lt;br /&gt;&lt;br /&gt;import java.io.File;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;import java.util.List;&lt;br /&gt;&lt;br /&gt;import javax.xml.parsers.DocumentBuilder;&lt;br /&gt;import javax.xml.parsers.DocumentBuilderFactory;&lt;br /&gt;import javax.xml.parsers.ParserConfigurationException;&lt;br /&gt;&lt;br /&gt;import org.w3c.dom.Document;&lt;br /&gt;import org.w3c.dom.Element;&lt;br /&gt;import org.w3c.dom.Node;&lt;br /&gt;import org.w3c.dom.NodeList;&lt;br /&gt;import org.xml.sax.SAXException;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Returns node value in given XML&lt;br /&gt;* @author bishal acharya&lt;br /&gt;*/&lt;br /&gt;public class XmlUtils {&lt;br /&gt;/**&lt;br /&gt;* Gets Node Value List from given XML document with file Path&lt;br /&gt;* &lt;br /&gt;* @param parentTag&lt;br /&gt;* @param tagName&lt;br /&gt;* @param layoutFile&lt;br /&gt;* @return&lt;br /&gt;*/&lt;br /&gt;public static List&amp;lt;String&amp;gt; getNodeValue(String parentTag, String tagName,&lt;br /&gt;String layoutFile) {&lt;br /&gt;DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory&lt;br /&gt;.newInstance();&lt;br /&gt;DocumentBuilder docBuilder = null;&lt;br /&gt;Document doc = null;&lt;br /&gt;List&amp;lt;String&amp;gt; valueList = new ArrayList&amp;lt;String&amp;gt;();&lt;br /&gt;try {&lt;br /&gt;docBuilder = docBuilderFactory.newDocumentBuilder();&lt;br /&gt;doc = docBuilder.parse(new File(layoutFile));&lt;br /&gt;} catch (SAXException e) {&lt;br /&gt;e.printStackTrace();&lt;br /&gt;} catch (ParserConfigurationException e) {&lt;br /&gt;e.printStackTrace();&lt;br /&gt;} catch (IOException e) {&lt;br /&gt;System.out.println(&amp;quot;Could not load file&amp;quot;);&lt;br /&gt;}&lt;br /&gt;NodeList layoutList = doc.getElementsByTagName(parentTag);&lt;br /&gt;&lt;br /&gt;for (int s = 0; s &amp;lt; layoutList.getLength(); s++) {&lt;br /&gt;Node firstPersonNode = layoutList.item(s);&lt;br /&gt;if (firstPersonNode.getNodeType() == Node.ELEMENT_NODE) {&lt;br /&gt;Element firstPersonElement = (Element) firstPersonNode;&lt;br /&gt;NodeList firstNameList = (firstPersonElement)&lt;br /&gt;.getElementsByTagName(tagName);&lt;br /&gt;Element firstNameElement = (Element) firstNameList.item(0);&lt;br /&gt;NodeList textFNList = (firstNameElement).getChildNodes();&lt;br /&gt;valueList.add(textFNList.item(0).getNodeValue().trim());&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return valueList;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Unit test for XmlUtils class&lt;br /&gt;* @param args&lt;br /&gt;*/&lt;br /&gt;public static void main(String args[]) {&lt;br /&gt;System.out.println(XmlUtils.getNodeValue(&amp;quot;DataElement&amp;quot;, &amp;quot;Value&amp;quot;,&lt;br /&gt;&amp;quot;./templates/Contents.xml&amp;quot;));&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The xml file should be present under ./templates/Contents.xml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-yJvNV0t8m5Y/TnBOkMiSUXI/AAAAAAAAAUI/rbj5NwUtxtA/s1600/contents.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 237px;" src="http://1.bp.blogspot.com/-yJvNV0t8m5Y/TnBOkMiSUXI/AAAAAAAAAUI/rbj5NwUtxtA/s400/contents.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5652103916097261938" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;me.JPG image file should be present under the same ./templates/me.JPG  directory.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-5717194794819950977?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/5717194794819950977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=5717194794819950977' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5717194794819950977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5717194794819950977'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/09/generating-pdf-reports-in-java-using.html' title='Generating pdf reports in JAVA using iText library'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-yJvNV0t8m5Y/TnBOkMiSUXI/AAAAAAAAAUI/rbj5NwUtxtA/s72-c/contents.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-5157090903421094464</id><published>2011-09-13T05:14:00.000-07:00</published><updated>2011-09-16T05:34:37.634-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java based Validation Utility'/><category scheme='http://www.blogger.com/atom/ns#' term='email validator'/><category scheme='http://www.blogger.com/atom/ns#' term='utility validator'/><category scheme='http://www.blogger.com/atom/ns#' term='Commons validator Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Commons Validator'/><category scheme='http://www.blogger.com/atom/ns#' term='date validator'/><title type='text'>Commons Validator : Java based Validation Utility</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Commons Validator : Java based Validation Utility&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A utility to validate common data fields like Numeric, Double, Date, email, Integer, Currency,Percent etc using apache Commons validator library. The class below uses Commons-Validator-1.3.1.jar library. The bulk of logic is implemented in the library itself. This class is a simple java program to unite validators work with a simple utility.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;/**&lt;br /&gt; * Utility for validation of different fields &lt;br /&gt; * &lt;br /&gt; * @author Bishal Acharya&lt;br /&gt;*/&lt;br /&gt;public class ValidationUtility {&lt;br /&gt; /**&lt;br /&gt;  * Check if provided String is Number&lt;br /&gt;  * &lt;br /&gt;  * @param str&lt;br /&gt;  * @return&lt;br /&gt;  */&lt;br /&gt; public static boolean checkIsNumeric(String str) {&lt;br /&gt;  if (str == null)&lt;br /&gt;   return false;&lt;br /&gt;  return str.matches(&amp;quot;-?\\d+(.\\d+)?&amp;quot;);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * Check if given String provided is double&lt;br /&gt;  * &lt;br /&gt;  * @param str&lt;br /&gt;  * @return&lt;br /&gt;  */&lt;br /&gt; public static boolean checkIfDouble(String str) {&lt;br /&gt;  if (str == null)&lt;br /&gt;   return false;&lt;br /&gt;  try {&lt;br /&gt;   Double.parseDouble(str);&lt;br /&gt;  } catch (NumberFormatException nfe) {&lt;br /&gt;   return false;&lt;br /&gt;  }&lt;br /&gt;  return true;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * Validates whether provided string is date field or not&lt;br /&gt;  * &lt;br /&gt;  * @param date&lt;br /&gt;  * @param format&lt;br /&gt;  *            defaultDate format&lt;br /&gt;  * @return&lt;br /&gt;  */&lt;br /&gt; public static boolean validateDate(String date) {&lt;br /&gt;  String format = "MM/dd/yyyy";&lt;br /&gt;  DateValidator validator = DateValidator.getInstance();&lt;br /&gt;&lt;br /&gt;  Date dateVal = validator.validate(date, format);&lt;br /&gt;  if (dateVal == null) {&lt;br /&gt;   return false;&lt;br /&gt;  }&lt;br /&gt;  return true;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * Validates whether provided string is date field or not&lt;br /&gt;  * &lt;br /&gt;  * @param date&lt;br /&gt;  * @param format&lt;br /&gt;  * @return boolean status of whether given data is valid or not&lt;br /&gt;  */&lt;br /&gt; public static boolean validateDate(String date, String format) {&lt;br /&gt;&lt;br /&gt;  DateValidator validator = DateValidator.getInstance();&lt;br /&gt;&lt;br /&gt;  Date dateVal = validator.validate(date, format);&lt;br /&gt;  if (dateVal == null) {&lt;br /&gt;   return false;&lt;br /&gt;  }&lt;br /&gt;  return true;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * Formats the given date as according to given formatter&lt;br /&gt;  * &lt;br /&gt;  * @param date&lt;br /&gt;  * @param format&lt;br /&gt;  * @return&lt;br /&gt;  */&lt;br /&gt; public static String formatDate(String date, String format) {&lt;br /&gt;  DateValidator validator = DateValidator.getInstance();&lt;br /&gt;&lt;br /&gt;  String dateVal = null;&lt;br /&gt;  try {&lt;br /&gt;   dateVal = validator.format(date, format);&lt;br /&gt;  } catch (IllegalArgumentException e) {&lt;br /&gt;   System.out.println(&amp;quot;Bad date:&amp;quot; + date + &amp;quot;: cannot be formatted&amp;quot;);&lt;br /&gt;  }&lt;br /&gt;  if (dateVal == null) {&lt;br /&gt;   return null;&lt;br /&gt;  }&lt;br /&gt;  return dateVal;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * Validates whether clients data is Integer or not&lt;br /&gt;  * &lt;br /&gt;  * @param integer&lt;br /&gt;  * @return&lt;br /&gt;  */&lt;br /&gt; public static boolean IntegerValidator(String integer) {&lt;br /&gt;  IntegerValidator validator = IntegerValidator.getInstance();&lt;br /&gt;&lt;br /&gt;  Integer integerVal = validator.validate(integer, &amp;quot;#,##0.00&amp;quot;);&lt;br /&gt;  if (integerVal == null) {&lt;br /&gt;   return false;&lt;br /&gt;  }&lt;br /&gt;  return true;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * validates whether data is currency of not&lt;br /&gt;  * &lt;br /&gt;  * @param currency&lt;br /&gt;  * @param loc&lt;br /&gt;  * @return&lt;br /&gt;  */&lt;br /&gt; public static boolean currencyValidator(String currency, Locale loc) {&lt;br /&gt;  BigDecimalValidator validator = CurrencyValidator.getInstance();&lt;br /&gt;  if (loc == null) {&lt;br /&gt;   loc = Locale.US;&lt;br /&gt;  }&lt;br /&gt;  BigDecimal amount = validator.validate(currency, loc);&lt;br /&gt;  if (amount == null) {&lt;br /&gt;   return false;&lt;br /&gt;  }&lt;br /&gt;  return true;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * Validates whether data provided is in percentage or not&lt;br /&gt;  * &lt;br /&gt;  * @param percentVal&lt;br /&gt;  * @return&lt;br /&gt;  */&lt;br /&gt; public static boolean percentValidator(String percentVal) {&lt;br /&gt;  BigDecimalValidator validator = PercentValidator.getInstance();&lt;br /&gt;  boolean valid = false;&lt;br /&gt;  BigDecimal Percent = validator.validate(percentVal, Locale.US);&lt;br /&gt;  if (Percent == null) {&lt;br /&gt;   valid = false;&lt;br /&gt;  }&lt;br /&gt;  // Check the percent is between 0% and 100%&lt;br /&gt;  if (validator.isInRange(Percent, 0, 1)) {&lt;br /&gt;   valid = true;&lt;br /&gt;  } else {&lt;br /&gt;   valid = false;&lt;br /&gt;  }&lt;br /&gt;  return valid;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * validates correct email address&lt;br /&gt;  * &lt;br /&gt;  * @param email&lt;br /&gt;  * @return&lt;br /&gt;  */&lt;br /&gt; public static boolean emailValidator(String email) {&lt;br /&gt;  EmailValidator validator = EmailValidator.getInstance();&lt;br /&gt;  boolean isAddressValid = validator.isValid(email);&lt;br /&gt;  return isAddressValid;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; public static void main(String args[]) {&lt;br /&gt;  String s = &amp;quot;12/18/1952&amp;quot;;&lt;br /&gt;  System.out.println(DateValidator.getInstance().validate(s,&lt;br /&gt;    "MM/dd/yyyy"));&lt;br /&gt;  System.out.println(&amp;quot;valid percent :&amp;quot;&lt;br /&gt;    + ValidationUtility.percentValidator(&amp;quot;100&amp;quot;));&lt;br /&gt;  System.out.println(&amp;quot;Invalid percent :&amp;quot;&lt;br /&gt;    + ValidationUtility.percentValidator(&amp;quot;110&amp;quot;));&lt;br /&gt;&lt;br /&gt;  System.out.println(&amp;quot;Valid Currency :&amp;quot;&lt;br /&gt;+ ValidationUtility.currencyValidator(&amp;quot;100&amp;quot;, Locale.US));&lt;br /&gt;  System.out.println(&amp;quot;InValid Currency :&amp;quot;&lt;br /&gt;+ ValidationUtility.currencyValidator(&amp;quot;Dollar&amp;quot;, Locale.US));&lt;br /&gt;  System.out.println(&amp;quot;Integer Validator :&amp;quot;&lt;br /&gt;    + ValidationUtility.IntegerValidator(&amp;quot;1&amp;quot;));&lt;br /&gt;  System.out.println(&amp;quot;Integer Validator :&amp;quot;&lt;br /&gt;    + ValidationUtility.IntegerValidator(&amp;quot;1.2&amp;quot;));&lt;br /&gt;  System.out.println(&amp;quot;Valid Numeric:&amp;quot;&lt;br /&gt;    + ValidationUtility.checkIsNumeric(&amp;quot;1&amp;quot;));&lt;br /&gt;  System.out.println(&amp;quot;InValid Numeric:&amp;quot;&lt;br /&gt;    + ValidationUtility.checkIsNumeric(&amp;quot;ABCD&amp;quot;)); }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight:bold;"&gt;Output :-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Thu Dec 18 00:00:00 NPT 1952&lt;br /&gt;valid percent :true&lt;br /&gt;Invalid percent :false&lt;br /&gt;Valid Currency :true&lt;br /&gt;InValid Currency :false&lt;br /&gt;Integer Validator :true&lt;br /&gt;Integer Validator :false&lt;br /&gt;Valid Numeric:true&lt;br /&gt;InValid Numeric:false&lt;br /&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-5157090903421094464?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/5157090903421094464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=5157090903421094464' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5157090903421094464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5157090903421094464'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/09/commons-validator-java-based-validation.html' title='Commons Validator : Java based Validation Utility'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-2451336601077794398</id><published>2011-09-13T02:41:00.000-07:00</published><updated>2011-09-16T05:30:30.223-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xml java tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='evaluate XML  in JAVA'/><category scheme='http://www.blogger.com/atom/ns#' term='xml utility in JAVA'/><category scheme='http://www.blogger.com/atom/ns#' term='parse xml in java'/><category scheme='http://www.blogger.com/atom/ns#' term='xml parsing java tutorial'/><title type='text'>Utility for Evaluating XML string,Files in JAVA</title><content type='html'>Given below is a Java utility class that can be used to evaluate/parse XML files. There are three different methods which parses the given XML file or XML String.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;getNodeValueListFromFile&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This method can be used to get NodeValue List from the ML file given as String.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;getNodeValue&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This method can be used to get value of the Node from give XML file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;printNodeValueFromFile&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This method prints the Node value from XML file given as string&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&lt;br /&gt;/**&lt;br /&gt; * @author bacharya&lt;br /&gt; */&lt;br /&gt;public class XmlUtils {&lt;br /&gt;    /**&lt;br /&gt;     * Gets Node Value from given XML document with file Path&lt;br /&gt;     * &lt;br /&gt;     * @param parentTag&lt;br /&gt;     * @param tagName&lt;br /&gt;     * @param layoutFile&lt;br /&gt;     * @return&lt;br /&gt;     */&lt;br /&gt;    public static String getNodeValue(String parentTag, String tagName,&lt;br /&gt;            String layoutFile) {&lt;br /&gt;        DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory&lt;br /&gt;                .newInstance();&lt;br /&gt;        DocumentBuilder docBuilder = null;&lt;br /&gt;        Document doc = null;&lt;br /&gt;&lt;br /&gt;        try {&lt;br /&gt;            docBuilder = docBuilderFactory.newDocumentBuilder();&lt;br /&gt;            doc = docBuilder.parse(new File(layoutFile));&lt;br /&gt;        } catch (SAXException e) {&lt;br /&gt;            e.printStackTrace();&lt;br /&gt;        } catch (ParserConfigurationException e) {&lt;br /&gt;            e.printStackTrace();&lt;br /&gt;        } catch (IOException e) {&lt;br /&gt;            System.out.println(&amp;quot;Could not load file&amp;quot;);&lt;br /&gt;        }&lt;br /&gt;        NodeList layoutList = doc.getElementsByTagName(parentTag);&lt;br /&gt;&lt;br /&gt;        for (int s = 0; s &amp;lt; layoutList.getLength(); s++) {&lt;br /&gt;            Node firstPersonNode = layoutList.item(s);&lt;br /&gt;            if (firstPersonNode.getNodeType() == Node.ELEMENT_NODE) {&lt;br /&gt;                Element firstPersonElement = (Element) firstPersonNode;&lt;br /&gt;                NodeList firstNameList = (firstPersonElement)&lt;br /&gt;                        .getElementsByTagName(tagName);&lt;br /&gt;                Element firstNameElement = (Element) firstNameList.item(0);&lt;br /&gt;                NodeList textFNList = (firstNameElement).getChildNodes();&lt;br /&gt;                return textFNList.item(0).getNodeValue().trim();&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        return null;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    /**&lt;br /&gt;     * Gets Node Value from given XML as String&lt;br /&gt;     * &lt;br /&gt;     * @param parentTag&lt;br /&gt;     * @param tagName&lt;br /&gt;     * @param xmlRecords&lt;br /&gt;     * @return&lt;br /&gt;     */&lt;br /&gt;    public static void printNodeValueFromFile(String parentTag, String tagName,&lt;br /&gt;            String xmlRecords) {&lt;br /&gt;        try {&lt;br /&gt;            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();&lt;br /&gt;            DocumentBuilder db = dbf.newDocumentBuilder();&lt;br /&gt;            InputSource is = new InputSource();&lt;br /&gt;            is.setCharacterStream(new StringReader(xmlRecords));&lt;br /&gt;&lt;br /&gt;            Document doc = db.parse(is);&lt;br /&gt;            NodeList nodes = doc.getElementsByTagName(parentTag);&lt;br /&gt;&lt;br /&gt;            for (int i = 0; i &amp;lt; nodes.getLength(); i++) {&lt;br /&gt;                Element element = (Element) nodes.item(i);&lt;br /&gt;&lt;br /&gt;                NodeList name = element.getElementsByTagName(tagName);&lt;br /&gt;                Element line = (Element) name.item(0);&lt;br /&gt;                System.out.println(&amp;quot;: &amp;quot; + getCharacterDataFromElement(line));&lt;br /&gt;            }&lt;br /&gt;        } catch (Exception e) {&lt;br /&gt;            e.printStackTrace();&lt;br /&gt;        }&lt;br /&gt;        return &amp;quot;&amp;quot;;&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    /**&lt;br /&gt;     * Gets Node Value from given XML as Map of List of Strings&lt;br /&gt;     * &lt;br /&gt;     * @param parentTag&lt;br /&gt;     * @param tagName&lt;br /&gt;     * @param xmlRecords&lt;br /&gt;     * @return&lt;br /&gt;     */&lt;br /&gt;    public static Map&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; getNodeValueListFromFile(&lt;br /&gt;            String parentTag, String tagName, String xmlRecords) {&lt;br /&gt;        Map&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; nodeMapList = new HashMap&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt;();&lt;br /&gt;        List&amp;lt;String&amp;gt; valueList = new ArrayList&amp;lt;String&amp;gt;();&lt;br /&gt;&lt;br /&gt;        try {&lt;br /&gt;            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();&lt;br /&gt;            DocumentBuilder db = dbf.newDocumentBuilder();&lt;br /&gt;            InputSource is = new InputSource();&lt;br /&gt;            is.setCharacterStream(new StringReader(xmlRecords));&lt;br /&gt;&lt;br /&gt;            Document doc = db.parse(is);&lt;br /&gt;            NodeList nodes = doc.getElementsByTagName(parentTag);&lt;br /&gt;&lt;br /&gt;            for (int i = 0; i &amp;lt; nodes.getLength(); i++) {&lt;br /&gt;                Element element = (Element) nodes.item(i);&lt;br /&gt;&lt;br /&gt;                NodeList name = element.getElementsByTagName(tagName);&lt;br /&gt;                Element line = (Element) name.item(0);&lt;br /&gt;                valueList.add(getCharacterDataFromElement(line));&lt;br /&gt;            }&lt;br /&gt;        } catch (Exception e) {&lt;br /&gt;            e.printStackTrace();&lt;br /&gt;        }&lt;br /&gt;        nodeMapList.put(tagName, valueList);&lt;br /&gt;        return nodeMapList;&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public static String getCharacterDataFromElement(Element e) {&lt;br /&gt;        Node child = e.getFirstChild();&lt;br /&gt;        if (child instanceof CharacterData) {&lt;br /&gt;            CharacterData cd = (CharacterData) child;&lt;br /&gt;            return cd.getData();&lt;br /&gt;        }&lt;br /&gt;        return &amp;quot;?&amp;quot;;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    /**&lt;br /&gt;     * Unit test for XmlUtils class&lt;br /&gt;     * &lt;br /&gt;     * @param args&lt;br /&gt;     */&lt;br /&gt;    public static void main(String args[]) {&lt;br /&gt;        String rec = &amp;quot;&amp;lt;Layout&amp;gt;&amp;quot; + &amp;quot; &amp;lt;Data&amp;gt;&amp;quot; + &amp;quot;     &amp;lt;Name&amp;gt;testLayout&amp;lt;/Name&amp;gt;&amp;quot;&lt;br /&gt;                + &amp;quot;     &amp;lt;Delimiter&amp;gt;s&amp;lt;/Delimiter&amp;gt;&amp;quot; + &amp;quot; &amp;lt;/Data&amp;gt;&amp;quot; + &amp;quot;    &amp;lt;Details&amp;gt;&amp;quot;&lt;br /&gt;                + &amp;quot; &amp;lt;DataElement&amp;gt;&amp;quot; + &amp;quot;   &amp;lt;fieldName&amp;gt;GROUP&amp;lt;/fieldName&amp;gt;&amp;quot;&lt;br /&gt;                + &amp;quot; &amp;lt;Type&amp;gt;String&amp;lt;/Type&amp;gt;&amp;quot; + &amp;quot;     &amp;lt;Location&amp;gt;&amp;quot; + &amp;quot;         &amp;lt;Num&amp;gt;1&amp;lt;/Num&amp;gt;&amp;quot;&lt;br /&gt;                + &amp;quot;     &amp;lt;/Location&amp;gt;&amp;quot; + &amp;quot; &amp;lt;/DataElement&amp;gt;&amp;quot; + &amp;quot; &amp;lt;DataElement&amp;gt;&amp;quot;&lt;br /&gt;                + &amp;quot;   &amp;lt;fieldName&amp;gt;ENTITY_CODE&amp;lt;/fieldName&amp;gt;&amp;quot;&lt;br /&gt;                + &amp;quot; &amp;lt;Type&amp;gt;String&amp;lt;/Type&amp;gt;&amp;quot; + &amp;quot;     &amp;lt;Location&amp;gt;&amp;quot; + &amp;quot;         &amp;lt;Num&amp;gt;2&amp;lt;/Num&amp;gt;&amp;quot;&lt;br /&gt;                + &amp;quot;     &amp;lt;/Location&amp;gt;&amp;quot; + &amp;quot; &amp;lt;/DataElement&amp;gt;&amp;quot; + &amp;quot;    &amp;lt;/Details&amp;gt;&amp;quot;&lt;br /&gt;                + &amp;quot;&amp;lt;/Layout&amp;gt;&amp;quot;;&lt;br /&gt;&lt;br /&gt;        Map&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; nodeMapList = XmlUtils&lt;br /&gt;                .getNodeValueListFromFile(&amp;quot;DataElement&amp;quot;, &amp;quot;fieldName&amp;quot;, rec);&lt;br /&gt;        Map&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; nodeMapList1 = XmlUtils&lt;br /&gt;                .getNodeValueListFromFile(&amp;quot;DataElement&amp;quot;, &amp;quot;Type&amp;quot;, rec);&lt;br /&gt;        Map&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; nodeMapList2 = XmlUtils&lt;br /&gt;                .getNodeValueListFromFile(&amp;quot;Location&amp;quot;, &amp;quot;Num&amp;quot;, rec);&lt;br /&gt;&lt;br /&gt;        List&amp;lt;String&amp;gt; val = nodeMapList.get(&amp;quot;fieldName&amp;quot;);&lt;br /&gt;&lt;br /&gt;        System.out.println(val.size());&lt;br /&gt;        for (int i = 0; i &amp;lt; val.size(); i++) {&lt;br /&gt;            System.out.println(nodeMapList1.get(&amp;quot;Type&amp;quot;).get(i));&lt;br /&gt;            System.out.println(nodeMapList2.get(&amp;quot;Num&amp;quot;).get(i));&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        System.out.println(&lt;br /&gt;                 XmlUtils.getNodeValueFromFile(&amp;quot;DataElement&amp;quot;, &amp;quot;fieldName&amp;quot;,&lt;br /&gt;                        rec));&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Test Output :&lt;br /&gt;&lt;br /&gt;2&lt;br /&gt;String&lt;br /&gt;1&lt;br /&gt;String&lt;br /&gt;2&lt;br /&gt;: GROUP&lt;br /&gt;: ENTITY_CODE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-2451336601077794398?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/2451336601077794398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=2451336601077794398' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/2451336601077794398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/2451336601077794398'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/09/utility-for-evaluating-xml-stringfiles.html' title='Utility for Evaluating XML string,Files in JAVA'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-3349623225812452037</id><published>2011-09-08T22:30:00.000-07:00</published><updated>2011-09-16T05:36:04.589-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hadoop Distributed Cache 0.20.2'/><category scheme='http://www.blogger.com/atom/ns#' term='Hadoop Distributed Cache Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Distributed Cache Java Program'/><category scheme='http://www.blogger.com/atom/ns#' term='Hadoop Distributed Cache usage'/><title type='text'>Using Distributed Cache in Hadoop (Hadoop 0.20.2)</title><content type='html'>Quite often we encounter situation when we need certain files like configuration files, jar libraries, xml files, properties files etc to be present in Hadoops processing nodes at the time of its execution. Quite understandably Hadoop has a feature called Distributed Cache which helps in sending those readonly files to the task nodes. In Hadoop environment jobs are basically map-Reduce jobs and the necessary readonly files are copied to the tasktracker nodes at the beginning of job execution process. The default size of distributed cache in Hadoop is about 10 GB but We can control the size of the distributed cache by explicitly defining its size in hadoop’s configuration file local.cache.size. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thus, Distributed cache is a mechanism to caching readonly data over Hadoop cluster. The sending of readOnly files occurs at the time of job creation and the framework makes the cached files available to the cluster nodes at their computational time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The following distributed cache java program sends the necessary xml files to the task executing nodes prior to job execution. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Java Program/Tutorial of Distributed Cache usage in Hadoop&lt;/span&gt;&lt;br /&gt;Hadoop Version : 0.20.2&lt;br /&gt;Java Version: Java-SE-1.6&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The program below consists of two classes. The DcacheMapper class and the parent Class. Job is initialized in the base class. Job is initialized pointing to the location in HDFS where the file to be sent to all nodes is present. When the setup method in parent class is executed we can retrieve the distributed configuration file and read it for our usage.&lt;br /&gt;&lt;br /&gt;API doc for Distributed Cache can be found at the given URL.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;http://hadoop.apache.org/common/docs/r0.20.2/api/org/apache/hadoop/filecache/DistributedCache.html&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Class To make a Map Reduce Job for Distributed Cache&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&lt;br /&gt;package com.bishal.mapreduce;&lt;br /&gt;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.net.URI;&lt;br /&gt;import java.net.URISyntaxException;&lt;br /&gt;&lt;br /&gt;import org.apache.hadoop.conf.Configuration;&lt;br /&gt;import org.apache.hadoop.filecache.DistributedCache;&lt;br /&gt;import org.apache.hadoop.fs.Path;&lt;br /&gt;import org.apache.hadoop.io.Text;&lt;br /&gt;import org.apache.hadoop.mapred.lib.MultipleTextOutputFormat;&lt;br /&gt;import org.apache.hadoop.mapreduce.Job;&lt;br /&gt;import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;&lt;br /&gt;import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * @author Bishal Acharya&lt;br /&gt; * &lt;br /&gt; */&lt;br /&gt;public class DcacheMapper extends ParentMapper {&lt;br /&gt; public DcacheMapper() {&lt;br /&gt;  super();&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; public void map(Object key, Text value, Context context) throws IOException {&lt;br /&gt;  /**&lt;br /&gt;   * Write your map Implementation&lt;br /&gt;   */&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt; &lt;br /&gt; public static void main(String args[]) throws URISyntaxException,&lt;br /&gt;   IOException, InterruptedException, ClassNotFoundException {&lt;br /&gt;&lt;br /&gt;  Configuration conf = new Configuration();&lt;br /&gt;&lt;br /&gt;  final String NAME_NODE = &amp;quot;hdfs://localhost:9000&amp;quot;;&lt;br /&gt;&lt;br /&gt;  Job job = new Job(conf);&lt;br /&gt;&lt;br /&gt;  DistributedCache.addCacheFile(new URI(NAME_NODE&lt;br /&gt;    + &amp;quot;/user/root/input/Configuration/layout.xml&amp;quot;),&lt;br /&gt;    job.getConfiguration());&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  job.setMapperClass(ImportMapReduce.class);&lt;br /&gt;  job.setJarByClass(ImportMapReduce.class);&lt;br /&gt;  job.setNumReduceTasks(0);&lt;br /&gt;&lt;br /&gt;  FileInputFormat.addInputPath(&lt;br /&gt;    job,&lt;br /&gt;    new Path(NAME_NODE + &amp;quot;/user/root/input/&amp;quot; + &amp;quot;/&amp;quot;&lt;br /&gt;      + &amp;quot;/test.txt&amp;quot;));&lt;br /&gt;  FileOutputFormat.setOutputPath(&lt;br /&gt;    job,&lt;br /&gt;    new Path(NAME_NODE + &amp;quot;/user/root/output/&amp;quot; + &amp;quot;/&amp;quot;&lt;br /&gt;      + &amp;quot;/importOutput&amp;quot;));&lt;br /&gt;  System.exit(job.waitForCompletion(true) ? 0 : 1);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Parent Class to read data from Distributed Cache&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;package com.bishal.mapreduce;&lt;br /&gt;&lt;br /&gt;import java.io.BufferedReader;&lt;br /&gt;import java.io.FileReader;&lt;br /&gt;&lt;br /&gt;import org.apache.hadoop.conf.Configuration;&lt;br /&gt;import org.apache.hadoop.filecache.DistributedCache;&lt;br /&gt;import org.apache.hadoop.fs.Path;&lt;br /&gt;import org.apache.hadoop.io.Text;&lt;br /&gt;import org.apache.hadoop.mapreduce.Mapper;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * BaseMapper class to perform initialization setup and cleanUp tasks using Distributed Cache for Map&lt;br /&gt; * Reduce job&lt;br /&gt; * &lt;br /&gt; * @author Bishal Acharya&lt;br /&gt; * &lt;br /&gt; */&lt;br /&gt;public class ParentMapper extends Mapper&amp;lt;Object, Text, Object, Text&amp;gt; {&lt;br /&gt; protected Configuration conf;&lt;br /&gt;&lt;br /&gt; public ParentMapper() {&lt;br /&gt;  initialize();&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; private void initialize() {&lt;br /&gt;  conf = new Configuration();&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; protected void setup(&lt;br /&gt;   org.apache.hadoop.mapreduce.Mapper&amp;lt;Object, Text, Object, Text&amp;gt;.Context context)&lt;br /&gt;   throws java.io.IOException, InterruptedException {&lt;br /&gt;&lt;br /&gt;  Path[] uris = DistributedCache.getLocalCacheFiles(context&lt;br /&gt;    .getConfiguration());&lt;br /&gt;&lt;br /&gt;  BufferedReader fis;&lt;br /&gt;&lt;br /&gt;  /**&lt;br /&gt;   * Prepare Objects from Layout XML&lt;br /&gt;   */&lt;br /&gt;  for (int i = 0; i &amp;lt; uris.length; i++) {&lt;br /&gt;   if (uris[i].toString().contains(&amp;quot;layout&amp;quot;)) {&lt;br /&gt;&lt;br /&gt;    String chunk = null;&lt;br /&gt;    fis = new BufferedReader(new FileReader(uris[i].toString()));&lt;br /&gt;    String records = &amp;quot;&amp;quot;;&lt;br /&gt;    while ((chunk = fis.readLine()) != null) {&lt;br /&gt;     records += chunk;&lt;br /&gt;    }&lt;br /&gt;    // do whatever you like with xml using parser&lt;br /&gt;    System.out.println(&amp;quot;Records :&amp;quot; + records);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt; protected void cleanup(&lt;br /&gt;   org.apache.hadoop.mapreduce.Mapper&amp;lt;Object, Text, Object, Text&amp;gt;.Context context)&lt;br /&gt;   throws java.io.IOException, InterruptedException {&lt;br /&gt;  DistributedCache.purgeCache(conf);&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;In the parent class we read the cache file in the setup method of the job. And cachePurge operation is performed at the cleanup phase of the MapReduce job.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-3349623225812452037?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/3349623225812452037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=3349623225812452037' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/3349623225812452037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/3349623225812452037'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/09/using-distributed-cache-in-hadoop.html' title='Using Distributed Cache in Hadoop (Hadoop 0.20.2)'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-9203606704690288950</id><published>2011-09-07T22:28:00.000-07:00</published><updated>2011-09-16T05:37:19.676-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Evaluating javascript Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Javascript run in Java tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Javascript in Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Javascript Expression in Java'/><title type='text'>Evaluating Javascript expressions in Java</title><content type='html'>As the java virtual machine comes up with Javascript runtime, we can directly evaluate JavaScript expressions in our Java Class. The approach could be helpful in conditions when we want certain kind of Javascript expressions to be evaluated in our Java class in server rather than the client side. JVM has the in built Script Engine called Mozilla Rhino. Rhino is an open-source implementation of JavaScript written in Java, which is used to run expressions given in Javascript from JVM.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Given is the ScriptingEngine info for Java virtual machine. This information can be obtained by running below method.&lt;br /&gt;&lt;br /&gt; ScriptEngineManager mgr = new ScriptEngineManager();&lt;br /&gt;    List&lt;ScriptEngineFactory&gt; facts = &lt;br /&gt;        mgr.getEngineFactories();&lt;br /&gt;&lt;br /&gt;   System.out.println("engName :" + facts.getEngineName()&lt;br /&gt;  + ":engVersion:" + facts.getEngineVersion()&lt;br /&gt;  + ":langName :" + facts.getLanguageName()&lt;br /&gt;                + ":langVersion :"+ factory.getLanguageVersion());&lt;br /&gt;&lt;br /&gt;     &lt;br /&gt;when the Engine Names is printed we can see the following results.&lt;br /&gt; &lt;br /&gt;Script Engine: Mozilla Rhino (1.6 release 2)&lt;br /&gt; Engine Alias: js&lt;br /&gt; Engine Alias: rhino&lt;br /&gt; Engine Alias: JavaScript&lt;br /&gt; Engine Alias: javascript&lt;br /&gt; Engine Alias: ECMAScript&lt;br /&gt; Engine Alias: ecmascript&lt;br /&gt; Language: ECMAScript (1.6)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Given below is the class which evaluates the JavaScript expression given to it. The evaluate method has to be given the expression to be evaluated, the setters names and the setterValueMap which contains the key,value pair of setterField and its corresponding value.&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;/**&lt;br /&gt;*@author Bishal Acharya&lt;br /&gt;*&lt;br /&gt;*/&lt;br /&gt;public class JavascriptEvaluator {&lt;br /&gt; /**&lt;br /&gt;  * &lt;br /&gt;  * @param expression&lt;br /&gt;  *            the expression to evaluate&lt;br /&gt;  * @param setters&lt;br /&gt;  *            list of setters for the expression&lt;br /&gt;  * @param setterValueMap&lt;br /&gt;  *            Map having setterKey and its value&lt;br /&gt;  * @return Object the evaluated expression&lt;br /&gt;  */&lt;br /&gt; public static Object evaluate(String expression, String setters,&lt;br /&gt;   Map&amp;lt;String, String&amp;gt; setterValueMap) {&lt;br /&gt;  String[] setterArray = setters.split(&amp;quot;,&amp;quot;);&lt;br /&gt;  List&amp;lt;String&amp;gt; setterList = new ArrayList&amp;lt;String&amp;gt;();&lt;br /&gt;&lt;br /&gt;  for (String val : setterArray) {&lt;br /&gt;   setterList.add(val.trim());&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  ScriptEngineManager mgr = new ScriptEngineManager();&lt;br /&gt;  ScriptEngine jsEngine = mgr.getEngineByName(&amp;quot;JavaScript&amp;quot;);&lt;br /&gt;  Object obj = null;&lt;br /&gt;  for (int i = 0; i &amp;lt; setterList.size(); i++) {&lt;br /&gt;   jsEngine.put(setterList.get(i),&lt;br /&gt;     setterValueMap.get(setterList.get(i)));&lt;br /&gt;  }&lt;br /&gt;  try {&lt;br /&gt;   obj = jsEngine&lt;br /&gt;     .eval(&amp;quot;func1(); function func1(){&amp;quot; + expression + &amp;quot;}&amp;quot;);&lt;br /&gt;  } catch (ScriptException e) {&lt;br /&gt;   e.printStackTrace();&lt;br /&gt;  }&lt;br /&gt;  return obj;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; public static void main(String args[]) {&lt;br /&gt;  String expr = &amp;quot;return GROUP_NAME.substr(0,5).concat(' How are You');&amp;quot;;&lt;br /&gt;  String setters = &amp;quot;GROUP_NAME&amp;quot;;&lt;br /&gt;  Map&amp;lt;String, String&amp;gt; setterValueMap = new HashMap&amp;lt;String, String&amp;gt;();&lt;br /&gt;  setterValueMap.put(&amp;quot;GROUP_NAME&amp;quot;, &amp;quot;Hello World&amp;quot;);&lt;br /&gt;  System.out.println(JavascriptEvaluator.evaluate(expr, setters,&lt;br /&gt;    setterValueMap));&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output of Running above class :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Hello How are You&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-9203606704690288950?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/9203606704690288950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=9203606704690288950' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/9203606704690288950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/9203606704690288950'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/09/evaluating-javascript-expression-in.html' title='Evaluating Javascript expressions in Java'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-7414574503661007044</id><published>2011-08-18T22:00:00.000-07:00</published><updated>2011-08-18T22:15:22.728-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javaspae'/><category scheme='http://www.blogger.com/atom/ns#' term='Clustering with JINI Javaspace'/><category scheme='http://www.blogger.com/atom/ns#' term='jini'/><category scheme='http://www.blogger.com/atom/ns#' term='Distributed Computing JINI'/><title type='text'>A JINI based approach towards dynamic cluster Management and Resource Utilization</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Abstract&lt;/span&gt;&lt;br /&gt;With offices nowadays have started using computers, we are also faced with a challenge to maximize the utilization of computing resources offered by each computer and minimize cost. With many computers, we are faced with many idle&lt;br /&gt;resources. Jobs can be distributed out to idle servers or even idle desktops. Many of these resources remain idle during off office hours or even during office hours with many users under utilizing the computing as well as memory resources. We can manage policies allowing jobs to go only go to computers that are free of resources allowing others to run normally and hence maximize the throughput as well as minimize cost. Our proposed model not only utilizes resources to optimum but also makes the architecture more modular, adaptive, provides dynamic fail over recovery and linear scalability.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Keywords : JINI, javaspace, cluster, Space&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. Introduction&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As the size of any organization increases, with it increases the issue of managing the increased resources. A little foresightedness may result saving huge cost for the organization. There might arise a question of managing computer clusters for carrying out computational task with more efficiency. In this paper we shall focus on the prototype cluster management using JINI, and also show how to setup a cluster management system that performs resource sharing. Traditional architectures normally focus on clientserver or peer to peer interaction model but our focus shall be upon a completely new architecture “Space based Architecture”. The space based idea&lt;br /&gt;has several advantages compared to its counterparts. A space based architecture is said to be more robust because one agent failing will not bring down the whole system as is the case with clientserver model. Replication and mirroring of persistent spaces permits communication regardless network failure. Communication between peers is anonymous and asynchronous which makes computers in the cluster to work together to solve a problem collectively. These attributes of space based architecture enables us to make an adaptive cluster. We will particularly focus on managing clusters in an adaptive manner, where the increase or decrease in the number of peers wont create any problem to the overall space. Our approach will be based on the one of the services of JINI the “javaspace”.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. JINI and JavaSpaces&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;JINI technology is a service oriented architecture that defines a programming model which both exploits and extends the ability of java technology to enable the creation of distributed systems consisting of federations of well behaved networked services and clients. JINI technology can be used to build adaptive network systems that are scalable, evolvable and flexible as typically required in dynamic distributed systems [1]. JINI enables computers to find each other and use each others services on the network without prior information about each other or the protocols used. To make Jini selfhealing,leases are utilized. Nearly every registration or resource must be leased, that is, it must periodically be confirmed that the registered resource is alive or that there is still interest in a resource.&lt;br /&gt;If the lease is not renewed before its expiration, the resource or registration becomes unavailable. This provides a form of distributed garbage collection, where only healthy resources continue to be published.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.1 An overview of JINI Infrastructure&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Jini comes with several standard infrastructure components out of the box. To achieve the nonfunctional requirements (NFRs) of performance, resiliency, and scalability, multiple instances of these components run simultaneously on different machines.&lt;br /&gt;&lt;br /&gt;The standard Jini services are:&lt;br /&gt;· Lookup Service : The lookup service, named reggie, is the first among equals of Jini services.&lt;br /&gt;All services in a Jini architecture register with the lookup service to make themselves available to other services. All initial access to other services is via the lookup service, after which clients bind directly.&lt;br /&gt;· Class Server : The class server, a simple HTTP daemon, eliminates the coupling between clients and service implementations. Clients deal with interfaces. If a particular implementation class is required, it is downloaded transparently.&lt;br /&gt;· Transaction Manager : Distributed transactions support is provided by the transaction manager service called mahalo.&lt;br /&gt;· JavaSpace Services with a requirement to share information with other services do so through a JavaSpace. The reference implementation of the JavaSpace is named outrigger.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.2 JavaSpace technology&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The JavaSpaces technology is a highlevel tool for building distributed applications, and it can also be used as a coordination tool. A marked departure from classic distributed models that rely on message passing or RMI, the JavaSpaces model views a distributed application as a collection of processes that cooperate through the flow of objects into and out of one or more spaces. This programming model has its roots in Linda, a coordination language developed by Dr. David Gelernter at Yale  niversity. However, no knowledge of Linda is required to understand and use JavaSpaces technology [2].The dominant model of computation in distributed computing is the ClientServer model. This model is based on the assumption that local procedure calls are the same as remote procedure calls. Javaspaces overcome the problems of synchronization, latency and partial failure, inherent in distributed systems, by providing loosely coupled interactions between the components of distributed systems. Javaspace processes communicate through a space, not than directly. Communication between processes on different physical machines is asynchronous and free from the main limitation of the traditional client/server model, when client/server communication requires simultaneous presence on network both parts client and server. Sender and receiver in JavaSpace don't need to be synchronized and can interact when network is available. In a distributed application, JavaSpaces technology acts as a virtual space between providers and requesters of network resources or objects. This allows participants in a distributed solution to exchange tasks, requests, and information in the form of Java&lt;br /&gt;technology based objects[3]. The javaspace transactional mangement and notify feature makes it easier to build a dynamic cluster management framework. In particular it addresses the dynamic cluster problem where nodes can depart and join the cluster at any time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.3 Leasing&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One of the important feature of Jini is the concept of leasing. All resources in a Jini system are leased,including proxy records in the lookup service, transactions, and, of course, memory in a JavaSpace.When a lease expires, the resource is recovered and made available to other components. This prevents resource accretion, a common problem in distributed systems. Leases can be renewed explicitly, or implicitly through a lease renewal manager. In the interests of simplicity, the example below uses leases that last "forever." This is obviously inappropriate for a&lt;br /&gt;production system[4].&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2.4 The Entry Interface&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;All objects that can be stored in a JavaSpace must implement the Entry interface. Entry is a simple tag interface that does not add any methods but does extend Serializable. Like JavaBeans, all Entry implementations must provide a public constructor that takes no arguments. Unlike JavaBeans, all of the data members of an Entry must be public. In production Jini systems, the public data members are a nonissue because of common techniques like the envelope letter idiom. The Entry implementation acts as an envelope or wrapper around the "real" payload, which may be any serializable Java object. The only public data members exposed are those required for the templatebased matching of the JavaSpaces API[5].&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. JavaSpace based cluster mangement&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At the focus of our system is a working space and entries that cluster nodes can write to the space.These entries are a Join entry and a Depart entry. The space itself is assumed to be run on a host that forms the nucleus of the cluster and in fact for the work reported here we assume this host and its space stay up. We are working on the problem of making this space system properly persistent and robust&lt;br /&gt;against temporary failure. It is further assumed that the space hosting node is well known to other nodes that participate in the cluster. This seems reasonable assumption for a cluster within an administrative boundary&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3.1 Architecture Description&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-J0SffXC7qqE/Tk3vqoYD8TI/AAAAAAAAAKM/O4q42eiAGJU/s1600/table3.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 345px;" src="http://1.bp.blogspot.com/-J0SffXC7qqE/Tk3vqoYD8TI/AAAAAAAAAKM/O4q42eiAGJU/s400/table3.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5642429423836983602" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A JavaSpaces service holds entries, each of which is a typed group of objects expressed in a class that implements the interface net.jini.core.entry.Entry. Once an entry is written into a JavaSpaces service, it can be used in future lookup operations. Looking up entries is performed using templates, which are&lt;br /&gt;entry objects that have some or all of their fields set to specified values that must be matched exactly. All remaining fields, which are not used in the lookup, are left as wildcards.&lt;br /&gt;There are two lookup operations: read() and take(). The read() method returns either an entry that matches the template or an indication that no match was found. The take() method operates like read(), but if a match is found, the entry is removed from the space. Distributed events can be used by requesting a JavaSpaces service to notify you when an entry that matches the specified template is written into the space. Note that each entry in the space can be taken at most once, but two or more entries may have the exact same values. Using JavaSpaces technology, distributed applications are modeled as a flow of objects between participants, which is different from classic distributed models such as RMIs. Figure 1 indicates what a JavaSpaces technology based application looks like. A client can interact with as many JavaSpaces services as needed. Clients perform operations that map entries to templates onto JavaSpaces services. Such operations can be singleton or contained in a transaction so that all or none of the operationstake place. Notifications go to event catches, which can be either clients or proxies for clients.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. Javaspace Realated concepts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4.1 Transactions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The JavaSpaces API uses the package net.jini.core.transaction to provide basic atomic&lt;br /&gt;transactions that group multiple operations across multiple JavaSpaces services into a bundle that acts as a single atomic operation. Either all modifications within the transactions will be applied or none will, regardless of whether the transaction spans one or more operations or one or more JavaSpaces services. Note that transactions can span multiple spaces and participants in general.A read(), write(), or take() operation that has a null transaction acts as if it were in a committed transaction that contained that operation. As an example, a take() with a null&lt;br /&gt;transaction parameter performs as if a transaction was created, the take() was performed under that transaction, and then the transaction was committed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4.2 The Jini Outrigger JavaSpaces Service&lt;/span&gt;&lt;br /&gt;The Jini Technology Starter Kit comes with the package com.sun.jini.outrigger, which&lt;br /&gt;provides an implementation of a JavaSpaces technologyenabled&lt;br /&gt;service. You can run it two ways:&lt;br /&gt;· As a transient space that loses its state between executions: Use&lt;br /&gt;com.sun.jini.outrigger.TransientOutriggerImpl.&lt;br /&gt;· As a persistent space that maintains state between executions: Use&lt;br /&gt;com.sun.jini.outrigger.PersistentOutriggerImpl.&lt;br /&gt;The TransientOutriggerImpl can be run only as a nonactivatable server, but the&lt;br /&gt;PersistentOutriggerImpl can be run as either an activatable or nonactivatable server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4.3 Distributed Data structure in JavaSpace&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;With JavaSpace it is also possible to organize objects in form of a tree structure or an array. Since remote processes may access these structures concurrently, they are called distributed data structures. A channel in JavaSpaces terminology is a distributed data structure that organizes messages in a queue. Several processes can write messages to the end of the channel, and several processes can read or take messages from the beginning of it. A channel is made up of two pointer&lt;br /&gt;objects, the head and the tail, which contain the numbers of the first and the last entry in the channel(Figure 2). It is possible to use several such channels, giving all Actors associated with a space the possibility to handle messages in a FIFO fair manner. Channels may also be bounded, meaning that an upper limit can be set for how many messages a channel may contain.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-3SdT5snl7m0/Tk3wRFqDC6I/AAAAAAAAAKU/e95g8hcZKxU/s1600/channel.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 217px;" src="http://3.bp.blogspot.com/-3SdT5snl7m0/Tk3wRFqDC6I/AAAAAAAAAKU/e95g8hcZKxU/s400/channel.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5642430084532079522" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4.4 Master Worker pattern&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The MasterWorker Pattern (sometimes called MasterSlave pattern) is used for parallel processing and is the basis pattern to work with javaspace. It follows a simple approach that allows applications to perform simultaneous processing across multiple machines or processes via a Master and multiple Workers. The Master hands out units of work to the "space", and these are read, processed and written back to the space by the workers. In a typical environment there are several "spaces", several masters&lt;br /&gt;and many workers; the workers are usually designed to be generic, i.e. they can take any unit of work from the space and process the task.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-qYcf17SL-mA/Tk3woz7958I/AAAAAAAAAKc/Ro4cmB-99DM/s1600/masterserverpattern.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="http://4.bp.blogspot.com/-qYcf17SL-mA/Tk3woz7958I/AAAAAAAAAKc/Ro4cmB-99DM/s400/masterserverpattern.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5642430492092262338" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. Discussions and Conclusions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In this paper we have discussed using JINI/javaspace technology to providing clustering supporting.The approach presented is useful in places which requires clusters to be set up to perform resource intensive works, like data processing or computing works. Our model can be realized using JINI/javaspace technology which are open source technologies and hence can be cost effective as compared to other proprietary solutions. As with government offices, this approach can prove&lt;br /&gt;beneficial as it provides effective solutions to clustering issues like scalability, fault tolerance,adaptability and utilization of resources. Creating adaptive systems in dynamic environments where services and clients come and go all the time and system components may dynamically be added and removed is a complex task. JavaSpaces has several features that can ease this task, including its ability to provide asynchronous and uncoupled communication in time, space and destination based on&lt;br /&gt;associative addressing. Since a JavaSpace stores objects, it is a simple means of distributing both messages and agent behavior. Our space based architecture utilizes these possibilities together with the actor role abstraction to simplify the creation of adaptive systems. The architecture consists of three main types of agents that interact asynchronously through the space.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6 .References&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[1] http://www.jini.org/wiki/Main_Page&lt;br /&gt;[2] http://java.sun.com/developer/technicalArticles/tools/JavaSpaces/&lt;br /&gt;[3] http://www.javafaq.nu/javaarticle150.&lt;br /&gt;html&lt;br /&gt;[4] http://www.softwarematters.org/jiniintro.&lt;br /&gt;html&lt;br /&gt;[5] http://www.artima.com/intv/swayP.html&lt;br /&gt;[6]http://www.javaworld.com/javaworld/jw102000/&lt;br /&gt;jw1002jiniology.&lt;br /&gt;html?page=1&lt;br /&gt;[7]http://java.sun.com/developer/technicalArticles/tools/JavaSpaces/&lt;br /&gt;[8]http://www.theserverside.com/tt/articles/article.tss?l=UsingJavaSpaces&lt;br /&gt;[9]http://www.artima.com/lejava/articles/dynamic_clustering.html&lt;br /&gt;[10]http://www.artima.com/intv/cluster2.html&lt;br /&gt;[11]Grid Computing: A Practical Guide To Technology And Applications By Ahmar&lt;br /&gt;Abbas,Publisher:Charles River Media&lt;br /&gt;[12]http://jan.newmarch.name/java/jini/tutorial/Jini.html&lt;br /&gt;[13]Grid computing Software Environment and tools By : Omer F. Rana (Editor) and Jose C. Cunha&lt;br /&gt;(Editor)&lt;br /&gt;[14]http://java.sun.com/developer/Books/JavaSpaces/&lt;br /&gt;[15]Dynamic Cluster Configuration and Management using JavaSpaces( K.A.Hawick and H.A.James&lt;br /&gt;Computer Science Division, School of Informatics)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-7414574503661007044?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/7414574503661007044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=7414574503661007044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/7414574503661007044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/7414574503661007044'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/08/jini-based-approach-towards-dynamic.html' title='A JINI based approach towards dynamic cluster Management and Resource Utilization'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-J0SffXC7qqE/Tk3vqoYD8TI/AAAAAAAAAKM/O4q42eiAGJU/s72-c/table3.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-3691454863934286918</id><published>2011-08-18T21:45:00.000-07:00</published><updated>2011-08-18T22:38:33.788-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Distributed Key Value Store'/><category scheme='http://www.blogger.com/atom/ns#' term='Semantic modelling of Hbase'/><category scheme='http://www.blogger.com/atom/ns#' term='Hbase'/><category scheme='http://www.blogger.com/atom/ns#' term='Hadoop'/><title type='text'>Semantic Modeling of Distributed key value stores featuring Hbase and Wikipedia</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Abstract&lt;/span&gt;—&lt;br /&gt;&lt;br /&gt;The research paper intends to do classification of different articles, documents of Wikipedia into a consistent ontology like persons, organizations, films, album's, video games, species and diseases, leveraging distributed key value store Hbase. Each entity is kept as a column within a column family which will be the individual ontologies as mentioned above. Each get operation to Hbase will be responsible for&lt;br /&gt;getting triples for the same key. The choice of key value store over any relational database promotes horizontal scalability and an increase in performance when the size of dataset is of the magnitude as that of Wikipedia. The proposed approach will&lt;br /&gt;help make semantic queries to the Wikipedia dataset and make intelligent inferences, which is difficult doing currently specially with traditional Relational databases. The approach presents statistical analysis of performance with approaches of RDBMS&lt;br /&gt;and that of Hbase a clone of Google's BigTable. &lt;br /&gt;Index Terms—KeyValue store, Hbase, Hadoop, EVI (Encoded Vector Index), Semantic Modeling, OWL, RDF, MapReduce.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;I.INTRODUCTION&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ONE of the challenges of semantic search and retrieval in natural language processing is the storage and manipulation of large amount of subjectpredicateobject&lt;br /&gt;expressions which can be RDF; making statements about particular resources. Most of the work of knowledge representation involves persisting the RDF data in relational&lt;br /&gt;databases or native representations called Triple Stores, or Quad Stores if context is also persisted in RDBMS. But circumstances are more complicated by the fact that web today has billions of pages and RDBMS are nowadays more rigorously questioned whether they can sustain the tight scalability constraints imposed by the massive growth in dataset over the past years and the trend still growing. More specifically, we have the following concerns whether RDBMS suitably fits for semantic data persistence Scalability, Querying, Efficiency, Query latency and&lt;br /&gt;organization Overhead. In this paper we present an approach of semantic modeling of RDF triples with Hbase, a sparse, distributed, persistent multidimensional sorted map for storing key values. The paper works for way of mapping RDF data to Hbase. It champions for a new approach of data processing pipeline.In relational databases, data is stored in conventional horizontal approach, which might present several problems like limitations in the number of columns, 1012 for DB2 and Oracle; as we might have several properties of an object which we have to model. Even if we are allowed more columns; RDBMS will have null in the vacant cells; which will kill up a lot of space and present additional problems when data size is substantially larger. Other limitations with RDBMS can be the difficulty in changing the schema like addition of columns later or maintaining timestamps. Hence a large penalty in performance has to be paid if data records are wider or the dataset is huge. Finally, RDBMS faces serious limitations when the questions are about addressing&lt;br /&gt;redundancy, parallelism and horizontal scalability. Flexibility of column oriented key value stores is that they can be either used as wide table consisting of millions of columns, grouped under a single column family or as a very tall table consisting of billions of rows. This facility can be suitably exploited to make a persistent store for ontologies. Our approach involves better natural approach for storing RDF data in Hbase. Here, each RDF subject or resource corresponds to a row key, and each RDF predicate or property corresponds to a column. Keyspaces can be used to represent RDF repositories, and column families can be used to represent named graphs. The major advantages with this approach will be that it encompasses all the advantages of Hbase like high availability, consistency, horizontal scalability and data partitioning across the cluster to name some. The system is optimized for resource oriented access patterns to RDF statements about a particular subject taken from Wikipedia.&lt;br /&gt;&lt;br /&gt;A semantic web is merely a collection of interrelated triples, the predicates of whose are data in themselves. Every object has an identifier that is unique and has a distinct meaning. A triple is a record containing three values (subject, predicate,&lt;br /&gt;object). A RDF model consists of statements, which asserts facts about a resource. Each statement has three parts and is also known as a triple. A triple might relate one object to another or can link a constant value to a subject. Nepal is a mountainous country and Nepal's zip code is 977, are two of the cases. There are several optimizations which are needed to be performed for modeling triples with Hbase. In our model each record consists of numerous fields. The fields again contains data that belongs to another object forming a tree like structure. An object is not modeled explicitly, but rather by a series of linked tables distributed across the cluster on top of distributed File system (HDFS).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;II.PROBLEMS TO BE MET&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A.Identification of unique triples There can be cases when we might have to uniquely&lt;br /&gt;identify the triples, when the combination of subject,predicate and the object is itself not unique.&lt;br /&gt;&lt;br /&gt;B.Optimal Search performance given a Subject and a Predicate&lt;br /&gt;&lt;br /&gt;How could we possibly perform search in key value store given Subject and a Predicate ?&lt;br /&gt;&lt;br /&gt;C.Optimal Search performance given a Predicate and an Object&lt;br /&gt;&lt;br /&gt;How could we possibly perform search in key value store given Predicate and an Object ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;III.SOLUTIONS TO PROBLEMS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We address the problems mentioned above by maintaining custom indexes with EVI indexing. Maintained separate triple tables for each of the major datatypes needed (varchar(255), longtext, integer, double, datetime). Added multiple indexes for the two ways the tables are used: a subject predicate combined key and a predicateobject&lt;br /&gt;combined key. MapReduce utilization in the creation of indexes offers an effective yet powerful way for distribution of processing across the cluster. The index tables consists serialized composite keys and cell value consists either the value or&lt;br /&gt;subject of the triple. The figure above gives the picture of how we are modeling&lt;br /&gt;Hbase and its indexes in order to model semantic data. The first model presents a big table having predicates as their column names, here we are exploiting the fact that Hbase being a clone of Big Table can support millions of columns. Similar categories are grouped under a column family, we have categorized articles under person, Movies, Films, Organization, Album's, Video Games, Species, diseases etc..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;IV.LEXICOGRAPHICAL ORDERING&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As with Hbase we have Lexicographical ordering of strings. The keys in the main table as well as indexes are ordered in the following fashioned. If Σ has a total order (cf.alphabetical order) one can define a total order on Σ* the lexicographical order. since Σ is finite, it is always possible to define an ordering on Σ and consequently on Σ*. If Σ = {0, 1} and 0 &lt; 1, then the lexicographical ordering of Σ* is ε &lt; 0 &lt; 00 &lt; 000 &lt; … &lt; 011 &lt; 0110 &lt; … &lt; 01111 &lt; … &lt; 1 &lt; 10 &lt; 100 &lt; … &lt; 101 &lt; … &lt; 111 … and so on.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;V.COMPRESSION&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hbase sits on top of HDFS the Hadoop distributed file system. Using LZO compression will allow for reduction in the size of the data and also reduction in the read time of Hard Drives. The compression additionally allows for its block to be split into chunks for parallel processing with Hadoop.Creating indexes demands for reading data from HDFS and inserting them into Hbase, so compression enhances the performance of MapReduce process in general. Moreover, compressing data on Hbase increases its performance because an expensive I/O is reduced and useless bandwidth usage is negated which can sometimes saturate clusters, thus improving performance.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;VI.SPARSE DATA&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In Hbase, given row which in our case is the keyword of search can have any number of columns in each group or column family. Here we will have row based gaps. So, the&lt;br /&gt;Hbase table will be sparse helping for quicker random reads. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;VII.CONCEPTUAL MODELING OF DATA&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;A.Modeling of Main Table&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The main table for storing RDF triples will be modeled as follows.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-YL58ozxoMOQ/Tk3rcUNEVjI/AAAAAAAAAJ8/BSaXmNv2DQw/s1600/table1.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 278px;" src="http://1.bp.blogspot.com/-YL58ozxoMOQ/Tk3rcUNEVjI/AAAAAAAAAJ8/BSaXmNv2DQw/s400/table1.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5642424779857483314" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The table above provides how subject, object and predicates will be stored in the main table in Hbase. The Subject will be modeled as the row key whereas the object&lt;br /&gt;can be the URI or the value itself. The predicates form the column name and are grouped under a column family,Persons in our case. There can be millions of predicates as the columns within a family, the table above just just gives three&lt;br /&gt;of them. Theoretically a Column Family can accommodate infinite numbers of columns. Timestamps allows us to keep different Uri's or values for a given subject key. The&lt;br /&gt;conceptual modeling although looks sparse, the table space is not eaten up because physically vacant cells has no significance. To retrieve a value, the user has to do a get using three keys, row key+column key+timestamps &gt;value .&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;B.Modeling of Index Tables&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The index tables will be modeled as follows. There will be two index tables one for S+P combination and other for P+O combination so that query for every type could be performed adequately. Tables below shows the cases for two of them.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-IxFbO2kpr-E/Tk3sAfRZsQI/AAAAAAAAAKE/b3fxDcvURn8/s1600/table2.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 398px; height: 235px;" src="http://2.bp.blogspot.com/-IxFbO2kpr-E/Tk3sAfRZsQI/AAAAAAAAAKE/b3fxDcvURn8/s400/table2.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5642425401303740674" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There is a single column family and a single column in this case. The tables can be queried with the S+P or O+P combinations and get the list of serialized values of results, which can be later used to query whatever we want from the main table.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;VIII.DISTRIBUTED&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hbase being built on top of Hadoop distributed Filesystem, the underlying data can be spread across several nodes in the cluster. It can either sit on top of HDFS or Amazon S3. The data will be replicated across several participating nodes in the cluster, which protects data in case one or several node goes down and allows for distributed processing and querying of data. The URL is being inverted simply to keep related data together. Although conceptually our data sits inside Hbase table similar to that of a Relational database table, but Hbase has a special file format for saving its data called Hfile format which are eventually stored in HDFS. So, for proper functioning and data persistence Hbase relies upon HDFS the Hadoop distributed FileSystem. Any file is split into one or more blocks and these blocks are stored and distributed across several datanodes in the cluster. Thus HDFS facilitates with data replication, Robustness, countering node failures, cluster&lt;br /&gt;rebalancing, maintaining data integrity and managing cluster in overall.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;IX.MODEL AND SEMANTICS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The semantic model must be able to express all the entities,facts, relations between facts and properties between relations. Currently OWL(Web Ontology Language) serves&lt;br /&gt;for knowledge representation. It can express properties between relations and express relations between facts. In OWL and RDFS all the objects( persons, Places, URLS) are represented as entities.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;X.MAPREDUCE FOR INDEXING&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Effective indexing serves as the backbone of any search and retrieval systems. At the same time, the system should be effectively and quickly be able to prepare indexes. Preparing indexes for huge datasets like Wikipedia can be a daunting and time consuming tasks with traditional approaches, Consider the rate at which the dataset is growing daily and newer indexes has to be prepared frequently. Imagining&lt;br /&gt;Google doing it with billions of pages and petabytes of data can provide us some insights into the effectiveness and swiftness of their technology. Our approach to indexing will utilize MapReduce; the notion Google popularized and has really evolved as a defacto for analyzing large datasets of the magnitudes of petabytes over the past years. We will utilize MapReduce process to generate indexes from the main Hbase table. The process will be executed in parallel over the cluster&lt;br /&gt;of commodity machines. The Map operations are distributed across numerous computers across the cluster by automatically partitioning the input dataset into M shards.&lt;br /&gt;Reduce invocations are also distributed by partitioning the intermediate key space into R pieces using a hash partitioning function(e.g., hash(key) mod R).Map takes one pair of data with a type in one data domain, and returns a list of pairs in a&lt;br /&gt;different domain:&lt;br /&gt;&lt;br /&gt;Map(k1,v1) -&gt; list(k2,v2)&lt;br /&gt;K1→ Multidimensional keys for row data, V1→ cell alue&lt;br /&gt;&lt;br /&gt;The function is applied to all items in the input dataset, which produces a list of (k2,v2) pairs for each call. All the intermediate pairs are collected and are grouped together, creating one group for one different generated keys. The&lt;br /&gt;reduce function is then applied to each group, which then produces collection of values in the same domain.&lt;br /&gt;&lt;br /&gt;Reduce(k2, list (v2)) -&gt; list(v3)&lt;br /&gt;k2 → S+P or P+O, v2 → List of all values corresponding to common key, V3 → serialized list. The diagrammatic representation of the overall MapReduce process is shown in the diagram below. The image is taken from one of the original slides of Google present at Google Labs about MapReduce.&lt;br /&gt;&lt;br /&gt;Thus MapReduce transforms all the key value pairs into a list of values, the list of values in our case are either the serialized list of all object values making up a relationship or the serialized list of all the subjects, as depicted in the column of&lt;br /&gt;figure 3 and 4. The serialized binary data will be inserted into the cell corresponding the particular key. The benchmark for the time required to index will be provided appropriately after experimentation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;XI.WORDNET&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;WordNet is a semantic lexicon for the English language developed at the Cognitive Science Laboratory of Princeton University. WordNet distinguishes between words as literally appearing in texts and the actual senses of the words. A set of words that share one sense is called a synset. Thus, each synset identifies one sense (i.e., semantic concept). Words with multiple meanings (ambiguous words) belong to multiple synsets. As of the current version 2.1, WordNet contains 81,426 synsets for 117,097 unique nouns. (WordNet also includes other types of words like verbs and adjectives, but we consider only nouns in this paper.) WordNet provides relations between synsets such as hypernymy/hyponymy (i.e., the relation between a subconcept &lt;br /&gt;and a superconcept) and holonymy/meronymy (i.e., the relation between a part and the&lt;br /&gt;whole); for this paper, we focus on hypernyms/hyponyms. Conceptually, the hypernymy relation in WordNet spans a directed acyclic graph (DAG) with a single source node called Entity. Wordnet will be leveraged for finding relationship between words.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;XII.CONCLUSION&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In this paper we discussed about Hbase and semantic modeling of Wikipedia data to Hbase in order to do intelligent search over Wikipedia data. we also presented an index modeling technique for storing RDF triples in Hbase. We leveraged distributed MapReduce operations to the large dataset of Wikipedia and modeled its data and indexes appropriately. We presented a distributed and highly redundant alternative to making the solution. The comparison of Hbase modeling is to be done with Mysql and statistics are to be presented. The system was able to produce intelligent&lt;br /&gt;search with Wikipedia data and was able to produce results which with normal query in Wikipedia we cannot have. The approach also promotes the usage of distributed key value store, Hbase; as an appropriate datastore for modeling a semantic web.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;XIII.FUTURE WORK&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A large scale semantic modeling of Wikipedia data remains to be done. The immediate goal is to workout an effective and highly scalable design to scale up to TeraBytes of data. Some areas to be explored are, Improvements in efficiency including query caching, disk allocation, and indices optimization. Latency, query performance, and relevance of results is at top priority. Although some tests have earlier been done regarding performance of Hbase with Hadoop, we are still to convince that Hbase forms an effective datastore for modeling semantic web data.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;References&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[1] Indexing Goes a new direction, by Richard Winter;&lt;br /&gt;http://www.wintercorp.com/rwintercolumns/ie_9901.html.&lt;br /&gt;[2] Jeffrey Dean &amp; sanjay Ghemawat, “MapReduceA&lt;br /&gt;simplified data&lt;br /&gt;processing on Large Clusters”, http://labs.google.com/papers/mapreduceosdi04.&lt;br /&gt;pdf&lt;br /&gt;[3] Mark Slee, Aditya Agarwal and Marc Kwiatkowski, Thrift: Scalable&lt;br /&gt;CrossLanguage&lt;br /&gt;Services Implementation&lt;br /&gt;[4] B. Smith, “An approach to graphs of linear forms (Unpublished work&lt;br /&gt;style),” unpublished.&lt;br /&gt;[5] Loannis Konstantinou, Evangelos Angelou, Dimitrios Tsoumakos and&lt;br /&gt;Nectarios Koziris,{ikons, eangelou, dtsouma,&lt;br /&gt;nkoziris}@cslab.ece.ntua.gr} Distributed Indexing of Web Scale&lt;br /&gt;Datasets for the Cloud&lt;br /&gt;[6] Tim Lu, Shan Sinha, Ajay Sudan. “Panaché: A Scalable Distributed&lt;br /&gt;Index for Keyword Search”,{timlu, ssinha, ajaytoo} @mit.edu&lt;br /&gt;[7] Iadh Ounis, Craig Macdonald,Richard M. C. McCreadie, Comparing&lt;br /&gt;Distributed Indexing: To MapReduce or Not?&lt;br /&gt;[8] Apache Software Foundation. The apache hadoop project.&lt;br /&gt;http://hadoop.apache.org&lt;br /&gt;[9] S.Ghemawat, H. Gobiff, and S.T.Leung. The google FileSystem.&lt;br /&gt;[10] Sergey Menlik, Sriram Raghavan, Beverly Yang, Hector GarciaMolina,&lt;br /&gt;Building a FullText&lt;br /&gt;distributed system for web.&lt;br /&gt;http://www10.org/cdrom/papers/pdf/p275.pdf&lt;br /&gt;[11] Rasmus Pagh , S. Srinivasa Rao,”Secondary Indexing in One&lt;br /&gt;Dimension”&lt;br /&gt;[12] Tadeusz Morzy, Maciej Zakrzewicz, “ Group Bitmap Index: A Structure&lt;br /&gt;for Association Rules Retrieval”.&lt;br /&gt;[13] Elizabeth O’Neil and Patrick O’Neil,Kesheng Wu,”Bitmap Index Design&lt;br /&gt;Choices and Their Performance Implications”.&lt;br /&gt;[14]Daniel J. Abadi Peter A. Boncz Stavros Harizopoulos,”Columnoriented&lt;br /&gt;Database Systems”.&lt;br /&gt;[15] Johan Jonsson, Coldbase A&lt;br /&gt;ColumnOriented&lt;br /&gt;InMemory&lt;br /&gt;Database.&lt;br /&gt;[16] Biswanath Panda,Joshua S. Herbach,Sugato Basu, Roberto J. Bayardo,&lt;br /&gt;Google, Inc. PLANET: Massively Parallel Learning of Tree Ensembles&lt;br /&gt;with MapReduce.&lt;br /&gt;[17] G. W. Juette and L. E. Zeffanella, “Radio noise currents n short sections&lt;br /&gt;on bundle conductors (Presented Conference Paper style),” presented at&lt;br /&gt;the IEEE Summer power Meeting, Dallas, TX, June 22–27, 1990, Paper&lt;br /&gt;90 SM 6900&lt;br /&gt;PWRS.&lt;br /&gt;[18] Ian Foster Carl Kesselman, “ Globus:A Metacomputing Infrastructure “.&lt;br /&gt;[19] ohn Kubiatowicz, David Bindel, Yan Chen, Steven Czerwinski,, Patrick&lt;br /&gt;Eaton, Dennis Geels, Ramakrishna Gummadi, Sean Rhea,Hakim&lt;br /&gt;Weatherspoon, Westley Weimer, Chris Wells, and Ben&lt;br /&gt;Zhao.OceanStore: An Architecture for GlobalScale&lt;br /&gt;Persistent Storage.&lt;br /&gt;[20] Colby Ranger, Ramanan Raghuraman, Arun Penmetsa, Gary Bradski,&lt;br /&gt;Christos Kozyrakis, Evaluating MapReduce for Multicore&lt;br /&gt;and&lt;br /&gt;Multiprocessor Systems&lt;br /&gt;[21] Brian F. Cooper, Raghu Ramakrishnan, Utkarsh Srivastava, Adam&lt;br /&gt;Silberstein,Philip Bohannon, HansArno&lt;br /&gt;Jacobsen, Nick Puz, Daniel&lt;br /&gt;Weaver and Ramana Yerneni Yahoo! Research. “PNUTS: Yahoo!’s&lt;br /&gt;Hosted Data Serving Platform”&lt;br /&gt;[22] Apache Software Foundation,The apache Hbase project&lt;br /&gt;http://hbase.apache.org&lt;br /&gt;[23] Morteza Zaker, Somnuk PhonAmnuaisuk,&lt;br /&gt;SuCheng&lt;br /&gt;Haw, An Adequate&lt;br /&gt;Design for Large Data Warehouse Systems: Bitmap index versus Btree&lt;br /&gt;index&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-3691454863934286918?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/3691454863934286918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=3691454863934286918' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/3691454863934286918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/3691454863934286918'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2011/08/semantic-modeling-of-distributed-key.html' title='Semantic Modeling of Distributed key value stores featuring Hbase and Wikipedia'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-YL58ozxoMOQ/Tk3rcUNEVjI/AAAAAAAAAJ8/BSaXmNv2DQw/s72-c/table1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-4800469405578588783</id><published>2010-08-13T05:01:00.000-07:00</published><updated>2010-08-13T05:06:27.109-07:00</updated><title type='text'>Ubuntu Commands for viewing hardware details</title><content type='html'>View Hard disk space &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;bacharya@bacharya:~$df -h&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/sda3             185G   59G  118G  34% /&lt;br /&gt;varrun                1.7G  124K  1.7G   1% /var/run&lt;br /&gt;varlock               1.7G     0  1.7G   0% /var/lock&lt;br /&gt;udev                  1.7G   44K  1.7G   1% /dev&lt;br /&gt;devshm                1.7G  336K  1.7G   1% /dev/shm&lt;br /&gt;lrm                   1.7G   40M  1.6G   3% /lib/modules/2.6.24-28-generic/volatile&lt;br /&gt;/dev/sda1             464M   47M  393M  11% /boot&lt;br /&gt;/dev/sda4              43G  190M   40G   1% /others&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;View memory details (in MB)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;bacharya@bacharya:~$free -m&lt;/span&gt;&lt;br /&gt;             total       used       free     shared    buffers     cached&lt;br /&gt;Mem:          3286       3109        177          0        340        992&lt;br /&gt;-/+ buffers/cache:       1776       1510&lt;br /&gt;Swap:         3906          0       3906&lt;br /&gt;&lt;br /&gt;View Processes &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;bacharya@bacharya:~$top&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;View processor details&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;bacharya@bacharya:~$ cat /proc/cpuinfo&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;processor : 0&lt;br /&gt;vendor_id : GenuineIntel&lt;br /&gt;cpu family : 15&lt;br /&gt;model : 4&lt;br /&gt;model name : Intel(R) Pentium(R) 4 CPU 2.80GHz&lt;br /&gt;stepping : 9&lt;br /&gt;cpu MHz : 2800.531&lt;br /&gt;cache size : 1024 KB&lt;br /&gt;fdiv_bug : no&lt;br /&gt;hlt_bug : no&lt;br /&gt;f00f_bug : no&lt;br /&gt;coma_bug : no&lt;br /&gt;fpu : yes&lt;br /&gt;fpu_exception : yes&lt;br /&gt;cpuid level : 5&lt;br /&gt;wp : yes&lt;br /&gt;flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc up pni monitor ds_cpl tm2 cid cx16 xtpr lahf_lm&lt;br /&gt;bogomips : 5601.06&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-4800469405578588783?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/4800469405578588783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=4800469405578588783' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4800469405578588783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4800469405578588783'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2010/08/ubuntu-commands-for-viewing-hardware.html' title='Ubuntu Commands for viewing hardware details'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-891872155351227051</id><published>2010-02-17T01:47:00.000-08:00</published><updated>2010-12-21T20:23:55.943-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apache pig'/><category scheme='http://www.blogger.com/atom/ns#' term='Requirements for Pig'/><category scheme='http://www.blogger.com/atom/ns#' term='pig'/><category scheme='http://www.blogger.com/atom/ns#' term='pig tutorial'/><title type='text'>Apache Pig Tutorial</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_IsXOdH9Tay8/S3vUBVDCd_I/AAAAAAAAAFM/okWBt5ug-tk/s1600-h/pig_work.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 400px; height: 307px;" src="http://1.bp.blogspot.com/_IsXOdH9Tay8/S3vUBVDCd_I/AAAAAAAAAFM/okWBt5ug-tk/s400/pig_work.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5439174094274852850" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Apache Pig Tutorial&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Pig is a platform for analyzing large data sets that consists of a high-level language for expressing data analysis programs, coupled with infrastructure for evaluating these programs. The salient property of Pig programs is that their structure is amenable to substantial parallelization, which in turns enables them to handle very large data sets. Defined by apache &lt;a href="http://hadoop.apache.org/pig/"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Requirements for Pig &lt;br /&gt;&lt;br /&gt;have your Hadoop system setup. Because Pig is not meant to run alone but in coordination with HDFS/MapReduce.&lt;br /&gt;&lt;br /&gt;General WorkFlow of Pig is depicted in the workFlow image.&lt;br /&gt;First step invloves loading data . Data can be logs of sql dumps or text files. The second phase involves manipulation of data like filtering, using foreach, distinct or any user defined functions. The third step involves grouping the data. And the final stage involves writing the data into the dfs or repeating the step if another dataset arrives.&lt;br /&gt;&lt;br /&gt;Installation of Hadoop is required for Pig.Make sure we have our namenode and tasktracker set in hadoop configuration files. These configurations are necessary because Pig has to connect to the HDFS namenode and JobTracker node.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Running pig jobs in a cluster&lt;/span&gt;&lt;br /&gt;Copy the sample dump to the DFS&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;bin/hadoop fs -copyFromLocal /home/hadoop/passwd .&lt;/span&gt;&lt;br /&gt;In my case I am using a dump of Passwd from /etc/passwd&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Edit the pig.properties to mention cluster = nameofJobTracker(Map/Reduce)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Edit /bin/Pig.sh file to include the following line&lt;span style="font-weight:bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;export JAVA_HOME =path to your java_home&lt;br /&gt;export PIG_CLASSPATH=pathto hadoop/conf&lt;br /&gt;&lt;br /&gt;Now run the pig command from the pig installation directory&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/bin/pig&lt;/span&gt;&lt;br /&gt;this should start the namenode and tasktracker of hadoop&lt;br /&gt;If not then we have problems in the configurations. check configuration settings.&lt;br /&gt;&lt;br /&gt;Now run your queries, and finally dump the output .&lt;br /&gt;&lt;br /&gt;Success !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-891872155351227051?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/891872155351227051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=891872155351227051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/891872155351227051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/891872155351227051'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2010/02/apache-pig-tutorial.html' title='Apache Pig Tutorial'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_IsXOdH9Tay8/S3vUBVDCd_I/AAAAAAAAAFM/okWBt5ug-tk/s72-c/pig_work.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-537022874105864276</id><published>2010-02-13T21:08:00.000-08:00</published><updated>2011-10-22T03:29:14.372-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='A view of Nepal from the eye of a Nepali'/><category scheme='http://www.blogger.com/atom/ns#' term='Underutilization of resources'/><category scheme='http://www.blogger.com/atom/ns#' term='Nepals View'/><category scheme='http://www.blogger.com/atom/ns#' term='Poverty'/><category scheme='http://www.blogger.com/atom/ns#' term='Nepal'/><category scheme='http://www.blogger.com/atom/ns#' term='Conflict in nepal'/><category scheme='http://www.blogger.com/atom/ns#' term='Possibilities'/><category scheme='http://www.blogger.com/atom/ns#' term='Third world country'/><title type='text'>Disperity and dearth : Does it portrays my identity : A retrospective view of my understanding to my country! Search for Hope.</title><content type='html'>&lt;div align="justify"&gt;Being born in the one of the most impoverished nations in the world, having seen and experienced what hunger is, I have seen children's playing in war zone and conflict shattering dreams of many, resulting in a bruised socio-economical and political condition of the beautiful Himalayan Shangrilla.I supposed, the main cause of this was nothing but poverty and the gap created by poverty between different classes of our society, My definition of a better scientific world when I was in Nepal was (not necessarily a world created with great scientific achievements and lavishness),a place where people would get two times a meal daily, a place where children would not be forced to carry weapons but rather get a chance to go to school and get proper education where there would not be any difference between caste and creed, where peace and harmony are the languages known rather than war and anguish and where nobody has to give his life either out of any conflict or poverty.This would really be a great challenge for science filling the gap ,the difference between the west and the third world countries like Nepal.My thought is that the next step of science should be in the scientific and uniform distribution of the existing technological achievements throughout the world, As long as there is unevenness in the distribution of the assets of science there will be war zone, inequality, malnutrition and diseases. Up until now, We have had scientific achievements and its distribution in a localized way,leading to the socio-economical segregation between different parts of the world today, So the next step should be to bridge that gap created between technological society and the existing backward society.&lt;br /&gt;&lt;br /&gt;Science is knowledge,As until now we have utilized this knowledge in a positive as well as a negative way,and today we are proud to have achieved what our forefathers used to see in dreams, still our achievements is in a tarnished state and the finishing is still left to be done. Hereafter,Science should focus on solidifying its achievements in order to avoid the unnatural disability prevalent today amongst different sectors of world and society and the balance will be preserved.Similar to the ecosystem if the balance between production and consumption is uneven it will result in the unnatural disturbance, We have to mobilize the achievements of Science in order to avoid such disturbance like hunger, poverty, diseases and illiteracy.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Having got a chance to study in Japan, Luckily I got a chance to see what science and technology has had its effect in this foreign soil, At last for a moment I felt I had arrived to the place where I wanted my childhood to nurture, the difference I saw was imminent. A big building I could see reminded me of a common hut in my village made up of bamboo and soil, Huge bridge across the river I compared with the wooden logs we used to cross the river, Big roads with huge number of vehicles was of reminder of a pathway in my village where I watched sheep's march and I followed behind those. When I saw those crowds of people running after their destinations I compared myself when I used to run after the lost kites in the sky. My stay in Japan was really amazing, great food to eat, I could use laptops now and learned a lot of things about computers, society and cultures. My experience was similar to the dream I used to see when I was a child, At last I was in my dreamland. I was so much immersed in this world that I left all the agony and frustrations at my country.&lt;br /&gt;&lt;br /&gt;At the same time when I looked back the ruins of my motherland I believed that the role science has played in getting the human generation to 21st century has had its limitations and its role is still unfulfilled up until when country like mine will exist in this world.&lt;br /&gt;&lt;br /&gt;My personal view regarding scientific change is that Change depends upon the heart of those who initiates it,There may arrive time when civilization may reach inter-terrestrial level and expand its horizon throughout this universe, As, the foundation of which has already been created in the developed countries like the US.Poverty is like a disease, it should be stopped from spreading. Back in my country there are many places like Rolpa where we see people fighting for rotten grains unsuitable to eat, Although science has gone a long way still we see such happenings in many parts of the world, &lt;br /&gt;while the rest of the world had been developing My country I looked back was going to dark ages day by day. But, one day I heard that some initiation to bridge the gap between technology had been taken by some group of enthusiasts back in my country and they were working for was for the complete transformation of the villages in remote areas of Nepal.&lt;br /&gt;&lt;br /&gt;The place called Myagdi,in the heights of the Himalayas it lied seven hours hard climb to the nearest roadway, Those people never saw a telephone and even electricity was out of reach. School was miles away and students didn't have pencils or paper to write.There arose a man inspirational a Nepali citizen after he finished his studies in USA came out to build a hi school in this remote area.While he was teaching in that hi school He had to travel for two days to reach the nearby city to check his emails, This condition He informed in BBC and when BBC publicized his ideas, lots of volunteers form Europe and Americas came to help, When he installed four used donated computers in his school teaching to students how to use it, This was a start, With the help of donated computers and wireless devices, he had setup relay stations around his village, Now all of sudden these peoples were connected to rest of the world with the latest technology. The impact was imminent, the people have started using computers that were once a waste for the westerners, Suddenly teleteaching has started, local people benefited form the medical facilities from the doctors of big cities, and villagers now e market their local products and household goods. People now use online libraries,online health clinic, and e shopping. Really the wireless boon of the science really had a tremendous impact upon the socio-economical aspects of the rural people. The same moment concentrated not only to Myagdi village, but seeing its success the wireless were similarly set up in the nearby villages and rural parts of Nepal, and the once isolated villages are now a global village connected by one of the most fantastic technologies of Science.&lt;br /&gt;So, An example set up, the impact the wireless project had brought about a revolutionary effect in a then so called Dark Village. There are certainly more such rural parts as Myagdi in Nepal and in many parts of the world. Together and with the aid of some of the fantastic innovations of science we can make the world a better place to live. &lt;br /&gt;&lt;br /&gt;The places where it was very difficult to reach and where it was almost impossible to access information regarding outside world. Science was making things possible and was easing peoples life in a remarkable way. How did that happened is really a wonderful story I take a great morale from. A man called Mahabir Pun a Nepali student in USA initiated a per dollar program from the abroad Nepalese and collected that money and went back to the inaccessible villages of Nepal and set up wireless devices which enabled the poor mountain peoples an not only an easy access to information and internet but also they could now easily communicate with other peoples of other mountainous regions easily. It seems a small progress to most of the people, But it turned out to be a miraculous aid for the people of that region. Just after 1 year of the installation of the wireless device suddenly the lifestyle of those people changed dramatically and their purchasing power rose at once. Now here we see how can a small change brought about by science can bring about a tremendous change in peoples life. Not only it was the technology which changed their status from normal people but also it enabled them to learn and acquire knowledge in a much similar way the westerners do. &lt;br /&gt;This step was a bold step which filled the gap between the people of remote areas the rich peoples of the cities. A small step like that can really be a giant step for the whole mankind.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-537022874105864276?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/537022874105864276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=537022874105864276' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/537022874105864276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/537022874105864276'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2010/02/disperity-and-dearth-does-it-portrays.html' title='Disperity and dearth : Does it portrays my identity : A retrospective view of my understanding to my country! Search for Hope.'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-5292012475850474973</id><published>2010-01-29T00:25:00.001-08:00</published><updated>2010-11-18T04:06:25.565-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Problem'/><category scheme='http://www.blogger.com/atom/ns#' term='UTF-8'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='Mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Unicode Encoding'/><category scheme='http://www.blogger.com/atom/ns#' term='Java JSF'/><title type='text'>Unicode Encoding Problems with Java- Mysql-Tomcat web page and solution</title><content type='html'>There are many things to take care if we want to correctly display utf-8 characters from mysql properly. Also if we wish to do internationalization based upon database, the following steps serves as a good place to start with.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Thing to take care :&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;first :&lt;/span&gt; while entering utf-8 data into the table from shell be careful to set names as follows : &lt;br /&gt;By setting name as utf8 we are telling mysql to use the given charset. We need to do it every time we log into the server. If not done mysql regards whatever entered data to the table in the default charset format, which will not make your program display characters properly.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;set names utf8 collate utf8_general_ci&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Also we can use this command mysql &gt; default-character-set=utf8;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Check your mysql server encodings by this command:&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;show variables like 'character\_set\_%';&lt;/span&gt;&lt;br /&gt; Make sure you have similar response.  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; Variable_name            | Value  |&lt;/span&gt;&lt;br /&gt;&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;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;If not edit /etc/my.cnf to make the encodings to utf8 as shown in the above table.&lt;/span&gt; Although its not necessary to change all the fields to utf8. I have the following configuration and its working perfectly fine. I am facing no problem of encodings provided i fulfill all other steps carefully.&lt;br /&gt;&lt;br /&gt; Variable_name            | Value  |&lt;br /&gt;+--------------------------+--------+&lt;br /&gt;| character_set_client     | latin1 | &lt;br /&gt;| character_set_connection | latin1 | &lt;br /&gt;| character_set_database   | utf8   | &lt;br /&gt;| character_set_filesystem | binary | &lt;br /&gt;| character_set_results    | latin1 | &lt;br /&gt;| character_set_server     | utf8   | &lt;br /&gt;| character_set_system     | utf8   | &lt;br /&gt;+--------------------------+--------+&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;second :&lt;/span&gt; &lt;span style="font-weight:bold;"&gt;create the database with character set utf8&lt;/span&gt;, create table with charset utf8 also make the columns of table utf8 . we need to do this to make sure we get characters correctly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Third :&lt;/span&gt; set the page charset and default encoding to utf8 if we are displaying table data in a web page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;%@ page pageEncoding="UTF-8" %&gt;&lt;br /&gt;&lt;Met a http-equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Adding these lines instructs the browser to use the utf8 encoding for the page.&lt;br /&gt;By performing step three we will be able to see hard coded utf8 characters in the page properly but this might not work in case of database backed utf8 encoded data. For it to work we need to follow step first and second properly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This also might not work in case the reponse is coming from server. So we have to explicitely tell the server to use utf8 as encoding for our pages, So we need to go to step fourth.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Fourth :&lt;/span&gt; We may also have to write a custom filter to encode the response sent by the server as utf-8. Define a filter and set the responseEncoding to utf-8&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Write a ResponseFilter class implementing Filter. and in the doFilter() method set following to tell the server explicitely that you want utf-8 encoded response. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;response.setCharacterEncoding("utf-8");&lt;br /&gt;request.setCharacterEncoding("utf-8");&lt;br /&gt;chain.doFilter(request,response);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This should display any utf8 characters properly in any web page or console.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step Five : Well this is not necessary if we performed all the above steps above, at least not necessary for latest Mysql connectors. But for older versions of the driver we need to add the following to the connection url&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;jdbc:mysql://localhost/table-test?useUnicode=yes&amp;amp;characterEncoding=UTF-8&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note : - Have to set charset utf8 before entering any data into table from the mysql prompt.&lt;br /&gt;&lt;br /&gt;Must Read article :&lt;br /&gt;&lt;a href="http://balusc.blogspot.com/2009/05/unicode-how-to-get-characters-right.html"&gt;unicode-how-to-get-characters-right&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If problems persists ! feel free to post your problem in this blog. I shall try to solve the issue. Well it worked for me in case of Japanese, Arabian, DevNagari characters and others.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-5292012475850474973?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/5292012475850474973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=5292012475850474973' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5292012475850474973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5292012475850474973'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2010/01/mysql-encoding-problems-and-solution.html' title='Unicode Encoding Problems with Java- Mysql-Tomcat web page and solution'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-8935937016075631937</id><published>2010-01-06T22:18:00.000-08:00</published><updated>2010-01-29T01:28:53.135-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Facelets'/><category scheme='http://www.blogger.com/atom/ns#' term='Richfaces'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring JBOSS configuration'/><title type='text'>Richfaces -Facelets -Spring JBoss configuration</title><content type='html'>JBOSS version is : jboss-4.2.0.GA&lt;br /&gt;&lt;br /&gt;In order to run richfaces application with JBOSS-4.2.0.GA we need to have the following libraries in the web-inf /lib directory &lt;br /&gt;&lt;br /&gt;Commons-beanutils&lt;br /&gt;commons-digester&lt;br /&gt;el-impl&lt;br /&gt;el-ri&lt;br /&gt;jsf-facelets&lt;br /&gt;richfaces-api&lt;br /&gt;richfaces-impl&lt;br /&gt;richfaces-ui&lt;br /&gt;&lt;br /&gt;Other libraries are by default included in JBOSS installation so we dont need to add other JSF libraries and commons libraries. If added could cause deployment problems.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-8935937016075631937?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/8935937016075631937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=8935937016075631937' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/8935937016075631937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/8935937016075631937'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2010/01/richfaces-facelets-spring-jboss.html' title='Richfaces -Facelets -Spring JBoss configuration'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-7145968835953799372</id><published>2010-01-03T23:34:00.000-08:00</published><updated>2010-12-21T20:25:04.597-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unresolved compilation problem'/><category scheme='http://www.blogger.com/atom/ns#' term='java compilation problem'/><title type='text'>eclipse java.lang.Error: Unresolved compilation problem solved</title><content type='html'>Recently I was working on a project when suddenly i had this error in my eclipse :&lt;br /&gt;&lt;br /&gt;java.lang.Error : Unresolved compilation problem&lt;br /&gt;&lt;br /&gt;Error bubble were shown at all the source files. I went through the web to solve this issue but nothing was working to me. Finally what I did was &lt;br /&gt;&lt;br /&gt;Right clicked the project&lt;br /&gt;set the compiler compliance level to 1.6&lt;br /&gt;Initially it was set to 1.5&lt;br /&gt;Now the problem was solved. I guess it was the issue with different versions of JRE used to build.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-7145968835953799372?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/7145968835953799372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=7145968835953799372' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/7145968835953799372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/7145968835953799372'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2010/01/eclipse-javalangerror-unresolved.html' title='eclipse java.lang.Error: Unresolved compilation problem solved'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-5797864992487138095</id><published>2009-12-13T02:00:00.000-08:00</published><updated>2010-01-29T01:26:39.704-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jini'/><category scheme='http://www.blogger.com/atom/ns#' term='Jini Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='Running Jini in Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='UBUNTU'/><title type='text'>Getting started with JINI in Ubuntu Linux</title><content type='html'>Get yourself running JINI in UBUNTU with the following steps :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Download the java version of JINI distribution from the following page, because the linux versions is facing some problems so its better to download the java version even if you are Linux users.&lt;br /&gt;&lt;br /&gt;http://www.jini.org/wiki/Category:Getting_Started&lt;br /&gt;&lt;br /&gt;Run the Jini_2.1.jar from the command line by using the following command&lt;br /&gt;java -cp Jini_2.1.jar install&lt;br /&gt;&lt;br /&gt;follow the procedure for full or custom installation of JINI&lt;br /&gt;&lt;br /&gt;After installtion go to jini2_1/installverify/support folder of the installation&lt;br /&gt;Before you can run the launch-all you have to edit the launch-all file&lt;br /&gt;&lt;br /&gt;search export LD_ASSUME_KERNEL=2.2.5 line in the file&lt;br /&gt;&lt;br /&gt;comment this line in launch-all&lt;br /&gt;export LD_ASSUME_KERNEL=2.2.5&lt;br /&gt;#export LD_ASSUME_KERNEL=2.2.5&lt;br /&gt;&lt;br /&gt;now run launch-all from the commandline&lt;br /&gt;./launch-all&lt;br /&gt;&lt;br /&gt;All the jini services will be started. &lt;br /&gt;This completes the installtion procedure of JINI under UBUNTU and Linux platforms.&lt;br /&gt;&lt;br /&gt;You can run sample application now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-5797864992487138095?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/5797864992487138095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=5797864992487138095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5797864992487138095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/5797864992487138095'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/12/getting-started-with-jini-in-ubuntu.html' title='Getting started with JINI in Ubuntu Linux'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-1746112863379857832</id><published>2009-12-02T21:26:00.000-08:00</published><updated>2009-12-02T21:30:02.166-08:00</updated><title type='text'>facelet-taglib_1_0.dtd parse problems</title><content type='html'>Solution for parse problem of facelet-taglib_1_0.dtd in JSF/facelets&lt;br /&gt;&lt;br /&gt;initial definition in taglib.xml&lt;br /&gt;&lt;!DOCTYPE facelet-taglib PUBLIC&lt;br /&gt;&lt;br /&gt;  "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"&lt;br /&gt;&lt;br /&gt;  "facelet-taglib_1_0.dtd"&gt;&lt;br /&gt;&lt;br /&gt;change it with the following &lt;br /&gt;&lt;br /&gt;&lt;!DOCTYPE facelet-taglib PUBLIC&lt;br /&gt;   "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"&lt;br /&gt;   "http://java.sun.com/dtd/facelet-taglib_1_0.dtd"&gt;&lt;br /&gt;&lt;br /&gt;The warning message should resolve . It works for me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-1746112863379857832?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/1746112863379857832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=1746112863379857832' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/1746112863379857832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/1746112863379857832'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/12/facelet-taglib10dtd-parse-problems.html' title='facelet-taglib_1_0.dtd parse problems'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-3146367698741503889</id><published>2009-11-30T01:50:00.000-08:00</published><updated>2009-11-30T01:55:28.470-08:00</updated><title type='text'>could not synchronize with fileSystem problem in eclipse</title><content type='html'>could not synchronize with fileSystem problem in eclipse&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This problem can be solved by following steps :&lt;br /&gt;&lt;br /&gt;windows-&gt; Preferences -&gt; General -&gt; Refresh Automatically&lt;br /&gt;&lt;br /&gt;this should solve the synchronization problem with the file System.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-3146367698741503889?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/3146367698741503889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=3146367698741503889' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/3146367698741503889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/3146367698741503889'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/11/could-not-synchronize-with-filesystem.html' title='could not synchronize with fileSystem problem in eclipse'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-4387762320907251215</id><published>2009-11-25T05:55:00.000-08:00</published><updated>2010-12-22T23:31:38.489-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='facelets classNotFoundException'/><category scheme='http://www.blogger.com/atom/ns#' term='java.lang.ClassNotFoundException'/><category scheme='http://www.blogger.com/atom/ns#' term='com.sun.el.ExpressionFactoryImpl'/><title type='text'>java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl</title><content type='html'>Problem with Running facelets&lt;br /&gt;&lt;br /&gt;Environments : JBoss 4.2.0 &lt;br /&gt;Error : java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl &lt;br /&gt;&lt;br /&gt;Cause of Error : If we are getting such error while trying to run facelets with JBoss Server, then&lt;br /&gt;the most probable cause for this is the library not included in path.&lt;br /&gt;&lt;br /&gt;make sure you include these libraries\jars in \WEB-INF\lib folder.&lt;br /&gt;&lt;br /&gt;commons-beanutils&lt;br /&gt;commons-collections&lt;br /&gt;commons-digestor&lt;br /&gt;commons-logging&lt;br /&gt;el-api&lt;br /&gt;el-impl&lt;br /&gt;el-ri&lt;br /&gt;jsf-facelets-1.0&lt;br /&gt;&lt;br /&gt;With JBoss we dont need to include jsf libraries and jstl libraries.&lt;br /&gt;Including above libraries should eliminate the error.&lt;br /&gt;Note : Check if the JBoss distribution contains commons-collections and commons-loggin In such case we dont need to include these in our project as they are already included with JBoss distribution. ReIncluding these jars can cause problems of conflict. Also check whether commons-el jar is present on the server distribution or not, In such case it is also not required to be included in the project as by default it will be included in the Project during build.&lt;br /&gt;Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-4387762320907251215?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/4387762320907251215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=4387762320907251215' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4387762320907251215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4387762320907251215'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/11/javalangclassnotfoundexception.html' title='java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-7088883355244261267</id><published>2009-11-18T04:22:00.000-08:00</published><updated>2009-11-18T04:25:10.146-08:00</updated><title type='text'>Generics are not supported insource 14 use version 5 or higher error Netbeans</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Generics are not supported insource 14 use version 5 or higher&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This might be a common error while working with Generics in Netbeans.&lt;br /&gt;The problem is that you are using older version of Runtime environment maybe 4 or less.&lt;br /&gt;&lt;br /&gt;Solution :&lt;br /&gt;&lt;br /&gt;Right click the netbeans project &lt;br /&gt;Go to Sources&lt;br /&gt;In source Binary Format select 5 or 6&lt;br /&gt;&lt;br /&gt;Now you wont get the earlier error.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-7088883355244261267?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/7088883355244261267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=7088883355244261267' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/7088883355244261267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/7088883355244261267'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/11/generics-are-not-supported-insource-14.html' title='Generics are not supported insource 14 use version 5 or higher error Netbeans'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-1089868903308930915</id><published>2009-07-07T22:21:00.000-07:00</published><updated>2011-10-11T09:18:09.098-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dashain Ashirwad'/><category scheme='http://www.blogger.com/atom/ns#' term='दशै आशिर्वाद'/><category scheme='http://www.blogger.com/atom/ns#' term='केटीहरुको दशै आशिर्वाद'/><category scheme='http://www.blogger.com/atom/ns#' term='केटाहरुको दशै आशिर्वाद'/><title type='text'>Dashain Ashirwad दशै आशिर्वाद</title><content type='html'>केटाहरुको दशै आशिर्वाद र अर्थ  &lt;br /&gt;&lt;br /&gt;आयुर द्रोणसुते श्रीयं दशरथे सत्रु क्षयम राघवे । ऐश्वर्यं नहुशे गतिस्च पवने मानं च दुर्योधने । सौयेर्म शान्तनबे बल हल धरे सत्यम चः कुन्तीसुते । बिज्ञान बिदुरे भवन्तु भवताम क्रिश्तिंचा नारायणे !&lt;br /&gt;&lt;br /&gt;द्रोणको छोरा अश्वश्थामा को जस्तै लामो आयु होस् । दशरथको जस्तै श्रेय पाइयोस् । रामचन्द्रले जस्तै शत्रुलाई नाश गर्न सकियोस् । नहुस राजाको जस्तै ऐश्वर्य होस्, पवनको जस्तो गति होस्, दुर्योधनको जस्तो मान-मर्यादा कमाइयोस् । सूर्यका छोरा कर्णजस्तो दानी  हुनु, हलोधारी बलरामजस्तै बलवान्  हुनु, कुन्तीको छोरा ले जस्तै सत्य बोल्नु । विधुरजस्तै ज्ञान-विज्ञान, शास्त्र बुझेको हुनु, भगवान नारायण को जस्तै र्कीति हासिल गर्नु ! &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;केटीहरुको दशै आशिर्वाद र अर्थ &lt;br /&gt;&lt;br /&gt;जयन्ती मंगलाकाली भद्रकाली कपालिनीदुर्गाक्ष्यमा शिवाधात्री स्वाहास्वधा नमस्तुते !  जयन्ती मंगलाकाली भद्रकाली कपालिनी दुर्गा क्षमा शिवधातृ स्वहा स्वधा भनेको देवीका नामहरु हुन् जसलाई मन्त्रमा म नमस्कार गर्छु भनिएको छ ।&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-1089868903308930915?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/1089868903308930915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=1089868903308930915' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/1089868903308930915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/1089868903308930915'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/07/dashain-ashirwad.html' title='Dashain Ashirwad दशै आशिर्वाद'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total><georss:featurename>Nepal</georss:featurename><georss:point>28.394857 84.124008</georss:point><georss:box>26.345273999999996 80.05047 30.44444 88.197546</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-4992993324033887065</id><published>2009-06-29T18:04:00.000-07:00</published><updated>2010-01-29T01:24:52.801-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gmail notification'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='notify service by email'/><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>nagios email notification in gmail problem  and solution</title><content type='html'>&lt;span style="font-weight:bold;"&gt;step 1 : check in templates.cfg . The configuration should be similar to the one below(in objects folder in my case)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# Generic contact definition template - This is NOT a real contact, just a template!&lt;br /&gt;&lt;br /&gt;define contact{&lt;br /&gt;        name                            generic-contact&lt;br /&gt;        service_notification_period     24x7&lt;br /&gt;        host_notification_period        24x7&lt;br /&gt;        service_notification_options    w,u,c,r,f,s&lt;br /&gt;        host_notification_options       d,u,r,f,s&lt;br /&gt;        service_notification_commands   notify-service-by-email&lt;br /&gt;        host_notification_commands      notify-host-by-email&lt;br /&gt;        register                        0&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;step 2 : check contacts.cfg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;        define contact{&lt;br /&gt;        contact_name                    nagiosadmin  ; Short name of user&lt;br /&gt; use    generic-contact  ; Inherit from generic-conta    &lt;br /&gt;        alias                           Bishal Acharya  ; Full name of user&lt;br /&gt;              &lt;br /&gt;        email                           abc@gmail.com&lt;br /&gt;        &lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# We only have one contact in this simple configuration file, so there is&lt;br /&gt;# no need to create more than one contact group.&lt;br /&gt;&lt;br /&gt;define contactgroup{&lt;br /&gt;        contactgroup_name       admins&lt;br /&gt;        alias                   Nagios Administrators&lt;br /&gt;        members                 nagiosadmin&lt;br /&gt;        }&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Make sure we have contact and cotactgroup defined in contacts.cfg. In my case it is with my denominations.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;step 3 : Check the commands.cfg file . Make sure we make /usr/bin/mailx in the configuration under Ubuntu systems. Also do install sendmail prior to doing this by using(sudo apt-get install sendmail) and check by command line that you can send mail by using command (mail abc@gmail.com) . If you successfully sent your mail then your nagios too can send mail or else we again need to troubleshoot.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# 'notify-host-by-email' command definition&lt;br /&gt;define command{&lt;br /&gt; command_name notify-host-by-email&lt;br /&gt; command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $ADMINEMAIL$&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;# 'notify-service-by-email' command definition&lt;br /&gt;define command{&lt;br /&gt; command_name notify-service-by-email&lt;br /&gt; command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $ADMINEMAIL$&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Make sure ADMINEMAIL has been set accordingly in nagios.cfg file as&lt;br /&gt;&lt;br /&gt;admin_email=abc@gmail.com&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;step 4 : Time to check few things&lt;br /&gt;check whether notifications are set or not in nagios.cfg file if not set it to 1, similarly also make notifications to 1 in services and host definitions, Nagios cant sent notifications unless you enable them.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Now reload your nagios and test by stopping one of the services like ssh or other anyone If you are lucky you will receive notifications according to the timing settings. If not check your log file.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Common problem : &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Warning: Contact 'nagiosadmin' service notification command '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: SSH\nHost: bishal\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Mon Jun 29 17:24:26 JST 2009\n\nAdditional Info:\n\nConnection refused" | /usr/bin/mail -s "** PROBLEM Service Alert: bishal/SSH is CRITICAL **" abc@gmail.com' timed out after 60 seconds&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution for Nagios notification Timeout problem :&lt;br /&gt;Go to nagios.cfg and increase the notification_timeout to some larger value, In my case i made it 600 from 60&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;service_check_timeout=60&lt;br /&gt;host_check_timeout=30&lt;br /&gt;event_handler_timeout=30&lt;br /&gt;notification_timeout=600&lt;br /&gt;ocsp_timeout=5&lt;br /&gt;perfdata_timeout=5&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Now again reload nagios and you should be alerted when any service goes down. Test it by stopping any service also we are notified when any service recovers. We may give our mobile phone email address so that we are alerted to our mobile phones when problem occurs instead of our computer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Good Luck ! Comments are welcomed&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-4992993324033887065?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/4992993324033887065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=4992993324033887065' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4992993324033887065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4992993324033887065'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/06/nagios-email-notification-in-gmail.html' title='nagios email notification in gmail problem  and solution'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-4542186244626569010</id><published>2009-04-12T21:12:00.000-07:00</published><updated>2010-01-29T01:28:06.467-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sudo in Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='sudo UBUNTU failure'/><title type='text'>sudo not working in  Ubuntu and Semantic package manager vanished</title><content type='html'>I have recently had a problem when sudo did not worked in Ubuntu, The problem was that whenever I tried to do sudo it would ask for my password but it wont carry out the action as per the command.Another symptom was that the synaptic package manager had vanished from the menu. It was a peculiar behavior for me because I had jumped from windows to Ubuntu and it was just few weeks I was trying on Ubuntu. I was trying to install Nagios and this problem suddenly arised when normally working sudo stopped working for my root user.&lt;br /&gt;&lt;br /&gt;The problem with it was that I had accidently removed my root admin user from the admin group, So in order to fix I had to do the following steps :&lt;br /&gt;&lt;br /&gt;step 1 : I started the computer in recovery mode &lt;br /&gt;step 2 : I entered the root user space&lt;br /&gt;step 3 : And finally I just added my user back to admin group by the following command&lt;br /&gt;         adduser username admin&lt;br /&gt;&lt;br /&gt;And the problem was solved I again had my synaptic package manager in the menu and I could  now do everything back again. I guess my experience might help some novice users.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;user@user : adduser username admin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comments are welcomed !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-4542186244626569010?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/4542186244626569010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=4542186244626569010' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4542186244626569010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4542186244626569010'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/04/sudo-not-working-in-ubuntu-and-semantic.html' title='sudo not working in  Ubuntu and Semantic package manager vanished'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-1708137496755069248</id><published>2009-02-09T19:34:00.000-08:00</published><updated>2009-02-09T19:35:29.418-08:00</updated><title type='text'>Javaspace with JINI and Gigaspace</title><content type='html'>Javaspace and Jini tutorial with classic example coming soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-1708137496755069248?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.wakhok.ac.jp/~bishal' title='Javaspace with JINI and Gigaspace'/><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/1708137496755069248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=1708137496755069248' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/1708137496755069248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/1708137496755069248'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/02/javaspace-with-jini-and-gigaspace.html' title='Javaspace with JINI and Gigaspace'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-115492552823947139</id><published>2006-08-06T21:35:00.000-07:00</published><updated>2010-12-01T21:46:56.864-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='My introduction'/><title type='text'>bishal</title><content type='html'>I am Bishal. I am a Computer Engineer in Kathmandu City.  I work in Java EE, object-oriented application development, and use of open source frameworks. I primarily work on the design and development phases of Java applications. I have been with my current job for about two years and I have a degree in computer Engineering.&lt;br /&gt;In this blog I will be posting issues about JSF, Facelets, Ajax, Spring, App Server, JINI, javaSpace and anything Java  related technologies. I will be concentrating my difficult moments during development phases and how I tackle those issues to perform my daily job.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-115492552823947139?l=bishalacharya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/115492552823947139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=32310573&amp;postID=115492552823947139' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/115492552823947139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/115492552823947139'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2006/08/bishal.html' title='bishal'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_IsXOdH9Tay8/TEfaZ723ZpI/AAAAAAAAAFY/m-ush5WE1jI/S220/bishal.JPG'/></author><thr:total>7</thr:total></entry></feed>
