<?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>G3n1k's Blog</title>
	<atom:link href="http://g3n1k.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://g3n1k.wordpress.com</link>
	<description>Just for my notes - about anything</description>
	<lastBuildDate>Thu, 05 Jan 2012 13:28:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='g3n1k.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>G3n1k's Blog</title>
		<link>http://g3n1k.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://g3n1k.wordpress.com/osd.xml" title="G3n1k&#039;s Blog" />
	<atom:link rel='hub' href='http://g3n1k.wordpress.com/?pushpress=hub'/>
		<item>
		<title>extract substring &#8211; C</title>
		<link>http://g3n1k.wordpress.com/2011/12/16/extract-substring-c/</link>
		<comments>http://g3n1k.wordpress.com/2011/12/16/extract-substring-c/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 12:02:55 +0000</pubDate>
		<dc:creator>G3n1k</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://g3n1k.wordpress.com/?p=994</guid>
		<description><![CDATA[#include &#60;stdio.h&#62; char *substring(size_t start, size_t stop, const char *src, char *dst, size_t size) {    int count = stop - start;    if ( count &#62;= --size )    {       count = size;    }    sprintf(dst, "%.*s", count, src + start);    return dst; } int main() {    static const char [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=994&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>#include &lt;stdio.h&gt;

char *substring(size_t start, size_t stop, const char *src, char *dst, size_t size)
{
   int count = stop - start;
   if ( count &gt;= --size )
   {
      count = size;
   }
   sprintf(dst, "%.*s", count, src + start);
   return dst;
}

int main()
{
   static const char text[] = "The quick brown fox jumps over the lazy dog.";
   char a[10], b[5];
   printf("substring = \"%s\"\n", substring(4, 13, text, a, sizeof a));
   printf("substring = \"%s\"\n", substring(4, 13, text, b, sizeof b));
   return 0;
}

/* my output
substring = "quick bro"
substring = "quic"
*/</pre>
<p><a title="extract substring" href="http://www.linuxquestions.org/questions/programming-9/extract-substring-from-string-in-c-432620/" target="_blank">http://www.linuxquestions.org/questions/programming-9/extract-substring-from-string-in-c-432620/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/g3n1k.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/g3n1k.wordpress.com/994/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/g3n1k.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/g3n1k.wordpress.com/994/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/g3n1k.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/g3n1k.wordpress.com/994/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/g3n1k.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/g3n1k.wordpress.com/994/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/g3n1k.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/g3n1k.wordpress.com/994/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/g3n1k.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/g3n1k.wordpress.com/994/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/g3n1k.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/g3n1k.wordpress.com/994/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=994&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://g3n1k.wordpress.com/2011/12/16/extract-substring-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6abae3358bfa1b9ba2b012da63d93648?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">g3n1k</media:title>
		</media:content>
	</item>
		<item>
		<title>C input line argc and argv</title>
		<link>http://g3n1k.wordpress.com/2011/12/16/c-input-line-argc-and-argv/</link>
		<comments>http://g3n1k.wordpress.com/2011/12/16/c-input-line-argc-and-argv/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 10:10:41 +0000</pubDate>
		<dc:creator>G3n1k</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://g3n1k.wordpress.com/?p=992</guid>
		<description><![CDATA[Sometimes it is useful to pass information into a program when you run it. Generally, you pass information into the main( ) function via command line arguments. A command line argument is the information that follows the program&#8217;s name on the command line of the operating system. For example, when you compile a program, you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=992&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is useful to pass information into a program when you run it.</p>
<p>Generally, you pass information into the main( ) function via command line arguments.</p>
<p>A command line argument is the information that follows the program&#8217;s name on the command line of the operating system.</p>
<p>For example, when you compile a program, you might type something like the following after the command prompt:</p>
<p>at windows</p>
<p>&gt; <strong>program_name</strong></p>
<p>at linux</p>
<p><strong>./program_name</strong></p>
<p>where program_name is a command line argument that specifies the name of the program you wish to compile.</p>
<p>There are two special built-in arguments, argv and argc, that are used to receive command line arguments.</p>
<p>The <strong>argc parameter holds the number of arguments</strong> on the command line and is an integer. It is always at least 1 because the name of the program qualifies as the first argument.</p>
<p>The <strong>argv parameter is a pointer to an array of character pointers</strong>. Each element in this array points to a command line argument. All command line arguments are strings</p>
<p>any numbers will have to be converted by the program into the proper internal format.</p>
<pre>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
int main(int argc, char *argv[])
{
 if(argc!=2) {
  printf("You forgot to type your name.\n");
  exit(1);
 }
 printf("Hello %s\n", argv[1]);
 return 0;
}</pre>
<p>next code, write countdown</p>
<pre>/* Countdown program. */
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;ctype.h&gt;
#include &lt;string.h&gt;
int main(int argc, char *argv[])
{
    int disp, count;
    
    if(argc&lt;2) {
        printf("You must enter the length of the count\n");
        printf("on the command line. Try again.\n");
        exit(1);
    }
    
    if(argc==3 &amp;&amp; !strcmp(argv[2], "display")) disp = 1;
    else disp = 0;
    
    for(count=atoi(argv[1]); count; --count){
        if(disp) printf("%d\n", count);
        putchar('\a'); /* this will ring the bell */
    }
    printf("Done\n");
    return 0;
}
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/g3n1k.wordpress.com/992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/g3n1k.wordpress.com/992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/g3n1k.wordpress.com/992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/g3n1k.wordpress.com/992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/g3n1k.wordpress.com/992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/g3n1k.wordpress.com/992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/g3n1k.wordpress.com/992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/g3n1k.wordpress.com/992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/g3n1k.wordpress.com/992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/g3n1k.wordpress.com/992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/g3n1k.wordpress.com/992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/g3n1k.wordpress.com/992/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/g3n1k.wordpress.com/992/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/g3n1k.wordpress.com/992/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=992&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://g3n1k.wordpress.com/2011/12/16/c-input-line-argc-and-argv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6abae3358bfa1b9ba2b012da63d93648?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">g3n1k</media:title>
		</media:content>
	</item>
		<item>
		<title>POST and GET method WEB PHP</title>
		<link>http://g3n1k.wordpress.com/2011/11/02/post-and-get-method-web-php/</link>
		<comments>http://g3n1k.wordpress.com/2011/11/02/post-and-get-method-web-php/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 17:05:59 +0000</pubDate>
		<dc:creator>G3n1k</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://g3n1k.wordpress.com/?p=988</guid>
		<description><![CDATA[in website,  method to sending variable is divide two first GET, if you looking the url bar like http://somedomain.com/index.php?value=given value=given is the variable which sending with method get, we can read it trough second POST, you cannot see the value without some technique or tools PHP know all this method and divide they two with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=988&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://g3n1k.files.wordpress.com/2011/11/php-feat-150x150.jpg"><img class="size-full wp-image-989 alignleft" style="padding-right:1em;" title="php-feat-150x150" src="http://g3n1k.files.wordpress.com/2011/11/php-feat-150x150.jpg?w=535" alt=""   /></a>in website,  method to sending variable is divide two</p>
<p><strong>first</strong> GET, if you looking the url bar like http://somedomain.com/index.php?<strong>value=given</strong></p>
<p>value=given is the variable which sending with method get, we can read it trough</p>
<p><strong>second</strong> POST, you cannot see the value without some technique or tools</p>
<p>PHP know all this method and divide they two with method <strong>$_GET</strong> and<strong> $_POST</strong> to handle the value</p>
<p>notice this:</p>
<p>when you send value with method <strong>GET</strong> you must use<strong> $_GET</strong> method to get the value, and same with <strong>POST<br />
</strong></p>
<p>in some case, you have build some function with method <strong>GET </strong>or <strong>POST</strong> (but not both) to get value, and forward it to algorithm, if you work the method with structural programming, you design the function can use / work with other module or function or class, sometimes you need to switch method from GET to POST or otherwise</p>
<p>solution:</p>
<p>you build some method to doing two method getting variable,</p>
<p><strong>Algorithm</strong>: use first method, check it, if not set, use second method</p>
<pre>function notEmpty($str='id', $d){
    if(!isset($id)) $id = $_GET[$str];
    if(empty($id)) $id = $_POST[$str];    
    if(empty($id)){
        if(empty($d) &amp;&amp; !isset($d))
            die("empty value $str, stop the operation");
        else
            return $d;
    } else return $id;
}</pre>
<p>this is like open global variable, so you must carefully use this, just use if &#8216;URGENT&#8217;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/g3n1k.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/g3n1k.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/g3n1k.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/g3n1k.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/g3n1k.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/g3n1k.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/g3n1k.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/g3n1k.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/g3n1k.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/g3n1k.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/g3n1k.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/g3n1k.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/g3n1k.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/g3n1k.wordpress.com/988/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=988&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://g3n1k.wordpress.com/2011/11/02/post-and-get-method-web-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6abae3358bfa1b9ba2b012da63d93648?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">g3n1k</media:title>
		</media:content>

		<media:content url="http://g3n1k.files.wordpress.com/2011/11/php-feat-150x150.jpg" medium="image">
			<media:title type="html">php-feat-150x150</media:title>
		</media:content>
	</item>
		<item>
		<title>onclick event change url using jQuery</title>
		<link>http://g3n1k.wordpress.com/2011/10/11/onclick-event-change-url-using-jquery/</link>
		<comments>http://g3n1k.wordpress.com/2011/10/11/onclick-event-change-url-using-jquery/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 19:26:12 +0000</pubDate>
		<dc:creator>G3n1k</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://g3n1k.wordpress.com/?p=980</guid>
		<description><![CDATA[&#60;script type="text/javascript" src="jquery-1.6.4.min.js"&#62;&#60;/script&#62; &#60;script type='text/javascript'&#62;     $(document).ready(function() {         $("input:button").click(function() {             location.href = $("#urllist option:selected").val();         });     }); &#60;/script&#62; URL: &#60;select id='urllist'&#62;     &#60;option value='http://www.google.com'&#62;google&#60;/option&#62;     &#60;option value='http://localhost'&#62;localhost&#60;/option&#62;     &#60;option value='http://forum.jquery.com/topic/onclick-event-change-url-using-jquery' selected&#62;source&#60;/option&#62; &#60;/select&#62;     &#60;input type="button" value="Go" /&#62; &#60;/select&#62;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=980&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>&lt;script type="text/javascript" src="jquery-1.6.4.min.js"&gt;&lt;/script&gt;
&lt;script type='text/javascript'&gt;
    $(document).ready(function() {
        $("input:button").click(function() {
            location.href = $("#urllist option:selected").val();
        });
    }); 

&lt;/script&gt;

URL:
&lt;select id='urllist'&gt;
    &lt;option value='http://www.google.com'&gt;google&lt;/option&gt;
    &lt;option value='http://localhost'&gt;localhost&lt;/option&gt;
    &lt;option
      value='http://forum.jquery.com/topic/onclick-event-change-url-using-jquery'
      selected&gt;source&lt;/option&gt;
&lt;/select&gt;
    &lt;input type="button" value="Go" /&gt;
&lt;/select&gt;</pre>
<div id="attachment_981" class="wp-caption alignnone" style="width: 218px"><a href="http://g3n1k.files.wordpress.com/2011/10/onclick-event-change-url-using-jquery.png"><img class="size-full wp-image-981" title="onclick-event-change-url-using-jQuery" src="http://g3n1k.files.wordpress.com/2011/10/onclick-event-change-url-using-jquery.png?w=535" alt=""   /></a><p class="wp-caption-text">onclick event change url using jQuery</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/g3n1k.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/g3n1k.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/g3n1k.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/g3n1k.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/g3n1k.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/g3n1k.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/g3n1k.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/g3n1k.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/g3n1k.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/g3n1k.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/g3n1k.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/g3n1k.wordpress.com/980/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/g3n1k.wordpress.com/980/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/g3n1k.wordpress.com/980/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=980&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://g3n1k.wordpress.com/2011/10/11/onclick-event-change-url-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6abae3358bfa1b9ba2b012da63d93648?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">g3n1k</media:title>
		</media:content>

		<media:content url="http://g3n1k.files.wordpress.com/2011/10/onclick-event-change-url-using-jquery.png" medium="image">
			<media:title type="html">onclick-event-change-url-using-jQuery</media:title>
		</media:content>
	</item>
		<item>
		<title>Single Series FusionChart XML</title>
		<link>http://g3n1k.wordpress.com/2011/10/03/single-series-fusionchart-xml/</link>
		<comments>http://g3n1k.wordpress.com/2011/10/03/single-series-fusionchart-xml/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 06:02:22 +0000</pubDate>
		<dc:creator>G3n1k</dc:creator>
				<category><![CDATA[OOP]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://g3n1k.wordpress.com/?p=971</guid>
		<description><![CDATA[&#60;?php include_once('database.php'); include_once('mysqlimproved.php'); include_once('FusionCharts_Plugin.php'); $q = "select KdKat as kode, short as nama from g3n_kategori"; $db = new MysqlImproved_Driver; $db-&#62;connect(); $db-&#62;prepare($q); $db-&#62;query(); $ar = $db-&#62;datashet(); // constructor $fc = new FusionCharts('Pie3D', 400, 300, true); //setting path $fc-&#62;setSWFPath('./FC/'); // setting parameter $fc-&#62;setChartParams("caption=Factory Sales;subCaption=Year 2007;bgColor=ffccff"); // add chart data foreach($ar as $var=&#62;$val){     $fc-&#62;addChartData($val['kode'], "name=".$val['nama'].";color=ff0000;link=http://www.FusionCharts.com"); } //change [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=971&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre class="brush: php">&lt;?php
include_once('database.php');
include_once('mysqlimproved.php');
include_once('FusionCharts_Plugin.php');

$q = "select KdKat as kode, short as nama from g3n_kategori";
$db = new MysqlImproved_Driver;
$db-&gt;connect();
$db-&gt;prepare($q);
$db-&gt;query();
$ar = $db-&gt;datashet();

// constructor
$fc = new FusionCharts('Pie3D', 400, 300, true);
//setting path
$fc-&gt;setSWFPath('./FC/');
// setting parameter
$fc-&gt;setChartParams("caption=Factory Sales;subCaption=Year 2007;bgColor=ffccff");

// add chart data
foreach($ar as $var=&gt;$val){
    $fc-&gt;addChartData($val['kode'], "name=".$val['nama'].";color=ff0000;link=http://www.FusionCharts.com");
}

//change header
header('Content-type: text/xml');
// make it out
print $fc-&gt;getXML();

?&gt;
</pre>
<p><a href="http://g3n1k.files.wordpress.com/2011/10/single-series-fusionchart-xml.jpg"><img class="alignnone size-full wp-image-973" title="single-series-fusionchart-xml" src="http://g3n1k.files.wordpress.com/2011/10/single-series-fusionchart-xml.jpg?w=535" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/g3n1k.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/g3n1k.wordpress.com/971/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/g3n1k.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/g3n1k.wordpress.com/971/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/g3n1k.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/g3n1k.wordpress.com/971/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/g3n1k.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/g3n1k.wordpress.com/971/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/g3n1k.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/g3n1k.wordpress.com/971/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/g3n1k.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/g3n1k.wordpress.com/971/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/g3n1k.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/g3n1k.wordpress.com/971/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=971&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://g3n1k.wordpress.com/2011/10/03/single-series-fusionchart-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6abae3358bfa1b9ba2b012da63d93648?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">g3n1k</media:title>
		</media:content>

		<media:content url="http://g3n1k.files.wordpress.com/2011/10/single-series-fusionchart-xml.jpg" medium="image">
			<media:title type="html">single-series-fusionchart-xml</media:title>
		</media:content>
	</item>
		<item>
		<title>contoh script JSON (JQuery Framework) AJAX PHP</title>
		<link>http://g3n1k.wordpress.com/2011/09/19/contoh-script-json-jquery-framework-ajax-php/</link>
		<comments>http://g3n1k.wordpress.com/2011/09/19/contoh-script-json-jquery-framework-ajax-php/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 03:38:34 +0000</pubDate>
		<dc:creator>G3n1k</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://g3n1k.wordpress.com/?p=961</guid>
		<description><![CDATA[ada 3 file yg di perlukan - view.php - load.php - jquery.js view.php: sebagai html view / melakukan pemanggilan post ajax &#60;script type="text/javascript" src="jquery-1.6.4.min.js"&#62;&#60;/script&#62; &#60;script type='text/javascript'&#62;     $(document).ready(function(){         $('#id_propinsi').change(             function(){                 load_combobox_kabkota($(this).val());             });     });          function  load_combobox_kabkota(val){         $.post("./load.php", { [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=961&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ada 3 file yg di perlukan</p>
<p>- view.php<br />
- load.php<br />
- <a href="http://code.jquery.com" title="download jquery framework" target="_blank">jquery.js</a></p>
<hr />
<p>view.php: sebagai html view / melakukan pemanggilan post ajax</p>
<pre>&lt;script type="text/javascript" src="jquery-1.6.4.min.js"&gt;&lt;/script&gt;
&lt;script type='text/javascript'&gt;
    $(document).ready(function(){
        $('#id_propinsi').change(
            function(){
                load_combobox_kabkota($(this).val());
            });
    });
    
    function  load_combobox_kabkota(val){
        $.post("./load.php", { 'kode' : val },
            function(data){
                var strbody = '';
                for(var i in data){
                    var nomor = i; nomor++;
                     strbody += "&lt;option value='"+data[i].id+"'&gt;";
                     strbody += data[i].kota+"&lt;/option&gt;";
                }
                $('#id_kabkota').html(strbody);
            }, "json");
    }
&lt;/script&gt;

Provinsi:
&lt;select id='id_propinsi' name='div_propinsi'&gt;
    &lt;option value='31'&gt;DKI Jakarta&lt;/option&gt;
    &lt;option value='32'&gt;Jawa Barat&lt;/option&gt;
&lt;/select&gt;
&lt;br /&gt;
Kab/Kota :
&lt;select name='id_kabkota' id='id_kabkota'&gt;
&lt;/select&gt;
</pre>
<p>&nbsp;</p>
<hr />
<p>load.php: menerima nilai post, dan mengirim balik nilai array<br />
<code></code></p>
<pre>&lt;?php
$b = array
	(
		array('id'=&gt;311, 'kota'=&gt;'Jakarta Barat'),
		array('id'=&gt;312, 'kota'=&gt;'Jakarta Timur'),
		array('id'=&gt;313, 'kota'=&gt;'Jakarta Selatan'),
		array('id'=&gt;314, 'kota'=&gt;'Jakarta Utara'),
		array('id'=&gt;315, 'kota'=&gt;'Kep. Seribu')
	);

$b = array
	(
		array('id'=&gt;321, 'kota'=&gt;'Bogor'),
		array('id'=&gt;322, 'kota'=&gt;'Sukabumi'),
		array('id'=&gt;323, 'kota'=&gt;'Cianjur')
	);

$pilih = $_POST['kode'];

if($pilih == '31')
	echo json_encode($a);
else
	echo json_encode($b);
?&gt;
</pre>
<p>&nbsp;</p>
<p><a href="http://g3n1k.files.wordpress.com/2011/09/ajax-jquery-php.jpg"><img class="alignnone size-full wp-image-966" title="ajax-jquery-php" src="http://g3n1k.files.wordpress.com/2011/09/ajax-jquery-php.jpg?w=535" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/g3n1k.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/g3n1k.wordpress.com/961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/g3n1k.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/g3n1k.wordpress.com/961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/g3n1k.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/g3n1k.wordpress.com/961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/g3n1k.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/g3n1k.wordpress.com/961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/g3n1k.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/g3n1k.wordpress.com/961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/g3n1k.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/g3n1k.wordpress.com/961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/g3n1k.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/g3n1k.wordpress.com/961/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=961&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://g3n1k.wordpress.com/2011/09/19/contoh-script-json-jquery-framework-ajax-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6abae3358bfa1b9ba2b012da63d93648?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">g3n1k</media:title>
		</media:content>

		<media:content url="http://g3n1k.files.wordpress.com/2011/09/ajax-jquery-php.jpg" medium="image">
			<media:title type="html">ajax-jquery-php</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic Invocation PHP: is_callable, call_user_func, call_user_func_array</title>
		<link>http://g3n1k.wordpress.com/2011/09/19/dynamic-invocation-php-is_callable-call_user_func-call_user_func_array/</link>
		<comments>http://g3n1k.wordpress.com/2011/09/19/dynamic-invocation-php-is_callable-call_user_func-call_user_func_array/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 02:18:05 +0000</pubDate>
		<dc:creator>G3n1k</dc:creator>
				<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://g3n1k.wordpress.com/?p=958</guid>
		<description><![CDATA[melakukan pemanggilan dan pe-lambda-an / dynamic invocation kedalam fungsi kelas contoh penggunaan lambda dari fungsi: $lambda = rand(0,1) ? function() { echo "Heads!"; } : function() { echo "Tails!"; }; $lambda(); // &#60;= Dynamic Invocation! sementara untuk is_callable adalah sebuah methode untuk menentukan apakah sebuah fungsi dapat dipanggil/dideklarasikan atau tidak function heads() { echo "Heads [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=958&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>melakukan pemanggilan dan pe-lambda-an / dynamic invocation kedalam fungsi kelas</p>
<p>contoh penggunaan lambda dari fungsi:</p>
<p><code><br />
$lambda = rand(0,1) ? function() { echo "Heads!"; } :<br />
                      function() { echo "Tails!"; };<br />
$lambda(); // &lt;= Dynamic Invocation!<br />
</code></p>
<p>sementara untuk <strong>is_callable</strong> adalah sebuah methode untuk menentukan apakah sebuah fungsi dapat dipanggil/dideklarasikan atau tidak</p>
<p><code><br />
function heads() { echo "Heads function!"; }<br />
$function = 'heads';<br />
is_callable($function); // true</p>
<p>$lambda = function() { echo "Tails function!"; }<br />
is_callable($lambda); // true</p>
<p>$asalAja = "loramIpsumSitAmet";<br />
is_callable($asalAja); // false<br />
</code></p>
<p>sementara untuk fungsi didalam kelas kita tidak dapaat menggunakan is_callable</p>
<p><code><br />
class Objects {<br />
	function methods($who, $what) {<br />
		echo "$who are Great $what!";<br />
	}<br />
}</p>
<p>$callableArray = array(new Objects, 'methods');</p>
<p>if(is_callable($callableArray)) {<br />
    call_user_func($callableArray, "You", "Success");<br />
    call_user_func_array($callableArray, array("You", "Success"));<br />
}<br />
</code></p>
<p>perintah call_user_func dan call_user_func_array berhasil dijalankan</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/g3n1k.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/g3n1k.wordpress.com/958/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/g3n1k.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/g3n1k.wordpress.com/958/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/g3n1k.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/g3n1k.wordpress.com/958/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/g3n1k.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/g3n1k.wordpress.com/958/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/g3n1k.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/g3n1k.wordpress.com/958/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/g3n1k.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/g3n1k.wordpress.com/958/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/g3n1k.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/g3n1k.wordpress.com/958/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=958&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://g3n1k.wordpress.com/2011/09/19/dynamic-invocation-php-is_callable-call_user_func-call_user_func_array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6abae3358bfa1b9ba2b012da63d93648?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">g3n1k</media:title>
		</media:content>
	</item>
		<item>
		<title>membuat cd / dvd to iso ubuntu 10.10</title>
		<link>http://g3n1k.wordpress.com/2011/09/13/membuat-cd-dvd-to-iso-ubuntu-10-10/</link>
		<comments>http://g3n1k.wordpress.com/2011/09/13/membuat-cd-dvd-to-iso-ubuntu-10-10/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 04:15:06 +0000</pubDate>
		<dc:creator>G3n1k</dc:creator>
				<category><![CDATA[Tips n Trik]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://g3n1k.wordpress.com/?p=950</guid>
		<description><![CDATA[membuat file iso dari cd atau dvd dengan menggunakan ubuntu 1. masukan cd/dvd ke drive (cd/dvd) rom 2. buka system monitor untuk melihat drive cd/dvd (System -&#62; Administration -&#62; System Monitor) 3. lihat drive cd room 4. berikan perintah, cat /dev/sr0 &#62; nama.iso<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=950&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>membuat file iso dari cd atau dvd dengan menggunakan ubuntu</h2>
<p>1. masukan cd/dvd ke drive (cd/dvd) rom</p>
<p>2. buka system monitor untuk melihat drive cd/dvd (System -&gt; Administration -&gt; System Monitor)</p>
<p>3. lihat drive cd room</p>
<p><a href="http://g3n1k.files.wordpress.com/2011/09/system-monitor-ubuntu.jpg"><img class="alignnone size-full wp-image-951" title="system-monitor-ubuntu" src="http://g3n1k.files.wordpress.com/2011/09/system-monitor-ubuntu.jpg?w=535" alt=""   /></a></p>
<p>4. berikan perintah, <strong>cat /dev/sr0 &gt; nama.iso</strong></p>
<p><a href="http://g3n1k.files.wordpress.com/2011/09/command-cd-dvd-to-iso-ubuntu.jpg"><img class="alignnone size-full wp-image-952" title="command-cd-dvd-to-iso-ubuntu" src="http://g3n1k.files.wordpress.com/2011/09/command-cd-dvd-to-iso-ubuntu.jpg?w=535" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/g3n1k.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/g3n1k.wordpress.com/950/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/g3n1k.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/g3n1k.wordpress.com/950/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/g3n1k.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/g3n1k.wordpress.com/950/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/g3n1k.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/g3n1k.wordpress.com/950/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/g3n1k.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/g3n1k.wordpress.com/950/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/g3n1k.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/g3n1k.wordpress.com/950/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/g3n1k.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/g3n1k.wordpress.com/950/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=950&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://g3n1k.wordpress.com/2011/09/13/membuat-cd-dvd-to-iso-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6abae3358bfa1b9ba2b012da63d93648?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">g3n1k</media:title>
		</media:content>

		<media:content url="http://g3n1k.files.wordpress.com/2011/09/system-monitor-ubuntu.jpg" medium="image">
			<media:title type="html">system-monitor-ubuntu</media:title>
		</media:content>

		<media:content url="http://g3n1k.files.wordpress.com/2011/09/command-cd-dvd-to-iso-ubuntu.jpg" medium="image">
			<media:title type="html">command-cd-dvd-to-iso-ubuntu</media:title>
		</media:content>
	</item>
		<item>
		<title>Inheritance dan Interface OOP (PHP)</title>
		<link>http://g3n1k.wordpress.com/2011/09/06/inheritance-dan-interface-oop-php/</link>
		<comments>http://g3n1k.wordpress.com/2011/09/06/inheritance-dan-interface-oop-php/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 15:10:58 +0000</pubDate>
		<dc:creator>G3n1k</dc:creator>
				<category><![CDATA[OOP]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://g3n1k.wordpress.com/?p=946</guid>
		<description><![CDATA[Perbedaan Interface dan Inheritance (PHP programing) saat kita mendeklarasikan beberapa class anggaplah kelas propinsi, kotakabupaten, dan kecamatan setiap kelas yang kita sebutkan diatas memiliki beberapa fungsi yang harus dideklarasikan seperti fungsi input, update, delete tetapi mungkin saja class kotakabupaten memiliki fungsi lain yaitu fungsi view_kabupaten_propinsi maka si fungsi input, update, delete kita daftarkan dalam interface [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=946&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Perbedaan Interface dan Inheritance (PHP programing)<br />
saat kita mendeklarasikan beberapa class anggaplah kelas propinsi, kotakabupaten, dan kecamatan<br />
setiap kelas yang kita sebutkan diatas memiliki beberapa fungsi yang harus dideklarasikan<br />
seperti fungsi input, update, delete<br />
tetapi mungkin saja class kotakabupaten memiliki fungsi lain yaitu fungsi view_kabupaten_propinsi</p>
<p>maka si fungsi input, update, delete kita daftarkan dalam interface dan fungsi view_kabupaten_propinsi kita deklarasikan dalam class kotakabupaten</p>
<p>sementara setiap class yang ingin dibuat (propinsi, kotakabupaten, dan kecamatan) memiliki sebuah fungsi __construct yang sama untuk semua kelas ini maka kita dapat membuat menjadi seperti ini</p>
<pre># interface
class Regional {
    function input();
    function update();
    function delete();
}

# Inheritance
class Daerah {
    function __construct(){
        // ... code construct declare here
    }
}

# class using inheritance and interface
class Propinsi extends Daerah interface Regional {
    function input(){
        // declare code input for propinsi
    }
    function update(){
        // declare code update for propinsi
    }
    function delete(){
        // declare code delete for propinsi
    }
    
}

$p = new Propinsi();</pre>
<p>&nbsp;</p>
<p>class propinsi akan menggunakan fungsi __construct yang diturunkan dari class Daerah</p>
<p>sementara jika kelas kabupaten kota memiliki sebuah fungsi berbeda dari class yang lain yaitu view_kabupaten_propinsi kita dapat membuat nya menjadi</p>
<pre>class Kabkota extends Daerah interface Regional {
    function input(){
        // declare code input for kabkota
    }
    function update(){
        // declare code update for kabkota
    }
    function delete(){
        // declare code delete for kabkota
    }
    // khusus untuk class Kabkota
    function view_kabupaten_propinsi(){
        // declare here
    }
}
</pre>
<p>dengan cara seperti ini kita telah mengurangi pengulangan penulisan fungsi yang identik<br />
dan menjamin sebuah interface yang sama pada kelas2 yang dibuat</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/g3n1k.wordpress.com/946/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/g3n1k.wordpress.com/946/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/g3n1k.wordpress.com/946/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/g3n1k.wordpress.com/946/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/g3n1k.wordpress.com/946/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/g3n1k.wordpress.com/946/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/g3n1k.wordpress.com/946/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/g3n1k.wordpress.com/946/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/g3n1k.wordpress.com/946/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/g3n1k.wordpress.com/946/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/g3n1k.wordpress.com/946/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/g3n1k.wordpress.com/946/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/g3n1k.wordpress.com/946/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/g3n1k.wordpress.com/946/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=946&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://g3n1k.wordpress.com/2011/09/06/inheritance-dan-interface-oop-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6abae3358bfa1b9ba2b012da63d93648?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">g3n1k</media:title>
		</media:content>
	</item>
		<item>
		<title>Grammar Cheat: Simple Present &amp; Present Progressive</title>
		<link>http://g3n1k.wordpress.com/2011/08/23/grammar-cheat-simple-present-present-progressive/</link>
		<comments>http://g3n1k.wordpress.com/2011/08/23/grammar-cheat-simple-present-present-progressive/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 17:18:32 +0000</pubDate>
		<dc:creator>G3n1k</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://g3n1k.wordpress.com/?p=931</guid>
		<description><![CDATA[Simple Present and The Present Progressive THE SIMPLE PRESENT Ann takes a shower every day. I usually read the news paper in the morning Babies cry. Birds fly NEGATIVE It doesn&#8217;t snow in Jakarta QUESTION Does the teacher speak slowly ? The SIMPLE PRESENT expresses daily habit or usual activities, as in (1) and (2)The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=931&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<table class="tbl" style="width:100%;">
<tbody>
<tr>
<th>Simple Present and The Present Progressive</th>
</tr>
</tbody>
<tbody>
<tr>
<td style="border:1px solid #ccc;" width="100%">THE SIMPLE PRESENT<br />
<a href="http://g3n1k.files.wordpress.com/2011/08/simple-present.jpg"><img class="alignnone size-full wp-image-935" title="simple-present" src="http://g3n1k.files.wordpress.com/2011/08/simple-present.jpg?w=535" alt=""   /></a></td>
</tr>
<tr>
<td>
<ol>
<li>Ann <em><strong>takes</strong></em> a shower <em>every day</em>.</li>
<li>I <em>usually <strong>read</strong></em> the news paper in the morning</li>
<li>Babies <em><strong>cry</strong></em>. Birds <em><strong>fly</strong></em></li>
</ol>
<p><span style="text-decoration:underline;">NEGATIVE</span><em><strong></strong></em></p>
<ul>
<li>It <strong><em>doesn&#8217;t snow</em></strong> in Jakarta</li>
</ul>
<p><span style="text-decoration:underline;">QUESTION</span></p>
<ul>
<li><em><strong>Does</strong></em> the teacher <em><strong>speak</strong></em> slowly ?</li>
</ul>
</td>
</tr>
<tr>
<td>The SIMPLE PRESENT expresses <em>daily habit</em> or <em>usual activities</em>, as in (1) and (2)The simple present expresses <em>general statements of fact</em>, as in (3)<em></em>In sum, the simple present is used for event or situations that exist always, usually, or habitually in past, present and future<em><br />
</em></p>
<hr />
</td>
</tr>
<tr>
<td>THE PRESENT PROGRESSIVE<br />
<a href="http://g3n1k.files.wordpress.com/2011/08/simple-present.jpg"><img class="alignnone size-full wp-image-935" title="simple-present" src="http://g3n1k.files.wordpress.com/2011/08/present-progressive.jpg?w=535" alt=""   /></a></td>
</tr>
<tr>
<td>
<ol>
<li>Ann can&#8217;t come to the phone <em>right now</em> because she <strong><em>is taking </em></strong>a shower</li>
<li>I <strong><em>am reading</em></strong> my grammar book <em>right now</em></li>
<li>Jim and Susie are babies. They <strong><em>are crying</em></strong>. i can hear them <em>right now</em>. Maybe they are hungry.</li>
</ol>
<p><span style="text-decoration:underline;">NEGATIVE</span></p>
<ul>
<li>It <strong><em>isn&#8217;t snowing</em></strong> <em>right now</em>.</li>
</ul>
<p><span style="text-decoration:underline;">QUESTION</span></p>
<ul>
<li><em><strong>Is </strong></em>the teacher <em><strong>speaking</strong> right now </em>?</li>
</ul>
</td>
</tr>
<tr>
<td width="33%"> The PRESENT PROGRESSIVE expresses <em>an activity that is in progress (is occuring, is happening) right now.</em>The event is in progress at the time at speaker is saying the sentence.The event began in the past, is in progress now and will probably continue into the future.</p>
<p>FORM: <strong><em>am, is, are </em></strong>+ <strong><em>-ing</em></strong></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/g3n1k.wordpress.com/931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/g3n1k.wordpress.com/931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/g3n1k.wordpress.com/931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/g3n1k.wordpress.com/931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/g3n1k.wordpress.com/931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/g3n1k.wordpress.com/931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/g3n1k.wordpress.com/931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/g3n1k.wordpress.com/931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/g3n1k.wordpress.com/931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/g3n1k.wordpress.com/931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/g3n1k.wordpress.com/931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/g3n1k.wordpress.com/931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/g3n1k.wordpress.com/931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/g3n1k.wordpress.com/931/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=g3n1k.wordpress.com&amp;blog=6250111&amp;post=931&amp;subd=g3n1k&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://g3n1k.wordpress.com/2011/08/23/grammar-cheat-simple-present-present-progressive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6abae3358bfa1b9ba2b012da63d93648?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">g3n1k</media:title>
		</media:content>

		<media:content url="http://g3n1k.files.wordpress.com/2011/08/simple-present.jpg" medium="image">
			<media:title type="html">simple-present</media:title>
		</media:content>

		<media:content url="http://g3n1k.files.wordpress.com/2011/08/present-progressive.jpg" medium="image">
			<media:title type="html">simple-present</media:title>
		</media:content>
	</item>
	</channel>
</rss>
