<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>simply share</title>
	<atom:link href="http://arfan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://arfan.wordpress.com</link>
	<description>The best of man is the most useful to other people</description>
	<lastBuildDate>Fri, 08 Apr 2011 09:03:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='arfan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>simply share</title>
		<link>http://arfan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://arfan.wordpress.com/osd.xml" title="simply share" />
	<atom:link rel='hub' href='http://arfan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Tutorial+pembuktian+rumus+luas+lingkaran</title>
		<link>http://arfan.wordpress.com/2011/02/14/tutorialpembuktianrumusluaslingkaran/</link>
		<comments>http://arfan.wordpress.com/2011/02/14/tutorialpembuktianrumusluaslingkaran/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 08:48:43 +0000</pubDate>
		<dc:creator>arfan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://arfan.wordpress.com/2011/02/14/tutorialpembuktianrumusluaslingkaran/</guid>
		<description><![CDATA[video_player_embed_code_text<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arfan.wordpress.com&amp;blog=185001&amp;post=263&amp;subd=arfan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="visibility:hidden;width:0;height:0;" border="0" width="0" height="0" src="http://c.gigcount.com/wildfire/IMP/CXNID=2000002.0NXC/bHQ9MTI5NzY5ODQ4NjUwMCZwdD*xMjk3Njk4NTIzNDExJnA9NDAwODMxJmQ9Jm49d29yZHByZXNzJmc9MSZvPTc1YzNlNDI2ZGI3/ODQwZjNhMmU2N2ViNjYzZWRkNjQ4Jm9mPTA=.gif" />video_player_embed_code_text</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arfan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arfan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arfan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arfan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arfan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arfan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arfan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arfan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arfan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arfan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arfan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arfan.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arfan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arfan.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arfan.wordpress.com&amp;blog=185001&amp;post=263&amp;subd=arfan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arfan.wordpress.com/2011/02/14/tutorialpembuktianrumusluaslingkaran/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e1c9c5ceb2afe82db48d86b088bef2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arfan</media:title>
		</media:content>

		<media:content url="http://c.gigcount.com/wildfire/IMP/CXNID=2000002.0NXC/bHQ9MTI5NzY5ODQ4NjUwMCZwdD*xMjk3Njk4NTIzNDExJnA9NDAwODMxJmQ9Jm49d29yZHByZXNzJmc9MSZvPTc1YzNlNDI2ZGI3/ODQwZjNhMmU2N2ViNjYzZWRkNjQ4Jm9mPTA=.gif" medium="image" />
	</item>
		<item>
		<title>Running external command from java</title>
		<link>http://arfan.wordpress.com/2009/10/22/running-external-command-from-java/</link>
		<comments>http://arfan.wordpress.com/2009/10/22/running-external-command-from-java/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 08:34:05 +0000</pubDate>
		<dc:creator>arfan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://arfan.wordpress.com/?p=252</guid>
		<description><![CDATA[import java.io.*; public class ExternalCommand { public static void main(String args[]) throws Exception { String line; OutputStream stdin = null; InputStream stderr = null; InputStream stdout = null; // launch EXE and grab stdin/stdout and stderr Process process = Runtime.getRuntime ().exec (&#34;bc&#34;); stdin = process.getOutputStream (); stderr = process.getErrorStream (); stdout = process.getInputStream (); // [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arfan.wordpress.com&amp;blog=185001&amp;post=252&amp;subd=arfan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: java;">
import java.io.*;

public class ExternalCommand
{
public static void main(String args[]) throws Exception
{
String line;
OutputStream stdin = null;
InputStream stderr = null;
InputStream stdout = null;

// launch EXE and grab stdin/stdout and stderr
Process process = Runtime.getRuntime ().exec (&quot;bc&quot;);
stdin = process.getOutputStream ();
stderr = process.getErrorStream ();
stdout = process.getInputStream ();

// &quot;write&quot; the parms into stdin
line = &quot;13*3&quot; + &quot;\n&quot;;
stdin.write(line.getBytes() );
stdin.flush();

stdin.close();

// clean up if any output in stdout
BufferedReader brCleanUp =
new BufferedReader (new InputStreamReader (stdout));
while ((line = brCleanUp.readLine ()) != null) {
System.out.println (&quot;[Stdout] &quot; + line);
}
brCleanUp.close();

// clean up if any output in stderr
brCleanUp =
new BufferedReader (new InputStreamReader (stderr));
while ((line = brCleanUp.readLine ()) != null) {
System.out.println (&quot;[Stderr] &quot; + line);
}
brCleanUp.close();

}
}
</pre>
<p>ref: http://www.rgagnon.com/javadetails/java-0014.html</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arfan.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arfan.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arfan.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arfan.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arfan.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arfan.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arfan.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arfan.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arfan.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arfan.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arfan.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arfan.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arfan.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arfan.wordpress.com/252/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arfan.wordpress.com&amp;blog=185001&amp;post=252&amp;subd=arfan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arfan.wordpress.com/2009/10/22/running-external-command-from-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e1c9c5ceb2afe82db48d86b088bef2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arfan</media:title>
		</media:content>
	</item>
		<item>
		<title>easy tabular file access with sql like command</title>
		<link>http://arfan.wordpress.com/2009/10/19/245/</link>
		<comments>http://arfan.wordpress.com/2009/10/19/245/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 02:25:24 +0000</pubDate>
		<dc:creator>arfan</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://arfan.wordpress.com/?p=245</guid>
		<description><![CDATA[&#60;? ///////////////////////////////////////////////////// // Abdul Arfan 2007 Dec // db file // akses file jadi mirip database //////////////////////////////////////////////////// //insert(array(&#34;arfan&#34;, &#34;1204556658&#34;, &#34;Abdul Arfan&#34;)); delete(array(0=&#62;&#34;arfan&#34;)); display_all(); /////////////////////////// // untuk menginsert data // /////////////////////////// function insert( $array ) { $handle = fopen ( &#34;./db.txt&#34;, &#34;a&#34; ); $first =true; write_array($handle, $array); } /////////////////////////// // untuk searching data // /////////////////////////// function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arfan.wordpress.com&amp;blog=185001&amp;post=245&amp;subd=arfan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: java;">
&lt;?
    /////////////////////////////////////////////////////
    //    Abdul Arfan 2007 Dec
    //    db file
    //    akses file jadi mirip database
    ////////////////////////////////////////////////////

    //insert(array(&quot;arfan&quot;, &quot;1204556658&quot;, &quot;Abdul Arfan&quot;));
    delete(array(0=&gt;&quot;arfan&quot;));
    display_all();

    ///////////////////////////
    // untuk menginsert data //
    ///////////////////////////
    function insert( $array )
    {
        $handle = fopen ( &quot;./db.txt&quot;, &quot;a&quot; );

        $first =true;
        write_array($handle, $array);
    }

    ///////////////////////////
    // untuk searching data  //
    ///////////////////////////
    function select( $array_constrain )
    {
        $result = null;
        $counter=0;

        $handle = fopen ( &quot;./db.txt&quot;, &quot;r&quot; );

        while($line = fgets($handle))
        {
            $array = split(&quot;,&quot;, $line);
            $masuk = true;

            if($array_constrain)
            {
                foreach ($array_constrain as $key =&gt; $value)
                {
                    if($array[$key]!=$value)
                    {
                        $masuk = false;
                    }
                }
            }

            if($masuk)
            {
                $result[$counter]=$array;
                $counter++;
            }
        }
        return $result;
    }

    function delete( $array_constrain )
    {
        $result = null;
        $counter=0;

        $handle = fopen ( &quot;./db.txt&quot;, &quot;r&quot; );
        $handle2 = fopen ( &quot;./db-temporary.txt&quot;, &quot;w&quot; );

        while($line = fgets($handle))
        {
            $array = split(&quot;,&quot;, $line);
            $cocok = true;

            if($array_constrain)
            {
                foreach ($array_constrain as $key =&gt; $value)
                {
                    if($array[$key]!=$value)
                    {
                        $cocok = false;
                    }
                }
            }

            if(!$cocok)
            {
                write_array($handle2, $array);
            }
        }

        fclose ($handle );
        fclose ($handle2 );

        //hapus db.txt
        $myFile = &quot;db.txt&quot;;
        unlink($myFile);

        rename  ( &quot;db-temporary.txt&quot;, &quot;db.txt&quot; );
        return $result;
    }

    function update( $array_constrain , $array_update)
    {
        $result = null;
        $counter=0;

        $handle = fopen ( &quot;./db.txt&quot;, &quot;r&quot; );
        $handle2 = fopen ( &quot;./db-temporary.txt&quot;, &quot;w&quot; );

        while($line = fgets($handle))
        {
            $array = split(&quot;,&quot;, $line);
            $cocok = true;

            if($array_constrain)
            {
                foreach ($array_constrain as $key =&gt; $value)
                {
                    if($array[$key]!=$value)
                    {
                        $cocok = false;
                    }
                }
            }

            if($cocok)
            {
                foreach ($array_update as $key =&gt; $value)
                {
                    $array[$key] = $array_update[$key];
                }
            }
            write_array($handle2, $array);
        }

        fclose ($handle );
        fclose ($handle2 );

        //hapus db.txt
        $myFile = &quot;db.txt&quot;;
        unlink($myFile);

        rename  ( &quot;db-temporary.txt&quot;, &quot;db.txt&quot; );
        return $result;
    }

    /**
      fungsi-fungsi tambahan
    */
    function write_array($handle, $array)
    {
        $first =true;
        foreach($array as $el)
        {
            if($first)
            {
                $total = trim($el);
                $first=false;
            }
            else
            {
                $total = $total.&quot;, &quot;.trim($el) ;
            }
        }
        fwrite($handle, $total.&quot;\n&quot;);
    }

    /**
    * return dari ini adalah satu baris saja
    * jadi bukan bentuk tabel
    */

    function select_one( $array_constrain )
    {
        $handle = fopen ( &quot;./db.txt&quot;, &quot;r&quot; );
        while($line = fgets($handle))
        {
            $array = split(&quot;,&quot;, $line);
            foreach ($array_constrain as $key =&gt; $value)
            {
                if($array[$key]==$value)
                    return $array;
            }
        }

        return null;

        fclose ($handle );
    }

    function display_all()
    {
        $result = select(null);

        echo &quot;&lt;table border=\&quot;1\&quot;&gt;&quot;;
        foreach($result as $row)
        {
            echo &quot;&lt;tr&gt;&quot;;
            foreach($row as $element)
            {
                echo &quot;&lt;td&gt;$element&lt;/td&gt;&quot;;
            }
            echo &quot;&lt;/tr&gt;&quot;;
        }
        echo &quot;&lt;/table&gt;&quot;;
    }

?&gt;
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arfan.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arfan.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arfan.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arfan.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arfan.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arfan.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arfan.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arfan.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arfan.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arfan.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arfan.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arfan.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arfan.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arfan.wordpress.com/245/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arfan.wordpress.com&amp;blog=185001&amp;post=245&amp;subd=arfan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arfan.wordpress.com/2009/10/19/245/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e1c9c5ceb2afe82db48d86b088bef2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arfan</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple Java Input and Output</title>
		<link>http://arfan.wordpress.com/2009/10/12/java-simple-io/</link>
		<comments>http://arfan.wordpress.com/2009/10/12/java-simple-io/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 03:04:16 +0000</pubDate>
		<dc:creator>arfan</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://arfan.wordpress.com/2009/10/12/start-a-new-life/</guid>
		<description><![CDATA[import java.io.*; public class SimpleIO { public static void main(String args[]) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); System.out.print(&#34;what is your name? &#34;); String name = reader.readLine(); System.out.println(&#34;hello &#34;+name+&#34;, have a nice day&#34;); } catch(Exception e) { System.out.println(&#34;Exception occured&#34;); e.printStackTrace(); } } }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arfan.wordpress.com&amp;blog=185001&amp;post=234&amp;subd=arfan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: java;">
import java.io.*;

public class SimpleIO
{
 public static void main(String args[])
 {
 try
 {
 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
 System.out.print(&quot;what is your name? &quot;);
 String name = reader.readLine();
 System.out.println(&quot;hello &quot;+name+&quot;, have a nice day&quot;);
 }
 catch(Exception e)
 {
 System.out.println(&quot;Exception occured&quot;);
 e.printStackTrace();
 }
 }
}
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arfan.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arfan.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arfan.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arfan.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arfan.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arfan.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arfan.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arfan.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arfan.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arfan.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arfan.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arfan.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arfan.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arfan.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arfan.wordpress.com&amp;blog=185001&amp;post=234&amp;subd=arfan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arfan.wordpress.com/2009/10/12/java-simple-io/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e1c9c5ceb2afe82db48d86b088bef2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">arfan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
