<?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>hypertoast</title>
	<atom:link href="http://hypertoast.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://hypertoast.net/blog</link>
	<description>Blog</description>
	<lastBuildDate>Wed, 15 Feb 2012 20:29:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Lost OpenVPN Connection to TomatoVPN</title>
		<link>http://hypertoast.net/blog/2012/02/15/lost-openvpn-connection-to-tomatovpn/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hypertoast.net/blog/2012/02/15/lost-openvpn-connection-to-tomatovpn/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 20:05:31 +0000</pubDate>
		<dc:creator>Nik</dc:creator>
				<category><![CDATA[IT]]></category>

		<guid isPermaLink="false">http://hypertoast.net/blog/?p=26</guid>
		<description><![CDATA[This is directed toward a pretty specific audience, so this probably won&#8217;t be too useful for many people. If you have TomatoVPN with OpenVPN set up, sometimes the OpenVPN server will go down, and you&#8217;ll lose access. It&#8217;s happened to &#8230; <a href="http://hypertoast.net/blog/2012/02/15/lost-openvpn-connection-to-tomatovpn/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is directed toward a pretty specific audience, so this probably won&#8217;t be too useful for many people. If you have <a href="http://tomatovpn.keithmoyer.com/">TomatoVPN</a> with OpenVPN set up, sometimes the <a href="http://openvpn.net/">OpenVPN</a> server will go down, and you&#8217;ll lose access. It&#8217;s happened to me many times where all of a sudden, I get a disconnect and an error like the following in my logs:</p>
<p><code>Feb 15 11:34:34 localbox ovpn-client[2621]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)<br />
Feb 15 11:34:34 localbox ovpn-client[2621]: TLS Error: TLS handshake failed</code></p>
<p>Due to this, I&#8217;ve come up with a routine to work around the problem. First, you need to make sure you can SSH in from outside your network. The settings I use look like this:</p>
<p><a href="http://hypertoast.net/blog/wp-content/uploads/2012/02/tomato.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="alignnone size-medium wp-image-32" title="TomatoVPN SSH Settings" src="http://hypertoast.net/blog/wp-content/uploads/2012/02/tomato-300x194.png" alt="" width="300" height="194" /></a></p>
<p>Assuming you can still SSH in, the process to restart the OpenVPN server is pretty simple. Just use the option -D and specify a port, to set up a proxy for your web browser.</p>
<p><code>ssh -D 1800 root@yourtomato</code></p>
<p>After that, configure the proxy on your local machine or browser to use localhost on port 1800, and you should be able to reach Tomato on its LAN IP.</p>
]]></content:encoded>
			<wfw:commentRss>http://hypertoast.net/blog/2012/02/15/lost-openvpn-connection-to-tomatovpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switching from SVN to Git</title>
		<link>http://hypertoast.net/blog/2011/08/02/switching-from-svn-to-git/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hypertoast.net/blog/2011/08/02/switching-from-svn-to-git/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 00:51:41 +0000</pubDate>
		<dc:creator>Nik</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://hypertoast.net/blog/?p=17</guid>
		<description><![CDATA[Last week I came across a post on Slashdot about Git, stating that Eclipse had picked up Git as a supported alternative to Subversion. It was particularly interesting to me, as I had just been checking out alternatives to Subversion, &#8230; <a href="http://hypertoast.net/blog/2011/08/02/switching-from-svn-to-git/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last week I came across <a href="http://developers.slashdot.org/story/11/07/27/0012218/The-Rise-of-Git">a post on Slashdot about Git</a>, stating that <a href="http://www.infoworld.com/d/application-development/torvaldss-git-the-it-technology-software-version-control-167799?page=0,0">Eclipse had picked up Git</a> as a supported alternative to <a href="http://subversion.apache.org/">Subversion</a>. It was particularly interesting to me, as I had just been checking out alternatives to Subversion, like <a href="http://mercurial.selenic.com/">Mercurial</a>, even going so far as setting up the server and installing <a href="http://rhodecode.org/">Rhodecode</a> to handle management. I figured that if <a href="http://www.eclipse.org/">Eclipse</a> was supporting <a href="http://git-scm.com/">Git</a> though, I should give it a try. I went through the quick, but painful process of setting up <a href="http://gitorious.org/">Gitorious</a> on my server and started adding test repositories and seeing what it could do. I was pretty well impressed and decided to move to that platform, especially after seeing how much better <a href="http://eclipse.org/egit/">EGit</a> worked than <a href="http://javaforge.com/project/HGE">MercurialEclipse</a>.</p>
<p>In SVN, I had set up a repository for each general area of coding I do, one for personal stuff, one for freelance work, and so on. In those, I had folders for each project. In the projects, I had folders for each version, basically a snapshot of the code at a landmark date. I looked and tried many different programs to convert them to git, but ultimately couldn&#8217;t find anything that worked. I took an alternate route: set up an empty Git repository for each project, copied the versions in, tagged them, and copied the next highest version in. I lost a lot of my history, but thankfully that didn&#8217;t really matter to me as long as I had the landmark versions.</p>
<p>It took me an entire day to copy and set up all my projects, but I&#8217;ve noticed myself committing more often with more descriptive comments and just pushing when I&#8217;m done, since it&#8217;s so much faster and less troublesome than SVN. I&#8217;m definitely no power&ndash;user, but I never really was with SVN either. I also really like the idea of each clone being an entire repository in itself, in case something were to happen to my main repositories. Overall, I&#8217;m glad I chose to make the change.</p>
]]></content:encoded>
			<wfw:commentRss>http://hypertoast.net/blog/2011/08/02/switching-from-svn-to-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress e-Commerce Store</title>
		<link>http://hypertoast.net/blog/2011/07/11/wordpress-e-commerce-store/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hypertoast.net/blog/2011/07/11/wordpress-e-commerce-store/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 18:55:43 +0000</pubDate>
		<dc:creator>Nik</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://hypertoast.net/blog/?p=12</guid>
		<description><![CDATA[I&#8217;ve recently been working on store sites for a client. This client asked me to work on another store for him, and during my initial data-gathering process, I suggested that we give WordPress and an e-commerce plugin a try. I &#8230; <a href="http://hypertoast.net/blog/2011/07/11/wordpress-e-commerce-store/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been working on store sites for a client. This client asked me to work on another store for him, and during my initial data-gathering process, I suggested that we give <a href="http://wordpress.org/" target="_blank">WordPress</a> and an e-commerce plugin a try. I prefer WordPress&#8217; simplicity over the complicated mess that <a href="http://www.joomla.org/" target="_blank">Joomla</a> is, but granted, every software has a niche where it can shine.</p>
<p>Anyway, I took a look through the available plugins for e-commerce and settled on the widely used <a href="http://www.instinct.co.nz/e-commerce/" target="_blank">WordPress e-Commerce</a>. I installed it, set up a few test categories and items, and handed an admin password over for the client to give it a try and see if it was agreeable. As it turned out, there was a problem in the plugin where you couldn&#8217;t switch the editor from HTML to Visual or vice versa. Loaded up <a href="http://getfirebug.com/" target="_blank">Firebug</a> and found it wasn&#8217;t properly including a certain JavaScript file. I also noticed that it wasn&#8217;t properly uploading photos, and not applying category photos. Digging through the logs, I found it was trying to write to a not created directory, ./wp-content/uploads/wpsc. Created the directory, changed some permissions, and reinstalled the plugin. Everything was good again and the client was happy with the choice.</p>
<p>Exciting? Not really. I&#8217;m just glad it was an easily fixable problem, but I&#8217;m still not exactly sure why the JavaScript was failing when there isn&#8217;t any in the directories it created.</p>
]]></content:encoded>
			<wfw:commentRss>http://hypertoast.net/blog/2011/07/11/wordpress-e-commerce-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress SFTP Part 2</title>
		<link>http://hypertoast.net/blog/2010/06/10/wordpress-sftp-part-2/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hypertoast.net/blog/2010/06/10/wordpress-sftp-part-2/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 19:00:52 +0000</pubDate>
		<dc:creator>Nik</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Lucid]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.candiedbrains.com/?p=175</guid>
		<description><![CDATA[Note: This is an update of my previous post about enabling SFTP for WordPress available here. I updated to Ubuntu 10.04, also known as Lucid Lynx, on my server and SFTP in PHP applications stopped working. Turns out that the &#8230; <a href="http://hypertoast.net/blog/2010/06/10/wordpress-sftp-part-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #800000;">Note: This is an update of my previous post about enabling SFTP for WordPress <a title="WordPress SFTP" href="http://hypertoast.net/blog/2009/06/16/wordpress-sftp/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">available here</a>.</span></p>
<p>I updated to Ubuntu 10.04, also known as Lucid Lynx, on my server and SFTP in PHP applications stopped working. Turns out that the pecl build isn&#8217;t compatible with the version of PHP shipped with 10.04, as far as I can tell. I tried reinstalling it, but it wouldn&#8217;t build. Thankfully I found out that there&#8217;s a package of it available in the repos.</p>
<p>Here&#8217;s the new method to enable SSH in PHP, which makes SFTP in WordPress work again.</p>
<pre>user@computer:~$ sudo apt-get install libssh2-php</pre>
<p>Restart Apache and you&#8217;re on your way. Way simpler than before is just a nice bonus.</p>
]]></content:encoded>
			<wfw:commentRss>http://hypertoast.net/blog/2010/06/10/wordpress-sftp-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gtalk Highlight Notification for XChat</title>
		<link>http://hypertoast.net/blog/2010/02/22/gtalk-highlight-notification-for-xchat/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hypertoast.net/blog/2010/02/22/gtalk-highlight-notification-for-xchat/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 18:30:03 +0000</pubDate>
		<dc:creator>Nik</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Chat]]></category>
		<category><![CDATA[google talk]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[notification script]]></category>
		<category><![CDATA[xchat]]></category>

		<guid isPermaLink="false">http://www.candiedbrains.com/?p=144</guid>
		<description><![CDATA[I&#8217;m a moderator (admin? op?) on a very small IRC room. I always have at least one client running somewhere, usually on my Linux computer. Naturally I use XChat. Invariably someone will attempt to contact me via IRC when I&#8217;m &#8230; <a href="http://hypertoast.net/blog/2010/02/22/gtalk-highlight-notification-for-xchat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a moderator (admin? op?) on a very small IRC room. I always have at least one client running somewhere, usually on my Linux computer. Naturally I use <a href="http://xchat.org/">XChat</a>. Invariably someone will attempt to contact me via IRC when I&#8217;m not around, so I whipped together a quick little XChat plugin script that&#8217;ll send myself a <a href="http://www.google.com/talk/">Google Talk</a> message when someone writes a highlighted phrase, such as my nickname. If I&#8217;m not busy, I can then pop on and see what they wanted. Hopefully it won&#8217;t be too annoying, I can always just turn it off (I know at least one of you reads this. I will most definitely ban you if you bother me at the wrong time <img src='http://hypertoast.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).</p>
<p>Anyway, click the &#8220;read the rest of this entry&#8221; link for the script if you want to look at it.</p>
<p><span id="more-144"></span></p>
<pre>#!/usr/bin/perl -w
#
# Gtalk Highlight Notification
#
# Simple script that sends a GTalk Notification upon a highlighted word
# by almiteycow
#
#
# ---------------------------------------------------------------
# Jabber/GTalk implementation from
# http://www.pervasive-network.org/SPIP/Google-Talk-with-perl-bis
#
# by Thus0
# Copyright (c) 2005, Thus0. All rights reserved.
#
# released under the terms of the GNU General Public License v2

use strict;
use warnings;
use Xchat qw( :all );
use Net::XMPP;

## Configuration
## Put the account you'd like to send notifications FROM here. You might need to make a second account.
our $googleusername = "username";
our $googlepassword = "password";
## Put the account you'd like to send notifications TO here.
our $to = "notificationuser";

our $body;
our $resource = "PerlBot";

## End of configuration

#------------------------------------

# Google Talk &amp; Jabber parameters :

our $hostname = 'talk.google.com';
our $port = 5222;
our $componentname = 'gmail.com';
our $connectiontype = 'tcpip';
our $tls = 1;

#------------------------------------

my $name = 'Notification Script';
my $version = '0.1';
our $state = 0;

register($name, $version, 'Notification Script');
prnt("Loaded $name $version");

foreach ('Channel Msg Hilight') {
	hook_print($_, &amp;connectAndSend);
}
hook_command('notify', &amp;notifytoggle, { help_message =&gt; 'Usage: /notify (0/1) to turn off/on notfications' });

sub notifytoggle {
	if ($_[0][1] == "1") {
		$state = 1;
		Xchat::print("GTalk Notification On");
	} elsif($_[0][1] == "0") {
		$state = 0;
		Xchat::print("GTalk Notification Off");
	} else {
		Xchat::print("invalid option");
	}
	return EAT_XCHAT;
}

sub connectAndSend {
	if($state == 1) {
		my $highlighted = $_[0][0];
		my $msg = $_[0][1];
		my $data = "@{$_[0]}";
		my $ircserver = Xchat::get_info("server");;
		my $ircroom = Xchat::get_info("channel");
		$body = "New Message from $highlighted: $msg on $ircserver$ircroom";

		my $Connection = new Net::XMPP::Client();

		# Connect to talk.google.com
		my $status = $Connection-&gt;Connect(
			hostname =&gt; $hostname, port =&gt; $port,
			componentname =&gt; $componentname,
			connectiontype =&gt; $connectiontype, tls =&gt; $tls);

		if (!(defined($status))) {
			prnt "ERROR:  XMPP connection failed.n";
			prnt "        ($!)n";
			exit(0);
		}

		# Change hostname
		my $sid = $Connection-&gt;{SESSION}-&gt;{id};
		$Connection-&gt;{STREAM}-&gt;{SIDS}-&gt;{$sid}-&gt;{hostname} = $componentname;

		# Authenticate
		my @result = $Connection-&gt;AuthSend(
			  username =&gt; $googleusername, password =&gt; $googlepassword,
			  resource =&gt; $resource);

		if ($result[0] ne "ok") {
			prnt "ERROR: Authorization failed: $result[0] - $result[1]n";
			exit(0);
		}

		# Send message
		$Connection-&gt;MessageSend(
			to =&gt; "$to@$componentname", body =&gt; $body,
			resource =&gt; $resource);
	}

	return EAT_NONE;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://hypertoast.net/blog/2010/02/22/gtalk-highlight-notification-for-xchat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mailcleaner SpamAssassin 2010 Bug</title>
		<link>http://hypertoast.net/blog/2010/01/05/mailcleaner-spamassassin-2010-bug/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hypertoast.net/blog/2010/01/05/mailcleaner-spamassassin-2010-bug/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 17:16:48 +0000</pubDate>
		<dc:creator>Nik</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[mailcleaner]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[spam filter]]></category>

		<guid isPermaLink="false">http://www.candiedbrains.com/?p=139</guid>
		<description><![CDATA[SpamAssassin was reported to have a date-related bug in it, you can find more info here. This post will detail the way you can fix the bug if you happen to be running mailcleaner. I haven&#8217;t tested it fully, and &#8230; <a href="http://hypertoast.net/blog/2010/01/05/mailcleaner-spamassassin-2010-bug/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>SpamAssassin was reported to have a date-related bug in it, you can <a href="http://it.slashdot.org/story/10/01/02/0027207/SpamAssassin-2010-Bug">find more info here</a>. This post will detail the way you can fix the bug if you happen to be running <a href="http://www.mailcleaner.org/">mailcleaner</a>. I haven&#8217;t tested it fully, and don&#8217;t know how permanent it&#8217;ll be, but hopefully it&#8217;ll be of some use.</p>
<p><span id="more-139"></span></p>
<p>First, open an ssh connection to your mailcleaner server. I&#8217;m using Linux, if you&#8217;re on Windows, use <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> or something.:</p>
<pre>ssh root@mailcleaner</pre>
<p>The default password is &#8220;def&#8221;. Then, do:</p>
<pre>nano /usr/local/share/spamassassin/72_active.cf</pre>
<p>A quick little text editor should pop up. Hit Ctrl+W to do a search, and type &#8220;FH_DATE_PAST_20XX&#8221; into the search field. Hit enter. You&#8217;ll see a line like the following:</p>
<pre>header   FH_DATE_PAST_20XX      Date =~ /20[1-9][0-9]/ [if-unset: 2006]
</pre>
<p>Change it to:</p>
<pre>header   FH_DATE_PAST_20XX      Date =~ /20[2-9][0-9]/ [if-unset: 2006]</pre>
<p>Ctrl+X to exit, and Y, when asked if you want to save. You&#8217;re mostly done. You just need to log into the admin interface and restart the applicable services. Or reboot, if you don&#8217;t know how to do that.</p>
<p>The part I&#8217;m not too sure about is when the rule will be overwritten. I haven&#8217;t investigated to see if mailcleaner is grabbing a new set of rules every so often or not, so I&#8217;ll just have to keep my eye on the scoring for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://hypertoast.net/blog/2010/01/05/mailcleaner-spamassassin-2010-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mailcleaner Update Fix</title>
		<link>http://hypertoast.net/blog/2009/12/15/mailcleaner-update-fix/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hypertoast.net/blog/2009/12/15/mailcleaner-update-fix/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 10:59:01 +0000</pubDate>
		<dc:creator>Nik</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mailcleaner]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[spam filter]]></category>
		<category><![CDATA[spam issues]]></category>

		<guid isPermaLink="false">http://www.candiedbrains.com/?p=130</guid>
		<description><![CDATA[One of the places at which I do IT work runs a Microsoft Exchange 2003 Server for their email. They&#8217;d be having spam issues for quite some time, but were mostly resigned to turning on junkmail filtering, adding custom rulesets, &#8230; <a href="http://hypertoast.net/blog/2009/12/15/mailcleaner-update-fix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the places at which I do IT work runs a Microsoft Exchange 2003 Server for their email. They&#8217;d be having spam issues for quite some time, but were mostly resigned to turning on junkmail filtering, adding custom rulesets, and creating white and blacklists. Sometimes mails would go missing, but with the filter spaghetti, it was hard to tell where or why. MS, of course introduced IMF, but that was basically the equivalent of trying to stop a rushing river with a paper plate.</p>
<p>When I started working for them, one of the things I wanted to do was end this mess.<span id="more-130"></span> Being a fan of open source software (and having a project budget of $0), I started poking around into the various options. At first, I was looking for something to hook directly into the server, but I quickly found that there was no cheap way of going about it. However, I did find that you could drop a spam filter gateway SMTP server right in front of it. I tried looking for an all inclusive package, but was unfortunately not able to, I was going to have to set it up piece by piece. I ended up setting up a postfix box, with spam-assassin, mailscanner, and some RBL checks. I spent about 2 weeks customizing it and setting it just right.</p>
<p>It worked well for about a year, but by then, the rapid Ubuntu development had broken many of the packages I installed, to the point that the server was barely able to boot. In addition, a few users were reporting false positives, and try as I might, I couldn&#8217;t release them from the quarantine.</p>
<p>I went back to the drawing board. This time, I took note of a piece of software called <a href="http://www.mailcleaner.org/">mailcleaner</a>. It ran a setup very similar to the one I had custom made, except it was more of an all-in-one package. It promised to install and be configured within a couple of hours. It was the truth. It&#8217;s one of the easiest things I&#8217;ve had to set up. It wasn&#8217;t without its quirks though. I noticed the <a href="http://www.mailcleaner.org/doku.php/documentation:updates">update process</a> wasn&#8217;t working correctly. I poked around in the shell and documents, and noticed it was based on an old build of Debian (sarge). Updates for the OS had ended earlier in the year. Even the repository for the mailcleaner software itself wasn&#8217;t working. Quick fix for this, just change the repo locations. I had earlier noticed that the last update was scripted to replace the repo locations (I&#8217;m guessing this was a problem already), so easily inserted the new locations into the update script.</p>
<p>To do this, you run the updates like normal, until you get to the 2009012201 patch. You&#8217;ll need to edit the patch. It&#8217;s located at /usr/mailcleaner/updates/2009012201. Around line 32  you&#8217;ll see:</p>
<pre>cat &gt; /etc/apt/sources.list &lt;&lt; EOF
deb http://archive.debian.org/debian sarge main non-free contrib
#deb http://archive.debian.org/debian-security sarge/updates main non-free contrib
deb http://pool.mailcleaner.org sarge mailcleaner
EOF</pre>
<p>Replace the lines so it looks like:</p>
<pre>cat &gt; /etc/apt/sources.list &lt;&lt; EOF
deb ftp://archive.debian.org/debian-archive/debian sarge main non-free contrib
deb ftp://mirror.switch.ch/mirror/mailcleaner.org/ stable mailcleaner
EOF</pre>
<p>Apply the patch as per <a href="http://www.mailcleaner.org/doku.php/documentation:updates">the normal instructions</a>, and everything should go fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://hypertoast.net/blog/2009/12/15/mailcleaner-update-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ICH9R RAID with Windows 7 or Vista</title>
		<link>http://hypertoast.net/blog/2009/06/20/ich9r-raid-with-windows-7-or-vista/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hypertoast.net/blog/2009/06/20/ich9r-raid-with-windows-7-or-vista/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 01:21:40 +0000</pubDate>
		<dc:creator>Nik</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[sata drivers]]></category>
		<category><![CDATA[western digital]]></category>

		<guid isPermaLink="false">http://www.candiedbrains.com/?p=82</guid>
		<description><![CDATA[This problem starts with the beta release of Windows 7. I was using XP, going along fine, but figured 7 looked great, and hey why not give it a try. Little did I know the huge headache this would cause &#8230; <a href="http://hypertoast.net/blog/2009/06/20/ich9r-raid-with-windows-7-or-vista/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This problem starts with the beta release of Windows 7. I was using XP, going along fine, but figured 7 looked great, and hey why not give it a try. Little did I know the huge headache this would cause me. Twice.</p>
<p>So, let&#8217;s start with specs related to this problem, for those of you who are looking for help for similar problems:</p>
<pre>Abit IP35 Motherboard
ICH9R SATA controller
Western Digital Raptor Drives x2</pre>
<p>Now, this may help people with a various range of equipment. I think it applies to a good portion of the Intel ICH series SATA controllers, and I bet it&#8217;s not just limited to my motherboard or hard drives. Leave a comment if it this helps you, so other people searching can find the answer as well. Read on for more information.</p>
<p><span id="more-82"></span></p>
<p>Now, it started when I tried to upgrade to 7. I backed up all my data and shut down. I had come across another WD Raptor in my travels, so I figured, why not use the RAID ability of my motherboard to add a striped RAID0 for the system disk. Installed them both, booted, set up the RAID in BIOS, and then booted up the disc and started the install. I was pleasantly surprised to see that Microsoft had added the SATA drivers for my motherboard, so the RAID partition showed up promptly and correctly. I followed the prompts and let it install; everything went swimmingly, it was the quickest easiest Windows install I&#8217;d ever done. It went to go do the first of many reboots; I watched and waited. It continued setting up after the reboot, now running off the hard drive and doing the &#8220;configuring your system&#8221; part of the install. It was very very slow, but I was patient. Then all of a sudden, my system rebooted. That was OK, I figured, it was just doing another reboot for its setup. I was entirely wrong. Upon reboot it told me that something had gone wrong with the install and I would have to do it over.</p>
<p>After many reboots and configuration changes, I realized that it seemed to work fine if I had my motherboard in IDE or ACHI mode. IDE wasn&#8217;t an option, as I wanted the speed benefits. I was persistent, so AHCI wouldn&#8217;t cut it either. I tried many different versions of the drivers for the ICH9R: Intel&#8217;s, Abit&#8217;s, Microsofts. I tried loading them during install, loading them after I had it installed in AHCI mode. Nothing worked. Eventually I figured out that if I used a spare SATA drive I had laying about, I could install it on there and clone the drive back onto the RAID drives. I did so, and everything was happy, for a while.</p>
<p>Eventually, Windows 7 RC came out, and I would be forced to upgrade from Beta to RC starting July. I downloaded the new disc and burned it to DVD. Backed up my data, rebooted and started the process. I had a hint of remembrance for the last time, but I figured it was an update and a problem they had already noticed and fixed. Wrong again. Same problem happened. I forgot most of the process I did last time to make it work as well. I did try the other drive thing eventually even. Still nothing. I came around to noticing that the driver that was installed said &#8220;Intel(R) ICH9R/DO/DH SATA AHCI Controller&#8221;. I looked at the Intel Matrix Storage Console and nothing RAID related showed up. I figured there was something wrong there. So, I decided to try to force it into loading the RAID controller driver instead. To my amazement, it worked.</p>
<p>So, here&#8217;s the way to install Windows 7 or Vista on a computer with RAID on these components. Take note, you could definitely potentially screw up your computer and cause irreparable harm to it or yourself by following these directions. I take no responsibility.</p>
<ol>
<li>Grab the latest Intel Matrix Storage software from their site and extract it, or grab the floppy drivers for the install, doesn&#8217;t really matter. Extract them wherever, maybe on a usb drive.</li>
<li>Install your OS onto one of the drives in AHCI mode, if it won&#8217;t install successfully, you&#8217;ll need to find a spare SATA drive and do it to that drive.</li>
<li>Boot into the OS and install the drivers, if you haven&#8217;t done it during the install.</li>
<li>You&#8217;ll notice the above Intel ICH9R SATA <strong>ACHI </strong>driver in device manager.</li>
<li>Launch regedit, and find these keys:<br />
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesiaStor<br />
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesiaStorV<br />
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesmsahci</li>
<li>You need to modify the &#8220;Start&#8221; parameter of them, mine are set to the following: iaStor is set to 3, iaStorV is set to 0, msahci is set to 0.</li>
<li>Reboot, and change your BIOS setting to RAID before Windows starts.</li>
<li>You should now check device manager to see if it says &#8220;Intel(R) ICH8R/ICH9R/ICH10R/DO SATA<strong> RAID </strong>Controller&#8221;.<br />
<a href="http://hypertoast.net/blog/wp-content/uploads/2009/06/deviceman.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="alignnone size-medium wp-image-204" title="Device Manager" src="http://hypertoast.net/blog/wp-content/uploads/2009/06/deviceman-269x300.png" alt="" width="269" height="300" /></a></li>
<li>You can now clone your drive onto your RAID install, or just expand your drive into a RAID using the Intel Matrix Storage Manager program. I did the clone and it worked.</li>
<li><em>Enjoy!</em></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://hypertoast.net/blog/2009/06/20/ich9r-raid-with-windows-7-or-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress SFTP</title>
		<link>http://hypertoast.net/blog/2009/06/16/wordpress-sftp/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hypertoast.net/blog/2009/06/16/wordpress-sftp/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 14:11:19 +0000</pubDate>
		<dc:creator>Nik</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Hardy]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.candiedbrains.com/?p=64</guid>
		<description><![CDATA[Note: This post has been superseded by a newer post. Read it here. I don&#8217;t like to use FTP at all when I can help it. It&#8217;s an old protocol and doesn&#8217;t hold up in regards to security. I could &#8230; <a href="http://hypertoast.net/blog/2009/06/16/wordpress-sftp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">Note: This post has been superseded by a newer post. <a title="WordPress SFTP Part 2" href="http://hypertoast.net/blog/2010/06/10/wordpress-sftp-part-2/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">Read it here</a>.</span></p>
<p>I don&#8217;t like to use FTP at all when I can help it. It&#8217;s an old protocol and doesn&#8217;t hold up in regards to security. I could use FTPS, which is a Secure Sockets Layer over FTP, requiring a key exchange, but frankly, that sounds like too much work for me. Since I already use SSH and SSH has file transfer capability, I usually use that to manage things. It&#8217;s commonly called SFTP. Unfortunately, this breaks many apps that expect you to be using FTP, such as WordPress.</p>
<p>Little known to me was that this wasn&#8217;t the fault of WordPress; those glorious developers had already added ssh file transfer support to it some time ago. What was lacking was communication between PHP and SSH. When I researched online, I found instructions on how to get them talking to each other, which kicks in the SFTP support in WordPress. I&#8217;ll detail them here for reference. (Note, this is on Ubuntu Hardy, and I&#8217;m using Apache 2 and PHP5.)</p>
<pre>user@computer:~$ sudo apt-get install libssh2-1-dev php-pear
user@computer:~$ sudo pecl install -f ssh2
user@computer:~$ sudo nano /etc/php5/apache2/php.ini</pre>
<p>Find the section titled &#8220;Dynamic Extensions&#8221; and below, add:</p>
<pre>extension=ssh2.so</pre>
<p>Save it and exit, and then just do an Apache restart.</p>
<p>thanks to [<a href="http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/">Kevin van Zonneveld</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://hypertoast.net/blog/2009/06/16/wordpress-sftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project Upstream</title>
		<link>http://hypertoast.net/blog/2009/05/05/project-upstream/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://hypertoast.net/blog/2009/05/05/project-upstream/#comments</comments>
		<pubDate>Tue, 05 May 2009 23:50:50 +0000</pubDate>
		<dc:creator>Nik</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[Chat]]></category>
		<category><![CDATA[coho]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[social experiment]]></category>

		<guid isPermaLink="false">http://www.candiedbrains.com/?p=57</guid>
		<description><![CDATA[Earlier today I got a random message from xenophobiccoho on AIM. Something along the lines of &#8220;Politicians kissing babies&#8230; how much tongue is too much?&#8220;. I, naturally, am unfazed by such a question from a random person, having done quite &#8230; <a href="http://hypertoast.net/blog/2009/05/05/project-upstream/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Earlier today I got a random message from xenophobiccoho on AIM. Something along the lines of &#8220;<em>Politicians kissing babies&#8230; how much tongue is too much?</em>&#8220;. I, naturally, am unfazed by such a question from a random person, having done quite a bit of trolling myself. Unfortunately, I missed the message by a couple of hours, or I would have answered the query. I remembered getting a similar message at some point in the past, from a *trout, so I figured I&#8217;d look up this screen name and see what info traces I could find on the net. What I found was way stranger and awesomer than I could have ever imagined.</p>
<p>It turns out they&#8217;re actually some sort of fish bot network. That&#8217;s fish as in the thing that swims in the water, not so much the malicious hacker kind. There&#8217;s a ton of them (<a href="http://community.livejournal.com/themissinghat/479963.html">names here</a>), usually ending with *coho, *trout, and *salmon. It&#8217;s something called Project Upstream. From their web page:</p>
<blockquote><p>&#8220;Project Upstream is an organization dedicated to promoting social ideals through the use of exciting new technology. Our most well-known service is our swarm of robotic fish, which connects AIM users to each other. Robotic fish connections occur spontaneously, and also by request.&#8221;</p></blockquote>
<p>Their mischievous method is they will message two people at random, pulling names from Google, twitter, digg, etc.. They&#8217;ll act as a middleman, disguising each chat participant&#8217;s screen name from one another, basically enticing them to talk to each other randomly. Both users will usually cluelessly think the other has messaged them, and most of the time respond accordingly to that. However, you might also end up talking to a more knowledgeable user, as you can <a href="http://project-upstream.awardspace.com/">request your own fish</a>. Chat messages are sometimes modified with a pirate theme, or old tymey english, or other variants. You can opt out of the program by sending a message containing $optout to one of the bots.</p>
<p>To me, it seems like a <a href="http://en.wikipedia.org/wiki/Discordianism">Discordian</a> version of the <a href="http://omegle.com/">Omegle</a> project. Also, it&#8217;s a great social experiment and good natured fun all around. Good luck little fishies!</p>
<p>[<a href="http://community.livejournal.com/themissinghat/tag/salmon+master">project upstream</a>] [<a href="http://project-upstream.awardspace.com/">request a fish</a>] [<a href="http://en.wikipedia.org/wiki/TheGreatHatsby">wikipedia</a>] | via [<a href="http://nixiepixel.com/blog/index.php/aim-fish-bot-help">nixie pixel</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://hypertoast.net/blog/2009/05/05/project-upstream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

