<?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; rickyok</title>
	<atom:link href="http://www.rickyok.net/author/rickyok/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>Twedding</title>
		<link>http://www.rickyok.net/2010/09/twedding/</link>
		<comments>http://www.rickyok.net/2010/09/twedding/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 04:50:02 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=312</guid>
		<description><![CDATA[This is our latest Product. Twedding. You can make something different to your wedding. Your friend would be able to send SMS / Twitter / Facebook Post / Gtalk / and we support almost every Social networking out there. Here&#8217;s some video of my Wedding using the software For more info please visit http://www.twedding.com/]]></description>
			<content:encoded><![CDATA[<p>This is our latest Product. Twedding.</p>
<p>You can make something different to your wedding. Your friend would be able to send SMS / Twitter / Facebook Post / Gtalk / and we support almost every Social networking out there. </p>
<p>Here&#8217;s some video of my Wedding using the software<br />
<p><a href="http://www.rickyok.net/2010/09/twedding/"><em>Click here to view the embedded video.</em></a></p></p>
<p>For more info please visit <a href="http://www.twedding.com/" onclick="pageTracker._trackPageview('/outgoing/www.twedding.com/?referer=');">http://www.twedding.com/</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-312"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2010/09/twedding/feed/</wfw:commentRss>
		<slash:comments>0</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>Move back close button to the right side</title>
		<link>http://www.rickyok.net/2010/05/move-back-close-button-to-the-right-side/</link>
		<comments>http://www.rickyok.net/2010/05/move-back-close-button-to-the-right-side/#comments</comments>
		<pubDate>Mon, 03 May 2010 12:32:21 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=334</guid>
		<description><![CDATA[If you just install Ubuntu 10.04 then you will realize that the new button is moved to the left side (Mac style). You can move it back to right by following this tutorial: Got this info from Here Press Alt+F2, then type gconf-editor and press enter. That’s for opening the configuration editor. Once on this [...]]]></description>
			<content:encoded><![CDATA[<p>If you just install Ubuntu 10.04 then you will realize that the new button is moved to the left side (Mac style). You can move it back to right by following this tutorial:</p>
<p>Got this info from <a href="http://www.codigomanso.com/en/2010/04/ubuntu-10-4-poner-el-boton-de-cerrar-la-ventana-a-la-derecha/" onclick="pageTracker._trackPageview('/outgoing/www.codigomanso.com/en/2010/04/ubuntu-10-4-poner-el-boton-de-cerrar-la-ventana-a-la-derecha/?referer=');">Here</a></p>
<p>Press Alt+F2, then type gconf-editor and press enter. That’s for opening the configuration editor.</p>
<p>Once on this editor, in the item tree at the left, you have to look for this path  app -> metacity -> general and you doubleclick on the field named  button_layout.</p>
<p>Then, you have only to change the value field and put this:</p>
<p>menu:minimize,maximize,close</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-334"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2010/05/move-back-close-button-to-the-right-side/feed/</wfw:commentRss>
		<slash:comments>0</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>Kuliner Surabaya</title>
		<link>http://www.rickyok.net/2010/01/kuliner-surabaya/</link>
		<comments>http://www.rickyok.net/2010/01/kuliner-surabaya/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 04:58:45 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[jalan2]]></category>
		<category><![CDATA[kuliner]]></category>
		<category><![CDATA[surabaya]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=323</guid>
		<description><![CDATA[Lagi dapet kesempatan buat training orang ke Surabaya nich. 4 hari 3 malem. Sempet nyobain makanan di bawah ini. Semuanya mantap sekali. Dan harus dicobain kalo nanti ke Surabaya lagi ach. 1. Bakwan Kapasari Ada di pasar atom dan di Jalan May Jen Sungkono. Bakso (kalo orang sini sebutnya bakwan) nya kotak ^^ lucu dech. [...]]]></description>
			<content:encoded><![CDATA[<p>Lagi dapet kesempatan buat training orang ke Surabaya nich. 4 hari 3 malem. Sempet nyobain makanan di bawah ini. Semuanya mantap sekali. Dan harus dicobain kalo nanti ke Surabaya lagi ach.</p>
<p><strong>1. Bakwan Kapasari</strong><br />
Ada di pasar atom dan di Jalan May Jen Sungkono. Bakso (kalo orang sini sebutnya bakwan) nya kotak ^^ lucu dech. Rasa baksonya juga mantap. Makan 1 porsi isi lima sama bakmi ayam sekitar 50 rb kalo gak salah. Cukup mahal, tapi worth the price. Di dalem tokonya ada timbangan jaman karung beras jaman jebot gitu, lucu&#8230; akhirnya ada timbangan yang kalo gue naekin jarum nya engga muter lebih dari setengah wkwkwkw.. Terus ada gerobak pas dia jualan pertama kali gitu.</p>
<p>Bakso spesial nya dia ada bakso urat yang kotak2 tadi, bakso halus yang bulet, usus&#8230; (engga cobain, engga doyan), siomay goreng nya enak, siomay rebus nya engga coba.</p>
<p><strong>2. Rm Bakmi tidar Jakarta</strong><br />
Ada di jalan tidar. Lucu juga, makan bakmi jakarta jauh2 di Surabaya. Tapi bakmi nya daging nya banyak banget. Kuah nya juga enak. Terus dessert nya&#8230; Es KACANG IJOO&#8230; mantaaaap poooll&#8230; Yang lebih enak lagi yah. Di sebelahnya itu ada yang jual casiu garing madu. Wah itu enak bangettt!! Lebih enak lagi beli itu dulu 100 gram terus makan di bakmi tidar nya.</p>
<p><strong>3. Warung Ibu Kris</strong><br />
Nahhh ini baru makaann&#8230; Sampe di rekomendasiin sama 4 orang temen. Bahkan orang nya ada di Jepang, dia sampe afal nama jalannya dan bisa pandu gue sampe ke restoran ^^ hebat gak. Nanya sopir taxi manapun di surabaya kayaknya pasti tau resto ini. Resto nya ga gitu gede. Specialitis nya pecel n penyet2an.</p>
<p>Kemaren sempet cobain ayam + bakwan (bakso) penyet. Terus makan nasi rawon. Nasi rawon 12 Rb isinya buanyaaaaak poll plus daging 7 potong gede2. Terus Nasi pecel 5.5 Rb enak juga. Ayam penyet nya cuma 9Rb aja. Murah banget. Minum nya juga ada versi jumbo dengan harga yang murah banget juga&#8230;. Puas banget makan di sini&#8230;. Sangat2 recommended sekaleee..</p>
<p><strong>Akhir Kata</strong><br />
Sayang nya cuma sempet makan itu aja sih, karena pagi makan di hotel dan siang nya dapet makan dari kantor ^^ Sadiz ini 3 hari di sini perut maju ke depan. Jam 11 dpt snack pagi, jam 12 makan siang, jam 3 dapet snack sore, makan malem&#8230; bobooo&#8230; sadiz bow.</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-323"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2010/01/kuliner-surabaya/feed/</wfw:commentRss>
		<slash:comments>1</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>Fix file permission</title>
		<link>http://www.rickyok.net/2010/01/fix-file-permission/</link>
		<comments>http://www.rickyok.net/2010/01/fix-file-permission/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:19:18 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=314</guid>
		<description><![CDATA[Sometimes if you mess up with file permission in a lot of file. It takes time to repair it. This is how to repair file permission in 2 commands For directory find &#91;your path here&#93; -type d -exec chmod 755 &#123;&#125; \; And for file find &#91;your path here&#93; -type f -exec chmod 644 &#123;&#125; [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes if you mess up with file permission in a lot of file. It takes time to repair it. This is how to repair file permission in 2 commands</p>
<p>For 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: #7a0874; font-weight: bold;">&#91;</span>your path here<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">-type</span> d <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>And for 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: #7a0874; font-weight: bold;">&#91;</span>your path here<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">-type</span> f <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">644</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</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-314"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2010/01/fix-file-permission/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook photo upload trough Picasa</title>
		<link>http://www.rickyok.net/2009/12/facebook-photo-upload-trough-picasa/</link>
		<comments>http://www.rickyok.net/2009/12/facebook-photo-upload-trough-picasa/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 08:52:58 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[picasa]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/?p=304</guid>
		<description><![CDATA[Do this steps Install Picasa 3 from http://picasa.google.com Close all your browser Open http://apps.facebook.com/picasauploader/ Click the &#8216;Add&#8217; Button above And there you have it. A Facebook button on your Picasa. Simple isn&#8217;t it]]></description>
			<content:encoded><![CDATA[<p>Do this steps</p>
<ol>
<li>Install Picasa 3 from <a href="http://picasa.google.com" onclick="pageTracker._trackPageview('/outgoing/picasa.google.com?referer=');">http://picasa.google.com</a></li>
<li>Close all your browser</li>
<li>Open <a href="http://apps.facebook.com/picasauploader/" onclick="pageTracker._trackPageview('/outgoing/apps.facebook.com/picasauploader/?referer=');">http://apps.facebook.com/picasauploader/</a></li>
<li>Click the &#8216;Add&#8217; Button above</li>
<li>And there you have it. A Facebook button on your Picasa. Simple isn&#8217;t it</li>
</ol>
<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-304"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2009/12/facebook-photo-upload-trough-picasa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Public DNS</title>
		<link>http://www.rickyok.net/2009/12/google-public-dns/</link>
		<comments>http://www.rickyok.net/2009/12/google-public-dns/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 08:45:49 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.rickyok.net/2009/12/google-public-dns/</guid>
		<description><![CDATA[Google is launch a new service called Public DNS. You can use this everywhere to get a better DNS resolving. You just have to change your DNS to 8.8.8.8 and secondary DNS to 8.8.4.4 Very useful for Speddy user that got a lot of DNS error these days. For reference see http://code.google.com/speed/public-dns/]]></description>
			<content:encoded><![CDATA[<p>Google is launch a new service called Public DNS. You can use this everywhere to get a better DNS resolving. </p>
<p>You just have to change your DNS to 8.8.8.8 and secondary DNS to 8.8.4.4</p>
<p>Very useful for Speddy user that got a lot of DNS error these days. </p>
<p>For reference see <a href="http://code.google.com/speed/public-dns/" onclick="pageTracker._trackPageview('/outgoing/code.google.com/speed/public-dns/?referer=');">http://code.google.com/speed/public-dns/</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-302"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2009/12/google-public-dns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

