<?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>Yesterday's Thoughts &#187; Macintosh</title>
	<atom:link href="http://www.warmroom.com/yesterdays/category/software-internet/macintosh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.warmroom.com</link>
	<description>Reflections on family life, software, politics and endurance sports.</description>
	<lastBuildDate>Sat, 10 Sep 2011 20:46:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Find Clipboard</title>
		<link>http://www.warmroom.com/yesterdays/2007/07/25/find-clipboard/</link>
		<comments>http://www.warmroom.com/yesterdays/2007/07/25/find-clipboard/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 01:29:00 +0000</pubDate>
		<dc:creator>Ray Baxter</dc:creator>
				<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[Software & Internet]]></category>

		<guid isPermaLink="false">http://www.warmroom.com/yesterdays/2007/07/25/find-clipboard/</guid>
		<description><![CDATA[Here&#8217;s a keyboard shortcut that I don&#8217;t think I ever learned. From the TextMate documentation: 4.5.2 Find Clipboard Two useful key equivalents are ⌘E and ⌘G. The first copies the selection to the shared find clipboard. This works in the majority of applications and allows you to find the next occurrence of that string by [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a keyboard shortcut that I don&#8217;t think I ever learned.</p>
<p>From the <a href="http://www.google.com/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fmacromates.com%2F&amp;ei=whSoRqTzEYqmoAS17JCRCQ&amp;usg=AFQjCNEORMq1DJ65XRHEXU2uoKZNIePB_A&amp;sig2=OVFtMJw22Fy50Nk1n5c9eg">TextMate</a> documentation:</p>
<blockquote><p>
	4.5.2 Find Clipboard</p>
<p>	Two useful key equivalents are ⌘E and ⌘G. The first copies the selection to the shared find clipboard. This works in the majority of applications and allows you to find the next occurrence of that string by then pressing ⌘G.</p>
<p>	The find clipboard works across applications so whether in Safari, TextEdit, Mail, TextMate, Terminal, Console, or similar, one can copy the selected text to the find clipboard, switch application and use ⌘G to find that string.
	</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.warmroom.com/yesterdays/2007/07/25/find-clipboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Labels in iTerm Tabs</title>
		<link>http://www.warmroom.com/yesterdays/2006/04/29/labels-in-iterm-tabs/</link>
		<comments>http://www.warmroom.com/yesterdays/2006/04/29/labels-in-iterm-tabs/#comments</comments>
		<pubDate>Sun, 30 Apr 2006 06:57:29 +0000</pubDate>
		<dc:creator>Ray Baxter</dc:creator>
				<category><![CDATA[Macintosh]]></category>

		<guid isPermaLink="false">http://www.warmroom.com/wordpress/?p=160</guid>
		<description><![CDATA[On the Mac, I use iTerm, an open source project, as my Terminal client. I don&#8217;t have any strong objection to Terminal, I haven&#8217;t really used it enough to tell. iTerm has tabs, I installed it the day I got my Powerbook, and customized to my needs. It has keyboard shortcuts to open terminals on [...]]]></description>
			<content:encoded><![CDATA[<p>On the Mac, I use <a href="http://sourceforge.net/projects/iterm/">iTerm</a>, an open source project, as my Terminal client. I don&#8217;t have any strong objection to Terminal, I haven&#8217;t really used it enough to tell. iTerm has tabs, I installed it the day I got my Powerbook, and customized to my needs. It has keyboard shortcuts to open terminals on each of the hosts I care about. A good useful tool.</p>
<p>One small annoyance is the labelling of the tabs. By default they are labelled with the name of the host they were opened to. This causes two problems, 1) I can have five tabs open to the same host, so I have to remember which is which and 2) I can connect to a connect to a second host and the tab still shows the original host.</p>
<p>On a whim (I had five tabs labelled &#8220;localhost&#8221;) I decided to check if there were a new version <span id="more-160"></span>available that had labelled tabs. There was a newer version, and while there, I found a hint about setting the tabs if your shell was zsh and a <a href="http://chemistry.ucsc.edu/%7Ewgscott/xtal/iterm_tab_customization.html">link</a> to a page of wgscott&#8217;s with similar methods for both zsh and tcsh.</p>
<p>Both those methods involved creating a function that was called whenever the directory was changed. They both contained strings of escape characters that were echoed on each chdir and the effect was to change the text on the tabs.</p>
<p>A simpler solution, that I think would also work in tcsh (I have no zsh experience) is to stuff the escape sequences into the PROMPT string. I did that in bash, adding the following to my .bashrc file.</p>
<pre><code> export PS1="^[]1;h:W^G$PS1"</code></pre>
<p>where the bits inside the quotes are &#8220;ESC&#8221; typed with V[ for the first character and "^G" typed with VG. The \h and \W are bashisms specially created for the prompt strings and and the other characters are themselves.</p>
<p>In bash prompts, \h is the hostname, without the domain, and \W is the name of the current directory. There are many other options, see <code>man bash</code>. The environment variable $PS1 is the main prompts. Every time the command shell returns to the prompt, this string is echoed.</p>
<p>Works perfectly. I made this change, synced it to the hosts I use regularly, and no matter how I get there, the tabs labels tell me where I am in that tab.</p>
<p>Technorati Tags: <a rel="tag" href="http://technorati.com/tag/cli">cli</a>, <a rel="tag" href="http://technorati.com/tag/iterm">iterm</a>, <a rel="tag" href="http://technorati.com/tag/promptstrings">promptstrings</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.warmroom.com/yesterdays/2006/04/29/labels-in-iterm-tabs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Swapping Batteries in Powerbooks</title>
		<link>http://www.warmroom.com/yesterdays/2005/10/03/swapping-batteries-in-powerbooks/</link>
		<comments>http://www.warmroom.com/yesterdays/2005/10/03/swapping-batteries-in-powerbooks/#comments</comments>
		<pubDate>Tue, 04 Oct 2005 05:14:25 +0000</pubDate>
		<dc:creator>Ray Baxter</dc:creator>
				<category><![CDATA[Macintosh]]></category>

		<guid isPermaLink="false">http://www.warmroom.com/wordpress/?p=139</guid>
		<description><![CDATA[Matthew Russell has some ideas for extending the battery life of your Apple Powerbook. Since I just switched back to Macs and I was having some problems with my previous laptop&#8217;s battery life, this was an issue of keen interest. I knew about all of Matthew&#8217;s common suggestions, turn off Bluetooth (actually I had completely [...]]]></description>
			<content:encoded><![CDATA[<p>Matthew Russell has some <a href="http://www.oreillynet.com/pub/wlg/7956">ideas</a> for extending the battery life of your Apple Powerbook.  Since I just switched back to Macs and I was having some problems with my previous laptop&#8217;s battery life, this was an issue of keen interest. I knew about all of Matthew&#8217;s common suggestions, turn off Bluetooth (actually I had completely drained the power of my battery by carrying the laptop around with a Bluetooth mouse while the computer was set to &#8220;Allow Bluetooth devices to wake this computer&#8221;), dim screen and rip DVDs to disk.</p>
<p>His point was about ripping DVDs, but the commentors are most interested in swapping the battery without powering down (or plugging in.)</p>
<blockquote><p>Better yet, I don&#8217;t even have to shutdown and reboot to swap out the battery. I can just close the screen, do the switcheroo , and open back up the screen. I didn&#8217;t even know that hot-swapping the battery was possible until my first battery got so low one time that my PowerBook wouldn&#8217;t come out of sleep. I was forced to change out the battery without shutting down (which I had been doing for well over a month by that time), but to my complete surprise, things came right back up and nothing missed a beat. I wonder if there&#8217;s anyone else out there that still doesn&#8217;t know this is possible? Was/am I the only one?</p></blockquote>
<p>(Closing the screen puts the Powerbook to sleep.)</p>
<p>There were some questions in the comments about this and whether it would work on iBooks.  jdodds says no for iBooks and points out that Apple <a href="http://docs.info.apple.com/article.html?artnum=106216 ">recommends</a> against it.</p>
<p>Sure enough. The title of the linked article is &#8220;Mac OS X, Portables: Batteries shouldn&#8217;t be changed when computer is sleeping.&#8221; The first paragraph:</p>
<blockquote><p>Attempting to change a battery while the some portable computers are asleep (and started up from Mac OS X) causes an NVRAM and/or Power Manager reset. Connect the AC power adapter before swapping the battery, or shut the computer down instead.</p></blockquote>
<p>Compare this to the &#8220;Powerbook G4 15-inch Users Guide.&#8221;</p>
<blockquote><p>If your battery runs low while you are working, you can put your PowerBook to sleep and replace the battery with a charged one. The internal backup battery provides enough power to maintain the contents of RAM for up to three minutes while you change the battery. </p></blockquote>
<blockquote><p>Note:  If you have installed additional memory in your PowerBook, the backup battery may provide power for less than three minutes. Also, changing batteries several times in a short period can shorten the length of time the backup battery can maintain data if the backup battery hasnât had time to fully recharge. </p></blockquote>
<p>According to the article at Apple, the article applies to:</p>
<ul>
<li>PowerBook G3 Series</li>
<li>PowerBook G3 Series (Bronze Keyboard)</li>
<li>PowerBook (FireWire)</li>
<li>PowerBook G4</li>
<li>PowerBook G4 (12-inch) (all)</li>
<li>iBook (all)</li>
</ul>
<p>There seems to be a bug in this list since the G4 (12-inch)(all) would seem to be included in the G4 line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.warmroom.com/yesterdays/2005/10/03/swapping-batteries-in-powerbooks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

