<?xml version="1.0" ?>

<kc>


<headquote>
<a href="http://www.slug.org.au/"><img src="../ktimages/slug.gif" height="105"
width="150" border="0" alt="SLUG Logo"/><br />Check out the Sydney Linux User
Group</a>!
</headquote>


<title>SLUG Pearls</title>
<author contact="mailto:jdub@aphid.net">Jeff Waugh</author>
<issue num="5" date="02 Jul 2000 00:00:00 -0800" />


<intro>

<p>Another KC SLUG Pearls ripe for the pickings! <b>- Jeff</b></p>

<h3>Announcements &amp; Information</h3>

<ul>
	<li><b><a
	href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01255.html">FAQs
	about Fax</a></b>
	<p>David Kempe posted this great HOWTO, answering some of the previous
	week's questions about using Linux to receive and send faxes.</p></li>

	<li><b><a
	href="http://www.progsoc.uts.edu.au/lists/slug/2000/July/msg00001.html">NFS
	Talk Report</a></b>
	<p>Jamie Honan posted this report of Neil Brown's talk at our Friday
	meeting.</p></li>
</ul>

</intro>

<section
  title="Slug Efficiency Test #57"
  subject="recursive %20 to space"
  archive="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01112.html"
  posts="7"
  startdate="25 Jun 2000 00:00:00 -0800"
  enddate="26 Jun 2000 00:00:00 -0800">

<p>Starting yet another round of "How Clean Is My Shell Script", Alex S
wondered that, after ftp'ing from a Windows box, <quote who="Alex S">if
there is an easy way /script to make all the names back to normal, ie my
folder instead of my%20folder</quote>. Some very "unleet" recommendations
for more useful ways of copying were put forward, but these soon gave way to
the good stuff!</p>

<p>James Wilkinson offered, <quote who="James Wilkinson"><tt>find /dosdir
-name '*%20*' -exec mv {} `echo {} | sed 's/\%20/ /'` \;</tt></quote> and
one which would process a single directory at a time. He commented:</p>

<quote who="James Wilkinson">
<p>I like the first method, but i'm sure someone can find a quicker/shorter
command (/me thows down the gauntlet ;)</p>
</quote>

<p>Rathnor gave a multiline script, then tried putting it all on one line,
<quote who="">for a one line shell command (Hi Gus)</quote>, tipping
his hat to one of our resident shell-meisters, Gus Lees.
<editorialize>Surely this technique should be grounds for instant
diqualification!</editorialize></p>

<p>Of course, Gus did give some solutions. The first, after a quick
correction:</p>

<quote who="Angus Lees">

<p><tt>find /dosdir -print |sed 'h;s/%20/ /g;s/%40/@/g;t c;d;:c x;p;g'
|xargs -n2 mv</tt></p>

</quote>

<p>and his Perl solution (yes folks, <i>two</i> lines for clarity):</p>

<quote who="Angus Lees">

<p><tt>find /dosdir -print | \<br />
perl -ne 'chop;$a=$_;rename $a,$_ if s/%(\d\d)/chr hex $1/ge'</tt></p>

</quote>

</section>


<section
  title="Tools for Documentation"
  subject="Tools for documentation."
  archive="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01136.html"
  posts="29"
  startdate="26 Jun 2000 00:00:00 -0800"
  enddate="28 Jun 2000 00:00:00 -0800">

<mention>Jamie Honan</mention>

<p>Rodos set off some latent quibbles between users of TeX and DocBook with <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01136.html">this</a>
post, playing the two off each other to find a documentation standard that
suited him. His main requirement was <quote who="">something that is open,
and will not cause version problems in 10 years time (will Word 2010 read Word6
documents?)</quote>.</p>

<p>Jeff Waugh posted a <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01141.html">summary</a>
of DocBook's features and strengths, leaving us with:</p>

<quote who="Jeff Waugh">
<p>If you're writing technical documentation now, DocBook is the way to go.
Flamers, come prepared! Oh, and a quick haiku I posted to ldp:</p>

<p>SGML is<br />
confusing for some writers<br />
call it XML</p>
</quote>

<p>Along with a <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01153.html">rundown</a>
of LaTeX and noweb, Michael Lake posted a quick <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01163.html">rebuttal</a>,
quite rightly asking for more information from Rodos:</p>

<quote who="Michael Lake">
<p>So we need to find out what Rodos wants to document (then can we have a
DocBook/LaTeX flame war?).</p>
</quote>

<p>Rodos provided <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01175.html">further
information</a> about his own situation, also putting forward a different
scenario - the common problem of documenting Open Source software - just for
the challenge.</p>

