<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>LeoTech - The Leons Petrazickis Weblog</title>
	
	<link>http://lpetr.org/blog</link>
	<description>Musings about technology</description>
	<lastBuildDate>Wed, 01 Sep 2010 22:54:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/leotech" /><feedburner:info uri="leotech" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fleotech" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/leotech" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fleotech" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fleotech" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><item>
		<title>Looking for help with DB2 support in MediaWiki</title>
		<link>http://feedproxy.google.com/~r/leotech/~3/Kw3eT2c8k2A/looking-for-help-with-db2-support-in-mediawiki</link>
		<comments>http://lpetr.org/blog/archives/looking-for-help-with-db2-support-in-mediawiki#comments</comments>
		<pubDate>Wed, 01 Sep 2010 22:54:53 +0000</pubDate>
		<dc:creator>Leons Petrazickis</dc:creator>
				<category><![CDATA[MediaWiki]]></category>

		<guid isPermaLink="false">http://lpetr.org/blog/?p=373</guid>
		<description><![CDATA[MediaWiki is the PHP application underlying Wikipedia and other sites. Over the past couple years, I&#8217;ve spent some of my spare time to add DB2 support to it. Here&#8217;s where things stand now: Working: Installing on DB2 using the old installer Broken: Creating and editing articles Not implemented: Search Not implemented: Installing on DB2 using [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mediawiki.org/wiki/MediaWiki"><img alt="" src="http://www.intomobile.com/images/wiki.png" title="MediaWiki" class="alignright" width="135" height="135" /></a><a href="http://www.mediawiki.org/wiki/MediaWiki">MediaWiki</a> is the PHP application underlying Wikipedia and other sites. Over the past couple years, I&#8217;ve spent some of my spare time to add DB2 support to it. Here&#8217;s where things stand now:</p>
<ul>
<li>Working: Installing on DB2 using the old installer</li>
<li>Broken: Creating and editing articles</li>
<li>Not implemented: Search</li>
<li>Not implemented: Installing on DB2 using the new 1.17 installer</li>
</ul>
<p>Implementing the installer was half the battle, as it required a fully functional DB2 database abstraction layer. I think the main issue with article editing right now are some data inconsistencies in the initial database.</p>
<p>However, MediaWiki is getting a new installer in 1.17. I&#8217;ll try to spend some time soon to establish the scope of adding DB2 support to it, and then start implementing.</p>
<p>My MediaWiki time is pretty limited, though. If you or someone you know can pitch in on debugging, maintaining, and expanding the DB2 support in it, I&#8217;d be very happy to bring you up to speed and review your initial patches.</p>
<p>Keep in mind that MediaWiki is GPL software.</p>
<p>Some links:</p>
<ul>
<li>http://www.mediawiki.org/wiki/MediaWiki</li>
<li>http://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker</li>
<li>http://www.mediawiki.org/wiki/Commit_access</li>
<li>http://www.mediawiki.org/wiki/Manual:Coding_conventions</li>
<li>http://www.mediawiki.org/wiki/Manual:IBM_DB2</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/leotech?a=Kw3eT2c8k2A:0fTH8UU_JRw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/leotech?i=Kw3eT2c8k2A:0fTH8UU_JRw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/leotech?a=Kw3eT2c8k2A:0fTH8UU_JRw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/leotech?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/leotech/~4/Kw3eT2c8k2A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lpetr.org/blog/archives/looking-for-help-with-db2-support-in-mediawiki/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lpetr.org/blog/archives/looking-for-help-with-db2-support-in-mediawiki</feedburner:origLink></item>
		<item>
		<title>CCleaner utility for Windows</title>
		<link>http://feedproxy.google.com/~r/leotech/~3/TOxQDAEFKU4/ccleaner-utility-for-windows</link>
		<comments>http://lpetr.org/blog/archives/ccleaner-utility-for-windows#comments</comments>
		<pubDate>Tue, 29 Jun 2010 17:59:24 +0000</pubDate>
		<dc:creator>Leons Petrazickis</dc:creator>
				<category><![CDATA[Utilities]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://lpetr.org/blog/archives</guid>
		<description><![CDATA[CCleaner is one of my favourite utilities for Windows. It does several things very well. One of them is removing the temporary files that various applications leave lying around. For example, the Windows temporary files directory gets filled up with various installers that have a tendency to never be removed as well as fragments of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.piriform.com/ccleaner">CCleaner</a> is one of my favourite utilities for Windows. It does several things very well.</p>
<p><a href="http://lpetr.org/blog/wp-content/uploads/2010/06/ccleaner.png"><img src="http://lpetr.org/blog/wp-content/uploads/2010/06/ccleaner-300x293.png" alt="CCleaner Screenshot" title="CCleaner Screenshot" width="300" height="293" class="alignright size-medium wp-image-357" /></a>One of them is removing the temporary files that various applications leave lying around. For example, the Windows temporary files directory gets filled up with various installers that have a tendency to never be removed as well as fragments of files left open during crashes. For another, Windows retains the option to let you uninstall every patch Microsoft issues. This may be useful in a mission-critical server situation, but on a regular machine it just wastes space.</p>
<p>I just had to clean up a very space-constrained virtual machine for work. CCleaner instantly freed up 1.4GB of space simply by removing crud left around by installers and other applications.</p>
<p>CCleaner also does a beautiful job of correcting Registry inconsistencies, finding dead Start Menu shortcuts, and various miscellaneous tasks like free space management and cleaning up the Add/Remove programs list.</p>
<ul>
<li><a href="http://www.piriform.com/ccleaner">Download CCleaner</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/leotech?a=TOxQDAEFKU4:KDlGx3Mkp_k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/leotech?i=TOxQDAEFKU4:KDlGx3Mkp_k:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/leotech?a=TOxQDAEFKU4:KDlGx3Mkp_k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/leotech?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/leotech/~4/TOxQDAEFKU4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lpetr.org/blog/archives/ccleaner-utility-for-windows/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lpetr.org/blog/archives/ccleaner-utility-for-windows</feedburner:origLink></item>
		<item>
		<title>Blog dehacked</title>
		<link>http://feedproxy.google.com/~r/leotech/~3/N0kfxVL78lA/blog-dehacked</link>
		<comments>http://lpetr.org/blog/archives/blog-dehacked#comments</comments>
		<pubDate>Mon, 28 Jun 2010 13:19:52 +0000</pubDate>
		<dc:creator>Leons Petrazickis</dc:creator>
				<category><![CDATA[Announcement]]></category>

		<guid isPermaLink="false">http://lpetr.org/blog/archives</guid>
		<description><![CDATA[I apologize if you saw any strange malware warnings last Friday. Someone exploited a hole in my rather old installation of WordPress and added a nasty Javascript scriptlet to every post. They also published every one of my drafts and also truncated every post title to a single word. Google Webmaster Tools alerted me to [...]]]></description>
			<content:encoded><![CDATA[<p>I apologize if you saw any strange malware warnings last Friday. Someone exploited a hole in my rather old installation of WordPress and added a nasty Javascript scriptlet to every post. They also published every one of my drafts and also truncated every post title to a single word.</p>
<p><a href="https://www.google.com/webmasters/tools/">Google Webmaster Tools</a> alerted me to the situation with an email. They have since confirmed that all the malware has been removed.</p>
<p>This involved <a href="http://codex.wordpress.org/Updating_WordPress">upgrading WordPress to 3.0</a> as well as going through every post to remove the payload and fix the title. I took the opportunity to purge many of the posts.</p>
<p>WordPress 3.x seems much nicer than my creaky old install of WordPress 2.x. The widgets are very handy, as is the integrated update functionality for both WordPress and WordPress plugins.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/leotech?a=N0kfxVL78lA:KDlGx3Mkp_k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/leotech?i=N0kfxVL78lA:KDlGx3Mkp_k:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/leotech?a=N0kfxVL78lA:KDlGx3Mkp_k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/leotech?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/leotech/~4/N0kfxVL78lA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lpetr.org/blog/archives/blog-dehacked/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lpetr.org/blog/archives/blog-dehacked</feedburner:origLink></item>
		<item>
		<title>Simplify the DB2 9.7 security model</title>
		<link>http://feedproxy.google.com/~r/leotech/~3/nqvgO_2SvDs/simplify-the-db2-9-7-security-model</link>
		<comments>http://lpetr.org/blog/archives/simplify-the-db2-9-7-security-model#comments</comments>
		<pubDate>Sat, 26 Jun 2010 18:48:57 +0000</pubDate>
		<dc:creator>Leons Petrazickis</dc:creator>
				<category><![CDATA[DB2]]></category>

		<guid isPermaLink="false">http://lpetr.org/blog/archives</guid>
		<description><![CDATA[Starting in DB2 9.7, the DB2 security model was changed. Security administration (SECADM) was split off from database administration (DBADM), and users with SECADM permissions could no longer peek at data, at least not by default. Secure by default is a great practice. It’s fantastic when deploying a production database at a financial institution. However, [...]]]></description>
			<content:encoded><![CDATA[<p>Starting in DB2 9.7, the DB2 security model was changed. Security administration (SECADM) was split off from database administration (DBADM), and users with SECADM permissions could no longer peek at data, at least not by default.</p>
<p>Secure by default is a great practice. It’s fantastic when deploying a production database at a financial institution. However, it’s not so good when you are a new user trying to learn a tool.</p>
<p>Control Center seems to run as SYSTEM by default on WinXP, which leads to errors like this:</p>
<div class="dean_ch" style="white-space: wrap;">
SQL0551N &nbsp;<span class="st0">&quot;SYSTEM&quot;</span> does NOT have the required authorization<br />
OR privilege TO perform operation <span class="st0">&quot;SELECT&quot;</span> ON object <span class="st0">&quot;LEONSP.ACT&quot;</span>. <br />
<span class="re2">SQLSTATE=</span><span class="nu0">42501</span><br />
&nbsp;</div>
<p>Let’s remedy this by granting lots of privileges all around.</p>
<p>Open up the DB2 Command Window.</p>
<p>Connect to the database as a user that already has permissions (leonsp for me):</p>
<div class="dean_ch" style="white-space: wrap;">
db2 connect TO samptest user leonsp USING password<br />
&nbsp;</div>
<p>Grant all privileges to SYSTEM:</p>
<div class="dean_ch" style="white-space: wrap;">
db2 GRANT &nbsp;DBADM, SECADM, CREATETAB, BINDADD, CONNECT, CREATE_NOT_FENCED_ROUTINE, IMPLICIT_SCHEMA, LOAD, CREATE_EXTERNAL_ROUTINE, QUIESCE_CONNECT ON DATABASE &nbsp;TO USER system <br />
&nbsp;</div>
<p>Did you create DB2ADMIN or some other id when installing DB2 on Windows? Let’s grant all privileges to that user as well:</p>
<div class="dean_ch" style="white-space: wrap;">
db2 GRANT &nbsp;DBADM, SECADM, CREATETAB, BINDADD, CONNECT, CREATE_NOT_FENCED_ROUTINE, IMPLICIT_SCHEMA, LOAD, CREATE_EXTERNAL_ROUTINE, QUIESCE_CONNECT ON DATABASE &nbsp;TO USER db2admin<br />
&nbsp;</div>
<p>You should now no longer see the SELECT privilege error. Note that you should not do this in a production environment, as this is less secure than the default configuration.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/leotech?a=nqvgO_2SvDs:KDlGx3Mkp_k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/leotech?i=nqvgO_2SvDs:KDlGx3Mkp_k:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/leotech?a=nqvgO_2SvDs:KDlGx3Mkp_k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/leotech?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/leotech/~4/nqvgO_2SvDs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lpetr.org/blog/archives/simplify-the-db2-9-7-security-model/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lpetr.org/blog/archives/simplify-the-db2-9-7-security-model</feedburner:origLink></item>
		<item>
		<title>Cataloging databases after reinstalling DB2</title>
		<link>http://feedproxy.google.com/~r/leotech/~3/S8hHearn9to/cataloging-databases-after-reinstalling-db2</link>
		<comments>http://lpetr.org/blog/archives/cataloging-databases-after-reinstalling-db2#comments</comments>
		<pubDate>Sat, 26 Jun 2010 18:47:00 +0000</pubDate>
		<dc:creator>Leons Petrazickis</dc:creator>
				<category><![CDATA[DB2]]></category>

		<guid isPermaLink="false">http://lpetr.org/blog/archives</guid>
		<description><![CDATA[On Windows, uninstalling DB2 will remove the instance but keep the databases in place. After you reinstall, you’ll want to recatalog these databases. This is fairly straightforward. Find out their names: db2 list db directory on C: &#160; Map each of the databases that you want: db2 catalog db SAMPLE on C: &#160; You can [...]]]></description>
			<content:encoded><![CDATA[<p>On Windows, uninstalling DB2 will remove the instance but keep the databases in place. After you reinstall, you’ll want to recatalog these databases. This is fairly straightforward.</p>
<p>Find out their names:</p>
<div class="dean_ch" style="white-space: wrap;">
db2 list db directory on C:<br />
&nbsp;</div>
<p>Map each of the databases that you want:</p>
<div class="dean_ch" style="white-space: wrap;">
db2 catalog db SAMPLE on C:<br />
&nbsp;</div>
<p>You can also catalog remote databases the same way. In my experience, this is much easier than going through Control Center:</p>
<div class="dean_ch" style="white-space: wrap;">
db2 catalog tcpip node MYNODE remote MYHOSTNAME server <span class="nu0">50000</span><br />
db2 catalog db SAMPLE <span class="kw2">as</span> MYSAMPLE at node MYNODE<br />
db2 connect to MYSAMPLE user MYUSER using MYPASSWORD<br />
&nbsp;</div>
<p>The database will now show up in your Control Center catalog. You will also be able to connect to the local alias from Data Studio and other tools.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/leotech?a=S8hHearn9to:KDlGx3Mkp_k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/leotech?i=S8hHearn9to:KDlGx3Mkp_k:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/leotech?a=S8hHearn9to:KDlGx3Mkp_k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/leotech?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/leotech/~4/S8hHearn9to" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lpetr.org/blog/archives/cataloging-databases-after-reinstalling-db2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lpetr.org/blog/archives/cataloging-databases-after-reinstalling-db2</feedburner:origLink></item>
		<item>
		<title>Going from DB2 Enterprise to DB2 Express-C</title>
		<link>http://feedproxy.google.com/~r/leotech/~3/3gAJhQWJXok/going-from-db2-enterprise-to-db2-express-c-2</link>
		<comments>http://lpetr.org/blog/archives/going-from-db2-enterprise-to-db2-express-c-2#comments</comments>
		<pubDate>Sat, 26 Jun 2010 18:39:55 +0000</pubDate>
		<dc:creator>Leons Petrazickis</dc:creator>
				<category><![CDATA[DB2]]></category>

		<guid isPermaLink="false">http://lpetr.org/blog/archives</guid>
		<description><![CDATA[Downgrading from DB2 Enterprise to DB2 Express-C is a fairly straightforward process. Stop DB2. db2stop force &#160; Uninstall DB2 Enterprise. sudo su &#8211; db2inst1 /opt/ibm/db2/V9.7/install/db2_deinstall -a exit &#160; Install DB2 Express-C without creating any users, etc. sudo ./db2_install &#160; Update the instance with the new edition information. sudo /opt/ibm/db2/V9.7/instance/db2iupdt db2inst1 &#160; You might encounter this [...]]]></description>
			<content:encoded><![CDATA[<p>Downgrading from DB2 Enterprise to DB2 Express-C is a fairly straightforward process.</p>
<p>Stop DB2.</p>
<div class="dean_ch" style="white-space: wrap;">
db2stop force<br />
&nbsp;</div>
<p>Uninstall DB2 Enterprise.</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">sudo</span> <span class="kw2">su</span> &#8211; db2inst1<br />
/opt/ibm/db2/V9<span class="nu0">.7</span>/<span class="kw2">install</span>/db2_deinstall -a<br />
<span class="kw3">exit</span><br />
&nbsp;</div>
<p>Install DB2 Express-C without creating any users, etc.</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">sudo</span> ./db2_install<br />
&nbsp;</div>
<p>Update the instance with the new edition information.</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">sudo</span> /opt/ibm/db2/V9<span class="nu0">.7</span>/instance/db2iupdt db2inst1<br />
&nbsp;</div>
<p>You might encounter this error.</p>
<div class="dean_ch" style="white-space: wrap;">
db2inst1@vhost0074:~&gt; db2start<br />
SQL5043N &nbsp;Support <span class="kw1">for</span> one or <span class="kw2">more</span> communications protocols<br />
failed to start successfully. However, core database manager<br />
functionality started successfully.<br />
&nbsp;</div>
<p>Look up your DB2 TCP/IP service name. It should be similar to db2c_db2inst1 where db2inst1 is the instance owner.</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">cat</span> /etc/services | <span class="kw2">grep</span> db2<br />
&nbsp;</div>
<p>Make sure it’s set correctly in the DB2 configuration.</p>
<div class="dean_ch" style="white-space: wrap;">
db2 update dbm cfg using SVCENAME db2c_db2inst1<br />
&nbsp;</div>
<p>Start DB2.</p>
<div class="dean_ch" style="white-space: wrap;">
db2start<br />
&nbsp;</div>
<p>You should now have a working DB2 Express-C installation with all the same databases.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/leotech?a=3gAJhQWJXok:KDlGx3Mkp_k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/leotech?i=3gAJhQWJXok:KDlGx3Mkp_k:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/leotech?a=3gAJhQWJXok:KDlGx3Mkp_k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/leotech?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/leotech/~4/3gAJhQWJXok" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lpetr.org/blog/archives/going-from-db2-enterprise-to-db2-express-c-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lpetr.org/blog/archives/going-from-db2-enterprise-to-db2-express-c-2</feedburner:origLink></item>
		<item>
		<title>Enable NFS services for HADR</title>
		<link>http://feedproxy.google.com/~r/leotech/~3/SVkXX6feskI/enable-nfs-services-for-hadr</link>
		<comments>http://lpetr.org/blog/archives/enable-nfs-services-for-hadr#comments</comments>
		<pubDate>Sat, 26 Jun 2010 18:35:42 +0000</pubDate>
		<dc:creator>Leons Petrazickis</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://lpetr.org/blog/archives</guid>
		<description><![CDATA[You might need to enable network file system (NFS) services when configuring the High Availability Disaster Recovery (HADR) or Database Partioning (DPF) DB2 features. For example, with HADR, you might want to set up a slave database that shares a backup with the master database through NFS. These commands should enable NFS services on most [...]]]></description>
			<content:encoded><![CDATA[<p>You might need to enable network file system (NFS) services when configuring the High Availability Disaster Recovery (HADR) or Database Partioning (DPF) DB2 features. For example, with HADR, you might want to set up a slave database that shares a backup with the master database through NFS.</p>
<p>These commands should enable NFS services on most distributions of Linux:</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">sudo</span> /sbin/chkconfig nfs on<br />
<span class="kw2">sudo</span> /sbin/chkconfig nfslock on<br />
<span class="kw2">sudo</span> /sbin/chkconfig rpcgssd on<br />
<span class="kw2">sudo</span> /sbin/chkconfig rpcidmapd on<br />
<span class="kw2">sudo</span> /sbin/chkconfig portmap on<br />
<span class="kw2">sudo</span> /etc/init.d/iptables restart<br />
<span class="kw2">sudo</span> /etc/init.d/nfslock restart<br />
<span class="kw2">sudo</span> /etc/init.d/portmap restart<br />
<span class="kw2">sudo</span> /etc/init.d/nfs restart<br />
&nbsp;</div>
<p>Some of the services might not exist on your distribution. Additional steps may be needed.</p>
<p>IBM Smart Business Cloud for Test &#038; Development might be one of the environments where you’d have to do this. </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/leotech?a=SVkXX6feskI:KDlGx3Mkp_k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/leotech?i=SVkXX6feskI:KDlGx3Mkp_k:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/leotech?a=SVkXX6feskI:KDlGx3Mkp_k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/leotech?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/leotech/~4/SVkXX6feskI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lpetr.org/blog/archives/enable-nfs-services-for-hadr/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lpetr.org/blog/archives/enable-nfs-services-for-hadr</feedburner:origLink></item>
		<item>
		<title>Remove Facebook suggestions</title>
		<link>http://feedproxy.google.com/~r/leotech/~3/kP_UVBLqrWk/remove-facebook-suggestions-with-user-css</link>
		<comments>http://lpetr.org/blog/archives/remove-facebook-suggestions-with-user-css#comments</comments>
		<pubDate>Sun, 25 Apr 2010 15:00:56 +0000</pubDate>
		<dc:creator>Leons Petrazickis</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Stylish]]></category>

		<guid isPermaLink="false">http://lpetr.org/blog/archives/remove-facebook-suggestions-with-user-css</guid>
		<description><![CDATA[One of the Facebook annoyances that cannot be disabled is the list of people that you don&#8217;t want to friend and whose walls you don&#8217;t want to write on that is in the the top right corner of its front page. It&#8217;s easy to hide this impertinent design element. On Firefox, you should install the [...]]]></description>
			<content:encoded><![CDATA[<p>One of the Facebook annoyances that cannot be disabled is the list of people that you don&#8217;t want to friend and whose walls you don&#8217;t want to write on that is in the the top right corner of its front page.<br />
<img src='http://lpetr.org/blog/wp-content/uploads/2010/04/facebook-suggestions.png' alt='Facebook Suggestions' /><br />
It&#8217;s easy to hide this impertinent design element.</p>
<p>On Firefox, you should install the <a href="https://addons.mozilla.org/en-US/firefox/addon/2108">Stylish extension</a>.</p>
<p>On other browsers, you should <a href="http://webdesign.about.com/od/userstylesheets/a/aa010906.htm">follow the respective instructions</a>.</p>
<p><img src='http://lpetr.org/blog/wp-content/uploads/2010/04/suggestions00.png' alt='Step 0' /></p>
<p>Once you have Stylish installed:<br />
1. Go to Facebook<br />
2. Click on the Stylish icon in the status bar<br />
3. Choose Write new style > For facebook.com</p>
<p><img src='http://lpetr.org/blog/wp-content/uploads/2010/04/suggestions01b.png' alt='Step 1b' /></p>
<p>In the dialog:<br />
1. Name the new style &#8220;Facebook&#8221;<br />
2. Paste in the following code:</p>
<pre lang=css" style="border:1px dashed; padding: 1em;">
#pymk_hp_box {
display:none !important;
}
</pre>
<p>You should be able to save now and no longer be subjected to the Facebook Suggestions box. Unfortunately, this code may not survive the inevitable Facebook layout change.</p>
<p>Technical note: The wrapping code that you see in the screenshot above was generated by Stylish and will likely only work in Firefox. If you wish to adapt it in a different browser, you may want to replace the <tt>@-moz-document</tt> with <tt>@-o-document</tt> (for Opera), <tt>@-webkit-document</tt> (for Safari and Chrome), or <tt>@document</tt> once CSS3 is ratified and vendor-specific implementations merge.</p>
<p><b>Links</b></p>
<p>- <a href="https://addons.mozilla.org/en-US/firefox/addon/2108">Stylish extension for Firefox</a><br />
- <a href="http://userstyles.org/">UserStyles.org</a><br />
- <a href="http://webdesign.about.com/od/userstylesheets/a/aa010906.htm">About.com on user stylesheets</a> (somewhat old)</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/leotech?a=kP_UVBLqrWk:8qifArGTIPE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/leotech?i=kP_UVBLqrWk:8qifArGTIPE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/leotech?a=kP_UVBLqrWk:8qifArGTIPE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/leotech?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/leotech/~4/kP_UVBLqrWk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lpetr.org/blog/archives/remove-facebook-suggestions-with-user-css/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://lpetr.org/blog/archives/remove-facebook-suggestions-with-user-css</feedburner:origLink></item>
		<item>
		<title>iptables pitfall</title>
		<link>http://feedproxy.google.com/~r/leotech/~3/jahCEya1Vjw/iptables-firewall-pitfall</link>
		<comments>http://lpetr.org/blog/archives/iptables-firewall-pitfall#comments</comments>
		<pubDate>Thu, 11 Mar 2010 22:07:08 +0000</pubDate>
		<dc:creator>Leons Petrazickis</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://lpetr.org/blog/archives/iptables-firewall-pitfall</guid>
		<description><![CDATA[An important thing to remember about rulesets in /etc/sysconfig/iptables is that they are chains. The first rule is applied, followed by the second, and so on. It&#8217;s the opposite of CSS that way. More specific rules should go first, while all-encompassing rules should go last. I was trying to open the usual DB2 ports on [...]]]></description>
			<content:encoded><![CDATA[<p>An important thing to remember about rulesets in /etc/sysconfig/<a href="http://en.wikipedia.org/wiki/Iptables">iptables</a> is that they are chains. The first rule is applied, followed by the second, and so on. It&#8217;s the opposite of CSS that way. More specific rules should go first, while all-encompassing rules should go last.</p>
<p>I was trying to open the usual DB2 ports on RHEL. For some reason, nothing was working.</p>
<p>It turned out that this line was at fault:</p>
<pre lang=bash>
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
</pre>
<p>This rejects all incoming traffic not otherwise allowed. The line has to go last in the file, after all the open port definitions.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/leotech?a=jahCEya1Vjw:65dgnTtcsvo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/leotech?i=jahCEya1Vjw:65dgnTtcsvo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/leotech?a=jahCEya1Vjw:65dgnTtcsvo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/leotech?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/leotech/~4/jahCEya1Vjw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lpetr.org/blog/archives/iptables-firewall-pitfall/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://lpetr.org/blog/archives/iptables-firewall-pitfall</feedburner:origLink></item>
		<item>
		<title>CASCON Deploying MediaWiki with DB2 in the Cloud workshop</title>
		<link>http://feedproxy.google.com/~r/leotech/~3/P4D1ko10UQc/cascon-2009-workshop-deploying-mediawiki-on-ibm-db2-in-the-cloud</link>
		<comments>http://lpetr.org/blog/archives/cascon-2009-workshop-deploying-mediawiki-on-ibm-db2-in-the-cloud#comments</comments>
		<pubDate>Wed, 04 Nov 2009 17:16:28 +0000</pubDate>
		<dc:creator>Leons Petrazickis</dc:creator>
				<category><![CDATA[CASCON]]></category>

		<guid isPermaLink="false">http://lpetr.org/blog/archives/cascon-2009-workshop-deploying-mediawiki-on-ibm-db2-in-the-cloud</guid>
		<description><![CDATA[I&#8217;m hosting a workshop today at CASCON. The resources for it are below. Materials Presentation (PDF, Slideshare) Exercises (PDF, Slideshare) Resources IBM Smart Business Develop &#038; Test on IBM Cloud Amazon Web Services (AWS) Rightscale MediaWiki Manual: IBM DB2 Downloads MediaWiki 1.16 build with DB2 support IBM Data Server Driver for ODBC and CLI IBM [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m hosting a workshop today at <a href="https://www-927.ibm.com/ibm/cas/cascon/">CASCON</a>. The resources for it are below.</p>
<p><b>Materials</b></p>
<ul>
<li>Presentation (<a href="http://lpetr.org/mediawiki/cascon2009/Deploying%20MediaWiki%20on%20DB2%20in%20the%20Cloud%20Presentation.pdf">PDF</a>, <a href="http://www.slideshare.net/leonsp/deploying-mediawiki-on-ibm-db2-in-the-cloud-presentation">Slideshare</a>)</li>
<li>Exercises (<a href="http://lpetr.org/mediawiki/cascon2009/Deploying%20MediaWiki%20on%20IBM%20DB2%20in%20the%20Cloud%20Guide.pdf">PDF</a>, <a href="http://www.slideshare.net/leonsp/deploying-mediawiki-on-ibm-db2-in-the-cloud">Slideshare</a>)</li>
</ul>
<p><b>Resources</b></p>
<ul>
<li><a href="http://www-949.ibm.com/cloud/developer/dashboard">IBM Smart Business Develop &#038; Test on IBM Cloud</a></li>
<li><a href="http://aws.amazon.com/">Amazon Web Services (AWS)</a></li>
<li><a href="http://www.rightscale.com/">Rightscale</a></li>
<li><a href="http://www.mediawiki.org/wiki/Manual:IBM_DB2">MediaWiki Manual: IBM DB2</a></li>
</ul>
<p><b>Downloads</b></p>
<ul>
<li><a href="http://lpetr.org/mediawiki/MediaWiki.tar.gz">MediaWiki 1.16 build with DB2 support</a></li>
<li><a href="http://www.ibm.com/db2/9/download.html">IBM Data Server Driver for ODBC and CLI</a></li>
<li><a href="http://www.ibm.com/db2/express/download.html?S_CMP=ECDDWW01&#038;S_TACT=LPETR_01">IBM DB2 Express-C</a> &#8211; Free database server</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/leotech?a=P4D1ko10UQc:4N1qmeeEo_0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/leotech?i=P4D1ko10UQc:4N1qmeeEo_0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/leotech?a=P4D1ko10UQc:4N1qmeeEo_0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/leotech?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/leotech/~4/P4D1ko10UQc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lpetr.org/blog/archives/cascon-2009-workshop-deploying-mediawiki-on-ibm-db2-in-the-cloud/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lpetr.org/blog/archives/cascon-2009-workshop-deploying-mediawiki-on-ibm-db2-in-the-cloud</feedburner:origLink></item>
	</channel>
</rss>
