<?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>W dream</title>
	<atom:link href="http://www.wdream.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wdream.com</link>
	<description>Tech and more...</description>
	<lastBuildDate>Wed, 17 Feb 2010 06:31:56 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Install 3ware Tools on Debian Lenny</title>
		<link>http://www.wdream.com/2010/02/how-to-install-3ware-tools-on-debian-lenny/</link>
		<comments>http://www.wdream.com/2010/02/how-to-install-3ware-tools-on-debian-lenny/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 06:19:41 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[3ware]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[RAID]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=521</guid>
		<description><![CDATA[Problem
In order to manage the 3ware raid controller under Linux, an embedded web server needs to be installed.  3ware provides a download-able tarball on their site, however, the installation on Lenny is problematic.  The following steps explain how to get the install and the configuration done.
Solution

Edit /etc/apt/sources.list and add the following lines:
# 3Ware
deb [...]]]></description>
			<content:encoded><![CDATA[<h4>Problem</h4>
<p>In order to manage the 3ware raid controller under Linux, an embedded web server needs to be installed.  3ware provides a download-able tarball on their site, however, the installation on Lenny is problematic.  The following steps explain how to get the install and the configuration done.</p>
<h4>Solution</h4>
<ul>
<li>Edit <code>/etc/apt/sources.list</code> and add the following lines:<code><br />
# 3Ware<br />
deb http://jonas.genannt.name/debian lenny restricted<br />
</code></li>
<li><code># wget -O - http://jonas.genannt.name/debian/jonas_genannt.pub | apt-key add -</code></li>
<li><code># apt-get update</code></li>
<li><code># apt-cache search 3ware</code></li>
<li><code># aptitude install 3ware-3dm2-binary 3ware-cli-binary</code></li>
<li><code># cd /etc/3dm2</code></li>
<li><code># cp  3dm2.conf 3dm2.conf-dist</code></li>
<li>Edit <code>3dm2.conf</code> set :<code><br />
RemoteAccess 1<br />
</code></li>
<li><code># /etc/init.d/3dm2 restart</code></li>
<li>Browse to <code>https://yourhost:888/</code></li>
<li>Select <code>3DM 2 Settings</code> and change the default password <code>3ware</code> to something secure.  If you lock yourself out, you can copy the original config file back in place as it has the default password.</li>
</ul>
<h4>References</h4>
<ul>
<li><a href="http://lena.franken.de/linux/3ware/">3ware raid controller with debian linux</a></li>
<li><a href="http://jonas.genannt.name/">3ware Debian repository</a></li>
<li><a href="http://koninkx.net/index.php/howto/1-linux/5-install-3ware-3dm2-tools-on-debian-40">Install 3Ware 3DM2 Tools on Debian 4.0</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.wdream.com/2010/02/how-to-install-3ware-tools-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVZ shared directory mounting from host to guest systems</title>
		<link>http://www.wdream.com/2010/02/openvz-shared-directory-mounting-from-host-to-guest-systems/</link>
		<comments>http://www.wdream.com/2010/02/openvz-shared-directory-mounting-from-host-to-guest-systems/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 09:19:05 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bind Mount]]></category>
		<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[Virtuozzo]]></category>
		<category><![CDATA[vzctl]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=515</guid>
		<description><![CDATA[Problem
An OpenVZ host can share any part of its filesystem with any guest operating system running on it.  This post describes how to manually mount a filesystem tree from the host OpenVZ box to a guest, and how to automate the process.  We will also address an error that can happen with a [...]]]></description>
			<content:encoded><![CDATA[<h4>Problem</h4>
<p>An OpenVZ host can share any part of its filesystem with any guest operating system running on it.  This post describes how to manually mount a filesystem tree from the host OpenVZ box to a guest, and how to automate the process.  We will also address an error that can happen with a correctly configured file preventing the automated mount process.</p>
<h4>Solution</h4>
<h5>Manual mount</h5>
<p>To mount a filesystem tree to any guest from the host, run the following:<code><br />
mount --bind /path/to/tree/on/host ${VE_ROOT}/path/to/tree/on/guest</code><br />
You need to replace <code>${VE_ROOT}</code> with <code>/var/lib/vz/root/&lt;guest id></code></p>
<h5>Automate the mount</h5>
<p>There is two options to automate the mount: automation for each guest and automation for a specific guest.  The file looks the same either way.  For setting up a mount on each guest, use <code>vps.mount</code> and <code>vps.umount</code> as the file names.  To use automated mount for a specific guest, use the the filename that is <code>&lt;guest id>.mount</code> and <code>&lt;guest id>.umount</code>.  For example, if your container id for your virtual private server (guest) is 123, then the specific files to set the mount and unmount code for are <code>123.mount</code> and <code>123.umount</code>.  This is how the <code>.mount</code> file needs to look:<code></p>
<p>#!/bin/bash<br />
source /etc/vz/vz.conf<br />
source ${VE_CONFFILE}<br />
echo "Starting ${VEID}.mount..."<br />
mount --bind /path/to/tree/on/host ${VE_ROOT}/path/to/tree/on/guest<br />
echo "...${VEID}.mount complete"<br />
</code><br />
And this is how the <code>.umount</code> file needs to look:<code></p>
<p>#!/bin/bash<br />
source /etc/vz/vz.conf<br />
source ${VE_CONFFILE}<br />
echo "Starting ${VEID}.umount..."<br />
umount ${VE_ROOT}/path/to/tree/on/guest<br />
echo "...${VEID}.umount done"<br />
</code><br />
Note that the <code>echo</code> is necessairy, otherwise, the filesystem will most likely not mount correctly.  This is due to the fact that on <code>start</code> and <code>restart</code> the <code>vzctl</code> program will call <code>umount</code> first, and if that script fails (returns a non zero exit code) the <code>.mount</code> script isn&#8217;t called.  Thus, if the directory isn&#8217;t mounted and there isn&#8217;t an <code>echo</code> at the end of the script, the script returns the exit code of the last command which in this case is the exit code from the failed <code>umount</code> command.</p>
<h4>References</h4>
<ul>
<li><a href="http://forum.openvz.org/index.php?t=msg&#038;goto=38348&#038;">OpenVZ Forum</a></li>
<li><a href="http://wiki.openvz.org/Bind_mounts">OpenVZ Bind Mounts</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.wdream.com/2010/02/openvz-shared-directory-mounting-from-host-to-guest-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AIX 6.1 OS Patches the Easy Way</title>
		<link>http://www.wdream.com/2010/01/aix-6-1-os-patches-the-easy-way/</link>
		<comments>http://www.wdream.com/2010/01/aix-6-1-os-patches-the-easy-way/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 04:43:24 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[AIX 6.1]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[Patch]]></category>
		<category><![CDATA[smit]]></category>
		<category><![CDATA[smitty]]></category>
		<category><![CDATA[SUMA]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=464</guid>
		<description><![CDATA[Summary
Patching AIX can be intimidating at first for someone coming from the Windows / Linux world.  AIX has capabilities that natively support production quality operations.  One of these qualities is that one can install patches on an alternative volume, make that volume bootable for testing and allowing an easy way out if something [...]]]></description>
			<content:encoded><![CDATA[<h4>Summary</h4>
<p>Patching AIX can be intimidating at first for someone coming from the Windows / Linux world.  AIX has capabilities that natively support production quality operations.  One of these qualities is that one can install patches on an alternative volume, make that volume bootable for testing and allowing an easy way out if something doesn&#8217;t work right.  Since AIX 5.3, it is also possible to install patches on the same volume as the boot volume and define boot profiles to boot at a certain patch level.  In this post we will just look at the basics of patching, emulating the equivalent of &#8220;yum update&#8221; or the &#8220;windows express update&#8221; (taking Linux / Windows as analogy).</p>
<h4>Steps</h4>
<ul>
<li>Download available patches for current technology level:<code><br />
smitty suma &lt;Enter><br />
Download Updates Now (Easy) &lt;Enter><br />
Download All Latest Fixes &lt;Enter> &lt;Enter></code></li>
<li>Install patches:<code><br />
smitty update_all <enter><br />
specify INPUT device: /usr/sys/inst.images/installp/ppc &lt;Enter><br />
go down to "ACCEPT new license agreements?" &lt;Tab> (to  switch to "yes") &lt;Enter> &lt;Enter></enter></code></li>
</ul>
<p>That&#8217;s it.  You can reboot in case there were kernel updates or APARs that recommend a reboot.  To check the current patch level, you can run <code>oslevel -s</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wdream.com/2010/01/aix-6-1-os-patches-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cacti Install on RHEL 5 or CentOS 5</title>
		<link>http://www.wdream.com/2010/01/cacti-install-on-rhel-5-or-centos-5/</link>
		<comments>http://www.wdream.com/2010/01/cacti-install-on-rhel-5-or-centos-5/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 19:36:48 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Cacti]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RHEL 5]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=459</guid>
		<description><![CDATA[Introduction
Cacti is a great tool to graph performance of the various hardware components of a network.  With the use of the yum repository manager, it is very simple to install on Red Hat Enterprise Linux 5 or CentOS 5.
Install steps

First make sure that you have the dag repository configured in yum.  Edit or [...]]]></description>
			<content:encoded><![CDATA[<h4>Introduction</h4>
<p><a href="http://www.cacti.net/">Cacti</a> is a great tool to graph performance of the various hardware components of a network.  With the use of the <code>yum</code> repository manager, it is very simple to install on <a href="http://www.redhat.com/">Red Hat Enterprise Linux 5</a> or <a href="http://centos.org/">CentOS 5</a>.</p>
<h4>Install steps</h4>
<ul>
<li>First make sure that you have the <code><a href="http://dag.wieers.com/rpm/">dag</a></code> repository configured in <code>yum</code>.  Edit or create the file <code>/etc/yum.repos.d/dag.repo</code>:<code><br />
[dag]<br />
name=Dag RPM Repository for Red Hat Enterprise Linux<br />
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag<br />
gpgcheck=0<br />
enabled=1<br />
protect=0</code></li>
<li>Now install the required packages:<code><br />
sudo yum install net-snmp mysql mysql-server cacti</code></li>
<li>Edit the /etc/httpd/conf.d/cacti.conf file to allow access to cacti as needed.</li>
<li>Make sure Apache and MySQL are started and set to start automatically:<code><br />
sudo service mysqld start<br />
sudo service httpd start<br />
sudo chkconfig –level 345 mysqld on<br />
sudo chkconfig –level 345 httpd on</code></li>
<li>Set up the cacti database in <a href="http://www.mysql.com/">MySQL</a>:<code><br />
sudo mysqladmin –user=root create cacti<br />
cd /var/www/cacti<br />
sudo mysql cacti < cacti.sql<br />
sudo mysql --user=root mysql<br />
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cactiuser’;<br />
mysql> SET PASSWORD FOR cactiuser = PASSWORD('my_super_secret_cacti_password');<br />
mysql> flush privileges;<br />
mysql> exit<br />
sudo mysqladmin –user=root password "my_super_secret_root_password"</code></li>
<li>Setup the cacti poll schedule in /etc/crontab:<code><br />
*/5 * * * * cacti php /var/www/cacti/poller.php > /dev/null 2>&#038;1</code></li>
<li>Run the cacti installer in the browser:<code><br />
http://your.server.com/cacti/index.php</code> provide the user and password for the database, you can accept all defaults and just click next</li>
<li>That is it, you are good to go.</li>
</ul>
<h4>References</h4>
<p><a href="http://blogs.kranich.org/karl/2006/09/14/installing-cacti-on-centos-with-yum/">Installing Cacti on CentOS with yum</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wdream.com/2010/01/cacti-install-on-rhel-5-or-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing DB2 Express C 9.5 on Mac OS X 10.6</title>
		<link>http://www.wdream.com/2010/01/installing-db2-express-c-9-5-on-mac-os-x-10-6/</link>
		<comments>http://www.wdream.com/2010/01/installing-db2-express-c-9-5-on-mac-os-x-10-6/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 14:10:57 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[DB2 9.5]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[OS X 10.6]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=455</guid>
		<description><![CDATA[OS X developers do not need to use a virtual machine any longer to be able to run DB2 in their favorite development environment.  The latest version of DB2 9.5 available for download works on Snow Leopard (OS X 10.6).]]></description>
			<content:encoded><![CDATA[<h4>Summary</h4>
<p>DB2 Express C 9.5 is now available on OS X.  As a result OS X developers do not need to use a virtual machine any longer to be able to run DB2 in their favorite development environment.  And what more, the latest version available for download also works on Snow Leopard (OS X 10.6).</p>
<h4>Installation Steps</h4>
<p>Antonio Cangiano (see below) has created very good step by step instructions, as well as a demo of the install process.   Here are a couple of issues one might encounter:</p>
<ul>
<li>I recommend setting up a separate DB2 user to own the db2 install, for example <code>db2inst1</code></li>
<li>After the install or the first start, DB2 might freeze, and prevent any connections.  You might need to kill the db2* processes and start DB2 again.</li>
<li>Remember to source the environment required to run DB2 command line tools:<code><br />
. sqllib/db2profile </code></li>
<li>Profile can be loaded automatically by adding the above line to .<code>bash_profile</code> in your home directory</li>
<li>Allow all admin users to access the DB2 instance:<code><br />
db2 update dbm cfg using sysadm_group Admin</code></li>
<li>When trying <code>db2fs</code>, it will crash on Firefox 3, the easiest fix is to download and old version of Firefox, and give the path to that version when prompted by <code>db2fs</code></li>
<li>Make sure TCP/IP service in correctly configured in <code>/etc/services</code> and in DB2:<code><br />
db2 update dbm cfg using SVCENAME db2c_db2inst1<br />
db2set DB2COMM=tcpip</code></li>
<li>Add catalog entries for your remote databases:<code><br />
db2 catalog tcpip node DBNAME remote db2box.domain.com server 5000X</code></li>
</ul>
<h4>References</h4>
<ul>
<li><a href="http://antoniocangiano.com/2009/01/20/installing-db2-on-mac-os-x/">Install DB2 on Mac OS X and give us feedback</a> by <a href="http://antoniocangiano.com/about">Antonio Cangiano</a></li>
<li><a href="http://it.toolbox.com/blogs/db2luw/db2-expressc-now-available-on-mac-os-x-30590">DB2 Express-C Now Available on Mac OS X</a> by <a href="http://it.toolbox.com/people/ceaton55/">Chris Eaton</a></li>
<li><a href="http://antoniocangiano.com/2009/04/27/screencast-on-how-to-install-db2-express-c-on-mac-os-x/">Screencast on how to install DB2 Express-C on Mac OS X</a> by <a href="http://antoniocangiano.com/about">Antonio Cangiano</a></li>
<li><a href="http://antoniocangiano.com/2009/08/28/db2-on-mac-os-x-snow-leopard/">DB2 on Mac OS X Snow Leopard</a> by <a href="http://antoniocangiano.com/about">Antonio Cangiano</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.wdream.com/2010/01/installing-db2-express-c-9-5-on-mac-os-x-10-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting up shared VMWare Fusion host folders on CentOS and RHEL guest</title>
		<link>http://www.wdream.com/2010/01/setting-up-shared-vmware-fusion-host-folders-on-centos-and-rhel-guest/</link>
		<comments>http://www.wdream.com/2010/01/setting-up-shared-vmware-fusion-host-folders-on-centos-and-rhel-guest/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 13:11:59 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[OS X 10.6]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Shared Folders]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[VMWare Fusion]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=453</guid>
		<description><![CDATA[Problem
How to view folders from the Mac that hosts the VMWare Fusion guest operating system CentOS or Red Hat Linux?
Solution

First, make sure that the VMWare Tools are installed.  That always helps.
Next, in the WMWare configuration menu of the guest, set up the desired shared folders.  There might be already a default shared folder [...]]]></description>
			<content:encoded><![CDATA[<h4>Problem</h4>
<p>How to view folders from the Mac that hosts the VMWare Fusion guest operating system CentOS or Red Hat Linux?</p>
<h4>Solution</h4>
<ul>
<li>First, make sure that the VMWare Tools are installed.  That always helps.</li>
<li>Next, in the WMWare configuration menu of the guest, set up the desired shared folders.  There might be already a default shared folder pointing to the user&#8217;s home directory.</li>
<li>Next, in the guest OS, <code>ls -ld /mnt/hgfs</code> will display the available shared folders.</li>
</ul>
<h4>References</h4>
<p><a href="http://lists.centos.org/pipermail/centos-virt/2008-February/000203.html">[CentOS-virt] CentOS 5.1 guide for VMware Fusion</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wdream.com/2010/01/setting-up-shared-vmware-fusion-host-folders-on-centos-and-rhel-guest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN write UDPv4: Can&#8217;t assign requested address (code=49)</title>
		<link>http://www.wdream.com/2010/01/openvpn-write-udpv4-cant-assign-requested-address-code49/</link>
		<comments>http://www.wdream.com/2010/01/openvpn-write-udpv4-cant-assign-requested-address-code49/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 12:57:18 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[OS X 10.6]]></category>
		<category><![CDATA[Tunnelblick]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=451</guid>
		<description><![CDATA[To solve the problem, the easiest way is to flush the routes by rebooting.  The elegant way however is to shut down the interface connecting the Mac to the Internet, flush the routing table, and bring the interface back up. ]]></description>
			<content:encoded><![CDATA[<h4>Problem</h4>
<p>On Max OS X, when trying to connect to an OpenVPN gateway, you may encounter the following error:<code><br />
2010-01-21 05:14:59 write UDPv4: Can't assign requested address (code=49)<br />
2010-01-21 05:15:01 write UDPv4: Can't assign requested address (code=49)<br />
...<br />
</code><br />
The error would repeat itself indefinitely.</p>
<h4>Root Cause</h4>
<p>The TCP stack of the Mac has a bug that can cause the routing table to get corrupted.</p>
<h4>Solution</h4>
<p>The routing table needs to be flushed on the interface used to connect to the Internet.  Typically, </p>
<ul>
<li><code>en0</code>: ethernet (wired) interface</li>
<li><code>en1</code>: wlan (wireless) interface</li>
</ul>
<p>The easiest way is to flush the routes is to reboot.  The elegant way however is to shut down the interface connecting the Mac to the Internet, flush the routing table, and bring the interface back up.  For example, assuming a wired connection, open a terminal or an X11 xterm window and issue the following commands:<code><br />
sudo ifconfig en0 down<br />
sudo route flush<br />
sudo ifconfig en0 up<br />
</code><br />
In case the command line hangs after the flush command, just open a new terminal and run the last command from there.  When you are done, you can close all terminals.  If you are connecting with wireless, replace <code>en0</code> with <code>en1</code>.</p>
<h4>References</h4>
<p><a href="http://my.anuson.com/knowledgebase/1/OpenVPN-error-write-UDPv4-Cant-assign-requested-address-codeequals49.html">OpenVPN error: write UDPv4: Can&#8217;t assign requested address (code=49)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wdream.com/2010/01/openvpn-write-udpv4-cant-assign-requested-address-code49/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qpid, an AMQP implementation</title>
		<link>http://www.wdream.com/2010/01/qpid_amqp/</link>
		<comments>http://www.wdream.com/2010/01/qpid_amqp/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 06:27:30 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[AMQP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Qpid]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=448</guid>
		<description><![CDATA[Joshua Kramer has an article in LJ about Qpid and AMQP.  One of the most compelling aspects of Qpid is its cross plaform and cross language capability.  Finally there is a message broker that is easy to use and has ready to go clients for C++, Java, Python, Ruby and .Net.   [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.globalherald.net/jb01/weblog/">Joshua Kramer</a> has an article in <a href="http://www.linuxjournal.com/">LJ</a> about <a href="http://qpid.apache.org/getting-started.html">Qpid</a> and AMQP.  One of the most compelling aspects of Qpid is its cross plaform and cross language capability.  Finally there is a message broker that is easy to use and has ready to go clients for C++, Java, Python, Ruby and .Net.   Take a look and let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wdream.com/2010/01/qpid_amqp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>DB2 Discovery Kit</title>
		<link>http://www.wdream.com/2009/12/db2-discovery-kit/</link>
		<comments>http://www.wdream.com/2009/12/db2-discovery-kit/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 21:40:37 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[DB2 9.7]]></category>
		<category><![CDATA[IBM]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=445</guid>
		<description><![CDATA[I have posted a number of tips to use DB2.  If you haven&#8217;t used DB2 before, it is one of the best databases out there, and best of all, it is available completely free from IBM.   Get your DB2 discovery kit from IBM. As Grant Allen puts it in Beggining DB2, &#8220;IBM [...]]]></description>
			<content:encoded><![CDATA[<p>I have posted a number of tips to use DB2.  If you haven&#8217;t used DB2 before, it is one of the best databases out there, and best of all, it is available completely free from IBM.   Get your <a href="http://www-304.ibm.com/jct03002c/software/data/info/expresscd/">DB2 discovery kit from IBM</a>. As <a href="http://www.amazon.com/gp/product/159059942X?ie=UTF8&#038;tag=wdr-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=159059942X">Grant Allen puts it in Beggining DB2</a>, &#8220;IBM has even thought of those of you who can’t get to their website to obtain DB2. You can e-mail or telephone IBM’s DB2 team to arrange to have the <a href="http://www-304.ibm.com/jct03002c/software/data/info/expresscd/">Discovery Kit</a> shipped to you.&#8221;</p>
<p><center><br />
<iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=wdr-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=159059942X" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><br />
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wdream.com/2009/12/db2-discovery-kit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Register DTD for pureXML with DB2 9.7</title>
		<link>http://www.wdream.com/2009/12/register-dtd-for-purexml-with-db2-9-7/</link>
		<comments>http://www.wdream.com/2009/12/register-dtd-for-purexml-with-db2-9-7/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 13:51:14 +0000</pubDate>
		<dc:creator>Balazs</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[DB2 9.7]]></category>
		<category><![CDATA[DTD]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[pureXML]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XML Schema]]></category>
		<category><![CDATA[XQuery]]></category>

		<guid isPermaLink="false">http://www.wdream.com/?p=434</guid>
		<description><![CDATA[Problem
Even though XML schema has been around for a decade, still many APIs reference a DTD in the XML documents sent back and fourth.  Such is the OpenSRS API.  DB2 requires an XML schema or a DTD to be registered before it will process XML documents that refer to an XML Schema or [...]]]></description>
			<content:encoded><![CDATA[<h4>Problem</h4>
<p>Even though XML schema has been around for a decade, still many APIs reference a DTD in the XML documents sent back and fourth.  Such is the <a href="http://opensrs.com/resources/documentation/opensrsapixml/index.htm">OpenSRS API</a>.  DB2 requires an XML schema or a DTD to be registered before it will process XML documents that refer to an XML Schema or a DTD.  The process of registering such XSROBJECTs with DB2 has changed in DB2 since version 8.</p>
<h4>Solution</h4>
<ul>
<li>register a DTD using the DB2 9.7 command line:<code><br />
db2 CONNECT TO SAMLE<br />
db2 REGISTER XSROBJECT 'dtd-file-name.dtd' FROM /path/to/dtd/file AS sample.dtd-name DTD<br />
</code><br />
If the command is successful, the output is<code><br />
DB20000I  The REGISTER XSROBJECT command completed successfully.<br />
</code></li>
<li>Register a DTD from a Java program:<code><br />
			String schemaName = "SAMPLE";<br />
			String dtdName = "dtd-name";<br />
			String dtdFile = "dtd-file-name.dtd";<br />
			Reader fis = new FileReader(dtdFile);<br />
			byte[] contentDtd = FileIO.readerToString(fis).getBytes();<br />
			String registerProcQuery = "CALL SYSPROC.XSR_DTD (?,?,?,?,?)";<br />
			PreparedStatement registerProcStatement = conn.prepareCall(registerProcQuery);<br />
			registerProcStatement.setString(1, schemaName);<br />
			registerProcStatement.setString(2, dtdName);<br />
			registerProcStatement.setString(3, dtdFile);<br />
			registerProcStatement.setString(4, "PUBLIC ID");<br />
			registerProcStatement.setObject(5, contentDtd, java.sql.Types.BLOB);<br />
			registerProcStatement.execute();<br />
</code><br />
The <code>FileIO</code> class can be found in <a href="http://www.amazon.com/gp/product/0596007019?ie=UTF8&#038;tag=wdr-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596007019">Java Cookbook, Second Edition</a><img src="http://www.assoc-amazon.com/e/ir?t=wdr-20&#038;l=as2&#038;o=1&#038;a=0596007019" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</li>
</ul>
<h4>References</h4>
<ul>
<li><a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=/com.ibm.db2.luw.admin.cmd.doc/doc/r0023563.html">DB2 9.7 Documentation: REGISTER XSROBJECT</a></li>
<li><a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=/com.ibm.db2.luw.sql.ref.doc/doc/c0024419.html">DB2 9.7 Documentation: XSR_DTD procedure</a></li>
<li><a href="http://www.amazon.com/gp/product/0738418773?ie=UTF8&#038;tag=wdr-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0738418773">Redbook with Media : DB2 Java Stored Procedures Learning by Example (IBM Redbook)</a><img src="http://www.assoc-amazon.com/e/ir?t=wdr-20&#038;l=as2&#038;o=1&#038;a=0738418773" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</li>
<li><a href="http://www.amazon.com/gp/product/0596007019?ie=UTF8&#038;tag=wdr-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596007019">Java Cookbook, Second Edition</a><img src="http://www.assoc-amazon.com/e/ir?t=wdr-20&#038;l=as2&#038;o=1&#038;a=0596007019" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</li>
</ul>
<p><center><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=wdr-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0596007019" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe> <iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=wdr-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0738418773" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><br />
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wdream.com/2009/12/register-dtd-for-purexml-with-db2-9-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