<p>Again, Mike and Jeff's views differed wildly. Mike offered both LaTeX and
noweb (a literate programming tool) as solutions to both, explaining the
powers of noweb in a programming situation:</p>

<quote who="Michael Lake">
<p>In LaTeX you write the man pages and README (don't forget to include the
GNU copyleft file) and noweb will extract them as separate files for a
distribution with the code and HTML docs.</p>
</quote>

<p>He also gave a <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01245.html">comparison</a>
of the markup, showing much shorter LaTeX source for similar documents.</p>

<p>Interesting DocBook links that surfaced during the discussions included:
<ul>
	<li><a
	href="http://metalab.unc.edu/godoy/using-docbook/using-docbook.html">Using
	DocBook</a></li>
	<li><a href="http://www.conglomerate.net">The Conglomerate Editor</a></li>
	<li><a href="http://www.docbook.org/">DocBook.org</a></li>
	<li><a href="http://www.docbook.org/tdg/html">DocBook: The Definitive Guide</a></li>
</ul>
</p>

<p>Finally, Jamie Honan noted the importance of substance over style and
the need to concentrate on what you're writing, not its format.</p>

</section>


<section
  title="From Outlook to Netscape Mailboxes"
  subject="MS Outlook to Netscape mail conversion"
  archive="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01159.html"
  posts="21"
  startdate="26 Jun 2000 00:00:00 -0800"
  enddate="27 Jun 2000 00:00:00 -0800">

<mention></mention>
<mention>Jeffrey Borg</mention>
<mention>Graeme Merral</mention>

<p>Graeme Merrall, whilst using Linux as his primary OS, had heaps of old email
stuck in good old proprietary Outlook format and wondered if it was possible to
convert it all to Netscape compatible mailboxes (mbox format). This a great
hurdle when moving to another OS, and now that email is such an important part
of our computer use, it's a widespread problem.</p>

<p>Jeffrey Borg posted a popular solution to this, <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01165.html">using
an imap server</a> to make the transition.</p>

<p>There was a bit of random discussion about large mail files, and using
Maildirs with Pine</p>

</section>


<section
  title="Statisticians Should Be Shot"
  subject="Hi posters."
  archive="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01186.html"
  posts="18"
  startdate="26 Jun 2000 00:00:00 -0800"
  enddate="29 Jun 2000 00:00:00 -0800">

<mention>Michael Lake</mention>
<mention>Andrew Macks</mention>
<mention>Peter Samuel</mention>
<mention>Howard Lowndes</mention>
<mention>Charlie Brady</mention>
<mention>Rachel Polanskis</mention>
<mention>Ken Yap</mention>
<mention>Anthony Rumble</mention>
<mention>Terry Collins</mention>

<p>Thus spake Rodos:</p>

<quote who=""><p>I like meaningless stats, and was inspired by the size
of my SLUG archive and the top posters section of the SLUG Pearls.</p>

<p>So here it is, the top posters to SLUG based on where my archived goes
back to which is Thu, 16 Jul 1998 07:50:33 PDT</p>

<pre>Rank #MSG Name
---- ---- ------------------
   1 1392 Ken Yap
   2 1138 Terry Collins
   3  641 Charlie Brady
   4  605 DaZZa
   5  480 Howard Lowndes
   6  411 Anthony Rumble
   7  347 Rachel Polanskis
   8  299 Grant Parnell
   9  293 Michael Lake
  10  272 Peter Samuel</pre>
</quote>

<p>There was much rationalisation (for SLUGgers who felt they should have
been represented more) and celebration (for SLUGgers surprised at their
positions).</p>

<p>A couple of the less-couth committee members had a light-hearted public
flame, inspiring the idea of a Draconian SLUG Scoring System. Matt Allen
dreamt of a <quote who="Matt Allen">script that automatically judged an
email on Quality of Answer .....</quote> Rodos had a plan:</p>

<quote who="">
<p>Thats easy. Some huristics on the amount of new text added. How much of
the previous mail was cropped (people who don't crop by default write crap
IMHO &lt;grin&gt;), how many followups the message gets. Then some keyword
matches. If you use the words NT and sucks within 5 words you get more
points. If you use the words Linux and rules you get lots of points. If you
write a haiku then you get heaps of points! If you use the words RedHat and
desktop you loose points.</p>

<p>I will go away now.</p>
</quote>

<p>It was quickly suggested that both misspelling "lose" and correcting
spelling and grammar were ripe for losing points. As if the thread weren't
silly enough, Andrew Macks complained that changing his email name from "?"
to "Moo!" and finally to "Andrew Macks" affected his standing.</p>

