<?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>kwatog &#187; Blog</title>
	<atom:link href="http://kwatog.com/category/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://kwatog.com</link>
	<description>tech notes and general nonsense</description>
	<lastBuildDate>Thu, 29 Jul 2010 12:06:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress 404 Page Not Working in IE</title>
		<link>http://kwatog.com/blog/wordpress/wordpress-404-page-not-working-in-ie/</link>
		<comments>http://kwatog.com/blog/wordpress/wordpress-404-page-not-working-in-ie/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 11:40:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=352</guid>
		<description><![CDATA[As stated in the title, my 404 template in WordPress does not show up every time a non-existent URL is accessed in my site. The page works perfectly in FireFox and Chrome, though. So I made a quick search and found that the solution is to add another header information in the page. So here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>As stated in the title, my 404 template in WordPress does not show up every time a non-existent URL is accessed in my site. The page works perfectly in FireFox and Chrome, though. So I made a quick search and found that the solution is to add another header information in the page. So here&#8217;s what to insert at the very start of <strong>404.php</strong>.</p>
<p><code><br />
&lt;?php ob_start(); ?&gt;<br />
&lt;?php header("HTTP/1.1 404 Not Found"); ?&gt;<br />
</code></p>
<p>For this, credit goes to wpcanada.<br />
<a href="http://wpcanada.ca/2008/03/20/ie-and-custom-error-pages/">http://wpcanada.ca/2008/03/20/ie-and-custom-error-pages/</a></p>
<p><span id="more-352"></span><br />
This is also touched in weblogtoolscollection.com at http://weblogtoolscollection.com/archives/2004/07/31/gzip-compression-issue-in-wordpress-12-mingus/</p>
<p>Note: ob_start() is a PHP function Turn on output buffering&#8230; whatever that means. <img src='http://kwatog.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/wordpress/wordpress-404-page-not-working-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset MySQL Root Password in CentOS</title>
		<link>http://kwatog.com/blog/reset-mysql-root-password-in-centos/</link>
		<comments>http://kwatog.com/blog/reset-mysql-root-password-in-centos/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 15:06:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=264</guid>
		<description><![CDATA[&#8220;Senior moments&#8221; tends to occur more frequently these days. Sign that I&#8217;m getting old. And several times already, I forgot the root password of my MySQL installation. You can recover MySQL database server password with following five easy steps. Step # 1: Stop the MySQL server process. # /etc/init.d/mysql stop Step # 2: Start the [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Senior moments&#8221; tends to occur more frequently these days. Sign that I&#8217;m getting old. And several times already, I forgot the root password of my MySQL installation. </p>
<p>You can recover MySQL database server password with following five easy steps.<br />
<span id="more-264"></span><br />
<strong>Step # 1:</strong> Stop the MySQL server process.</p>
<p><code># /etc/init.d/mysql stop</code></p>
<p><strong>Step # 2:</strong> Start the MySQL (mysqld) server/daemon process with the &#8211;skip-grant-tables option so that it will not prompt for password.</p>
<p><code># mysqld_safe --skip-grant-tables &#038;</code></p>
<p><strong>Step # 3:</strong> Connect to mysql server as the root user.<br />
<code># mysql -u root</code><br />
<strong>Step # 4: </strong>Setup new mysql root account password.<br />
<code><br />
mysql> use mysql;<br />
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';<br />
mysql> flush privileges;<br />
mysql> quit<br />
</code></p>
<p><strong>Step # 5:</strong> Exit and restart the MySQL server.<br />
<code># /etc/init.d/mysql stop</code></p>
<p>Step # 6: Start MySQL server and test it<br />
# /etc/init.d/mysql start<br />
# mysql -u root -p</p>
<p>The steps are basically the same when resetting the password in other linux flavors. I&#8217;m using the same steps in Ubuntu but with a slight difference in shell commands. </p>
<p>reference :<br />
<a href="http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html">http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/reset-mysql-root-password-in-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>POSB &#8211; PayPal Bank Code and Branch Code</title>
		<link>http://kwatog.com/blog/posb-paypal-bank-code-and-branch-code/</link>
		<comments>http://kwatog.com/blog/posb-paypal-bank-code-and-branch-code/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 08:00:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[InterWebs]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=272</guid>
		<description><![CDATA[Adding a bank in PayPal is easy especially if you are a POSB/DBS client. But first, you need to know some bank codes to be able to proceed. I did not easily find the needed information from the DBS website (I know it&#8217;s somewhere there but I just can&#8217;t find it even after scouring the [...]]]></description>
			<content:encoded><![CDATA[<p>Adding a bank in PayPal is easy especially if you are a POSB/DBS client. But first, you need to know some bank codes to be able to proceed. I did not easily find the needed information from the DBS website (I know it&#8217;s somewhere there but I just can&#8217;t find it even after scouring the ibanking system). Luckily, UOB has a list of the codes needed as pointed out in the PayPal forum. </p>
<p>So in case I need it again, I&#8217;m posting it here. It&#8217;s not just for my benefit but also for those who happen to stumble in my site.</p>
<p><em>Bank Name :</em> <strong>Post Office Savings Bank</strong><br />
<em>Institution Code :</em> <strong>7171</strong><br />
<em>Branch Code :</em> <strong>081</strong><br />
<em>Account No :</em> <strong>[your 9 digit account number without the dashes]</strong></p>
<p>IMPORTANT NOTE:</p>
<ol>
<li>All POSB branches has one branch code &#8212; 081. The actual branch is embedded in the 9-digit account number.</li>
<li>This is only applicable for POSB accounts with 9 digits account no. Those with 10 digit account numbers must refer to their own respective branches.</li>
<li>Your account name in this form should be the same as your account name in your bank. Otherwise, there will be a SGD5 return fee that will be charged on your paypal account.</li>
</ol>
<p><span id="more-272"></span><br />
For reference, here&#8217;s the screenshot of PayPal&#8217;s add bank account screen.<br />
<a href="http://kwatog.com/wp-content/uploads/2010/07/posb_paypal.jpg"><img src="http://kwatog.com/wp-content/uploads/2010/07/posb_paypal-285x300.jpg" alt="" title="posb_paypal" width="285" height="300" class="alignnone size-medium wp-image-273" /></a></p>
<p>You want to see the full list <a href="<br />
http://www.uobgroup.com/assets/pdfs/global/achcode.pdf">HERE</a>. It&#8217;s quite handy especially for UOB and DBS Clients.</p>
<p>By the way, be aware of the reminder/disclaimer posted by UOB.</p>
<blockquote><p>PLEASE NOTE: UOB will not be held responsible for any errors or omissions that may appear in the guide. For updates of the codes, please refer to www.uobgroup.com/ACHcodes.<br />
For DBS enquiries, please call 1800 339 6666. For OCBC enquiries, please call 1800 438<br />
3333.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/posb-paypal-bank-code-and-branch-code/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Oracle IN : Maximum Number of Values</title>
		<link>http://kwatog.com/blog/oracle/oracle-in-maximum-number-of-values/</link>
		<comments>http://kwatog.com/blog/oracle/oracle-in-maximum-number-of-values/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 09:22:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=269</guid>
		<description><![CDATA[In case you wonder what it the maximum number of values you can put inside the IN condition, it is 1000 as of Oracle 9i. It is documented in the link below. http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96536/ch44.htm#288033. Example: SELECT * FROM emp WHERE emp_no IN(1,2,3,4,5......1000); I needed this because I was given a long list of values (around 500 [...]]]></description>
			<content:encoded><![CDATA[<p>In case you wonder what it the maximum number of values you can put inside the IN condition, it is <strong>1000 </strong>as of Oracle 9i. It is documented in the link below.<br />
<a href="http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96536/ch44.htm#288033">http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96536/ch44.htm#288033</a>.</p>
<p>Example:</p>
<p><code>SELECT * FROM emp<br />
WHERE emp_no IN(1,2,3,4,5......1000);</code></p>
<p>I needed this because I was given a long list of values (around 500 values) and I need to fetch records in a table using that data. It would be easy if I can insert it first into a temp table and then join. Unfortunately, I only have read rights on the database so I need to use the IN condition. But I got concerned because in Oracle 7 and 8i releases, the maximum number of values you can put inside IN is a maximum of 255 (one byte). </p>
<h3>Note:</h3>
<p>Take note that the IN(SUBQUERY) does not have limitations because that&#8217;s essentially a join.</p>
<p>Example:<br />
<code>SELECT * FROM emp<br />
WHERE emp_no IN(SELECT emp_no FROM dept_emp);</code></p>
<p>However as part of my <strong>best practices</strong>, I make sure that the results of the IN subquery is either one or none for optimal performance (not applicable in some instances). </p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/oracle/oracle-in-maximum-number-of-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My eeePC loves Ubuntu Netbook Edition</title>
		<link>http://kwatog.com/blog/linux/eepc-loves-ubuntu-netbook-is-fas/</link>
		<comments>http://kwatog.com/blog/linux/eepc-loves-ubuntu-netbook-is-fas/#comments</comments>
		<pubDate>Sat, 01 May 2010 02:40:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=257</guid>
		<description><![CDATA[I had bad experience with Ubuntu before when I tried to install it on my Compaq V3000 series laptop. You know, the overheating problem that activates the ACPI and then turns off my laptop? Otherwise, my notebook will burn. I mean really, the whole unit is freaking hot. Of course, I know that it has [...]]]></description>
			<content:encoded><![CDATA[<p>I had bad experience with Ubuntu before when I tried to install it on my Compaq V3000 series laptop. You know, the overheating problem that activates the ACPI and then turns off my laptop? Otherwise, my notebook will burn. I mean really, the whole unit is freaking hot. </p>
<p>Of course, I know that it has something to do with the BIOS. But I&#8217;m also well aware that I fuck the BIOS update, my laptop will become an expensive paperweight. That&#8217;s too big a risk to take a chance. That, coupled with other problems like FarmTown and FarmVille issues, lead me to realize it&#8217;s just too painful to make the notebook usable. And so I had to put on Windows XP again. Well, that notebook is primarily used by my wife and FarmTown, FarmVille and Social City are just too important for her so I don&#8217;t really have a choice but to put back XP on it.</p>
<p>And so I am stuck with an underpowered netbook, an eeePC 1002HA(btw, it was originally for the wife but since it&#8217;s damn slow, she got back the notebook). It&#8217;s a pretty decent netbook until I open a lot of tabs on my browser and run netbeans on top of XAMPP. It&#8217;s crawling and I understand. It takes ages for Netbeans to start up and do I still need to say that it takes at least 90 seconds to start up the machine(with all the things I run on it)?  But then again, the prospect of installing Ubuntu just doesn&#8217;t appeal me because of my earlier experience. </p>
<p>So when Ubuntu came up with Ubuntu Netbook Edition (formerly Ubuntu Netbook Remix) and got good reviews, I was persuaded to try again. To make the story short, I installed it (dual-boot mode) and surprisingly, I am now a happy man. I mean, really!</p>
<p>It boots fast,  all done and usable in 24 seconds. Yes, that includes all the peripherals like sound, bluetooth and WiFi working! Ok, not as fast as the Macbook Pro but hey, this is a netbook with an underpowered Atom N280 processor with 2GB of memory as compared to Core2Duo of MBP. And guess what, Netbeans  starts in a flash. </p>
<p>If all goes well, I might decide to ditch XP altogether and just install VMWare or VirtualBox for my Windows needs. More about this Linux adventure later.</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/linux/eepc-loves-ubuntu-netbook-is-fas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
