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

<channel>
	<title>sunsuron</title>
	<atom:link href="http://charles.gambaris.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://charles.gambaris.com</link>
	<description>Opinions are like assholes and every one has one - rpk</description>
	<pubDate>Fri, 29 Aug 2008 04:51:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Malaysia Today Mirrors</title>
		<link>http://charles.gambaris.com/2008/08/29/malaysia-today-mirrors/</link>
		<comments>http://charles.gambaris.com/2008/08/29/malaysia-today-mirrors/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 04:51:28 +0000</pubDate>
		<dc:creator>sunsuron</dc:creator>
		
		<category><![CDATA[alert]]></category>

		<category><![CDATA[minta puji]]></category>

		<guid isPermaLink="false">http://charles.gambaris.com/?p=81</guid>
		<description><![CDATA[
Microsoft Windows XP &#91;Version 5.1.2600&#93;
&#40;C&#41; Copyright 1985-2001 Microsoft Corp.
&#160;
C:\Documents and Settings\Charles&#62;nslookup
Default Server:  cns2.tm.net.my
Address:  202.188.1.5
&#160;
&#62; malaysia-today.net
Server:  cns2.tm.net.my
Address:  202.188.1.5
&#160;
*** cns2.tm.net.my can't find malaysia-today.net: Non-existent domain
&#62; mt.harapanmalaysia.com
Server:  cns2.tm.net.my
Address:  202.188.1.5
&#160;
Non-authoritative answer:
Name:    mt.harapanmalaysia.com
Addresses:  72.47.236.85, 202.71.97.141, 202.75.59.125
&#160;
&#62; exit
&#160;
C:\Documents and Settings\Charles&#62;

So there you go. There are currently 3 IPs available. I hope [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="dos">Microsoft Windows XP <span style="color: #66cc66;">&#91;</span>Version <span style="color: #cc66cc;">5.1</span><span style="color: #cc66cc;">.2600</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#40;</span>C<span style="color: #66cc66;">&#41;</span> Copyright <span style="color: #cc66cc;">1985</span><span style="color: #cc66cc;">-2001</span> Microsoft Corp.
&nbsp;
C:\Documents and Settings\Charles&gt;nslookup
Default Server:  cns2.tm.net.my
Address:  <span style="color: #cc66cc;">202.188</span><span style="color: #cc66cc;">.1</span><span style="color: #cc66cc;">.5</span>
&nbsp;
&gt; malaysia-today.net
Server:  cns2.tm.net.my
Address:  <span style="color: #cc66cc;">202.188</span><span style="color: #cc66cc;">.1</span><span style="color: #cc66cc;">.5</span>
&nbsp;
*** cns2.tm.net.my can't find malaysia-today.net: Non-existent domain
&gt; mt.harapanmalaysia.com
Server:  cns2.tm.net.my
Address:  <span style="color: #cc66cc;">202.188</span><span style="color: #cc66cc;">.1</span><span style="color: #cc66cc;">.5</span>
&nbsp;
Non-authoritative answer:
Name:    mt.harapanmalaysia.com
Addresses:  <span style="color: #cc66cc;">72.47</span><span style="color: #cc66cc;">.236</span><span style="color: #cc66cc;">.85</span>, <span style="color: #cc66cc;">202.71</span><span style="color: #cc66cc;">.97</span><span style="color: #cc66cc;">.141</span>, <span style="color: #cc66cc;">202.75</span><span style="color: #cc66cc;">.59</span><span style="color: #cc66cc;">.125</span>
&nbsp;
&gt; <span style="color: #00b100; font-weight: bold;">exit</span>
&nbsp;
C:\Documents and Settings\Charles&gt;</pre></div></div>

<p>So there you go. There are currently 3 IPs available. I hope RPK has more to reveal (backup) if all three failed again (banned).</p>
]]></content:encoded>
			<wfw:commentRss>http://charles.gambaris.com/2008/08/29/malaysia-today-mirrors/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Copying and Deleting</title>
		<link>http://charles.gambaris.com/2008/08/24/copying-and-deleting/</link>
		<comments>http://charles.gambaris.com/2008/08/24/copying-and-deleting/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 18:49:43 +0000</pubDate>
		<dc:creator>sunsuron</dc:creator>
		
		<category><![CDATA[alert]]></category>

		<category><![CDATA[minta puji]]></category>

		<guid isPermaLink="false">http://charles.gambaris.com/?p=73</guid>
		<description><![CDATA[Windows

xcopy &#60;source&#62; &#60;destination&#62; /E /I /C /Y /F
rmdir &#60;dir&#62; /S /Q

Linux

cp -Rv &#60;source&#62; &#60;destination&#62;
rm -fr &#60;dir&#62;

Now I can perform

&#60;?php
if&#40;stristr&#40; PHP_OS, 'WIN' &#41;&#41;
&#123;
  $arg = 'xcopy '. $source .' '. $destination .' /E /I /C /Y /F 1&#62;'. $outfile .' 2&#62;'. $errfile;
  exec &#40; $arg, $out, $ret &#41;;
&#125;
&#160;
if&#40;stristr&#40; PHP_OS, 'Linux' &#41;&#41;
&#123;
  $arg = [...]]]></description>
			<content:encoded><![CDATA[<p>Windows</p>

<div class="wp_syntax"><div class="code"><pre class="dos">xcopy &lt;source&gt; &lt;destination&gt; /E /I /C /Y /F
<span style="color: #b1b100; font-weight: bold;">rmdir</span> &lt;dir&gt; /S /Q</pre></div></div>

<p>Linux</p>

<div class="wp_syntax"><div class="code"><pre class="bash"><span style="color: #c20cb9; font-weight: bold;">cp</span> -Rv <span style="color: #000000; font-weight: bold;">&lt;</span>source<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>destination<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> -fr <span style="color: #000000; font-weight: bold;">&lt;</span>dir<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Now I can perform</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">stristr</span><span style="color: #009900;">&#40;</span> <span style="color: #000000; font-weight: bold;">PHP_OS</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'WIN'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000033;">$arg</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'xcopy '</span><span style="color: #339933;">.</span> <span style="color: #000033;">$source</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">.</span> <span style="color: #000033;">$destination</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' /E /I /C /Y /F 1&gt;'</span><span style="color: #339933;">.</span> <span style="color: #000033;">$outfile</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' 2&gt;'</span><span style="color: #339933;">.</span> <span style="color: #000033;">$errfile</span><span style="color: #339933;">;</span>
  <span style="color: #990000;">exec</span> <span style="color: #009900;">&#40;</span> <span style="color: #000033;">$arg</span><span style="color: #339933;">,</span> <span style="color: #000033;">$out</span><span style="color: #339933;">,</span> <span style="color: #000033;">$ret</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">stristr</span><span style="color: #009900;">&#40;</span> <span style="color: #000000; font-weight: bold;">PHP_OS</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Linux'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000033;">$arg</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'cp -Rv '</span><span style="color: #339933;">.</span> <span style="color: #000033;">$source</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">.</span> <span style="color: #000033;">$destination</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' 1&gt; '</span><span style="color: #339933;">.</span> <span style="color: #000033;">$outfile</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' 2&gt; '</span><span style="color: #339933;">.</span> <span style="color: #000033;">$errfile</span><span style="color: #339933;">;</span>
  <span style="color: #990000;">exec</span> <span style="color: #009900;">&#40;</span> <span style="color: #000033;">$arg</span><span style="color: #339933;">,</span> <span style="color: #000033;">$out</span><span style="color: #339933;">,</span> <span style="color: #000033;">$ret</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://charles.gambaris.com/2008/08/24/copying-and-deleting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Avoid IE6, It&#8217;s time to upgrade</title>
		<link>http://charles.gambaris.com/2008/08/23/avoid-ie6-its-time-to-upgrade/</link>
		<comments>http://charles.gambaris.com/2008/08/23/avoid-ie6-its-time-to-upgrade/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 09:36:16 +0000</pubDate>
		<dc:creator>sunsuron</dc:creator>
		
		<category><![CDATA[minta puji]]></category>

		<category><![CDATA[poetry]]></category>

		<guid isPermaLink="false">http://charles.gambaris.com/?p=68</guid>
		<description><![CDATA[Stumbled into this javascript code while looking at jQuery Lightbox Plugin (balupton edition) code which redirect me to http://www.savethedevelopers.org/ and yes, it&#8217;s time to move on. Support this campaign by attaching the snippets at the top of you page. Thanks.

// Avoid IE6, It's time to upgrade
if &#40; navigator.userAgent.indexOf&#40;'MSIE 6'&#41; &#62;= 0 &#41;
&#123; // Is IE6
 [...]]]></description>
			<content:encoded><![CDATA[<p>Stumbled into this javascript code while looking at <a href="http://plugins.jquery.com/project/jquerylightbox_bal">jQuery Lightbox Plugin (balupton edition)</a> code which redirect me to <a href="http://www.savethedevelopers.org/">http://www.savethedevelopers.org/</a> and yes, it&#8217;s time to move on. Support this campaign by attaching the snippets at the top of you page. Thanks.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript"><span style="color: #006600; font-style: italic;">// Avoid IE6, It's time to upgrade</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> navigator.<span style="color: #006600;">userAgent</span>.<span style="color: #006600;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'MSIE 6'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">0</span> <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// Is IE6</span>
  <span style="color: #006600; font-style: italic;">// Include Upgrade Message</span>
  <span style="color: #003366; font-weight: bold;">var</span> headEl <span style="color: #339933;">=</span> document.<span style="color: #006600;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'head'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #003366; font-weight: bold;">var</span> scriptEl <span style="color: #339933;">=</span> document.<span style="color: #006600;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'script'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  scriptEl.<span style="color: #006600;">type</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">;</span>
  scriptEl.<span style="color: #006600;">src</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'http://www.savethedevelopers.org/say.no.to.ie.6.js'</span><span style="color: #339933;">;</span>
  headEl.<span style="color: #006600;">appendChild</span><span style="color: #009900;">&#40;</span>scriptEl<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #006600; font-style: italic;">// Kill Lightbox</span>
  <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://charles.gambaris.com/2008/08/23/avoid-ie6-its-time-to-upgrade/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Method to determine whether a year is a leap year</title>
		<link>http://charles.gambaris.com/2008/08/14/method-to-determine-whether-a-year-is-a-leap-year/</link>
		<comments>http://charles.gambaris.com/2008/08/14/method-to-determine-whether-a-year-is-a-leap-year/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 14:45:59 +0000</pubDate>
		<dc:creator>sunsuron</dc:creator>
		
		<category><![CDATA[alert]]></category>

		<guid isPermaLink="false">http://charles.gambaris.com/?p=61</guid>
		<description><![CDATA[How to determine whether a year is a leap year

If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5.
If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4.
If the year is evenly divisible by 400, go to step 4. Otherwise, go [...]]]></description>
			<content:encoded><![CDATA[<p>How to determine whether a year is a leap year</p>
<ol>
<li>If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5.</li>
<li>If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4.</li>
<li>If the year is evenly divisible by 400, go to step 4. Otherwise, go to step 5.</li>
<li>The year is a leap year (it has 366 days).</li>
<li>The year is not a leap year (it has 365 days).</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> is_leap_year1<span style="color: #009900;">&#40;</span> <span style="color: #000033;">$year</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: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000033;">$year</span> <span style="color: #339933;">%</span> <span style="color: #cc66cc;">4</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> AND <span style="color: #009900;">&#40;</span><span style="color: #000033;">$year</span> <span style="color: #339933;">%</span> <span style="color: #cc66cc;">100</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> OR <span style="color: #009900;">&#40;</span><span style="color: #000033;">$year</span> <span style="color: #339933;">%</span> <span style="color: #cc66cc;">400</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// is leap year</span>
	<span style="color: #b1b100;">else</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// not a leap year</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> is_leap_year2<span style="color: #009900;">&#40;</span><span style="color: #000033;">$year</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: #000033;">$year</span> <span style="color: #339933;">%</span> <span style="color: #cc66cc;">400</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// is leap year</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000033;">$year</span> <span style="color: #339933;">%</span> <span style="color: #cc66cc;">100</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// not a leap year</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000033;">$year</span> <span style="color: #339933;">%</span> <span style="color: #cc66cc;">4</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// is leap year</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">else</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// not leap year</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000033;">$year</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #000033;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'year'</span><span style="color: #009900;">&#93;</span> ? <span style="color: #000033;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'year'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">2008</span><span style="color: #339933;">;</span>
<span style="color: #990000;">print</span> <span style="color: #0000ff;">'&lt;pre&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #990000;">var_dump</span><span style="color: #009900;">&#40;</span> <span style="color: #000033;">$year</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</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: #990000;">var_dump</span><span style="color: #009900;">&#40;</span> is_leap_year1<span style="color: #009900;">&#40;</span><span style="color: #000033;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</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: #990000;">var_dump</span><span style="color: #009900;">&#40;</span> is_leap_year2<span style="color: #009900;">&#40;</span><span style="color: #000033;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</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: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://charles.gambaris.com/2008/08/14/method-to-determine-whether-a-year-is-a-leap-year/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The folder size of /usr keep increasing</title>
		<link>http://charles.gambaris.com/2008/08/06/the-folder-size-of-usr-keep-increasing/</link>
		<comments>http://charles.gambaris.com/2008/08/06/the-folder-size-of-usr-keep-increasing/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 10:17:27 +0000</pubDate>
		<dc:creator>sunsuron</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://charles.gambaris.com/?p=56</guid>
		<description><![CDATA[As the topic stated, the folder /usr keep increasing and I don&#8217;t have enough skill to identify what is it or where exactly the problem source. It could be a log file but even du -ch &#60;dir&#62; I still unable to find it. Any idea?
So far this is the only suggestion that make sense:

&#91;root@webhosting /root&#93;# [...]]]></description>
			<content:encoded><![CDATA[<p>As the topic stated, the folder /usr keep increasing and I don&#8217;t have enough skill to identify what is it or where exactly the problem source. It could be a log file but even du -ch &lt;dir&gt; I still unable to find it. Any idea?</p>
<p>So far this is the only suggestion that make sense:</p>

<div class="wp_syntax"><div class="code"><pre class="bash"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>webhosting <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>webhosting <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># du -k --max-depth=1 /usr | sort -nr</span>
<span style="color: #000000;">4545976</span> <span style="color: #000000; font-weight: bold;">/</span>usr
<span style="color: #000000;">1591248</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #000000;">1326160</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share
<span style="color: #000000;">707120</span>  <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib
<span style="color: #000000;">452592</span>  <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>
<span style="color: #000000;">156864</span>  <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #000000;">100048</span>  <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include
<span style="color: #000000;">96468</span>   <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec
<span style="color: #000000;">81116</span>   <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>X11R6
<span style="color: #000000;">32820</span>   <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin
<span style="color: #000000;">1412</span>    <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>kerberos
<span style="color: #000000;">76</span>      <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">man</span>
<span style="color: #000000;">16</span>      <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lost+found
<span style="color: #000000;">16</span>      <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>etc
<span style="color: #000000;">8</span>       <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>games
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>webhosting <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>Credit to <a href="http://forum.lowyat.net/user/39916">Guai Guai Zai</a></p>
]]></content:encoded>
			<wfw:commentRss>http://charles.gambaris.com/2008/08/06/the-folder-size-of-usr-keep-increasing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>DocumentRoot must be a directory error</title>
		<link>http://charles.gambaris.com/2008/07/31/documentroot-must-be-a-directory-error/</link>
		<comments>http://charles.gambaris.com/2008/07/31/documentroot-must-be-a-directory-error/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 14:30:04 +0000</pubDate>
		<dc:creator>sunsuron</dc:creator>
		
		<category><![CDATA[alert]]></category>

		<guid isPermaLink="false">http://charles.gambaris.com/?p=41</guid>
		<description><![CDATA[The error:

&#91;root@hostname ~&#93;# service httpd restart
Stopping httpd:                                            &#91;  OK  &#93;
Starting [...]]]></description>
			<content:encoded><![CDATA[<p>The error:</p>

<div class="wp_syntax"><div class="code"><pre class="bash"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #c20cb9; font-weight: bold;">hostname</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd restart</span>
Stopping httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span>
Starting httpd: Syntax error on line <span style="color: #000000;">280</span> of <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf:
DocumentRoot must be a directory
                                                           <span style="color: #7a0874; font-weight: bold;">&#91;</span>FAILED<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #c20cb9; font-weight: bold;">hostname</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>I simply cannot restart httpd even the syntax is correct and the directory exist with the correct permissions. Disabling SELinux is the only temporary solution so far which is highly NOT recommended. :((</p>

<div class="wp_syntax"><div class="code"><pre class="bash"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #c20cb9; font-weight: bold;">hostname</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># system-config-securitylevel</span></pre></div></div>

<p><a href="http://charles.gambaris.com/wp-content/uploads/2008/07/selinux.png"><img src="http://charles.gambaris.com/wp-content/uploads/2008/07/selinux-300x231.png" alt="selinux via system-config-securitylevel" title="selinux via system-config-securitylevel" width="300" height="231" class="size-medium wp-image-42" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="bash"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #c20cb9; font-weight: bold;">hostname</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># service httpd start</span>
Starting httpd:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #c20cb9; font-weight: bold;">hostname</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://charles.gambaris.com/2008/07/31/documentroot-must-be-a-directory-error/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgraded to WP2.6</title>
		<link>http://charles.gambaris.com/2008/07/30/upgraded-to-wp26/</link>
		<comments>http://charles.gambaris.com/2008/07/30/upgraded-to-wp26/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 08:55:59 +0000</pubDate>
		<dc:creator>sunsuron</dc:creator>
		
		<category><![CDATA[gila]]></category>

		<category><![CDATA[minta puji]]></category>

		<category><![CDATA[politikus]]></category>

		<category><![CDATA[the bad]]></category>

		<guid isPermaLink="false">http://charles.gambaris.com/?p=38</guid>
		<description><![CDATA[Just finished upgrading&#8230;

&#91;gambaris@acacia charles&#93;# unzip -o wordpress.zip
  inflating: wp-trackback.php
...
...

]]></description>
			<content:encoded><![CDATA[<p>Just finished upgrading&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash"><span style="color: #7a0874; font-weight: bold;">&#91;</span>gambaris<span style="color: #000000; font-weight: bold;">@</span>acacia charles<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># unzip -o wordpress.zip</span>
  inflating: wp-trackback.php
...
...</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://charles.gambaris.com/2008/07/30/upgraded-to-wp26/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SQL resultset to CSV</title>
		<link>http://charles.gambaris.com/2008/07/11/sql-resultset-to-csv/</link>
		<comments>http://charles.gambaris.com/2008/07/11/sql-resultset-to-csv/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 01:40:37 +0000</pubDate>
		<dc:creator>sunsuron</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://charles.gambaris.com/?p=37</guid>
		<description><![CDATA[Question: I want to grab data from SQL database and show it in csv file.
Answer:

SELECT * INTO OUTFILE '/tmp/out.csv'  
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '&#34;' LINES TERMINATED BY '\n'
    FROM myTable;

More: MySQL manual
Credit: nyem at lowyat.net
]]></description>
			<content:encoded><![CDATA[<p><em>Question</em>: I want to grab data from SQL database and show it in csv file.</p>
<p><em>Answer</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">OUTFILE</span> <span style="color: #ff0000;">'/tmp/out.csv'</span>  
    <span style="color: #993333; font-weight: bold;">FIELDS</span> <span style="color: #993333; font-weight: bold;">TERMINATED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span> <span style="color: #993333; font-weight: bold;">LINES</span> <span style="color: #993333; font-weight: bold;">TERMINATED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
    <span style="color: #993333; font-weight: bold;">FROM</span> myTable;</pre></div></div>

<p>More: <a href="http://dev.mysql.com/doc/refman/5.0/en/select.html">MySQL manual</a><br />
Credit: <a href="http://forum.lowyat.net/user/nyem">nyem</a> at <a href="http://forum.lowyat.net/index.php?showtopic=739002&#038;view=findpost&#038;p=18500786">lowyat.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://charles.gambaris.com/2008/07/11/sql-resultset-to-csv/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Download Centos 5.2</title>
		<link>http://charles.gambaris.com/2008/07/09/download-centos-52/</link>
		<comments>http://charles.gambaris.com/2008/07/09/download-centos-52/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 07:36:52 +0000</pubDate>
		<dc:creator>sunsuron</dc:creator>
		
		<category><![CDATA[minta puji]]></category>

		<guid isPermaLink="false">http://charles.gambaris.com/?p=36</guid>
		<description><![CDATA[What&#8217;s up doc?

[charles@smallville /home/charles]# wget http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-1of6.iso
--14:58:00--  http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-1of6.iso
Resolving ftp.osuosl.org... 140.211.166.134
Connecting to ftp.osuosl.org&#124;140.211.166.134&#124;:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 654061568 (624M) [application/octet-stream]
Saving to: `CentOS-5.2-i386-bin-1of6.iso'
&#160;
100%[====================================================================================================================&#62;] 654,061,568 6.10M/s   in 1m 53s
&#160;
14:59:53 (5.54 MB/s) - `CentOS-5.2-i386-bin-1of6.iso' saved [654061568/654061568]
&#160;
[charles@smallville /home/charles]# wget http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-2of6.iso
--15:00:12--  http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-2of6.iso
Resolving ftp.osuosl.org... 140.211.166.134
Connecting to ftp.osuosl.org&#124;140.211.166.134&#124;:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 666683392 (636M) [...]]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s up doc?</p>

<div class="wp_syntax"><div class="code"><pre class="text">[charles@smallville /home/charles]# wget http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-1of6.iso
--14:58:00--  http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-1of6.iso
Resolving ftp.osuosl.org... 140.211.166.134
Connecting to ftp.osuosl.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 654061568 (624M) [application/octet-stream]
Saving to: `CentOS-5.2-i386-bin-1of6.iso'
&nbsp;
100%[====================================================================================================================&gt;] 654,061,568 6.10M/s   in 1m 53s
&nbsp;
14:59:53 (5.54 MB/s) - `CentOS-5.2-i386-bin-1of6.iso' saved [654061568/654061568]
&nbsp;
[charles@smallville /home/charles]# wget http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-2of6.iso
--15:00:12--  http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-2of6.iso
Resolving ftp.osuosl.org... 140.211.166.134
Connecting to ftp.osuosl.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 666683392 (636M) [application/octet-stream]
Saving to: `CentOS-5.2-i386-bin-2of6.iso'
&nbsp;
100%[====================================================================================================================&gt;] 666,683,392 5.80M/s   in 1m 57s
&nbsp;
15:02:10 (5.43 MB/s) - `CentOS-5.2-i386-bin-2of6.iso' saved [666683392/666683392]
&nbsp;
[charles@smallville /home/charles]# wget http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-3of6.iso
--15:02:27--  http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-3of6.iso
Resolving ftp.osuosl.org... 140.211.166.134
Connecting to ftp.osuosl.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 665231360 (634M) [application/octet-stream]
Saving to: `CentOS-5.2-i386-bin-3of6.iso'
&nbsp;
100%[====================================================================================================================&gt;] 665,231,360 5.90M/s   in 1m 53s
&nbsp;
15:04:21 (5.62 MB/s) - `CentOS-5.2-i386-bin-3of6.iso' saved [665231360/665231360]
&nbsp;
[charles@smallville /home/charles]# wget http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-4of6.iso
--15:04:50--  http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-4of6.iso
Resolving ftp.osuosl.org... 140.211.166.134
Connecting to ftp.osuosl.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 666519552 (636M) [application/octet-stream]
Saving to: `CentOS-5.2-i386-bin-4of6.iso'
&nbsp;
100%[====================================================================================================================&gt;] 666,519,552 5.74M/s   in 1m 54s
&nbsp;
15:06:45 (5.59 MB/s) - `CentOS-5.2-i386-bin-4of6.iso' saved [666519552/666519552]
&nbsp;
[charles@smallville /home/charles]# wget http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-5of6.iso
--15:07:20--  http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-5of6.iso
Resolving ftp.osuosl.org... 140.211.166.134
Connecting to ftp.osuosl.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 667863040 (637M) [application/octet-stream]
Saving to: `CentOS-5.2-i386-bin-5of6.iso'
&nbsp;
100%[====================================================================================================================&gt;] 667,863,040 6.00M/s   in 1m 56s
&nbsp;
15:09:16 (5.51 MB/s) - `CentOS-5.2-i386-bin-5of6.iso' saved [667863040/667863040]
&nbsp;
[charles@smallville /home/charles]# wget http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-6of6.iso
--15:09:37--  http://ftp.osuosl.org/pub/centos/5.2/isos/i386/CentOS-5.2-i386-bin-6of6.iso
Resolving ftp.osuosl.org... 140.211.166.134
Connecting to ftp.osuosl.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 683225088 (652M) [application/octet-stream]
Saving to: `CentOS-5.2-i386-bin-6of6.iso'
&nbsp;
100%[====================================================================================================================&gt;] 683,225,088 5.55M/s   in 2m 0s
&nbsp;
15:11:38 (5.44 MB/s) - `CentOS-5.2-i386-bin-6of6.iso' saved [683225088/683225088]
&nbsp;
[charles@smallville /home/charles]#</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://charles.gambaris.com/2008/07/09/download-centos-52/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Software Business 101</title>
		<link>http://charles.gambaris.com/2008/06/17/the-software-business-101/</link>
		<comments>http://charles.gambaris.com/2008/06/17/the-software-business-101/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 10:04:02 +0000</pubDate>
		<dc:creator>sunsuron</dc:creator>
		
		<category><![CDATA[Karma Police]]></category>

		<guid isPermaLink="false">http://charles.gambaris.com/?p=35</guid>
		<description><![CDATA[Creating something cool is easy but maintaining can be disastrous. The code works but real challenges are when several different system involved. There are 2 things that client will always request by default.

Get the cheapest deal
Complete it ASAP

This is what usually happens:

]]></description>
			<content:encoded><![CDATA[<p>Creating something cool is easy but maintaining can be disastrous. The code works but real challenges are when several different system involved. There are 2 things that client will always request by default.</p>
<ol>
<li>Get the cheapest deal</li>
<li>Complete it ASAP</li>
</ol>
<p>This is what usually happens:</p>
<p><img src="http://charles.gambaris.com/wp-content/uploads/damnright.gif" alt="Damn Right!" /></p>
]]></content:encoded>
			<wfw:commentRss>http://charles.gambaris.com/2008/06/17/the-software-business-101/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
