<?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/"
	>

<channel>
	<title>.zugiart &#187; zen</title>
	<atom:link href="http://www.zugiart.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zugiart.com</link>
	<description>Software Engineering, buddhism, and everything else in between.</description>
	<lastBuildDate>Fri, 03 Sep 2010 09:59:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<script type="text/javascript">

if (typeof Meebo == 'undefined') {

Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)};
(function(q){

	var args = arguments;
	if (!document.body) { return setTimeout(function(){ args.callee.apply(this, args) }, 100); }
	var d=document, b=d.body, m=b.insertBefore(d.createElement('div'), b.firstChild); s=d.createElement('script');
	m.id='meebo'; m.style.display='none'; m.innerHTML='<iframe id="meebo-iframe"></iframe>';
	s.src='http'+(q.https?'s':'')+'://'+(q.stage?'stage-':'')+'cim.meebo.com/cim/cim.php?network='+q.network;
	b.insertBefore(s, b.firstChild);

})({network:'zugiartcom_se64ra'});	}</script>	<item>
		<title>Review &#8211; Logitech Illuminated Keyboard on Ubuntu</title>
		<link>http://www.zugiart.com/2010/09/logitech-illuminated-keyboard-review/</link>
		<comments>http://www.zugiart.com/2010/09/logitech-illuminated-keyboard-review/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 09:59:32 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[logitech]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/2010/09/logitech-illuminated-keyboard-review/</guid>
		<description><![CDATA[Yesterday, my Apple keyboard&#8217;s L key just died on me. Today I went around trying all sort of keyboards and settled on this baby: The Logitech Illuminated Keyboard What&#8217;s so good about it? DesignPersonally I prefer something that is simple and not over the top. And the design of this keyboard is very elegant. I [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, my Apple keyboard&#8217;s L key just died on me. Today I went around trying all sort of keyboards and settled on this baby: The Logitech Illuminated Keyboard</p>
<p>What&#8217;s so good about it?
<ul>
<li><b>Design</b><br />Personally I prefer something that is simple and not over the top. And<br />
the design of this keyboard is very elegant. I would go one step further<br />
 to tout that this keyboard </p>
</li>
<li><b>Form Factor</b><br />It looked great. The key size feels right, the space between the keys is also good. The arrangement of the key is arguably one of the best I&#8217;ve used so far. (I&#8217;m a programmer, believe me I&#8217;ve used heaps of keyboard before).
</li>
<li><b>Comfort<br /></b>All in all, this is the most comfortable keyboard I have used so far.
</li>
<li><b>Backlighting<br /></b>Since this is the Logitech <b>Illuminated</b> keyboard, I thought I should touch on the backlighting. Logitech have done an awesome job here &#8211; the lighting on all keys are perfect, the etching on the keys are very precise and the letters are big and legible. On this department, I have nothing to complain about.
</li>
<li><b>Durability<br /></b>I will tell you in about 5 years whether this is a worthwhile investment or not <img src='http://www.zugiart.com/main/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </li>
</ul>
<p>What&#8217;s bad about it?
<ul>
<li><b>Price!</b><br />Let&#8217;s put it this way. I used to think that Apple&#8217;s keyboard is the<br />
winner in all department compared to other keyboard you find on the<br />
market these days. It&#8217;s comfortable, it looked good, and it&#8217;s got that<br />
USB port on the side (that I never really use because it&#8217;s slow). This<br />
keyboard is a big step forward from the Apple keyboard, it is<br />
comparatively better in every respect &#8211; unfortunately it&#8217;s also way more<br />
 expensive. </li>
</ul>
<p>Does it work with Ubuntu?</p>
<p>Yes it does. I plugged it in, and<br />
it worked, period. I am still on Ubuntu 9.10 &#8211; but I imagine the support<br />
 on 10.04 would be better still. </p>
<p>Conclusion</p>
<p>You do think about<br />
whether something so simple should cost so much or not. I used to be a bit of a skeptic too but once I used this, I can see where all my money went. Whether you splurge for something you type on everyday or not is really up to you <img src='http://www.zugiart.com/main/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img style='display:none' id="post-1382-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.zugiart.com/2010/09/logitech-illuminated-keyboard-review/',title:'Review &#8211; Logitech Illuminated Keyboard on Ubuntu',tweet:'Yesterday, my Apple keyboard&#8217;s L key just died on me. Today I went around trying all sort of k',description:'Yesterday, my Apple keyboard&#8217;s L key just died on me. Today I went around trying all sort of k'})"><script type='text/javascript'>document.getElementById("post-1382-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2010/09/logitech-illuminated-keyboard-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Day Turned</title>
		<link>http://www.zugiart.com/2010/08/lethe-bashar-dead-the-day-turned/</link>
		<comments>http://www.zugiart.com/2010/08/lethe-bashar-dead-the-day-turned/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 13:47:43 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[art]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[buddhism]]></category>
		<category><![CDATA[death]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/?p=1370</guid>
		<description><![CDATA[I knew @blogofinnocence by his alias Lethe Bashar. I&#8217;m most inspired by his style, his honesty in articulating and expressing his views and analysis in art and life. In our brief time we converse through blog posts, comments, and poetry (he is the one person who get me really interested in poetry, to be honest). [...]]]></description>
			<content:encoded><![CDATA[<p>I knew <a href="http://twitter.com/blogofinnocence">@blogofinnocence</a> by his alias <a href="http://www.theblogofinnocence.com/">Lethe Bashar</a>. I&#8217;m most inspired by his style, his honesty in articulating and expressing his views and analysis in art and life. In our brief time we converse through blog posts, comments, and poetry (he is the one person who get me really interested in poetry, to be honest). As he connects to other through art, I  connected to him through buddhism &#8211; it is a very invigorating experience.</p>
<p>In the past few months, I have been wondering where he&#8217;d gone because he is usually very active on the net. I was a little bit afraid that the darkness would consume him as I feel that it was in there from our exchange of thoughts, but because I never knew him at personal level, I never asked the question. He left me a message before saying he will respond to my latest comment, but never did.</p>
<p>Weeks passed, and today I received a DM from his twitter account &#8211; <a href="http://twitter.com/vinamist">@VinaMist</a> notified me that <em>Chris</em> (lethe&#8217;s real name) had passed away a month ago. I was just at Taste Of Melbourne, in rapture after savouring the myriad of beautiful food and wine in that place. To receive news of death at such a joyous occasion is a new experience to me.</p>
<p>To be honest I feel for him, not many people connects to others with that amount of sincerity. He connects to people through his work &#8211; I feel that had he not died, he would have contributed greatly to the world of literature. He invited me once to converse over Skype, I wished I had taken that opportunity while it was still knocking on my door. But such is life, I guess.</p>
<p>I don&#8217;t think that the news ruined the experience. I accept that this is the nature of things, that for every beginning there is an end. At the back of my mind I wanted to know, how did he passed away? But for me who is on the other side of the world, this would be a no-question. This would be like asking whether the Dailai Lama owned  a pair of jeans or not.</p>
<p>For those who have no means to find out, it is a no-question. I will never know. And so I let go of the question and appreciate what little is left.</p>
<p>Lethe, this will be my final poetry for you. May you rest in peace, my friend.</p>
<blockquote><p><span style="text-decoration: underline;"><strong>The Day Turned</strong></span></p></blockquote>
<blockquote><p>With eyes open I stepped outside;<br />
on the pond was the moon,<br />
reflected.</p></blockquote>
<blockquote><p>Darkness falls, the day is gone<br />
and the sun&#8217;s warmth in my heart,<br />
remembered.</p></blockquote>
<img style='display:none' id="post-1370-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.zugiart.com/2010/08/lethe-bashar-dead-the-day-turned/',title:'The Day Turned',tweet:'I knew @blogofinnocence by his alias Lethe Bashar. I&#8217;m most inspired by his style, his honesty',description:'I knew @blogofinnocence by his alias Lethe Bashar. I&#8217;m most inspired by his style, his honesty'})"><script type='text/javascript'>document.getElementById("post-1370-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2010/08/lethe-bashar-dead-the-day-turned/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handling Oracle cursors in JDBC</title>
		<link>http://www.zugiart.com/2010/08/handling-oracle-cursors-in-jdbc/</link>
		<comments>http://www.zugiart.com/2010/08/handling-oracle-cursors-in-jdbc/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 00:54:22 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[cursor]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/2010/08/handling-oracle-cursors-in-jdbc/</guid>
		<description><![CDATA[Summary It is common practice for Oracle stored procedure to pass cursors to calling client. The client then needs to guarantee that the cursors are handled and closed properly, otherwise overtime the open cursor will accumulate into an ORA-1000 error (&#8220;ORA-1000 Maximum Number of Cursors Exceeded&#8221;) In Java world, cursor translates as ResultSet. In the [...]]]></description>
			<content:encoded><![CDATA[<h2>Summary</h2>
<p>It is common practice for Oracle stored procedure to pass cursors to calling client. The client then needs to guarantee that the cursors are handled and closed properly, otherwise overtime the open cursor will accumulate into an <a href="http://www.google.com.au/search?q=ORA-1000">ORA-1000</a> error (&#8220;ORA-1000 Maximum Number of Cursors Exceeded&#8221;)</p>
<p>In Java world, cursor translates as ResultSet. In the case where an open cursor is passed from a stored procedure to a Java code (over JDBC), the code must work with the ResultSet and not forget to close() it after it&#8217;s done with it. However, this is often overlooked, because when ResultSet is garbage collected, the close() is not called and as a result, the open cursor remains open in the Oracle server.</p>
<p>This fault is surprisingly common amidst Java programmer &#8211; and the reason is because inexperienced Java programmers are usually spoiled by Garbage Collection, and many of them failed to develop the strict habit of clearing resource after they are used.</p>
<p>Therefore, Java programmers should always remember to explicitly close() any resource that is explicitly open such as file, and in this case, Oracle database cursors (ResultSet).</p>
<h2>Example</h2>
<p>This is an example of stored procedure using cursor:</p>
<pre class="code" lang="sql">PROCEDURE A_PROC(P_1 IN VARCHAR2, P_OUT_VAL OUT SYS_REFCURSOR) IS
    -- body of execution ---
    OPEN P_OUT_VAL ...
    -- exception handling --
    EXCEPTION WHEN OTHERS THEN
    -- don't forget to close cursor here
END A_PROC;
</pre>
<p>on stored procedures that passes cursor to the client, it is important to first agree on the way cursors will be handled on exception cases. The best case is usually for the stored procedure to close all open cursor that it can close in the case of exception. In the case where open cursor is successfully passed, the Java/JDBC code need to handle it like so:</p>
<pre class="code" lang="java">CallableStatement cstmt = conn.prepareCall("SQL...");
ResultSet rs = null;
try {
   rs = // obtain result set here
}catch(Exception ex){
   // handle exception here
}
finally{
   // ensure result set (cursors) are closed
   rs.close();
   // ensure statement is closed here
   cstmt.close();
}
</pre>
<h2>Offline ResultSet</h2>
<p>What if you need to use the result set outside the context of the operation? Then use <a href="http://download-llnw.oracle.com/javase/6/docs/api/javax/sql/rowset/CachedRowSet.html">CachedRowSet</a> &#8211; Oracle provide a concrete implementation that will work fine, called OracleCachedRowSet. Like so:</p>
<pre class="code" lang="java">// this is where the live cursor is
ResultSet rs;
// define offline container &amp; populate it.
CachedRowSet crs = new OracleCachedRowSet();
crs.populate(rs);
</pre>
<p>But beware:</p>
<ul>
<li>ResultSet can be huge, CachedRowSet is convenient but beware of extracting too many data into the cached rowset. That cache lives in memory, don&#8217;t blow it out.</li>
<li>ResultSet resource lifecycle still need to be maintained as per usual, close if when you&#8217;ve done reading.</li>
</ul>
<h2>Corner case: Cursor Spike</h2>
<p>It is also possible to encounter ORA-1000 error when a JDBC Connection (Oracle Session) is shared amongst multiple thread of execution. A cursor limit is usually imposed on a given Session &#8211; sometimes it is possible that due to high usage of the shared session, the cursor &#8216;spikes&#8217; and exceeded this limit.</p>
<p>This will give a false impression and could cause database developers and JDBC developers to go round chasing the cause for days, while in fact it is not a code problem, but rather <em>session capacity / provisioning</em> problem.</p>
<p>The solution to this is to implement good logging in both end (JDBC &amp; DB side) to isolate the cause, working with DBAs to categorically record session usage and seeing patterns in which the session is being used.</p>
<p>The ideal solution is to control the Connection sharing via Connection Pools.</p>
<div class="zemanta-pixie"></div>
<img style='display:none' id="post-1339-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.zugiart.com/2010/08/handling-oracle-cursors-in-jdbc/',title:'Handling Oracle cursors in JDBC',tweet:'Summary It is common practice for Oracle stored procedure to pass cursors to calling client. The cli',description:'Summary It is common practice for Oracle stored procedure to pass cursors to calling client. The cli'})"><script type='text/javascript'>document.getElementById("post-1339-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2010/08/handling-oracle-cursors-in-jdbc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Middle Way</title>
		<link>http://www.zugiart.com/2010/08/the-middle-way/</link>
		<comments>http://www.zugiart.com/2010/08/the-middle-way/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 13:41:32 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[thoughts]]></category>
		<category><![CDATA[buddhism]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[middle way]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/2010/08/the-middle-way/</guid>
		<description><![CDATA[One can be lost in Samsara as much as the Dharma.There is a reason why Buddhism is called the Middle Way. The middle way is not found in the fanaticsIt is also not found in the ignorant and non-believers. The middle way is not for the lazyIt is also not found in overwork. The middle [...]]]></description>
			<content:encoded><![CDATA[<p>One can be lost in Samsara as much as the Dharma.<br />There is a reason why Buddhism is called the Middle Way. </p>
<p>The middle way is not found in the fanatics<br />It is also not found in the ignorant and non-believers. </p>
<p>The middle way is not for the lazy<br />It is also not found in overwork. </p>
<p>The middle way is more subtle<br />than the hint of sweetness in a strong black coffee. </p>
<p>It is unimaginably difficult to perceive. <br />yet for those who have seen it, it can&#8217;t not be seen again.</p>
<p>As Buddha say in the lotus Sutra<br />&#8220;The Door to enlightenment is difficult to perceive and impossible to attain&#8221;</p>
<p>It is only with constant practice, and determined effort <br />can one understand one&#8217;s true nature</p>
<p>And it is only through understanding of the one true nature<br />that the universe is subdued. </p>
<p>When this done, <br />The way that is no way <br />will be in full play. </p>
<img style='display:none' id="post-1336-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.zugiart.com/2010/08/the-middle-way/',title:'The Middle Way',tweet:'One can be lost in Samsara as much as the Dharma.There is a reason why Buddhism is called the Middle',description:'One can be lost in Samsara as much as the Dharma.There is a reason why Buddhism is called the Middle'})"><script type='text/javascript'>document.getElementById("post-1336-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2010/08/the-middle-way/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Test post via my n900</title>
		<link>http://www.zugiart.com/2010/08/test-post-via-my-n900/</link>
		<comments>http://www.zugiart.com/2010/08/test-post-via-my-n900/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 08:06:53 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[n900]]></category>
		<category><![CDATA[notes]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/2010/08/test-post-via-my-n900/</guid>
		<description><![CDATA[This is a test post using my nokia n900, let&#8217;s see how we go :p this is a very good way of capturing notes on the go. This is done through an application called MaStory. Seriously, is there anything this phone can&#8217;t do!? Btw I am gathering notes on n900 configuration. It will be one [...]]]></description>
			<content:encoded><![CDATA[<p>This is a test post using my nokia n900, let&#8217;s see how we go :p</p>
<p>this is a very good way of capturing notes on the go. This is done through an application called MaStory. Seriously, is there anything this phone can&#8217;t do!?</p>
<p>Btw I am gathering notes on n900 configuration. It will be one hell of a guide once it&#8217;s done. <img src='http://www.zugiart.com/main/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img style='display:none' id="post-1228-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.zugiart.com/2010/08/test-post-via-my-n900/',title:'Test post via my n900',tweet:'This is a test post using my nokia n900, let&#8217;s see how we go :p this is a very good way of cap',description:'This is a test post using my nokia n900, let&#8217;s see how we go :p this is a very good way of cap'})"><script type='text/javascript'>document.getElementById("post-1228-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2010/08/test-post-via-my-n900/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Response to the essay of Lethe</title>
		<link>http://www.zugiart.com/2010/07/response-to-the-essay-of-lethe/</link>
		<comments>http://www.zugiart.com/2010/07/response-to-the-essay-of-lethe/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 09:18:52 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[art]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/?p=1183</guid>
		<description><![CDATA[Long response to the essay of Lethe Bashar, author of Blog of Innocence]]></description>
			<content:encoded><![CDATA[<p>Lethe, I wrote this in reply to your great essay,  I thoroughly enjoyed reading it. So here is my response, a long one. It doesn&#8217;t fit into the damn comment box, so here it is on my blog, grouped by the theme/topic I found throughout your essay.</p>
<h3>On art &amp; reframing of context</h3>
<p>I agree with you &#8211; art is not the invention of an object. Art is the expression that captures the perception of the artist towards that object at that moment. In doing so, the work is imbued with the artist&#8217;s life state. Such work leaves us in awe because the better the expression, the clearer/easier it is for us to EXPERIENCE that imbued life state.</p>
<p>In doing so, great work of art inspires.</p>
<h3>Reflecting on the narrative of Basquat</h3>
<blockquote><p>My immediate emotion after watching the film was sadness.<br />
How is it that a certain narrative comes to define a person&#8217;s life?</p></blockquote>
<p>This is the nature of all phenomena: From thought comes intent. From intent, action. From action, interaction. From interaction, causes are made. From causes, effect/impact on the world.</p>
<p>Simply, our life is our ultimate work of art. That Basquiat&#8217;s life inspires sadness is proof that his mind works in that plane. It is very sad indeed because it is unnecessarily so.</p>
<h3>Success, Fame and the price you pay.</h3>
<p>&#8220;Success breeds disappointment, because success and failure are two sides of the same coin&#8221; &#8211; I disagree with this. I think we are not disappointed by our failure, but rather by our expectation to succeed being unfulfilled.</p>
<p>Basquiat aspires to be famous. He works his ass off to be famous. I imagine that he expect that if he does so, fame will follow. And if fame arrives, happiness will, too. But what if success didn&#8217;t come as he wish it to be? What if he is not famous? Well, in this case, he does, but at what cost?</p>
<p>People who base their happiness and &#8220;success&#8221; on how many of these expectation will materialize will live very unhappy life. Because we don&#8217;t control every single event that happens around us. It is such a dangerous and subtle trap. it is like having a hole in your attic. From this hole came one mouse to steal your food. And from where one came, many will follow.</p>
<p>This is why you say from Fame comes Isolation, Impact on one&#8217;s character, beliefs and mindset and the terrible fate that awaits the successful artist who can not handle the weight of his own glory.</p>
<p>But the weight and devastation comes not from the fame. It comes from the subtle trap.</p>
<p>So here is a little bit of my buddhism dump. Hope you like it <img src='http://www.zugiart.com/main/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3><strong>Cause and Effect<br />
</strong></h3>
<blockquote><p>Those who yearn for fame and success,<br />
believing it will bring them happiness<br />
is like an unlit candle who yearn to be<br />
the warmth and illumination in a cold dark room.</p>
<p>Warmth and illumination<br />
are simply by-products of FIRE.<br />
When the fire is alight,<br />
warmth and illumination will follow.</p>
<p>This is the law of cause and effect.<br />
It is very simply, plain common sense.<br />
So focus on the cause, not on the effect.<br />
and light the fire within.</p>
<p>In this way, come what may,<br />
success or no success,<br />
fame or no fame,<br />
acceptance or rejection,</p>
<p>The artist will retain his beauty.<br />
the work will retain his originality.<br />
and his life, his ultimate work of art,<br />
will be sublime.</p></blockquote>
<h3>Oh, and click play here:</h3>
<p><!--copy and paste--><object with="600" height="400"><param name="wmode" value="transparent"></param><param name="bgColor" value="#ffffff"></param><param name="flashvars" value="vu=http://video.ted.com/talks/dynamic/ElizabethGilbert_2009-medium.flv&#038;su=http://images.ted.com/images/ted/tedindex/embed-posters/ElizabethGilbert_2009.embed_thumbnail.jpg&#038;vw=432&#038;vh=240&#038;ap=0&#038;ti=453&#038;introDuration=15330&#038;adDuration=4000&#038;postAdDuration=830&#038;adKeys=talk=elizabeth_gilbert_on_genius;year=2009;theme=the_creative_spark;theme=speaking_at_ted2009;theme=words_about_words;event=TED2009;&#038;preAdTag=tconf.ted/embed;tile=1;sz=512x288;" /><embed src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" pluginspace="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" bgColor="#ffffff" width="446" height="326" allowFullScreen="true" allowScriptAccess="always" flashvars="vu=http://video.ted.com/talks/dynamic/ElizabethGilbert_2009-medium.flv&#038;su=http://images.ted.com/images/ted/tedindex/embed-posters/ElizabethGilbert_2009.embed_thumbnail.jpg&#038;vw=432&#038;vh=240&#038;ap=0&#038;ti=453&#038;introDuration=15330&#038;adDuration=4000&#038;postAdDuration=830&#038;adKeys=talk=elizabeth_gilbert_on_genius;year=2009;theme=the_creative_spark;theme=speaking_at_ted2009;theme=words_about_words;event=TED2009;"></embed></object></p>
<img style='display:none' id="post-1183-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.zugiart.com/2010/07/response-to-the-essay-of-lethe/',title:'Response to the essay of Lethe',tweet:'Lethe, I wrote this in reply to your great essay,  I thoroughly enjoyed reading it. So here is my r',description:'Lethe, I wrote this in reply to your great essay,  I thoroughly enjoyed reading it. So here is my r'})"><script type='text/javascript'>document.getElementById("post-1183-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2010/07/response-to-the-essay-of-lethe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging a remote java application with Eclipse</title>
		<link>http://www.zugiart.com/2010/07/debugging-a-remote-java-application-with-eclipse/</link>
		<comments>http://www.zugiart.com/2010/07/debugging-a-remote-java-application-with-eclipse/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 01:26:46 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/2010/07/debugging-a-remote-java-application-with-eclipse/</guid>
		<description><![CDATA[You can remotely debug a java application by first starting it like below. java -Xdebug -Xrunjdwp:transport=dt_socket,address=8888,server=y .... Then, any decent IDE (such as Eclipse) with facility to remote debug a java application will be able to attach into the running process under the specified port (in this case, 8888). in Eclipse: Run &#62; debug configurations [...]]]></description>
			<content:encoded><![CDATA[<p>You can remotely debug a java application by first starting it like below.</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">java -Xdebug -Xrunjdwp:transport=dt_socket,address=8888,server=y ....</pre></div></div>

<p>Then, any decent IDE (such as Eclipse) with facility to remote debug a java application will be able to attach into the running process under the specified port (in this case, 8888).</p>
<p>in Eclipse: </p>
<ul>
<li>Run &gt; debug configurations &gt; remote java application</li>
<li>Use standard (socket attach), specify the port</li>
<li>Attach the project source code</li>
<li>start debugging</li>
</ul>
<p>Not a netbeans fan so I don&#8217;t know how to work netbeans to do remote debug, but I imagine similar facility should be available.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=e1fea1ab-653a-8df6-b199-8d417ff2e921" /></div>
<img style='display:none' id="post-1179-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.zugiart.com/2010/07/debugging-a-remote-java-application-with-eclipse/',title:'Debugging a remote java application with Eclipse',tweet:'You can remotely debug a java application by first starting it like below. 9ad000788d12e84a46c07ac56',description:'You can remotely debug a java application by first starting it like below. 9ad000788d12e84a46c07ac56'})"><script type='text/javascript'>document.getElementById("post-1179-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2010/07/debugging-a-remote-java-application-with-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wept The Autumn Wind</title>
		<link>http://www.zugiart.com/2010/06/wept-the-autumn-wind/</link>
		<comments>http://www.zugiart.com/2010/06/wept-the-autumn-wind/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 23:14:46 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[art]]></category>
		<category><![CDATA[thoughts]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/?p=1161</guid>
		<description><![CDATA[A poetry I wrote in response to one written by Lethe Bashar called 'The theatre is self-contained']]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://dsphotographic.com/g2/10366-3/Cherry+Blossoms+-+001.jpg" alt="" width="349" height="525" /></p>
<p>Wept  the Autumn Wind<br />
and all, hundred-thousand<br />
cherry blossom petals,<br />
rains  upon the ground.</p>
<p>In awe and admiration,<br />
I observe this change  of season.<br />
Oh, heavenly orchestration!<br />
How did you become?</p>
<p>My  own self dies<br />
as I realize<br />
the &#8220;I&#8221;<br />
that was never there</p>
<p>Beautiful  is<br />
the heart that appreciates,<br />
the eye that sees<br />
the world as  is.</p>
<p>-</p>
<p>written in response to one by Lethe Bashar called &#8216;<a href="http://www.theblogofinnocence.com/2010/06/theater-is-self-contained.html">The  theatre is self-contained</a>&#8216;. Note: tree image is found through  google, I didn&#8217;t take this picture.</p>
<img style='display:none' id="post-1161-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.zugiart.com/2010/06/wept-the-autumn-wind/',title:'Wept The Autumn Wind',tweet:' Wept  the Autumn Wind and all, hundred-thousand cherry blossom petals, rains  upon the ground. In a',description:' Wept  the Autumn Wind and all, hundred-thousand cherry blossom petals, rains  upon the ground. In a'})"><script type='text/javascript'>document.getElementById("post-1161-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2010/06/wept-the-autumn-wind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Ten Factors</title>
		<link>http://www.zugiart.com/2010/05/ten-factors-of-life/</link>
		<comments>http://www.zugiart.com/2010/05/ten-factors-of-life/#comments</comments>
		<pubDate>Wed, 26 May 2010 13:58:41 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[notes]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/?p=1151</guid>
		<description><![CDATA[Essay on the 10 factors of life (10-nyoze) a model of representing a life condition according to Nichiren Buddhism]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>The Ten Factors (10-nyoze)  is a model for conceptualizing the law of cause and effect as expounded by Gautama Buddha in the 2nd chapter of the Lotus Sutra. This note covers my study on understanding its meaning.</p>
<p>To me, to understand Cause and Effect is to understand the very fundamental aspect of this universe. There is not a single atom or particle in this world that does not interact with any other entity. If there is, then such an entity will be unknown to us.</p>
<h2>Lotus Sutra &#8211; Cause and Effect.</h2>
<p>The Lotus Sutra is the final sermon given by Gautama Buddha &#8211; unlike other Sutra who is preached by Buddha to answer a given problem, the Lotus Sutra seeks out to enlighten its audience to the ultimate truth. Lotus embodies Cause and Effect due to its nature &#8211; it blossoms and plant it seeds at the same time. This signifies that when a Cause is made, the Effect is <em>determined</em> at the same instant.</p>
<p>The law of cause and effect is NOT a system created by Gautama Buddha &#8211; he simply realizes it. And to this day, I have not found anything that defies this law.</p>
<h2>Ten Factors</h2>
<p style="text-align: center;"><img title="nichiren-sgi-buddhism-life10factor" src="http://www.zugiart.com/main/wp-content/uploads/2009/09/nichiren-sgi-buddhism-life10factor.png" alt="Nichiren, SGI, !0 Factors of Life" width="523" height="414" /></p>
<p>They are:</p>
<ol>
<li>Appearance: the external look that is seen by others, the physical aspect of our entity.</li>
<li>Nature: our temperament, likes and dislikes and so on &#8211; non-physical aspect of our entity.</li>
<li>Entity: a complete representation of our life as a being, a combination of (1) and (2).</li>
<li>Energy: the internal drive within that propels it to act.</li>
<li>Influence: the impact exerted by an entity as a result of the action taken</li>
<li>Internal Cause: Is the possibility inherent in our life</li>
<li>External Cause: Manifestation of that possibility through an action (thus creating a tangible cause)</li>
<li>Latent Effect: Is the effect of the causes made in (7) &#8211; that is still unmanifest</li>
<li>Manifest Effect: Is manifestation of (8) when it becomes tangible</li>
<li>Consistency from beginning to end: a consistent representation of 1-9 at any given moment, embodying the integrity of the law.</li>
</ol>
<h2>Elaboration through example</h2>
<h3>Character: Appearance, Nature, and Entity.</h3>
<p>let&#8217;s take a look at this picture (which I obtained from Google Images by querying: &#8216;kids playing&#8217;)</p>
<p><img src="http://bluemooncandles.files.wordpress.com/2009/06/kids_playing.jpg" alt="" width="630" height="486" /></p>
<p><strong>Appearance</strong> (1st factor) is simply the aspect of how one living being appears to other living being who can see/hear/feel it. Here, we can see many children holding hands and playing on a grassy playground, under a blue sky. The one on the left, wearing a red jumper, is smiling and appears to be very happy. This is appearance &#8211; very simple. But just by looking alone, can you tell his nature? Why is he wearing a red jumper, as opposed to a blue one? Why is he playing with others, as oppose to staying with his parents?</p>
<p>To understand this is to understand the boy&#8217;s <strong>Nature </strong>(2nd factor). Does the boy like to throw tantrum, or will he listen, respect, and learn from his parents? Does he likes playing in the outdoor, is he social, or is he more of the shy type, who shuns other and prefers the company of their parents? These are aspect of an entity that you can not perceive by just looking at them alone. True, some of us have the gift to perceive a lot of information from just the appearance, but this is why we have the term &#8220;appearance can be deceiving&#8221;.</p>
<p>Now if you have perceived the boy&#8217;s Appearance &#8211; and if you have spoken to the boy and understood his Nature, then it can be said that you have understood the boy&#8217;s <strong>Entity</strong> (3rd factor).</p>
<p>In summary: My head, my face, my body, by clothes, my glasses are some of the things that made up my appearance. My fashion taste is part of my nature that made me buy the clothes I am wearing today. My mood and preference is what made me wear those clothes today. So you can say that to understand these 2 factors is to understand my entity, or my character.</p>
<h3>Action: Energy, Influence</h3>
<p>Made up of the following factors: (4) energy, (5) influence</p>
<p>No living being can stop taking action. It is impossible to NOT take action, unless, you are dead. To hold your breath, or to breathe is an action. In fact, if you are facing a crisis and you decide that you don&#8217;t want to take any action &#8211; that in itself is an action!</p>
<p>We are not a puppet that is controlled and moved by something outside ourselves. We move our own body. We decide what we want to do and we do what we do.<strong> Energy </strong>(4th factor) is the fuel that drives a living entity to <em>live</em>. You can also call this <em>Free Will</em>.</p>
<p>When you act, you interact with the world. When you type, your hand touches the keyboard &#8211; when you take a glass, drank water, and put it down on the table, your hand interact with the glass, and the glass interacts with the table. This interaction causes things around you to change. In other words, your <strong>Action</strong>, carried as you are fuelled by the <strong>Energy</strong> within, have caused an <strong>Influence</strong> (5th factor) to the things around you.</p>
<p>Thus defines your existence in this world.</p>
<h3>Cause</h3>
<p>Imagine, for example, that you are born into a family with a history of being prone to a particular disease, such as cancer or high blood pressure (Scientist attributes such things to genes).</p>
<p>As you grew up, from a very young age you are raised in an environment that really provokes your interest in music. We can then say that such a person, at any given moment, have the possibility of developing cancer, as well as becoming a rock musician. This possibility is driven by our blueprints, as well as by our everyday life. This possibility is factor (6) &#8211; Internal Cause.</p>
<p>These internal cause affects our day to day action. If I have lived a life of negligence and ignorance, I would perhaps not worry about my health at all, and all the more reason to pursue a life of sex, drugs and rock and roll!!</p>
<p>This internal cause of negligence and ignorance would perhaps manifest itself in my decision to take a particular action of drowning myself in drinkin way more than I should drink in a day. But perhaps it would also increases my creativity, and thus my ability to produce better rock music.</p>
<p>When this possibility is manifest in an action, the external cause &#8211; factor (7) &#8211; is made. And when a cause is made, the effect will follow.</p>
<h3>Effect</h3>
<p>Let&#8217;s follow through from the example set in the section above (cause) . Obviously concerned friends and family members would gave sound advice to my over-drinking life, to take it easy and not drink so much. But the moment I decided that I don&#8217;t want to listen to them and I want to drink as much as I want to, when I want to, then the inherent effect (factor <img src='http://www.zugiart.com/main/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> is already made. No human can calculate what this inherent effect will be &#8211; if you can, then perhaps you have attained enlightenment (in which case, congrats!)</p>
<p>Perhaps one day my liver will blow, or perhaps I will get into an accident from drink-driving. All of this are inhenrent, they have not happened yet. But sooner or later it will &#8211; it is only a matter of time.</p>
<p>When the inherent effect DID manifest &#8211; then it is called the Manifest Event, which is factor number (9). At here, you can say that I have reaped the effect of the cause I have mad ein the past: a life full of over-drinking and not listening to sound advice from friends and family!</p>
<img style='display:none' id="post-1151-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.zugiart.com/2010/05/ten-factors-of-life/',title:'The Ten Factors',tweet:'Introduction The Ten Factors (10-nyoze)  is a model for conceptualizing the law of cause and effect',description:'Introduction The Ten Factors (10-nyoze)  is a model for conceptualizing the law of cause and effect'})"><script type='text/javascript'>document.getElementById("post-1151-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2010/05/ten-factors-of-life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Way of The General</title>
		<link>http://www.zugiart.com/2010/05/zhuge-liang/</link>
		<comments>http://www.zugiart.com/2010/05/zhuge-liang/#comments</comments>
		<pubDate>Mon, 17 May 2010 07:05:48 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[leadership]]></category>
		<category><![CDATA[strategy]]></category>
		<category><![CDATA[zhuge liang]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/?p=1140</guid>
		<description><![CDATA[Studying the Way Of The Generals, by Zhuge Kong Ming and the principles behind his work.]]></description>
			<content:encoded><![CDATA[<h3>The Practice Of a Cultivated Man</h3>
<p>Is to refine himself by quietude,<br />
and develop virtue by frugality.<br />
Without detachment there is no way to clarify the will;<br />
without serenity there is no way to get far.</p>
<p>Talent requires study,<br />
study requires calm,<br />
Without study there is no way to expand talent,<br />
without calm there is no way to accomplish study.</p>
<p>If you laze, you cannot do thorough research;<br />
if you are impulsive, you cannot govern your nature.<br />
If your will is not strong,<br />
if your thought does not oppose injustice,</p>
<p>You will fritter away, your life stuck in the commonplace,<br />
silently submitting to the bonds of emotion,<br />
forever cowering before mediocrities,<br />
never escaping the downward flow.</p>
<p>Aspiration should remain lofty and far-sighted,<br />
look to the precedents of the wise;<br />
Be patient in tight situations as well as easy one,<br />
eliminate all pettiness!</p>
<p>Seek knowledge by questioning widely,<br />
set aside aversion and reluctance.</p>
<p>What loss is there in dignity,<br />
what worry is there of failure?</p>
<h3>Zhuge Liang and the essay</h3>
<p><img src="http://www.artoftheprint.com/jpegimages/kuniyoshi_ichiyasai_fulllengthportraitofanoblemanwithafan.jpg" alt="" width="250" height="396" /></p>
<blockquote><p>Wikipedia Entry:</p>
<p><strong>Zhuge Liang</strong> (<a title="Traditional Chinese characters" href="http://en.wikipedia.org/wiki/Traditional_Chinese_characters">traditional  Chinese</a>: <span lang="zh-Hant" xml:lang="zh-Hant"><a title="wikt:諸" href="http://en.wiktionary.org/wiki/%E8%AB%B8">諸</a><a title="wikt:葛" href="http://en.wiktionary.org/wiki/%E8%91%9B">葛</a><a title="wikt:亮" href="http://en.wiktionary.org/wiki/%E4%BA%AE">亮</a></span>; <a title="Simplified Chinese characters" href="http://en.wikipedia.org/wiki/Simplified_Chinese_characters">simplified  Chinese</a>: <span lang="zh-Hans" xml:lang="zh-Hans"><a title="wikt:诸" href="http://en.wiktionary.org/wiki/%E8%AF%B8">诸</a><a title="wikt:葛" href="http://en.wiktionary.org/wiki/%E8%91%9B">葛</a><a title="wikt:亮" href="http://en.wiktionary.org/wiki/%E4%BA%AE">亮</a></span>; <a title="Pinyin" href="http://en.wikipedia.org/wiki/Pinyin">pinyin</a>: <em><a title="wikt:Zhū" href="http://en.wiktionary.org/wiki/Zh%C5%AB">Zhū</a><a title="wikt:gě" href="http://en.wiktionary.org/wiki/g%C4%9B">gě</a> <a title="wikt:Liàng" href="http://en.wiktionary.org/wiki/Li%C3%A0ng">Liàng</a></em>,  181–234) was <a title="Chancellor of China" href="http://en.wikipedia.org/wiki/Chancellor_of_China">Chancellor</a> of <a title="Shu Han" href="http://en.wikipedia.org/wiki/Shu_Han">Shu Han</a> during the <a title="Three Kingdoms" href="http://en.wikipedia.org/wiki/Three_Kingdoms">Three Kingdoms</a> period of China. He is often  recognised as the greatest and most  accomplished strategist of his era.<sup id="cite_ref-jade_0-0"><a href="http://en.wikipedia.org/wiki/Zhuge_Liang#cite_note-jade-0"><span>[</span>1<span>]</span></a></sup></p>
<p>Often depicted wearing a robe and holding a fan made of crane   feathers,<sup id="cite_ref-c-har_1-0"><a href="http://en.wikipedia.org/wiki/Zhuge_Liang#cite_note-c-har-1"><span>[</span>2<span>]</span></a></sup> Zhuge was not only an important military strategist and statesman; he   was also an accomplished scholar and inventor. His reputation as an   intelligent and learned scholar grew even while he was living in   relative seclusion, earning him the nickname &#8220;Wòlóng&#8221; (臥龍, or &#8220;Sleeping   Dragon&#8221;).</p>
<p><a title="Zhuge" href="http://en.wikipedia.org/wiki/Zhuge">Zhuge</a> is an uncommon  two-character <a title="Chinese compound surname" href="http://en.wikipedia.org/wiki/Chinese_compound_surname">compound  family name</a>. His name –  even his surname alone – has become  synonymous with intelligence and  tactics in <a title="Chinese culture" href="http://en.wikipedia.org/wiki/Chinese_culture">Chinese culture</a>.</p></blockquote>
<p>The &#8216;poetry&#8217; above is an appendage of two letters that are sent out  by Zhuge Liang to his nephew and his son on his dying days (which I found in the intro to <a href="http://kongming.net/novel/writings/wotg/">The Way Of The Generals)</a></p>
<p>Combining  the two letters together and rearranging the sentences and prose, I  ended up with a poetry whose title is derived from the first line in the  letter,&#8217;the practice of a cultivated man&#8217;.</p>
<img style='display:none' id="post-1140-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://www.zugiart.com/2010/05/zhuge-liang/',title:'The Way of The General',tweet:'The Practice Of a Cultivated Man Is to refine himself by quietude, and develop virtue by frugality. ',description:'The Practice Of a Cultivated Man Is to refine himself by quietude, and develop virtue by frugality. '})"><script type='text/javascript'>document.getElementById("post-1140-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2010/05/zhuge-liang/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
