<?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>i, quaid &#187; Tip and Tricks</title>
	<atom:link href="http://iquaid.org/category/tip-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://iquaid.org</link>
	<description>... the four laws of humanity ...</description>
	<lastBuildDate>Tue, 31 Jan 2012 19:14:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>A simple offlineimap tip with some mutt goodness</title>
		<link>http://iquaid.org/2011/01/12/a-simple-offlineimap-tip-with-some-mutt-goodness/</link>
		<comments>http://iquaid.org/2011/01/12/a-simple-offlineimap-tip-with-some-mutt-goodness/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 19:05:23 +0000</pubDate>
		<dc:creator>quaid</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Online life]]></category>
		<category><![CDATA[Tip and Tricks]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[inbo-zero]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[offlineimap]]></category>
		<category><![CDATA[procrastination]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://iquaid.org/?p=1754</guid>
		<description><![CDATA[A few years back I switched away from a GUI email client for work and back to &#8216;mutt&#8217;.  While &#8216;mutt&#8217; can handle doing an IMAP connection directly, I wanted to gain from the speed and portability of having fully local folders.  (This is more feasible, I think, since encrypting hard drives became so much easier; [...]]]></description>
			<content:encoded><![CDATA[<p>A few years back I switched away from a GUI email client for work and back to &#8216;mutt&#8217;.  While &#8216;mutt&#8217; can handle doing an IMAP connection directly, I wanted to gain from the speed and portability of having fully local folders.  (This is more feasible, I think, since encrypting hard drives became so much easier; now I can carry around my work email safely.)  The tool my people have  been using for synchronizing IMAP folders is <a href="https://github.com/jgoerzen/offlineimap/wiki">&#8216;offlineimap&#8217;</a>.</p>
<p>After using this combination for a while (running &#8216;offlineimap&#8217; in &#8216;screen&#8217;, with &#8216;mutt&#8217; running in one or more &#8216;screen&#8217; windows), I ran in to some problems with &#8216;offlineimap&#8217; when it was run continuously.  I could set the sync interval in the configuration just fine, but inevitably a few things happened.  It would be syncing, using CPU, memory, and bandwidth when I had other ideas for how to use those resources.  It would be in between a scheduled sync when I wanted to check for an email just sent, causing me to quit and restart it.  It would occasionally suck up all my memory, requiring a kill and restart (that was probably an older, buggier version?)  It also didn&#8217;t like it if I suspended the laptop or lost network during a sync, which seemed to be the main trigger for the memory-sucking-error.</p>
<p>Finally, <a href="http://paul.frields.org/">Paul</a> suggested to me that I try just running it manually when I wanted to get my email.  This was part of a larger discussion on how to not let email run your life.  If you know the email is constantly being refreshed, it&#8217;s easy to &#8220;just go see if there is something new&#8221;, thereby procrastinating on what you are really supposed to be doing.  By making mail poll/sync a manual task, I could eliminate most of the first problems, and fresh messages were always just moments away.  (If I&#8217;m anxious to get an email NOW, I&#8217;m usually interested in the main inbox, since my email is filtered server-side.)</p>
<p>All that leads me to <a href="http://quaid.fedorapeople.org/configs/imap">this very simple &#8216;bash&#8217; script</a> that runs &#8216;offlineimap&#8217; one time, and before exiting puts a nice visible timestamp on the console for me.  I find this really helpful to let me know when I last ran &#8216;offlineimap&#8217;.  Sometimes it shows me it&#8217;s only been twenty minutes, and my checking email is a sign to me that I am procrastinating.  Other times it shows me that I haven&#8217;t checked since last night!</p>
<blockquote>
<pre>#!/bin/bash
/usr/bin/offlineimap -o;
echo "****************************"
echo "vvvvvvvvvvvvvvvvvvvvvvvvvvvv"
/bin/date
echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
echo "****************************"
</pre>
</blockquote>
<p>That is such a simple script that I don&#8217;t think it warrants copyright, but just in case I am wrong, consider it under the GPL v3+ (yes, I trust the FSF with improvements to the GPL more than I trust that GPL v3 is so perfect that it never needs improving.)</p>
<p>For &#8216;mutt&#8217; goodness, check out <a href="http://pfrields.fedorapeople.org/configs/">Paul&#8217;s configuration directory</a> for his &#8216;mutt&#8217; wrapper script (which I use), as well as his &#8216;mutt&#8217; and &#8216;offlineimap&#8217; configuration files (which I also modified to use.)  You might notice that Paul has contributed a ton more to my &#8216;offlineimap&#8217;/'mutt&#8217; experience than the reverse, but I try. <img src='http://iquaid.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://iquaid.org/2011/01/12/a-simple-offlineimap-tip-with-some-mutt-goodness/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install Moblin on Fedora 12</title>
		<link>http://iquaid.org/2009/11/24/how-to-install-moblin-on-fedora-12/</link>
		<comments>http://iquaid.org/2009/11/24/how-to-install-moblin-on-fedora-12/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 21:14:31 +0000</pubDate>
		<dc:creator>quaid</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tip and Tricks]]></category>

		<guid isPermaLink="false">http://iquaid.org/?p=913</guid>
		<description><![CDATA[Moblin is a feature of Fedora 12 as an easy to install desktop environment. The below how-to information is copied directly from http://fedoraproject.org/wiki/How_to_install_Moblin, and is used here thanks to the CC BY SA 3.0 Unported it is licensed under: Moblin is a lightweight Linux desktop environment especially suited for small form computers (netbooks et al). [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://moblin.org">Moblin</a> is a <a href="https://fedoraproject.org/wiki/Features/Moblin">feature of Fedora 12</a> as  an easy to install desktop environment.</p>
<p>The below how-to information is copied directly from <a href="http://fedoraproject.org/wiki/How_to_install_Moblin">http://fedoraproject.org/wiki/How_to_install_Moblin</a>, and is used here thanks to the <a href="http://creativecommons.org/licenses/by-sa/3.0/">CC BY SA 3.0 Unported</a> it is licensed under:</p>
<blockquote><p>Moblin is a lightweight Linux desktop environment especially suited for small form computers (netbooks et al).</p>
<p>Installation is straightforward.</p>
<h2>Using the command line</h2>
<ol>
<li>Open a terminal (shell).</li>
<li>Install the Moblin group: <code>su -c 'yum install @moblin-desktop'</code></li>
</ol>
<h2>Using the graphical package manager</h2>
<ol>
<li>Go to <em>System &gt; Administration &gt; Add/Remove Software.</em>
<ul>
<li>Note: the name of the <em>Add/Remove Software</em> application is <em>PackageKit</em>.</li>
</ul>
</li>
<li>In the left side pane choose <em>Moblin desktop</em>.</li>
<li>Click <em>Apply</em> to install the package set.</li>
</ol>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://iquaid.org/2009/11/24/how-to-install-moblin-on-fedora-12/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to become a docs contributor &#8211; video</title>
		<link>http://iquaid.org/2009/11/13/how-to-become-a-docs-contributor-video/</link>
		<comments>http://iquaid.org/2009/11/13/how-to-become-a-docs-contributor-video/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 23:19:44 +0000</pubDate>
		<dc:creator>quaid</dc:creator>
				<category><![CDATA[Classroom]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Tip and Tricks]]></category>
		<category><![CDATA[TOS]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://iquaid.org/?p=890</guid>
		<description><![CDATA[This Wednesday I was helping Mel with the POSSE class in Singapore.  Basically, I covered what open source content in Fedora does (technical docs, process docs, community self-knowledge docs), the common tools and styles we try to propagate, and then walked the class through how to contribute to the release notes.  The exercise was focused [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/LJXyeIS-eIU&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x006699&amp;color2=0x54abd6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/LJXyeIS-eIU&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x006699&amp;color2=0x54abd6" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>This Wednesday I was helping <a href="http://blog.melchua.com">Mel</a> with the <a href="http://teachingopensource.org/index.php/POSSE">POSSE</a> class in <a href="http://teachingopensource.org/index.php/POSSE_APAC">Singapore</a>.  Basically, <a href="http://blog.melchua.com/2009/11/11/how-to-become-a-release-notes-editor/">I covered</a> what open source content in Fedora does (technical docs, process docs, community self-knowledge docs), the common tools and styles we try to propagate, and then walked the class through how to contribute to the release notes.  The exercise was focused on editing to the wiki.  I explained the rest of the process in the abstract <a href="http://meetbot.fedoraproject.org/teachingopensource-posse/2009-11-12/teachingopensource-posse.2009-11-12-00.25.html">with lots of links</a> (scroll down for the sections &#8220;4. Documentation&#8221; and &#8220;5. Activity: become a release notes writer&#8221;.)</p>
<p>The process was made easier when one of the teacher-students noticed that a desktop environment he enjoys, LXDE, didn&#8217;t have any noted changes in the <a href="https://fedoraproject.org/wiki/Documentation_Desktop_Beat">release notes source on the wiki</a>.  Suddenly there was a clear reason to edit the wiki derived from their personal interests beyond just learning.  This is what we call the, &#8220;Ah, ha!&#8221; moment.  Now they knew i) why to bother contributing to the release notes, and ii) how easy it is.</p>
<p><a href="http://blog.melchua.com/2009/11/10/new-bloggers-adopt-a-lecturer/">The class</a> were all instructors in polytechnical or business schools in APAC &#8211; Singapore, Shangai, and so forth. Ideally, they take back the &#8220;how to be an active contributor in an open source community&#8221; training to their classes.  Even better, if they do classes where part of the student work is being active in FLOSS communities.</p>
<p>You may find <a href="http://meetbot.fedoraproject.org/teachingopensource-posse/2009-11-12/teachingopensource-posse.2009-11-12-00.25.log.html#l-337">the IRC log</a> interesting, but Mel did a good job capturing the basics in that screencast.  It is useful for showing to anyone who drops by #fedora-docs.  We&#8217;ll try to get an OGG version to grab from somewhere so we can have it in the /topic on #fedora-docs. <img src='http://iquaid.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://iquaid.org/2009/11/13/how-to-become-a-docs-contributor-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated technique for seeing git and directory status in bash prompt</title>
		<link>http://iquaid.org/2009/11/12/updated-technique-for-seeing-git-and-directory-status-in-bash-prompt/</link>
		<comments>http://iquaid.org/2009/11/12/updated-technique-for-seeing-git-and-directory-status-in-bash-prompt/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 02:50:43 +0000</pubDate>
		<dc:creator>quaid</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tip and Tricks]]></category>

		<guid isPermaLink="false">http://iquaid.org/?p=882</guid>
		<description><![CDATA[Just working with a git directory and noticed that whatever trick I was using to get the current git branch visible from my $PS1 variable in bash &#8230; stopped working.  In discussing if a man page for git(1) was incorrect on #fedora-devel, tmz pointed out to me why it worked that way (short version: refer [...]]]></description>
			<content:encoded><![CDATA[<p>Just working with a git directory and noticed that whatever trick I was using to get the current git branch visible from my $PS1 variable in bash &#8230; stopped working.  In discussing if a man page for git(1) was incorrect on #fedora-devel, <a href="http://fedoraproject.org/wiki/User:Tmz">tmz</a> pointed out to me why it worked that way (short version: refer to the individual git-foo(1) man pages for actual examples, don&#8217;t rely upon the git(1) page for how the commands work on the command line.)  He also suggested an alternative that is inline with what we do now in git 1.6.  Here are the steps I followed.</p>
<ol>
<li>Rip out whatever logic you have in ~/.bashrc for displaying the git branch at your command prompt.</li>
<li>Copy the script supplied by the git package to where you can make it an executable, such as ~/bin :
<ul>
<li>cp /etc/bash_completion.d/git ~/bin/git-completion.sh</li>
</ul>
</li>
<li>Make the script executable :
<ul>
<li>chmod 700 ~/bin/git-completion.sh</li>
</ul>
</li>
<li>Add these two lines to ~/.bashrc :
<ul>
<li>source ~/bin/git-completion.sh</li>
<li>export PS1=&#8221;[\u@\h \W"'$(__git_ps1 " (%s)")'"]\$ &#8220;</li>
</ul>
</li>
<li>Reload your bashrc file :
<ul>
<li>. ~/bashrc</li>
</ul>
</li>
</ol>
<p>Enjoy having a peek at where you are in your git directory:</p>
<pre style="padding-left: 30px;">[kwade@calliope lookatgit (debug)]$ git branch
* debug
  help
  master
[kwade@calliope lookatgit (debug)]$</pre>
]]></content:encoded>
			<wfw:commentRss>http://iquaid.org/2009/11/12/updated-technique-for-seeing-git-and-directory-status-in-bash-prompt/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Small things that matter more than you realize</title>
		<link>http://iquaid.org/2009/01/10/small-things-that-matter-more-than-you-realize/</link>
		<comments>http://iquaid.org/2009/01/10/small-things-that-matter-more-than-you-realize/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 15:25:48 +0000</pubDate>
		<dc:creator>quaid</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Tip and Tricks]]></category>
		<category><![CDATA[fudconf11]]></category>

		<guid isPermaLink="false">http://iquaid.org/?p=259</guid>
		<description><![CDATA[This morning the first smile I had was when I looked back over my shoulder at the Boston Cambridge Marriott to see not only my own Fedora window sign, but the signs of many others.  (There is a small cluster of folks on the 19th floor.) The signs are a small brilliancy that came from [...]]]></description>
			<content:encoded><![CDATA[<p>This morning the first smile I had was when I looked back over my shoulder at the Boston Cambridge Marriott to see not only my own Fedora window sign, but the signs of many others.  (There is a small cluster of folks on the 19th floor.)</p>
<p>The signs are a small brilliancy that came from (I think) the mind of <a href="http://sexysexypenguins.com/">Clint Savage (herlo)</a>.  It&#8217;s a good example of a smaller thing that was relatively easy to execute making a memorable conference experience.</p>
<p>As I walked up to the MIT building with <a href="http://blog.fedora-fr.org/smootherfrogz">Xavier</a>, we spotted the same signs in the glass stairwell, clearly illuminating the presence of FUDCon</p>
<p>Standing out in a window, the signs are 28 cm (11 in) by 43 cm (17 in), with a blue Fedora logo centered.  Clint and whoever helped him applied small pieces of clear double-sided tape to the four corners of the face of the sign.  You apply it facing outward to your hotel window.  Where it really helps is when you and a group of people are sharing a hotel.  We have a large number at this same hotel, I don&#8217;t know how many but more than 30 I can reckon from what I&#8217;ve seen.  The work was all done at a name-brand full-service print-shop.</p>
<p>I&#8217;m not sure if there is a page of similar tricks for Ambassadors.  Sadly, the Ambassador wiki pages are many with categorization and old-style page naming working against it.  At least, my search for &#8216;ambassador tricks&#8217; turned up nothing. (Hoping some folks who want to learn how to do that effectively come to the wiki talk today.)</p>
<p>So I created these pages, and hope someone else is sparked by Clint&#8217;s idea to make a similar impact at one of your events.  Don&#8217;t forget to share <em>and</em> document your experience:</p>
<p><a href="https://fedoraproject.org/wiki/Category:Ambassador_tips_and_tricks">https://fedoraproject.org/wiki/Tricks_for_Ambassadors_from_Ambassadors</a></p>
<p><a href="https://fedoraproject.org/wiki/Category:Ambassador_tips_and_tricks">https://fedoraproject.org/wiki/Category:Ambassador_tips_and_tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://iquaid.org/2009/01/10/small-things-that-matter-more-than-you-realize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>praise git</title>
		<link>http://iquaid.org/2008/11/07/praise-git/</link>
		<comments>http://iquaid.org/2008/11/07/praise-git/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 13:07:04 +0000</pubDate>
		<dc:creator>quaid</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Tip and Tricks]]></category>

		<guid isPermaLink="false">http://iquaid.org/?p=222</guid>
		<description><![CDATA[We&#8217;ve been working with git as a distributed version control system (DVCS) for Fedora Documentation this release. All of these documents (Installation Guide, Release Note, and various README files) are authored in DocBook XML, so they work great within a VCS. Sure, it&#8217;s cool to work entirely offline, do granular commits, and merge perfectly with [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been working with git as a distributed version control system (DVCS) for Fedora Documentation this release.  All of these documents (Installation Guide, Release Note, and various README files) are authored in DocBook XML, so they work great within a VCS.</p>
<p>Sure, it&#8217;s cool to work entirely offline, do granular commits, and merge perfectly with the codebase when I&#8217;ve reconnected later.  That&#8217;s all good.  What has been a real gift from the gods the last 48 hours is how fast it is.  Especially the operations via the network; I see very little bandwidth used and it goes by very quickly.  No more &#8216;cvs ci&#8217; and wait.</p>
<p>Another great aspect is how a DVCS such as git supports a distributed team working in real and non-real time. Unlike with old VCS, it is much easier to work divergently and still have it merge together.  For example, after I do a number of changes, I make granular commits, which occur only in my local repo (clone.)  I can do a commit per file, so I have a specific changelog tied to the actions, and it is easier to undo or manipulate from that commit, which has it&#8217;s own UUID.  Then I only have to run &#8216;git-pull &#8211;rebase&#8217;, which pulls down any changes pushed by other collaborators, updates my local repo, and replays my changes on top of this new copy of HEAD.  Then I can &#8216;git push&#8217; without any conflicts arising.</p>
<p>In a VCS, if you find yourself out of sync with the latest from HEAD, you either have to sync and deal with potentially spurious merge errors, or do a manual version of what git does.  How many times have you copied your changes from out of a Subversion or CVS directory locally, reverted back to HEAD from the central repository, then manually reapplied your changes?</p>
<p>If anyone is making them &#8230; I want a t-shirt that says &#8220;praise git&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://iquaid.org/2008/11/07/praise-git/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Partition /dev/sd* namespace FAIL</title>
		<link>http://iquaid.org/2008/05/08/partition-devsd-namespace-fail/</link>
		<comments>http://iquaid.org/2008/05/08/partition-devsd-namespace-fail/#comments</comments>
		<pubDate>Thu, 08 May 2008 10:03:18 +0000</pubDate>
		<dc:creator>quaid</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tip and Tricks]]></category>

		<guid isPermaLink="false">http://iquaid.org/?p=77</guid>
		<description><![CDATA[Just as I zipped my backpack closed to head home from JavaOne, I overheard a conversation. One of the JBoss booth staff had been trying to find something on a media for an attendee. I inquired, and it turned out they were looking for Fedora media; one of the fellows had a laptop to resurrect. [...]]]></description>
			<content:encoded><![CDATA[<p>Just as I zipped my backpack closed to head home from JavaOne, I overheard a conversation.  One of the <a href="http://www.jboss.org/files/events/javaone2008events.htm" target="_blank">JBoss booth</a> staff had been trying to find something on a media for an attendee.  I inquired, and it turned out they were looking for Fedora media; one of the fellows had a laptop to resurrect.</p>
<p>Naturally I said, &#8220;I can take care of that,&#8221; and I woke my machine from sleep while getting out a USB flash drive.  Unfortunately, in packing, the extended battery had moved a bit and the machine was powered down.  I booted, where I faced the usual sight of Compiz (aka &#8220;Desktop Effects&#8221;) not started, except this time it won&#8217;t start manually.   Not wanting to waste their time (or mine), I switched to a virtual console.  I could get them the <a href="http://fedoraproject.org/get-prerelease" target="_blank">live USB of Fedora 9 Preview</a> in a few seconds that way, too, straight from memory without referring to the <a href="http://fedoraproject.org/wiki/FedoraLiveCD/USBHowTo" target="_blank">Fedora Live USB How To</a>.</p>
<p>Plugged in the USB drive and typed:</p>
<pre>sudo livecd-iso-to-disk /home/iso/Fedora-9-Preview-i686-Live.iso /dev/sda1</pre>
<p>The copy started, and we commented on how fast it was going.  But after it reached a small percentage, it complained the disk was full.  That seemed odd, but I figured I would reboot and see if it worked; maybe the media was bad?</p>
<p>OK, some of you have figured it out already.  Can you guess what happened when I rebooted?</p>
<p>I got told &#8220;No operating system.&#8221;  Hmm, guess the live USB didn&#8217;t take, right?  No, reboot again and see what happened.  No operating system found for the laptop itself.</p>
<p>Oh!  The USB key first partition was <code>/dev/sdb1</code>.  My laptop&#8217;s hard drive <code>/boot</code> partition, that was the one on <code>/dev/sda1</code>.  That was the one I filled up.  At the same time, the MBR must have been overwritten, so GRUB wouldn&#8217;t boot.</p>
<p>Naturally, I had no rescue media on me and couldn&#8217;t recover quickly and get these gentlemen on their way.  I had to send them off disappointed, and myself home, speeding down <a href="http://maps.google.com/maps?ie=UTF8&amp;hl=en&amp;ll=37.7116,-122.39906&amp;spn=0.296046,0.641327&amp;t=h&amp;z=11" target="_blank">the peninsula</a>, with a thrashed MBR.</p>
<p>Lesson?  Well, sure, be careful.  But we are telling people it is so easy to make these Live USB keys, yet &#8230; if they get one letter incorrect in the wrong direction, they hose their system and ability to recover easily when they do reboot. It&#8217;s a hidden problem, too; it could be weeks until they reboot and have no recollection of the chain of events.</p>
<p>Not sure where to focus for a fix. Is it in using the <code>sd*</code> namespace? Having all media be in such a similar path is a bit scary, since some media is treated destructively (CD and DVD writables, flash media) where others are not.</p>
<p>We certainly need to educate people who are going to be making these drives to very carefully check what the device path is for their mounted media before proceeding. We don&#8217;t typically direct normal users to do things so close to their <code>/boot</code>, or, well, any other partition. The fact that this happened to me, a fairly experienced Linux sysadmin, could either be a clear case of PEBCAK and moving too fast, or it could be a sign of warning about spreading these tools to people.</p>
<p>Perhaps I should make a feature request of livecd-tools to do a check that the partition about to be written to doesn&#8217;t happen to have a system label, such as <code>/boot</code> or <code>/home</code>. <img src='http://iquaid.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://iquaid.org/2008/05/08/partition-devsd-namespace-fail/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Running fsck on a LUKS encrypted partition in LVM</title>
		<link>http://iquaid.org/2008/03/04/running-fsck-on-a-luks-encrypted-partition-in-lvm/</link>
		<comments>http://iquaid.org/2008/03/04/running-fsck-on-a-luks-encrypted-partition-in-lvm/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 16:16:00 +0000</pubDate>
		<dc:creator>quaid</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Tip and Tricks]]></category>

		<guid isPermaLink="false">http://iquaid.org/2008/03/04/running-fsck-on-a-luks-encrypted-partition-in-lvm/</guid>
		<description><![CDATA[Coming back from a reboot yesterday afternoon, I ran into some bad attribute blocks that fsck couldn&#8217;t handle in the boot space and shelled me out to take care of it. Since I was not in the office or staying there for much longer, I powered down to take care of when I got home. [...]]]></description>
			<content:encoded><![CDATA[<p>Coming back from a reboot yesterday afternoon, I ran into some bad attribute blocks that fsck couldn&#8217;t handle in the boot space and shelled me out to take care of it.  Since I was not in the office or staying there for much longer, I powered down to take care of when I got home.</p>
<p>Doing this fsck was a bit needlessly complicated, especially as it was not at all like what I&#8217;ve done before nor what the boot shell recommended, which was to run fsck without -a or -p.   I couldn&#8217;t find enough pieces to figure it out from Google. I eventually got pretty far but was stuck in something weird that Red Hat&#8217;s helpdesk helped me figure out.  Note that world &#8212; Red Hat has a helpdesk that actually <strong>helps people</strong>.</p>
<p>Skipping all the false pathways I took, here are the steps that worked:</p>
<ol>
<li>You need a better environment than the Fedora 8 rescue CD.  The rescue CD does not have the kernel modules to handle the LUKS decryption.  I used an F8 live CD.  (This sounds like it&#8217;s fixed in the rescue mode currently in rawhide.)</li>
<li>Decrypt the partition at the command line, for example: <code>cryptsetup openLuks /dev/mapper/ VolGroup00-LogVol02 home</code>
<ul>
<li>Note that you have given the name of &#8216;home&#8217; to the decrypted partition; a name is required by cryptsetup</li>
<li>The unlocked volume is now <code>/dev/mapper/home</code></li>
</ul>
</li>
<li>Run fsck on the unlocked volume: <code>fsck.ext3 /dev/mapper/home</code></li>
</ol>
<p>Ah, three simple steps &#8230; that took more than 3 hours to figure out.  But all is good now. <img src='http://iquaid.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://iquaid.org/2008/03/04/running-fsck-on-a-luks-encrypted-partition-in-lvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Counting words in Emacs</title>
		<link>http://iquaid.org/2008/02/08/counting-words-in-emacs/</link>
		<comments>http://iquaid.org/2008/02/08/counting-words-in-emacs/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 14:50:27 +0000</pubDate>
		<dc:creator>quaid</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Tip and Tricks]]></category>

		<guid isPermaLink="false">http://iquaid.org/2008/02/08/counting-words-in-emacs/</guid>
		<description><![CDATA[It&#8217;s long hassled me that Emacs doesn&#8217;t support word count by default. This morning I got tired of using wc to count words and did a little search via Google. Right at the top of the list is DJ Delorie&#8217;s &#8220;Programming in Emacs Lisp&#8221;. This page teaches how to create this function, with a bug-free [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s long hassled me that Emacs doesn&#8217;t support word count by default.  This morning I got tired of using <code>wc</code> to count words and did a little search via <a href="http://www.google.com/search?q=how+to+count+words+with+emacs">Google</a>.  Right at the top of the list is DJ Delorie&#8217;s <a href="http://www.delorie.com/gnu/docs/emacs-lisp-intro">&#8220;Programming in Emacs Lisp&#8221;</a>.  <a href="http://www.delorie.com/gnu/docs/emacs-lisp-intro/emacs-lisp-intro_207.html">This page</a> teaches how to create this function, with a <a href="http://www.delorie.com/gnu/docs/emacs-lisp-intro/emacs-lisp-intro_208.html">bug-free complete code chunk</a> for use in your <code>~/.emacs</code> file:</p>
<pre>
;;; First version; has bugs!
(defun count-words-region (beginning end)
  "Print number of words in the region.
Words are defined as at least one word-constituent
character followed by at least one character that
is not a word-constituent.  The buffer's syntax
table determines which characters these are."
  (interactive "r")
  (message "Counting words in region ... ")

;;; 1. Set up appropriate conditions.
  (save-excursion
    (goto-char beginning)
    (let ((count 0))

;;; 2. Run the while loop.
      (while (&lt; (point) end)
        (re-search-forward "\\w+\\W*")
        (setq count (1+ count)))

;;; 3. Send a message to the user.
      (cond ((zerop count)
             (message
              "The region does NOT have any words."))
            ((= 1 count)
             (message
              "The region has 1 word."))
            (t
             (message
              "The region has %d words." count))))))</pre>
<p>Do a quick <code>byte-compile-file</code> to make your <code>~/.emacs.elc</code> file, restart Emacs, you are ready to count.</p>
]]></content:encoded>
			<wfw:commentRss>http://iquaid.org/2008/02/08/counting-words-in-emacs/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

