<?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"
	>

<channel>
	<title>Inspired by I-57</title>
	<atom:link href="http://blog.notarus.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.notarus.net</link>
	<description></description>
	<pubDate>Thu, 26 Feb 2009 15:23:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>hideous squeeling noises</title>
		<link>http://blog.notarus.net/2009/02/26/hideous-squeeling-noises/</link>
		<comments>http://blog.notarus.net/2009/02/26/hideous-squeeling-noises/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 15:23:33 +0000</pubDate>
		<dc:creator>notarus</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[Trendy Bloggery]]></category>

		<category><![CDATA[sounds]]></category>

		<guid isPermaLink="false">http://blog.notarus.net/?p=44</guid>
		<description><![CDATA[I apparently have unusual hearing. Ever since i was a kid, I could hear a very high pitched tone in most malls, which I always assumed was just the noise of the security systems bouncing arround the rafters. I notice it less now, but it&#8217;s still there, and it still annoys me. Heck, I can [...]]]></description>
			<content:encoded><![CDATA[<p>I apparently have unusual hearing. Ever since i was a kid, I could hear a very high pitched tone in most malls, which I always assumed was just the noise of the security systems bouncing arround the rafters. I notice it less now, but it&#8217;s still there, and it still annoys me. Heck, I can tell you if a tube tv is on anywhere in the building i&#8217;m in usually, I can hear the flyback transformer or something.</p>
<p>Enter those media frenzy stories about kids and their secret ring tones, that adults can&#8217;t hear&#8230;. although i&#8217;m 37 and have no problem hearing them.</p>
<p>The times ran a <a title="hz hearing tone by age" href="http://journal.plasticmind.com/assets/12ring-graphic.gif" target="_blank">graphic </a>that shows the usual ages you can hear these frequencies, and you can test some various frequencies <a href="http://journal.plasticmind.com/ears/mosquito-tone-or-how-to-tell-youre-a-youngun/" target="_blank">here</a>. I&#8217;m getting a little older. I can&#8217;t <em>really </em>hear the 18hz tone any more, but I can tell you if there&#8217;s one playing or not (it&#8217;s like a pressure in my ears when it&#8217;s on). I guess that means my body is 13 years older than my calendar age?</p>
<p>For bloggy goodness, here&#8217;s a memegraphic.</p>
<p><a href="http://trainhorns.net/sound/"><img src="http://trainhorns.net/sound/img/passed.png" alt="Train Horns" /></a></p>
<p>Created by <a href="http://trainhorns.net">Train Horns</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.notarus.net/2009/02/26/hideous-squeeling-noises/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Getting your cygwin open here on</title>
		<link>http://blog.notarus.net/2008/12/01/getting-your-cygwin-open-here-on/</link>
		<comments>http://blog.notarus.net/2008/12/01/getting-your-cygwin-open-here-on/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 17:05:16 +0000</pubDate>
		<dc:creator>notarus</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[windows]]></category>

		<category><![CDATA[cygwin]]></category>

		<guid isPermaLink="false">http://blog.notarus.net/?p=43</guid>
		<description><![CDATA[Under the windows cmd shell, there&#8217;s a command start that &#8220;does the right thing&#8221;. Give it a file, it&#8217;ll launch the right app and open it. Give it a directory, you get an explorer window there.
This doesn&#8217;t exist under cygwin&#8217;s shells, which is a PITA.
Here&#8217;s a zsh function to do the same thing. Put it [...]]]></description>
			<content:encoded><![CDATA[<p>Under the windows cmd shell, there&#8217;s a command <strong>start </strong>that &#8220;does the right thing&#8221;. Give it a file, it&#8217;ll launch the right app and open it. Give it a directory, you get an explorer window there.</p>
<p>This doesn&#8217;t exist under cygwin&#8217;s shells, which is a PITA.</p>
<p>Here&#8217;s a zsh function to do the same thing. Put it in your .zshrc and call <strong>open FILE </strong>or <strong>open DIR</strong>.</p>

<div class="wp_codebox_msgheader"><span class="codebox_right"><a href="javascript:;" onclick="toggle_collapse('432');">[<span id="432_symbol">+</span>]</a></span><span class="codebox_left"><span id="l43code2"><a href="javascript:;" onclick="javascript:showCodeTxt('43code2'); return false;">View Code</a> ZSH</span></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr style="display:none" id="432"><td class="code" id="43code2"><pre>open()
{
    if (( ${#argv} == 0 )); then
                    targetDir=&quot;.&quot;
    else
      targetDir=$1
    fi
    /cygdrive/c/windows/explorer.exe /e,`cygpath -w &quot;$targetDir&quot;`
}</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.notarus.net/2008/12/01/getting-your-cygwin-open-here-on/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Thanksgiving: success</title>
		<link>http://blog.notarus.net/2008/11/29/thanksgiving-success/</link>
		<comments>http://blog.notarus.net/2008/11/29/thanksgiving-success/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 19:41:39 +0000</pubDate>
		<dc:creator>notarus</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.notarus.net/?p=42</guid>
		<description><![CDATA[We hosted the family for thanksgiving, which was fun. 
We did the turkey in a fryer (saf-t-fryer from lowes, it&#8217;s a little pricy but it had a lot of safety features). We learned a few things (&#8221;if your fryer has a thermal cutoff, do not run the flame too hot, or it will over-protectively shut [...]]]></description>
			<content:encoded><![CDATA[<p>We hosted the family for thanksgiving, which was fun. </p>
<p>We did the turkey in a fryer (<a href="http://www.lowes.com/lowes/lkn?action=productDetail&#038;productId=245704-58892-245704&#038;lpage=none">saf-t-fryer</a> from lowes, it&#8217;s a little pricy but it had a lot of safety features). We learned a few things (&#8221;if your fryer has a thermal cutoff, do not run the flame too hot, or it will over-protectively shut down the flame&#8221;). It&#8217;s got a very low center of gravity, and doesn&#8217;t want to tip, which was part of why i bought this one. After dinner, while the oil was cooling, we got a first hand example of how well designed it is&#8211; a possum crawled up the side, over the top, was hanging on one edge, and lapping at the used oil. Didn&#8217;t tip. <img src='http://blog.notarus.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Wish we had a picture of it.</p>
<p>The turkey came out great. I&#8217;ll have to get the name of the butcher from Leah, they were great and very reasonably priced (about $2.70/lb). We used this <a href="http://allrecipes.com/Recipe/Deep-Fried-Turkey-Marinade/Detail.aspx">marinade</a> and it came out GREAT. Turkey was super tender, the skin was awesome, and the meat was all very tasty.</p>
<p>All in all, definitely a repeat, I think.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.notarus.net/2008/11/29/thanksgiving-success/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Refreshing your iTunes list</title>
		<link>http://blog.notarus.net/2008/11/14/refreshing-your-itunes-list/</link>
		<comments>http://blog.notarus.net/2008/11/14/refreshing-your-itunes-list/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 20:32:17 +0000</pubDate>
		<dc:creator>notarus</dc:creator>
		
		<category><![CDATA[mac]]></category>

		<category><![CDATA[itunes]]></category>

		<category><![CDATA[mp3]]></category>

		<guid isPermaLink="false">http://blog.notarus.net/?p=41</guid>
		<description><![CDATA[Perhaps I am the only person that this applies to, but in case not:
I store all my music, mp3s and m4us, on a network share. We do this because my wife and I share an iTunes account, the server&#8217;s backed up, etc, etc. Now we both can get to our tunes.
For some reason, though, my [...]]]></description>
			<content:encoded><![CDATA[<p>Perhaps I am the only person that this applies to, but in case not:</p>
<p>I store all my music, mp3s and m4us, on a network share. We do this because my wife and I share an iTunes account, the server&#8217;s backed up, etc, etc. Now we both can get to our tunes.</p>
<p>For some reason, though, my mac will eventually time out the SMB share to my fileserver. When iTunes starts up, it will look for the music in my library, and it won&#8217;t be there, and 99.5% of my music is unavailable, and iTunes puts an exclamation mark next to it.</p>
<p>I used to man up, mount the share, and tell iTunes to play every song on the share. Apparently, this is not required, and the solution is obvious&#8211;</p>
<p>Quit iTunes. Mount share. Start iTunes. All your music is &#8220;back&#8221;.</p>
<p>I&#8217;m a doofus for not thinking of that.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.notarus.net/2008/11/14/refreshing-your-itunes-list/feed/</wfw:commentRss>
		</item>
		<item>
		<title>An un-switcher</title>
		<link>http://blog.notarus.net/2008/10/20/an-un-switcher/</link>
		<comments>http://blog.notarus.net/2008/10/20/an-un-switcher/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 13:51:49 +0000</pubDate>
		<dc:creator>notarus</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[windows]]></category>

		<category><![CDATA[cygwin]]></category>

		<guid isPermaLink="false">http://blog.notarus.net/?p=40</guid>
		<description><![CDATA[I tend to prefer unix-like environments, which means I love mac as a desktop and linux as a server os.
But I&#8217;m at a new job, and my desktop and laptop are Windows. Here&#8217;s a short list of things I&#8217;ve done to make windows more unixy for me. Apologies in advance to the people who wrote [...]]]></description>
			<content:encoded><![CDATA[<p>I tend to prefer unix-like environments, which means I love mac as a desktop and linux as a server os.</p>
<p>But I&#8217;m at a new job, and my desktop and laptop are Windows. Here&#8217;s a short list of things I&#8217;ve done to make windows more unixy for me. Apologies in advance to the people who wrote these programs&#8211; I&#8217;m not comparing your awesome programs to someone else&#8217;s because I think you&#8217;re derivitive, I&#8217;m doing it because it quickly helps a Mac user understand the value.</p>
<ul>
<li> <a href="http://www.cygwin.com/" target="_blank">Cygwin </a>is a unix-like environment that runs inside of windows. Under there, you can compile most unix applications, run (native) perl, python, whatever. It&#8217;s good. It&#8217;s free. Once you have this, you have native open ssh, etc.</li>
<li>While you&#8217;re at it, change the default cygwin shortcut to point to a batch file that contains the following, it&#8217;s a much nicer shell than the default windows dosbox

<div class="wp_codebox_msgheader"><span class="codebox_right"><a href="javascript:;" onclick="toggle_collapse('404');">[<span id="404_symbol">+</span>]</a></span><span class="codebox_left"><span id="l40code4"><a href="javascript:;" onclick="javascript:showCodeTxt('40code4'); return false;">View Code</a> BASH</span></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr style="display:none" id="404"><td class="code" id="40code4"><pre class="bash"><span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span> off
&nbsp;
C:
chdir C:\cygwin\bin
&nbsp;
rem bash --<span style="color: #c20cb9; font-weight: bold;">login</span> -i
rxvt -<span style="color: #7a0874; font-weight: bold;">bg</span> black -<span style="color: #7a0874; font-weight: bold;">fg</span> green -geometry 80x48 -e bash--<span style="color: #c20cb9; font-weight: bold;">login</span> -i <span style="color: #000000; font-weight: bold;">&amp;</span>amp;</pre></td></tr></table></div>

</li>
<li><a href="http://rocketdock.com/" target="_blank">Rocketdock </a>is a nice mac-like dock. Just like on the mac, it supports things like minimize-to-dock, cute hover animiations, etc. It also has &#8220;live&#8221; images of what minimized windows look like. Nicer in many respects than the XP taskbar, and similar to the Vista one.</li>
<li><a href="http://www.launchy.net/" target="_blank">Launchy </a>is a quicksilver-like hotkey launcher. It&#8217;s very, very nice. Hit alt-space and type &#8220;word&#8221; to launch Microsoft Word, etc. Speeds up application launching immensely.</li>
<li></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.notarus.net/2008/10/20/an-un-switcher/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Unable to sync your iphone error -54</title>
		<link>http://blog.notarus.net/2008/10/18/unable-to-sync-your-iphone-error-54/</link>
		<comments>http://blog.notarus.net/2008/10/18/unable-to-sync-your-iphone-error-54/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 05:19:31 +0000</pubDate>
		<dc:creator>notarus</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[itunes]]></category>

		<guid isPermaLink="false">http://blog.notarus.net/?p=39</guid>
		<description><![CDATA[Tonight, for some reason, I couldn&#8217;t sync my iphone on my macbook pro. There were a lot of upgrades recently for me (latest itunes, finally got arround to installing 10.5.5, etc) which could have been the issue, but the error itself was wildly unhelpful.
Fortunately, on the apple support forums, someone named neil had the quick [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight, for some reason, I couldn&#8217;t sync my iphone on my macbook pro. There were a lot of upgrades recently for me (latest itunes, finally got arround to installing 10.5.5, etc) which could have been the issue, but the error itself was wildly unhelpful.</p>
<p>Fortunately, on the apple support forums, someone named <strong>neil</strong> had the quick fix: itunes apparently barfs if ANY file it wants to look at is locked (an old apple-ism that should be removed from the filesystem, post haste).</p>
<p>Anyway, the fix is a snap. Open the Script Editor in the /Applications/AppleScript/ folder and run the following:</p>

<div class="wp_codebox_msgheader"><span class="codebox_right"><a href="javascript:;" onclick="toggle_collapse('396');">[<span id="396_symbol">-</span>]</a></span><span class="codebox_left"><span id="l39code6"><a href="javascript:;" onclick="javascript:showCodeTxt('39code6'); return false;">View Code</a> APPLESCRIPT</span></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="396"><td class="code" id="39code6"><pre class="applescript"><span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;Finder&quot;</span>
<span style="color: #b1b100;">set</span> locked <span style="color: #b1b100;">of</span> <span style="color: #000000; font-weight: bold;">every</span> item <span style="color: #b1b100;">of</span> entire contents <span style="color: #b1b100;">of</span> folder <span style="color: #ff0000;">&quot;Music:iTunes&quot;</span> <span style="color: #b1b100;">of</span> home <span style="color: #b1b100;">to</span> <span style="color: #000066;">false</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span></pre></td></tr></table></div>

<p>Once that&#8217;s pasted in, click the run button. If you still have troubles syncing, replace the Music:iTunes path with Music, and perhaps also Photos.</p>
<p>The original thread on the apple support forums is <a href="http://discussions.apple.com/thread.jspa?threadID=1124429&amp;tstart=1">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.notarus.net/2008/10/18/unable-to-sync-your-iphone-error-54/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Brother MFC-7820N and Mac Leopard 10.5</title>
		<link>http://blog.notarus.net/2008/03/05/brother-mfc-7820n-and-mac-leopard-105/</link>
		<comments>http://blog.notarus.net/2008/03/05/brother-mfc-7820n-and-mac-leopard-105/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 16:15:54 +0000</pubDate>
		<dc:creator>notarus</dc:creator>
		
		<category><![CDATA[mac]]></category>

		<category><![CDATA[brother]]></category>

		<guid isPermaLink="false">http://blog.notarus.net/2008/03/05/brother-mfc-7820n-and-mac-leopard-105/</guid>
		<description><![CDATA[The network printer component of the MFC-7820N is easy in leopard&#8211; it&#8217;s detected by the mDNS (bonjour), and the drivers are preinstalled. Everything there should be smooth sailing.
However, we wanted this printer partly because it&#8217;s a network scanner, as well. Getting the network scanner component working under Leopard turned out to have a slight trick.
First, [...]]]></description>
			<content:encoded><![CDATA[<p>The network printer component of the MFC-7820N is easy in leopard&#8211; it&#8217;s detected by the <a title="mDNS" href="http://en.wikipedia.org/wiki/MDNS">mDNS</a> (bonjour), and the drivers are preinstalled. Everything there should be smooth sailing.</p>
<p>However, we wanted this printer partly because it&#8217;s a network scanner, as well. Getting the network scanner component working under Leopard turned out to have a slight trick.</p>
<p>First, install the drivers:</p>
<ol>
<li>Go to the <a title="MFC-7820N download site" href="http://welcome.solutions.brother.com/bsc/public/us/us/en/dlf/download_top.html?reg=us&amp;c=us&amp;lang=en&amp;prod=mfc7820n_all">brother download site</a></li>
<li>choose <strong>Drivers -&gt; Mac OS/X 10.5 -&gt; English</strong> then hit submit</li>
<li>Install this driver, it&#8217;s the scanner TWAIN driver. It&#8217;s universal too</li>
<li>This driver will make you reboot. Whee.</li>
<li>Go back to the download site, and this time, do <strong>Utilities -&gt; Mac OS/X 10.5 -&gt; English</strong></li>
<li>Install the provided &#8220;Remote Setup Software&#8221;</li>
</ol>
<p>Now, here&#8217;s the fun trick. Open your hard drive, and go to the folder <strong>/Library/Printers/Brother/Utilities/DeviceSelector</strong>. In this dir is a program called <strong>DeviceSelector</strong> . Run it.</p>
<p>Tell the DeviceSelector (and the scanner driver) to &#8220;Specify your machine by address&#8221;, and enter the IP address of your printer. (Mine was preset to specify by &#8216;name&#8217;, which is using <a title="mDNS" href="http://en.wikipedia.org/wiki/MDNS">mDNS</a>).</p>
<p>From there, I could now scan through the control center applet or in a standard Twain app, like <strong>Image Capture</strong> in the <strong>/Applications</strong> folder.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.notarus.net/2008/03/05/brother-mfc-7820n-and-mac-leopard-105/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Keyboard Wedges</title>
		<link>http://blog.notarus.net/2007/07/11/keyboard-wedges/</link>
		<comments>http://blog.notarus.net/2007/07/11/keyboard-wedges/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 19:01:03 +0000</pubDate>
		<dc:creator>notarus</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[ergonomics]]></category>

		<category><![CDATA[keyboards]]></category>

		<guid isPermaLink="false">http://blog.notarus.net/2007/07/11/keyboard-wedges/</guid>
		<description><![CDATA[I type a lot, so not hurty wrists is a big thing for me. I&#8217;ve been very very happy with the Microsoft Natural Ergonomic 4000 Keyboard (available for as low as $30 from time to time, and sometimes on sale that low at Staples or whatever). And it works awesome with the Mac, too.
The best [...]]]></description>
			<content:encoded><![CDATA[<p>I type a lot, so not hurty wrists is a big thing for me. I&#8217;ve been very very happy with the <a href="http://www.microsoft.com/hardware/mouseandkeyboard/productdetails.aspx?pid=043" target="_blank">Microsoft Natural Ergonomic 4000 Keyboard</a> (available for <a href="http://computers.pricegrabber.com/keyboards/microsoft/m/11792736/search=Microsoft%20Natural%20Ergonomic%204000%20Keyboard">as low as $30</a> from time to time, and sometimes on sale that low at Staples or whatever). And it works awesome with the Mac, too.</p>
<p>The best part of it is not just the split design, but that it&#8217;s also tilted backwards at a negative angle, which is perfect for people like me who are lazy and have never learned to keep your palms UP, but instead put them on the rest.</p>
<p>One drawback though is that the plastic piece that keeps it at that wedge eventually breaks, it&#8217;s got three small plastic spots where it attaches and those have snapped over time (nearly 2 years now, I think). The keyboard still works awesomely, it&#8217;s just the slope that was gone.</p>
<p>So, rather than dump the keyboard, I did some digging and found  the <a href="http://www.alimed.com/ProductDetail.asp?style=76809">VersaTech Keyboard Wedge,</a> which is a piece of thick, tough foam cut at a 10degree angle, and big enough for the keyboard. It&#8217;s a little pricy ($40 bucks shipped, more than a replacement keyboard) but this foam isn&#8217;t going anywhere, and my keyboard is nice and negatively sloped again.</p>
<p>This wedge would also work well with your existing keyboard, giving it a perfect negative slope, if you don&#8217;t want to buy the MS product for some reason.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.notarus.net/2007/07/11/keyboard-wedges/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mac Parallels, Linux guest, and a USB stick</title>
		<link>http://blog.notarus.net/2007/06/27/mac-parallels-linux-guest-and-a-usb-stick/</link>
		<comments>http://blog.notarus.net/2007/06/27/mac-parallels-linux-guest-and-a-usb-stick/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 18:49:32 +0000</pubDate>
		<dc:creator>notarus</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.notarus.net/2007/06/27/mac-parallels-linux-guest-and-a-usb-stick/</guid>
		<description><![CDATA[For reasons I don&#8217;t understand, if you&#8217;re running linux inside of Parallels on a mac, you can&#8217;t just add a usb flash drive and have it recognized.
However, you CAN make it work, you just have to work at it.
Here&#8217;s what works for me:

Create a new vm, point it at a knoppix cd.
Edit the USB controller [...]]]></description>
			<content:encoded><![CDATA[<p>For reasons I don&#8217;t understand, if you&#8217;re running linux inside of Parallels on a mac, you can&#8217;t just add a usb flash drive and have it recognized.</p>
<p>However, you CAN make it work, you just have to work at it.</p>
<p>Here&#8217;s what works for me:</p>
<ol>
<li>Create a new vm, point it at a knoppix cd.</li>
<li>Edit the USB controller settings and make sure it is NOT autocapturing devices</li>
<li>WITHOUT Parallels running, insert the usb stick.</li>
<li>Open the finder. If the usb stick is mounted, unmount it. It won&#8217;t work with it mounted.</li>
<li>Start your VM. At the knoppix prompt, enter  &#8220;knoppix irqpoll&#8221;. You can add other settings, like &#8220;lang=us 2&#8243;</li>
<li>Let it boot</li>
<li>Now, pull down the devices menu, go to the usb sub menu, and capture your memory stick</li>
<li>Wait. Linux will auto discover the stick. it will throw out some errors about irq9 being ignored, and then capture the stick as a scsi device</li>
<li>Now you can use it as you want.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.notarus.net/2007/06/27/mac-parallels-linux-guest-and-a-usb-stick/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NoCat Patch: Fix multi-threading</title>
		<link>http://blog.notarus.net/2007/05/15/nocat-patch-fix-multi-threading/</link>
		<comments>http://blog.notarus.net/2007/05/15/nocat-patch-fix-multi-threading/#comments</comments>
		<pubDate>Tue, 15 May 2007 15:07:49 +0000</pubDate>
		<dc:creator>notarus</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[nocat]]></category>

		<category><![CDATA[patches]]></category>

		<guid isPermaLink="false">http://blog.notarus.net/2007/05/15/nocat-patch-fix-multi-threading/</guid>
		<description><![CDATA[We use NoCat extensively, and we have peak usages of &#62; 1100 users actively logged in at the same time, with another good 3000 or so people actively using wireless and holding a dhcp lease.
We recently started experiencing slowdowns, where it would take minutes for NoCat gateways to actually return a page (status, capture, actually [...]]]></description>
			<content:encoded><![CDATA[<p>We use <a href="http://nocat.net" target="_blank">NoCat</a> extensively, and we have peak usages of &gt; 1100 users actively logged in at the same time, with another good 3000 or so people actively using wireless and holding a dhcp lease.</p>
<p>We recently started experiencing slowdowns, where it would take minutes for NoCat gateways to actually return a page (status, capture, actually authenticate and redirect, etc). This was caused by a simple mistake in their child reaping, documented below.</p>
<p>It&#8217;s important to note that in a captive portal solution, the gateway is MUCH busier than the number of authenticated users suggests; authenticated users usually don&#8217;t impact the cpu much (they&#8217;re just permit rules in the underlying firewall). It&#8217;s unauthenticated users who hammer the system. Every weather widget, RSS request, twitter status update, etc, etc that&#8217;s happening automatically  on port 80 is being captured (silently) by the gateway. So we need to be sure our forking is smart.</p>
<p>The root cause of the slowdown was that it was reaping children using the wait() call. wait() is a blocking call. This means that the software, if it had any children forked out, would block until a child (any child) exited, and then processing would continue. The server would fork off enough threads to handle any children waiting, and then come back and block again for a child to exit. This is ok at low loads, but not good when you&#8217;re at high loads (or there&#8217;s a packet loss problem, common in wireless, causing a thread to run slow, etc).</p>
<p>The fix: Change wait() to waitpid(-1,NOHANG). Now, it&#8217;s non blocking. Performance is much, much better.</p>

<div class="wp_codebox_msgheader"><span class="codebox_right"><a href="javascript:;" onclick="toggle_collapse('348');">[<span id="348_symbol">-</span>]</a></span><span class="codebox_left2">Download <a href="http://blog.notarus.net/wp-content/plugins/wp-codebox/wp-codebox.php?p=34&amp;download=nocat-fork-patch">nocat-fork-patch</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="348"><td class="code" id="34code8"><pre class="perl">--- Gateway.pm  <span style="color: #66cc66;">&#40;</span>revision <span style="color: #cc66cc;">667</span><span style="color: #66cc66;">&#41;</span>
+++ Gateway.pm  <span style="color: #66cc66;">&#40;</span>working copy<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">@@</span> <span style="color: #cc66cc;">-3</span>,<span style="color: #cc66cc;">6</span> <span style="color: #cc66cc;">+3</span>,<span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">@@</span>
 <span style="color: #000000; font-weight: bold;">use</span> IO::<span style="color: #006600;">Socket</span>;
 <span style="color: #000000; font-weight: bold;">use</span> IO::<span style="color: #006600;">Select</span>;
 <span style="color: #000000; font-weight: bold;">use</span> IO::<span style="color: #006600;">Pipe</span>;
+<span style="color: #000000; font-weight: bold;">use</span> POSIX <span style="color: #ff0000;">&quot;:sys_wait_h&quot;</span>;
 <span style="color: #000000; font-weight: bold;">use</span> NoCat <span style="color: #000066;">qw</span><span style="color: #66cc66;">&#40;</span> PERMIT DENY PUBLIC MEMBER OWNER LOGIN ANY <span style="color: #66cc66;">&#41;</span>;
 <span style="color: #000000; font-weight: bold;">use</span> vars <span style="color: #000066;">qw</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">@ISA</span> <span style="color: #0000ff;">@REQUIRED</span> <span style="color: #0000ff;">@EXPORT_OK</span> <span style="color: #66cc66;">*</span>FILE <span style="color: #66cc66;">&#41;</span>;
 <span style="color: #000000; font-weight: bold;">use</span> strict;
<span style="color: #66cc66;">@@</span> <span style="color: #cc66cc;">-93</span>,<span style="color: #cc66cc;">6</span> <span style="color: #cc66cc;">+94</span>,<span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">@@</span>
     <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$self</span>   = <span style="color: #000066;">shift</span>;
     <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$kids</span>   = <span style="color: #cc66cc;">0</span>;
     <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$hup</span> = <span style="color: #cc66cc;">0</span>;
+    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$childPid</span>;
&nbsp;
     <span style="color: #000066;">return</span> <span style="color: #b1b100;">unless</span> <span style="color: #0000ff;">$self</span>-<span style="color: #66cc66;">&amp;</span>gt;bind_socket;
&nbsp;
<span style="color: #66cc66;">@@</span> <span style="color: #cc66cc;">-143</span>,<span style="color: #cc66cc;">10</span> <span style="color: #cc66cc;">+145</span>,<span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">@@</span>
         <span style="color: #66cc66;">&#125;</span>
&nbsp;
        <span style="color: #808080; font-style: italic;"># See if any kids have expired, reap zombies</span>
-       <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$kids</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
-           <span style="color: #cc66cc;">1</span> <span style="color: #b1b100;">until</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #000066;">wait</span> == <span style="color: #cc66cc;">-1</span> <span style="color: #66cc66;">&#41;</span>;
-           <span style="color: #0000ff;">$kids</span> = <span style="color: #cc66cc;">0</span>;
-       <span style="color: #66cc66;">&#125;</span>
+        <span style="color: #b1b100;">do</span> <span style="color: #66cc66;">&#123;</span>
+            <span style="color: #0000ff;">$childPid</span> = <span style="color: #000066;">waitpid</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">-1</span>, WNOHANG<span style="color: #66cc66;">&#41;</span>;
+           <span style="color: #0000ff;">$kids</span>-- <span style="color: #b1b100;">if</span> <span style="color: #0000ff;">$childPid</span><span style="color: #66cc66;">&amp;</span>gt;<span style="color: #cc66cc;">0</span>;
+        <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">until</span> <span style="color: #0000ff;">$childPid</span><span style="color: #66cc66;">&amp;</span>lt;=<span style="color: #cc66cc;">0</span>;
&nbsp;
     <span style="color: #66cc66;">&#125;</span> <span style="color: #808080; font-style: italic;"># loop forever</span>
 <span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.notarus.net/2007/05/15/nocat-patch-fix-multi-threading/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
