<?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>Jimmy's Blog</title>
	<atom:link href="http://jimmod.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimmod.com/blog</link>
	<description>My name is Jimmy, and this is my story... ;)</description>
	<lastBuildDate>Mon, 05 Jul 2010 06:59:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Solving (fixing) ubuntu 10.04 (lucid) screen flicker/distortion</title>
		<link>http://jimmod.com/blog/2010/06/solving-fixing-ubuntu-10-04-lucid-screen-flickerdistortion/</link>
		<comments>http://jimmod.com/blog/2010/06/solving-fixing-ubuntu-10-04-lucid-screen-flickerdistortion/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 04:18:18 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[distortion]]></category>
		<category><![CDATA[fixing]]></category>
		<category><![CDATA[flicker]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[Solving]]></category>
		<category><![CDATA[ubuntu 10.04]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=174</guid>
		<description><![CDATA[
I experiencing random screen distortion &#38; flicker after upgrading to Ubuntu 10.04, I&#8217;m using Acer Notebook.
After searching in internet, there&#8217;s many forum thread &#38; bug report discuss about this but mostly they have different hardware.
Finally I tried this method and no flickering so far.
What I do is I change my grub configuration, adding kernel parameter [...]


Related posts:<ol><li><a href='http://jimmod.com/blog/2009/06/solving-failed-starting-mysql-service-with-non-default-datadir-ubuntu/' rel='bookmark' title='Permanent Link: Solving failed starting mysql service with non default datadir (Ubuntu)'>Solving failed starting mysql service with non default datadir (Ubuntu)</a></li><li><a href='http://jimmod.com/blog/2010/03/updating-pidgin-to-latest-version-in-ubuntu/' rel='bookmark' title='Permanent Link: Updating Pidgin to latest version in Ubuntu'>Updating Pidgin to latest version in Ubuntu</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } --></p>
<p style="margin-bottom: 0in;">I experiencing random screen distortion &amp; flicker after upgrading to Ubuntu 10.04, I&#8217;m using Acer Notebook.<br />
After searching in internet, there&#8217;s many forum thread &amp; bug report discuss about this but mostly they have different hardware.<br />
Finally I tried this method and no flickering so far.</p>
<p style="margin-bottom: 0in;">What I do is I change my grub configuration, adding kernel parameter “i915.powersave=0”.</p>
<p style="margin-bottom: 0in;">For Linux expert probably this is not an issue, so I dedicate this step for the newbies like <img src='http://jimmod.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ol>
<li>What I do is I modify the grub configuration which is located on /boot/grub/grub.cfg (backup before you edit it)</li>
<li>Because the access right is set to read only, let&#8217;s change it so the owner can modify it.<br />
<em>&gt; sudo chmod -c u+w /boot/grub/grub.cfg</em></li>
<li>Use vi or your other prefered editor to edit it.<br />
&gt; sudo vim /boot/grub/grub.cfg</li>
<li>Locate the menuentry of your Linux. Example:<br />
<em>menuentry &#8216;Ubuntu, with Linux 2.6.32-22-generic&#8217; &#8211;class ubuntu &#8211;class gnu-linux &#8211;class gnu &#8211;class os {<br />
recordfail<br />
insmod ext2<br />
set root=&#8217;(hd0,4)&#8217;<br />
search &#8211;no-floppy &#8211;fs-uuid &#8211;set xxx-xxx-xxx</em><br />
<em><strong> linux	/vmlinuz-2.6.32-22-generic root=UUID=xx-xx-xxx-x-xx ro quiet splash</strong><br />
initrd	/initrd.img-2.6.32-22-generic<br />
}</em></li>
<li>Add “i915.powersave=0” to the linux kernel line as parameter. It will become:<br />
menuentry &#8216;Ubuntu, with Linux 2.6.32-22-generic&#8217; &#8211;class ubuntu &#8211;class gnu-linux &#8211;class gnu &#8211;class os {<br />
recordfail<br />
insmod ext2<br />
set root=&#8217;(hd0,4)&#8217;<br />
<em> search &#8211;no-floppy &#8211;fs-uuid &#8211;set xxx-xxx-xxx</em><br />
<em><strong>linux	/vmlinuz-2.6.32-22-generic root=UUID=xx-xx-xxx-x-xx ro </strong></em><strong>i915.powersave=0</strong><em><strong> quiet splash</strong></em><br />
initrd	/initrd.img-2.6.32-22-generic<br />
}</li>
<li>Save &amp; restart to check if you still experiencing screen flicker</li>
</ol>
<p>That&#8217;s it <img src='http://jimmod.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Hope it can work on other Notebook/PC</p>
<p style="margin-bottom: 0in;">


