<?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>Duality - GOD has created you &#187; programming</title>
	<atom:link href="http://www.rickyok.net/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rickyok.net</link>
	<description>Sharing information that we learned the hard way</description>
	<lastBuildDate>Fri, 26 Nov 2010 16:33:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Happy Thanksgiving</title>
		<link>http://www.rickyok.net/2010/11/happy-thanksgiving/</link>
		<comments>http://www.rickyok.net/2010/11/happy-thanksgiving/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 16:33:49 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[zuru zuru]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=369</guid>
		<description><![CDATA[This time of year. Time to give thanks for everything that GOD had gave us. Firstly thank you GOD for giving me strength for enduring this year. This year is full of problem, but I know You will guide me trough all these. Thank you for all family, friends, for their love and support. And [...]]]></description>
			<content:encoded><![CDATA[<p>This time of year. Time to give thanks for everything that GOD had gave us. </p>
<p>Firstly thank you GOD for giving me strength for enduring this year. This year is full of problem, but I know You will guide me trough all these.</p>
<p>Thank you for all family, friends, for their love and support.</p>
<p>And all these year I use open source programming as my source of income, and never said any thanks. This year, I would like to address a thanks to the following: </p>
<p>- <a href="http://www.php.net" onclick="pageTracker._trackPageview('/outgoing/www.php.net?referer=');">PHP Language</a>. We&#8217;ve been together for 10 years now. Thanks for all the updates and security patches from PHP dev Team. Thanks for the easy to understand language.<br />
- <a href="http://www.ubuntu.com/" onclick="pageTracker._trackPageview('/outgoing/www.ubuntu.com/?referer=');">Ubuntu Linux</a>. For being a great development OS for last 3 years. Ubuntu server had been installed on all my client.<br />
- <a href="http://httpd.apache.org/" onclick="pageTracker._trackPageview('/outgoing/httpd.apache.org/?referer=');">Apache Server</a>. Running on all my server.<br />
- <a href="http://www.mysql.net" onclick="pageTracker._trackPageview('/outgoing/www.mysql.net?referer=');">MySQL</a>. For keeping open source database for as long I learn database. Very stable and good for small &#8211; medium company.<br />
- <a href="http://www.activestate.com/komodo-edit" onclick="pageTracker._trackPageview('/outgoing/www.activestate.com/komodo-edit?referer=');">Komodo Edit</a>. A very nice GUI for coding. Support all the language I use, PHP, SQL, Jquery, etc.<br />
- <a href="http://jquery.com" onclick="pageTracker._trackPageview('/outgoing/jquery.com?referer=');">JQuery</a>. A neat, very fast, easily expandable and beautiful Javascript Framework.<br />
- <a href="http://bazaar.canonical.com" onclick="pageTracker._trackPageview('/outgoing/bazaar.canonical.com?referer=');">Bazaar</a>. For keeping my source safe.<br />
- <a href="http://www.appcelerator.com" onclick="pageTracker._trackPageview('/outgoing/www.appcelerator.com?referer=');">Titanium Developer</a>. New IPhone rapid development framework that I just learned. Very inspirational.</p>
<p>Thank you for the hard work developing these software. Happy Thanks Giving to all.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-369"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2010/11/happy-thanksgiving/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Coloring Mac Terminal</title>
		<link>http://www.rickyok.net/2010/09/coloring-mac-terminal/</link>
		<comments>http://www.rickyok.net/2010/09/coloring-mac-terminal/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 03:00:02 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=338</guid>
		<description><![CDATA[By default Mac OS X’s Terminal application uses the Bash shell (Bourne Again SHell) but doesn’t have directory and file color highlighting enabled to indicate resource types and permissions setting Enabling directory and file color highlighting requires that you open (or create) ~/.bash_profile in your favourite text editor, add these contents: export CLICOLOR=1 export LSCOLORS=ExFxCxDxBxegedabagacad [...]]]></description>
			<content:encoded><![CDATA[<p>By default Mac OS X’s Terminal application uses the Bash shell (Bourne Again SHell) but doesn’t have directory and file color highlighting enabled to indicate resource types and permissions setting</p>
<p>Enabling directory and file color highlighting requires that you open (or create) ~/.bash_profile in your favourite text editor, add these contents:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CLICOLOR</span>=<span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LSCOLORS</span>=ExFxCxDxBxegedabagacad</pre></div></div>

<p>… save the file and open a new Terminal window (shell session). Any variant of the “ls” command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span>
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span>
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-la</span>
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lah</span></pre></div></div>

<p>… will then display its output in color.</p>
<p>More details on the LSCOLORS variable can be found by looking at the man page for “ls“:</p>
<p>man ls<br />
LSCOLORS needs 11 sets of letters indicating foreground and background colors:</p>
<pre>
directory
symbolic link
socket
pipe
executable
block special
character special
executable with setuid bit set
executable with setgid bit set
directory writable to others, with sticky bit
directory writable to others, without sticky bit
</pre>
<p>The possible letters to use are:</p>
<pre>
a  black
b  red
c  green
d  brown
e  blue
f  magenta
c  cyan
h  light grey
A  block black, usually shows up as dark grey
B  bold red
C  bold green
D  bold brown, usually shows up as yellow
E  bold blue
F  bold magenta
G  bold cyan
H  bold light grey; looks like bright white
x  default foreground or background
</pre>
<p>By referencing these values, the LSCOLORS variable setting mentioned above translates to:</p>
<p>Bold blue with default background for directories, bold magenta with default background for symbolic links, bold green with default background for sockets, etc.</p>
<p>Reference :<br />
<a href="http://www.geekology.co.za/blog/2009/04/enabling-bash-terminal-directory-file-color-highlighting-mac-os-x/" onclick="pageTracker._trackPageview('/outgoing/www.geekology.co.za/blog/2009/04/enabling-bash-terminal-directory-file-color-highlighting-mac-os-x/?referer=');">http://www.geekology.co.za/blog/2009/04/enabling-bash-terminal-directory-file-color-highlighting-mac-os-x/</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-338"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2010/09/coloring-mac-terminal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FTP Sync</title>
		<link>http://www.rickyok.net/2010/04/ftp-sync/</link>
		<comments>http://www.rickyok.net/2010/04/ftp-sync/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 08:40:25 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=330</guid>
		<description><![CDATA[I use rsync a lot for sync between my Local and Remote Backup Server, rsync is doing very great job in term of speed and stability. But in certain cases, my client is not using ssh enabled account. So i forced to use an FTP sync, which is very slow. Sure you can use usual [...]]]></description>
			<content:encoded><![CDATA[<p>I use rsync a lot for sync between my Local and Remote Backup Server, rsync is doing very great job in term of speed and stability. But in certain cases, my client is not using ssh enabled account. So i forced to use an FTP sync, which is very slow. Sure you can use usual FTP Client like Filezilla, etc. But I doesn&#8217;t have a good build in sync system.</p>
<p>So I start googling and find 1 solution using LFTP. This program is already installed on standard Ubuntu installation, so you can use it immediately. </p>
<p>This is a sample file how to do a sync</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash    </span>
<span style="color: #007800;">HOST</span>=<span style="color: #ff0000;">&quot;yourhost.com&quot;</span>
<span style="color: #007800;">USER</span>=<span style="color: #ff0000;">&quot;yourusernamehere&quot;</span>
<span style="color: #007800;">PASS</span>=<span style="color: #ff0000;">&quot;yourpasswordgoeshere&quot;</span>
<span style="color: #007800;">LCD</span>=<span style="color: #ff0000;">&quot;/home/local/directory/&quot;</span>
<span style="color: #007800;">RCD</span>=<span style="color: #ff0000;">&quot;/home/remote/directory/&quot;</span>
lftp <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;set ftp:list-options -a;
open ftp://<span style="color: #007800;">$USER</span>:<span style="color: #007800;">$PASS</span>@<span style="color: #007800;">$HOST</span>; 
lcd <span style="color: #007800;">$LCD</span>;
cd <span style="color: #007800;">$RCD</span>;
mirror --reverse <span style="color: #000099; font-weight: bold;">\
</span>       --delete <span style="color: #000099; font-weight: bold;">\
</span>       --verbose <span style="color: #000099; font-weight: bold;">\
</span>       --exclude-glob config/ <span style="color: #000099; font-weight: bold;">\
</span>       --exclude-glob .htaccess <span style="color: #000099; font-weight: bold;">\
</span>       --exclude-glob index.php&quot;</span></pre></div></div>

<p>Finally in the section where it writes &#8211;exclude-glob, you write file that you should exclude in sync process. You can write directory name with / (slash) or filename, or event support a wildcard (* / ?).</p>
<p>Hope it helps</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-330"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2010/04/ftp-sync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use &#8216;find&#8217; in file</title>
		<link>http://www.rickyok.net/2010/01/how-to-use-find-in-file/</link>
		<comments>http://www.rickyok.net/2010/01/how-to-use-find-in-file/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 05:46:24 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=318</guid>
		<description><![CDATA[Linux has many usefull command. I always use this command to find a single file find . &#124; grep filename But it&#8217;s not a really good implementation to how to use the syntax. For search file name, use this command instead. find -name filename find -name &#34;you can event use a wildcard *&#34; For directory [...]]]></description>
			<content:encoded><![CDATA[<p>Linux has many usefull command.</p>
<p>I always use this command to find a single file</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> filename</pre></div></div>

<p>But it&#8217;s not a really good implementation to how to use the syntax. For search file name, use this command instead.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-name</span> filename
<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;you can event use a wildcard *&quot;</span></pre></div></div>

<p>For directory you can write like this</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-type</span> d</pre></div></div>

<p>For find only file</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-type</span> f</pre></div></div>

<p>Together joined will be</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-type</span> f <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;rick*&quot;</span></pre></div></div>

<p>And the most useful syntax, you can run a command on every file it found. Here&#8217;s how to delete every jpg it found.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-type</span> f <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;*.jpg&quot;</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>Or upgrade all bzr in every directory</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-type</span> d <span style="color: #660033;">-maxdepth</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-exec</span> bzr update <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>Hope it helps</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-318"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2010/01/how-to-use-find-in-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XREA Anti comment spam &amp; Trackback</title>
		<link>http://www.rickyok.net/2009/08/xrea-anti-comment-spam-trackback/</link>
		<comments>http://www.rickyok.net/2009/08/xrea-anti-comment-spam-trackback/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 09:21:19 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=270</guid>
		<description><![CDATA[XREA (coreserver.jp) punya akses limit buat POST, sehingga kalo post dari IP yang engga di ijinkan akan keluar 403 Forbidden. Lamaaa banget gue cari masalahnya kenapa. Gue pikir masalah dengan script redirect gue, atau masalah dengan .htaccess gue. Karena susah banget dapetnya nich, gue mencoba berbagi dengan mungkin temen2 yang bakal ngalamin masalah yang sama. [...]]]></description>
			<content:encoded><![CDATA[<p>XREA (coreserver.jp) punya akses limit buat POST, sehingga kalo post dari IP yang engga di ijinkan akan keluar 403 Forbidden. Lamaaa banget gue cari masalahnya kenapa. Gue pikir masalah dengan script redirect gue, atau masalah dengan .htaccess gue.</p>
<p>Karena susah banget dapetnya nich, gue mencoba berbagi dengan mungkin temen2 yang bakal ngalamin masalah yang sama.</p>
<p>Quote ini diambil langsung dari support forumnya XREA</p>
<blockquote><p>
動的に変わるIPアドレスから 不正な投稿（トラックバック・コメントスパム、掲示板へのスパム目的のPOST処理）があるため、自動的にサーバー側でブロックを掛けさせていただく場合があります。</p>
<p>POST処理のみ拒否される場合は、SSLサーバーを介してアクセスしていただければと存じます。</p>
<p>https://ss1.xrea.com/www.sサーバー名.xrea.com/jp/admin.cgi</p>
<p>または</p>
<p>https://ss2.xrea.com/www.sサーバー名.xrea.com/jp/admin.cgi</p>
<p>もしくは、大変お手数で申し訳ございませんが、「.htaccess」ファイルで</p>
<p>&lt;Limit POST&gt;<br />
order allow,deny<br />
allow from all<br />
&lt;/Limit&gt;</p>
<p>として設置していただきますようにお願い申し上げます。</p>
<p>スパム目的のPOSTが多いサーバー、アカウントでは、単位時間あたりのPOST数に制限を設けております。<br />
上記回避設定を行っていただきますと、スパムの影響で正常なPOSTが溢れてしまうことがあります。</p>
<p>「各ユーザー様での自己防衛について」の方法などで、スパムを極力制限していただきますようにお願い申し上げます。</p></blockquote>
<p>Source : http://sb.xrea.com/showthread.php?p=78426#post78426</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-270"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2009/08/xrea-anti-comment-spam-trackback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips buat atasin LIMIT di subquery</title>
		<link>http://www.rickyok.net/2009/08/tips-buat-atasin-limit-di-subquery/</link>
		<comments>http://www.rickyok.net/2009/08/tips-buat-atasin-limit-di-subquery/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 10:50:23 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=267</guid>
		<description><![CDATA[Bagi yang sering otak-atik MySQL dan bermain-main dengan subquery pasti pernah ketemu dengan pesan error ini dech. This version of MySQL doesn&#8217;t yet support &#8216;LIMIT &#38; IN/ALL/ANY/SOME subquery&#8217; Tadi kebetulan ada temen saya yang tanya. Eh Gimana sih keluarin data 5 tertinggi dari 50 data yang gue random? Pertama gue jawab-in bahwa query nya seperti [...]]]></description>
			<content:encoded><![CDATA[<p>Bagi yang sering otak-atik MySQL dan bermain-main dengan subquery pasti pernah ketemu dengan pesan error ini dech.</p>
<p>This version of MySQL doesn&#8217;t yet support &#8216;LIMIT &amp; IN/ALL/ANY/SOME subquery&#8217;</p>
<p>Tadi kebetulan ada temen saya yang tanya. Eh Gimana sih keluarin data 5 tertinggi dari 50 data yang gue random? Pertama gue jawab-in bahwa query nya seperti ini</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> a <span style="color: #993333; font-weight: bold;">WHERE</span> a_id <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> a_id <span style="color: #993333; font-weight: bold;">FROM</span> a <span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">50</span>
<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> a_value <span style="color: #993333; font-weight: bold;">DESC</span> <span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">5</span></pre></div></div>

<p>Terus gue bilang, bahwa &#8220;saat ini versi MySQL belom ada yang bisa begitu&#8221;. Terus setelah dia cari2, rupanya bisa diakal2in seperti ini :</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #66cc66;">&#40;</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> a <span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">50</span>
<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> t_value <span style="color: #993333; font-weight: bold;">DESC</span> <span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;">5</span></pre></div></div>

<p>Semoga membantu.</p>
<p>Credits goes to @xtian</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-267"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2009/08/tips-buat-atasin-limit-di-subquery/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Blackberry Application Launcher</title>
		<link>http://www.rickyok.net/2009/06/blackberry-application-launcher/</link>
		<comments>http://www.rickyok.net/2009/06/blackberry-application-launcher/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 07:40:18 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[blackberry]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=221</guid>
		<description><![CDATA[Pernah penasaran begimana caranya bikin launcer seperti detik.com? Punya website mobile dan pengen bikin launcher yang serupa tapi engga tahu cara bikinnya? Saya juga ^^ Saya baru aja mencoba bikin applikasi launcher seperti itu, yang rupanya engga sulit2 amat. Tutorial nya bisa banyak ditemukan dimana2. Code nya juga sebenernya simple sekali, hanya buka website tersebut, [...]]]></description>
			<content:encoded><![CDATA[<p>Pernah penasaran begimana caranya bikin launcer seperti detik.com? Punya website mobile dan pengen bikin launcher yang serupa tapi engga tahu cara bikinnya? Saya juga ^^</p>
<p>Saya baru aja mencoba bikin applikasi launcher seperti itu, yang rupanya engga sulit2 amat. Tutorial nya bisa banyak ditemukan dimana2. Code nya juga sebenernya simple sekali, hanya buka website tersebut, dan close program tersebut. Makanya disebut application launcher.</p>
<p>Ngapain pake launcher kalo bisa cuma pake bookmark?<br />
1. Engga semua orang punya knowledge untuk menggunakan browser dengan semestinya.<br />
2. Simplicity<br />
3. Mengurangi 1 step click menuju bookmark</p>
<p>Semua proses pembuatannya sebenernya simple. Tapi ada satu masalah. Applikasi blackberry sebelum di launch mengharuskan developer untuk &#8220;menandatangani&#8221; applikasi tersebut. Gunanya supaya RIM bisa tracking code mana saja yang ada di pasar dan dikembangkan. Untuk bisa menandatangani applikasi tersebut dibutuhkan $20 tambahan.</p>
<p>Nah khan cape kalo cuma mao bikin satu launcher simple aja tapi sampe harus bayar biaya segitu ^^, nah kemaren itu baru aja gue register 1 key.</p>
<p>Gue menawarkan service untuk membuatkan anda application launcher hanya dengan 20Rb rupiah. Itung kita bagi2 license key nya supaya sama2 senang <img src='http://www.rickyok.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Anda cukup mempersiapkan<br />
1. URL website anda<br />
2. Icon berupa PNG berukuran 80 x 80 pixel<br />
3. Uang Rp 20.000 </p>
<p>Jika anda tertarik silahkan tinggalkan informasi untuk menghubungi anda di comment.</p>
<p>Untuk contoh silahkan download launcher sample di http://www.rickyok.net/crackberry.jad</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-221"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2009/06/blackberry-application-launcher/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Teka teki solver</title>
		<link>http://www.rickyok.net/2009/01/teka-teki-solver/</link>
		<comments>http://www.rickyok.net/2009/01/teka-teki-solver/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 16:56:37 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[crossword]]></category>
		<category><![CDATA[solver]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://localhost/rickyok/?p=132</guid>
		<description><![CDATA[Ini dulu gue bikin waktu lagi isenk di kantor, adu cepet2an pecahin teka teki silang, akhirnya karena kalah melulu gue kesel, terus bikin programnya buat pecahin teka teki silang otomatis. Emang engga guna tapi sapa tau suatu saat berguna. &#60;html&#62; &#60;head&#62;&#60;title&#62;Crozz Puzzle - Problem Solver&#60;/title&#62;&#60;/head&#62; &#60;body onLoad=&#34;frmSolver.txtFind.focus();frmSolver.txtFind.select()&#34;&#62; &#60;form name=&#34;frmSolver&#34; method=&#34;GET&#34; action=&#34;crossSolverFixedMulti.php&#34;&#62; Soal : &#60;br&#62; &#60;textarea [...]]]></description>
			<content:encoded><![CDATA[<p>Ini dulu gue bikin waktu lagi isenk di kantor, adu cepet2an pecahin teka teki silang, akhirnya karena kalah melulu gue kesel, terus bikin programnya buat pecahin teka teki silang otomatis. Emang engga guna <img src='http://www.rickyok.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  tapi sapa tau suatu saat berguna.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;&lt;title&gt;Crozz Puzzle - Problem Solver&lt;/title&gt;&lt;/head&gt;
&lt;body onLoad=&quot;frmSolver.txtFind.focus();frmSolver.txtFind.select()&quot;&gt;
  &lt;form name=&quot;frmSolver&quot; method=&quot;GET&quot; action=&quot;crossSolverFixedMulti.php&quot;&gt;
    Soal : &lt;br&gt;
    &lt;textarea name=&quot;txtSoal&quot; cols=&quot;30&quot; rows=&quot;12&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$txtSoal</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/textarea&gt;&lt;br&gt;
    Kata yang dicari :&lt;br&gt;
    &lt;input type=&quot;text&quot; name=&quot;txtFind&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?</span><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$txtFind</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
    &lt;input type=&quot;submit&quot; value=&quot;Cari&quot;&gt;
  &lt;/form&gt;
&nbsp;
&lt;br&gt;
Hasil : &lt;br&gt;
&lt;table cellpadding=&quot;10&quot;&gt;&lt;tr&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span>
  <span style="color: #666666; font-style: italic;">// Pecahin soalnya jadi array of char</span>
  <span style="color: #000088;">$soal</span> <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;txtSoal&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$verti</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$hori</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$totalchar</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$a</span> <span style="color: #339933;">&lt;</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$soal</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$a</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$soal</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$a</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">13</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$soal</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$a</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$chara</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$soal</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$a</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$warna</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$verti</span><span style="color: #339933;">++;</span>
      <span style="color: #000088;">$totalchar</span><span style="color: #339933;">++;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$a</span><span style="color: #339933;">++;</span>
      <span style="color: #000088;">$verti</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$hori</span><span style="color: #339933;">++;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000088;">$hori</span><span style="color: #339933;">++;</span>
&nbsp;
  <span style="color: #000088;">$find</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;txtFind&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$maxLevel</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$find</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Proses $warna</span>
  <span style="color: #000000; font-weight: bold;">function</span> process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">,</span> <span style="color: #000088;">$y</span><span style="color: #339933;">,</span> <span style="color: #000088;">$level</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arah</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$chara</span><span style="color: #339933;">,</span> <span style="color: #000088;">$verti</span><span style="color: #339933;">,</span> <span style="color: #000088;">$hori</span><span style="color: #339933;">,</span> <span style="color: #000088;">$totalchar</span><span style="color: #339933;">,</span> <span style="color: #000088;">$maxLevel</span><span style="color: #339933;">,</span> <span style="color: #000088;">$find</span><span style="color: #339933;">,</span> <span style="color: #000088;">$warna</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$pos</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$y</span> <span style="color: #339933;">*</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$x</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$level</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$maxLevel</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Ketemu nich berarti</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$x</span> <span style="color: #339933;">&gt;=</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Melebihi batas X</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$y</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">&gt;=</span> <span style="color: #000088;">$hori</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Melebihi batas Y</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$chara</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$pos</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$find</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$level</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// Huruf di posisi ini salah :D</span>
      <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$found</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">99</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$level</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arah</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$found</span><span style="color: #339933;">++;</span> <span style="color: #666666; font-style: italic;">// Kanan</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">99</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$level</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arah</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$found</span><span style="color: #339933;">++;</span> <span style="color: #666666; font-style: italic;">// Kanan Bawah</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">3</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">99</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$level</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arah</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$found</span><span style="color: #339933;">++;</span> <span style="color: #666666; font-style: italic;">// Kanan Atas</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">4</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">99</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$level</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arah</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$found</span><span style="color: #339933;">++;</span> <span style="color: #666666; font-style: italic;">// Bawah</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">5</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">99</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$level</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arah</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$found</span><span style="color: #339933;">++;</span> <span style="color: #666666; font-style: italic;">// Atas</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">6</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">99</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$level</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arah</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$found</span><span style="color: #339933;">++;</span> <span style="color: #666666; font-style: italic;">// Kiri</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">7</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">99</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$level</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arah</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$found</span><span style="color: #339933;">++;</span> <span style="color: #666666; font-style: italic;">// Kiri Bawah</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">8</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$arah</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">99</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$level</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arah</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$found</span><span style="color: #339933;">++;</span> <span style="color: #666666; font-style: italic;">// Kiri Atas</span>
&nbsp;
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$found</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$warna</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$pos</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</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;">function</span> cetakHasil<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;">global</span> <span style="color: #000088;">$warna</span><span style="color: #339933;">,</span> <span style="color: #000088;">$chara</span><span style="color: #339933;">,</span> <span style="color: #000088;">$verti</span><span style="color: #339933;">,</span> <span style="color: #000088;">$hori</span><span style="color: #339933;">;</span>
    static <span style="color: #000088;">$counter</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$counter</span> <span style="color: #339933;">%</span> <span style="color: #cc66cc;">5</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$counter</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/tr&gt;&lt;tr&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;td style='border: 1px solid #FFCCFF;'&gt;&lt;gantijadipre&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$y</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$hori</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$y</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$x</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$x</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$pos</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$y</span> <span style="color: #339933;">*</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$x</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$warna</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$pos</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;font color='red'&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$chara</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$pos</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;/font&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;font color='black'&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$chara</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$pos</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;/font&gt;&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/gantijadipre&gt;&lt;/td&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$counter</span><span style="color: #339933;">++;</span>
    <span style="color: #990000;">flush</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;">function</span> resetWarna<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;">global</span> <span style="color: #000088;">$warna</span><span style="color: #339933;">,</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$hori</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$y</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$y</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$hori</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$y</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$x</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$x</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$pos</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$y</span> <span style="color: #339933;">*</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$x</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$warna</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$pos</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$a</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$totalchar</span> <span style="color: #339933;">;</span> <span style="color: #000088;">$a</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">%</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">,</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>cetakHasil<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>resetWarna<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: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">%</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">,</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>cetakHasil<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>resetWarna<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: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">%</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">,</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>cetakHasil<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>resetWarna<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: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">%</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">,</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>cetakHasil<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>resetWarna<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: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">%</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">,</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>cetakHasil<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>resetWarna<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: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">%</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">,</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>cetakHasil<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>resetWarna<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: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">%</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">,</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>cetakHasil<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>resetWarna<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: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">%</span> <span style="color: #000088;">$verti</span> <span style="color: #339933;">,</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$verti</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>cetakHasil<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>resetWarna<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: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/tr&gt;&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-132"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2009/01/teka-teki-solver/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Samba on Ubuntu</title>
		<link>http://www.rickyok.net/2009/01/samba-on-ubuntu/</link>
		<comments>http://www.rickyok.net/2009/01/samba-on-ubuntu/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 16:52:04 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[symlink]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://localhost/rickyok/?p=123</guid>
		<description><![CDATA[Ada masalah yang timbul pada saat kita mount smbfs ke suatu direktori. Masalah yang akan timbul adalah symbolic link tidak bisa diakses seperti layaknya bila di akses dari Windows. Jika kita membuat symlink ke folder lain (contoh: /opt/lampp/htdocs dan diarahkan ke /home/admin/www/), jika folder admin itu di mount ke Windows, makan pada saat kita klik [...]]]></description>
			<content:encoded><![CDATA[<p>Ada masalah yang timbul pada saat kita mount smbfs ke suatu direktori. Masalah yang akan timbul adalah symbolic link tidak bisa diakses seperti layaknya bila di akses dari Windows. Jika kita membuat symlink ke folder lain (contoh: /opt/lampp/htdocs dan diarahkan ke /home/admin/www/), jika folder admin itu di mount ke Windows, makan pada saat kita klik &#8216;www&#8217;, akan dibuka tanpa masalah, Windows akan mengira symlink itu adalah suatu direktori, dan samba akan otomatis mengeluarkan isi direktori tersebut, ini bukanlah bug tetapi fitur yang sangat baik.</p>
<p>Jika anda mencoba mount folder tersebut dari ubuntu dan klik folder www tersebut, yang terjadi adalah, symlink tetaplah sebuah symlink. Anda akan dibawa ke folder /opt/lampp/htdocs di local anda. Cara pemecahannya adalah:</p>
<p>Tambahkan ini di bagian [globals]</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">follow symlinks = yes
wide symlinks = yes
unix extensions = no</pre></div></div>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-123"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2009/01/samba-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting untuk printer Epson seri TM</title>
		<link>http://www.rickyok.net/2009/01/setting-untuk-printer-epson-seri-tm/</link>
		<comments>http://www.rickyok.net/2009/01/setting-untuk-printer-epson-seri-tm/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 16:41:50 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[epson]]></category>
		<category><![CDATA[tm]]></category>

		<guid isPermaLink="false">http://localhost/rickyok/?p=111</guid>
		<description><![CDATA[Cara init printer ala Frederick Matikan printer Tahan tombol Feed, terus nyalakan printer Pas udah kelar , pencet lagi feed sekali sampe keluar semua halamannya Baru pencet PUSH BUTTON ditempat lan sekali lagi Liat setting an di kertas, set ulang printer, baru bisa ngeprint Update: Cara di atas itu cara bego kalo salah setting DIP [...]]]></description>
			<content:encoded><![CDATA[<p>Cara init printer ala Frederick</p>
<ol>
<li>Matikan printer</li>
<li> Tahan tombol Feed, terus nyalakan printer</li>
<li> Pas udah kelar , pencet lagi feed sekali sampe keluar semua halamannya</li>
<li> Baru pencet PUSH BUTTON ditempat lan sekali lagi</li>
<li> Liat setting an di kertas, set ulang printer, baru bisa ngeprint</li>
</ol>
<blockquote><p>Update: Cara di atas itu cara bego kalo salah setting DIP switch. Sekarang udah bisa benerin DIP switch nya ^^. Silahkan liat bagian cheatsheet untuk keterangan lebih lanjut.</p></blockquote>
<h2>Set control font</h2>
<p>Ada di folder ini nich</p>
<p>C:\WINDOWS\system32\spool\prtprocs\w32x86</p>
<p>Set dulu code2 aneh di situ baru bisa dipake ControlA font buat controlnya.</p>
<h2>Referensi</h2>
<ul>
<li><a class="urlextern" title="http://www.amigopos.com/faq/faq_262.aspx#LinkTarget_10185" rel="nofollow" href="http://www.amigopos.com/faq/faq_262.aspx#LinkTarget_10185" target="_new" onclick="pageTracker._trackPageview('/outgoing/www.amigopos.com/faq/faq_262.aspx_LinkTarget_10185?referer=');">http://www.amigopos.com/faq/faq_262.aspx#LinkTarget_10185</a></li>
</ul>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-111"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2009/01/setting-untuk-printer-epson-seri-tm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

