<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>my DAILY notes</title>
	<atom:link href="http://dailynote.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dailynote.wordpress.com</link>
	<description>tutorial java programing life yoghamala</description>
	<lastBuildDate>Fri, 24 Dec 2010 11:58:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dailynote.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>my DAILY notes</title>
		<link>http://dailynote.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dailynote.wordpress.com/osd.xml" title="my DAILY notes" />
	<atom:link rel='hub' href='http://dailynote.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Gak bisa menikmati weekend</title>
		<link>http://dailynote.wordpress.com/2010/12/24/gak-bisa-menikmati-weekend/</link>
		<comments>http://dailynote.wordpress.com/2010/12/24/gak-bisa-menikmati-weekend/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 11:58:24 +0000</pubDate>
		<dc:creator>yoghamala</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://dailynote.wordpress.com/2010/12/24/gak-bisa-menikmati-weekend/</guid>
		<description><![CDATA[Hari ini saya bisa pulang tengah hari, karena besok kan hari natal. Hati senang rasanya bs menikmati hari-hari bersama istri dan anak2ku. Sebelum pulang saya sempatkan membeli mainan untuk putriku yg sdh berumur 22 hari, setelah membeli mainan, sy bergegas pulang berharap bs bermain bersama mas fadhlan lbh lama. Berhubung mblku kotor, sy mampir ke [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=61&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hari ini saya bisa pulang tengah hari, karena besok kan hari natal. Hati senang rasanya bs menikmati hari-hari bersama istri dan anak2ku. Sebelum pulang saya sempatkan membeli mainan untuk putriku yg sdh berumur 22 hari, setelah membeli mainan, sy bergegas pulang berharap bs bermain bersama mas fadhlan lbh lama. Berhubung mblku kotor, sy mampir ke tmpt cuci mbl untuk mencuci mbl terlebih dahulu. Saya memilih tmpt cuci mbl yg cepat, sehingga bs cepet sampai di rumah. Ketika sy sedang menunggu, bb sy bergetar menandakan ada pesan yg masuk. Sy bergegas mambaca pesan tsb yg ternyata dari istriku. Ia memberitahu bahwa keluarganya sedang berada di rumah. Lemas rasanya ketika membaca pesan itu, impian untuk menikmati weekend bersama keluarga pun sirna berantakan. Yg ada rasa amarah yg bergejolak. <b>Mengapa saya tidak boleh menikmati liburan bersama keluargaku</b>, minggu lalu sudah bersama dengan mereka. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailynote.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailynote.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailynote.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailynote.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailynote.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailynote.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailynote.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailynote.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailynote.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailynote.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailynote.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailynote.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailynote.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailynote.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=61&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailynote.wordpress.com/2010/12/24/gak-bisa-menikmati-weekend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/121a598125a0bf4e74f0a7db42777a7a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yoghamala</media:title>
		</media:content>
	</item>
		<item>
		<title>Fadhlan sakit</title>
		<link>http://dailynote.wordpress.com/2010/12/19/fadhlan-sakit/</link>
		<comments>http://dailynote.wordpress.com/2010/12/19/fadhlan-sakit/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 23:16:49 +0000</pubDate>
		<dc:creator>yoghamala</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">https://dailynote.wordpress.com/2010/12/19/fadhlan-sakit/</guid>
		<description><![CDATA[Pagi ini anak pertamaku bernama Fadhlan sakit demam plus batuk, panasnya belum turun sejak sabtu malam kemarin kira-kira udah 1 1/4 hari. Sejak malam itu dia rewel minta digendong klo mau tidur dan maunya sm sm saya ayahnya. Mau tidak mau ya ku gendong sampai dia terlelap. Wajahnya lesu, kasihan sekali. Rasanya ingin menggantikan posisinya [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=59&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Pagi ini anak pertamaku bernama Fadhlan sakit demam plus batuk, panasnya belum turun sejak sabtu malam kemarin kira-kira udah 1 1/4 hari. Sejak malam itu dia rewel minta digendong klo mau tidur dan maunya sm sm saya ayahnya. Mau tidak mau ya ku gendong sampai dia terlelap. Wajahnya lesu, kasihan sekali. Rasanya ingin menggantikan posisinya ketika sakit. Kami sedang menginap di rumah papa. Sejak kamis kemarin, rencananya hari minggu kemarin kami akan kembali ke rumah kami, namun berhubung putra sulung kami itu sakit ya saya tunda kepulangan kami menjadi hari ini sekalian berobat ke dokter carles di permata cibubur. Hari ini saya juga harus cuti setengah hari untuk mengantarnya ke dokter. Semoga saja penyakit yang diderita putra kami bukan penyakit yang menharuskannya dirawat. Amiin.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailynote.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailynote.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailynote.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailynote.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailynote.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailynote.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailynote.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailynote.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailynote.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailynote.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailynote.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailynote.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailynote.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailynote.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=59&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailynote.wordpress.com/2010/12/19/fadhlan-sakit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/121a598125a0bf4e74f0a7db42777a7a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yoghamala</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven 2 Tutorial</title>
		<link>http://dailynote.wordpress.com/2009/06/18/maven-2-tutorial/</link>
		<comments>http://dailynote.wordpress.com/2009/06/18/maven-2-tutorial/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 11:20:57 +0000</pubDate>
		<dc:creator>yoghamala</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programing]]></category>

		<guid isPermaLink="false">http://dailynote.wordpress.com/?p=51</guid>
		<description><![CDATA[There is several point that i learned about Maven 2. Create a new web project mvn archetype:create -DgroupId=[group] -DartifactId=[project name] -DarchetypeArtifactId=maven-archetype-webapp It will automatically create a empty web project using Maven as a builder. Build your project into eclipse project (java project) mvn eclipse:eclipse It automatically build eclipse project, so you only import a project [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=51&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is several point that i learned about Maven 2.</p>
<ol>
<li>Create a new web project<br />
<blockquote><p>mvn archetype:create -DgroupId=[group] -DartifactId=[project name] -DarchetypeArtifactId=maven-archetype-webapp</p></blockquote>
<p>It will automatically create a empty web project using Maven as a builder.</li>
<p><span id="more-51"></span></p>
<li>Build your project into eclipse project (java project)<br />
<blockquote><p>mvn eclipse:eclipse</p></blockquote>
<p>It automatically build eclipse project, so you only import a project using</p>
<blockquote><p>import &gt; General &gt; Existing Projects into Workspace</p></blockquote>
<p>Select your project and it&#8217;s done.</li>
<li>Build your project into eclipse project (web dynamic project)<br />
<blockquote><p>mvn eclipse:eclipse -Dwtpversion=1.0</p></blockquote>
</li>
<li>If you have 3rd party jar that not in maven repositories (http://repo1.maven.org/maven2), you can put/install it using<br />
<blockquote><p>mvn install:install-file -DgroupId=[group id] -DartifactId=[artifact id] -Dversion=[version] -Dpackaging=jar -Dfile=[path that contains the jar file]</p></blockquote>
</li>
<li>Test is with jetty web server<br />
<blockquote><p>mvn jetty:run</p></blockquote>
<p>Before you run it, just make sure that inside the pom.xml already contain the</p>
<blockquote><p>&lt;plugin&gt;<br />
&lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;<br />
&lt;artifactId&gt;maven-jetty-plugin&lt;/artifactId&gt;<br />
&lt;version&gt;6.0.1&lt;/version&gt;<br />
&lt;configuration&gt;<br />
&lt;scanIntervalSeconds&gt;10&lt;/scanIntervalSeconds&gt;<br />
&lt;/configuration&gt;<br />
&lt;/plugin&gt;</p></blockquote>
</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailynote.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailynote.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailynote.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailynote.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailynote.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailynote.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailynote.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailynote.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailynote.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailynote.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailynote.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailynote.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailynote.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailynote.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=51&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailynote.wordpress.com/2009/06/18/maven-2-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/121a598125a0bf4e74f0a7db42777a7a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yoghamala</media:title>
		</media:content>
	</item>
		<item>
		<title>How to dump MySQL database?</title>
		<link>http://dailynote.wordpress.com/2009/03/11/how-to-dump-mysql-database/</link>
		<comments>http://dailynote.wordpress.com/2009/03/11/how-to-dump-mysql-database/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 10:03:33 +0000</pubDate>
		<dc:creator>yoghamala</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dailynote.wordpress.com/?p=35</guid>
		<description><![CDATA[This is simple command to dump mysql database: mysqldump -u username -p database_name &#62; file_name.sql<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=35&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is simple command to dump mysql database:</p>
<blockquote><p>mysqldump -u <em>username</em> -p  <em>database_name</em> &gt; <em>file_name.sql</em></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailynote.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailynote.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailynote.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailynote.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailynote.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailynote.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailynote.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailynote.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailynote.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailynote.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailynote.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailynote.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailynote.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailynote.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=35&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailynote.wordpress.com/2009/03/11/how-to-dump-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/121a598125a0bf4e74f0a7db42777a7a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yoghamala</media:title>
		</media:content>
	</item>
		<item>
		<title>SimpleDateFormat Date and Time Pattern</title>
		<link>http://dailynote.wordpress.com/2009/03/11/simpledateformat-date-and-time-pattern/</link>
		<comments>http://dailynote.wordpress.com/2009/03/11/simpledateformat-date-and-time-pattern/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 08:24:54 +0000</pubDate>
		<dc:creator>yoghamala</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://dailynote.wordpress.com/?p=32</guid>
		<description><![CDATA[Date and Time Patterns Date and time formats are specified by date and time pattern strings. Within date and time pattern strings, unquoted letters from &#8216;A&#8217; to &#8216;Z&#8217; and from &#8216;a&#8217; to &#8216;z&#8217; are interpreted as pattern letters representing the components of a date or time string. Text can be quoted using single quotes (&#8216;) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=32&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Date and Time Patterns</p>
<p>Date and time formats are specified by date and time pattern strings. Within date and time pattern strings, unquoted letters from &#8216;A&#8217; to &#8216;Z&#8217; and from &#8216;a&#8217; to &#8216;z&#8217; are interpreted as pattern letters representing the components of a date or time string. Text can be quoted using single quotes (&#8216;) to avoid interpretation. &#8220;&#8221;&#8221; represents a single quote. All other characters are not interpreted; they&#8217;re simply copied into the output string during formatting or matched against the input string during parsing.<br />
<span id="more-32"></span><br />
The following pattern letters are defined (all other characters from &#8216;A&#8217; to &#8216;Z&#8217; and from &#8216;a&#8217; to &#8216;z&#8217; are reserved): </p>
<table border="0" cellspacing="3" cellpadding="0" summary="Chart shows pattern letters, date/time component, presentation, and examples.">
<tbody>
<tr bgcolor="#ccccff">
<th align="left">Letter</th>
<th align="left">Date or Time Component</th>
<th align="left">Presentation</th>
<th align="left">Examples</th>
</tr>
<tr>
<td><code>G</code></td>
<td>Era designator</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#text">Text</a></td>
<td><code>AD</code></td>
</tr>
<tr bgcolor="#eeeeff">
<td><code>y</code></td>
<td>Year</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#year">Year</a></td>
<td><code>1996</code>; <code>96</code></td>
</tr>
<tr>
<td><code>M</code></td>
<td>Month in year</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#month">Month</a></td>
<td><code>July</code>; <code>Jul</code>; <code>07</code></td>
</tr>
<tr bgcolor="#eeeeff">
<td><code>w</code></td>
<td>Week in year</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>27</code></td>
</tr>
<tr>
<td><code>W</code></td>
<td>Week in month</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>2</code></td>
</tr>
<tr bgcolor="#eeeeff">
<td><code>D</code></td>
<td>Day in year</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>189</code></td>
</tr>
<tr>
<td><code>d</code></td>
<td>Day in month</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>10</code></td>
</tr>
<tr bgcolor="#eeeeff">
<td><code>F</code></td>
<td>Day of week in month</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>2</code></td>
</tr>
<tr>
<td><code>E</code></td>
<td>Day in week</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#text">Text</a></td>
<td><code>Tuesday</code>; <code>Tue</code></td>
</tr>
<tr bgcolor="#eeeeff">
<td><code>a</code></td>
<td>Am/pm marker</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#text">Text</a></td>
<td><code>PM</code></td>
</tr>
<tr>
<td><code>H</code></td>
<td>Hour in day (0-23)</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>0</code></td>
</tr>
<tr bgcolor="#eeeeff">
<td><code>k</code></td>
<td>Hour in day (1-24)</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>24</code></td>
</tr>
<tr>
<td><code>K</code></td>
<td>Hour in am/pm (0-11)</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>0</code></td>
</tr>
<tr bgcolor="#eeeeff">
<td><code>h</code></td>
<td>Hour in am/pm (1-12)</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>12</code></td>
</tr>
<tr>
<td><code>m</code></td>
<td>Minute in hour</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>30</code></td>
</tr>
<tr bgcolor="#eeeeff">
<td><code>s</code></td>
<td>Second in minute</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>55</code></td>
</tr>
<tr>
<td><code>S</code></td>
<td>Millisecond</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#number">Number</a></td>
<td><code>978</code></td>
</tr>
<tr bgcolor="#eeeeff">
<td><code>z</code></td>
<td>Time zone</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#timezone">General time zone</a></td>
<td><code>Pacific Standard Time</code>; <code>PST</code>; <code>GMT-08:00</code></td>
</tr>
<tr>
<td><code>Z</code></td>
<td>Time zone</td>
<td><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#rfc822timezone">RFC 822 time zone</a></td>
<td><code>-0800</code></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailynote.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailynote.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailynote.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailynote.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailynote.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailynote.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailynote.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailynote.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailynote.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailynote.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailynote.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailynote.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailynote.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailynote.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=32&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailynote.wordpress.com/2009/03/11/simpledateformat-date-and-time-pattern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/121a598125a0bf4e74f0a7db42777a7a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yoghamala</media:title>
		</media:content>
	</item>
		<item>
		<title>MySql Date Format</title>
		<link>http://dailynote.wordpress.com/2009/03/11/mysql-date-format/</link>
		<comments>http://dailynote.wordpress.com/2009/03/11/mysql-date-format/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 07:20:12 +0000</pubDate>
		<dc:creator>yoghamala</dc:creator>
				<category><![CDATA[Programing]]></category>

		<guid isPermaLink="false">http://dailynote.wordpress.com/?p=25</guid>
		<description><![CDATA[DATE_FORMAT(date,format) function. Formats the date value according to the format string. The following specifiers may be used in the format string. The “%” character is required before format specifier characters. Specifier Description %a Abbreviated weekday name (Sun..Sat) %b Abbreviated month name (Jan..Dec) %c Month, numeric (0..12) %D Day of the month with English suffix (0th, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=25&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DATE_FORMAT(<em>date</em>,<em>format</em>) function.</p>
<p>Formats the date value according to the <em>format</em> string.</p>
<p>The following specifiers may be used in the <em>format</em> string. The “%” character is required before format specifier characters.<br />
<span id="more-25"></span></p>
<blockquote><table border="0">
<tbody>
<tr>
<td><span class="bold"><strong>Specifier</strong></span></td>
<td><span class="bold"><strong>Description</strong></span></td>
</tr>
<tr>
<td><code class="literal">%a</code></td>
<td>Abbreviated weekday name                   (<code class="literal">Sun</code>..<code class="literal">Sat</code>)</td>
</tr>
<tr>
<td><code class="literal">%b</code></td>
<td>Abbreviated month name (<code class="literal">Jan</code>..<code class="literal">Dec</code>)</td>
</tr>
<tr>
<td><code class="literal">%c</code></td>
<td>Month, numeric (<code class="literal">0</code>..<code class="literal">12</code>)</td>
</tr>
<tr>
<td><code class="literal">%D</code></td>
<td>Day of the month with English suffix (<code class="literal">0th</code>,                   <code class="literal">1st</code>, <code class="literal">2nd</code>,                   <code class="literal">3rd</code>, …)</td>
</tr>
<tr>
<td><code class="literal">%d</code></td>
<td>Day of the month, numeric (<code class="literal">00</code>..<code class="literal">31</code>)</td>
</tr>
<tr>
<td><code class="literal">%e</code></td>
<td>Day of the month, numeric (<code class="literal">0</code>..<code class="literal">31</code>)</td>
</tr>
<tr>
<td><code class="literal">%f</code></td>
<td>Microseconds (<code class="literal">000000</code>..<code class="literal">999999</code>)</td>
</tr>
<tr>
<td><code class="literal">%H</code></td>
<td>Hour (<code class="literal">00</code>..<code class="literal">23</code>)</td>
</tr>
<tr>
<td><code class="literal">%h</code></td>
<td>Hour (<code class="literal">01</code>..<code class="literal">12</code>)</td>
</tr>
<tr>
<td><code class="literal">%I</code></td>
<td>Hour (<code class="literal">01</code>..<code class="literal">12</code>)</td>
</tr>
<tr>
<td><code class="literal">%i</code></td>
<td>Minutes, numeric (<code class="literal">00</code>..<code class="literal">59</code>)</td>
</tr>
<tr>
<td><code class="literal">%j</code></td>
<td>Day of year (<code class="literal">001</code>..<code class="literal">366</code>)</td>
</tr>
<tr>
<td><code class="literal">%k</code></td>
<td>Hour (<code class="literal">0</code>..<code class="literal">23</code>)</td>
</tr>
<tr>
<td><code class="literal">%l</code></td>
<td>Hour (<code class="literal">1</code>..<code class="literal">12</code>)</td>
</tr>
<tr>
<td><code class="literal">%M</code></td>
<td>Month name (<code class="literal">January</code>..<code class="literal">December</code>)</td>
</tr>
<tr>
<td><code class="literal">%m</code></td>
<td>Month, numeric (<code class="literal">00</code>..<code class="literal">12</code>)</td>
</tr>
<tr>
<td><code class="literal">%p</code></td>
<td><code class="literal">AM</code> or <code class="literal">PM</code></td>
</tr>
<tr>
<td><code class="literal">%r</code></td>
<td>Time, 12-hour (<code class="literal">hh:mm:ss</code> followed by                   <code class="literal">AM</code> or <code class="literal">PM</code>)</td>
</tr>
<tr>
<td><code class="literal">%S</code></td>
<td>Seconds (<code class="literal">00</code>..<code class="literal">59</code>)</td>
</tr>
<tr>
<td><code class="literal">%s</code></td>
<td>Seconds (<code class="literal">00</code>..<code class="literal">59</code>)</td>
</tr>
<tr>
<td><code class="literal">%T</code></td>
<td>Time, 24-hour (<code class="literal">hh:mm:ss</code>)</td>
</tr>
<tr>
<td><code class="literal">%U</code></td>
<td>Week (<code class="literal">00</code>..<code class="literal">53</code>), where Sunday is the                   first day of the week</td>
</tr>
<tr>
<td><code class="literal">%u</code></td>
<td>Week (<code class="literal">00</code>..<code class="literal">53</code>), where Monday is the                   first day of the week</td>
</tr>
<tr>
<td><code class="literal">%V</code></td>
<td>Week (<code class="literal">01</code>..<code class="literal">53</code>), where Sunday is the                   first day of the week; used with <code class="literal">%X</code></td>
</tr>
<tr>
<td><code class="literal">%v</code></td>
<td>Week (<code class="literal">01</code>..<code class="literal">53</code>), where Monday is the                   first day of the week; used with <code class="literal">%x</code></td>
</tr>
<tr>
<td><code class="literal">%W</code></td>
<td>Weekday name (<code class="literal">Sunday</code>..<code class="literal">Saturday</code>)</td>
</tr>
<tr>
<td><code class="literal">%w</code></td>
<td>Day of the week                   (<code class="literal">0</code>=Sunday..<code class="literal">6</code>=Saturday)</td>
</tr>
<tr>
<td><code class="literal">%X</code></td>
<td>Year for the week where Sunday is the first day of the week, numeric,                   four digits; used with <code class="literal">%V</code></td>
</tr>
<tr>
<td><code class="literal">%x</code></td>
<td>Year for the week, where Monday is the first day of the week, numeric,                   four digits; used with <code class="literal">%v</code></td>
</tr>
<tr>
<td><code class="literal">%Y</code></td>
<td>Year, numeric, four digits</td>
</tr>
<tr>
<td><code class="literal">%y</code></td>
<td>Year, numeric (two digits)</td>
</tr>
<tr>
<td><code class="literal">%%</code></td>
<td>A literal “<span class="quote"><code class="literal">%</code></span>” character</td>
</tr>
<tr>
<td><code class="literal">%<em class="replaceable"><code>x</code></em></code></td>
<td><em class="replaceable"><code>x</code></em>, for any                   “<span class="quote"><em class="replaceable"><code>x</code></em></span>” not listed                   above</td>
</tr>
</tbody>
</table>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailynote.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailynote.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailynote.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailynote.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailynote.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailynote.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailynote.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailynote.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailynote.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailynote.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailynote.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailynote.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailynote.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailynote.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=25&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailynote.wordpress.com/2009/03/11/mysql-date-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/121a598125a0bf4e74f0a7db42777a7a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yoghamala</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a ZIP File</title>
		<link>http://dailynote.wordpress.com/2009/03/11/creating-a-zip-file/</link>
		<comments>http://dailynote.wordpress.com/2009/03/11/creating-a-zip-file/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 06:39:20 +0000</pubDate>
		<dc:creator>yoghamala</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://dailynote.wordpress.com/?p=15</guid>
		<description><![CDATA[Sample of creating a ZIP file using java. // These are the files to include in the ZIP file String[] filenames = new String[]{"filename1", "filename2"}; // Create a buffer for reading the files byte[] buf = new byte[1024]; try { // Create the ZIP file String outFilename = "outfile.zip"; ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename)); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=15&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sample of creating a ZIP file using java.</p>
<blockquote><p><code><br />
// These are the files to include in the ZIP file<br />
String[] filenames = new String[]{"filename1", "filename2"};<br />
// Create a buffer for reading the files<br />
byte[] buf = new byte[1024];<br />
try {<br />
// Create the ZIP file<br />
<span id="more-15"></span><br />
String outFilename = "outfile.zip";<br />
ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename));<br />
// Compress the files<br />
for (int i=0; i &lt; filenames.length; i++) {<br />
FileInputStream in = new FileInputStream(filenames[i]);<br />
// Add ZIP entry to output stream.<br />
out.putNextEntry(new ZipEntry(filenames[i]));<br />
// Transfer bytes from the file to the ZIP file<br />
int len;<br />
while ((len = in.read(buf)) &gt; 0) {<br />
out.write(buf, 0, len);<br />
}<br />
// Complete the entry<br />
out.closeEntry();<br />
in.close();<br />
}<br />
// Complete the ZIP file<br />
out.close();<br />
} catch (IOException e) {<br />
}</code></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailynote.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailynote.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailynote.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailynote.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailynote.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailynote.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailynote.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailynote.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailynote.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailynote.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailynote.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailynote.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailynote.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailynote.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=15&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailynote.wordpress.com/2009/03/11/creating-a-zip-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/121a598125a0bf4e74f0a7db42777a7a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yoghamala</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create Read Write Lock</title>
		<link>http://dailynote.wordpress.com/2009/03/10/how-to-create-read-write-lock/</link>
		<comments>http://dailynote.wordpress.com/2009/03/10/how-to-create-read-write-lock/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 11:42:48 +0000</pubDate>
		<dc:creator>yoghamala</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://dailynote.wordpress.com/?p=6</guid>
		<description><![CDATA[This is some example how to create Read Write Lock: /* Software Architecture Design Patterns in Java by Partha Kuchana Auerbach Publications */ public class ReadWriteLockTest { public static void main(String[] args) { Item item = new Item("CompScience-I"); new MemberTransaction("Member1", item, "StatusCheck"); new MemberTransaction("Member2", item, "StatusCheck"); new MemberTransaction("Member3", item, "CheckOut"); new MemberTransaction("Member4", item, "CheckOut"); new [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=6&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is some example how to create Read Write Lock:</p>
<blockquote><p><code><br />
/*<br />
Software Architecture Design Patterns in Java<br />
by Partha Kuchana<br />
Auerbach Publications<br />
*/<br />
public class ReadWriteLockTest {<br />
public static void main(String[] args) {<br />
Item item = new Item("CompScience-I");<br />
new MemberTransaction("Member1", item, "StatusCheck");<br />
new MemberTransaction("Member2", item, "StatusCheck");<br />
new MemberTransaction("Member3", item, "CheckOut");<br />
new MemberTransaction("Member4", item, "CheckOut");<br />
new MemberTransaction("Member5", item, "CheckOut");<br />
new MemberTransaction("Member6", item, "StatusCheck");</code><code> }<br />
}<br />
<span id="more-6"></span><br />
class Item {<br />
private String name;<br />
private ReadWriteLock rwLock;<br />
private String status;<br />
public Item(String n) {<br />
name = n;<br />
rwLock = new ReadWriteLock();<br />
status = "N";<br />
}<br />
public void checkOut(String member) {<br />
rwLock.getWriteLock();<br />
status = "Y";<br />
System.out.println(member + " has been issued a write lock-ChkOut");<br />
rwLock.done();<br />
}<br />
public String getStatus(String member) {<br />
rwLock.getReadLock();<br />
System.out.println(member + " has been issued a read lock");<br />
rwLock.done();<br />
return status;<br />
}<br />
public void checkIn(String member) {<br />
rwLock.getWriteLock();<br />
status = "N";<br />
System.out.println(member + " has been issued a write lock-ChkIn");<br />
rwLock.done();<br />
}<br />
}<br />
class ReadWriteLock {<br />
private Object lockObj;<br />
private int totalReadLocksGiven;<br />
private boolean writeLockIssued;<br />
private int threadsWaitingForWriteLock;<br />
public ReadWriteLock() {<br />
lockObj = new Object();<br />
writeLockIssued = false;<br />
}<br />
/*<br />
* A read lock can be issued if there is no currently issued write lock and<br />
* there is no thread(s) currently waiting for the write lock<br />
*/<br />
public void getReadLock() {<br />
synchronized (lockObj) {<br />
while ((writeLockIssued) || (threadsWaitingForWriteLock != 0)) {<br />
try {<br />
lockObj.wait();<br />
} catch (InterruptedException e) {<br />
//<br />
}<br />
}<br />
//System.out.println(" Read Lock Issued");<br />
totalReadLocksGiven++;<br />
}<br />
}<br />
/*<br />
* A write lock can be issued if there is no currently issued read or write<br />
* lock<br />
*/<br />
public void getWriteLock() {<br />
synchronized (lockObj) {<br />
threadsWaitingForWriteLock++;<br />
while ((totalReadLocksGiven != 0) || (writeLockIssued)) {<br />
try {<br />
lockObj.wait();<br />
} catch (InterruptedException e) {<br />
//<br />
}<br />
}<br />
//System.out.println(" Write Lock Issued");<br />
threadsWaitingForWriteLock--;<br />
writeLockIssued = true;<br />
}<br />
}<br />
//used for releasing locks<br />
public void done() {<br />
synchronized (lockObj) {<br />
//check for errors<br />
if ((totalReadLocksGiven == 0) &amp;&amp; (!writeLockIssued)) {<br />
System.out.println(" Error: Invalid call to release the lock");<br />
return;<br />
}<br />
if (writeLockIssued)<br />
writeLockIssued = false;<br />
else<br />
totalReadLocksGiven--;<br />
lockObj.notifyAll();<br />
}<br />
}<br />
}<br />
class MemberTransaction extends Thread {<br />
private String name;<br />
private Item item;<br />
private String operation;<br />
public MemberTransaction(String n, Item i, String p) {<br />
name = n;<br />
item = i;<br />
operation = p;<br />
start();<br />
}<br />
public void run() {<br />
//all members first read the status<br />
item.getStatus(name);<br />
if (operation.equals("CheckOut")) {<br />
System.out.println("\n" + name + " is ready to checkout the item.");<br />
item.checkOut(name);<br />
try {<br />
sleep(1);<br />
} catch (InterruptedException e) {<br />
//<br />
}<br />
item.checkIn(name);<br />
}<br />
}<br />
}<br />
</code></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailynote.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailynote.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailynote.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailynote.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailynote.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailynote.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailynote.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailynote.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailynote.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailynote.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailynote.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailynote.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailynote.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailynote.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=6&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailynote.wordpress.com/2009/03/10/how-to-create-read-write-lock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/121a598125a0bf4e74f0a7db42777a7a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yoghamala</media:title>
		</media:content>
	</item>
		<item>
		<title>Hallo Dunia!</title>
		<link>http://dailynote.wordpress.com/2009/03/05/hello-world/</link>
		<comments>http://dailynote.wordpress.com/2009/03/05/hello-world/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 04:16:00 +0000</pubDate>
		<dc:creator>yoghamala</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Halo dunia&#8230;. Ini kali pertama gue bikin blog, tujuan gue bikin blog cuma pengen bikin catatan harian mengenai hidup gue seperti halnya external storage yang membackup otak gue.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=1&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Halo dunia&#8230;. Ini kali pertama gue bikin blog, tujuan gue bikin blog cuma pengen bikin catatan harian mengenai hidup gue seperti halnya external storage yang membackup otak gue.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dailynote.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dailynote.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dailynote.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dailynote.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dailynote.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dailynote.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dailynote.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dailynote.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dailynote.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dailynote.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dailynote.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dailynote.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dailynote.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dailynote.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dailynote.wordpress.com&amp;blog=6833615&amp;post=1&amp;subd=dailynote&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dailynote.wordpress.com/2009/03/05/hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/121a598125a0bf4e74f0a7db42777a7a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yoghamala</media:title>
		</media:content>
	</item>
	</channel>
</rss>