<p>Related posts:<ol><li><a href='http://jimmod.com/blog/2009/06/solving-failed-starting-mysql-service-with-non-default-datadir-ubuntu/' rel='bookmark' title='Permanent Link: Solving failed starting mysql service with non default datadir (Ubuntu)'>Solving failed starting mysql service with non default datadir (Ubuntu)</a></li><li><a href='http://jimmod.com/blog/2010/03/updating-pidgin-to-latest-version-in-ubuntu/' rel='bookmark' title='Permanent Link: Updating Pidgin to latest version in Ubuntu'>Updating Pidgin to latest version in Ubuntu</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2010/06/solving-fixing-ubuntu-10-04-lucid-screen-flickerdistortion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic LWUIT tutorial/sample with Eclipse Pulsar</title>
		<link>http://jimmod.com/blog/2010/04/basic-lwuit-tutorial-with-eclipse-pulsar/</link>
		<comments>http://jimmod.com/blog/2010/04/basic-lwuit-tutorial-with-eclipse-pulsar/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 17:31:41 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Form]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[java me]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[LWUIT]]></category>
		<category><![CDATA[Pulsar]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[transition]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ui framework]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=158</guid>
		<description><![CDATA[I was really want to try LWUIT since several months ago. It&#8217;s look promising and it&#8217;s developed by SUN so I think every Java ME developer should take a look on this technology.
I&#8217;m also still new in LWUIT so there won&#8217;t be a lot that I can share for now, but at least I will [...]


Related posts:<ol><li><a href='http://jimmod.com/blog/2010/03/java-me-j2me-json-implementation-tutorialsample/' rel='bookmark' title='Permanent Link: Java ME (J2ME) JSON Implementation Tutorial/Sample'>Java ME (J2ME) JSON Implementation Tutorial/Sample</a></li><li><a href='http://jimmod.com/blog/2007/11/simple-log4j-implementation/' rel='bookmark' title='Permanent Link: Simple Log4J implementation'>Simple Log4J implementation</a></li><li><a href='http://jimmod.com/blog/2007/11/change-junit-run-file-main-class-working-directory-at-netbeans-55-web-project/' rel='bookmark' title='Permanent Link: Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project'>Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I was really want to try LWUIT since several months ago. It&#8217;s look promising and it&#8217;s developed by SUN so I think every Java ME developer should take a look on this technology.<br />
I&#8217;m also still new in LWUIT so there won&#8217;t be a lot that I can share for now, but at least I will show you a basic demonstration of how to use Form, Label, Command, and 3D Form transition (sound cool huh :p)</p>
<p><strong>REQUIREMENT</strong></p>
<p>What you need:</p>
<ol>
<li> <a href="https://lwuit.dev.java.net/">LWUIT</a></li>
<li><a href="http://www.eclipse.org/pulsar/">Eclipse Pulsa</a></li>
<li>Emulator like <a href="http://java.sun.com/products/sjwtoolkit/">Sun WTK </a></li>
<li>Know basic Java ME programming <img src='http://jimmod.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <span id="more-158"></span></li>
</ol>
<p><strong>CONFIGURE ECLIPSE</strong></p>
<p>First you need to setup your emulator in Eclipse.<br />
Run your Eclipse and select at the menu : Window &#8211; Preferences<br />
Select : Java ME &#8211; Device Management &#8211; click Import<br />
Then browse to your emulator folder, it will scan and give you option to add it to your device list.</p>
<div id="attachment_159" class="wp-caption aligncenter" style="width: 160px"><a href="http://jimmod.com/blog/wp-content/uploads/2010/04/Pulsar_WTK.jpg"><img class="size-thumbnail wp-image-159 " title="Eclipse Pulsar Device Management" src="http://jimmod.com/blog/wp-content/uploads/2010/04/Pulsar_WTK-150x150.jpg" alt="Eclipse Pulsar Device Management" width="150" height="150" /></a><p class="wp-caption-text">Eclipse Pulsar Device Management</p></div>
<p>*I found that the automatic javadoc folder detection for each jar library is not all correct (I&#8217;m using Ubuntu 9.04, WTK 2.5.1)</p>
<p><strong>CREATE NEW MIDlet PROJECT &amp; CONFIGURE</strong></p>
<p>Ok, now we ready to create the new project.<br />
I assume you already know how to use Eclipse properly, create a new MIDlet Project there you will select your default emulator you want to use in the project, MIDP &#8211; CLDC version, etc.<br />
After the new project created we gonna add the LWUIT library to the project.<br />
Right click on the project (at package explorer) and select Properties.<br />
Select &#8216;Java Build Path&#8217; and tab &#8216;Libraries&#8217; then click &#8216;Add External Jars&#8217; and browse to select where your LWUIT jar is. (It will be on the lib folder where you extract you LWUIT zip)</p>
<div id="attachment_160" class="wp-caption aligncenter" style="width: 160px"><a href="http://jimmod.com/blog/wp-content/uploads/2010/04/project_properties.jpg"><img class="size-thumbnail wp-image-160 " title="MIDlet Project Properties" src="http://jimmod.com/blog/wp-content/uploads/2010/04/project_properties-150x150.jpg" alt="MIDlet Project Properties" width="150" height="150" /></a><p class="wp-caption-text">MIDlet Project Properties</p></div>
<p>You will see the LWUIT.jar shown.<br />
Select tab &#8216;Order and Export&#8217;, check the LWUIT.jar library so it will be included in our application jar.</p>
<div id="attachment_161" class="wp-caption aligncenter" style="width: 160px"><a href="http://jimmod.com/blog/wp-content/uploads/2010/04/Properties-Order-and-Export.png"><img class="size-thumbnail wp-image-161 " title="Pulsa MIDlet project order and export" src="http://jimmod.com/blog/wp-content/uploads/2010/04/Properties-Order-and-Export-150x150.png" alt="Pulsa MIDlet project order and export" width="150" height="150" /></a><p class="wp-caption-text">Pulsa MIDlet project order and export</p></div>
<p>One of the cool thing about LWUIT is theme feature, you can see there&#8217;s ResourceEditor in LWUIT&#8217;s &#8216;util&#8217; folder it&#8217;s for editing theme.<br />
Let&#8217;s use default theme from the package. Copy file that located at ./LWUITDemo/src/LWUITtheme.res to our project &#8216;res&#8217;  folder (you can drag &#8216;n drop it to Eclipse).</p>
<p><strong>THE CODING</strong></p>
<p>Now we finally get to real coding.<br />
Add a new MIDlet to the project. In my example I will create BasicForm Class:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">gnu.jimmy.blog.lwuit</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.IOException</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.microedition.midlet.MIDlet</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.microedition.midlet.MIDletStateChangeException</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.Command</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.Display</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.Form</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.Label</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.animations.CommonTransitions</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.animations.Transition3D</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.events.ActionEvent</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.events.ActionListener</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.layouts.BorderLayout</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.layouts.BoxLayout</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.plaf.UIManager</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.sun.lwuit.util.Resources</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> BasicForm <span style="color: #000000; font-weight: bold;">extends</span> MIDlet <span style="color: #000000; font-weight: bold;">implements</span> <span style="color: #003399;">ActionListener</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> Form form1<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> Form form2<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> Command cmdRotate <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Command<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Rotate&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> Command cmdSlide <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Command<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Slide&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> Command cmdExit <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Command<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Exit&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> BasicForm<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">//Initialize the LWUIT</span>
		Display.<span style="color: #006633;">init</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> startApp<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> MIDletStateChangeException <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">//Load the Theme</span>
		Resources r<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
			r <span style="color: #339933;">=</span> Resources.<span style="color: #006633;">open</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/LWUITtheme.res&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #003399;">UIManager</span>.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.
			<span style="color: #006633;">setThemeProps</span><span style="color: #009900;">&#40;</span>r.<span style="color: #006633;">getTheme</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;LWUITDefault&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">//Setup Form 1</span>
		form1 <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Form<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Form 1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form1.<span style="color: #006633;">setLayout</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">BorderLayout</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form1.<span style="color: #006633;">addComponent</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">BorderLayout</span>.<span style="color: #006633;">NORTH</span>, <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Label</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;My First Form&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form1.<span style="color: #006633;">addComponent</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">BorderLayout</span>.<span style="color: #006633;">WEST</span>, <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Label</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;WEST&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form1.<span style="color: #006633;">addComponent</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">BorderLayout</span>.<span style="color: #006633;">CENTER</span>, <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Label</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;CENTER&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form1.<span style="color: #006633;">addComponent</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">BorderLayout</span>.<span style="color: #006633;">EAST</span>, <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Label</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;EAST&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form1.<span style="color: #006633;">addComponent</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">BorderLayout</span>.<span style="color: #006633;">SOUTH</span>, <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Label</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Click Rotate&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form1.<span style="color: #006633;">addCommand</span><span style="color: #009900;">&#40;</span>cmdRotate<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form1.<span style="color: #006633;">addCommand</span><span style="color: #009900;">&#40;</span>cmdExit<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form1.<span style="color: #006633;">addCommandListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form1.<span style="color: #006633;">setTransitionInAnimator</span><span style="color: #009900;">&#40;</span>CommonTransitions.<span style="color: #006633;">createSlide</span><span style="color: #009900;">&#40;</span>CommonTransitions.<span style="color: #006633;">SLIDE_HORIZONTAL</span>, <span style="color: #000066; font-weight: bold;">true</span>, <span style="color: #cc66cc;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">//Setup Form 2</span>
		form2 <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Form<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Form 2&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form2.<span style="color: #006633;">setLayout</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">BoxLayout</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">BoxLayout</span>.<span style="color: #006633;">Y_AXIS</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form2.<span style="color: #006633;">addComponent</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #000066; font-weight: bold;">null</span>,<span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Label</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;This is the second Form&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form2.<span style="color: #006633;">addCommand</span><span style="color: #009900;">&#40;</span>cmdSlide<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form2.<span style="color: #006633;">addCommand</span><span style="color: #009900;">&#40;</span>cmdExit<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form2.<span style="color: #006633;">addCommandListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		form2.<span style="color: #006633;">setTransitionInAnimator</span><span style="color: #009900;">&#40;</span>Transition3D.<span style="color: #006633;">createCube</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1000</span>, <span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		form1.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> actionPerformed<span style="color: #009900;">&#40;</span><span style="color: #003399;">ActionEvent</span> evt<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">//check which command cliked</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>evt.<span style="color: #006633;">getCommand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>cmdExit<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			notifyDestroyed<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>evt.<span style="color: #006633;">getCommand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>cmdRotate<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			form2.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>evt.<span style="color: #006633;">getCommand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>cmdSlide<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			form1.<span style="color: #006633;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> destroyApp<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">boolean</span> unconditional<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> MIDletStateChangeException <span style="color: #009900;">&#123;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> pauseApp<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Try to run the class.<br />
It should display a form and when you click the left softkey change to the second form with cube rotate effect.<br />
When you click the left softkey again it will go back to first form with slide effect.</p>
<div id="attachment_166" class="wp-caption aligncenter" style="width: 258px"><img class="size-full wp-image-166" title="LWUIT sample" src="http://jimmod.com/blog/wp-content/uploads/2010/04/sample.jpg" alt="LWUIT sample" width="248" height="327" /><p class="wp-caption-text">LWUIT sample</p></div>
<p><strong>NOTE</strong><br />
* all  UI classes are from package com.sun.lwuit don&#8217;t import the WTK default.<br />
* Display.init function (the one I put in constructor) needed to execute first before initializing Forms<br />
* Theme need to be load first before initializing Forms<br />
* Transition3D will require M3G, so if you want to test it on real phone make sure your phone support it. If not you can just change the Transition3D to CommonTransition.</p>
<p><strong>ENDING</strong></p>
<p>If you have prompt to follow the tutorial just drop me a comment here.</p>
<p>Cheers <img src='http://jimmod.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://jimmod.com/blog/2010/03/java-me-j2me-json-implementation-tutorialsample/' rel='bookmark' title='Permanent Link: Java ME (J2ME) JSON Implementation Tutorial/Sample'>Java ME (J2ME) JSON Implementation Tutorial/Sample</a></li><li><a href='http://jimmod.com/blog/2007/11/simple-log4j-implementation/' rel='bookmark' title='Permanent Link: Simple Log4J implementation'>Simple Log4J implementation</a></li><li><a href='http://jimmod.com/blog/2007/11/change-junit-run-file-main-class-working-directory-at-netbeans-55-web-project/' rel='bookmark' title='Permanent Link: Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project'>Change junit &amp; run file (main class) working directory at Netbeans 5.5 Web Project</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2010/04/basic-lwuit-tutorial-with-eclipse-pulsar/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Updating Pidgin to latest version in Ubuntu</title>
		<link>http://jimmod.com/blog/2010/03/updating-pidgin-to-latest-version-in-ubuntu/</link>
		<comments>http://jimmod.com/blog/2010/03/updating-pidgin-to-latest-version-in-ubuntu/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 15:20:39 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[2.6]]></category>
		<category><![CDATA[latest]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[ppa]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[yahoo messenger]]></category>
		<category><![CDATA[ym problem]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=148</guid>
		<description><![CDATA[Since the latest pidgin not available in 9.04 repository you need to setup PPA just like instruction in pidgin website. My instruction here is the same although the command a bit different. This will also solve cannot connect to Yahoo Messenger issue.

run 	this command in console to open vim editor :

sudo vim /etc/apt/sources.list.d/pidgin-ppa.list
(if you not familiar [...]


Related posts:<ol><li><a href='http://jimmod.com/blog/2009/06/solving-pidgin-cannot-connect-ym/' rel='bookmark' title='Permanent Link: Solving Pidgin cannot connect to Yahoo Messenger (YM)'>Solving Pidgin cannot connect to Yahoo Messenger (YM)</a></li><li><a href='http://jimmod.com/blog/2010/06/solving-fixing-ubuntu-10-04-lucid-screen-flickerdistortion/' rel='bookmark' title='Permanent Link: Solving (fixing) ubuntu 10.04 (lucid) screen flicker/distortion'>Solving (fixing) ubuntu 10.04 (lucid) screen flicker/distortion</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Since the latest pidgin not available in 9.04 repository you need to setup PPA just like instruction in <a href="http://www.pidgin.im/download/ubuntu/">pidgin website</a>. My instruction here is the same although the command a bit different. This will also solve cannot connect to Yahoo Messenger issue.<span id="more-148"></span></p>
<ul>
<li>run 	this command in console to open vim editor :</li>
</ul>
<blockquote><p>sudo vim /etc/apt/sources.list.d/pidgin-ppa.list</p></blockquote>
<blockquote><p>(if you not familiar with vim use gnome editor with command : <em>sudo gedit /etc/apt/sources.list.d/pidgin-ppa.list</em>)<br />
*since it&#8217;s using <em>sudo</em> command you will requested to enter your password to enter root mode)</p></blockquote>
<ul>
<li>Add 	this line:</li>
</ul>
<blockquote><p>deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu <strong>jaunty</strong> main</p>
<p>*I bold the <strong>jaunty</strong> since it will depends on your ubuntu version (8.10=intrepid, 9.04=jaunty, 9.10=karmic). If you not sure run this command : lsb_release &#8211;short &#8211;codename</p>
<p>* It will print out your ubuntu release codename</p>
<p>If you&#8217;re in Indonesia you can put UGM repository (instead the above line):</p>
<p>deb ftp://repo.ugm.ac.id/ppa.launchpad.net/pidgin-developers/ <strong>jaunty </strong> main</p></blockquote>
<ul>
<li>Save 	the file. Since you don&#8217;t have the file (/etc/apt/sources.list.d/pidgin-ppa.list) it will create new file when you save it.</li>
</ul>
<ul>
<li>Next 	you also need to download pidgin public key by executing this 	command:sudo 	apt-key adv &#8211;recv-keys &#8211;keyserver keyserver.ubuntu.com 	67265eb522bdd6b1c69e66ed7fb8bee0a1f196a8</li>
<li>Then 	open your <strong>Synaptic 	Package Manager</strong> and click Reload</li>
<li>Write &#8216;pidgin&#8217; in your quick search textbox and see if latest pidgin 	version is 2.6.x</li>
</ul>
<p style="text-align: center;">
<div id="attachment_149" class="wp-caption alignnone" style="width: 160px"><img class="size-thumbnail wp-image-149" title="Screenshot-Synaptic Package Manager" src="http://jimmod.com/blog/wp-content/uploads/2010/03/Screenshot-Synaptic-Package-Manager-150x150.png" alt="Screenshot-Synaptic Package Manager" width="150" height="150" /><p class="wp-caption-text">Screenshot-Synaptic Package Manager</p></div>
<ul>
<li><span style="font-size: small;">Right click on the pidgin and select <em>mark for upgrade</em> and click <em>apply</em></span></li>
</ul>
<p><span style="font-size: small;">I hope the explanation is clear enough <img src='http://jimmod.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
<p style="text-align: left;"><span style="font-size: small;">Cheers..</span></p>
<p><span style="font-size: small; "><em><br />
</em></span></p>


<p>Related posts:<ol><li><a href='http://jimmod.com/blog/2009/06/solving-pidgin-cannot-connect-ym/' rel='bookmark' title='Permanent Link: Solving Pidgin cannot connect to Yahoo Messenger (YM)'>Solving Pidgin cannot connect to Yahoo Messenger (YM)</a></li><li><a href='http://jimmod.com/blog/2010/06/solving-fixing-ubuntu-10-04-lucid-screen-flickerdistortion/' rel='bookmark' title='Permanent Link: Solving (fixing) ubuntu 10.04 (lucid) screen flicker/distortion'>Solving (fixing) ubuntu 10.04 (lucid) screen flicker/distortion</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2010/03/updating-pidgin-to-latest-version-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Java ME (J2ME) JSON Implementation Tutorial/Sample</title>
		<link>http://jimmod.com/blog/2010/03/java-me-j2me-json-implementation-tutorialsample/</link>
		<comments>http://jimmod.com/blog/2010/03/java-me-j2me-json-implementation-tutorialsample/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 05:48:25 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[implementation]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[java me]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=126</guid>
		<description><![CDATA[JSON is one of the most popular format used for communicating between (Java ME) J2ME client and App Server. Strangely it&#8217;s hard to find JSON implementation sample in J2ME. So I decide to write a sample.

The JSON library I used is from json.org : http://www.json.org/java/org.json.me.zip
Extract it to your source code folder.
For example we have this User [...]


Related posts:<ol><li><a href='http://jimmod.com/blog/2010/04/basic-lwuit-tutorial-with-eclipse-pulsar/' rel='bookmark' title='Permanent Link: Basic LWUIT tutorial/sample with Eclipse Pulsar'>Basic LWUIT tutorial/sample with Eclipse Pulsar</a></li><li><a href='http://jimmod.com/blog/2007/11/simple-log4j-implementation/' rel='bookmark' title='Permanent Link: Simple Log4J implementation'>Simple Log4J implementation</a></li><li><a href='http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/' rel='bookmark' title='Permanent Link: Java Application &#8211; Make sure only single/one instance running &#8211; with File Lock and ShutdownHook'>Java Application &#8211; Make sure only single/one instance running &#8211; with File Lock and ShutdownHook</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>JSON is one of the most popular format used for communicating between (Java ME) J2ME client and App Server. Strangely it&#8217;s hard to find JSON implementation sample in J2ME. So I decide to write a sample.</p>
<p><span id="more-126"></span></p>
<p>The JSON library I used is from json.org :<a href="http://www.json.org/java/org.json.me.zip"> http://www.json.org/java/org.json.me.zip<br />
</a>Extract it to your source code folder.</p>
<p>For example we have this User Class:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> User<span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> id<span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">String</span> name<span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">String</span> description<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>To implement JSON to this class I usually create an Interface JSONAble:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">interface</span> JSONAble <span style="color: #009900;">&#123;</span>
<span style="color: #003399;">String</span> toJSON<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">void</span> fromJSON<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> jsonString<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>To make the User class is JSON compatible <img src='http://jimmod.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  let&#8217;s add the JSONAble interface &amp; implement it:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> User <span style="color: #000000; font-weight: bold;">implements</span> JSONAble<span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> id<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">String</span> name<span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">String</span> description<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">int</span> getId<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> id<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setId<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">id</span> <span style="color: #339933;">=</span> id<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> getName<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> name<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setName<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> name<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">name</span> <span style="color: #339933;">=</span> name<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> getDescription<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> description<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setDescription<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> description<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">description</span> <span style="color: #339933;">=</span> description<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> toString<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> getId<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;-&quot;</span><span style="color: #339933;">+</span>getName<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;-&quot;</span><span style="color: #339933;">+</span>getDescription<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> fromJSON<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> jsonString<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
			JSONObject json <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> JSONObject<span style="color: #009900;">&#40;</span>jsonString<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			setId<span style="color: #009900;">&#40;</span>json.<span style="color: #006633;">getInt</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			setName<span style="color: #009900;">&#40;</span>json.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			setDescription<span style="color: #009900;">&#40;</span>json.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;description&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>JSONException ex<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			ex.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> toJSON<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		JSONObject inner <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> JSONObject<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
			inner.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;id&quot;</span>, getId<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			inner.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;name&quot;</span>, getName<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			inner.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;description&quot;</span>, getDescription<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>JSONException ex<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			ex.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000000; font-weight: bold;">return</span> inner.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>To test it let&#8217;s create a MIDlet that have these startApp() implementation:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> startApp<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> MIDletStateChangeException <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">//Converting Object to JSON</span>
		User user <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> User<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		user.<span style="color: #006633;">setId</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		user.<span style="color: #006633;">setName</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;jimmy&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		user.<span style="color: #006633;">setDescription</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;testing json in j2me&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Convert to JSON : &quot;</span><span style="color: #339933;">+</span>user.<span style="color: #006633;">toJSON</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">//Converting JSON to Object</span>
		<span style="color: #003399;">String</span> sample <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;{<span style="color: #000099; font-weight: bold;">\&quot;</span>id<span style="color: #000099; font-weight: bold;">\&quot;</span>:99,<span style="color: #000099; font-weight: bold;">\&quot;</span>name<span style="color: #000099; font-weight: bold;">\&quot;</span>:<span style="color: #000099; font-weight: bold;">\&quot;</span>tester<span style="color: #000099; font-weight: bold;">\&quot;</span>,<span style="color: #000099; font-weight: bold;">\&quot;</span>description<span style="color: #000099; font-weight: bold;">\&quot;</span>:<span style="color: #000099; font-weight: bold;">\&quot;</span>This is JSON Data<span style="color: #000099; font-weight: bold;">\&quot;</span>}&quot;</span><span style="color: #339933;">;</span>
		User user2 <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> User<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		user2.<span style="color: #006633;">fromJSON</span><span style="color: #009900;">&#40;</span>sample<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Convert from JSON : &quot;</span><span style="color: #339933;">+</span>user2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></div></div>

<p>As you can see the output results:<br />
<code>Convert to JSON : {"name":"jimmy","description":"testing json in j2me","id":10}<br />
Convert from JSON : 99-tester-This is JSON Data</code></p>
<p>The toJSON() function is the implementation how the object converted to JSON format. In J2ME we still implement it manually since we don&#8217;t have Java reflection which can enable automatically scan the variables.<br />
What the JSON library help is building the JSON data. We just need to put the variables.</p>
<p>On the fromJSON() function what it does is getting out the data from JSON format and set it to class variables.</p>
<p>Next I will cover about converting more complex class structure.<br />
Or create a fromJSON () &amp; toJSON() generator (:?). Let see..</p>
<p>Thanks for reading this, although this is the basic hope it&#8217;ll help <img src='http://jimmod.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://jimmod.com/blog/2010/04/basic-lwuit-tutorial-with-eclipse-pulsar/' rel='bookmark' title='Permanent Link: Basic LWUIT tutorial/sample with Eclipse Pulsar'>Basic LWUIT tutorial/sample with Eclipse Pulsar</a></li><li><a href='http://jimmod.com/blog/2007/11/simple-log4j-implementation/' rel='bookmark' title='Permanent Link: Simple Log4J implementation'>Simple Log4J implementation</a></li><li><a href='http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/' rel='bookmark' title='Permanent Link: Java Application &#8211; Make sure only single/one instance running &#8211; with File Lock and ShutdownHook'>Java Application &#8211; Make sure only single/one instance running &#8211; with File Lock and ShutdownHook</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2010/03/java-me-j2me-json-implementation-tutorialsample/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Set up Centos yum repository to Kambing UI server (kambing.ui.ac.id)</title>
		<link>http://jimmod.com/blog/2010/01/set-up-centos-yum-repository-to-kambing-ui-server-kambing-ui-ac-id/</link>
		<comments>http://jimmod.com/blog/2010/01/set-up-centos-yum-repository-to-kambing-ui-server-kambing-ui-ac-id/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 15:37:53 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[Indonesia]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[kambing]]></category>
		<category><![CDATA[kambing.ui.ac.id]]></category>
		<category><![CDATA[lokal]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ui]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=123</guid>
		<description><![CDATA[[base]
name=CentOS-$releasever &#8211; Base
baseurl=http://kambing.ui.edu/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever &#8211; Updates
baseurl=http://kambing.ui.edu/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever &#8211; Addons
baseurl=http://kambing.ui.edu/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever &#8211; Extras
baseurl=http://kambing.ui.edu/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Untuk menggunakan server kambing.ui.ac.id sebagai repository di Centos :

Buat file dengan extension repo di directory /etc/yum.repos.d/ (Contoh: vim /etc/yum.repos.d/Kambing-Base.repo)
Isi file:


[base]
name=CentOS-$releasever &#8211; Base
baseurl=http://kambing.ui.edu/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever &#8211; Updates
baseurl=http://kambing.ui.edu/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever &#8211; Addons
baseurl=http://kambing.ui.edu/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[base]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">name=CentOS-$releasever &#8211; Base</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">baseurl=http://kambing.ui.edu/centos/$releasever/os/$basearch/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">gpgcheck=1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#released updates</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[updates]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">name=CentOS-$releasever &#8211; Updates</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">baseurl=http://kambing.ui.edu/centos/$releasever/updates/$basearch/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">gpgcheck=1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#packages used/produced in the build but not released</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[addons]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">name=CentOS-$releasever &#8211; Addons</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">baseurl=http://kambing.ui.edu/centos/$releasever/addons/$basearch/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">gpgcheck=1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#additional packages that may be useful</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[extras]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">name=CentOS-$releasever &#8211; Extras</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">baseurl=http://kambing.ui.edu/centos/$releasever/extras/$basearch/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">gpgcheck=1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5</div>
<p>Untuk menggunakan server kambing.ui.ac.id sebagai repository di Centos :</p>
<ul>
<li>Buat file dengan extension repo di directory /etc/yum.repos.d/ (Contoh: vim /etc/yum.repos.d/Kambing-Base.repo)</li>
<li>Isi file:</li>
</ul>
<p><span id="more-123"></span></p>
<blockquote><p><em>[base]<br />
name=CentOS-$releasever &#8211; Base<br />
baseurl=http://kambing.ui.edu/centos/$releasever/os/$basearch/<br />
gpgcheck=1<br />
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5</em></p>
<p><em>#released updates<br />
[updates]<br />
name=CentOS-$releasever &#8211; Updates<br />
baseurl=http://kambing.ui.edu/centos/$releasever/updates/$basearch/<br />
gpgcheck=1<br />
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5</em></p>
<p><em>#packages used/produced in the build but not released<br />
[addons]<br />
name=CentOS-$releasever &#8211; Addons<br />
baseurl=http://kambing.ui.edu/centos/$releasever/addons/$basearch/<br />
gpgcheck=1<br />
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5</em></p>
<p><em>#additional packages that may be useful<br />
[extras]<br />
name=CentOS-$releasever &#8211; Extras<br />
baseurl=http://kambing.ui.edu/centos/$releasever/extras/$basearch/<br />
gpgcheck=1<br />
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5</em></p></blockquote>
<ul>
<li>rename file /etc/yum.repos.d/CentOS-Base.repo menjadi extension lain (contoh : mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.old)</li>
<li>Saat anda menginstall dengan yum anda akan melihat repository yang digunakan adalah server UI.</li>
</ul>
<p>Versi Centos yang dicoba dalam pengetesan adalah Centos 5.4 tetapi seharusnya berjalan disemua versi Centos (tentu asalkan repository versi tersebut dihosting di server kambing).</p>
<p>Enjoy ^^</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2010/01/set-up-centos-yum-repository-to-kambing-ui-server-kambing-ui-ac-id/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bind JBoss to specific IP address</title>
		<link>http://jimmod.com/blog/2009/12/bind-jboss-to-specific-ip-address/</link>
		<comments>http://jimmod.com/blog/2009/12/bind-jboss-to-specific-ip-address/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 12:37:36 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=121</guid>
		<description><![CDATA[Simple but I think it will help JBoss newbie (like me :]) when searching the internet.
By default when you run JBoss ( ./run.sh in Linux) it will bind to localhost/127.0.0.1
This will cause the JBoss default port 8080 cannot be access from other computer, because you need to open http://127.0.0.1:8080/ instead of your IP http://&#60;your IP&#62;:8080/
To [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Simple but I think it will help JBoss newbie (like me :]) when searching the internet.</p>
<p>By default when you run JBoss ( ./run.sh in Linux) it will bind to localhost/127.0.0.1<br />
This will cause the JBoss default port 8080 cannot be access from other computer, because you need to open http://127.0.0.1:8080/ instead of your IP http://&lt;your IP&gt;:8080/<span id="more-121"></span></p>
<p>To make the JBoss binding to specific IP you need to run it with :<br />
<em> ./run.sh -Djboss.bind.address=xxx.xxx.xxx.xxx</em><br />
*which of course the xxx.xxx.xxx.xxx is your IP</p>
<p>Other PC will able to access the JBoss with that IP</p>
<p>For Windows I think it will be the same :<br />
<em> ./run.bat -Djboss.bind.address=xxx.xxx.xxx.xxx</em></p>
<p>Cheers ^^</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2009/12/bind-jboss-to-specific-ip-address/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Kehilangan uang di safety box Hotel Kuta Lagoon Resort, Bali</title>
		<link>http://jimmod.com/blog/2009/12/kehilangan-uang-di-safety-box-hotel-kuta-lagoon-resort-bali/</link>
		<comments>http://jimmod.com/blog/2009/12/kehilangan-uang-di-safety-box-hotel-kuta-lagoon-resort-bali/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 16:39:57 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[My Life]]></category>
		<category><![CDATA[bali]]></category>
		<category><![CDATA[hotel]]></category>
		<category><![CDATA[keamanan]]></category>
		<category><![CDATA[kehilangan]]></category>
		<category><![CDATA[kuta lagoon resort]]></category>
		<category><![CDATA[maling]]></category>
		<category><![CDATA[masalah]]></category>
		<category><![CDATA[pencurian]]></category>
		<category><![CDATA[penjahat]]></category>
		<category><![CDATA[safety box]]></category>
		<category><![CDATA[uang]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=108</guid>
		<description><![CDATA[
Kemarin tanggal 17 Des &#8211; 21 Des 2009 saya berkunjung ke Bali untuk pertama kalinya, tetapi mengalami pengalaman yang tidak menyenangkan (masalah) di Hotel Kuta Lagoon Resort yaitu kehilangan amplop berisi uang yang saya letakkan didalam safety box dalam kamar saya.
Artikel ini bertujuan untuk mengingatkan teman-teman untuk waspada dalam menyimpan uang dalam berpergian, supaya tidak [...]


Related posts:<ol><li><a href='http://jimmod.com/blog/2008/01/menganalisa-promo-xl-bebas-rp-01detik-untuk-jakarta/' rel='bookmark' title='Permanent Link: Menganalisa Promo XL Bebas Rp. 0,1/detik untuk Jakarta'>Menganalisa Promo XL Bebas Rp. 0,1/detik untuk Jakarta</a></li><li><a href='http://jimmod.com/blog/2007/12/mencoba-paket-data-xplore/' rel='bookmark' title='Permanent Link: Mencoba paket data Xplore'>Mencoba paket data Xplore</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone size-thumbnail wp-image-113" title="CIMG0103.resized" src="http://jimmod.com/blog/wp-content/uploads/2009/12/CIMG0103.resized-150x150.jpg" alt="CIMG0103.resized" width="150" height="150" /></p>
<p>Kemarin tanggal 17 Des &#8211; 21 Des 2009 saya berkunjung ke Bali untuk pertama kalinya, tetapi mengalami pengalaman yang tidak menyenangkan (masalah) di <a title="Hotel Kuta Lagoon Resort" href="http://www.kutalagoonresort.com/" target="_blank"><strong>Hotel Kuta Lagoon Resort</strong></a> yaitu kehilangan amplop berisi uang yang saya letakkan didalam safety box dalam kamar saya.</p>
<p>Artikel ini bertujuan untuk mengingatkan teman-teman untuk waspada dalam menyimpan uang dalam berpergian, supaya tidak seperti saya yang percaya dengan keamanan safety box di dalam hotel.</p>
<p>Kronologisnya seperti ini:<span id="more-108"></span></p>
<p><strong>17 Desember 2009</strong><br />
16:00 WITA : saya tiba di airport dan dijemput oleh staff hotel  dengan ramah.<br />
16:30 : tiba di hotel dan check in lalu di antar dikamar. Sampai dikamar saya siap-siap dan menyimpan tiket, amplop berisi uang dan kunci gembok koper saya didalam safety box dan mengganti kode pin-nya .<br />
17:00 : Saya bersiap-siap untuk keluar dari hotel untuk jalan-jalan dan ada janji bertemu dengan teman yang tinggal di Bali. Sebelum keluar saya mengambil beberapa ratus ribu dari amplop untuk saya bawa. Lalu saya keluar<br />
23:30 : Saya kembali ke hotel tanpa memeriksa safety box dan tidur.</p>
<p><strong>18 Desember 2009</strong><br />
10:00 WITA : Setelah makan pagi dan bersiap-siap keluar hotel saya membuka safety box dengan tujuan mengambil uang dan menemukan amplop sudah hilang. Saya berpikir apa saya lupa dan meletakkan amplop ditempat lain, maka saya mencari ke seluruh bagian kamar tapi tetap tidak menemukan amplop tersebut. Lalu saya menelpon pihak management hotel melalui operator telepon.<br />
10:30 / 11:00 : Pihak  hotel datang dan menanyakan kronologis kejadian. Saya menjelaskan dan meminta pihak hotel untuk mengecek cctv untuk memastikan siapa yang memasuki kamar hotel. Dari office manager Bu Agustini, dia mengatakan harus menunggu bagian IT datang. Pihak management berjanji jam 3pm saya dapat kembali untuk melihat CCTV. Lalu saya pergi keluar hotel untuk jalan-jalan sesuai rencana.<br />
15:00 :  Saya kembali kehotel dan diantar oleh office manager ke ruangan kerja. Disitu saya melihat rekaman cctv 17 desember. Tapi sangat disayangkan jarak kamera CCTV ke kamar saya sangat jauh sehingga sama sekali tidak jelas bila ada orang yang masuk atau keluar dari kamar saya. Dan ketika mulai gelap, lebih tidak jelas lagi. Saya berbicara dengan manager &amp; security dan mereka berkata akan mencoba bertanya pada petugas housekeeping &amp; engineer yang bertugas saat itu. Karena untuk kunci master kamar dipegang oleh housekeeper dan kunci master safety box dipegang engineer.<br />
18:00 (kurang lebih) : Kembali dari jalan-jalan, masuk keparkiran hotel saya berpapasan dengan security yang sedang berbicara dengan petugas yang setelah berkenalan ternyata polisi daerah Legian, Pak Tono. Beliau menyarankan untuk melaporkan hal ini secara resmi ke kantor Polisi setempat, saya mengatakan sedikit ragu karena saya berpikir saya sudah kehilangan uang dan tidak ingin juga kehilangan waktu untuk jalan-jalan berlibur di Bali. Saya ingin bagian hotel melakukan inspeksi internal dahulu.</p>
<p><strong>19 Desember</strong><br />
10:00 WITA : sebelum keluar dari hotel untuk tour, saya meminta bertemu dengan office manager untuk bertanya mengenai follow up dari kasus saya. Dia mengatakan polisi akan memberi kabar dalam 2 hari. Saya mengatakan saya tahu kemungkinan uang saya kembali kecil tetapi saya minta tolong untuk menfollow up hal ini. Dia meminta nomor telepon saya dan saya tuliskan di sebuah kertas.</p>
<p><strong>20 Desember</strong><br />
10:00 WITA : saya keluar untuk tour dan tidak berkesempatan untuk bertemu management hotel. Tidak ada telepon dari pihak management.</p>
<p><strong>21 Desember</strong><br />
10:00 WITA : saya check out dan bertanya pada manager mengenai perkembangan kasus ini. Lalu dia bertanya apa polisi sudah menghubungi saya, saya jawab &#8216;tidak&#8217;. Lalu ia masuk kedalam dan assistent manager, Pak Putu Wiarsa, menemui saya berkata saya harus ke kantor polisi bila mau memeriksa hal ini. Melihat secara internal hotel tidak ada follow up, saya setuju untuk ke kantor polisi saat itu juga. Dengan diantar dengan mobil hotel dan ditemani Pak Putu beserta housekeepers &amp; engineers yg bertugas saat itu kami ke kantor polisi.<br />
11:00 : Di kantor polisi saya menceritakan kronologis kejadian. Dibuat berita acara/laporan kehilangan dan dikirim 2 polisi untuk memeriksa kamar kejadian.<br />
13:00 : Polisi memeriksa kamar hotel, tetapi tidak dapat melakukan apa-apa. Mereka menyayangkan kenapa tidak pada hari kejadian langsung membuat laporan ke polisi. Interogasi  beberapa hari setelah kejadian tidak akan memberikan hasil apa-apa.<br />
Setelah itu saya dan pak Putu memanggil engineer untuk mencoba membuka safety box dengan kunci master untuk melihat apakah PIN/code akan berubah bila  dibuka, dan setelah dicoba tidak berubah. Ini memungkinan seseorang mengambil isi safety box dengan kunci tanpa mengetahui PIN dan menutup lagi tanpa merubah PIN yg ada. Ia mengatakan akan mencoba berbicara dengan management mengenai hal ini.<br />
15:30 : Saya kembali ke hotel untuk bersiap-siap menuju airport dengan diantar mobil Hotel. Tetapi tidak terlihat manager atau assistent manager Hotel untuk memberi kabar tentang hal ini. Lalu saya berangkat menuju airport.</p>
<p>Demikian kronologis kejadian kehilangan uang saya di Hotel Kuta Lagoon Resort, Bali. Selain kejadian ini sangat menyenangkan berlibur melihat keindahan Bali.<br />
Semoga cerita ini mengingatkan kita untuk waspada saat berjalan-jalan:</p>
<ul>
<li><strong>Jangan membawa uang berlebih karena ada banyak ATM BCA di Bali.</strong></li>
<li><strong>Lebih baik bawa barang-barang berharga dan jangan tinggalkan di Hotel.</strong></li>
<li><strong>Untuk keamanan tanyakan apakah pintu kamar anda terlihat jelas di CCTV</strong></li>
</ul>


<p>Related posts:<ol><li><a href='http://jimmod.com/blog/2008/01/menganalisa-promo-xl-bebas-rp-01detik-untuk-jakarta/' rel='bookmark' title='Permanent Link: Menganalisa Promo XL Bebas Rp. 0,1/detik untuk Jakarta'>Menganalisa Promo XL Bebas Rp. 0,1/detik untuk Jakarta</a></li><li><a href='http://jimmod.com/blog/2007/12/mencoba-paket-data-xplore/' rel='bookmark' title='Permanent Link: Mencoba paket data Xplore'>Mencoba paket data Xplore</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2009/12/kehilangan-uang-di-safety-box-hotel-kuta-lagoon-resort-bali/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fixing network slow transfer in Windows Vista</title>
		<link>http://jimmod.com/blog/2009/10/fixing-network-slow-transfer-in-windows-vista/</link>
		<comments>http://jimmod.com/blog/2009/10/fixing-network-slow-transfer-in-windows-vista/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 17:22:00 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[fixing]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[slow]]></category>
		<category><![CDATA[solved]]></category>
		<category><![CDATA[transfer]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=103</guid>
		<description><![CDATA[If you find that copying from your Windows Vista extremely slow  (50KB/s) from wifi you must try this.
Go to your device manager:

Start &#8211; Control panel &#8211; Device manager


 Select your wifi device in &#8216;Network Adapter&#8217;. Mine is &#8220;Intel (R) Wifi Link 5100&#8230;)
Right click, select &#8216;properties&#8217;
Select tab &#8216;Advanced&#8217;
Select &#8216;Ad Hoc Channel 802.11 b/g&#8221;. Change the value [...]


Related posts:<ol><li><a href='http://jimmod.com/blog/2007/11/using-svnssh-with-netbeans-55-windows/' rel='bookmark' title='Permanent Link: Using svn+ssh with Netbeans 5.5 + Windows'>Using svn+ssh with Netbeans 5.5 + Windows</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>If you find that copying from your Windows Vista extremely slow  (50KB/s) from wifi you must try this.</p>
<p>Go to your device manager:<span id="more-103"></span></p>
<ul>
<li>Start &#8211; Control panel &#8211; Device manager</li>
</ul>
<div id="attachment_104" class="wp-caption aligncenter" style="width: 160px"><img class="size-thumbnail wp-image-104" title="controlpanel" src="http://jimmod.com/blog/wp-content/uploads/2009/10/controlpanel-150x150.jpg" alt="Control Panel - Device Manager" width="150" height="150" /><p class="wp-caption-text">Control Panel - Device Manager</p></div>
<ul>
<li> Select your wifi device in &#8216;Network Adapter&#8217;. Mine is &#8220;Intel (R) Wifi Link 5100&#8230;)</li>
<li>Right click, select &#8216;properties&#8217;</li>
<li>Select tab &#8216;Advanced&#8217;</li>
<li>Select &#8216;Ad Hoc Channel 802.11 b/g&#8221;. Change the value to 1 (default is 11)</li>
</ul>
<p style="text-align: center;"><img class="alignnone size-thumbnail wp-image-105" title="wifi adhoc" src="http://jimmod.com/blog/wp-content/uploads/2009/10/wifi-adhoc-150x150.jpg" alt="wifi adhoc" width="150" height="150" /></p>
<ul>
<li style="text-align: left;">Press OK</li>
</ul>
<p>Now try again to copy files from Network.. If everything work perfectly you should able to get 2MB/s</p>
<p> <img src='http://jimmod.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://jimmod.com/blog/2007/11/using-svnssh-with-netbeans-55-windows/' rel='bookmark' title='Permanent Link: Using svn+ssh with Netbeans 5.5 + Windows'>Using svn+ssh with Netbeans 5.5 + Windows</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2009/10/fixing-network-slow-transfer-in-windows-vista/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blackberry sending delivered notification email</title>
		<link>http://jimmod.com/blog/2009/06/blackberry-sending-delivered-notification-email/</link>
		<comments>http://jimmod.com/blog/2009/06/blackberry-sending-delivered-notification-email/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 15:27:40 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[My Life]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[automatic]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[delivered]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[read]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=99</guid>
		<description><![CDATA[I just realize that when sending to blackberry device when the email received on blackberry and the sender request delivered notification, it will automatically send delivered notification back to the sender.
And there&#8217;s no option to disable this.
Maybe it&#8217;s like a &#8216;feature&#8217;, but in my opinion it&#8217;s suck to cannot select whether we want to sent [...]


Related posts:<ol><li><a href='http://jimmod.com/blog/2008/07/unknown-winmaildat-attachment-in-email/' rel='bookmark' title='Permanent Link: Unknown winmail.dat attachment in email'>Unknown winmail.dat attachment in email</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I just realize that when sending to blackberry device<strong> when the email received on blackberry and the sender request delivered notification</strong>, it will automatically send delivered notification back to the sender.</p>
<p>And there&#8217;s no option to disable this.<br />
Maybe it&#8217;s like a &#8216;feature&#8217;, but in my opinion it&#8217;s suck to cannot select whether we want to sent this delivered notification or not.<br />
For spammer this could be good &#8216;feature&#8217; since they will know which email still actively receiving their spam.</p>
<p>In my blackberry curve there&#8217;s only option to disable &#8216;read notification&#8217;, which located at message &#8211; options &#8211; email settings.<br />
But <strong>read notification is not delivered notification</strong>, when I disable sending read notification still the blackberry sending delivered notification automatically.<br />
This is sucks, <strong>anyone know how to solve this issue</strong>?</p>


<p>Related posts:<ol><li><a href='http://jimmod.com/blog/2008/07/unknown-winmaildat-attachment-in-email/' rel='bookmark' title='Permanent Link: Unknown winmail.dat attachment in email'>Unknown winmail.dat attachment in email</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2009/06/blackberry-sending-delivered-notification-email/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Solving Pidgin cannot connect to Yahoo Messenger (YM)</title>
		<link>http://jimmod.com/blog/2009/06/solving-pidgin-cannot-connect-ym/</link>
		<comments>http://jimmod.com/blog/2009/06/solving-pidgin-cannot-connect-ym/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 20:08:20 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[messenger]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[yahoo]]></category>
		<category><![CDATA[ym]]></category>

		<guid isPermaLink="false">http://jimmod.com/blog/?p=88</guid>
		<description><![CDATA[Starting June 18 I started having problem connecting to YM with Pidgin.
Somehow it&#8217;s random I can connect or not.
I google and several article/forum writing that need to flush dns  cache and also about several YM server cannot be accessed from Pidgin.
I try my friend advice to change YM server configuration to IP rather than [...]


Related posts:<ol><li><a href='http://jimmod.com/blog/2008/02/microsoft-yahoo/' rel='bookmark' title='Permanent Link: Microsoft + Yahoo = ?'>Microsoft + Yahoo = ?</a></li><li><a href='http://jimmod.com/blog/2010/03/updating-pidgin-to-latest-version-in-ubuntu/' rel='bookmark' title='Permanent Link: Updating Pidgin to latest version in Ubuntu'>Updating Pidgin to latest version in Ubuntu</a></li><li><a href='http://jimmod.com/blog/2009/06/solving-failed-starting-mysql-service-with-non-default-datadir-ubuntu/' rel='bookmark' title='Permanent Link: Solving failed starting mysql service with non default datadir (Ubuntu)'>Solving failed starting mysql service with non default datadir (Ubuntu)</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Starting June 18 I started having problem connecting to YM with Pidgin.<br />
Somehow it&#8217;s random I can connect or not.</p>
<p>I google and several article/forum writing that need to flush dns  cache and also about several YM server cannot be accessed from Pidgin.</p>
<p><del datetime="2009-06-24T03:21:43+00:00">I try my friend advice to change YM server configuration to IP rather than domain name.<br />
And it&#8217;s worked..<br />
You will need to use cn.scs.msg.yahoo.com as Pager server since June 24, or you can update to pidgin 2.5.7 to solve this problem</del></p>
<p>Some people are reporting changing the Pager server didn&#8217;t solve the problem, you can follow these instruction to update your pidgin to latest version (for Ubuntu) : <a href="http://jimmod.com/blog/2010/03/updating-pidgin-to-latest-version-in-ubuntu/">Updating Pidgin to latest version in Ubuntu</a></p>
<p>The steps:<span id="more-88"></span> <strong>1. Select menu Accounts &#8211; Manage Accounts</strong><br />
<img src="http://img199.imageshack.us/img199/906/pidgin11.jpg" alt="Pidgin - manage accounts" /></p>
<p><strong>2. Select your Yahoo Messenger account &amp; click &#8216;modify&#8217;</strong></p>
<p><strong>3. Select advanced tab</strong></p>
<p><strong>4. Change your pager server to : cn.scs.msg.yahoo.com</strong><br />
<img src="http://img140.imageshack.us/img140/7526/screenshot1i.png" alt="Pidgin - YM configuration" /></p>
<p><strong>5. Then disabled &amp; enabled your account. Or restart the pidgin.</strong></p>
<p>And your Pidgin should able connect to YM</p>
<p><strong>*Update*</strong><br />
List IPs can be used (thanks to Med):<br />
<del datetime="2009-06-24T03:20:18+00:00">66.163.181.179 – 66.163.181.180 – 66.163.181.181 – 66.163.181.182 – 66.163.181.183 – 66.163.181.166 – 66.163.181.167 – 66.163.181.168 – 66.163.181.169</del></p>
<p>Starting June 24 using IP doesn&#8217;t seems to work anymore, try to use : <strong>cn.scs.msg.yahoo.com</strong></p>


<p>Related posts:<ol><li><a href='http://jimmod.com/blog/2008/02/microsoft-yahoo/' rel='bookmark' title='Permanent Link: Microsoft + Yahoo = ?'>Microsoft + Yahoo = ?</a></li><li><a href='http://jimmod.com/blog/2010/03/updating-pidgin-to-latest-version-in-ubuntu/' rel='bookmark' title='Permanent Link: Updating Pidgin to latest version in Ubuntu'>Updating Pidgin to latest version in Ubuntu</a></li><li><a href='http://jimmod.com/blog/2009/06/solving-failed-starting-mysql-service-with-non-default-datadir-ubuntu/' rel='bookmark' title='Permanent Link: Solving failed starting mysql service with non default datadir (Ubuntu)'>Solving failed starting mysql service with non default datadir (Ubuntu)</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://jimmod.com/blog/2009/06/solving-pidgin-cannot-connect-ym/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
	</channel>
</rss>