<p>This being the <b>Sydney</b> Linux User Group, there's <i>always</i>
something in the water!</p>

</section>

<section
  title="Newbie Quickies"
  subject="Simple Newbie Questions"
  archive="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01196.html"
  posts="13"
  startdate="26 Jun 2000 00:00:00 -0800"
  enddate="27 Jun 2000 00:00:00 -0800">

<mention>Terry Collins</mention>

<p>Getting used to both the Linux way of doing things, and the Right Way of
doing things is often hard when you're starting out. There's also a few
simple differences between apllications. Matt had a whole bunch of
questions, so we'll summarise them, and go through the solutions one by
one:</p>

<ol>
	<li><b>How do I start system things at startup?</b>
		<p>Terry Collins suggested putting simple things at the end of
		"rc.local" for a RedHat system.</p>
	</li>
	<li><b>Where's the best place for my own utility script?</b>
		<p>Rodos recommended using /usr/local/bin.  <editorialize>One could
		always make a $HOME/bin directory and put it in your path. This is -
		to my knowledge - universally accepted.</editorialize></p> 
	</li>
	<li><b>How do you make a "script" a "program"?</b>
		<p>Rodos suggested making <quote who="">the first line
		<tt>#!/bin/sh</tt> or whatever shell you want to use to execute your
		script</quote></p>
	</li>
	<li><b>How do you open a link in a new window in Netscape?</b>
		<p>Just about everyone in the thread mentioned that the middle
		button did the same thing in Netscape, and that if Matt had a two
		button mouse, he could use the Emulate3Buttons feature.</p>
	</li>
</ol>

</section>


<section
  title="Slug Efficiency Test #58"
  subject="search and replace"
  archive="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01238.html"
  posts="27"
  startdate="28 Jun 2000 00:00:00 -0800"
  enddate="29 Jun 2000 00:00:00 -0800">

<mention></mention>

<p>Need a Smart Shell Script? Want it Short and Sweet? Ask SLUG! Fellow
SLUGger, Dean Hamstead did:</p>

<quote who="Dean Hamstead">
<p>Is there a command in vi or somesuch standard cli editor to search and
replace in my case change all ".org" entries to ".com" in the dns files  im
sure awk or seomthing can do it also....</p>

<p>many thanks to those who reply, may you rank highly in the top posters
next time</p>
</quote>

<p>The only unargued solution was (unsurprisingly) Herbert Xu's:</p>

<quote who="Herbert Xu">

<p><tt>sed 's/\.org\(\.\)\?\([[:blank:]]\|$\)/.com\1\2/g'</tt></p>

<p>I am assuming of course that you are doing this to DNS zone files.
Otherwise change [[:blank:]] to whatever separator that you're using.</p>

</quote>

<p>The thread wandered, delving into such subjects as <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01301.html">DNS
serial numbers</a>, <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01261.html">haiku</a>
(definitely a theme for the week), and <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01271.html">regexp
extensions</a>.</p>

</section>


<section
  title="Uptime Thread With Too Much Uptime"
  subject="uptimes"
  archive="http://www.progsoc.uts.edu.au/lists/slug/2000/June/msg01270.html"
  posts="52"
  startdate="29 Jun 2000 00:00:00 -0800"
  enddate="30 Jun 2000 00:00:00 -0800">

<mention></mention>
<mention>Rachel Polanskis</mention>
<mention>Terry Collins</mention>
<mention>Danny Yee</mention>

<p>While claiming that she didn't start the thread, but merely happened to
see that her print queue machine had a longer uptime than most of the others
noted in last week's <kcref subject="9:52am up 368 days, 17:37, 1 user, load
average: 1.02, 1.01, 1.00" startdate="20 Jun 2000 00:00:00 -0800">thread</kcref>, Rachel
Polanskis managed to incite a small riot. A bitter George Vieira:</p>

<quote who="George Vieira">
<p>Oh please, I can play this game too..</p>

<p><tt>[blah@blahblah]$ uptime<br />
 11:53am  up 723487254534 days, 14:44,  1 user,  load average: -3.00, -23.00,
 -400.00</tt></p>
</quote>

<p>Peter Samuel: <quote who="Peter Samuel">Wimp. That's only half the age of
the planet. Where are the figures for the first 2 billion years
:)</quote></p>

<p>George Vieira: <quote who="George Vieira">Linux didn't compile properly..
it didn't handle the E+94783 at the end of the counter...</quote></p>

<p>Alexander Else just had to top Rachel's time:</p>

<quote who="Alexander Else">
<p>I know of a bsdi2.0.1 box with an uptime of over 1670 days.  its services
have long since been decomissioned and it's sole responsibility is to
function in a staff morale capacity.</p>
</quote>

