<?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>The Piranha Method &#187; Matthew Cluver</title>
	<atom:link href="http://www.piranhamethod.com/author/mcluver/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.piranhamethod.com</link>
	<description>Web Development &#38; Graphic Design Firm - Charlotte, Greenville, Charleston</description>
	<lastBuildDate>Wed, 14 Apr 2010 02:18:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing JRE 1.6 on your Mac OS X Leopard (10.5.8 or later)</title>
		<link>http://www.piranhamethod.com/2010/04/installing-jre-1-6-on-your-mac-os-x-leopard-10-5-8-or-later/</link>
		<comments>http://www.piranhamethod.com/2010/04/installing-jre-1-6-on-your-mac-os-x-leopard-10-5-8-or-later/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 01:26:22 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[java runtime environment]]></category>
		<category><![CDATA[jre 1.6]]></category>
		<category><![CDATA[JRE 1.6 for mac]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=730</guid>
		<description><![CDATA[I had such a hard time finding the correct download link for the Java Runtime Environment (JRE) 1.6 for Mac OS X Leopard (10.5.8+), that I decided I would just provide it right here.]]></description>
			<content:encoded><![CDATA[<p>I had such a hard time finding the correct download link for the <a href="http://www.piranhamethod.com/downloads/JavaForMacOSX10.5Update6.dmg">Java Runtime Environment (JRE) 1.6 for Mac OS X</a> Leopard (10.5.8+), that I decided I would just provide it right here, or if you prefer to download it straight from the <a href="http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105update6.html">mac site</a>.</p>
<p>Just a tip, if you&#8217;d like to make JRE 1.6 the default after you install it, then you will probably want to get the script discussed on this forum post: <a href="http://www.insanelymac.com/forum/index.php?showtopic=58817">http://www.insanelymac.com/forum/index.php?showtopic=58817</a></p>
<p>Here is a modified version of the code to work with the 1.6 JRE instead of JDK, name the file changeJRE.sh and make sure you &#8216;chmod +x changeJRE.sh&#8217; before trying to execute the script.</p>
<p><code> #!/bin/sh</code></p>
<p><code>cd /System/Library/Frameworks/JavaVM.framework/Versions</code></p>
<p><code>CURJRE="`readlink Current`"<br />
echo Current JRE version: $CURJRE</code></p>
<p><code>if [ "$1" == "" ]; then<br />
echo Installed versions:<br />
ls<br />
exit<br />
fi</code></p>
<p><code>VERFOUND=`ls | grep $1 | head -n 1`</p>
<p>if [ "$VERFOUND" != "$1" ]; then<br />
BASE="`basename $0`"<br />
echo Error: Could not change JRE-- version $1 not installed!<br />
echo Run $BASE without arguments to see a list of installed versions.<br />
exit 127<br />
fi</p>
<p></code></p>
<p><code>echo You must now enter your Mac OS X password to change the JRE.<br />
sudo ln -fhsv $1 Current<br />
</code></p>
<p><strong>About Java for Mac OS X 10.5 Update 6</strong><br />
Java for Mac OS X 10.5 Update 6 delivers improved reliability, security, and compatibility for J2SE 5.0 and Java SE 6. Java for Mac OS X 10.5 Update 6 supersedes all previous updates of Java for Mac OS X 10.5.</p>
<p>This release updates J2SE 5.0 to 1.5.0_22, and updates Java SE 6 to 1.6.0_17.  J2SE 1.4.2 is no longer being updated to fix bugs or security issues and is therefore disabled by default in this update.  This release is only for Mac OS X 10.5.8 or later versions of Mac OS X 10.5.  This release of J2SE 5.0 supports all Intel and PowerPC-based Macs. Java SE 6 is available on 64-bit Intel-based Macs only.</p>
<p>For more details on this update, please visit this <a href="http://support.apple.com/kb/HT3891">website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2010/04/installing-jre-1-6-on-your-mac-os-x-leopard-10-5-8-or-later/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting a UBB Forum to phpBB Fireboard Kunena</title>
		<link>http://www.piranhamethod.com/2009/11/converting-a-ubb-forum-to-phpbb-fireboard-kunena/</link>
		<comments>http://www.piranhamethod.com/2009/11/converting-a-ubb-forum-to-phpbb-fireboard-kunena/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 00:02:39 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[Conversion]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[Fireboard]]></category>
		<category><![CDATA[Forum]]></category>
		<category><![CDATA[Kunena]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[UBB]]></category>
		<category><![CDATA[UBB Classic]]></category>
		<category><![CDATA[UBB Threads]]></category>
		<category><![CDATA[UBB.x]]></category>
		<category><![CDATA[vBulletin]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=378</guid>
		<description><![CDATA[Recently I was tasked with converting a UBB classic (6.7.2) forum to Kunena (1.5.6). Initially I had thought about writing my own custom code to do the conversion, but the thought of parsing the flat files that UBB uses for their forum and member data especially turned me off (besides the amount of time it would have taken). Luckily the open source community had my back and after a lot of research I was able to find and get working several conversion scripts that I found online, these scripts with a little love will help you get out of that musty old perl-based UBB classic forum, once and for all.]]></description>
			<content:encoded><![CDATA[<p>Recently I was tasked with converting a UBB classic (6.7.2) forum to Kunena (1.5.6). Initially I had thought about writing my own custom code to do the conversion, but the thought of parsing the flat files that UBB uses for their forum and member data especially turned me off (besides the amount of time it would have taken).</p>
<p>Luckily the open source community had my back and after a lot of research I was able to find and get working several conversion scripts that I found online, these scripts with a little love will help you get out of that musty old perl-based UBB classic forum, once and for all.</p>
<p>The code (<a href="http://www.piranhamethod.com/downloads/UBB.x_Convertor_0.1.1.zip">UBB.x_Convertor_0.1.1</a>) that I found will work with all flavors of UBB forums, UBB.classic, UBB.threads and UBB.x, it will allow you to convert to phpBB 2.0.x, I used 2.0.23 and have included <a href="http://www.piranhamethod.com/downloads/phpBB-2.0.23.tar.gz">phpBB 2.0.23</a> for your convenience, I have also attached all of the other referenced documents for you as well.</p>
<p><strong>Convert UBB Classic 6.7.2 to phpBB 2.0.x</strong><br />
This is where the magic of the script that I found really shines, it reads the data from the UBB forum and flawlessly converts that data into phpBB and stores it in the MySQL database that phpBB is using, previously as most of you are aware, UBB uses flat files to store the forum data, finally getting that information into a database is exciting! I have also included some other <a href="http://www.piranhamethod.com/downloads/convert-ubb6-to-phpbb2.zip">converter code</a> originally developed by Genfect Media, which was the converter code that Graham Eames used to develop the <a href="http://www.piranhamethod.com/downloads/UBB.x_Convertor_0.1.1.zip">working version</a> (UBB.x Convertor 0.1.1) that I used.</p>
<p><strong>Convert phpBB 2.0.x to phpBB 3.0.x </strong><br />
Once you have converted your forum to phpBB 2.0.x, you are going to need to perform an upgrade to phpBB 3.0.x. This should be fairly simple and straightforward, just follow any phpBB upgrade documentation on their website to accomplish this conversion to a 3.0.x forum, here is a copy of <a href="http://www.piranhamethod.com/downloads/phpBB-3.0.6.zip">phpBB 3.0.6</a> for you to download and use.</p>
<p><strong>Convert UBB phpBB 3.0.x to Kunena 1.5.6</strong><br />
Once the forum has been upgraded to phpBB 3.0.x, you are now ready to convert it over to Kunena 1.5.6. Now <a href="http://www.piranhamethod.com/downloads/converter-phpbb3-to-kunena.zip">this script</a> was originally created to convert the phpBB data to a Fireboard forum, but since Kunena was developed from Fireboard, most of the infrastructure framework is the same still and I was able to successfully convert over to Kunena.</p>
<p>The important thing to note is that this script may require a little hacking to make it work for your specific environment, one thing I specifically remember having to adjust were the memory settings in my php.ini. This all depends on the amount of forum data that you&#8217;re working with though, make sure to also adjust the runtime of PHP scripts, as it could also take a while to run.</p>
<p>During my research I also came across this other <a href="http://www.piranhamethod.com/downloads/convert-phpbb-to-fireboard.zip">conversion code</a>, this may be helpful to you if you are having trouble with the converting the data. There is also good news if you&#8217;re wanting to go with a vBulletin solution in the long run instead of Kunena as the guys over at vBulletin have included their own conversion script for migrating directly from <a href="http://www.vbulletin.com/forum/showthread.php?48257-How-do-I-convert-UBB-to-VBB">UBB to vBulletin</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/11/converting-a-ubb-forum-to-phpbb-fireboard-kunena/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time Warner Announces 4G Wireless Internet Service in Charlotte</title>
		<link>http://www.piranhamethod.com/2009/10/time-warner-announces-4g-wireless-internet-service-in-charlotte/</link>
		<comments>http://www.piranhamethod.com/2009/10/time-warner-announces-4g-wireless-internet-service-in-charlotte/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 10:06:01 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Charlotte, NC]]></category>
		<category><![CDATA[Wireless Networking Technology]]></category>
		<category><![CDATA[4G]]></category>
		<category><![CDATA[Internet Service]]></category>
		<category><![CDATA[Time Warner]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=376</guid>
		<description><![CDATA[The idea of the network is to naturally extend the homeowner services currently being provided by Timer Warner seamlessly into the mobile market, while still providing the well established quality of service that Time Warner has worked so hard to maintain. The wireless internet service is said to be able to provide speeds up to 6mbit/s downloand bandwidth and part of a mbit of upload bandwidth, almost exactly comparable to the home cable modem service that they currently provide throughout this region.]]></description>
			<content:encoded><![CDATA[<p>Time Warner announced on October 14th, 2009 that they will begin offering 4G mobile wireless internet services in the Charlotte area, they have apparently teamed up/invested in the Sprint/Clearwire network, as well as developed part of their own wireless network build-out. The service is targeted at mobile urban users that will be accessing the network with a variety of devices such as iPods, Netbooks, and Laptops.</p>
<p>The idea of the network is to naturally extend the homeowner services currently being provided by Timer Warner seamlessly into the mobile market, while still providing the well established quality of service that Time Warner has worked so hard to maintain. I could see this wireless network deployment as an initial push for them to eventually be planning to provide a mobile triple-play style service.Â  Even if that is several years away though, this deployment is giving their current fiber/coax network an immediate additional redundancy, as well as numerous additional bandwidth regeneration/backhaul points throughout the existing network.</p>
<p>The wireless internet service is said to be able to provide speeds up to 6mbit/s downloand bandwidth and part of a mbit of upload bandwidth, almost exactly comparable to the home cable modem service that they currently provide throughout this region. â€œThis is an important part of our strategy to give our customers any content, on any device, anytime, anywhere,â€ says Carol Hevey, executive vice president of the Carolina region for Time Warner Cable. The first product to launch is Road Runner Mobile, with a monthly charge between $40 and $80 for customers with at least one other Time Warner Cable service.</p>
<p>Comparably, Verizon recently launched the MiFi service on their 3G network in Charlotte, and of course we had to get one to try out! So far we&#8217;ve been really happy with the result. Though the bandwidth is a bit slower, 3mbit/s down when I did the last speed test in the university area of Charlotte. The technology of the MiFi is pretty neat as well, the connection is stable and the WiFi signal transmitted from the MiFi device is surprising strong.</p>
<p>Wireless technologies such as these are only going to become more and more prevalent in the immediate future, and as I predict, continue to be targeted only in the densely populated urban centers and major metropolitan areas for at least the next 5 years. Though I must admit that being able to provide guaranteed 6mbit mobile wireless internet services in the Charlotte market is quite impressive. Making a service like this truly affordable is going to be the key, it&#8217;s likely not going to be much cheaper until a massive amount of investment is put into additional nationwide infrastructure though. When I get the opportunity to try this wireless service out, I&#8217;ll be sure to get an update posted on here for all of you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/10/time-warner-announces-4g-wireless-internet-service-in-charlotte/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Charlotte NC VMware Event &#8211; Carolina VMware Users Summit 2009</title>
		<link>http://www.piranhamethod.com/2009/05/charlotte-nc-vmware-event-carolina-vmware-users-summit-2009/</link>
		<comments>http://www.piranhamethod.com/2009/05/charlotte-nc-vmware-event-carolina-vmware-users-summit-2009/#comments</comments>
		<pubDate>Thu, 28 May 2009 23:50:18 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Charlotte, NC]]></category>
		<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Charlotte]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmware server]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=308</guid>
		<description><![CDATA[Tomorrow, Scott and I will be attending the VMware Users Summit 2009 at the Renaissance Charlotte Suites Hotel in Charlotte, NC. This is a free event, so if you're out and about with nothing else to do, come by and join the rest of the VMware nerds.]]></description>
			<content:encoded><![CDATA[<p>Tomorrow, Scott and I will be attending the VMware Users Summit 2009 at the Renaissance Charlotte Suites Hotel in Charlotte, NC. This is a free event, so if you&#8217;re out and about with nothing else to do, come by and join the rest of the VMware nerds. Here is some information on the VMware Summit in Charlotte: <strong>Carolina VMware User Summit</strong> (CVUS)  2009 will be even more exciting this year! The summit will feature some of the industryâ€™s very best virtualization experts from across the globe. If you enjoyed last year&#8217;s Carolina VMware Users Summit, you will not want to miss out on Carolina VMware Users Summit 2009. These speakers and many more will be on-hand to guide us through our everyday challenges and give us a peek into what may be to come.</p>
<p><span id="more-308"></span></p>
<p>Here is the schedule for the summit:</p>
<table border="0" cellspacing="0" cellpadding="4" width="98%">
<tbody>
<tr>
<td style="font-size: 12px; color: #125687; font-family: Arial,Helvetica,sans-serif;" colspan="2"><span style="font-weight: bold; font-size: 12px; font-family: Arial,Helvetica,sans-serif;"><span class="style8">Agenda:</span></span></td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" width="17%" align="left" valign="middle"><strong>07:30am &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" width="83%">Registration, Networking, Continental Breakfast</td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="top"><strong>08:30am &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;">Welcome &amp; Introductions:<br />
Charlie Gautreaux / Greg Plough, VMUG</td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>08:45am &#8211; </strong></td>
<td class="style8" style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;">Guest Speaker: Mike Laverick, RTFM Education</td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>09:30am &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;">VMware Update: VMware Staff</td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>10:15am &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;"><strong><a style="font-family: Arial,Helvetica,sans-serif; font-weight: bold; color: #125687; text-decoration: none;" href="http://campaign.vmware.com/usergroup/invites/Carolina_Summit_Breakouts_5-29-09.html" target="_blank"><strong>Breakout Sessions </strong></a></strong></td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>11:00am &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;">Break</td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>11:15am &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;"><strong><a style="font-family: Arial,Helvetica,sans-serif; font-weight: bold; color: #125687; text-decoration: none;" href="http://campaign.vmware.com/usergroup/invites/Carolina_Summit_Breakouts_5-29-09.html" target="_blank"><strong>Breakout Sessions</strong></a> </strong></td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>12:00pm &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;">Lunch &amp; Keynote: NetApp <em>(Keynote will start at 12:30pm)</em></td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>01:30pm &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;">Vendor Fair</td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>02:00pm &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;"><strong><a style="font-family: Arial,Helvetica,sans-serif; font-weight: bold; color: #125687; text-decoration: none;" href="http://campaign.vmware.com/usergroup/invites/Carolina_Summit_Breakouts_5-29-09.html" target="_blank"><strong>Breakout Sessions</strong></a> </strong></td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>02:45pm &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;">Break</td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>03:00pm &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;">Afternoon Keynote: Varrow</td>
</tr>
<tr>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;" align="left" valign="middle"><strong>03:45pm &#8211; </strong></td>
<td style="font-size: 12px; color: #626262; font-family: Arial,Helvetica,sans-serif;">Networking Reception &amp; Raffle</td>
</tr>
</tbody>
</table>
<p><span style="font-size: 12px; font-family: Arial,Helvetica,sans-serif;"><em></em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/05/charlotte-nc-vmware-event-carolina-vmware-users-summit-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla 1.5 Bulk User Import CSV using PHP Script</title>
		<link>http://www.piranhamethod.com/2009/05/joomla-15-bulk-user-import-csv-using-php-script/</link>
		<comments>http://www.piranhamethod.com/2009/05/joomla-15-bulk-user-import-csv-using-php-script/#comments</comments>
		<pubDate>Thu, 28 May 2009 04:09:01 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[joomla tips]]></category>
		<category><![CDATA[php scripts]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=297</guid>
		<description><![CDATA[While doing some work tonight, I came across a handy little script that is useful for importing users in bulk into Joomla using CSV files. This is very useful if your are moving user information from another content management system (CMS) into Joomla 1.5.]]></description>
			<content:encoded><![CDATA[<p>While doing some work tonight, I came across a handy little script that is useful for importing users in bulk into Joomla using CSV files. This is very useful if your are moving user information from another content management system (CMS) into Joomla 1.5.</p>
<p><span id="more-297"></span></p>
<pre name="code" class="php">
< ?php

// Hande form upload
if(isset($_POST['import'])) {

$mysql_host = trim($_POST['mysql_host']);
$mysql_user = trim($_POST['mysql_username']);
$mysql_password = trim($_POST['mysql_password']);
$mysql_schema = trim($_POST['mysql_schema']);

$table_prefix = trim($_POST['table_prefix']);

if(!mysql_connect($mysql_host, $mysql_user, $mysql_password) || !mysql_select_db($mysql_schema)) {
echo â€˜Supplied MySQL details were incorrect - abortingâ€™;
return;
}

// Get the joomla groups
$sql = sprintf(â€˜
SELECT  `id`, `value`
FROM    `%score_acl_aro_groups`
â€˜,
$table_prefix
);
$rs = mysql_query($sql);
$groups = array();
while($group = mysql_fetch_object($rs)) {
$groups[$group->value] = $group->id;
}

$fp = fopen($_FILES['csv']['tmp_name'], â€˜râ€™);
while($user = fgetcsv($fp)) {

printf(â€˜Importing â€%sâ€ â€¦ â€™, $user[0]);

// Lookup and verify user group
if(!isset($groups[$user[4]])) {
printf(â€˜error: Invalid group (%s) for %s. Defaulting to <code>Registered</code>%sâ€™, $user[4], $user[0], PHP_EOL);
$user[4] = â€˜Registeredâ€™;
}

// Insert record into wsers
$sql = sprintf(â€˜
INSERT INTO `%susers`
SET
`name`            = â€%sâ€,
`username`        = â€%sâ€,
`email`           = â€%sâ€,
`password`        = â€%sâ€,
`usertype`        = â€%sâ€,
`block`           = â€%sâ€,
`sendEmail`       = â€%sâ€,
`gid`             = â€%sâ€,
`registerDate`    = NOW(),
`lastvisitDate`   = â€0000-00-00 00:00:00â€³,
`activation`      = â€",
`params`          = â€"
â€˜,
$table_prefix,
sql_prep($user[0]),
sql_prep($user[1]),
sql_prep($user[2]),
isset($_POST['md5_passwords']) ? md5($user[3]) : sql_prep($user[3]),
sql_prep($user[4]),
sql_prep($user[5]),
sql_prep($user[6]),
$groups[$user[4]]
);
mysql_query($sql);
// Get back ther userâ€™s ID
list($user_id) = mysql_fetch_row(mysql_query(â€˜SELECT LAST_INSERT_ID()â€™));

// Insert record into core_acl_aro
$sql = sprintf(â€˜
INSERT INTO `%score_acl_aro`
SET
`section_value`   = â€usersâ€,
`value`           = %d,
`name`            = â€%sâ€
â€˜,
$table_prefix,
$user_id,
sql_prep($user[0])
);
mysql_query($sql);

// Insert record into core_acl_groups_aro_map
$sql = sprintf(â€˜
INSERT INTO `%score_acl_groups_aro_map`
SET
`group_id`        = %d,
`aro_id`          = LAST_INSERT_ID()
â€˜,
$table_prefix,
$groups[$user[4]]
);
mysql_query($sql);

echo â€˜done.â€™;
flush();
}

echo â€˜

<strong>Done</strong>â€™;

} else {
// show upload form
?>
<html><head></head><body>
<h1>Import Users to Joomla</h1>


Use this script to do a bulk import of users into Joomla 1.5.
Upload a CSV file with the following format:
<code>
name, username, email, password, usertype, block, send_email
</code>
Wrap details with commas in them in quotes.

<hr />
<form action=â€/index.phpâ€œ method=â€postâ€ enctype=â€multipart/form-dataâ€>
<input type=â€hiddenâ€ name=â€importâ€ value=â€1â€³ />
<table cellpadding=â€4pxâ€>
<tr>
<td>CSV File: </td>
<td>
<input type=â€fileâ€ name=â€csvâ€ /></td>
</tr>
<tr>
<td>MD5 Hash Passwords: </td>
<td>
<input type=â€checkboxâ€ name=â€md5_passwordsâ€ /><small>*Check this option if the passwords in your CSV are in plain text</small></td>
</tr>
<tr>
<td>Joomla Table Prefix: </td>
<td>
<input type=â€textâ€ name=â€table_prefixâ€ value=â€jos_â€ /></td>
</tr>
<tr>
<td>Joomla Database Name: </td>
<td>
<input type=â€textâ€ name=â€mysql_schemaâ€ value=â€joomlaâ€ /></td>
</tr>
<tr>
<td>MySQL Host: </td>
<td>
<input type=â€textâ€ name=â€mysql_hostâ€ value=â€localhostâ€ /></td>
</tr>
<tr>
<td>MySQL Username: </td>
<td>
<input type=â€textâ€ name=â€mysql_usernameâ€ value=â€" /></td>
</tr>
<tr>
<td>MySQL Password: </td>
<td>
<input type=â€textâ€ name=â€mysql_passwordâ€ value=â€" /></td>
</tr>
<tr>
<td></td>
<td>
<input type=â€submitâ€ name=â€submitâ€ value=â€ Import Users! â€ /></td>
</tr>
</table>
</form>

</body></html>
< ?php
}

function sql_prep($var) {
return mysql_real_escape_string($var);
}
?>
</pre>
<link type="text/css" rel="stylesheet" href="css/SyntaxHighlighter.css"></link>
<script language="javascript" src="js/shCore.js"></script><br />
<script language="javascript" src="js/shBrushCSharp.js"></script><br />
<script language="javascript" src="js/shBrushXml.js"></script><br />
<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/05/joomla-15-bulk-user-import-csv-using-php-script/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Concrete5, Content Management in the Web 3.0 World?</title>
		<link>http://www.piranhamethod.com/2009/05/concrete5-content-management-in-the-web-30-world/</link>
		<comments>http://www.piranhamethod.com/2009/05/concrete5-content-management-in-the-web-30-world/#comments</comments>
		<pubDate>Fri, 08 May 2009 04:35:35 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[application programming interface]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[concrete5]]></category>
		<category><![CDATA[content management system]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[Magnolia CMS]]></category>
		<category><![CDATA[QDrupal]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=261</guid>
		<description><![CDATA[My first impression of Concrete5 is that it is a much more user-friendly and user-centered content management system than I have seen in a while. I remember having dreams of developing something like this, something more functional, something more logically integrated with the front-end GUI than the more recent systems to hit the web. Years [...]]]></description>
			<content:encoded><![CDATA[<p>My first impression of <a title="Concrete5 CMS" href="http://www.concrete5.org" target="_blank">Concrete5</a> is that it is a much more user-friendly and user-centered content management system than I have seen in a while. I remember having dreams of developing something like this, something more functional, something more logically integrated with the front-end GUI than the more recent systems to hit the web.</p>
<p>Years ago, before the days of the huge Joomla and WordPress boom, I recall looking into an enterprise grade content management system for Zestra Laboratories (before the purchase by Semprae Laboratories). The system I was interested in was built on JSP (JavaServer Pages) and had an extremely advanced GUI for the day and age, allowing you to manage the content directly from the front-end, much like Concrete5 now gives you the ability to do now free with open source PHP.</p>
<p>On a side note, <a title="Magnolia CMS" href="http://www.magnolia-cms.com" target="_blank">Magnolia</a> is also a very robust CMS with features such as Concrete5, Magnolia strives itself on being extremely simple though may lack certain features and a large community supporting it, though it is a very clean content creation and enterprise style publishing tool, the problem with Magnolia is that it just can&#8217;t keep up with what these PHP systems are capable of pulling off. But this blog post is not about the Magnolia CMS anyway, we are focusing on Concrete5, check out this video for a quickie on what Concrete5 is all about:</p>
<p><a href="http://www.piranhamethod.com/2009/05/concrete5-content-management-in-the-web-30-world/"><em>Click here to view the embedded video.</em></a></p>
<p>It seems that they have really brought together the ability for a basic blog user to be able to start beginning to create more advanced web applications directly without any developer expertise. The most impressive part of Concrete5 is the ability for you to logically understand what element it is that you are adding to the page visually, this is going to be a key part of the trend that I see web publishing following in the course of the coming years.</p>
<p>The only thing that I would like to see extended onto Concrete5 is the ability to create your own types of data models, data grids or other types of media and form controls. Since I haven&#8217;t spent much time in the back-end programming of Concrete5 yet, I can only assume that they have built it cleanly on an objected oriented architecture and have some form of API (Application Programming Interface) built into the application framework.</p>
<p>Being able to integrate something like Concrete5 with <a title="Qcubed" href="http://qcu.be/" target="_blank">QCubed</a>/QCodo would give the average user the ability to edit and create more advanced web applications as well as advanced database manipulation without the intervention of experienced programmers. Currently the only CMS that has been integrated into QCubed/QCodo is a module that integrates the QCubed PHP5 Framework with <a title="Drupal" href="http://www.drupal.org/" target="_blank">Drupal</a> called <a title="QDrupal" href="http://drupal.org/project/qdrupal" target="_blank">QDrupal</a>.</p>
<p>With the ability to extend Concrete5 with more AJAX based, user-centric tools, users will growingly have direct access to the way data is created and stored, and ultimately how web applications are born.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/05/concrete5-content-management-in-the-web-30-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>&#8220;The Dude&#8221; Abides</title>
		<link>http://www.piranhamethod.com/2009/03/the-dude-abides/</link>
		<comments>http://www.piranhamethod.com/2009/03/the-dude-abides/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 09:04:41 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[Network Monitoring]]></category>
		<category><![CDATA[Mikrotik]]></category>
		<category><![CDATA[Mikrotik Dude]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Network Map]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[The Dude]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=193</guid>
		<description><![CDATA[The Dude is a real-time network monitoring platform developed by Mikrotik.]]></description>
			<content:encoded><![CDATA[<p>It wouldn&#8217;t be a stretch for you to think that I&#8217;m referring to the one and only &#8220;Dude&#8221;, that&#8217;s right, the White Russian drinking, carpet stealing, Dude from LA. But in fact, I&#8217;m talking about one of Mikrotik&#8217;s latest releases: <a href="http://www.mikrotik.com/thedude.php">The Dude</a> Network Monitoring System.</p>
<p>The Dude network monitor is a new application by MikroTik which can dramatically improve the way you manage your network environment. It will automatically scan all devices within specified subnets, draw and layout a map of your networks, monitor services of your devices and alert you in case some service has problems.</p>
<p>If you happen to be using Mikrotik routers, The Dude also features seamless integration, allowing for a more unified network management platform. Best of all, The Dude is entirely FREE, thanks Mikrotik!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/03/the-dude-abides/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphing Tranzeo Wireless SNMP Stats Using Cacti</title>
		<link>http://www.piranhamethod.com/2009/03/graphing-tranzeo-wireless-snmp-stats-using-cacti/</link>
		<comments>http://www.piranhamethod.com/2009/03/graphing-tranzeo-wireless-snmp-stats-using-cacti/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 08:50:12 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Network Monitoring]]></category>
		<category><![CDATA[Wireless Networking Technology]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[graphs]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[tranzeo]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=187</guid>
		<description><![CDATA[This is a quick note on how to track your Tranzeo wireless statistics using Cacti.]]></description>
			<content:encoded><![CDATA[<p>If you are trying to graph the link and noise levels of your Tranzeo wireless equipment on Cacti and are running into problems, changes are that you need to download this graph file <a href="http://www.piranhamethod.com/downloads/TranzeoCactiGraph.xml">TranzeoCactiGraph.xml</a>.</p>
<p>Loading this file into Cacti will allow you to create Tranzeo specific graphs for any wireless Tranzeo equipment that may be deployed on your network. Simply make sure that SNMP is turned on in the Tranzeo control panel and you should be ready to start receiving the wireless statistics in Cacti.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/03/graphing-tranzeo-wireless-snmp-stats-using-cacti/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVZ Container Weekly Bash Backup Script: VZDUMP</title>
		<link>http://www.piranhamethod.com/2009/03/openvz-container-weekly-bash-backup-script/</link>
		<comments>http://www.piranhamethod.com/2009/03/openvz-container-weekly-bash-backup-script/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 08:35:12 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Debian Linux]]></category>
		<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ve]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[vzdump]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=183</guid>
		<description><![CDATA[This is a handy backup script that will once a week perform a vzdump operation on your HN, thus dumping an imaged copy of all of your virtual machines, then uploading them all to the FTP server of your choice using ncftpput.]]></description>
			<content:encoded><![CDATA[<p>This is a handy backup script that will once a week perform a vzdump operation on your HN, thus dumping an imaged copy of all of your virtual machines, then uploading them all to the FTP server of your choice using ncftpput.<br />
<span id="more-183"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Container backup script</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### System Setup ###</span>
<span style="color: #007800;">BACKUP</span>=<span style="color: #000000; font-weight: bold;">/</span>vz<span style="color: #000000; font-weight: bold;">/</span>backup.<span style="color: #007800;">$$</span>
<span style="color: #007800;">NOW</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%Y-%m-%d&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">LAST</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>Y-<span style="color: #000000; font-weight: bold;">%</span>m-<span style="color: #000000; font-weight: bold;">%</span>d <span style="color: #660033;">-d</span> <span style="color: #ff0000;">'-7 days'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">DAY</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%a&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">HOSTNAME</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(hostname)</span>&quot;</span>
<span style="color: #007800;">DUMP</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(which vzdump)</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### FTP server Setup ###</span>
<span style="color: #007800;">FTPD</span>=<span style="color: #ff0000;">&quot;/backups&quot;</span>
<span style="color: #007800;">FTPU</span>=<span style="color: #ff0000;">&quot;username&quot;</span>
<span style="color: #007800;">FTPP</span>=<span style="color: #ff0000;">&quot;password&quot;</span>
<span style="color: #007800;">FTPS</span>=<span style="color: #ff0000;">&quot;xxx.xxx.xxx.xxx&quot;</span>
<span style="color: #007800;">NCFTP</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(which ncftp)</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### Other stuff ###</span>
<span style="color: #007800;">EMAILID</span>=<span style="color: #ff0000;">&quot;support@hostname.com&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### Start Backup for file system ###</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #007800;">$BACKUP</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #007800;">$BACKUP</span> <span style="color: #000000; font-weight: bold;">||</span> :
&nbsp;
<span style="color: #007800;">$DUMP</span> <span style="color: #660033;">--exclude-path</span> <span style="color: #ff0000;">'.+/log/.+'</span> <span style="color: #660033;">--exclude-path</span> <span style="color: #ff0000;">'.+/bak/.+'</span> <span style="color: #660033;">--exclude-path</span> <span style="color: #ff0000;">'/tmp/.+'</span> <span style="color: #660033;">--exclude-path</span> <span style="color: #ff0000;">'/var/tmp/.+'</span> <span style="color: #660033;">--exclude-path</span> <span style="color: #ff0000;">'/var/run/.+pid'</span> <span style="color: #660033;">--stop</span> <span style="color: #660033;">--dumpdir</span>=<span style="color: #007800;">$BACKUP</span> <span style="color: #660033;">--compress</span> <span style="color: #660033;">--all</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### Dump backup using FTP ###</span>
<span style="color: #666666; font-style: italic;">#Start FTP backup using ncftp</span>
<span style="color: #007800;">$NCFTP</span> <span style="color: #660033;">-u</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$FTPU</span>&quot;</span> <span style="color: #660033;">-p</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$FTPP</span>&quot;</span> <span style="color: #007800;">$FTPS</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span> EOF
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #007800;">$FTPD</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NOW</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$FTPD</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NOW</span>
lcd <span style="color: #007800;">$BACKUP</span>
mput <span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">rmdir</span> <span style="color: #007800;">$FTPD</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$LAST</span>
quit
EOF
&nbsp;
<span style="color: #666666; font-style: italic;">### Find out if ftp backup failed or not ###</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$?&quot;</span> == <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #007800;">$BACKUP</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #007800;">T</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>backup.fail
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Date: <span style="color: #007800;">$(date)</span>&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$T</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Hostname: <span style="color: #007800;">$(hostname)</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span><span style="color: #007800;">$T</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup failed&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span><span style="color: #007800;">$T</span>
mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;BACKUP FAILED&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$EMAILID</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #007800;">$T</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #007800;">$T</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/03/openvz-container-weekly-bash-backup-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bonding/Bridging NIC/Network Adapter with Debian Etch</title>
		<link>http://www.piranhamethod.com/2009/03/bondingbridging-nicnetwork-adapter-with-debian-etch/</link>
		<comments>http://www.piranhamethod.com/2009/03/bondingbridging-nicnetwork-adapter-with-debian-etch/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 08:21:43 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Debian Linux]]></category>
		<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[bridging]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[ip bonding]]></category>
		<category><![CDATA[network adapter]]></category>
		<category><![CDATA[NIC]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=179</guid>
		<description><![CDATA[A quick and dirty example of how to set up IP Bonding on Debian Etch]]></description>
			<content:encoded><![CDATA[<p>Run: <code>apt-get install ifenslave</code></p>
<p>Then edit /etc/modprobe.d/arch/i386:</p>
<p><code>alias bond0 bonding<br />
options bonding mode=2 miimon=100 downdelay=200 updelay=200</code></p>
<p>Then edit the file /etc/network/interfaces and insert something like the following (as a replacement for the configuration of eth0 that you might currently be using). Note that XX:XX:XX:XX:XX:XX must be replaced by the hardware address of one of the interfaces that are being bonded or by a locally administered address.</p>
<p>Edit /etc/network/interfaces:</p>
<p><code>auto bond0<br />
iface bond0 inet static<br />
pre-up modprobe bond0<br />
hwaddress ether 00:02:55:E1:36:32<br />
address 10.0.0.199<br />
netmask 255.255.255.0<br />
gateway 10.0.0.1<br />
slaves eth0 eth1</code></p>
<p>The special file /proc/net/bonding/bond0 can be used to view the current configuration of the bond0 device.</p>
<p><code>/etc/init.d/networking restart</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/03/bondingbridging-nicnetwork-adapter-with-debian-etch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
