<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>My Knowledge Management</title>
	<atom:link href="http://mykm.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mykm.wordpress.com</link>
	<description>Learn how to manage my knowledge</description>
	<lastBuildDate>Tue, 11 Aug 2009 16:38:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='mykm.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/03f26a7a4c2db6d736af9ba450bc2801?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>My Knowledge Management</title>
		<link>http://mykm.wordpress.com</link>
	</image>
			<item>
		<title>CSS Sticky Footer + BlueprintCSS</title>
		<link>http://mykm.wordpress.com/2009/08/11/css-sticky-footer-blueprintcss/</link>
		<comments>http://mykm.wordpress.com/2009/08/11/css-sticky-footer-blueprintcss/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 15:54:26 +0000</pubDate>
		<dc:creator>Ananda Putra</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[blueprintcss]]></category>
		<category><![CDATA[sticky footer]]></category>

		<guid isPermaLink="false">http://mykm.wordpress.com/?p=24</guid>
		<description><![CDATA[I got the basic of sticky footer from cssstickyfooter.com and here is my sticky footer combining with blueprintcss.
The HTML code:

&#60;html&#62;
&#60;head&#62;...&#60;/head&#62;
&#60;body&#62;
	&#60;div class="container"&#62;
		...
	&#60;/div&#62;
	&#60;div id="stickyfooter"&#62;
		Here you go your fancy sticky footer..
	&#60;/div&#62;
&#60;/body&#62;
&#60;/html&#62;

The CSS:
(I add these lines in screen.css)

/** for sticky footer */
body {margin:0}
html, body {height: 100%;}
.container {height: 100%;}
#stickyfooter {
	position:relative;
	height: 150px;
	margin-top: -150px; /* must be the same value as height [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=24&subd=mykm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I got the basic of sticky footer from <a href="http://www.cssstickyfooter.com" target="_blank">cssstickyfooter.com</a> and here is my sticky footer combining with <a href="http://blueprintcss.org" target="_blank">blueprintcss</a>.</p>
<p><strong>The HTML code:</strong></p>
<blockquote>
<pre>&lt;html&gt;
&lt;head&gt;...&lt;/head&gt;
&lt;body&gt;
	&lt;div class="container"&gt;
		...
	&lt;/div&gt;
	&lt;div id="stickyfooter"&gt;
		Here you go your fancy sticky footer..
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
</blockquote>
<p><strong>The CSS:</strong><br />
(I add these lines in screen.css)</p>
<blockquote>
<pre>/** for sticky footer */
body {margin:0}
html, body {height: 100%;}
.container {height: 100%;}
#stickyfooter {
	position:relative;
	height: 150px;
	margin-top: -150px; /* must be the same value as height */
	clear:both;
	text-align:center; /* up to you */
	background:#ff0; /* up to you */
}</pre>
</blockquote>
<p>The height of the footer is sets by &#8220;height&#8221; and &#8220;margin-top&#8221; in &#8220;#stickyfooter&#8221;.</p>
<p>Please note that I&#8217;m not tested it yet in other browsers but firefox 3.5.1 (Shiretoko) in Ubuntu 9.04. Please feel free to drop me some comments.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mykm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mykm.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mykm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mykm.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mykm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mykm.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mykm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mykm.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mykm.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mykm.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=24&subd=mykm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mykm.wordpress.com/2009/08/11/css-sticky-footer-blueprintcss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b4be5a43bf9bc651326ff458f30938?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dunia</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP Cookies on IE6</title>
		<link>http://mykm.wordpress.com/2009/08/03/php-cookies-on-ie6/</link>
		<comments>http://mykm.wordpress.com/2009/08/03/php-cookies-on-ie6/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 04:40:04 +0000</pubDate>
		<dc:creator>Ananda Putra</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mykm.wordpress.com/2009/08/03/php-cookies-on-ie6/</guid>
		<description><![CDATA[Source: http://www.oreillynet.com/mac/blog/2002/06/p3p_in_ie6_frustrating_failure.html
“MSIE 6 has an inaccurate definition of third party cookies. If your domain is hosted on one server and your PHP stuff is on another, the IE6 P3P implementation considers any cookies sent from the second machine “third party”. Third party cookies will be blocked automatically in most privacy settings if not accompanied by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=23&subd=mykm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Source: http://www.oreillynet.com/mac/blog/2002/06/p3p_in_ie6_frustrating_failure.html</p>
<p>“MSIE 6 has an inaccurate definition of third party cookies. If your domain is hosted on one server and your PHP stuff is on another, the IE6 P3P implementation considers any cookies sent from the second machine “third party”. Third party cookies will be blocked automatically in most privacy settings if not accompanied by what MS considers “an appropriate Compact Policy”. In order to make this new piece of tweakable garbage happy I’d suggest you’d par exemple send</p>
<p>header(’P3P: CP=”NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM”‘); </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mykm.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mykm.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mykm.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mykm.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mykm.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mykm.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mykm.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mykm.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mykm.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mykm.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=23&subd=mykm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mykm.wordpress.com/2009/08/03/php-cookies-on-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b4be5a43bf9bc651326ff458f30938?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dunia</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP SoapServer</title>
		<link>http://mykm.wordpress.com/2009/02/04/php-soapserver/</link>
		<comments>http://mykm.wordpress.com/2009/02/04/php-soapserver/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 14:07:14 +0000</pubDate>
		<dc:creator>Ananda Putra</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PHP Soap]]></category>

		<guid isPermaLink="false">http://mykm.wordpress.com/2009/02/04/php-soapserver/</guid>
		<description><![CDATA[Methods:
Array
(
    [0] =&#62; SoapServer
    [1] =&#62; setPersistence
    [2] =&#62; setClass
    [3] =&#62; setObject
    [4] =&#62; addFunction
    [5] =&#62; getFunctions
    [6] =&#62; handle
    [7] =&#62; fault
    [8] =&#62; addSoapHeader
)
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=22&subd=mykm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Methods:<br />
Array<br />
(<br />
    [0] =&gt; SoapServer<br />
    [1] =&gt; setPersistence<br />
    [2] =&gt; setClass<br />
    [3] =&gt; setObject<br />
    [4] =&gt; addFunction<br />
    [5] =&gt; getFunctions<br />
    [6] =&gt; handle<br />
    [7] =&gt; fault<br />
    [8] =&gt; addSoapHeader<br />
)</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mykm.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mykm.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mykm.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mykm.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mykm.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mykm.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mykm.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mykm.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mykm.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mykm.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=22&subd=mykm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mykm.wordpress.com/2009/02/04/php-soapserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b4be5a43bf9bc651326ff458f30938?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dunia</media:title>
		</media:content>
	</item>
		<item>
		<title>PostgreSQL</title>
		<link>http://mykm.wordpress.com/2008/07/25/postgresql/</link>
		<comments>http://mykm.wordpress.com/2008/07/25/postgresql/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 08:51:02 +0000</pubDate>
		<dc:creator>Ananda Putra</dc:creator>
				<category><![CDATA[How]]></category>

		<guid isPermaLink="false">http://mykm.wordpress.com/?p=18</guid>
		<description><![CDATA[This post is about postgresql commands and other stuffs about it. It will updated when I update it.  )
Change PosgreSQL postgres user password 
sudo -u postgres psql postgres
postgres=# ALTER USER postgres WITH ENCRYPTED PASSWORD 'a';
ALTER ROLE
postgres=# \q


Create a database with a user that have full rights on the database:
sudo -u postgres createuser -D -A [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=18&subd=mykm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This post is about postgresql commands and other stuffs about it. It will updated when I update it. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>Change PosgreSQL postgres user password </p>
<blockquote><pre>sudo -u postgres psql postgres
postgres=# ALTER USER postgres WITH ENCRYPTED PASSWORD 'a';
ALTER ROLE
postgres=# \q
</pre>
</blockquote>
<p>Create a database with a user that have full rights on the database:</p>
<blockquote><pre>sudo -u postgres createuser -D -A -P myuser
sudo -u postgres createdb -O myuser mydb</pre>
</blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mykm.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mykm.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mykm.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mykm.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mykm.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mykm.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mykm.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mykm.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mykm.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mykm.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mykm.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mykm.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=18&subd=mykm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mykm.wordpress.com/2008/07/25/postgresql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b4be5a43bf9bc651326ff458f30938?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dunia</media:title>
		</media:content>
	</item>
		<item>
		<title>Export Database Of Oracle XE 10.x On Ubuntu Linux</title>
		<link>http://mykm.wordpress.com/2008/07/22/export-database-of-oracle-xe-10x-on-ubuntu-linux/</link>
		<comments>http://mykm.wordpress.com/2008/07/22/export-database-of-oracle-xe-10x-on-ubuntu-linux/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 22:15:33 +0000</pubDate>
		<dc:creator>Ananda Putra</dc:creator>
				<category><![CDATA[How]]></category>

		<guid isPermaLink="false">http://mykm.wordpress.com/?p=15</guid>
		<description><![CDATA[oracle@bianca:~$ export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/
oracle@bianca:~$ /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/exp angelina@bianca

Export: Release 10.2.0.1.0 - Production on Wed Jul 23 04:47:59 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Password:

Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Enter array fetch buffer size: 4096 &#62;

Export file: expdat.dmp &#62; alectra-dev-20080723.dmp

(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U &#62;

Export grants (yes/no): yes &#62; no

Export table data [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=15&subd=mykm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote><pre>oracle@bianca:~$ export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/
oracle@bianca:~$ /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/exp angelina@bianca

Export: Release 10.2.0.1.0 - Production on Wed Jul 23 04:47:59 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Password:

Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Enter array fetch buffer size: 4096 &gt;

Export file: expdat.dmp &gt; alectra-dev-20080723.dmp

(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U &gt;

Export grants (yes/no): yes &gt; no

Export table data (yes/no): yes &gt;

Compress extents (yes/no): yes &gt;

Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)
Note: grants on tables/views/sequences/roles will not be exported

About to export specified users ...
User to be exported: (RETURN to quit) &gt; alectra

User to be exported: (RETURN to quit) &gt;

. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user ALECTRA
...</pre>
</blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mykm.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mykm.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mykm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mykm.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mykm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mykm.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mykm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mykm.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mykm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mykm.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mykm.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mykm.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=15&subd=mykm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mykm.wordpress.com/2008/07/22/export-database-of-oracle-xe-10x-on-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b4be5a43bf9bc651326ff458f30938?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dunia</media:title>
		</media:content>
	</item>
		<item>
		<title>Security Hole</title>
		<link>http://mykm.wordpress.com/2008/04/22/security-hole/</link>
		<comments>http://mykm.wordpress.com/2008/04/22/security-hole/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 06:44:38 +0000</pubDate>
		<dc:creator>Ananda Putra</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://mykm.wordpress.com/?p=14</guid>
		<description><![CDATA[From cracker who defaced depkominfo.go.id :
beberapa kelemahan pada situs depkominfo:
XSS
SQLi
LFI/RFI
beberapa settingan pada depkominfo.go.id yg membantu proses hacking:
allow_url_include = on
magic_quotes_gpc = off
user mysql memiliki file_priv on
beberapa folder pada root document yang memiliki write permission untuk user apache
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=14&subd=mykm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>From cracker who defaced depkominfo.go.id :</p>
<blockquote><p>beberapa kelemahan pada situs depkominfo:<br />
XSS<br />
SQLi<br />
LFI/RFI</p>
<p>beberapa settingan pada depkominfo.go.id yg membantu proses hacking:<br />
allow_url_include = on<br />
magic_quotes_gpc = off<br />
user mysql memiliki file_priv on<br />
beberapa folder pada root document yang memiliki write permission untuk user apache</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mykm.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mykm.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mykm.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mykm.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mykm.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mykm.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mykm.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mykm.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mykm.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mykm.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mykm.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mykm.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=14&subd=mykm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mykm.wordpress.com/2008/04/22/security-hole/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b4be5a43bf9bc651326ff458f30938?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dunia</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP Redirect to SSL</title>
		<link>http://mykm.wordpress.com/2008/04/02/php-redirect-to-ssl/</link>
		<comments>http://mykm.wordpress.com/2008/04/02/php-redirect-to-ssl/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 07:59:36 +0000</pubDate>
		<dc:creator>Ananda Putra</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://mykm.wordpress.com/?p=13</guid>
		<description><![CDATA[
&#60;?php
if ($_SERVER['SERVER_PORT'] != 443) {
	header("HTTP/1.1 301 Moved Permanently");
	header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
	exit();
}
?&#62;

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=13&subd=mykm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote>
<pre>&lt;?php
if ($_SERVER['SERVER_PORT'] != 443) {
	header("HTTP/1.1 301 Moved Permanently");
	header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
	exit();
}
?&gt;</pre>
</blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mykm.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mykm.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mykm.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mykm.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mykm.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mykm.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mykm.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mykm.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mykm.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mykm.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mykm.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mykm.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=13&subd=mykm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mykm.wordpress.com/2008/04/02/php-redirect-to-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b4be5a43bf9bc651326ff458f30938?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dunia</media:title>
		</media:content>
	</item>
		<item>
		<title>Implementing SOAP Server on CakePHP</title>
		<link>http://mykm.wordpress.com/2008/01/23/implementing-soap-server-on-cakephp/</link>
		<comments>http://mykm.wordpress.com/2008/01/23/implementing-soap-server-on-cakephp/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 13:38:41 +0000</pubDate>
		<dc:creator>Ananda Putra</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[How]]></category>

		<guid isPermaLink="false">http://mykm.wordpress.com/2008/01/23/implementing-soap-server-on-cakephp/</guid>
		<description><![CDATA[My key concept is: create the SOAP server in the Controller and the methods in the Model. Why? Because controller is &#8230; (read this) and model is this.
As an example here we gonna make web service for Post of a Blog (see Blog Tutorial) using native SOAP in PHP version 5.
We&#8217;ll put the SOAP handler [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=11&subd=mykm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My key concept is: create the SOAP server in the Controller and the methods in the Model. Why? Because controller <a href="http://manual.cakephp.org/chapter/controllers">is &#8230; (read this)</a> and model <a href="http://manual.cakephp.org/chapter/models">is this</a>.</p>
<p>As an example here we gonna make web service for Post of a Blog (see <a href="http://manual.cakephp.org/appendix/blog_tutorial">Blog Tutorial</a>) using native <a href="http://php.net/soap">SOAP in PHP</a> version 5.</p>
<p>We&#8217;ll put the SOAP handler at URL: http://yourhost/posts/service  and the WSDL (which is will be used by the SOAP consumer) at URL: http://yourhost/posts/wsdl.</p>
<ol>
<li>Create table Post (see the Blog Tutorial for details).</li>
<li>Create Post model (models/post.php) as usual.</li>
<li>Create Post controller (controllers/posts_controller.php), see bellow. You need RequestHandler component for create XML-type response on wsdl action.</li>
<li>Create view for action &#8220;wsdl&#8221; (views/posts/wsdl.ctp) and define your service method in it. You can publish all of methods in Post model including from its parent (AppModel), eg. findById(), find(), findAll(), etc. Note: you should turning off &#8220;short_open_tag&#8221; in php.ini to avoid error on rendering the xml of wsdl view. And don&#8217;t forget to define your service address in the WSDL to http://yourhost/posts/service.</li>
<li>Now your service consumer could consume your service by pointing to your WSDL URL (http://yourhost/posts/wsdl).</li>
</ol>
<p>Here are the sample codes:<span id="more-11"></span></p>
<p>models/post.php</p>
<blockquote>
<pre>&lt;?php
class Post extends AppModel {

	/**
	 * Example method
	 * @param string
	 * @return string
	 */
	function yourMethod($inputParam) {
		return "Your input is {$inputParam}";
	}
}
?&gt;</pre>
</blockquote>
<p>controllers/posts_controller.php</p>
<blockquote>
<pre>&lt;?php
class PostsController extends AppController {
	var $components = array('RequestHandler');

	function service() {
		$this-&gt;layout = false;
		$this-&gt;autoRender = false;
		Configure::write('debug', 0);
		ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
		$server = new SoapServer('http://yourhost/posts/wsdl');
		$server-&gt;setClass("Post");
		$server-&gt;handle();
	}

	function wsdl() {
		$this-&gt;layout = false;
		Configure::write('debug', 0);
		$this-&gt;RequestHandler-&gt;respondAs('xml');
	}
}
?&gt;</pre>
</blockquote>
<p>views/posts/wsdl.ctp</p>
<blockquote>
<pre>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
&lt;definitions name='YourTNS'
  targetNamespace='YourTNS'
  xmlns:tns='YourTNS'
  xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
  xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
  xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
  xmlns='http://schemas.xmlsoap.org/wsdl/'&gt;
&lt;types&gt;
	&lt;schema xmlns="http://www.w3.org/2001/XMLSchema"
				targetNamespace="http://www.ecerami.com/schema"
				xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
				xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"&gt;
		&lt;complexType name="ArrayOfString"&gt;
			&lt;complexContent&gt;
				&lt;restriction base="soapenc:Array"&gt;
					&lt;attribute ref="soapenc:arrayType"
									wsdl:arrayType="string[]"/&gt;
				&lt;/restriction&gt;
			&lt;/complexContent&gt;
		&lt;/complexType&gt;
	&lt;/schema&gt;
&lt;/types&gt;
&lt;message name='findByIdRequest'&gt;
	&lt;part name='PostId' type='xsd:string'/&gt;
&lt;/message&gt;
&lt;message name='findByIdResponse'&gt;
  &lt;part name='Result' type='xsd:ArrayOfString'/&gt;
&lt;/message&gt;
&lt;message name='yourMethodRequest'&gt;
	&lt;part name='inputParam' type='xsd:string'/&gt;
&lt;/message&gt;
&lt;message name='yourMethodResponse'&gt;
  &lt;part name='Result' type='xsd:string'/&gt;
&lt;/message&gt;
&lt;portType name='PostPortType'&gt;
  &lt;operation name='findById'&gt;
    &lt;input message='tns:findByIdRequest'/&gt;
    &lt;output message='tns:findByIdResponse'/&gt;
  &lt;/operation&gt;
  &lt;operation name='yourMethod'&gt;
    &lt;input message='tns:yourMethodRequest'/&gt;
    &lt;output message='tns:yourMethodResponse'/&gt;
  &lt;/operation&gt;
&lt;/portType&gt;
&lt;binding name='PostBinding' type='tns:PostPortType'&gt;
  &lt;soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/&gt;
  &lt;operation name='findById'&gt;
    &lt;soap:operation soapAction='urn:your-urn'/&gt;
    &lt;input&gt;
      &lt;soap:body use='encoded' namespace='urn:your-urn'
        encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/&gt;
    &lt;/input&gt;
    &lt;output&gt;
      &lt;soap:body use='encoded' namespace='urn:your-urn'
        encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/&gt;
    &lt;/output&gt;
  &lt;/operation&gt;
  &lt;operation name='yourMethod'&gt;
    &lt;soap:operation soapAction='urn:your-urn'/&gt;
    &lt;input&gt;
      &lt;soap:body use='encoded' namespace='urn:your-urn'
        encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/&gt;
    &lt;/input&gt;
    &lt;output&gt;
      &lt;soap:body use='encoded' namespace='urn:your-urn'
        encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/&gt;
    &lt;/output&gt;
  &lt;/operation&gt;
&lt;/binding&gt;
&lt;service name='PostService'&gt;
  &lt;port name='PostPort' binding='PostBinding'&gt;
    &lt;soap:address location='http://yourhost/posts/service'/&gt;
  &lt;/port&gt;
&lt;/service&gt;
&lt;/definitions&gt;</pre>
</blockquote>
<p><strong>Update</strong></p>
<p>I was using CakePHP version 1.2.0.6311 beta and PHP version 5.2.3.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mykm.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mykm.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mykm.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mykm.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mykm.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mykm.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mykm.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mykm.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mykm.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mykm.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mykm.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mykm.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=11&subd=mykm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mykm.wordpress.com/2008/01/23/implementing-soap-server-on-cakephp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b4be5a43bf9bc651326ff458f30938?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dunia</media:title>
		</media:content>
	</item>
		<item>
		<title>Disable AutoRun in Ms. Windows</title>
		<link>http://mykm.wordpress.com/2008/01/23/disable-autorun-in-ms-windows/</link>
		<comments>http://mykm.wordpress.com/2008/01/23/disable-autorun-in-ms-windows/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 00:08:08 +0000</pubDate>
		<dc:creator>Ananda Putra</dc:creator>
				<category><![CDATA[How]]></category>

		<guid isPermaLink="false">http://mykm.wordpress.com/2008/01/23/disable-autorun-in-ms-windows/</guid>
		<description><![CDATA[Via group policy:

Go to Start &#62; Run
Type gpedit.msc &#38; press Enter. You should see the Group Policy window.
In the left-hand column, select Computer Configuration &#62; Administrative Templates &#62; System
Next, look in the right-hand column for &#8220;Turn off Autoplay&#8221;, and double-click on that.
Next, in the &#8220;Turn Off Autoplay Properties&#8221; window, select &#8220;Enabled&#8221;
Then choose &#8220;All drives&#8221; from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=10&subd=mykm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Via group policy:</p>
<ol>
<li>Go to Start &gt; Run</li>
<li>Type gpedit.msc &amp; press Enter. You should see the Group Policy window.</li>
<li>In the left-hand column, select Computer Configuration &gt; Administrative Templates &gt; System</li>
<li>Next, look in the right-hand column for &#8220;Turn off Autoplay&#8221;, and double-click on that.</li>
<li>Next, in the &#8220;Turn Off Autoplay Properties&#8221; window, select &#8220;Enabled&#8221;</li>
<li>Then choose &#8220;All drives&#8221; from the dropdown menu in &#8220;Turn off Autoplay on:&#8221;</li>
<li>Click OK.</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mykm.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mykm.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mykm.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mykm.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mykm.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mykm.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mykm.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mykm.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mykm.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mykm.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mykm.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mykm.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=10&subd=mykm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mykm.wordpress.com/2008/01/23/disable-autorun-in-ms-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b4be5a43bf9bc651326ff458f30938?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dunia</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Service Client using CakePHP &amp; PHP SOAP</title>
		<link>http://mykm.wordpress.com/2007/08/01/web-service-client-using-cakephp-php-soap/</link>
		<comments>http://mykm.wordpress.com/2007/08/01/web-service-client-using-cakephp-php-soap/#comments</comments>
		<pubDate>Wed, 01 Aug 2007 09:35:21 +0000</pubDate>
		<dc:creator>Ananda Putra</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://mykm.wordpress.com/2007/08/01/web-service-client-using-cakephp-php-soap/</guid>
		<description><![CDATA[I&#8217;m using  PHP version 5.2.1 and CakePHP version 1.1.16-5421.
In this example we&#8217;ll create a basic web service client using native PHP SOAP function and CakePHP. The service we will consume is a &#8220;fortune&#8221;, you can find its info at xmethods.net.
Here is the complete code:

&#60;?php
class WsController extends AppController {
	var $uses = array();
	var $layout = '';

	function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=8&subd=mykm&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m using  <a href="http://php.net">PHP</a> version 5.2.1 and <a href="http://cakephp.org">CakePHP</a> version 1.1.16-5421.</p>
<p>In this example we&#8217;ll create a basic web service client using native <a href="http://php.net/soap">PHP SOAP</a> function and CakePHP. The service we will consume is a &#8220;fortune&#8221;, you can find its <a href="http://xmethods.net/ve2/ViewListing.po?key=uuid:C171E942-75D1-8B3B-B6C2-118FF89BEBC6">info at xmethods.net</a>.</p>
<p>Here is the complete code:</p>
<blockquote>
<pre>&lt;?php
class WsController extends AppController {
	var $uses = array();
	var $layout = '';

	function fortune() {
		ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
		$client = new SoapClient("http://www.doughughes.net/WebServices/fortune/fortune.cfc?wsdl",
			array('proxy_host' =&gt; "10.1.89.231",'proxy_port' =&gt; 8080)
		); // I'm using proxy to connect Internet from my LAN
		try {
			echo $client-&gt;getFortune();
		} catch (SoapFault $exception) {
			echo $exception;
		}
	}
}
?&gt;</pre>
</blockquote>
<p>Don&#8217;t forget to create empty file for the view (I&#8217;m wondering how to create an action without a view in CakePHP). Then access it at http://&lt;url to your cake&gt;/ws/fortune.</p>
<p>The key in that code is <a href="http://www.doughughes.net/WebServices/fortune/fortune.cfc?wsdl">the WSDL</a>, and function &#8220;getFortune()&#8221; which is defined in the WSDL.</p>
<p>Really simple isn&#8217;t it?</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mykm.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mykm.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mykm.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mykm.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mykm.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mykm.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mykm.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mykm.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mykm.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mykm.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mykm.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mykm.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mykm.wordpress.com&blog=1303583&post=8&subd=mykm&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mykm.wordpress.com/2007/08/01/web-service-client-using-cakephp-php-soap/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d5b4be5a43bf9bc651326ff458f30938?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dunia</media:title>
		</media:content>
	</item>
	</channel>
</rss>