<p>Andrew Macks felt there was a pattern emerging, <quote who="Andrew
Macks">Alright alright, now which of you are running from a residential
location without power backup? :) Give my 260 days a break :P</quote></p>

<p>After hearing of Danny Yee's web server (reported in a <kcref
subject="Free Software and Social Justice &amp; IPv6"
startdate="27 May 2000 00:00:00 -0800">previous</kcref> SLUG Pearls), Terry Collins
threatened to pull down his server and install a 486SX20 with 8Mb RAM.</p>

</section>


<section
  title="You Can't Diss The 'Hat"
  subject="Red Hat slagging"
  archive="http://www.progsoc.uts.edu.au/lists/slug/2000/July/msg00003.html"
  posts="16"
  startdate="01 Jul 2000 00:00:00 -0800"
  enddate="02 Jul 2000 00:00:00 -0800">

<mention>Angus Lees</mention>
<mention>Simon Rumble</mention>
<mention>Danny Yee</mention>

<p>Jamie Honan posted his response to the now-trendy attitude that RedHat have
become too similar to Microsoft. He heartily disagreed, and laid his points out
as follows:</p>

<quote who="Jamie Honan">
<p>Red Hat is in no way comparable to MSoft.</p>

<p>Red Hat distributions may have some strange installation quirks, may have
bugs, (largely due to legacy problems, I suspect), the company may be well
funded and seemingly successful, but thats where the comparison ends.</p>

<p>Red Hat funds a lot of development for Linux kernel and applications, and
the results are all GPLed. Red Hat participates in standards processes.</p>

<p>Red Hat plays fair as a competitor. They may have problems with
distribution of their products and other glitches, but it beggars belief to
compare this to MS.</p>

<p>There may be individuals you don't like, but this is a different
thing.</p>

<p>Red Hats' involvement with Linux has been and will continue to be a
positive thing. I am glad Red Hat is a commercial success, this success is a
good thing for Linux.</p>

<p>There are other distributions with superior features, it is better for
everyone to let these facts speak for themselves.</p>

<p>Jamie</p>
</quote>

<p>There was agreement almost all around. David Sainty gave his <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/July/msg00017.html">reasoning</a>
and commented, <quote who="David Sainty">I'm sick of people saying Red Hat
is like Microsoft. Look at the facts.</quote> Kevin Waterson asked, <quote
who="Kevin Waterson">Where does it say in the GPL that thou shall not make a
wad of cash?</quote></p>

<p>Andrew Macks felt that RedHat don't put money back into the community
sensibly, rather <quote who="Andrew Macks">throwing [it] around at people
who don't really care about money or can not use it to benefit their
projects.</quote></p>

<p>Danny Yee and Kevin Waterson used Gnome and the Linux kernel as examples
of where RedHat certainly do give back to the community. Simon Rumble
mentioned that he, whilst not even using their distribution, used some
RedHat-developed applications.</p>

<p>Marty, who Jamie quoted at the beginning of his post without attribution,
responded to the reactions, saying, <quote who="">the quote was then
taken completely out of context which allowed everyone apply their own
interpretations and assume the comment refers to Red Hat's corporate
practices, scene contributions, ethics, &lt;add your issue here&gt;
etc.</quote> <editorialize>It was fairly clear that Jamie used the quote
more as an example of the attitude against RedHat, than as a response purely
to Marty</editorialize></p>

<p>Kevin Waterson posted an article on <a
href="http://www.oceania.net/article.php3?sid=17&amp;mode=threaded&amp;order=0&amp;thold=0">his
site</a> covering this topic further, whilst Angus Lees posted <a
href="http://www.progsoc.uts.edu.au/lists/slug/2000/July/msg00056.html">his
perspective</a> on the argument, rather different from the rest of the
thread. There was no reply.</p>

</section>


<section
  title="The Real Vi vs. Emacs"
  subject="rms on vi and emacs"
  archive="http://www.progsoc.uts.edu.au/lists/slug/2000/July/msg00040.html"
  posts="1"
  startdate="02 Jul 2000 00:00:00 -0800"
  enddate="02 Jul 2000 00:00:00 -0800">

<mention></mention>

<quote who="Anand Kumria">
<p>RMS is currently at LinuxTag Germany. One of the Stormix developers
manning the stall, Peter Lypkie, recalls this question:</p>

<p>Q: Is using vi a sin in the church of emacs?</p>

<p>RMS: no, not a sin, but is _is_ a penance!</p>
</quote>

<p>Gag posted by Anand Kumria.</p>

</section>


</kc>
