<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>raymond blogs...</title>
	<link>http://blog.philippinedev.com</link>
	<description>a christian web developer's random writings</description>
	<pubDate>Tue, 18 Nov 2008 09:44:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>How to set a MySQL Table AUTO_INCREMENT</title>
		<link>http://blog.philippinedev.com/2008/11/18/how-to-set-a-mysql-table-auto_increment/</link>
		<comments>http://blog.philippinedev.com/2008/11/18/how-to-set-a-mysql-table-auto_increment/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 09:44:00 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.philippinedev.com/2008/11/18/how-to-set-a-mysql-table-auto_increment/</guid>
		<description><![CDATA[To start with an AUTO_INCREMENT value other than 1, you can set that value with CREATE TABLE or ALTER TABLE, like this:
mysql&#62; ALTER TABLE tbl AUTO_INCREMENT = 100;
]]></description>
			<content:encoded><![CDATA[<p>To start with an AUTO_INCREMENT value other than 1, you can set that value with CREATE TABLE or ALTER TABLE, like this:</p>
<p><code>mysql&gt; ALTER TABLE tbl AUTO_INCREMENT = 100;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philippinedev.com/2008/11/18/how-to-set-a-mysql-table-auto_increment/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Find a string in files under Subversion</title>
		<link>http://blog.philippinedev.com/2008/09/05/find-a-string-in-files-under-subversion/</link>
		<comments>http://blog.philippinedev.com/2008/09/05/find-a-string-in-files-under-subversion/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 21:10:45 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
		
		<category><![CDATA[subversion]]></category>

		<category><![CDATA[find]]></category>

		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.philippinedev.com/2008/09/05/find-a-string-in-files-under-subversion/</guid>
		<description><![CDATA[As a programmer, I&#8217;ve been using find to locate string in my source code.  Issuing a find would include svn files too which is not my intension.  Here&#8217;s the command:
$ find . -not -regex '.*svn.*' -exec grep "$1" '{}' \; -print
]]></description>
			<content:encoded><![CDATA[<p>As a programmer, I&#8217;ve been using <code>find</code> to locate string in my source code.  Issuing a <code>find</code> would include svn files too which is not my intension.  Here&#8217;s the command:</p>
<p><code>$ find . -not -regex '.*svn.*' -exec grep "$1" '{}' \; -print</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philippinedev.com/2008/09/05/find-a-string-in-files-under-subversion/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Remove a MySQL Table constraint</title>
		<link>http://blog.philippinedev.com/2008/08/26/how-to-remove-a-mysql-table-constraint/</link>
		<comments>http://blog.philippinedev.com/2008/08/26/how-to-remove-a-mysql-table-constraint/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 15:53:48 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[SQL]]></category>

		<category><![CDATA[constraint]]></category>

		<guid isPermaLink="false">http://blog.philippinedev.com/2008/08/26/how-to-remove-a-mysql-table-constraint/</guid>
		<description><![CDATA[ALTER TABLE `attributes` DROP FOREIGN KEY `attributes_ibfk_1`;
MySQL ERROR 1005 (HY000): Can’t create table ‘Table.frm’ (errno: 150).  Here&#8217;s the solution.
Example:
ALTER TABLE `race` DROP FOREIGN KEY `race_ibfk_1`;
ALTER TABLE `race`
  ADD CONSTRAINT `race_ibfk_1` FOREIGN KEY (`specieId`) REFERENCES `specie` (`specieId`) ON DELETE CASCADE;
]]></description>
			<content:encoded><![CDATA[<p><code>ALTER TABLE `attributes` DROP FOREIGN KEY `attributes_ibfk_1`;</code></p>
<p><a href="http://www.brainfault.com/2008/02/15/mysql-error-1005-hy000-cant-create-table-tablefrm-errno-150/">MySQL ERROR 1005</a> (HY000): Can’t create table ‘Table.frm’ (errno: 150).  Here&#8217;s the <a href="http://www.brainfault.com/2008/02/15/mysql-error-1005-hy000-cant-create-table-tablefrm-errno-150/">solution</a>.</p>
<p>Example:<br />
<code>ALTER TABLE `race` DROP FOREIGN KEY `race_ibfk_1`;</p>
<p>ALTER TABLE `race`<br />
  ADD CONSTRAINT `race_ibfk_1` FOREIGN KEY (`specieId`) REFERENCES `specie` (`specieId`) ON DELETE CASCADE;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philippinedev.com/2008/08/26/how-to-remove-a-mysql-table-constraint/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to mount an .iso image file?</title>
		<link>http://blog.philippinedev.com/2008/08/25/how-to-mount-an-iso-image-file/</link>
		<comments>http://blog.philippinedev.com/2008/08/25/how-to-mount-an-iso-image-file/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 11:00:27 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Linux Administration]]></category>

		<category><![CDATA[iso]]></category>

		<category><![CDATA[iso image file]]></category>

		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://blog.philippinedev.com/2008/08/25/how-to-mount-an-iso-image-file/</guid>
		<description><![CDATA[$ sudo mount -o loop /path/to/feisty-desktop-i386.iso /tmp/ubuntu-livecd
]]></description>
			<content:encoded><![CDATA[<p><code>$ sudo mount -o loop /path/to/feisty-desktop-i386.iso /tmp/ubuntu-livecd</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philippinedev.com/2008/08/25/how-to-mount-an-iso-image-file/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Find and Replace a String on the command line?</title>
		<link>http://blog.philippinedev.com/2008/08/25/how-to-find-and-replace-a-string-on-the-command-line/</link>
		<comments>http://blog.philippinedev.com/2008/08/25/how-to-find-and-replace-a-string-on-the-command-line/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 22:22:26 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Linux Administration]]></category>

		<category><![CDATA[command line]]></category>

		<category><![CDATA[find and replace]]></category>

		<guid isPermaLink="false">http://blog.philippinedev.com/2008/08/25/how-to-find-and-replace-a-string-on-the-command-line/</guid>
		<description><![CDATA[This command will replace all instances of &#8216;replaceme&#8217; with &#8216;newstring&#8217; in files &#8216;*.php&#8217; on /home/mysite/httpdocs.
find /home/mysite/httpdocs -name '*.php' &#124; xargs replace 'replaceme' 'newstring' --
]]></description>
			<content:encoded><![CDATA[<p>This command will replace all instances of &#8216;replaceme&#8217; with &#8216;newstring&#8217; in files &#8216;*.php&#8217; on <code>/home/mysite/httpdocs</code>.</p>
<blockquote><p><code style="font-size:0.9;">find /home/mysite/httpdocs -name '*.php' | xargs replace 'replaceme' 'newstring' --</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.philippinedev.com/2008/08/25/how-to-find-and-replace-a-string-on-the-command-line/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Refresh my DNS cached record?</title>
		<link>http://blog.philippinedev.com/2008/08/24/how-to-refresh-my-dns-cached-record/</link>
		<comments>http://blog.philippinedev.com/2008/08/24/how-to-refresh-my-dns-cached-record/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 21:19:39 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[DNS]]></category>

		<category><![CDATA[OpenDNS]]></category>

		<category><![CDATA[refresh DNS]]></category>

		<guid isPermaLink="false">http://blog.philippinedev.com/2008/08/24/how-to-refresh-my-dns-cached-record/</guid>
		<description><![CDATA[
Use OpenDNS free services by adding 208.67.222.222 and 208.67.220.220 on your /etc/resolv.conf.
Go to http://www.opendns.com/support/cache/ then enter the website address.

]]></description>
			<content:encoded><![CDATA[<ol>
<li>Use OpenDNS free services by adding <code>208.67.222.222</code> and <code>208.67.220.220</code> on your <code>/etc/resolv.conf</code>.</li>
<li>Go to <code><a title="http://www.opendns.com/support/cache/" href="http://www.opendns.com/support/cache/">http://www.opendns.com/support/cache/</a></code> then enter the website address.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.philippinedev.com/2008/08/24/how-to-refresh-my-dns-cached-record/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to list all users on a Linux machine?</title>
		<link>http://blog.philippinedev.com/2008/08/16/how-to-list-all-users-on-a-linux-machine/</link>
		<comments>http://blog.philippinedev.com/2008/08/16/how-to-list-all-users-on-a-linux-machine/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 22:28:35 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Linux Administration]]></category>

		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://blog.philippinedev.com/2008/08/16/how-to-list-all-users-on-a-linux-machine/</guid>
		<description><![CDATA[ cat /etc/passwd &#124; cut -d":" -f1
]]></description>
			<content:encoded><![CDATA[<p><code> cat /etc/passwd | cut -d":" -f1</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philippinedev.com/2008/08/16/how-to-list-all-users-on-a-linux-machine/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Multiple SSL Certificate on Single IP</title>
		<link>http://blog.philippinedev.com/2008/08/06/multiple-ssl-certificate-on-single-ip/</link>
		<comments>http://blog.philippinedev.com/2008/08/06/multiple-ssl-certificate-on-single-ip/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 17:10:08 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
		
		<category><![CDATA[Apache2]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Linux Administration]]></category>

		<category><![CDATA[Apache]]></category>

		<category><![CDATA[Multiple SSL]]></category>

		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://blog.philippinedev.com/2008/08/06/multiple-ssl-certificate-on-single-ip/</guid>
		<description><![CDATA[Follow the links:
Virtual host examples from Apache website.
http://httpd.apache.org/docs/2.0/vhosts/examples.html
Turns out that it is possible to have multiple VirtualHosts on port 80 (Default http), but because of a limitation of SSL, we can’t have multiple VirtualHosts on port 443 (Default https).
I solved the problem as follows. I created the two VirtualHosts on port 80, one on port [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Follow the links:</strong></p>
<blockquote><p>Virtual host examples from Apache website.</p></blockquote>
<p><a href="http://httpd.apache.org/docs/2.0/vhosts/examples.html">http://httpd.apache.org/docs/2.0/vhosts/examples.html</a></p>
<blockquote><p>Turns out that it is possible to have multiple VirtualHosts on port 80 (Default http), but because of a limitation of SSL, we can’t have multiple VirtualHosts on port 443 (Default https).<br />
I solved the problem as follows. I created the two VirtualHosts on port 80, one on port 443 and one on port 444.</p></blockquote>
<p><a href="http://www.vanstormbroek.nl/blog/?p=4">Shared IP, multiple vhosts and multiple SSL certificates on Apache</a></p>
<blockquote><p>The process is only 2 steps and involves modifying your Apache configuration.<br />
1.  Create virtual hosts “map file”.<br />
2.  Modify existing SSL vhost.</p>
<p><em>Caveat: The SSL certificate used will be common to all SSL vhosts.</em></p></blockquote>
<p><a href="http://sweon.net/2008/01/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2">Hosting multiple SSL vhosts on a single IP/Port/Certificate with Apache2</a></p>
<blockquote><p>The following article discusses the following:<br />
Basics Of Virtual Hosts, Name-Based Virtual Hosts, IP-Based Virtual Hosts, Configuring IP Aliasing, Virtual Hosts with IPs, Multiple Instances of Apache, Example for name based virtual hosts, Example for IP based virtual hosts.</p></blockquote>
<p><a href="http://www.debianadmin.com/creating-name-based-and-ip-based-virtual-hosts-in-apache.html">Creating Name Based and IP Based Virtual hosts in Apache</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philippinedev.com/2008/08/06/multiple-ssl-certificate-on-single-ip/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Unzip a .gz File</title>
		<link>http://blog.philippinedev.com/2008/07/28/how-to-unzip-a-compressed-gz-file/</link>
		<comments>http://blog.philippinedev.com/2008/07/28/how-to-unzip-a-compressed-gz-file/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 02:04:25 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[gzip]]></category>

		<category><![CDATA[unzip]]></category>

		<guid isPermaLink="false">http://blog.philippinedev.com/2008/07/28/how-to-unzip-a-compressed-gz-file/</guid>
		<description><![CDATA[$ gzip -d compressed_file.gz
]]></description>
			<content:encoded><![CDATA[<p><code>$ gzip -d compressed_file.gz</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philippinedev.com/2008/07/28/how-to-unzip-a-compressed-gz-file/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A Simple Menu With CSS Beautification</title>
		<link>http://blog.philippinedev.com/2008/07/26/a-simple-menu-with-css-beautification/</link>
		<comments>http://blog.philippinedev.com/2008/07/26/a-simple-menu-with-css-beautification/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 10:27:11 +0000</pubDate>
		<dc:creator>Raymond</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Menu]]></category>

		<guid isPermaLink="false">http://blog.philippinedev.com/2008/07/26/a-simple-menu-with-css-beautification/</guid>
		<description><![CDATA[  .test a {  	margin-top: 1px;  	display:block;   	line-height: 25px;  	border-left: solid 10px #DDDDDD;  	text-decoration: none;  	padding-left: 11px;  	background-color: #EEEEEE;  }  .test a:link {}  .test a:visited {}  .test a:hover {  	padding-left: 12px;  	border-left: solid 10px green;  	border-bottom: 1px #333333;  [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">  .test a {  	margin-top: 1px;  	display:block;   	line-height: 25px;  	border-left: solid 10px #DDDDDD;  	text-decoration: none;  	padding-left: 11px;  	background-color: #EEEEEE;  }  .test a:link {}  .test a:visited {}  .test a:hover {  	padding-left: 12px;  	border-left: solid 10px green;  	border-bottom: 1px #333333;          background-color: #CCCCCC;  	color: blue;  }  .test a:active {}  </style>
<div class="test"><a onclick="return false;" href="#">visitors, click here</a></div>
<div class="test"><a onclick="return false;" href="#">admin, proceed to saps</a></div>
<p><code>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;style type="text/css"&gt;<br />
</code><font color="#993300">body {<br />
font-size: 12px;<br />
font-family: arial;<br />
}<br />
a {<br />
margin-top: 1px;<br />
display:block;<br />
line-height: 25px;<br />
border-left: solid 10px #DDDDDD;<br />
text-decoration: none;<br />
padding-left: 11px;<br />
background-color: #EEEEEE;<br />
}<br />
a:link {}<br />
a:visited {}<br />
a:hover {<br />
padding-left: 12px;<br />
border-left: solid 10px green;<br />
border-bottom: 1px #333333;<br />
background-color: #CCCCCC;<br />
color: blue;<br />
}<br />
a:active {}</font><code><br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div style="margin: 50px 0 0 10px; width: 220px;"&gt;<br />
&lt;div&gt;&lt;a href="../saps.php"&gt;visitors, click here&lt;/a&gt;&lt;/div&gt;<br />
&lt;div&gt;&lt;a href="cms/"&gt;admin, proceed to saps&lt;/a&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philippinedev.com/2008/07/26/a-simple-menu-with-css-beautification/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
