<?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>Random Bugs &#187; Featured</title>
	<atom:link href="http://www.randombugs.com/category/featured/feed" rel="self" type="application/rss+xml" />
	<link>http://www.randombugs.com</link>
	<description>Just another Bastard Operator From Hell. Everything from *nix to programming</description>
	<lastBuildDate>Thu, 06 May 2010 14:21:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Innodb table crash</title>
		<link>http://www.randombugs.com/linux/crash-innodb-table.html</link>
		<comments>http://www.randombugs.com/linux/crash-innodb-table.html#comments</comments>
		<pubDate>Thu, 06 May 2010 14:16:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Recovery]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=658</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/kexi.png" width="24" height="24" alt="" title="Databases" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/tux.png" width="24" height="24" alt="" title="Linux" /><br/>I searched over internet, on several tens of posts, to find how to delete a crashed Innodb table. Short story: I tried to import a big table but it crashed in the middle of the process (power failure). The table was not very important so I didn&#8217;t care about the table, I just want to delete it and start from the scratch, but surprise! The table cannot be deleted! I use the latest MySQL Innodb plugin from Debian backports repository (is coming with Debian 5.1.xx) with  file per table ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/crash-innodb-table.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compile and configure mod_qos to prevent Slowloris DDOS on Apache 2 from Debian Lenny distribution</title>
		<link>http://www.randombugs.com/linux/compile-configure-modqos-prevent-slowloris-ddos-apache-2-debian-lenny-distribution.html</link>
		<comments>http://www.randombugs.com/linux/compile-configure-modqos-prevent-slowloris-ddos-apache-2-debian-lenny-distribution.html#comments</comments>
		<pubDate>Tue, 04 May 2010 20:00:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[qos]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=650</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/apache3.jpg" width="24" height="24" alt="" title="Apache" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>mod_qos is becoming a very popular module for Apache, from the discover of Slowloris DDoS Attack. It seems, mod_qos is the best solution for Slowloris attack on Apache 2, but you can also check mod_evasive, mod_security or http accelerator &#8220;Varnish&#8221;. In this post I will try to present a step by step tutorial how to install mod_qos and configure to prevent Slowloris DDoS attack. 

This post is just a compendium of other good posts:

How To Defend slowloris DDoS With mod_qos (Apache2 On Debian [Lenny])
DDoS, Apache2 and mod_qos
How to best defend ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/compile-configure-modqos-prevent-slowloris-ddos-apache-2-debian-lenny-distribution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Content-filter and unsolicited bulk e-mail</title>
		<link>http://www.randombugs.com/linux/contentfilter-unsolicited-bulk-email.html</link>
		<comments>http://www.randombugs.com/linux/contentfilter-unsolicited-bulk-email.html#comments</comments>
		<pubDate>Tue, 16 Mar 2010 14:07:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Newbie]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[amavis]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=643</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/tux.png" width="24" height="24" alt="" title="Linux" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-hint.png" width="24" height="24" alt="" title="Newbie" /><br/>After an Amavis upgraded my e-mail system started to have a strange behavior. A lot of emails sent internally from one user to another stopped with the following message:


&#8212;&#8212;&#8211; Original Message &#8212;&#8212;&#8211;
Subject: 	Considered UNSOLICITED BULK EMAIL, apparently from youis considered local.
Date: 	Tue, 13 Mar 2010 00:13:39 +0200 (EET)
From: 	Content-filter at xxx13.randombugs.com

To: 	
A message from  to:
-> yyy@randombugs.com
was considered unsolicited bulk e-mail (UBE).
Our internal reference code for your message is 00311-13/npX-RCahiLdc
The message carried your return address, so it was either a genuine mail
from you, or a sender address was faked and ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/contentfilter-unsolicited-bulk-email.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Glassfish Cluster 2.1.1, HttpSessions replication and multi-thread concurrent access</title>
		<link>http://www.randombugs.com/java/glassfish/glassfish-cluster-211-httpsessions-replication-multithread-concurrent-access.html</link>
		<comments>http://www.randombugs.com/java/glassfish/glassfish-cluster-211-httpsessions-replication-multithread-concurrent-access.html#comments</comments>
		<pubDate>Wed, 03 Mar 2010 10:07:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[httpsession]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=634</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bluefish.png" width="24" height="24" alt="" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/text-x-java.png" width="24" height="24" alt="" title="Java" /><br/>I have several clusters with Glassfish 2.1.1 in a BIG virtual environment and all worked fine &#8230; until I add new processors to this clusters. After upgrade, I started to have problems with HttpSession replication. Starting debugging JXTA, Shoal and the Web Container didn&#8217;t help at all. Until I found this page Memory Replication &#038; Multi-threaded Concurrent Access to HttpSessions. My applications was doing multi-thread concurrent access some times (Ajax) and this was the root cause of all lost sessions. I modified sun-web.xml from  my application, accordingly with the ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/glassfish-cluster-211-httpsessions-replication-multithread-concurrent-access.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade from Glassfish 2.1 to 2.1.1</title>
		<link>http://www.randombugs.com/java/glassfish/upgrade-glassfish-21-211.html</link>
		<comments>http://www.randombugs.com/java/glassfish/upgrade-glassfish-21-211.html#comments</comments>
		<pubDate>Tue, 29 Dec 2009 13:39:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=625</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bluefish.png" width="24" height="24" alt="" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>For some reasons the asupgrade tool from Sun Glassfish doesn&#8217;t work if you want to upgrade your Glassfish from 2.1 to 2.1.1. The upgrade method what I will present you in the next post, probably, is not recommended by SUN, but it will work in most cases (clustered or not). Just follow this steps:

