<?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>Mac OS X Things | Unix Notes</title>
	<atom:link href="http://face.centosprime.com/macosxw/category/unix-notes/feed/" rel="self" type="application/rss+xml" />
	<link>http://face.centosprime.com/macosxw</link>
	<description>hints and notes for the mac os x folks</description>
	<lastBuildDate>Fri, 12 Feb 2010 16:34:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
		<item>
		<title>Prevent a given partition from mounting at boot</title>
		<link>http://face.centosprime.com/macosxw/prevent-a-given-partition-from-mounting-at-boot/</link>
		<comments>http://face.centosprime.com/macosxw/prevent-a-given-partition-from-mounting-at-boot/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 14:29:43 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=384</guid>
		<description><![CDATA[There are several hints on this site for unmounting a partition at login, but a better way to make this happen can be used. You need to create an entry point in your filesystem table to tell the OS not to mount that specific volume, and this is relatively easy. In Mac OS X, and [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>There are several hints on this site for unmounting a partition at login, but a better way to make this happen can be used. You need to create an entry point in your filesystem table to tell the OS not to mount that specific volume, and this is relatively easy. In Mac OS X, and under Linux and others unix systems, the volume mounting configuration file is located in /etc/fstab. This file in Mac OS X Tiger is empty in Panther, its commented, but type man fstab in Terminal to read some important information.</p></blockquote>
<p>via <a href="http://www.macosxhints.com/article.php?story=20060930150059172">Prevent a given partition from mounting at boot &#8211; Mac OS X Hints</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/prevent-a-given-partition-from-mounting-at-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List functions defined in shell</title>
		<link>http://face.centosprime.com/macosxw/list-functions-defined-in-shell/</link>
		<comments>http://face.centosprime.com/macosxw/list-functions-defined-in-shell/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 20:43:03 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=357</guid>
		<description><![CDATA[I defined a function in bash. I forgot what it was, specifically. I wanted to see all of the functions.
declare -f - functions+body
declare -F - functions

]]></description>
			<content:encoded><![CDATA[<p>I defined a function in bash. I forgot what it was, specifically. I wanted to see all of the functions.</p>
<p><code>declare -f - functions+body<br />
declare -F - functions<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/list-functions-defined-in-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clone media</title>
		<link>http://face.centosprime.com/macosxw/clone-media/</link>
		<comments>http://face.centosprime.com/macosxw/clone-media/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 16:52:01 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=355</guid>
		<description><![CDATA[sudo rsync &#8211;dry-run &#8211;verbose &#8211;archive &#8220;/Volumes/black-hole/Clones/&#8221; &#8220;/Volumes/Media&#8221;
]]></description>
			<content:encoded><![CDATA[<p>sudo rsync &#8211;dry-run &#8211;verbose &#8211;archive &#8220;/Volumes/black-hole/Clones/&#8221; &#8220;/Volumes/Media&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/clone-media/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminal Tips: Enable path view in Finder</title>
		<link>http://face.centosprime.com/macosxw/terminal-tips-enable-path-view-in-finder/</link>
		<comments>http://face.centosprime.com/macosxw/terminal-tips-enable-path-view-in-finder/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 17:46:40 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[System Software Notes]]></category>
		<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[defaults]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=315</guid>
		<description><![CDATA[Terminal Tips: Enable &#8220;path view&#8221; in Finder:
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
(Via The Unofficial Apple Weblog.)
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tuaw.com/2008/12/05/terminal-tips-enable-path-view-in-finder/#comments">Terminal Tips: Enable &#8220;path view&#8221; in Finder</a>:<br />
<blockquote>defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES</p></blockquote>
<p>(Via <a href="http://www.tuaw.com">The Unofficial Apple Weblog</a>.)</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/terminal-tips-enable-path-view-in-finder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Receive syslog log info from router on iMac (Leopard)</title>
		<link>http://face.centosprime.com/macosxw/receive-syslog-loginfor-from-router-on-imac-leopard/</link>
		<comments>http://face.centosprime.com/macosxw/receive-syslog-loginfor-from-router-on-imac-leopard/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 21:09:12 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[System Software Notes]]></category>
		<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=297</guid>
		<description><![CDATA[THIS DOESN&#8217;T WORK. Logs get confused (logging stops). Haven&#8217;t figured out a way to make it *really* work on Leopard.
Receive syslog info from router on iMac (Leopard)
Posted: Nov 28, 2007 6:51 AM     in response to: YamaLuha
	 Solved
To enable your Leopard system to receive network syslog submissions edit /System/Library/LaunchDaemons/com.apple.syslogd.plist and uncomment the [...]]]></description>
			<content:encoded><![CDATA[<p>THIS DOESN&#8217;T WORK. Logs get confused (logging stops). Haven&#8217;t figured out a way to make it *really* work on Leopard.</p>
<p><a href="http://discussions.apple.com/thread.jspa?threadID=1242064&#038;tstart=0">Receive syslog info from router on iMac (Leopard)</a><br />
Posted: Nov 28, 2007 6:51 AM     in response to: YamaLuha<br />
	 Solved</p>
<p>To enable your Leopard system to receive network syslog submissions edit /System/Library/LaunchDaemons/com.apple.syslogd.plist and uncomment the lines specified in the comments so that the end of the file looks something like this.<br />
<code><br />
&lt;key>NetworkListener&lt;/key><br />
&lt;dict><br />
&nbsp;&nbsp;&lt;key>SockServiceName&lt;/key><br />
&nbsp;&nbsp;&lt;string>syslog&lt;/string><br />
&nbsp;&nbsp;&lt;key>SockType&lt;/key><br />
&nbsp;&nbsp;&lt;string>dgram&lt;/string><br />
&lt;/dict><br />
</code></p>
<p>NB &#8211; the NetworkListener is part of the Socket dict entry!!!</p>
<p>Then execute the following commands (wait a few seconds between commands):<br />
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist<br />
sudo launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist</p>
<p>That is enough to get an apple base station to dump it&#8217;s log into the system log. </p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/receive-syslog-loginfor-from-router-on-imac-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sed &#8211; An Introduction and Tutorial</title>
		<link>http://face.centosprime.com/macosxw/sed-an-introduction-and-tutorial/</link>
		<comments>http://face.centosprime.com/macosxw/sed-an-introduction-and-tutorial/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 21:26:47 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[Utilities Notes]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/sed-an-introduction-and-tutorial/</guid>
		<description><![CDATA[Sed is the ultimate stream editor. If that sounds strange, picture a stream flowing through a pipe. Okay, you can&apos;t see a stream if it&apos;s inside a pipe. That&apos;s what I get for attempting a flowing analogy. You want literature, read James Joyce.
Anyhow, sed is a marvelous utility. Unfortunately, most people never learn its real [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Sed is the ultimate stream editor. If that sounds strange, picture a stream flowing through a pipe. Okay, you can&apos;t see a stream if it&apos;s inside a pipe. That&apos;s what I get for attempting a flowing analogy. You want literature, read James Joyce.</p>
<p>Anyhow, sed is a marvelous utility. Unfortunately, most people never learn its real power. The language is very simple, but the documentation is terrible. The Solaris on-line manual pages for sed are five pages long, and two of those pages describe the 34 different errors you can get. A program that spends as much space documenting the errors than it does documenting the language has a serious learning curve.</p>
<p>Do not fret! It is not your fault you don&apos;t understand sed. I will cover sed completely. But I will describe the features in the order that I learned them. I didn&apos;t learn everything at once. You don&apos;t need to either.</p>
</blockquote>
<p><a href="http://www.grymoire.com/Unix/Sed.html">Sed &#8211; An Introduction and Tutorial</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/sed-an-introduction-and-tutorial/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>howto/ccache &#8211; MacPorts &#8211; Trac</title>
		<link>http://face.centosprime.com/macosxw/howtoccache-macports-trac/</link>
		<comments>http://face.centosprime.com/macosxw/howtoccache-macports-trac/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 12:23:54 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[Utilities Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=288</guid>
		<description><![CDATA[howto/ccache &#8211; MacPorts &#8211; Trac
This HOWTO covers how to enable building with ccache. It is a compiler cache. It uses the gcc -E switch and a hash to detect when a compilation can be satisfied from cache. The effect is that packages frequently compile 5-10 times faster than they would otherwise.
We&#8217;ll see how this changes [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://trac.macports.org/wiki/howto/ccache">howto/ccache &#8211; MacPorts &#8211; Trac</a></p>
<blockquote><p>This HOWTO covers how to enable building with ccache. It is a compiler cache. It uses the gcc -E switch and a hash to detect when a compilation can be satisfied from cache. The effect is that packages frequently compile 5-10 times faster than they would otherwise.</p></blockquote>
<p>We&#8217;ll see how this changes behavior &#8211; installed 2008-06-06 05:00:00</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/howtoccache-macports-trac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making ipfw make them go away</title>
		<link>http://face.centosprime.com/macosxw/making-ipfw-make-them-go-away/</link>
		<comments>http://face.centosprime.com/macosxw/making-ipfw-make-them-go-away/#comments</comments>
		<pubDate>Tue, 27 May 2008 21:24:38 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[System Software Notes]]></category>
		<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[Web Serving]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=286</guid>
		<description><![CDATA[sudo ipfw add deny src-ip 123.45.67.89, 127.0.0.1/8
That should do the trick.
]]></description>
			<content:encoded><![CDATA[<p>sudo ipfw add deny src-ip 123.45.67.89, 127.0.0.1/8</p>
<p>That should do the trick.</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/making-ipfw-make-them-go-away/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time Machine full system restore</title>
		<link>http://face.centosprime.com/macosxw/time-machine-full-system-restore/</link>
		<comments>http://face.centosprime.com/macosxw/time-machine-full-system-restore/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 15:21:34 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[System Software Notes]]></category>
		<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[Mail.app]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[TimeMachine]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=284</guid>
		<description><![CDATA[Well, I hosed my printing system. At least it appeared that way.
I know &#8211; let&#8217;s go backwards in time and make like it didn&#8217;t happen.
Boot from the Leopard DVD. Tell it we want to restore from a Time Machine backup.
Wait about 90 minutes for the whole thing to restore. So far, so good.
I got the [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I hosed my printing system. At least it appeared that way.</p>
<p>I know &#8211; let&#8217;s go backwards in time and make like it didn&#8217;t happen.</p>
<p>Boot from the Leopard DVD. Tell it we want to restore from a Time Machine backup.<br />
Wait about 90 minutes for the whole thing to restore. So far, so good.</p>
<p>I got the printing working as desired. All the systems can see the shared printers.<br />
That should do it, right? Wrong!</p>
<p>1. I have a leftover swap file on the Time Machine disk &#8211; easy to get rid of &#8211; delete it.<br />
2. I have a *very* large backup snapshot in the Time Machine &#8211; like 55GB &#8211; like it is a complete snap of the restored system. You would think that it would know that I restored from snapshot &#8220;A&#8221; and would simply make a hard link to that&#8230;hmmm<br />
3. mail doesn&#8217;t work. My nightly cron job that backs up the databases sends mail. I didn&#8217;t get it.</p>
<p>Have to fix mail &#8211; wound up trying <code>sudo /etc/postfix/post-install create-missing</code> which got me most of the way there. I had to restart to get the mail daemons all &#8220;happy&#8221; again.</p>
<p>Oh, yes.</p>
<p>iTunes lost window positioning, had to be re-authorized for iTunes Store songs.</p>
<p>Mail.app decided that it had to import all of my mail! Only real problem there was that it had lots of messages marked unread that had actually been read. Not a big deal. It got the 66,000+ messages into the right places.</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/time-machine-full-system-restore/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Leopard and crontabs</title>
		<link>http://face.centosprime.com/macosxw/leopard-and-crontabs/</link>
		<comments>http://face.centosprime.com/macosxw/leopard-and-crontabs/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 19:36:52 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[System Software Notes]]></category>
		<category><![CDATA[Unix Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=272</guid>
		<description><![CDATA[
  macosxhints.com &#8211; 10.5: Migrate crontabs from 10.4

n Mac OS X 10.4 (and earlier?), crontabs (the lists of tasks scheduled with cron) were stored in /var/cron/tabs. However, in 10.5, they are now stored in /usr/lib/cron/tabs, and the installer doesn&#8217;t seem to move any existing files from the old to the new location. So, the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macosxhints.com/article.php?story=20071220223944355"><br />
  macosxhints.com &#8211; 10.5: Migrate crontabs from 10.4<br />
</a><br />
n Mac OS X 10.4 (and earlier?), crontabs (the lists of tasks scheduled with cron) were stored in /var/cron/tabs. However, in 10.5, they are now stored in /usr/lib/cron/tabs, and the installer doesn&#8217;t seem to move any existing files from the old to the new location. So, the easy way to bring your old crontabs across is to run the following command in a Terminal:<br />
sudo mv /var/cron/tabs/* /usr/lib/cron/tabs<br />
Note that this command will replace any crontabs you&#8217;ve edited or set up since upgrading to Leopard with the version you had in Tiger; if you think there&#8217;s likely to be a clash, it would be a good idea to open the old files in a text editor and copy-and-paste the entries across to your new crontab (using crontab -e) instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/leopard-and-crontabs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bourne shell idioms</title>
		<link>http://face.centosprime.com/macosxw/bourne-shell-idioms/</link>
		<comments>http://face.centosprime.com/macosxw/bourne-shell-idioms/#comments</comments>
		<pubDate>Sun, 22 Apr 2007 11:36:35 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=258</guid>
		<description><![CDATA[ Bourne shell idioms 

perl -pe 'use MIME::Base64; $_=MIME::Base64::encode($_);'
perl -pe 'use MIME::Base64; $_=MIME::Base64::decode($_);'

That&#8217;s the piece I needed this morning. I found all sorts of entertaining things.
Some of them are vaguely in my memory. Most not, since I started before bash.
For Jan &#8211; edit command lines in the EDITOR
]]></description>
			<content:encoded><![CDATA[<p><a href="http://billharlan.com/pub/papers/Bourne_shell_idioms.html"> Bourne shell idioms </a></p>
<p><code><br />
perl -pe 'use MIME::Base64; $_=MIME::Base64::encode($_);'<br />
perl -pe 'use MIME::Base64; $_=MIME::Base64::decode($_);'<br />
</code></p>
<p>That&#8217;s the piece I needed this morning. I found all sorts of entertaining things.<br />
Some of them are vaguely in my memory. Most not, since I started before bash.</p>
<p>For Jan &#8211; edit command lines in the EDITOR</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/bourne-shell-idioms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tracking Outbound SPAM</title>
		<link>http://face.centosprime.com/macosxw/tracking-outbound-spam/</link>
		<comments>http://face.centosprime.com/macosxw/tracking-outbound-spam/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 14:13:12 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[Utilities Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=252</guid>
		<description><![CDATA[found in the mac os X system admin list
Just  wanted to say thanks to Michael Wise for taking  time out today
and providing  me with a great set of forensic tools and techniques
for locating message queue IDs, and using postcat on the queue to
view actual messages/headers. Now I can start the real investigation.
Haven&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>found in the mac os X system admin list</p>
<p>Just  wanted to say thanks to Michael Wise for taking  time out today<br />
and providing  me with a great set of forensic tools and techniques<br />
for locating message queue IDs, and using postcat on the queue to<br />
view actual messages/headers. Now I can start the real investigation.<br />
Haven&#8217;t found the offending script yet, but am getting closer.</p>
<p>Notes from my conversation with Michael, for the archives:</p>
<p>     * First, find suspicious looking lines in /var/log/mail.log</p>
<p>     * Look for the smtp ID, such as: postfix/smtp[25897]</p>
<p>     * Grep for other instances of that ID in the log: grep 25897<br />
mail.log</p>
<p>     * From there, youÂ’ll be able to see postfix queue IDs, such as<br />
159A347C89C</p>
<p>     * You can use this queue ID to find deferred messages in the<br />
postfix queue</p>
<p>     * cd /var/spool/postfix/</p>
<p>     * Find where in the queue directory hierarchy this message<br />
lives: find . -name 159A347C89C</p>
<p>     * The messages are stored in a format not easily readable. To<br />
make them readable, use the postcat command, e.g. postcat deferred/E/<br />
E9B8F4F0E7C</p>
<p>     * Now you can see the real message, with all of its headers,<br />
which should give you a lot more info about its origins. You can see<br />
whether it came from outside, or if it comes from a process ID, there<br />
should be some indication. If user is www, you know itÂ’s coming from<br />
a web script.</p>
<p>     * To delete a message from the queue, use e.g.: postsuper -d<br />
E9B8F4F0E7C Do not use the path with this command &#8211; just the queue ID.</p>
<p>Other tools:</p>
<p>Monitor incoming network connections, filtering out legit traffic on<br />
port 80:</p>
<p>netstat -na | grep EST<br />
netstat -na | grep EST | grep -v &#8216;\.80 &#8216;<br />
netstat -na | grep EST | grep &#8216;\.25 &#8216;</p>
<p>To find files or dirs owned by www (that might be illegitimate):</p>
<p>find / -user www -ls</p>
<p>In case attacker named directories with spaces or other weird chars<br />
in them:</p>
<p>find / -user www -ls | cat -vet -</p>
<p>(take your cat to the vet &#8211; itÂ’s sick)</p>
<p>Thanks also to others who responded on this.</p>
<p>Best,<br />
Scot</p>
<p>&#8211;<br />
Scot Hacker, Webmaster<br />
Graduate School of Journalism<br />
UC Berkeley</p>
<p>http://journalism.berkeley.edu</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/tracking-outbound-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>readline shortcuts</title>
		<link>http://face.centosprime.com/macosxw/readline-shortcuts/</link>
		<comments>http://face.centosprime.com/macosxw/readline-shortcuts/#comments</comments>
		<pubDate>Fri, 09 Feb 2007 16:09:15 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[System Software Notes]]></category>
		<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[Utilities Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=251</guid>
		<description><![CDATA[readline shortcuts
Readline shortcuts
GNU Readline is the library used to make advanced command-line wizardry convenient and conistent across a multitude of command-line applications. These programs include bash, bc, ftp, gnuplot, gpg, ksh, mysql, psql, python, smbclient and xmllint.
The cheatsheet at the right contains a summary of many of the useful line editing command shortcuts which are [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bigsmoke.us/readline/shortcuts">readline shortcuts</a></p>
<p>Readline shortcuts<br />
GNU Readline is the library used to make advanced command-line wizardry convenient and conistent across a multitude of command-line applications. These programs include bash, bc, ftp, gnuplot, gpg, ksh, mysql, psql, python, smbclient and xmllint.<br />
The cheatsheet at the right contains a summary of many of the useful line editing command shortcuts which are available in all applications that use libreadline.</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/readline-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clone a disk</title>
		<link>http://face.centosprime.com/macosxw/clone-a-disk/</link>
		<comments>http://face.centosprime.com/macosxw/clone-a-disk/#comments</comments>
		<pubDate>Sat, 20 Jan 2007 18:40:32 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=248</guid>
		<description><![CDATA[sudo dd if=/dev/rdisk0 of=/dev/rdisk1 bs=131072
]]></description>
			<content:encoded><![CDATA[<p><code>sudo dd if=/dev/rdisk0 of=/dev/rdisk1 bs=131072</code></p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/clone-a-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn 10 good UNIX usage habits</title>
		<link>http://face.centosprime.com/macosxw/learn-10-good-unix-usage-habits/</link>
		<comments>http://face.centosprime.com/macosxw/learn-10-good-unix-usage-habits/#comments</comments>
		<pubDate>Sat, 16 Dec 2006 17:39:24 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=246</guid>
		<description><![CDATA[Learn 10 good UNIX usage habits

Adopt 10 good habits that improve your UNIXÂ® command line efficiency &#8212; and break away from bad usage patterns in the process. This article takes you step-by-step through several good, but too often neglected, techniques for command-line operations. Learn about common errors and how to overcome them, so you can [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www-128.ibm.com/developerworks/aix/library/au-badunixhabits.html?ca=lnxw01GoodUnixHabits">Learn 10 good UNIX usage habits</a></p>
<blockquote><p>
Adopt 10 good habits that improve your UNIXÂ® command line efficiency &#8212; and break away from bad usage patterns in the process. This article takes you step-by-step through several good, but too often neglected, techniques for command-line operations. Learn about common errors and how to overcome them, so you can learn exactly why these UNIX habits are worth picking up.
</p></blockquote>
<p>I still don&#8217;t like what xargs does</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/learn-10-good-unix-usage-habits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sed vs. PERL</title>
		<link>http://face.centosprime.com/macosxw/sed-vs-perl/</link>
		<comments>http://face.centosprime.com/macosxw/sed-vs-perl/#comments</comments>
		<pubDate>Tue, 05 Dec 2006 18:34:19 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=245</guid>
		<description><![CDATA[sed one-liners are here
sed FAQ is here
I wanted to change all occurrences of PRIVATE to NJPRIVATE in a bunch of files. It&#8217;s a simple command in sed, but what about replacing the file? output to temporary, then copy? yes, but.
the PERL solution is

perl -pi -e 's/PRIVATE/NJPRIVATE/' `grep -l PRIVATE *.php`

the magic is
-p    [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.student.northpark.edu/pemente/sed/sed1line.txt">sed one-liners are here</a><br />
<a href="http://www.student.northpark.edu/pemente/sed/sedfaq.html">sed FAQ is here</a></p>
<p>I wanted to change all occurrences of PRIVATE to NJPRIVATE in a bunch of files. It&#8217;s a simple command in sed, but what about replacing the file? output to temporary, then copy? yes, but.</p>
<p>the PERL solution is</p>
<p><code><br />
perl -pi -e 's/PRIVATE/NJPRIVATE/' `grep -l PRIVATE *.php`<br />
</code></p>
<p>the magic is</p>
<p>-p              loop and swallow the files, and print default.<br />
-i              edit the files in-place<br />
-e              do the command </p>
<p>solution found at <a href="http://www.debian-administration.org/articles/298">Debian Administration</a></p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/sed-vs-perl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Netjuke vs. PHP 5</title>
		<link>http://face.centosprime.com/macosxw/netjuke-vs-php-5/</link>
		<comments>http://face.centosprime.com/macosxw/netjuke-vs-php-5/#comments</comments>
		<pubDate>Sun, 03 Dec 2006 22:14:55 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[Web Serving]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=244</guid>
		<description><![CDATA[So, I got my PHP 5 to work, and talk to MySQL.
I wonder if Netjuke works? Nope. Not at all.
Everywhere I read I see that Netjuke is not supported and will never work on PHP 5. Use Jinzora they say. Uck &#8211; that wasn&#8217;t fun.
Simply put. Fix &#8220;play.php&#8221; to only output one header at a [...]]]></description>
			<content:encoded><![CDATA[<p>So, I got my PHP 5 to work, and talk to MySQL.<br />
I wonder if Netjuke works? Nope. Not at all.</p>
<p>Everywhere I read I see that Netjuke is not supported and will never work on PHP 5. Use Jinzora they say. Uck &#8211; that wasn&#8217;t fun.</p>
<p>Simply put. Fix &#8220;play.php&#8221; to only output one header at a time. Search for the header() call. It&#8217;s pretty obvious.</p>
<p>Change the test in the config.inc.php for<br />
`PRIVATE == true`<br />
 to be something like<br />
`NJPRIVATE == true`</p>
<p>Fix every file that has a<br />
 `define(&#8220;PRIVATE&#8221;, true/false)`<br />
to be a<br />
 `define(&#8220;NJPRIVATE&#8221;, true/false)`</p>
<p>private is a reserved word in PHP 5.</p>
<p>That&#8217;s all it took. All of about 30 minutes once I decided to ignore all of the advice on the web.</p>
<p>Classic maintenance programming attack.</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/netjuke-vs-php-5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Getting to PHP 5</title>
		<link>http://face.centosprime.com/macosxw/getting-to-php-5/</link>
		<comments>http://face.centosprime.com/macosxw/getting-to-php-5/#comments</comments>
		<pubDate>Sun, 03 Dec 2006 22:05:16 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[Web Serving]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=243</guid>
		<description><![CDATA[10.3.9 &#8211; no help beyond 4.3.11 from Marc Liyanage.
Apple&#8217;s 4.4 is of no help &#8211; no GD support, missing other things &#8211; PEAR, XML things, etc.
How do I make a compatible build?
Start with Apple&#8217;s configure command (use phpinfo() on a standard installation). It *will* screw up your system files nicely, so make sure you know [...]]]></description>
			<content:encoded><![CDATA[<p>10.3.9 &#8211; no help beyond 4.3.11 from Marc Liyanage.</p>
<p>Apple&#8217;s 4.4 is of no help &#8211; no GD support, missing other things &#8211; PEAR, XML things, etc.</p>
<p>How do I make a compatible build?</p>
<p>Start with Apple&#8217;s configure command (use phpinfo() on a standard installation). It *will* screw up your system files nicely, so make sure you know what each of the files and directories means! I didn&#8217;t. I have an interesting mix of system/local files now.</p>
<p>Add extensions as needed. Test ./configure each time, and you might as well re-build each time.</p>
<p>Decide where to get libraries. I finally decided to use darwinports for the non-Apple standards. Look out for X11 when not installed!!!!</p>
<p>Use the built-in GD &#8216;&#8211;with-gd&#8217; &#8211; no path. darwinports gd  has issues (won&#8217;t build).</p>
<p>I wound up with this</p>
<p>configure &#8211;prefix=/usr &#8211;mandir=/usr/share/man &#8211;infodir=/usr/share/info &#8211;with-apxs &#8211;with-ldap=/usr &#8211;with-kerberos=/usr &#8211;enable-cli &#8211;with-zlib-dir=/usr &#8211;enable-trans-sid &#8211;with-xml &#8211;enable-exif &#8211;enable-ftp &#8211;enable-mbstring &#8211;enable-mbregex &#8211;enable-dbx &#8211;enable-sockets &#8211;with-iodbc=/usr &#8211;with-curl=/opt/local &#8211;with-config-file-path=/etc &#8211;sysconfdir=/private/etc &#8211;with-pear &#8211;with-mysql=/usr/local/mysql &#8211;with-openssl=/usr &#8211;with-gd &#8211;with-png=/opt/local &#8211;with-jpeg=/opt/local &#8211;with-expat=/opt/local &#8211;with-gettext=/opt/local &#8211;with-dom=/opt/local &#8211;with-dom-xslt=/opt/local &#8211;with-xslt-sablot=/opt/local &#8211;enable-xslt &#8211;with-xmlrpc &#8211;enable-wddx</p>
<p>I still need to figure out about IMAP support.</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/getting-to-php-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>macosxhints.com &#8211; Modify cursor movement keys in Terminal</title>
		<link>http://face.centosprime.com/macosxw/macosxhintscom-modify-cursor-movement-keys-in-terminal/</link>
		<comments>http://face.centosprime.com/macosxw/macosxhintscom-modify-cursor-movement-keys-in-terminal/#comments</comments>
		<pubDate>Thu, 24 Aug 2006 14:49:00 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Unix Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=241</guid>
		<description><![CDATA[
  macosxhints.com &#8211; Modify cursor movement keys in Terminal


The defacto standard in Terminal&#8217;s shells is meta-b (backward) and meta-f (forward) for word-by-word movement. In every other Cocoa app, however, it&#8217;s Option-left arrow and Option-right arrow. I wanted Terminal to behave the same way.

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macosxhints.com/article.php?story=20060822210246174"><br />
  macosxhints.com &#8211; Modify cursor movement keys in Terminal<br />
</a></p>
<blockquote><p>
The defacto standard in Terminal&#8217;s shells is meta-b (backward) and meta-f (forward) for word-by-word movement. In every other Cocoa app, however, it&#8217;s Option-left arrow and Option-right arrow. I wanted Terminal to behave the same way.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/macosxhintscom-modify-cursor-movement-keys-in-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>palm-db-tools</title>
		<link>http://face.centosprime.com/macosxw/palm-db-tools/</link>
		<comments>http://face.centosprime.com/macosxw/palm-db-tools/#comments</comments>
		<pubDate>Wed, 11 Jan 2006 23:56:49 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Unix Notes]]></category>
		<category><![CDATA[Utilities Notes]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=230</guid>
		<description><![CDATA[configure.env-append LD=g++ CC=g++
darwinports
need to add that line after configure.args &#8211; elsewise it never loads
spent all day trying to figure this out
pdb2csv csv2pdb
]]></description>
			<content:encoded><![CDATA[<p>configure.env-append LD=g++ CC=g++</p>
<p>darwinports</p>
<p>need to add that line after configure.args &#8211; elsewise it never loads<br />
spent all day trying to figure this out</p>
<p>pdb2csv csv2pdb</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/palm-db-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
