<?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"
	>

<channel>
	<title>Alphatek - Steven's Tech Blog</title>
	<atom:link href="http://www.alphatek.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alphatek.info</link>
	<description>Random rants and tips about Fedora/CentOS Linux, Science, Software and other things I care about</description>
	<pubDate>Sat, 17 May 2008 11:15:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Cache problems with Evolution and POP accounts</title>
		<link>http://www.alphatek.info/2008/05/17/cache-problems-with-evolution-and-pop-accounts/</link>
		<comments>http://www.alphatek.info/2008/05/17/cache-problems-with-evolution-and-pop-accounts/#comments</comments>
		<pubDate>Sat, 17 May 2008 09:05:44 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
		
		<category><![CDATA[CentOS]]></category>

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

		<category><![CDATA[General Linux]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=44</guid>
		<description><![CDATA[When I migrated from Fedora 8 to Fedora 9, I used the backup function in Evolution. Before backing up my mail accounts (POP3), I deleted all the sent mails and emptied the trash because it was the perfect moment to do so and it would make the backup file a lot smaller. With 5 mails [...]]]></description>
			<content:encoded><![CDATA[<p>When I migrated from Fedora 8 to Fedora 9, I used the backup function in Evolution. Before backing up my mail accounts (POP3), I deleted all the sent mails and emptied the trash because it was the perfect moment to do so and it would make the backup file a lot smaller. With 5 mails left in Evolution, the backup file was still around 170MB compressed, strange heh?</p>
<p>I had a closer look at my .evolution folder and figured out that there was a huge &#8220;cache&#8221; directory for each mail account. This folder seems to contain ALL the messages I ever sent/received since the account&#8217;s creation.</p>
<p>I can&#8217;t see why there should be any cache for POP accounts (seems to be an IMAP feature), and why that cache is still there after emptying the trash&#8230;a Google search later, this seems to be <a href="http://bugzilla.gnome.org/show_bug.cgi?id=356456" target="_blank">a known bug</a>.</p>
<p><a href="http://www.alphatek.info/wp-content/uploads/2008/05/evolution-cache.png"><img class="alignnone size-full wp-image-45" title="evolution-cache" src="http://www.alphatek.info/wp-content/uploads/2008/05/evolution-cache.png" alt="" width="500" height="191" /></a></p>
<p>I manually deleted the content of the cache folders and everything seems to work fine, no consequence on my inbox content.</p>
<p>So, if you are using Evolution with a POP account and you wonder where your disk space has gone, have a look at this&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/05/17/cache-problems-with-evolution-and-pop-accounts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NetBeans 6.1 on Fedora 9</title>
		<link>http://www.alphatek.info/2008/05/15/netbeans-61-on-fedora-9/</link>
		<comments>http://www.alphatek.info/2008/05/15/netbeans-61-on-fedora-9/#comments</comments>
		<pubDate>Thu, 15 May 2008 19:04:45 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
		
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=42</guid>
		<description><![CDATA[With the introduction of OpenJDK in Fedora 9 (one of the best thing that could happen to Fedora if you ask me), you now have an easy access to the infinite power of a great IDE: NetBeans. Until now, I still used Windows a lot because of specific software like Enterprise Architect, Office 2007 (colleagues [...]]]></description>
			<content:encoded><![CDATA[<p>With the introduction of OpenJDK in Fedora 9 (one of the best thing that could happen to Fedora if you ask me), you now have an easy access to the infinite power of a great IDE: NetBeans. Until now, I still used Windows a lot because of specific software like Enterprise Architect, Office 2007 (colleagues who don&#8217;t want to switch to OOo) or NetBeans; now that the latter works almost out of the box with Fedora 9, I can reduce my Windows usage by 1/3 <img src='http://www.alphatek.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>To install NetBeans, you need to install the openjdk-devel package first; <span style="color: #99cc00;">yum install java-1.6.0-openjdk-devel</span> should resolve your problems. Then simply head to <a href="http://www.netbeans.org/" target="_blank">http://www.netbeans.org</a> and grab the edition you need&#8230;done.</p>
<p>Note that since version 6.1, you can&#8217;t simply install the PHP plugin on other editions than &#8220;NetBeans IDE Early Access for PHP&#8221; to highlight your PHP code. If you wonder, all editions can be installed in parallel and will register correctly in the Gnome Applications/Programming menu. Fedora 9 is definitively a huge step forward.</p>
<p><a href="http://www.alphatek.info/wp-content/uploads/2008/05/screenshot-netbeans-ide-early-access-for-php.png"><img class="alignnone size-medium wp-image-43" title="screenshot-netbeans-ide-early-access-for-php" src="http://www.alphatek.info/wp-content/uploads/2008/05/screenshot-netbeans-ide-early-access-for-php-300x169.png" alt="" width="300" height="169" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/05/15/netbeans-61-on-fedora-9/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fedora 9 day 0</title>
		<link>http://www.alphatek.info/2008/05/13/fedora-9-day-0/</link>
		<comments>http://www.alphatek.info/2008/05/13/fedora-9-day-0/#comments</comments>
		<pubDate>Tue, 13 May 2008 21:12:03 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
		
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=41</guid>
		<description><![CDATA[As everyone probably knows, Fedora 9 was released earlyer today, you can grab a copy on http://fedoraproject.org/en/get-fedora
I installed it and overall it&#8217;s a much better experience than Fedora 8! All control keys on my laptop work  
As for now, I only encountered a very serious bug: I have a swiss-french (fr_CH-latin1) keyboard, and that&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>As everyone probably knows, Fedora 9 was released earlyer today, you can grab a copy on <a href="http://fedoraproject.org/en/get-fedora" target="_blank">http://fedoraproject.org/en/get-fedora</a></p>
<p>I installed it and overall it&#8217;s a much better experience than Fedora 8! All control keys on my laptop work <img src='http://www.alphatek.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As for now, I only encountered a <strong>very serious bug</strong>: I have a swiss-french (fr_CH-latin1) keyboard, and that&#8217;s what I chose during the installation process. Later during the install, you have to create an user and enter a password, that&#8217;s what I did, and&#8230;I couldn&#8217;t login to Gnome with that password! I had to Alt-F2, login as root and manually change the password for my user with &#8220;passwd&#8221;. This is a bug that will affect absolutely all swiss-french users at least&#8230;</p>
<p>That&#8217;s it for now. Ah, I updated my &#8220;<a href="http://www.alphatek.info/useful-software/" target="_blank">software to install</a>&#8221; page to get Fedora 9 with mp3/wmv/divx support&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/05/13/fedora-9-day-0/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sun xVM VirtualBox 1.6</title>
		<link>http://www.alphatek.info/2008/05/04/sun-xvm-virtualbox-16/</link>
		<comments>http://www.alphatek.info/2008/05/04/sun-xvm-virtualbox-16/#comments</comments>
		<pubDate>Sun, 04 May 2008 13:48:46 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
		
		<category><![CDATA[/dev/null]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=40</guid>
		<description><![CDATA[I didn&#8217;t see it until now, but VirtualBox version 1.6 was released a couple of days ago. You can get it on Sun&#8217;s website. Interestingly, there is already a binary for Fedora 9 but I think there is a typo in the drop box&#8230;&#8221;Fedora 9 AMD&#8221; is probably the 64-Bit version.
Changelog:

The new Sun livery
Solaris and [...]]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t see it until now, but VirtualBox version 1.6 was released a couple of days ago. You can get it on <a href="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=innotek-1.6-G-F@CDS-CDS_SMI" target="_blank">Sun&#8217;s website</a>. Interestingly, there is already a binary for Fedora 9 but I think there is a typo in the drop box&#8230;&#8221;Fedora 9 AMD&#8221; is probably the 64-Bit version.</p>
<p>Changelog:</p>
<ul>
<li>The new Sun livery</li>
<li>Solaris and Mac versions no longer in beta</li>
<li>Guest Additions for Solaris</li>
<li>Seamless windowing for Solaris and Linux guests</li>
<li>SATA support for up to 32 hard disks per VM (first product in the industry to do SATA!)</li>
<li>PAE support for guests (memory model required by some server OSes)</li>
<li>Web Services API for remote management</li>
<li>Significant improvements to scalability</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/05/04/sun-xvm-virtualbox-16/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SSH authentication with your public key</title>
		<link>http://www.alphatek.info/2008/05/03/ssh-authentication-with-your-public-key/</link>
		<comments>http://www.alphatek.info/2008/05/03/ssh-authentication-with-your-public-key/#comments</comments>
		<pubDate>Sat, 03 May 2008 08:43:20 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
		
		<category><![CDATA[CentOS]]></category>

		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=39</guid>
		<description><![CDATA[I can see that you are lazy, and I know how hard it is to type an user name and password each time you want to login via SSH on a server.
Today, we are going to learn how to configure your computer and a server to allow automatic SSH authentications using your public RSA key. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I can see that you are lazy, and I know how hard it is to type an user name and password each time you want to login via SSH on a server.</p>
<p style="text-align: left;">Today, we are going to learn how to configure your computer and a server to allow automatic SSH authentications using your public RSA key. Less work = More fun!</p>
<h4>Configuration on your computer:</h4>
<p>As your normal user, open a terminal and type <span style="color: #99cc00;">ssh-keygen</span></p>
<p>It will ask you some questions, you can simply press enter to acknowledge the default choices. You don&#8217;t need to enter a password here if you don&#8217;t want to be asked for it at each login on the server, it&#8217;s not a security flaw. The output should be something like that:</p>
<pre>[Steven@HP6710 ~]$ ssh-keygen</pre>
<pre>Generating public/private rsa key pair.</pre>
<pre>Enter file in which to save the key (/home/Steven/.ssh/id_rsa):</pre>
<pre>Enter passphrase (empty for no passphrase):</pre>
<pre>Enter same passphrase again:</pre>
<pre>Your identification has been saved in /home/Steven/.ssh/id_rsa.</pre>
<pre>Your public key has been saved in /home/Steven/.ssh/id_rsa.pub.</pre>
<p>The important thing is that you have 2 new files in your user/.ssh directory.</p>
<ul>
<li>id_rsa is your <strong>private key</strong>, you should NEVER give it away.</li>
<li>id_rsa.pub on the other side is your <strong>public key</strong>, the one that you can give away.</li>
</ul>
<h4>Configuration on the server:</h4>
<p>As the user you wish to be logged in (let&#8217;s say root), also run the <span style="color: #99cc00;">ssh-keygen</span> command to create the /root/.ssh directory. Now go to your /root/.ssh directory and create a text file named <span style="color: #99cc00;">authorized_keys2</span>. Copy the content of your computer&#8217;s public key file (id_rsa.pub on HP6710) to this file and save it.</p>
<p>Job done, now you can run <span style="color: #99cc00;">ssh root@server</span> from your computer and it will log you in automagically <img src='http://www.alphatek.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/05/03/ssh-authentication-with-your-public-key/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My 6th wireless router</title>
		<link>http://www.alphatek.info/2008/05/02/my-6th-wireless-router/</link>
		<comments>http://www.alphatek.info/2008/05/02/my-6th-wireless-router/#comments</comments>
		<pubDate>Fri, 02 May 2008 15:25:19 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
		
		<category><![CDATA[/dev/null]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=37</guid>
		<description><![CDATA[I&#8217;m using wireless home routers and Access Points since a very long time, I remember when I paid up to 200€ for an early Linksys 802.11b Access Point. The only problem I have with them, is that they always die horribly after a while. Let&#8217;s go back in my router-love history&#8230;I had the following products:

2x [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using wireless home routers and Access Points since a very long time, I remember when I paid up to 200€ for an early Linksys 802.11b Access Point. The only problem I have with them, is that they always die horribly after a while. Let&#8217;s go back in my router-love history&#8230;I had the following products:</p>
<ul>
<li><strong>2</strong><strong>x Linksys WAP11</strong>: the power supply died and burned the whole PCB. They both lasted 1 year.</li>
<li><strong>Linksys WAP54G</strong>: the power supply also died after a long agony during which the wireless connection was less and less reliable. It lasted 2 years.</li>
<li><strong>D-Link DI-824VUP+</strong>: the wireless connection was never reliable and the supposed PPTP VPN-server function never worked. They stopped to support the product roughly 6 months after it was released. The biggest piece of shit I ever had. It&#8217;s still in operation as a purely Ethernet router.</li>
<li><strong>D-Link DI-524</strong>: the wireless part of the router died today. It lasted 2 years. It had a very short signal range too.</li>
</ul>
<p>Today, I replaced the DI-524 with a brand new <a href="http://www.zyxel.com/web/product_family_detail.php?PC1indexflag=20040520161313&amp;CategoryGroupNo=D6E54FEE-BE55-46BB-B3DB-29E3361862EE" target="_blank">ZyXEL NBG334W</a> and god is it better! Simply by looking at the Web interface and the manual, you can tell that this product is in an other class. It&#8217;s a real configuration interface, with options you need and you can also access it via Telnet. Forget Linksys&#8217; or D-Link&#8217;s Playmobile interface. The signal strength and range are good too.</p>
<p><a href="http://www.alphatek.info/wp-content/uploads/2008/05/zyxel.png"><img class="alignnone size-medium wp-image-38" title="zyxel" src="http://www.alphatek.info/wp-content/uploads/2008/05/zyxel-300x177.png" alt="" width="300" height="177" /></a></p>
<p>ZyXEL always had a good reputation, we used a lot of their products at work but I never tried their home products. At around 30€, it&#8217;s not that expensive. Note the nice &#8220;Guest WLAN&#8221; function.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/05/02/my-6th-wireless-router/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My first RPM</title>
		<link>http://www.alphatek.info/2008/04/29/my-first-rpm/</link>
		<comments>http://www.alphatek.info/2008/04/29/my-first-rpm/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 16:30:50 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
		
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=35</guid>
		<description><![CDATA[As I said last week, I packaged the PHP MDB2 driver for PostgreSQL as an RPM for Fedora 8 and 9. Actually, this is my first self-made RPM ever and I&#8217;m quite happy with it.
I learned my way trough SPEC files and rpmbuild thanks to this excellent documentation on the wiki and of course by [...]]]></description>
			<content:encoded><![CDATA[<p>As I said last week, I packaged the PHP MDB2 driver for PostgreSQL as an RPM for Fedora 8 and 9. Actually, this is my first self-made RPM ever and I&#8217;m quite happy with it.</p>
<p>I learned my way trough <a href="http://www.alphatek.info/divers/php-pear-MDB2-Driver-pgsql.spec" target="_blank">SPEC</a> files and rpmbuild thanks to <a href="http://docs.fedoraproject.org/drafts/rpm-guide-en/" target="_blank">this excellent documentation</a> on the wiki and of course by looking at other SPEC files&#8230;I love Open Source for that!</p>
<p>If I don&#8217;t detect any bugs, I&#8217;ll try to push this package in Fedora and become an active contributor <img src='http://www.alphatek.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ah, my homemade Hackergotchi was also accepted. I now have a face on the Planet. Yes, it&#8217;s scary.</p>
<p>Edit: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=438805" target="_blank">someone already had the same idea</a> <img src='http://www.alphatek.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/04/29/my-first-rpm/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Bad power supplies</title>
		<link>http://www.alphatek.info/2008/04/25/bad-power-supplies/</link>
		<comments>http://www.alphatek.info/2008/04/25/bad-power-supplies/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 18:36:25 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
		
		<category><![CDATA[/dev/null]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=34</guid>
		<description><![CDATA[Sometimes, you may wonder why you should buy &#8220;expensive&#8221; hardware instead of el-cheapo-made-in-China stuff. Well, here is an example why the certifications and safety norms are important, and why you should pay a couple of € more to get a better quality:

This is what happens to a Heden PSX-A830 power supply under normal load. 2 [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, you may wonder why you should buy &#8220;expensive&#8221; hardware instead of el-cheapo-made-in-China stuff. Well, here is an example why the certifications and safety norms are important, and why you should pay a couple of € more to get a better quality:<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/zWt3St_MhSY" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/zWt3St_MhSY" wmode="transparent"></embed></object><br />
This is what happens to a Heden PSX-A830 power supply under normal load. 2 of these PSU&#8217;s were tested with the same result. It is simply <strong>DANGEROUS</strong>, it should die by itself and not plunge your whole house in the dark. You should know that Heden is a purely commercial brand designed by Chinese manufacturers to sell cheap power supplies in Europe under a single name.</p>
<p>This is part of a <a href="http://www.canardplus.com/dossier-36-guide_alimentations_2008.html" target="_blank">french article</a> from a friend (Doc Teraboule) at Canard PC.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/04/25/bad-power-supplies/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Updated kernel for the Fedora 8 Alpha port</title>
		<link>http://www.alphatek.info/2008/04/25/updated-kernel-for-the-fedora-8-alpha-port/</link>
		<comments>http://www.alphatek.info/2008/04/25/updated-kernel-for-the-fedora-8-alpha-port/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 09:31:34 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
		
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=32</guid>
		<description><![CDATA[As announced by Jay Estabrook on the axp-list, there is a 2.6.24 kernel available for the Fedora 8 Alpha port (along with some other updates). You may not see these new files if you run a yum update because of yum&#8217;s cache, the directory structure on the update server has apparently been changed as far [...]]]></description>
			<content:encoded><![CDATA[<p>As announced by Jay Estabrook on the <a href="https://www.redhat.com/archives/axp-list/2008-April/msg00022.html" target="_blank">axp-list</a>, there is a 2.6.24 kernel available for the Fedora 8 Alpha port (along with some other updates). You may not see these new files if you run a <span style="color: #99cc00;">yum update</span> because of yum&#8217;s cache, the directory structure on the update server has apparently been changed as far as I can tell. So simply run a <span style="color: #99cc00;">yum clean all</span> and voilà, you can install the new kernel.</p>
<p><img class="alignnone size-full wp-image-33" title="alphapowered" src="http://www.alphatek.info/wp-content/uploads/2008/04/alphapowered.gif" alt="" width="337" height="111" /></p>
<p>Once it is installed, you need to tell aboot (the secondary boot loader for Linux/Alpha, we don&#8217;t have Grub) how to boot on the new kernel, edit you /etc/aboot.conf file and add a new configuration:</p>
<pre>0:1/vmlinuz-2.6.24.4-64.2axp.fc8 initrd=/initrd-2.6.24.4-64.2axp.fc8.img
root=/dev/VolGroup00/LogVol00 selinux=off rhgb quiet</pre>
<pre>1:1/vmlinuz-2.6.23.10-97.fc8.1axp initrd=/initrd-2.6.23.10-97.fc8.1axp.img
root=/dev/VolGroup00/LogVol00 selinux=off rhgb quiet</pre>
<p>The first number is an unique identifier used by the SRM. For example, you can boot on the 2.6.23 kernel with <span style="color: #99cc00;">boot dka0 -fl &#8220;1&#8243;</span> and on the 2.6.24 kernel with <span style="color: #99cc00;">boot dka0 -fl &#8220;0&#8243;</span> (if your disk is recognized as DKA0 by the SRM). The second number represents the partition the kernel resides on, BSD-style. <span style="color: #99cc00;">man aboot.conf</span> is your friend if you are lost!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/04/25/updated-kernel-for-the-fedora-8-alpha-port/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP, Pear MDB2 and PostgreSQL</title>
		<link>http://www.alphatek.info/2008/04/23/php-pear-mdb2-and-postgresql/</link>
		<comments>http://www.alphatek.info/2008/04/23/php-pear-mdb2-and-postgresql/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 18:40:48 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
		
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=30</guid>
		<description><![CDATA[Did you ever wonder how to write portable PHP code that works on MySQL, PostgreSQL, Oracle, MSSQL or SQLite? Then what you need is the Pear MDB2 package. It&#8217;s an abstraction layer between your PHP code and the database. It&#8217;s really not hard to learn and use! Of course, you have to use &#8220;standard&#8221; SQL [...]]]></description>
			<content:encoded><![CDATA[<p>Did you ever wonder how to write portable PHP code that works on MySQL, PostgreSQL, Oracle, MSSQL or SQLite? Then what you need is the <a href="http://pear.php.net/package/MDB2" target="_blank">Pear MDB2 package</a>. It&#8217;s an abstraction layer between your PHP code and the database. It&#8217;s really not hard to learn and use! Of course, you have to use &#8220;standard&#8221; SQL queries that are common to all databases in your PHP code <img src='http://www.alphatek.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>In Fedora 8/9, you can install the MDB2 package with <span style="color: #99cc00;">yum install php-pear-MDB2</span>. This is the base package, now you need to install a driver for your database. To access MySQL it&#8217;s <span style="color: #99cc00;">yum install php-pear-Driver-mysqli</span>.</p>
<p><a href="http://www.alphatek.info/wp-content/uploads/2008/04/screenshot-add-remove-software.png"><img class="alignnone size-medium wp-image-31" title="screenshot-add-remove-software" src="http://www.alphatek.info/wp-content/uploads/2008/04/screenshot-add-remove-software-300x131.png" alt="" width="300" height="131" /></a></p>
<p>Note that on the screenshot above (PackageKit in F9), there are only 2 MySQL drivers available as RPM&#8217;s in Fedora. This little choice defeats the purpose of the abstraction layer, so I&#8217;m probably going to create driver packages for the other databases (or at least PostgreSQL) next week and try to push them into Fedora.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/04/23/php-pear-mdb2-and-postgresql/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