1. Stop all domains, node agents, instances from all cluster (or only the domain if you have only 1 server)
2. Rename Glassfish folder to g2.1
3. Install glassfish 2.1.1

$ java -Xmx256m -jar glassfish-installer-v2.1.1-b31g-linux.jar
$ cd glassfish
$ chmod +x lib/ant/bin/ant
$ ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/upgrade-glassfish-21-211.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMFS Datastore missing</title>
		<link>http://www.randombugs.com/recovery/vmfs-datastore-missing-2.html</link>
		<comments>http://www.randombugs.com/recovery/vmfs-datastore-missing-2.html#comments</comments>
		<pubDate>Thu, 22 Oct 2009 11:17:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[lvm]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=617</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bug.png" width="24" height="24" alt="" title="Bugs" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/recovery.gif" width="24" height="24" alt="" title="Recovery" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/vmware_2327_24.png" width="24" height="24" alt="" title="vmware" /><br/>After successfully install of ESXi 3.5 server, my datastore1 disappeared unexpectedly after first or second reboot. Is possible to be because of my &#8220;hacks&#8221; in &#8220;Advanced Settings&#8221;, but I&#8217;m not very sure about that. Looking in /var/log/messages I spotted some very strange errors:


 Error Stream from partedUtil while getting partitions: Error: The partition table on /dev/disks/vmhba0:0:0:0 is inconsistent.  There are many reasons why this might be the case.  However, the most likely reason is that Linux detected the BIOS geometry for /dev/disks/vmhba0:0:0:0 incorrectly.  GNU Parted suspects the ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/recovery/vmfs-datastore-missing-2.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Changing default logging system in Glassfish 2.1 with Log4J</title>
		<link>http://www.randombugs.com/java/glassfish/changing-logging-system-glassfish-21.html</link>
		<comments>http://www.randombugs.com/java/glassfish/changing-logging-system-glassfish-21.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 18:04:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=606</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/apache3.jpg" width="24" height="24" alt="" title="Apache" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bug.png" width="24" height="24" alt="" title="Bugs" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><br/>A lot of people are not satisfied by the default Java Logging (JUL) in Glassfish. Also, myself I encountered some problems on clustered environments where we should have one single log and not one log for each instance.  Trying to change the logging system in Glassfish it looks to be almost impossible , but I found a very interesting project  java.util.logging to log4j Bridge and the sky become more clear for Glassfish logging. Jul to Log4J Bridge are part of log4J project and is very useful when you ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/changing-logging-system-glassfish-21.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DBAppender for Log4j 1.2</title>
		<link>http://www.randombugs.com/java/dbappender-log4j-12.html</link>
		<comments>http://www.randombugs.com/java/dbappender-log4j-12.html#comments</comments>
		<pubDate>Thu, 24 Sep 2009 20:19:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=595</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/apache3.jpg" width="24" height="24" alt="" title="Apache" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/kexi.png" width="24" height="24" alt="" title="Databases" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><br/>Initially, DBAppender for Log4j was introduced in version 1.3 of Log4j, but this version was ABANDONED by Apache team. DBAppender is very useful when we want to send our log on a JNDI resource and not on standard JDBC or file. If you need just logging in a database for your application, then you should use JDBCAppender. If you want to log on a JNDI or Database Connection Pool the DBAppender is for you. In this post I will show you how to get, compile and quick test the DBAppender.

1. ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/dbappender-log4j-12.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>java.lang.SecurityException: JCE cannot authenticate the provider BC</title>
		<link>http://www.randombugs.com/java/javalangsecurityexception-jce-authenticate-provider-bc.html</link>
		<comments>http://www.randombugs.com/java/javalangsecurityexception-jce-authenticate-provider-bc.html#comments</comments>
		<pubDate>Mon, 10 Aug 2009 09:57:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=577</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bug.png" width="24" height="24" alt="" title="Bugs" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/gpg.png" width="24" height="24" alt="" title="Cryptography" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><br/>Trying to integrate BouncyCastle Cryptography provider in Java can be a nightmare. I read a lot of forums messages about &#8220;JCE cannot authenticate the provider BC&#8221; and I didn&#8217;t find any clear response. After several hours of tweaking and digging I found the main reason of the problem. If you want to use BouncyCastle as Security provider then install it directly on your Java Virtual Machine and remove any library of bc from your application. 

How to install correctly Bouncy Castle on your JVM:
First for Ubuntu/Debian users you should look ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/javalangsecurityexception-jce-authenticate-provider-bc.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tuning a Linux system for Database Server</title>
		<link>http://www.randombugs.com/linux/tuning-linux-system-database.html</link>
		<comments>http://www.randombugs.com/linux/tuning-linux-system-database.html#comments</comments>
		<pubDate>Thu, 16 Jul 2009 17:24:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=567</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/kexi.png" width="24" height="24" alt="" title="Databases" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/tux.png" width="24" height="24" alt="" title="Linux" /><br/> In my experiments with databases I was constrained to tune the system together with the databases. A system what will run a database is quite different from any other server system, because databases put a lot of stress on the IO and especially on the disks (probably the file servers too). Hardware is not all you should tune your system as much as possible. In this post I will talk about Linux with Ext3 (is what I have right now), but on future I will test OpenSolaris with ZFS.

1. ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/tuning-linux-system-database.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
