<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The Doctor What</title>
	
	<link>http://docwhat.org</link>
	<description>Some men are discovered; others are found out</description>
	<lastBuildDate>Tue, 31 Aug 2010 21:11:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<feedburner:info uri="docwhat" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-nc-sa/2.5/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://docwhat.gerf.org/feed/" /><feedburner:emailServiceId>docwhat</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://docwhat.gerf.org/feed/" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
		<title>Thematic featured images</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/ZIBX0k3s3yI/</link>
		<comments>http://docwhat.org/2010/08/thematic-featured-images/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 21:00:07 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=589</guid>
		<description>&lt;img width="250" height="250" src="http://docwhat.org/files/2010/08/Screen-shot-2010-08-31-at-1.29.20-AM-250x250.png" class=" wp-post-image-right wp-post-image" alt="Example of Featured Image" title="Example of Featured Image" /&gt;I was wondering what the &amp;#8220;Featured Images&amp;#8221; box was when creating new posts and discovered that it&amp;#8217;s a handy way to add images to a post. It auto resizes, crops (if you want), and can make it just &amp;#8220;work&amp;#8221; in your layout. The only drawback I&amp;#8217;ve seen is I can&amp;#8217;t use urls for the image. [...]</description>
			<content:encoded><![CDATA[<img width="250" height="250" src="http://docwhat.org/files/2010/08/Screen-shot-2010-08-31-at-1.29.20-AM-250x250.png" class=" wp-post-image-right wp-post-image" alt="Example of Featured Image" title="Example of Featured Image" /><p>I was wondering what the &#8220;Featured Images&#8221; box was when creating new posts and discovered that it&#8217;s a handy way to add images to a post.  It auto resizes, crops (if you want), and can make it just &#8220;work&#8221; in your layout.  The only drawback I&#8217;ve seen is I can&#8217;t use urls for the image.</p>
<p>Unfortunately, the <a href="http://themeshaper.com/thematic/" class="zem_slink extlink" title="Thematic" rel="homepage">Thematic</a> theme doesn&#8217;t have out-of-the-box support for it.</p>
<p><span id="more-589"></span></p>
<p>Fortunately, <a href="http://themeshaper.com/thematic/" class="zem_slink extlink" title="Thematic" rel="homepage">Thematic</a> is very customizable so this is pretty easy.</p>
<p>The gist of what I&#8217;m doing is turning on this feature in <a href="http://wordpress.org" class="zem_slink extlink" title="WordPress" rel="homepage">Wordpress</a>, telling it the default size, and then adding the image to beginning of my post.  I added some left-right alternating alignment based on the number of the post.  Not perfect if you create lots of drafts, but better than just having the images always on the same side.</p>
<p>Here&#8217;s what you need to add to your Thematic child theme&#8217;s <code>function.php</code>:</p>
<pre class="brush: php;">
// Add Thumbnail Support for Theme (introduced in 2.9)
if ( function_exists( 'add_theme_support' ) ) {
  add_theme_support( 'post-thumbnails' );
  set_post_thumbnail_size(250, 250);
}

// Add post thumbnail to post excerpt
function my_add_post_thumb($content) {
  if (has_post_thumbnail()) {
    global $id;
    //$id = get_post_thumbnail_id();
    $align = $id % 2 == 0 ? 'left' : 'right';
    return get_the_post_thumbnail(NULL, array(250,250), array('class' =&gt; ' wp-post-image-' . $align)) . $content;
  } else {
    return $content;
  }
}
// Add it to the excerpt on the home page.
add_filter('get_the_excerpt', 'my_add_post_thumb');
// Add it to the content for a single post.
add_filter('the_content',     'my_add_post_thumb');
</pre>
<p>And here&#8217;s the styling you need to add for the left/right images:</p>
<pre class="brush: php;">
body .wp-post-image,
body .wp-post-image-left {
    float: left;
    margin: 5px 20px 20px 0;
}
body img.wp-post-image-right {
    float: right;
    margin: 5px 0 20px 20px;
}
</pre>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/08/thematic-featured-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/08/thematic-featured-images/</feedburner:origLink></item>
		<item>
		<title>Setting up CEDET/ECB for Aquamacs</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/u9_PKcCzn3A/</link>
		<comments>http://docwhat.org/2010/08/cedet-ecb-for-aquamacs/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 21:20:37 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[aquamacs]]></category>
		<category><![CDATA[cedet]]></category>
		<category><![CDATA[ecb]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=574</guid>
		<description>Aquamacs 2.1 is now out. The new 2.x series no longer requires the Dvorak hack I posted about earlier (yay!) 2.1 has a nice new mechanism for plugins, so here are instructions for making CEDET and ECB work with Aquamacs. Note before continuing: I&amp;#8217;m using the version numbers I got installing these packages. If there [...]</description>
			<content:encoded><![CDATA[<p><a href="http://docwhat.org/files/2010/08/Emacs-ECB.png" ><img src="http://docwhat.org/files/2010/08/Emacs-ECB.png" alt="" title="Emacs-ECB" width="269" height="250" class="alignright size-full wp-image-582" /></a><a href="http://aquamacs.org/"  class="extlink">Aquamacs 2.1</a> is now out.</p>
<p>The new 2.x series no longer requires the <a href="/2009/01/aquamacs-vs-dvorak-qwerty-layout/">Dvorak hack</a> I posted about earlier (yay!)</p>
<p>2.1 has a nice new mechanism for plugins, so here are instructions for making CEDET and ECB work with Aquamacs.</p>
<p><span id="more-574"></span><b>Note before continuing:</b> I&#8217;m using the version numbers I got installing these packages. If there are newer ones, use them.  I also am assuming you installed <code>Aquamacs.app</code> into <code>/Applications/</code></p>
<h3>CEDET</h3>
<p><a href="http://cedet.sourceforge.net/"  class="extlink">CEDET</a> is a collection of emacs tools to make your life easier.  I don&#8217;t fully grok all of them, but some are really nice. Semantic is in-language completion, for example.</p>
<p>A full install of CEDET is required for ECB and Aquamacs doesn&#8217;t come with that (yet?!) so you need to install it yourself.</p>
<ol>
<li> Download the latest <a href="https://sourceforge.net/projects/cedet/files/"  class="extlink">CEDET from sourceforge</a></li>
<li> Untar the file in <code>~/Library/Application Support/Aquamacs Emacs</code>:
<pre class="brush: bash;">
cd ~/Library/Application Support/Aquamacs Emacs
tar xf ~/Downloads/cedet-1.0.tar.gz
</pre>
</li>
<li> Run <code>make</code>:
<pre class="brush: bash;">
make EMACS=/Applications/Aquamacs.app/Contents/MacOS/Aquamacs
</pre>
</li>
<li> Create a <code>site-start.el</code> file.  This will be loaded automagically by Aquamacs.  It should look like this. You should replace <code>YOUR USERNAME</code> with your OS X username.
<pre class="brush: plain;">
(load-file &quot;/Users/YOUR USERNAME/Library/Application Support/Aquamacs Emacs/cedet-1.0/common/cedet.el&quot;)
(global-ede-mode 1)                      ; Enable the Project management system
(semantic-load-enable-code-helpers)      ; Enable prototype help and smart completion
(global-srecode-minor-mode 1)            ; Enable template insertion menu
</pre>
</li>
<li> Now you need to pull all the .info files into a directory called <code>info</code> with a <code>dir</code> file. Aquamacs is smart enough to figure out this is plugin specific info files, and will use it.
<pre class="brush: bash;">
mkdir info
cd info
find .. -type f -name '*.info' | while read i; do j=&quot;$(basename $i)&quot;; ln -s &quot;$i&quot; &quot;$j&quot;; install-info --info-dir=&quot;$(pwd)&quot; &quot;$j&quot;; done
</pre>
</li>
<li> Restart Aquamacs and you should have the full CEDET available, including docs.
</li>
</ol>
<h3>ECB</h3>
<p><a href="http://ecb.sourceforge.net/"  class="extlink">ECB</a> is the Emacs Code Browser.  It basically turns Emacs into a full IDE like XCode.</p>
<ol>
<li> Download the latest <a href="https://sourceforge.net/projects/ecb/files/"  class="extlink">ECB from sourceforge</a></li>
<li> Untar the file in <code>~/Library/Application Support/Aquamacs Emacs</code>:
<pre class="brush: bash;">
cd ~/Library/Application Support/Aquamacs Emacs
tar xf ~/Downloads/ecb-2.40.tar.gz
</pre>
</li>
<li> Create a <code>site-start.el</code> file to load up ECB on startup:
<pre class="brush: plain;">
(add-to-list 'load-path
	     &quot;/Users/docwhat/Library/Application Support/Aquamacs Emacs/ecb-2.40&quot;)

;; Choose one of the following...

;; If you want to load the complete ECB at (X)Emacs-loadtime
;; (Advantage: All ECB-options available after loading
;; ECB. Disadvantage: Increasing loadtime2):

(require 'ecb)

;; If you want to load the ECB first after starting it by ecb-activate
;; (Advantage: Fast loading3. Disadvantage: ECB- and semantic-options
;; first available after starting ECB):

;(require 'ecb-autoloads)
</pre>
</li>
<li> Symlink the <code>info-help</code> directory to <code>info</code> and create a <code>dir</code> file. </li>
<pre class="brush: bash;">
ln -s info-help info
cd info
install-info --info-dir=&quot;$(pwd)&quot; ecb.info
</pre>
<li> Restart aquamacs and you should have ECB available, including docs.
</li>
</ol>
<h3>You&#8217;re Done!</h3>
<p>I suggest you sit down and read some of the docs for ECB and CEDET.  Especially <a href="http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html"  class="extlink">A Gentle Introduction to Cedet</a> and reading the info docs for ECB by using <code>M-x info</code> or the HTML version in the ECB directory we created.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/08/cedet-ecb-for-aquamacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/08/cedet-ecb-for-aquamacs/</feedburner:origLink></item>
		<item>
		<title>bash: Checking a port number</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/1FmITTcT3SU/</link>
		<comments>http://docwhat.org/2010/07/bash-checking-a-port-number/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 21:23:06 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=563</guid>
		<description>Ever needed to check if a given port number is valid in bash? It&amp;#8217;s harder than it looks because if you accept any input from the user, you can&amp;#8217;t use declare -i since it spews errors and aborts functions if the input is malformed. An example: declare -i foo='10#88f' bash: declare: 10#88f: value too great [...]</description>
			<content:encoded><![CDATA[<div id="attachment_566" class="wp-caption alignleft" style="width: 136px"><a href="http://docwhat.org/files/2010/07/nucella_lapillus1.jpg" ><img class="size-full wp-image-566 " title="Nucella lapillus. Image by Manfred Heyde. This file is licensed under the Creative Commons Attribution ShareAlike 3.0 License." src="http://docwhat.org/files/2010/07/nucella_lapillus1-e1279315138571.jpg" alt="" width="126" height="174" /></a><p class="wp-caption-text">Image by Manfred Heyde.</p></div>
<p>Ever needed to check if a given port number is valid in bash?  It&#8217;s harder than it looks because if you accept any input from the user, you can&#8217;t use <code>declare -i</code> since it spews errors and aborts functions if the input is malformed.</p>
<p><span id="more-563"></span></p>
<p>An example:</p>
<pre>declare -i foo='10#88f'
bash: declare: 10#88f: value too great for base (error token is "10#88f")</pre>
<p>In addition to being really annoying (you can&#8217;t use <code>||</code> to get around it) it is also wrong. It isn&#8217;t a matter of base but an invalid value.</p>
<pre class="brush: bash;">
#!/bin/bash

function to_int {
    local -i num=&quot;10#${1}&quot;
    echo &quot;${num}&quot;
}

function port_is_ok {
    local port=&quot;$1&quot;
    local -i port_num=$(to_int &quot;${port}&quot; 2&gt;/dev/null)

    if (( $port_num &lt; 1 || $port_num &gt; 65535 )) ; then
        echo &quot;*** ${port} is not a valid port&quot; 1&gt;&amp;2
        return
    fi

    echo 'ok'
}

port_is_ok 1          # =&gt; ok
port_is_ok 20         # =&gt; ok
port_is_ok 70000      # =&gt; *** 70000 is not a valid port
port_is_ok tnenth2    # =&gt; *** tnenth2 is not a valid port
port_is_ok thethe     # =&gt; *** thethe is not a valid port
port_is_ok 888f88     # =&gt; *** 888f88 is not a valid port
port_is_ok 88888f     # =&gt; *** 88888f is not a valid port

# EOF
</pre>
<p>Without the <code>to_int()</code> function, then you&#8217;d get errors from port_is_ok and the function would abort before it gets to the check.</p>
<p>You have to redirect stderr to hide this bash error.</p>
<p>This was tested with bash <code>4.1.5(1)-release</code></p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/07/bash-checking-a-port-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/07/bash-checking-a-port-number/</feedburner:origLink></item>
		<item>
		<title>IAT on Cygwin</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/vFzhPtXmyes/</link>
		<comments>http://docwhat.org/2010/07/iat-on-cygwin/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 20:21:30 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[It's All Text!]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=560</guid>
		<description>For those that use Cygwin on Windows, Mike Hostetler has a post detailing how to use Cygwin editors with It&amp;#8217;s All Text! He&amp;#8217;s using it to play with emacs and emacsclient, but it&amp;#8217;ll probably work for using the Cygwin vim.  I bet it also works with Cygwin/X. I&amp;#8217;m always impressed at the new ways people [...]</description>
			<content:encoded><![CDATA[<p><div class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/tjeerd/4925197/"  ><img title="Windows Mobile" src="http://farm1.static.flickr.com/4/4925197_fbce48f177_m.jpg" alt="" width="240" height="180" /></a><p class="wp-caption-text">Image by Tjeerd Wiersma </p></div>For those that use <a href="http://www.cygwin.com/" title="Cygwin" class="extlink">Cygwin</a> on Windows, Mike Hostetler has a <a href="http://mike.hostetlerhome.com/2010/03/04/getting-its-all-text-to-play-with-cygwin/" title="Getting It’s All Text to play with Cygwin" class="extlink">post detailing how to use Cygwin editors</a> with It&#8217;s All Text!<br />
<span id="more-560"></span><br />
He&#8217;s using it to play with emacs and emacsclient, but it&#8217;ll probably work for using the Cygwin vim.  I bet it also works with <a href="http://x.cygwin.com/" title="Cygwin/X" class="extlink">Cygwin/X</a>.</p>
<p>I&#8217;m always impressed at the new ways people find to use IAT.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/07/iat-on-cygwin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/07/iat-on-cygwin/</feedburner:origLink></item>
		<item>
		<title>English in IIS thread</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/Rq_QIbz867I/</link>
		<comments>http://docwhat.org/2010/06/english-in-iis-thread/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 21:44:27 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Life]]></category>
		<category><![CDATA[The World Around Us]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[grammar]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[spelling]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=548</guid>
		<description>Peter noticed today that IIS has an error in the English for one of its dialog boxes. We immediately searched for it and found this bizarre thread. It&amp;#8217;s hard to read it in its original form, so I have re-organized it here and saved it for posterity. Has anyone noticed this spelling error? Anonymous: Hi, [...]</description>
			<content:encoded><![CDATA[<p><a href="http://peterpawlowski.com/"  class="extlink">Peter</a> noticed today that IIS has an error in the English for one of its dialog boxes.  We immediately searched for it and found this <a href="http://msdn.itags.org/iis/21911/"  class="extlink">bizarre thread</a>.</p>
<p>It&#8217;s hard to read it in its original form, so I have re-organized it here and saved it for posterity.</p>
<p><span id="more-548"></span></p>
<h2>Has anyone noticed this spelling error?</h2>
<h3>Anonymous:</h3>
<blockquote><p>Hi, I&#8217;ve found a surprising spelling error in IIS, in the Stop/Start/Reset dialog box.</p>
<p>It says &#8220;You will loose all current sessions&#8230;&#8221; rather than &#8220;lose&#8221;.</p>
<p>Microsoft, shame on you&#8230; <img src='http://docwhat.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p></blockquote>
<h3>jeethu:</h3>
<blockquote><p>Hi<br />
For enormous products range and user friendliness Microsoft provides , Lets forget this simple stuff <img src='http://docwhat.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  out of hunderd thousand lines of coding.</p>
<p>Jeethu Joseph<br />
IIS/Asp.Net Engineer Microsoft</p></blockquote>
<p>Is this a real Engineer at Microsoft? I was curious, so I tracked his accounts around the internets and it seems <a href="http://mysite.sharepointlogics.com/"  class="extlink">this is his home page</a>.  His resume says he&#8217;s certified, partnered, etc. but that he never actually worked for Microsoft.</p>
<h3>andrewh:</h3>
<blockquote><p>Is this the official response!? ^_^</p>
<p>I&#8217;m just a little surprised that Microsoft&#8217;s stringent QA process didn&#8217;t catch this little typo. I was even more surprised when I googled and nobody seems to have mentioned it.</p>
<p>Just another one to file under &#8220;MS-related strangeness&#8230;&#8221;</p></blockquote>
<h3>egbert:</h3>
<blockquote><p>OK, let&#8217;s improve the world, and forbid spell errors, and let&#8217;s also forbid, unofficial English like: &#8220;I aint&#8217; do it&#8221; (instead of I won&#8217;t do it) and &#8220;you and me&#8221; (instead of you and I).</p></blockquote>
<p>&#8220;I ain&#8217;t do?&#8221; I have never heard of this one. Anyone?  Sounds like a job for <a href="http://englishfromfriends.com/"  class="extlink">English from Friends</a>.</p>
<h3>andrewh:</h3>
<blockquote><p>Sorry, but what on Earth are you talking about?</p>
<p>Slang has got precisely nothing to do with poor spelling, or mistakes in QA.</p>
<p>I&#8217;m not coming here to attack MS, but to point out what I think is an interesting anomaly.</p>
<p>Your reluctance to laugh about it with me could be seen to reflect a slightly precious attitude towards criticism, when in fact there is none offered.</p>
<p>The fact that this *isn&#8217;t* an open-source project, and people *are* paid to fix this kind of thing, is noteworthy. But hey, it&#8217;s no big deal.</p>
<p>Ciao.</p></blockquote>
<p>Hey! That&#8217;s mine.  You can&#8217;t use &#8220;Ciao&#8221; to end a post!  Oh, wait, he didn&#8217;t use the exclamation point.  That&#8217;s okay then.</p>
<h3>pedro:</h3>
<blockquote><p>hi</p>
<p>Maybe I missed the point, but you are saying that it should be written &#8220;lose&#8221; instead of &#8220;loose&#8221;, right ?</p>
<p>If So, and just as a side note, here in Portugal, &#8220;loose&#8221; is taught as the correct english spelling.</p>
<p>maybe, who scanned for errors wasn&#8217;t american ?</p>
<p>Pedro Leite From Portugal.</p></blockquote>
<p>The difference between <em>loose</em> and <em>lose</em> is actually pretty hard to figure out.  Mainly because they sound a like and people tend to pronounce them similarly when they speak.  I know I have a hard time telling which was being used if either would work in a spoken sentence.</p>
<h3>andrewh:</h3>
<blockquote><p>&gt; maybe, who scanned for errors wasn&#8217;t american ?</p>
<p>Very good point! I was not aware of that.</p>
<p>Have a nice day,</p>
<p>Andrew</p></blockquote>
<h3>gerry:</h3>
<p>I love this opening sentence.  It&#8217;s just perfect.  It makes sense if said out-loud, but totally doesn&#8217;t work when written.</p>
<blockquote><p>well , &#8220;loose&#8221; is the correct english spelling for &#8220;loose&#8221; and &#8220;lose&#8221; is the correct english spelling for &#8220;lose&#8221; but the 2 have very different meanings.</p>
<p><a href="http://www.websters-online-dictionary.org/definition/lose"  class="extlink">http://www.websters-online-dictionary.org/definition/lose</a><br />
<a href="http://www.thefreedictionary.com/lose"  class="extlink">http://www.thefreedictionary.com/lose</a><br />
<a href="http://dictionary.cambridge.org/define.asp?key=16736&amp;dict=S〈=E"  class="extlink">http://dictionary.cambridge.org/define.asp?key=16736&amp;dict=S〈=E</a><br />
<a href="http://www.allwords.com/query.php?SearchType=3&amp;Keyword=lose&amp;goquery=Find+it%21&amp;Language=ENG&amp;ESP=1&amp;v=72189267"  class="extlink">http://www.allwords.com/query.php?SearchType=3&amp;Keyword=lose&amp;goquery=Find+it%21&amp;Language=ENG&amp;ESP=1&amp;v=72189267</a><br />
<a href=" "><br />
</a>http://www.websters-online-dictionary.org/definition/loose<br />
<a href="http://www.thefreedictionary.com/loose"  class="extlink">http://www.thefreedictionary.com/loose</a><br />
<a href="http://dictionary.cambridge.org/define.asp?key=16717&amp;dict=S〈=E"  class="extlink">http://dictionary.cambridge.org/define.asp?key=16717&amp;dict=S〈=E</a><br />
<a href="http://www.allwords.com/query.php?SearchType=3&amp;Keyword=loose&amp;goquery=Find+it%21&amp;Language=ENG&amp;ESP=1&amp;v=58781511"  class="extlink">http://www.allwords.com/query.php?SearchType=3&amp;Keyword=loose&amp;goquery=Find+it%21&amp;Language=ENG&amp;ESP=1&amp;v=58781511</a></p></blockquote>
<h3>pedro:</h3>
<blockquote><p>Hi</p>
<p>who would know that today i would be learning english !!!</p>
<p>thank you for the clarification on a subtle linguistic difference.</p>
<p>before posting, i asked an english teacher and she ( yes, I actually talk to women in the flesh ) only mentioned the &#8220;loose&#8221; as being part of the to lose, lost, lost verb.</p>
<p>thanks a bunch</p>
<p>Best Regards</p>
<p>Pedro Leite from Portugal</p></blockquote>
<p>Huh?! That comment about talking to women came out of left-field.  Wow.</p>
<h3>egbert:</h3>
<blockquote><p>ok, I understand you. I might just not have been in the mood for a laugh <img src='http://docwhat.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></blockquote>
<p>Wow.  That was fun, strange and surreal. I hope you enjoyed it. <img src='http://docwhat.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/06/english-in-iis-thread/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/06/english-in-iis-thread/</feedburner:origLink></item>
		<item>
		<title>Two ways to improve OS-X…</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/lmV04J3BZA8/</link>
		<comments>http://docwhat.org/2010/04/two-ways-to-improve-os-x/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 21:33:49 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[hints]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[trick]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=542</guid>
		<description>I found this excellent article, Mac OS X SSD tweaks by Ricardo Gameiro, and have stolen two of the ideas for my non-SSD MacBook Pro laptop. I&amp;#8217;ll cover all three, though, since I don&amp;#8217;t agree with his hibernation trick. Turn off atime This is pretty simple. Setting noatime turns off recording of when files are [...]</description>
			<content:encoded><![CDATA[<p>I found this excellent article, <a href="http://blogs.nullvision.com/?p=275"  class="extlink">Mac OS X SSD tweaks</a> by Ricardo Gameiro, and have stolen two of the ideas for my non-SSD MacBook Pro laptop.  I&#8217;ll cover all three, though, since I don&#8217;t agree with his hibernation trick.<br />
<span id="more-542"></span></p>
<h2>Turn off atime</h2>
<p>This is pretty simple.  Setting <code>noatime</code> turns off recording of when files are accessed.  I&#8217;ve never found a usage for the recording of file accesses.  However, you may have a use for this behavior, so be warned.</p>
<p>To turn off <code>atime</code> then just dump this XML into <code>/Library/LaunchDaemons/com.nullvision.noatime.plist</code>.</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot;
        &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
    &lt;dict&gt;
        &lt;key&gt;Label&lt;/key&gt;
        &lt;string&gt;com.nullvision.noatime&lt;/string&gt;
        &lt;key&gt;ProgramArguments&lt;/key&gt;
        &lt;array&gt;
            &lt;string&gt;mount&lt;/string&gt;
            &lt;string&gt;-vuwo&lt;/string&gt;
            &lt;string&gt;noatime&lt;/string&gt;
            &lt;string&gt;/&lt;/string&gt;
        &lt;/array&gt;
        &lt;key&gt;RunAtLoad&lt;/key&gt;
        &lt;true /&gt;
    &lt;/dict&gt;
&lt;/plist&gt;
</pre>
<h2>Turn off hibernate</h2>
<p>In the article,  he suggests turning off hibernate altogether.  I don&#8217;t like this.  The hibernate is really handy if something goes wrong and you loose all your power.</p>
<p>There are two ways OS-X goes to sleep: suspend and hibernate.</p>
<p>The first is suspend.  Information on the system state is stored to ram and the cpu is stopped.  This is really fast to sleep and really fast to restore.  The downside is that if the system looses power, it cannot restore; the ram is wiped clean.</p>
<p>The second is hibernate.  Information on the system state is stored to disk and the cpu is stopped.  The system is powered off.  On restart, the state is read from disk and the system restarts as normal.  This is slow to sleep and restore, but if power is lost, the system state is still safe.</p>
<p>OS-X, for laptops, does both.  This means it is slow to shutdown, but fast to restore.</p>
<p>Obviously, if you are using SSD or if you want shutdowns to be fast (like I do, since I tend to shut my lid and carry around my laptop immediately), then you really don&#8217;t want hibernation to happen unless you really need it.</p>
<p>So I use <a href="http://www.jinx.de/SmartSleep.html"  class="extlink">SmartSleep</a> by Patrick Stein.  The only time my laptop hibernates is when the power is low.  The best of both worlds.</p>
<h2>Storing <code>/tmp/</code> in ram</h2>
<p>This recipe is nearly the same as Ricardo&#8217;s suggestion.  I just added the code from <a href="http://blogs.nullvision.com/?p=275#comment-64"  class="extlink">Patrick Gibson&#8217;s comment</a>.</p>
<p>This is two part; you need to create a shell script and a plist.</p>
<p>The shell script goes in <code>/var/root/ramfs.sh</code>.  You must do a <code>chmod a+x /var/root/ramfs.sh</code> afterwards.</p>
<pre class="brush: bash;">
#!/bin/bash

set -eu

ramfs_size_mb=256
mount_point=&quot;/private/tmp&quot;

ramfs_size_sectors=$(( ${ramfs_size_mb} * 1024 * 1024 / 512 ))
ramdisk_dev=$(hdid -nomount ram://${ramfs_size_sectors} | cut -d ' ' -f 1)
newfs_hfs -v 'Volatile HD' &quot;${ramdisk_dev}&quot;
mkdir -p &quot;${mount_point}&quot;
mount -o noatime -t hfs &quot;${ramdisk_dev}&quot; &quot;${mount_point}&quot;

# hide the volume from the Finder
if [ -e /usr/bin/SetFile ]; then
 /usr/bin/SetFile -a V &quot;${mount_point}&quot;
fi

# fix permissions
chown root:wheel &quot;${mount_point}&quot;
chmod 1777 &quot;${mount_point}&quot;

# EOF
</pre>
<p>Next you need to drop a plist file in <code>/Library/LaunchDaemons/com.nullvision.ramfs.plist</code>.</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
    &lt;dict&gt;
        &lt;key&gt;Label&lt;/key&gt;
        &lt;string&gt;com.nullvision.ramfs&lt;/string&gt;
        &lt;key&gt;ProgramArguments&lt;/key&gt;
        &lt;array&gt;
            &lt;string&gt;/var/root/ramfs.sh&lt;/string&gt;
        &lt;/array&gt;
        &lt;key&gt;RunAtLoad&lt;/key&gt;
        &lt;true /&gt;
    &lt;/dict&gt;
&lt;/plist&gt;
</pre>
<p>I don&#8217;t recommend moving any caches or anything, as he mentions at the end of the article.  Just having <code>/tmp/</code> (aka <code>/private/tmp/</code>) will be an advantage.  Well, except the XCode thing.  That&#8217;s probably useful.</p>
<p>Ciao!</p>
<p><ins datetime="2010-06-16T13:24:14+00:00"><br />
<h2>Addendium: Reverting <code>/tmp</code></h2>
<p></ins></p>
<p>I discovered that <a href="http://www.coriolis-systems.com/iDefrag.php"  class="extlink">iDefrag2</a> needs to have <code>/tmp</code> be a real filesystem to do it&#8217;s &#8220;No bootable CD/DVD required!&#8221; trick.  After hashing it out with a helpful developer (Thanks, Chris!) we tracked it down to putting <code>/tmp</code> into ram.</p>
<p>To undo it, run these commands as root:</p>
<pre class="brush: bash;">
rm /Library/LaunchDaemons/com.nullvision.ramfs.plist
rm /var/root/ramfs.sh
mkdir /private/tmp2
mv /private/tmp /private/tmp2 ; mv /private/tmp2 /private/tmp
chown root:wheel /private/tmp
chmod 1777 /private/tmp
</pre>
<p>You should reboot immediately after this change.</p>
<p>After reboot, verify that <code>/tmp</code> and <code>/private/tmp</code> are set up correctly:</p>
<pre class="brush: bash;">
$ ls -ald /tmp /private/tmp
drwxrwxrwt 18 root wheel 612 Jun 16 09:47 /private/tmp/
lrwxr-xr-x  1 root admin  11 Jun 16 09:23 /tmp -&gt; private/tmp/
</pre>
<p><b>Important:</b> Verify that the <code>/tmp</code> symlink points to <code>private/tmp</code> not <code><b>/</b>private/tmp</code>!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/04/two-ways-to-improve-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/04/two-ways-to-improve-os-x/</feedburner:origLink></item>
		<item>
		<title>We Haz Ferrets!</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/u54oLnG4vPc/</link>
		<comments>http://docwhat.org/2010/04/we-haz-ferrets/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 17:36:33 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Life]]></category>
		<category><![CDATA[animals]]></category>
		<category><![CDATA[ferrets]]></category>
		<category><![CDATA[pets]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=533</guid>
		<description>We just got our selves a pair of ferrets. Yay! And boy are they cute and energetic. You can identify which is which by their foreheads. One (the alpha) has a white forehead. The other has a pair of dark marks on her head. Both are female. They still need to settle into our household. [...]</description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/docwhat/4505256023/" class="tt-flickr tt-flickr-Small extlink" title="The ferrets in question."><img class="alignleft" src="http://farm5.static.flickr.com/4012/4505256023_54fa1fd30d_m.jpg" alt="The ferrets in question." width="240" height="180" /></a> </p>
<p>We just got our selves a pair of ferrets.  Yay! And boy are they cute and energetic.</p>
<p><span id="more-533"></span></p>
<p>You can identify which is which by their foreheads.  One (the alpha) has a white forehead.  The other has a pair of dark marks on her head.</p>
<p>Both are female.</p>
<p>They still need to settle into our household.  Though the dark mark one did her happy dance this morning (its hard to describe, but great fun).</p>
<p>The other, the alpha, is apparently a hand biter.  Since she bites when nothing is going on, I suspect she is either still stressed out or has bad associations with hands.  They were cage ferrets and have never had owners, so we have a little work ahead making them comfortable with people.</p>
<p>Check out the <a href="http://www.flickr.com/photos/docwhat/sets/72157623690650155/"  class="extlink">photos</a> and give us some suggestions for names!</p>
<p>[<strong>update 2010-04-12:</strong> They have been named! The alpha is <em>Fang</em> and the non-alpha is <em>Pepper</em>.]</p>
<p>Ciao!</p>
<p>P.S.: Man, are these things hard to photograph.  They just don&#8217;t sit still for a moment.  Pure energy.  I&#8217;m sure as they get more used to us, we will get beter photos.</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/04/we-haz-ferrets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/04/we-haz-ferrets/</feedburner:origLink></item>
		<item>
		<title>Ruby Debugging</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/pox7URXKVDU/</link>
		<comments>http://docwhat.org/2010/03/ruby-debug/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 21:29:39 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=526</guid>
		<description>There is a ruby-debugger gem which is very handy for trouble shooting problems in a ruby script. The built in debugging is quite powerful and worth learning to use. First off, install ruby-debug: # If using ruby1.8 $ gem install ruby-debug # If using ruby 1.9.1 $ gem install ruby-debug19 Next: Watch this video&amp;#8230;. Link [...]</description>
			<content:encoded><![CDATA[<p>There is a ruby-debugger gem which is very handy for trouble shooting problems in a ruby script.  The built in debugging is quite powerful and worth learning to use.</p>
<p>First off, install ruby-debug:</p>
<p><span id="more-526"></span></p>
<pre class="brush: bash;">
# If using ruby1.8
$ gem install ruby-debug

# If using ruby 1.9.1
$ gem install ruby-debug19
</pre>
<p>Next: Watch this video&#8230;.</p>
<ul>
<li><a href="http://brian.maybeyoureinsane.net/blog/2007/05/07/ruby-debug-basics-screencast/"  class="extlink">Link to blog post</a></li>
<li><a href="http://cardero.textdrive.com/~eventualbuddha/ruby-debug-1-basics.mov"  class="extlink">Link to video: Basics of Ruby Debug</a></li>
</ul>
<p>The big thing to remember is <code>help</code> is your friend.</p>
<p>Finally: A handy <code>~/.rdebugrc</code> file:</p>
<pre class="brush: plain;">
# rdebugrc
set autolist   on
set autoeval   on
set autoreload on
# EOF
</pre>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/03/ruby-debug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://cardero.textdrive.com/~eventualbuddha/ruby-debug-1-basics.mov" length="2901355" type="video/quicktime" />
		<feedburner:origLink>http://docwhat.org/2010/03/ruby-debug/</feedburner:origLink></item>
		<item>
		<title>Stupid Git Trick</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/4ErzSDsd9ls/</link>
		<comments>http://docwhat.org/2010/03/stupid-git-trick/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 02:29:08 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=523</guid>
		<description>This was one of those dumb things that I should have figured out earlier. If you use emacs for editing then you probably have a customized .emacs file. Even if you don&amp;#8217;t, your system is probably loading a boatload of features for emacs. I certainly have a ton of elisp that I use to make [...]</description>
			<content:encoded><![CDATA[<p>This was one of those dumb things that I should have figured out earlier.</p>
<p>If you use emacs for editing then you probably have a customized <code>.emacs</code> file.  Even if you don&#8217;t, your system is probably loading a boatload of features for emacs.</p>
<p>I certainly have a ton of elisp that I use to make development easier.</p>
<p><span id="more-523"></span></p>
<p>So it just occurred to me that I don&#8217;t need any of that stuff just to edit a change commit.</p>
<p>So I added this to my shell rc file:</p>
<pre class="brush: bash;">
export GIT_EDITOR=&quot;emacs -q&quot;
</pre>
<p>Now emacs pops up instantly and I don&#8217;t have to wait for all the elisp to load and initialize.</p>
<p>This probably works with other editors too.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/03/stupid-git-trick/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/03/stupid-git-trick/</feedburner:origLink></item>
		<item>
		<title>MacHeist nanoBundle 2</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/rFcOqtBs7hQ/</link>
		<comments>http://docwhat.org/2010/03/macheist-nanobundle-2/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 12:59:59 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Life]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://docwhat.org/2010/03/macheist-nanobundle-2/</guid>
		<description>There is a new MacHeist nanoBundle. For $20, it looks like some fun mac-ish tools to play with. Yeah, I’m one of those people who can have fun simply playing with new software. Hmm&amp;#8230;I have apparently also posted 120 posts to my blog. Wow! I didn’t notice till I played with MacJournal. And yes, this [...]</description>
			<content:encoded><![CDATA[<p>There is a new <a href="http://macheist.com/"  class="extlink">MacHeist</a> nanoBundle.  For $20, it looks like some fun mac-ish tools to play with.  Yeah, I’m one of those people who can have fun simply playing with new software.</p>
<p>Hmm&#8230;I have apparently also posted 120 posts to my blog.  Wow!  I didn’t notice till I played with <a href="http://www.marinersoftware.com/sitepage.php?page=85"  class="extlink">MacJournal</a>. And yes, this was posted via MacJournal.</p>
<p><span id="more-519"></span></p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/03/macheist-nanobundle-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/03/macheist-nanobundle-2/</feedburner:origLink></item>
		<item>
		<title>Logging while monitoring a shell script</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/Mt9-SeG-P6I/</link>
		<comments>http://docwhat.org/2010/02/logging-while-monitoring-a-shell-script/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 16:45:43 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=511</guid>
		<description>You may be familiar with redirecting the output of your shell script to a file using exec However, what do you do if you want monitor the output while logging at the same time? I just figured this out (probably again, since I tend to forget things&amp;#8230; which is why I&amp;#8217;m blogging this). WARNING: This [...]</description>
			<content:encoded><![CDATA[<p>You may be familiar with redirecting the output of your shell script to a file using <code>exec</code></p>
<p>However, what do you do if you want monitor the output while logging at the same time?  I just figured this out (probably again, since I tend to forget things&#8230; which is why I&#8217;m blogging this).</p>
<p>WARNING: This is bash-specific.  While I prefer <a href="http://zsh.org/"  class="extlink">ZSH</a> for my personal shell, I generally code in bash because it is everywhere.</p>
<p><span id="more-511"></span></p>
<pre class="brush: bash;">
# Logs only stdout
exec &gt; &gt;(tee &quot;somefile.log&quot;)

# Logs stderr and stdout to separate files.
exec 2&gt; &gt;(tee &quot;somefile.err&quot;)
exec &gt; &gt;(tee &quot;somefile.log&quot;)

# Logs stderr and stdout to the same file.
exec &gt; &gt;(tee &quot;somefile.log&quot;)
exec 2&gt;&amp;1
</pre>
<p>I got it from Naked Ape&#8217;s <a href="http://nakedape.cc/wiki/ShellHacks#head-de8dfd2d082bafe4d128663f71cff0e298084e30"  class="extlink">Shell Hacks</a>.</p>
<p>This is apparently called <a href="http://tldp.org/LDP/abs/html/process-sub.html"  class="extlink">process substitution</a>.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/02/logging-while-monitoring-a-shell-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/02/logging-while-monitoring-a-shell-script/</feedburner:origLink></item>
		<item>
		<title>It’s All Text! 1.4 (FF3.6 compatible)</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/jnqRh4AxPNc/</link>
		<comments>http://docwhat.org/2010/01/its-all-text-1-4-ff3-6-compatible/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 23:53:57 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[It's All Text!]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=491</guid>
		<description>I have just finished Firefox 3.6 after working like crazy since FF 3.6 came out. It only works in FF3.6, but the statistics show that the users of It&amp;#8217;s All Text! upgrade their browser almost immediately after a new version comes out, so I&amp;#8217;m not worried. At the time of this post, it hasn&amp;#8217;t been [...]</description>
			<content:encoded><![CDATA[<p>I have just finished Firefox 3.6 after working like crazy since FF 3.6 came out.</p>
<p>It only works in FF3.6, but the statistics show that the users of It&#8217;s All Text! upgrade their browser almost immediately after a new version comes out, so I&#8217;m not worried.</p>
<p><del datetime="2010-01-27T21:01:19+00:00">At the time of this post, it hasn&#8217;t been approved, so you&#8217;ll need to download it manually from the <a href="https://addons.mozilla.org/en-US/firefox/addons/versions/4125"  class="extlink">versions page</a>.</del></p>
<p><span id="more-491"></span></p>
<p>It&#8217;s approved and available via the <a href="https://addons.mozilla.org/en-US/firefox/addon/4125"  class="extlink">normal spot</a>.</p>
<p>I apologize for not getting this done before FF 3.6.  I don&#8217;t have a real excuse except being lazy and busy with other things.  But I have to say the amount of emails I got asking for a FF 3.6 version definitely got me off my butt. <img src='http://docwhat.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/01/its-all-text-1-4-ff3-6-compatible/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/01/its-all-text-1-4-ff3-6-compatible/</feedburner:origLink></item>
		<item>
		<title>An idea for an iPhone app</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/EOlVS4xFQi4/</link>
		<comments>http://docwhat.org/2010/01/an-idea-for-an-iphone-app/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 01:43:24 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Life]]></category>
		<category><![CDATA[My Projects]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[video games]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=489</guid>
		<description>So Robin (my awesome wife) came up with an idea for an iPhone app. We were watching UHF and there is a bit where a guy is trying to teach poodles to fly&amp;#8230; by throwing them out the 3rd floor window. There was a pile poodles on the lawn of his apartment building. She cracked [...]</description>
			<content:encoded><![CDATA[<p>So Robin (my awesome wife) came up with an idea for an iPhone app.</p>
<p>We were watching <a href="http://www.imdb.com/title/tt0098546/"  class="extlink">UHF</a> and there is a bit where a guy is trying to <a href="http://www.youtube.com/watch?v=2kFGxH4wrs4"  class="extlink">teach poodles to fly</a>&#8230; by throwing them out the 3rd floor window.  There was a pile poodles on the lawn of his apartment building.</p>
<p>She cracked up.</p>
<p><span id="more-489"></span></p>
<p>After she recovered and picked herself off the floor, she said that I should make a &#8220;Teach Poodles to Fly&#8221; app.  I haven&#8217;t written an iPhone app yet, but you know&#8230;it almost sounds like fun.</p>
<p>You would use the flick motion to launch poodles out a window.  If you miss, the poodle hits the wall instead of going out the window.  Of course, it&#8217;s probably not a happy thing for the poodle, either way.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/01/an-idea-for-an-iphone-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/01/an-idea-for-an-iphone-app/</feedburner:origLink></item>
		<item>
		<title>MacBook Pro – Dual Graphics</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/O4Pqi51c8p0/</link>
		<comments>http://docwhat.org/2009/12/macbook-pro-dual-graphics/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 22:23:29 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[macbook pro]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=478</guid>
		<description>I&amp;#8217;m annoyed. I&amp;#8217;ve had my lovely late-2009 MacBook Pro with the incredible dual graphics processors for a couple months and I had the slower GPU enabled the whole time. Apparently, you need to go into &amp;#8220;System Preferences&amp;#8221; -&amp;#62; &amp;#8220;Energy Saver&amp;#8221; and turn on &amp;#8220;Graphics&amp;#8221; -&amp;#62; &amp;#8220;Higher Performance&amp;#8221;apple kb. I am annoyed, because I thought the [...]</description>
			<content:encoded><![CDATA[<div id="attachment_480" class="wp-caption alignright" style="width: 228px"><a href="http://www.apple.com/macbookpro/graphics.html"  ><img class="size-full wp-image-480  " title="From the official mac specs." src="http://docwhat.org/files/2009/12/graphics2.png" alt="graphics" width="218" height="140" /></a><p class="wp-caption-text">The official Apple description of the graphics in my MacBook Pro.</p></div>
<p>I&#8217;m annoyed.  I&#8217;ve had my lovely late-2009 MacBook Pro with the incredible <a href="http://www.nvidia.com/object/product_geforce_9400m_g_us.html"  class="extlink">dual graphics processors</a> for a couple months and I had the slower GPU enabled the whole time.</p>
<p>Apparently, you need to go into &#8220;System Preferences&#8221; -&gt; &#8220;Energy Saver&#8221; and turn on &#8220;Graphics&#8221; -&gt; &#8220;Higher Performance&#8221;<a href="http://support.apple.com/kb/HT3207"  class="extlink"><sup>apple kb</sup></a>.</p>
<p><span id="more-478"></span>I am annoyed, because I thought the problems with<a href="http://www.thesims3.com/game/thesims3"  class="extlink"> Sims 3</a> was because it was having trouble, not because I was using the slow GPU.</p>
<p>Even more annoying, I was (apparently falsely) under the impression that this switch was either obvious, easy or happened automagically when plugging or unplugging the power.</p>
<p>The <a href="http://www.nvidia.com/object/product_geforce_9400m_g_us.html"  class="extlink">spec sheet</a> for the GPU says that it is capable of switching on the fly and even using <em>both</em> GPUs for even more power.  I found this out via an EveryMac <a href="http://www.everymac.com/systems/apple/macbook_pro/macbook-pro-unibody-faq/macbook-pro-unibody-switching-between-graphics-processors.html"  class="extlink">article</a>.</p>
<p>Well, hopefully some day this will be enabled.  Meanwhile, I&#8217;m going to check to see if the <a href="http://en.wikipedia.org/wiki/Grand_Central_Dispatch"  class="extlink">GCD</a> needs enabling too.</p>
<p>Ciao.</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2009/12/macbook-pro-dual-graphics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://docwhat.org/2009/12/macbook-pro-dual-graphics/</feedburner:origLink></item>
		<item>
		<title>Firefox Fix</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/NaGzHbocupY/</link>
		<comments>http://docwhat.org/2009/11/firefox-fix/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 17:29:02 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[WebDev]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=475</guid>
		<description>I have a tendency to switch my default browser every so often. I like playing with new toys. I just switched from Safari to Firefox 3.5.5 and discovered I couldn&amp;#8217;t stand the way external links open in new tabs though I wanted new-window links such as target=&amp;#8221;_blank&amp;#8221; to open in a new tab. This used [...]</description>
			<content:encoded><![CDATA[<p>I have a tendency to switch my default browser every so often.  I like playing with new toys.</p>
<p>I just switched from Safari to Firefox 3.5.5 and discovered I couldn&#8217;t stand the way external links open in new tabs though I wanted new-window links such as target=&#8221;_blank&#8221; to open in a new tab.</p>
<p>This used to work via <a href="http://kb.mozillazine.org/Browser.link.open_external"  class="extlink">browser.link.open_external.</a></p>
<p><span id="more-475"></span></p>
<p>But <a href="http://kb.mozillazine.org/Browser.link.open_external"  class="extlink">no longer</a>.  They nuked this via <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=324164"  class="extlink">bug 324164</a>.  I can sort of understand it.  Most people want a new tab or a new window on each new link.  However, if you use spaces in OS-X or desktops in Linux, then setting this unified option to &#8220;new tab&#8221; sucks &#8212; you have to play &#8220;hunt the window&#8221; every time you click a link in a program.</p>
<p>Bleh.</p>
<p>Fortunately, someone came to our rescue with a handy addon: <a href="https://addons.mozilla.org/en-US/firefox/addon/13626"  class="extlink">Tabs Open Relative (Modified)</a> by mojo-chan.</p>
<p>It also has the side-effect of opening new tabs just right to the current tab, like chrome does.  I&#8217;ve become used to that behavior and definitely prefer it.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2009/11/firefox-fix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://docwhat.org/2009/11/firefox-fix/</feedburner:origLink></item>
	</channel>
</rss>
