<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Leoganda.net</title>
	<atom:link href="http://www.leoganda.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leoganda.net</link>
	<description></description>
	<lastBuildDate>Wed, 11 Apr 2012 20:39:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to disable wordpress toolbar for all users</title>
		<link>http://www.leoganda.net/how-to-disable-wordpress-toolbar-for-all-users/</link>
		<comments>http://www.leoganda.net/how-to-disable-wordpress-toolbar-for-all-users/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 18:26:08 +0000</pubDate>
		<dc:creator>leoganda</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Toolbar]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.leoganda.net/?p=166</guid>
		<description><![CDATA[New wordpress engine has a feature called toolbar and its shown in the top of our blog page. What ridiculous is there&#8217;s no built-in function to disable this toolbar for being shown to all our users, which mean the users have to manually disable it in their profile page. Fortunately we can use this snippet [...]]]></description>
			<content:encoded><![CDATA[<p>New wordpress engine has a feature called toolbar and its shown in the top of our blog page. What ridiculous is there&#8217;s no built-in function to disable this toolbar for being shown to all our users, which mean the users have to manually disable it in their profile page. Fortunately we can use this snippet to disable this toolbar.</p>
<p>Add this snippet to your theme functions.php file</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> my_function_admin_bar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'show_admin_bar'</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_function_admin_bar'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h4>What people search:</h4><ul><li><a href="http://www.leoganda.net/how-to-disable-wordpress-toolbar-for-all-users/" title="disable leave reply wordpress">disable leave reply wordpress</a></li><li><a href="http://www.leoganda.net/how-to-disable-wordpress-toolbar-for-all-users/" title="disable toolbar wordpress for all user">disable toolbar wordpress for all user</a></li><li><a href="http://www.leoganda.net/how-to-disable-wordpress-toolbar-for-all-users/" title="wordpress disable toolbar for all users">wordpress disable toolbar for all users</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.leoganda.net/how-to-disable-wordpress-toolbar-for-all-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to post JSON data from Android to PHP Codeigniter</title>
		<link>http://www.leoganda.net/how-to-post-json-data-from-android-to-php-codeigniter/</link>
		<comments>http://www.leoganda.net/how-to-post-json-data-from-android-to-php-codeigniter/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 10:01:21 +0000</pubDate>
		<dc:creator>leoganda</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.leoganda.net/?p=160</guid>
		<description><![CDATA[JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. This article explains how to client-server web service communication using Android and PHP, we will use JSON as the data. We will build a simple calculator web service that [...]]]></description>
			<content:encoded><![CDATA[<p>JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. This article explains how to client-server web service communication using Android and PHP, we will use JSON as the data.</p>
<p>We will build a simple calculator web service that has features such as add and multiply.</p>
<p><code>apikey</code> represent key to access the webservice, the server will reject the request if the key is invalid, in this article we use &#8220;mykey123&#8243;<br />
<code>command</code> represent what command request we want to use, in this article we use &#8220;add&#8221; or &#8220;multiply&#8221;<br />
<code>a and b</code> represent input value we want to calculate<span id="more-160"></span></p>
<h3>Java Code :</h3>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">HttpClient httpclient <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DefaultHttpClient<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
HttpPost httppost <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> HttpPost<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://localhost/client/index.php/android&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">// Add your data</span>
&nbsp;
        	JSONObject json<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> JSONObject<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        	json.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;apikey&quot;</span>,<span style="color: #0000ff;">&quot;mykey123&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        	json.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;command&quot;</span>,<span style="color: #0000ff;">&quot;add&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        	json.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;a&quot;</span>,<span style="color: #0000ff;">&quot;10&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        	json.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;b&quot;</span>,<span style="color: #0000ff;">&quot;20&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        	Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JSON&quot;</span>,json.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003399;">List</span> nameValuePairs <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">ArrayList</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            nameValuePairs.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> BasicNameValuePair<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;json&quot;</span>, json.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            httppost.<span style="color: #006633;">setEntity</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> UrlEncodedFormEntity<span style="color: #009900;">&#40;</span>nameValuePairs<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">// Execute HTTP Post Request</span>
            HttpResponse response <span style="color: #339933;">=</span> httpclient.<span style="color: #006633;">execute</span><span style="color: #009900;">&#40;</span>httppost<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003399;">String</span> responseBody <span style="color: #339933;">=</span> EntityUtils.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span>response.<span style="color: #006633;">getEntity</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JSON&quot;</span>,<span style="color: #0000ff;">&quot;RESPONSE : &quot;</span> <span style="color: #339933;">+</span> responseBody<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>ClientProtocolException e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        	Log.<span style="color: #006633;">e</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JSON&quot;</span>,e.<span style="color: #006633;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</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;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        	Log.<span style="color: #006633;">e</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JSON&quot;</span>,e.<span style="color: #006633;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</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;">catch</span> <span style="color: #009900;">&#40;</span>JSONException e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                Log.<span style="color: #006633;">e</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JSON&quot;</span>,e.<span style="color: #006633;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></div></div>

<h3>CodeIgniter Code of Android.php Controller</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&nbsp;
<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: #339933;">!</span> <span style="color: #990000;">defined</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'BASEPATH'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No direct script access allowed'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> Android <span style="color: #000000; font-weight: bold;">extends</span> CI_Controller <span style="color: #009900;">&#123;</span>
&nbsp;
&nbsp;
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$command</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$data</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$a</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$b</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$apikey</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000088;">$response</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> index<span style="color: #009900;">&#40;</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: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">input</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #990000;">die</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #000088;">$raw</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">input</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">json_decode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$raw</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'json'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">apikey</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">apikey</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">command</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">command</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">a</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">a</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">b</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">b</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">apikey</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;mykey123&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
				<span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">command</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
					<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;add&quot;</span><span style="color: #339933;">:</span>	
							<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">response</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">a</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">b</span><span style="color: #339933;">;</span>
					<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
                                        <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;multiply&quot;</span><span style="color: #339933;">:</span>	
							<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">response</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">a</span> <span style="color: #339933;">*</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">b</span><span style="color: #339933;">;</span>
					<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>			
				<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//end switch</span>
&nbsp;
				<span style="color: #000088;">$arr</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;command&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">command</span><span style="color: #339933;">,</span>
						<span style="color: #0000ff;">&quot;response&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">response</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #b1b100;">echo</span> <span style="color: #990000;">json_encode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//end if</span>
			<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;invalid request dear&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//end of index function</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #666666; font-style: italic;">//end of class Android</span></pre></div></div>

<p>The code above will send response formated JSON data as <code>{"command":"add","response":"30"}</code></p>
<h4>What people search:</h4><ul><li><a href="http://www.leoganda.net/how-to-post-json-data-from-android-to-php-codeigniter/" title="codeigniter android client">codeigniter android client</a></li><li><a href="http://www.leoganda.net/how-to-post-json-data-from-android-to-php-codeigniter/" title="android php json">android php json</a></li><li><a href="http://www.leoganda.net/how-to-post-json-data-from-android-to-php-codeigniter/" title="json commands in android">json commands in android</a></li><li><a href="http://www.leoganda.net/how-to-post-json-data-from-android-to-php-codeigniter/" title="codeigniter json post">codeigniter json post</a></li><li><a href="http://www.leoganda.net/how-to-post-json-data-from-android-to-php-codeigniter/" title="android post json">android post json</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.leoganda.net/how-to-post-json-data-from-android-to-php-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable PHP display_error on MAMP 2.0.5</title>
		<link>http://www.leoganda.net/enable-php-display_error-on-mamp-2-0-5/</link>
		<comments>http://www.leoganda.net/enable-php-display_error-on-mamp-2-0-5/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 04:21:40 +0000</pubDate>
		<dc:creator>leoganda</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.leoganda.net/?p=158</guid>
		<description><![CDATA[By default display_error on MAMP 2.0.5 is off, in my opinion it would be useful for me to turn it on for development phase of my application. This is how to enable display_error Find MAMP directory under Application Directory Go to MAMP\bin\php\ Open PHP folder that you are using Then open \bin\conf\php.ini under your PHP [...]]]></description>
			<content:encoded><![CDATA[<p>By default display_error on MAMP 2.0.5 is off, in my opinion it would be useful for me to turn it on for development phase of my application. This is how to enable display_error</p>
<ol>
<li>Find MAMP directory under Application Directory</li>
<li>Go to MAMP\bin\php\</li>
<li>Open PHP folder that you are using</li>
<li>Then open \bin\conf\php.ini under your PHP folder</li>
<li>Find <code>error_reporting</code> line, and make sure as &#8220;<code>error_reporting = E_ALL</code>&#8220;</li>
<li>Find <code>display_errors = Off</code>, and change it to <code>display_errors = On</code></li>
<li>Save then restart your MAMP</li>
<li>Done</li>
</ol>
<h4>What people search:</h4><ul><li><a href="http://www.leoganda.net/enable-php-display_error-on-mamp-2-0-5/" title="mamp turn on error 2 0 5">mamp turn on error 2 0 5</a></li><li><a href="http://www.leoganda.net/enable-php-display_error-on-mamp-2-0-5/" title="mamp display_errors off">mamp display_errors off</a></li><li><a href="http://www.leoganda.net/enable-php-display_error-on-mamp-2-0-5/" title="cpanel fatal error: uncaught exception \zend_gdata_app_httpexception\">cpanel fatal error: uncaught exception \zend_gdata_app_httpexception\</a></li><li><a href="http://www.leoganda.net/enable-php-display_error-on-mamp-2-0-5/" title="mamp 2 05 support json">mamp 2 05 support json</a></li><li><a href="http://www.leoganda.net/enable-php-display_error-on-mamp-2-0-5/" title="mamp 2 0 5 php ini file">mamp 2 0 5 php ini file</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.leoganda.net/enable-php-display_error-on-mamp-2-0-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run web.py as a service in linux</title>
		<link>http://www.leoganda.net/run-web-py-as-a-service-in-linux/</link>
		<comments>http://www.leoganda.net/run-web-py-as-a-service-in-linux/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 04:08:58 +0000</pubDate>
		<dc:creator>leoganda</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.leoganda.net/?p=156</guid>
		<description><![CDATA[web.py is a web framework for Python that is as simple as it is powerful. web.py is in the public domain; you can use it for whatever purpose with absolutely no restrictions. I was building a simple application with this library and need this run as a background service. python /opt/server.py 8080 2&#62;/dev/null &#38; What [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://webpy.org/">web.py</a> is a web framework for Python that is as simple as it is powerful. web.py is in the public domain; you can use it for whatever purpose with absolutely no restrictions.</p>
<p>I was building a simple application with this library and need this run as a background service.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>server.py <span style="color: #000000;">8080</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&amp;</span></pre></div></div>

<h4>What people search:</h4><ul><li><a href="http://www.leoganda.net/run-web-py-as-a-service-in-linux/" title="parado\x24 tutoriale">parado\x24 tutoriale</a></li><li><a href="http://www.leoganda.net/run-web-py-as-a-service-in-linux/" title="run web py server as daemon">run web py server as daemon</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.leoganda.net/run-web-py-as-a-service-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X Terminal Color</title>
		<link>http://www.leoganda.net/mac-os-x-terminal-color/</link>
		<comments>http://www.leoganda.net/mac-os-x-terminal-color/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 17:44:38 +0000</pubDate>
		<dc:creator>leoganda</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.leoganda.net/?p=152</guid>
		<description><![CDATA[I was using linux ubuntu for my work now I&#8217;m using Mac OS X 10.7.3, I was surprised when I did ls command, the ls result returned had the same color for files and folders. Fortunately there is a trick to set ls command with colors. Create or edit this file ~/.bash_profile Then insert this [...]]]></description>
			<content:encoded><![CDATA[<p>I was using linux ubuntu for my work now I&#8217;m using Mac OS X 10.7.3, I was surprised when I did ls command, the ls result returned had the same color for files and folders. Fortunately there is a trick to set ls command with colors.</p>
<p>Create or edit this file</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">~<span style="color: #000000; font-weight: bold;">/</span>.bash_profile</pre></div></div>

<p>Then insert this inside it</p>

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

<p>Save it, now open your new terminal instance. </p>
<h4>What people search:</h4><ul><li><a href="http://www.leoganda.net/mac-os-x-terminal-color/" title="mac os terminal colors">mac os terminal colors</a></li><li><a href="http://www.leoganda.net/mac-os-x-terminal-color/" title="mac os x 10 7 colors from ubuntu terminal">mac os x 10 7 colors from ubuntu terminal</a></li><li><a href="http://www.leoganda.net/mac-os-x-terminal-color/" title="mac os x terminal colors">mac os x terminal colors</a></li><li><a href="http://www.leoganda.net/mac-os-x-terminal-color/" title="mac terminal colors">mac terminal colors</a></li><li><a href="http://www.leoganda.net/mac-os-x-terminal-color/" title="macosx 10 7 terminal colours">macosx 10 7 terminal colours</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.leoganda.net/mac-os-x-terminal-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Date Timezone error ( date_default_timezone_set )</title>
		<link>http://www.leoganda.net/php_date_timezone_error_date_default_timezone_set/</link>
		<comments>http://www.leoganda.net/php_date_timezone_error_date_default_timezone_set/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 04:11:47 +0000</pubDate>
		<dc:creator>leoganda</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.leoganda.net/?p=147</guid>
		<description><![CDATA[I was experiencing an error regarding date() function on PHP 5 with error message like this : Message: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting [...]]]></description>
			<content:encoded><![CDATA[<p>I was experiencing an error regarding <code>date() </code>function on PHP 5 with error message like this :<br />
<code>Message:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Jakarta' for 'WIT/7.0/no DST' instead</code></p>
<p>For quick fix in PHP5, add this line</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">date_default_timezone_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Asia/Jakarta&quot;</span><span style="color: #009900;">&#41;</span></pre></div></div>

<h4>What people search:</h4><ul><li><a href="http://www.leoganda.net/php_date_timezone_error_date_default_timezone_set/" title="date_default_timezone_set()">date_default_timezone_set()</a></li><li><a href="http://www.leoganda.net/php_date_timezone_error_date_default_timezone_set/" title="page not found prado in xampp linux">page not found prado in xampp linux</a></li><li><a href="http://www.leoganda.net/php_date_timezone_error_date_default_timezone_set/" title="(Unable to find the socket transport http">(Unable to find the socket transport http</a></li><li><a href="http://www.leoganda.net/php_date_timezone_error_date_default_timezone_set/" title="(unable to find the socket transport http in php">(unable to find the socket transport http in php</a></li><li><a href="http://www.leoganda.net/php_date_timezone_error_date_default_timezone_set/" title="date_default_timezone_set linux">date_default_timezone_set linux</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.leoganda.net/php_date_timezone_error_date_default_timezone_set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[HD] Only Exception by Paramore &#8211; Live Concert at Jakarta August 19th 2011</title>
		<link>http://www.leoganda.net/only-exception-by-paramore-live-concert-at-jakarta-august-19th-2011/</link>
		<comments>http://www.leoganda.net/only-exception-by-paramore-live-concert-at-jakarta-august-19th-2011/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 18:32:40 +0000</pubDate>
		<dc:creator>leoganda</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://www.leoganda.net/?p=142</guid>
		<description><![CDATA[Paramore was doing great performance in here, love them so much! What people search:paramore HDhd concert paramoreparamore concert hdparamore live en hd]]></description>
			<content:encoded><![CDATA[<p>Paramore was doing great performance in here, love them so much!</p>
<p><object width="400" height="266" ><param name="allowfullscreen" value="true" /><param name="movie" value="http://www.facebook.com/v/2361962487665" /><embed src="http://www.facebook.com/v/2361962487665" type="application/x-shockwave-flash" allowfullscreen="true" width="400" height="266"></embed></object></p>
<h4>What people search:</h4><ul><li><a href="http://www.leoganda.net/only-exception-by-paramore-live-concert-at-jakarta-august-19th-2011/" title="paramore HD">paramore HD</a></li><li><a href="http://www.leoganda.net/only-exception-by-paramore-live-concert-at-jakarta-august-19th-2011/" title="hd concert paramore">hd concert paramore</a></li><li><a href="http://www.leoganda.net/only-exception-by-paramore-live-concert-at-jakarta-august-19th-2011/" title="paramore concert hd">paramore concert hd</a></li><li><a href="http://www.leoganda.net/only-exception-by-paramore-live-concert-at-jakarta-august-19th-2011/" title="paramore live en hd">paramore live en hd</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.leoganda.net/only-exception-by-paramore-live-concert-at-jakarta-august-19th-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>O.A.R Heaven</title>
		<link>http://www.leoganda.net/o-a-r-heaven/</link>
		<comments>http://www.leoganda.net/o-a-r-heaven/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 17:49:41 +0000</pubDate>
		<dc:creator>leoganda</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://www.leoganda.net/?p=135</guid>
		<description><![CDATA[Recently I play this video repeatly, it&#8217;s Heaven by O.A.R Love it very much, they send peace through this video. Check this out..]]></description>
			<content:encoded><![CDATA[<p>Recently I play this video repeatly, it&#8217;s Heaven by O.A.R<br />
Love it very much, they send peace through this video. Check this out..</p>
<p><iframe width="425" height="349" src="http://www.youtube.com/embed/W-yValw_UbE" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leoganda.net/o-a-r-heaven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tidung Island Indonesia</title>
		<link>http://www.leoganda.net/tidung-island-indonesia/</link>
		<comments>http://www.leoganda.net/tidung-island-indonesia/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 10:30:41 +0000</pubDate>
		<dc:creator>leoganda</dc:creator>
				<category><![CDATA[Traveling]]></category>
		<category><![CDATA[Beach]]></category>
		<category><![CDATA[Indonesia]]></category>
		<category><![CDATA[Tidung]]></category>

		<guid isPermaLink="false">http://www.leoganda.net/?p=124</guid>
		<description><![CDATA[a few days ago I was traveling to Tidung Island, this island located in Seribu Archipelago (north of Jakarta). It tooks about 2.5 hours trip from Muara Angke harbor to get Tidung Island. The weather was so clear, we travel by ship under clear blue sky. For this trip I payed Rp.260.000,- all in. Its [...]]]></description>
			<content:encoded><![CDATA[<p>a few days ago I was traveling to Tidung Island, this island located in Seribu Archipelago (north of Jakarta). It tooks about 2.5 hours trip from Muara Angke harbor to get Tidung Island. The weather was so clear, we travel by ship under clear blue sky. For this trip I payed Rp.260.000,- all in. Its included ship ticket vice versa, homestay for 2 days, 2 lunch and 2 dinners, barbeque, bicycle, snorkeling tools, boat for snorkeling, also local guide!  Hahahah what a great deal wasn&#8217;t it? <img src='http://www.leoganda.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I was searching for the same travel agent to Tidung island, but this guy offer great service with wonderful price. We made a deal then.<span id="more-124"></span></p>
<p>We were 16 people, we stayed at homy place and eat homy food! Really feels like home! Once got there we stayed for a while then decided to visit the most famous place in tidung, they call it with Jembatan Cinta (Bridge of Love). Btw to get this bridge we used bicycle, they provide bicycle in there. Unfortunately some bicycle were not in good condition, no brakes, rusted, etc. So make sure you pick good one  when in there. From Jembatan cinta we can cross over to Tidung kecil, this is an island next of Tidung. So there are 2 Island, Tidung Besar and Tidung Kecil. These islands connected by wooden bridge, we can cross it by foot.  We took a rest for a while in tidung kecil</p>
<p><a href="http://www.leoganda.net/wp-content/uploads/2011/04/DSC_0125.jpg" rel="lightbox[124]"><img class="size-medium wp-image-126 aligncenter" title="Tidung island" src="http://www.leoganda.net/wp-content/uploads/2011/04/DSC_0125.jpg" alt="" width="473" height="313" /></a></p>
<p><a href="http://www.leoganda.net/wp-content/uploads/2011/04/DSC_0127-Edit.jpg" rel="lightbox[124]"><img class="size-medium wp-image-126 aligncenter" title="Tidung island" src="http://www.leoganda.net/wp-content/uploads/2011/04/DSC_0127-Edit.jpg" alt="" width="473" height="312" /></a></p>
<p>What the most I love is barbeque session, we got so many seafood and it tasted so good! I don&#8217;t know what fish it was but I really love it.</p>
<p>At the morning we woke up 4AM to take photos of sunrise, it was bit cloudy but no problem. The sky was so beautiful colored by orange and blue color.</p>
<p><a href="http://www.leoganda.net/wp-content/uploads/2011/04/DSC_0287.jpg" rel="lightbox[124]"><img class="size-medium wp-image-126 aligncenter" title="Tidung island" src="http://www.leoganda.net/wp-content/uploads/2011/04/DSC_0287.jpg" alt="" width="473" height="312" /></a></p>
<p>After enjoyed the sunrise we back to the homestay and had breakfast then we get ready for snorkeling. We were snorkeling Pulau Payung, it took about 20minutes to get the snorkeling spot. This was my first time hahahah, I really enjoy it.</p>
<p><a href="http://www.leoganda.net/wp-content/uploads/2011/04/DSC_0375.jpg" rel="lightbox[124]"><img class="size-medium wp-image-126 aligncenter" title="Tidung island" src="http://www.leoganda.net/wp-content/uploads/2011/04/DSC_0375.jpg" alt="" width="310" height="418" /></a></p>
<p>Anyway if you want go to tidung, you can contact the travel agent I used. You can contact colle adventure at 085811178265 or their website at <a href="http://colleadventure.com/">colleadventure.com</a>. Its not post paid, I do honest review for my traveling experience <img src='http://www.leoganda.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h4>What people search:</h4><ul><li><a href="http://www.leoganda.net/tidung-island-indonesia/" title="tidung island">tidung island</a></li><li><a href="http://www.leoganda.net/tidung-island-indonesia/" title="tidung island indonesia">tidung island indonesia</a></li><li><a href="http://www.leoganda.net/tidung-island-indonesia/" title="tidung">tidung</a></li><li><a href="http://www.leoganda.net/tidung-island-indonesia/" title="tidung island tour">tidung island tour</a></li><li><a href="http://www.leoganda.net/tidung-island-indonesia/" title="tidung island hotel">tidung island hotel</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.leoganda.net/tidung-island-indonesia/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to get list of files handled by process</title>
		<link>http://www.leoganda.net/how-to-get-list-of-files-handled-by-process/</link>
		<comments>http://www.leoganda.net/how-to-get-list-of-files-handled-by-process/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 02:20:22 +0000</pubDate>
		<dc:creator>leoganda</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.leoganda.net/?p=121</guid>
		<description><![CDATA[Ever wondered which program has a particular file or directory open? Now you can find out. Handle is a utility that displays information about open handles for any process in the system. You can use it to see the programs that have a file open, or to see the object types and names of all [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wondered which program has a particular file or directory open? Now you can find out. Handle is a utility that displays information about open handles for any process in the system. You can use it to see the programs that have a file open, or to see the object types and names of all the handles of a program.</p>
<p><a href="http://technet.microsoft.com/en-us/sysinternals/bb896655">Handle</a> is targeted at searching for open file references, so if you do not specify any command-line parameters it will list the values of all the handles in the system that refer to open files and the names of the files. It also takes several parameters that modify this behavior.</p>
<h4>What people search:</h4><ul><li><a href="http://www.leoganda.net/how-to-get-list-of-files-handled-by-process/" title="get handle of process">get handle of process</a></li><li><a href="http://www.leoganda.net/how-to-get-list-of-files-handled-by-process/" title="handle is targetted at searching for open file references">handle is targetted at searching for open file references</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.leoganda.net/how-to-get-list-of-files-handled-by-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

