<?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>Modern Toil &#187; Rich</title>
	<atom:link href="http://moderntoil.com/?cat=81&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://moderntoil.com</link>
	<description>Technology, Life, &#38; Work</description>
	<lastBuildDate>Sun, 29 Dec 2019 22:49:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>We didn&#8217;t start the fire: Add MOSFET&#8217;s to your 3D printer</title>
		<link>http://moderntoil.com/?p=850</link>
		<comments>http://moderntoil.com/?p=850#comments</comments>
		<pubDate>Tue, 07 Feb 2017 20:18:37 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Rich]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[anet a8]]></category>
		<category><![CDATA[bed]]></category>
		<category><![CDATA[diagram]]></category>
		<category><![CDATA[heatbed]]></category>
		<category><![CDATA[heated]]></category>
		<category><![CDATA[heated bed]]></category>
		<category><![CDATA[hot end]]></category>
		<category><![CDATA[mosfet]]></category>
		<category><![CDATA[nozzle]]></category>
		<category><![CDATA[wiring]]></category>

		<guid isPermaLink="false">http://moderntoil.com/?p=850</guid>
		<description><![CDATA[I&#8217;ve gotten bitten by the 3D printer bug recently, and picked up an Anet A8  around Christmas.
It&#8217;s your typical corner-cutting Chinese kit printer, but it&#8217;s one of the nicer ones as far as features and electronics components.  Unfortunately, like many cheap 3D  printers, the wire and electronics for delivering power to the bed and hot [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-860" title="mosfet installed" src="http://moderntoil.com/wp-content/uploads/2017/02/mosfet-installed1-300x225.jpg" alt="" width="300" height="225" />I&#8217;ve gotten bitten by the 3D printer bug recently, and picked up an Anet A8  around Christmas.</p>
<p>It&#8217;s your typical corner-cutting Chinese kit printer, but it&#8217;s one of the nicer ones as far as features and electronics components.  Unfortunately, like many cheap 3D  printers, the wire and electronics for delivering power to the bed and hot end is inadequate.  Let&#8217;s take a step back for a moment, and understand the basic electronics.</p>
<p>The key components are the power supply, the steppers, the LCD, control board, heated bed, and hot end.  Most of these use very little power.  Even the steppers all working at once use less than a few amps.  The bed and hot end though are power hungry.  I found the bed on my Anet A8 draws ~11 amps, and the hot end ~3 amps (@12v) .  This a lot of current to push through the otherwise low power mainboard, especially for the bed.  This will ultimately lead to failure, and you&#8217;ll be hunting for  a whole new mainboard, or worse, putting out a fire.</p>
<p>The solution: get that high current off the mainboard!  Adding larger and separate mosfets to handle power deliver to the bed and nozzle takes all that strain off the mainboard, and will extend it&#8217;s life dramatically (and reduce the chance of overheating which could lead to fire).  You could probably get away with just adding a mosfet for the bed, but I would suggest adding one for the hot end too.  You&#8217;re re-wiring anyway, and they&#8217;re cheap, so may as well get as much current off the mainboard as possible.  I used two of <a href="https://amzn.to/2MFbmsB">these mosfets</a>.<a href="https://amzn.to/2MFbmsB"><img class="alignright size-thumbnail wp-image-863" title="mosfet" src="http://moderntoil.com/wp-content/uploads/2017/02/mosfet1-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>The second problem is the wiring itself.  The wire supplied in most kits suffers two key problems:</p>
<p>1) It&#8217;s bare copper, which over time loosens under the screw terminals, leading to resistance, which in turns causes the terminal to overheat and burn.</p>
<p>2) It&#8217;s often undersized (I&#8217;ve seen kits with 18ga wire that&#8217;s carrying close to 20 amps).</p>
<p>The wiring is an easy fix.   When adding the mosfets (wiring diagram further down), use 14ga wire for the run to the bed mosfet, and a minimum of 16ga for all other DC power runs.   <a href="http://amzn.to/2lkXrrv">Here is the link to the good silicone 16ga wire I used</a>, and <a href="http://amzn.to/2ll3KLB">here is the link to the good 14ga wire</a>.  MAKE SURE YOU TIN ALL THE ENDS, OR USE QUALITY CRIMPED ENDS.  I&#8217;m personally a fan of tinning all the ends. I&#8217;ve never had an issue with a properly tinned wire under a screw terminal.  Come back and snug up the screws in a few days of use.  They will stay tight, have VERY low resistance, and the solder ensures an even connection across all the wire strands.  If you don&#8217;t have a good soldering iron, this is a good time to get one.  I use the <a href="http://amzn.to/2ll8JvP" target="_blank">Hakko FX888D</a>, and it&#8217;s exceptional.  You&#8217;ll never buy another iron.  If the Hakko is out of your price range, <a href="https://amzn.to/2GMZu7h" target="_blank">this one</a> would be my choice for a basic iron.</p>
<p>Here&#8217;s the wiring diagram that brings it all together (click to view larger):</p>
<p><a href="http://moderntoil.com/wp-content/uploads/2017/02/dual_mosfet_wiring4.jpg"><img class="size-medium wp-image-858 alignnone" title="dual_mosfet_wiring" src="http://moderntoil.com/wp-content/uploads/2017/02/dual_mosfet_wiring4-300x231.jpg" alt="" width="300" height="231" /></a></p>
<p>If you happen to also have Anet A8, I <a href="http://www.thingiverse.com/thing:2086107" target="_blank">designed a mount</a> to hold both of these mosfets, just above your mainboard:</p>
<p><a href="http://www.thingiverse.com/thing:2086107"><img class="size-thumbnail wp-image-866 alignnone" title="mosfet_thingiverse" src="http://moderntoil.com/wp-content/uploads/2017/02/mosfet_thingiverse1-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>Thanks for reading!</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=850' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=850&amp;title=We+didn%27t+start+the+fire%3A+Add+MOSFET%27s+to+your+3D+printer'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=850&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=850</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>Shell Script To Control Belkin WeMo&#8217;s</title>
		<link>http://moderntoil.com/?p=839</link>
		<comments>http://moderntoil.com/?p=839#comments</comments>
		<pubDate>Wed, 17 Jul 2013 14:23:23 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Rich]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[bash shell]]></category>
		<category><![CDATA[belkin]]></category>
		<category><![CDATA[home automation]]></category>
		<category><![CDATA[ip power switch]]></category>
		<category><![CDATA[relay]]></category>
		<category><![CDATA[wemo]]></category>

		<guid isPermaLink="false">http://moderntoil.com/?p=839</guid>
		<description><![CDATA[It&#8217;s no surprise I&#8217;m a huge fan of home automation and tech toys, and I recently picked up a pair of Belkin WeMo&#8217;s.
You **have** to set them up with the app they supply for smartphones, but after that I hoped I could find a way to control them directly. Belkin has collected quite a few [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://amzn.to/2lilN5v"><img class="alignleft size-thumbnail wp-image-840" title="wemo" src="http://moderntoil.com/wp-content/uploads/2013/07/wemo-150x150.jpg" alt="" width="150" height="150" /></a>It&#8217;s no surprise I&#8217;m a huge fan of home automation and tech toys, and I recently picked up a pair of <a title="Belkin WeMo" href="http://amzn.to/2lilN5v" target="_blank">Belkin WeMo&#8217;s</a>.</p>
<p>You **have** to set them up with the app they supply for smartphones, but after that I hoped I could find a way to control them directly. Belkin has collected quite a few negative reviews for these devices, and it&#8217;s a shame, because the hardware seems real solid.  It&#8217;s their current apps that leave a LOT to be desired.  Clearly the issues they&#8217;re having getting the app side right are driving down the reviews.  Fortunately, I could care less how the app experience is, since I only needed it to initially deploy the devices, and planned from the get-go to write my own code to control them.</p>
<p>Numerous folks have written tools to control some of the functions of these, but everything I came across was dependent on other libraries, was incomplete, or didn&#8217;t work when I tested it.  I like plain-old vanilla shell scripts that I can just run from any local machine, and I&#8217;ve hacked up various XML snippets I&#8217;ve found and just rely on curl for the following script that I put together:</p>
<blockquote><p>#!/bin/sh<br />
#<br />
# WeMo Control Script<br />
#<br />
# Usage: ./wemo_control IP_ADDRESS ON/OFF/GETSTATE/GETSIGNALSTRENGTH/GETFRIENDLYNAME<br />
#<br />
#</p>
<p>IP=$1<br />
COMMAND=$2</p>
<p>PORTTEST=$(curl -s $IP:49152 | grep &#8220;404&#8243;)</p>
<p>if [ "$PORTTEST" = "" ]<br />
then<br />
PORT=49153<br />
else<br />
PORT=49152<br />
fi</p>
<p>if [ "$1" = "" ]<br />
then<br />
echo &#8220;Usage: ./wemo_control IP_ADDRESS ON/OFF/GETSTATE/GETSIGNALSTRENGTH/GETFRIENDLYNAME&#8221;<br />
else</p>
<p>if [ "$2" = "GETSTATE" ]</p>
<p>then</p>
<p>curl -0 -A &#8221; -X POST -H &#8216;Accept: &#8216; -H &#8216;Content-type: text/xml; charset=&#8221;utf-8&#8243;&#8216; -H &#8220;SOAPACTION: \&#8221;urn:Belkin:service:basicevent:1#GetBinaryState\&#8221;" &#8211;data &#8216;&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;&lt;s:Envelope xmlns:s=&#8221;http://schemas.xmlsoap.org/soap/envelope/&#8221; s:encodingStyle=&#8221;http://schemas.xmlsoap.org/soap/encoding/&#8221;&gt;&lt;s:Body&gt;&lt;u:GetBinaryState xmlns:u=&#8221;urn:Belkin:service:basicevent:1&#8243;&gt;&lt;BinaryState&gt;1&lt;/BinaryState&gt;&lt;/u:GetBinaryState&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;&#8217; -s http://$IP:$PORT/upnp/control/basicevent1 |<br />
grep &#8220;&lt;BinaryState&#8221;  | cut -d&#8221;&gt;&#8221; -f2 | cut -d &#8220;&lt;&#8221; -f1 | sed &#8217;s/0/OFF/g&#8217; | sed &#8217;s/1/ON/g&#8217;</p>
<p>elif [ "$2" = "ON" ]</p>
<p>then</p>
<p>curl -0 -A &#8221; -X POST -H &#8216;Accept: &#8216; -H &#8216;Content-type: text/xml; charset=&#8221;utf-8&#8243;&#8216; -H &#8220;SOAPACTION: \&#8221;urn:Belkin:service:basicevent:1#SetBinaryState\&#8221;" &#8211;data &#8216;&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;&lt;s:Envelope xmlns:s=&#8221;http://schemas.xmlsoap.org/soap/envelope/&#8221; s:encodingStyle=&#8221;http://schemas.xmlsoap.org/soap/encoding/&#8221;&gt;&lt;s:Body&gt;&lt;u:SetBinaryState xmlns:u=&#8221;urn:Belkin:service:basicevent:1&#8243;&gt;&lt;BinaryState&gt;1&lt;/BinaryState&gt;&lt;/u:SetBinaryState&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;&#8217; -s http://$IP:$PORT/upnp/control/basicevent1 |<br />
grep &#8220;&lt;BinaryState&#8221;  | cut -d&#8221;&gt;&#8221; -f2 | cut -d &#8220;&lt;&#8221; -f1</p>
<p>elif [ "$2" = "OFF" ]</p>
<p>then</p>
<p>curl -0 -A &#8221; -X POST -H &#8216;Accept: &#8216; -H &#8216;Content-type: text/xml; charset=&#8221;utf-8&#8243;&#8216; -H &#8220;SOAPACTION: \&#8221;urn:Belkin:service:basicevent:1#SetBinaryState\&#8221;" &#8211;data &#8216;&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;&lt;s:Envelope xmlns:s=&#8221;http://schemas.xmlsoap.org/soap/envelope/&#8221; s:encodingStyle=&#8221;http://schemas.xmlsoap.org/soap/encoding/&#8221;&gt;&lt;s:Body&gt;&lt;u:SetBinaryState xmlns:u=&#8221;urn:Belkin:service:basicevent:1&#8243;&gt;&lt;BinaryState&gt;0&lt;/BinaryState&gt;&lt;/u:SetBinaryState&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;&#8217; -s http://$IP:$PORT/upnp/control/basicevent1 |<br />
grep &#8220;&lt;BinaryState&#8221;  | cut -d&#8221;&gt;&#8221; -f2 | cut -d &#8220;&lt;&#8221; -f1</p>
<p>elif [ "$2" = "GETSIGNALSTRENGTH" ]</p>
<p>then</p>
<p>curl -0 -A &#8221; -X POST -H &#8216;Accept: &#8216; -H &#8216;Content-type: text/xml; charset=&#8221;utf-8&#8243;&#8216; -H &#8220;SOAPACTION: \&#8221;urn:Belkin:service:basicevent:1#GetSignalStrength\&#8221;" &#8211;data &#8216;&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;&lt;s:Envelope xmlns:s=&#8221;http://schemas.xmlsoap.org/soap/envelope/&#8221; s:encodingStyle=&#8221;http://schemas.xmlsoap.org/soap/encoding/&#8221;&gt;&lt;s:Body&gt;&lt;u:GetSignalStrength xmlns:u=&#8221;urn:Belkin:service:basicevent:1&#8243;&gt;&lt;GetSignalStrength&gt;0&lt;/GetSignalStrength&gt;&lt;/u:GetSignalStrength&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;&#8217; -s http://$IP:$PORT/upnp/control/basicevent1 |<br />
grep &#8220;&lt;SignalStrength&#8221;  | cut -d&#8221;&gt;&#8221; -f2 | cut -d &#8220;&lt;&#8221; -f1</p>
<p>elif [ "$2" = "GETFRIENDLYNAME" ]</p>
<p>then</p>
<p>curl -0 -A &#8221; -X POST -H &#8216;Accept: &#8216; -H &#8216;Content-type: text/xml; charset=&#8221;utf-8&#8243;&#8216; -H &#8220;SOAPACTION: \&#8221;urn:Belkin:service:basicevent:1#ChangeFriendlyName\&#8221;" &#8211;data &#8216;&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;&lt;s:Envelope xmlns:s=&#8221;http://schemas.xmlsoap.org/soap/envelope/&#8221; s:encodingStyle=&#8221;http://schemas.xmlsoap.org/soap/encoding/&#8221;&gt;&lt;s:Body&gt;&lt;u:ChangeFriendlyName xmlns:u=&#8221;urn:Belkin:service:basicevent:1&#8243;&gt;&lt;FriendlyName&gt;Pool Filter&lt;/FriendlyName&gt;&lt;/u:ChangeFriendlyName&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;&#8217; -s http://$IP:$PORT/upnp/control/basicevent1 |<br />
grep &#8220;&lt;FriendlyName&#8221;  | cut -d&#8221;&gt;&#8221; -f2 | cut -d &#8220;&lt;&#8221; -f1</p>
<p>else</p>
<p>echo &#8220;COMMAND NOT RECOGNIZED&#8221;<br />
echo &#8220;&#8221;<br />
echo &#8220;Usage: ./wemo_control IP_ADDRESS ON/OFF/GETSTATE/GETSIGNALSTRENGTH/GETFRIENDLYNAME&#8221;<br />
echo &#8220;&#8221;</p>
<p>fi</p>
<p>fi</p></blockquote>
<p>Copy/Paste or download here: <a href="http://www.netmagi.com/html/temp/wemo_control.sh"></a><a href="http://moderntoil.com/file_attachments/wemo_control.sh">wemo_control.sh</a></p>
<p>Usage is:  <strong> ./wemo_control IP_ADDRESS ON/OFF/GETSTATE/GETSIGNALSTRENGTH/GETFRIENDLYNAME </strong>and the functions are pretty self-explanatory.</p>
<p>The usual disclaimer applies.  I don&#8217;t write code for a living and there&#8217;s probably gross inefficiencies and poor syntax, but it WORKS.</p>
<p>Enjoy <img src='http://moderntoil.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=839' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=839&amp;title=Shell+Script+To+Control+Belkin+WeMo%27s'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=839&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=839</wfw:commentRss>
		<slash:comments>55</slash:comments>
		</item>
		<item>
		<title>Quick script to add a rule to spamassassin</title>
		<link>http://moderntoil.com/?p=640</link>
		<comments>http://moderntoil.com/?p=640#comments</comments>
		<pubDate>Wed, 07 Dec 2011 15:07:59 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Rich]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://moderntoil.com/?p=640</guid>
		<description><![CDATA[My spam volume has been &#8216;up&#8217; lately, probably due to the holidays.
I find myself adding rules to match simple phrases that I seem to get a lot of  to my local.cf, and I figured I&#8217;d write a quick dirty script to make the process easier.
Feel free to copy/paste this into a new file in the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://moderntoil.com/wp-content/uploads/2011/12/spam.jpg"><img class="alignleft size-thumbnail wp-image-644" title="spam" src="http://moderntoil.com/wp-content/uploads/2011/12/spam-150x150.jpg" alt="" width="150" height="150" /></a>My spam volume has been &#8216;up&#8217; lately, probably due to the holidays.</p>
<p>I find myself adding rules to match simple phrases that I seem to get a lot of  to my local.cf, and I figured I&#8217;d write a quick dirty script to make the process easier.</p>
<p>Feel free to copy/paste this into a new file in the same directory as your local.cf and don&#8217;t forget to chmod 755.  Execute with ./yourfilename (I used rule_creator).  There&#8217;s some comments in there to pay attention to, but as long as you place this into the same dir as your local.cf, and use &#8217;service&#8217; for spamd (typical for a qmailtoaster), there&#8217;s nothing to do.</p>
<p>Enjoy!</p>
<blockquote><p>#$/bin/bash<br />
#<br />
# This script must be run from *INSIDE* the directory where your local.cf lives.<br />
#</p>
<p>clear<br />
echo &#8220;What should we name this rule? (ex. &#8216;RICH_DIRECTBUY&#8217;)&#8221;<br />
echo &#8220;&#8221;<br />
read RULENAME<br />
echo &#8220;&#8221;<br />
echo &#8220;Should the rule apply to the header or body? (enter: &#8216;header&#8217; or &#8216;body&#8217;)&#8221;<br />
echo &#8220;&#8221;<br />
read RULETYPE<br />
echo &#8220;&#8221;<br />
echo &#8220;What phrase should the rule match? (ex. &#8216;get your free credit score&#8217;)&#8221;<br />
echo &#8220;&#8221;<br />
read PHRASE<br />
echo &#8220;&#8221;<br />
echo &#8220;How many points should I assign for this rule? (ex. &#8216;5.0&#8242;)&#8221;<br />
echo &#8220;&#8221;<br />
read SCORE<br />
echo &#8220;&#8221;<br />
echo &#8220;&#8221;</p>
<p>if [ $RULETYPE = body ]</p>
<p>then<br />
RULELINE=$(echo &#8220;body $RULENAME /$PHRASE/i&#8221;)</p>
<p>elif [ $RULETYPE = header ]</p>
<p>then<br />
RULELINE=$(echo &#8220;header $RULENAME ALL =~ /$PHRASE/i&#8221;)</p>
<p>else</p>
<p>echo &#8220;Ruletype entered wrong, exiting&#8221;<br />
echo &#8220;&#8221;<br />
exit</p>
<p>fi</p>
<p>SCORELINE=$(echo &#8220;score $RULENAME $SCORE&#8221;)</p>
<p>clear<br />
echo &#8220;&#8221;<br />
echo &#8220;Ok, I&#8217;ll add the following rule to &#8216;local.cf&#8217;:&#8221;<br />
echo &#8220;&#8221;<br />
echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
echo $RULELINE<br />
echo $SCORELINE<br />
echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221;<br />
echo &#8220;&#8221;<br />
echo &#8220;&#8221;<br />
echo &#8220;** Press any key to add the rule, or CTRL+C to exit **&#8221;<br />
echo &#8220;&#8221;<br />
read<br />
echo &#8220;&#8221; &gt;&gt; local.cf<br />
echo $RULELINE &gt;&gt; local.cf<br />
echo $SCORELINE &gt;&gt; local.cf<br />
echo &#8220;&#8221;</p>
<p># This section will restart spamd if you use &#8217;service&#8217; to control it.  If you don&#8217;t, you&#8217;ll probably just want to comment the whole below section out and restart spamassassin manually</p>
<p>echo &#8220;OK &#8211; rule added, restarting spamd&#8221;<br />
echo &#8220;&#8221;<br />
cd /service<br />
echo &#8220;Stopping spamd&#8221;<br />
svc -d spamd<br />
echo &#8220;&#8221;<br />
echo &#8220;Starting spamd&#8221;<br />
svc -u spamd<br />
echo &#8220;&#8221;<br />
echo &#8220;Checking spamd status&#8221;<br />
sleep 3<br />
echo &#8220;&#8221;<br />
svstat spamd<br />
echo &#8220;&#8221;</p></blockquote>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=640' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=640&amp;title=Quick+script+to+add+a+rule+to+spamassassin'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=640&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=640</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://moderntoil.com/?p=617</link>
		<comments>http://moderntoil.com/?p=617#comments</comments>
		<pubDate>Sat, 05 Jun 2010 20:55:28 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Rich]]></category>
		<category><![CDATA[Tom]]></category>

		<guid isPermaLink="false">http://www.richandtom.com/?p=187</guid>
		<description><![CDATA[Thanks for visiting.  Tom and I each maintain our own blogs now to better target our own audiences, but fear not, here&#8217;s links!

Rich&#8217;s Blog:

Tom&#8217;s Blog:

Share]]></description>
			<content:encoded><![CDATA[<p>Thanks for visiting.  Tom and I each maintain our own blogs now to better target our own audiences, but fear not, here&#8217;s links!</p>
<p style="text-align: center;">
<h2 style="text-align: center;">Rich&#8217;s Blog:</h2>
<p style="text-align: center;"><a title="Modern Toil" href="http://moderntoil.com" target="_self"><img class="alignnone size-full wp-image-188" title="modern_toil" src="http://moderntoil.com/wp-content/uploads/2010/06/modern_toil.jpg" alt="" width="262" height="50" /></a></p>
<h2 style="text-align: center;">Tom&#8217;s Blog:</h2>
<h2 style="text-align: center;"><a title="World in a Bubble" href="http://tomstorm.net" target="_self"><img class="alignnone size-full wp-image-189" title="world_in_a_bubble" src="http://moderntoil.com/wp-content/uploads/2010/06/world_in_a_bubble.jpg" alt="" width="262" height="50" /></a></h2>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=617' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=617&amp;title='></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=617&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=617</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Garmin nuvi 660 Bluetooth Fix</title>
		<link>http://moderntoil.com/?p=610</link>
		<comments>http://moderntoil.com/?p=610#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:24:43 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Rich]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.richandtom.com/?p=169</guid>
		<description><![CDATA[Kind of off the topic here, but I own a Garmin nuvi 660 GPS that I absolutely LOVE, but the bluetooth functionality just quits working all by itself every few months.
There&#8217;s an endless amount of horror stories online about this with various suggestions for a fix, but most people just end up living without the [...]]]></description>
			<content:encoded><![CDATA[<p>Kind of off the topic here, but I own a Garmin nuvi 660 GPS that I absolutely LOVE, but the bluetooth functionality just quits working all by itself every few months.</p>
<p>There&#8217;s an endless amount of horror stories online about this with various suggestions for a fix, but most people just end up living without the bluetooth or sending the unit back to Garmin each time the bluetooth fails until the warranty expires.</p>
<p>Through my own trial and error, I put together what&#8217;s needed to fix the problem yourself.</p>
<p>The bluetooth problem usually manifests itself as such that bluetooth becomes disabled on the nuvi, and enabling it causes the GPS to lock up or freeze.  Holding down the power button will reset it, but bluetooth is still disabled and re-enabling just causes it to freeze again.</p>
<p>I&#8217;ve put together a fix that contains steps to follow and a file you&#8217;ll need to replace on the nuvi 660 while it&#8217;s connected to your PC.</p>
<p>I hope this reaches other fellow Garmin owners that just want their bluetooth to work.  And Garmin, if you&#8217;re reading this, would you please consider providing a PERMANENT FIX TO THIS ISSUE!!??</p>
<p>Link to download fix:</p>
<p><a title="Garmin_nuvi_660_Bluetooth_Fix.zip" href="http://web2.netmagi.com/garmin/Garmin_nuvi_660_Bluetooth_Fix.zip" target="_blank">Garmin_nuvi_660_Bluetooth_Fix.zip</a></p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=610' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=610&amp;title=Garmin+nuvi+660+Bluetooth+Fix'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=610&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=610</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Classmates.com Can Suck My Firewall.</title>
		<link>http://moderntoil.com/?p=596</link>
		<comments>http://moderntoil.com/?p=596#comments</comments>
		<pubDate>Fri, 13 Mar 2009 15:29:26 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[Rich]]></category>
		<category><![CDATA[Stories]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.richandtom.com/?p=153</guid>
		<description><![CDATA[So. . . every couple months I get spammed for days straight from classmates.com because someone has looked at my page, signed the guestbook, or maybe even THOUGHT about looking at something for all I know.
Every couple months I attempt to CANCEL receiving email from them, since I could really care less about it.  I [...]]]></description>
			<content:encoded><![CDATA[<p>So. . . every couple months I get spammed for days straight from classmates.com because someone has looked at my page, signed the guestbook, or maybe even THOUGHT about looking at something for all I know.</p>
<p>Every couple months I attempt to CANCEL receiving email from them, since I could really care less about it.  I -might- care if you didn&#8217;t go there only to find out you can&#8217;t see anything without first paying them money.  I&#8217;m sure those of you that have been to the site know what I&#8217;m talking about.  The best part is, you can&#8217;t even cancel or change your email settings without first signing in and walking through 15 ads.</p>
<p>I don&#8217;t even KNOW what my damn password is.  I signed up 5+ years ago, and that&#8217;s the only time I was ever &#8220;logged in&#8221;.  So, since I don&#8217;t know my password, I can&#8217;t even login to unsubscribe.  Imagine a scenario where you have an email address, let&#8217;s say spongebob788@happydomain.com and you sign up at classmates.com with it.   2 years tick by and you no longer have that email address, but someone else signs up with happydomain.com, picks the address &#8220;spongebob788&#8243;, and now they&#8217;re getting your classmates.com spam, and they can&#8217;t cancel it!</p>
<p>Since I can&#8217;t unsubscribe, and they have NO other means to contact them other than through the website once you&#8217;ve signed in, I&#8217;m left with one choice.</p>
<p>-BLOCK THE BASTARDS-</p>
<p>That&#8217;s right, I run my own network and email infrastructure, so I looked up their CIDR range at ARIN, which happens to be:</p>
<p><a href="https://ws.arin.net/whois/?queryinput=!%20NET-65-243-133-0-1" target="_blank">65.243.133.0/24</a></p>
<p>Add that to your firewall, block port 25, and you&#8217;ll never receive crap from them ever again (unless they change providers, then you&#8217;d just have to add their new CIDR)</p>
<p>So, classmates.com &#8211; <strong>&#8220;SUCK MY FIREWALL&#8221;</strong></p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=596' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=596&amp;title=Classmates.com+Can+Suck+My+Firewall.'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=596&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=596</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Updates to photo site</title>
		<link>http://moderntoil.com/?p=593</link>
		<comments>http://moderntoil.com/?p=593#comments</comments>
		<pubDate>Thu, 26 Feb 2009 17:17:15 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Rich]]></category>

		<guid isPermaLink="false">http://www.richandtom.com/?p=143</guid>
		<description><![CDATA[Just went live with the new version of my photo site.  Check it out by clicking below:
http://rnhphoto.com
What&#8217;s changed?
1) Better navigation
2) Flash slideshow on the front page
3) Portfolio&#8217;s are all flash-based now and easily updateable
4) More pics in most of the portfolios
Keep an eye here as well since now that the site is more update-friendly I&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>Just went live with the new version of my photo site.  Check it out by clicking below:</p>
<p><strong><a title="http://rnhphoto.com" href="http://rnhphoto.com" target="_blank">http://rnhphoto.com</a></strong></p>
<p>What&#8217;s changed?</p>
<p>1) Better navigation</p>
<p>2) Flash slideshow on the front page</p>
<p>3) Portfolio&#8217;s are all flash-based now and easily updateable</p>
<p>4) More pics in most of the portfolios</p>
<p>Keep an eye here as well since now that the site is more update-friendly I&#8217;ll be adding content regularly and expanding the features.</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=593' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=593&amp;title=Updates+to+photo+site'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=593&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=593</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Humans generating energy &#8211; BEST IDEA EVER!</title>
		<link>http://moderntoil.com/?p=591</link>
		<comments>http://moderntoil.com/?p=591#comments</comments>
		<pubDate>Thu, 11 Dec 2008 18:28:46 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Rich]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.richandtom.com/?p=126</guid>
		<description><![CDATA[
http://dvice.com/archives/2008/12/revolving_door.php
Check out this article at DVICE.  Immediately I&#8217;m thinking of other ways we can harness energy from human movement.  Think of *ALL* those people at the gym on stairclimbers, friction weight machines, etc.  The friction on all those machines could be created by electricity generating systems.
Imagine a model where your gym membership was free because [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://moderntoil.com/wp-content/uploads/2008/12/doorall.jpg"><img class="alignnone size-medium wp-image-127" title="Revolving Door" src="http://www.richandtom.com/wp-content/uploads/2008/12/doorall-221x300.jpg" alt="" width="221" height="300" /></a></p>
<p><a href="http://dvice.com/archives/2008/12/revolving_door.php" target="_blank">http://dvice.com/archives/2008/12/revolving_door.php</a></p>
<p>Check out this article at DVICE.  Immediately I&#8217;m thinking of other ways we can harness energy from human movement.  Think of *ALL* those people at the gym on stairclimbers, friction weight machines, etc.  The friction on all those machines could be created by electricity generating systems.</p>
<p>Imagine a model where your gym membership was free because the gym&#8217;s could &#8220;sell&#8221; the electricy you generated while exercising to the grid.</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=591' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=591&amp;title=Humans+generating+energy+-+BEST+IDEA+EVER%21'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=591&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=591</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>No, No, Relax. . . Really</title>
		<link>http://moderntoil.com/?p=580</link>
		<comments>http://moderntoil.com/?p=580#comments</comments>
		<pubDate>Sat, 16 Aug 2008 15:37:35 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[I saw it on youtube]]></category>
		<category><![CDATA[Rich]]></category>

		<guid isPermaLink="false">http://www.richandtom.com/?p=72</guid>
		<description><![CDATA[
Share]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/8uAcmrUEp2U&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/8uAcmrUEp2U&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=580' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=580&amp;title=No%2C+No%2C+Relax.+.+.+Really'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=580&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=580</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Styrofoam Dome Home</title>
		<link>http://moderntoil.com/?p=577</link>
		<comments>http://moderntoil.com/?p=577#comments</comments>
		<pubDate>Thu, 14 Aug 2008 16:33:53 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Rich]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.richandtom.com/?p=68</guid>
		<description><![CDATA[Tom, I thought of you instantly when I saw this.

Interconnectable, fairly cheap, and easy to assemble.  Similar concepts have been around for a while, but this looks to improve on existing cheap, fast, alternative housing offerings.
The article does touch on things like high-resistance to earthquakes, etc.  Given the lightweight, solid construction, I imagine this is [...]]]></description>
			<content:encoded><![CDATA[<p>Tom, I thought of you instantly when I saw this.</p>
<p><a href="http://moderntoil.com/wp-content/uploads/2008/08/styrofoam_dome_main.jpg"><img class="alignnone size-medium wp-image-69" title="styrofoam_dome_main" src="http://www.richandtom.com/wp-content/uploads/2008/08/styrofoam_dome_main-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Interconnectable, fairly cheap, and easy to assemble.  Similar concepts have been around for a while, but this looks to improve on existing cheap, fast, alternative housing offerings.</p>
<p>The article does touch on things like high-resistance to earthquakes, etc.  Given the lightweight, solid construction, I imagine this is quite true and could be a heck of a selling point for at least this &#8220;type&#8221; of housing in highly volatile areas as either temporary or semi-permanent housing.</p>
<p>DVICE is <a href="http://dvice.com/archives/2008/08/styrofoam_dome.php" target="_blank">running the full article</a>.</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=577' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=577&amp;title=Styrofoam+Dome+Home'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=577&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=577</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
