<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.7" -->
<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/"
	>

<channel>
	<title>Tony's Dream</title>
	<link>http://www.honestpuck.com/wordpress</link>
	<description>One man's journey through cyberlife</description>
	<pubDate>Thu, 17 Apr 2008 23:43:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.7</generator>
	<language>en</language>
			<item>
		<title>Fun with VMWare</title>
		<link>http://www.honestpuck.com/wordpress/?p=158</link>
		<comments>http://www.honestpuck.com/wordpress/?p=158#comments</comments>
		<pubDate>Thu, 17 Apr 2008 23:43:07 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Macintosh</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=158</guid>
		<description><![CDATA[It seems it has been forever since I posted to this blog. I should be a better boy and do it more often.
Found myself today exploring the intricacies of VMWare virtual machine images. I don&#8217;t know if you have ever tried to set it up for a lab machine but it doesn&#8217;t like using a [...]]]></description>
			<content:encoded><![CDATA[<p>It seems it has been forever since I posted to this blog. I should be a better boy and do it more often.</p>
<p>Found myself today exploring the intricacies of VMWare virtual machine images. I don&#8217;t know if <b>you</b> have ever tried to set it up for a lab machine but it doesn&#8217;t like using a VM across accounts if people suspend the VM rather than shut it down.</p>
<p>Turns out that the problem revolves around file permissions. Just changing permissions on a couple of files in the suspended image allows it to run but gives a problem with graphics - the image comes up with a weird screen resolution. My current work around is to delete the file inside the package with the extension .vmss which does a force reboot on the virtual machine. Added the required line to the logout script and all is well.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=158</wfw:commentRss>
		</item>
		<item>
		<title>Wither cities?</title>
		<link>http://www.honestpuck.com/wordpress/?p=157</link>
		<comments>http://www.honestpuck.com/wordpress/?p=157#comments</comments>
		<pubDate>Mon, 03 Dec 2007 03:04:28 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Culture</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=157</guid>
		<description><![CDATA[On Saturday I went out to dinner in one of the busier streets in Newcastle, Darby St. In a couple of hundred yards there is a cluster of perhaps a dozen casual restaurants and coffee shops. I mentioned to Sonia that the crowd lacked a diversity that you would find along a street like King [...]]]></description>
			<content:encoded><![CDATA[<p>On Saturday I went out to dinner in one of the busier streets in Newcastle, Darby St. In a couple of hundred yards there is a cluster of perhaps a dozen casual restaurants and coffee shops. I mentioned to Sonia that the crowd lacked a diversity that you would find along a street like King St, Newtown. They all appeared to be from the same &#8220;tribe.&#8221;</p>
<p>Now first let me say that this is not a defacto criticism of Newcastle. You could say the same thing about Military Rd, Mosman or any number of other places in Sydney. It is one of the unique qualities of Sydney&#8217;s inner west that so many different &#8220;tribes&#8221; can mix and accept each other.</p>
<p>So it was a strange coincidence when just today there was an article in the Boston Globe, <a href="http://www.boston.com/bostonglobe/ideas/articles/2007/12/02/last_call/?page=1">&#8220;Last Call&#8221;</a> by Robert David Sullivan about the disappearance of the gay bars of Boston and what it means for city life. It is an interesting read as it bemoans the way that urban development is pushing out the fringe cultures, not just gay bars in Boston but the real New York deli and other marvelous diversities.</p>
<p>As I look at so called &#8220;urban development&#8221; (and there are prime examples in both Sydney and Newcastle, where the Honeysuckle precint is seen as a great urban development but to my eye it has sanitised and monotonised the industrial fringe of the CBD) all I see is the conservative, middle of the road, white middle class converting to bland more and more of what makes city life good. Of course, though, I am far from innocent myself. I may describe myself as &#8220;liberal&#8221; but in the grand scheme of things I am fairly middle of the road, white middle class myself.</p>
<p>Read Sullivan&#8217;s article, you might understand my fear for our cities.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=157</wfw:commentRss>
		</item>
		<item>
		<title>Fun with Leopard</title>
		<link>http://www.honestpuck.com/wordpress/?p=156</link>
		<comments>http://www.honestpuck.com/wordpress/?p=156#comments</comments>
		<pubDate>Wed, 07 Nov 2007 02:24:49 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Macintosh</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=156</guid>
		<description><![CDATA[So Leopard testing started in earnest and ground to a halt on day one here at Newcastle Uni.
802.11x authentication is incredibly flaky and we use it for our wireless net - the only way to I&#8217;ve found to get it to work means System Preferences hangs and has to be force quitted (should that be [...]]]></description>
			<content:encoded><![CDATA[<p>So Leopard testing started in earnest and ground to a halt on day one here at Newcastle Uni.</p>
<p>802.11x authentication is incredibly flaky and we use it for our wireless net - the only way to I&#8217;ve found to get it to work means System Preferences hangs and has to be force quitted (should that be &#8220;forced quit&#8221;, perhaps). At that point it&#8217;s all good but I can hardly advise that in a set up document for staff and students. Of course we had a student wanting to connect his laptop on the Monday after Leopard came out - and on the first day of study vacation. Well, nobody ever said University students had common sense.</p>
<p>As for application testing I&#8217;ve only found a couple of applications with problems - Vectorworks being the major one but we don&#8217;t have too many users of that. All the usual suspects seem to run fine.</p>
<p>We&#8217;ll have to upgrade at least one of our Mac servers and attach it to some <b>large</b> storage so we can offer Time Machine but I&#8217;ve had a look and you can quickly get Time Machine to just back up the sensible stuff, ignoring most of the system (it requires adding two exclusions.) Once that&#8217;s done it becomes an incredibly usable tool for the end user.</p>
<p>There are some other neat little interface things going on with servers. Now there is a &#8220;Shared&#8221; list in the Finder window pane and clicking on it reveals all volumes you have access to on the server and tells you who you are logged in as.</p>
<p>As for the things I dislike, well the Ars Technica review sums up all the interface gotchas. The back end is real nice without anything to hate and I love the new version of Terminal, Spaces and almost love Stacks (why can&#8217;t the special folder icons stay in place?)</p>
<p>More soon.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=156</wfw:commentRss>
		</item>
		<item>
		<title>Imaging both halves of a Dual Boot Mac</title>
		<link>http://www.honestpuck.com/wordpress/?p=155</link>
		<comments>http://www.honestpuck.com/wordpress/?p=155#comments</comments>
		<pubDate>Mon, 29 Oct 2007 03:36:33 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Computers</category>

		<category>Macintosh</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=155</guid>
		<description><![CDATA[So I&#8217;ve finally got imaging a dual boot Mac dialed in to my satisfaction.
The nicest thing is that I don&#8217;t really use BootCamp at all - just steal the drivers off the disk.
First I netboot the Mac and repartition the drive into two logical drives before installing the standard Mac OS image. Next step is [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve finally got imaging a dual boot Mac dialed in to my satisfaction.</p>
<p>The nicest thing is that I don&#8217;t really use BootCamp at all - just steal the drivers off the disk.</p>
<p>First I netboot the Mac and repartition the drive into two logical drives before installing the standard Mac OS image. Next step is to insert my special CD (an Altiris PXE CD with some files added) and run a shell script which installs rEFIt and then tells it to make Windows the default boot OS (it makes life easier in the next bit) by writing the line &#8220;legacyfirst&#8221; to the end of its conf file.</p>
<p>Now we restart the Mac and rEFIt asks us where to boot from, we select the CD and Altiris PXE boot takes over. When that finishes and we get a DOS prompt I run RDeploy which loads the standard Windows image. Since we don&#8217;t have the proper drivers loaded we now have to reboot PXE to be able to write to C:\. As it is rebooting we use the Partition Tool on the rEFIt menu to sync the GUID partition table and the MBR partition table. Now run a batch file that loads a share on our Altiris server and copy a new boot.ini and the Mac drivers into a spot on C:\ where sysprep will see them and install them. Now a couple of reboots for sysprep to do it&#8217;s work.</p>
<p>Back to Mac OS where we run another batch file. This one gets real tricky. First we disable rEFIt by moving the folder at /efi to /.efi (which also hides it from students), unzip a bunch of files into /var/tmp (as a Windows CD doesn&#8217;t keep things such as installer packages nice), install BootPicker, replace the logout script with one that runs BootPicker, shove a new BootPicker preference file into place (this one includes some text for the picker dialog) and finally replace the BootPicker /etc/rc.local with one I&#8217;ve hacked slightly.</p>
<p>That final rc.local was a real beaut. I discovered that Windows wants to write local time to the hardware clock while all other right thinking operating systems write GMT and then use the adjust for the display time. This means that when the Mac first boots after running Windows it sees a clock that is hours out and the network time daemon refuses to adjust the time as the skew is too large. Of course this means that when login.window tries to connect to Active Directory Kerberos barfs due to the time difference and I don&#8217;t get logons for network users.</p>
<p>This looks like a serious problem. Go to Terminal and type &#8220;apropos time&#8221; which shows me all the commands that deal with time. See ntpd and discover it&#8217;s running but with a fairly high process ID. Check its manual page and discover you can run it so that it will ignore the skew when setting the time and then quit. Type &#8220;ntpd -g -q&#8221; and after a couple of seconds the command prompt returns and the time in the top right corner is correct. OK, so I need to run that line before login.Window runs. Hmmmm, the obvious spot is either before or after BootPicker, let&#8217;s run it before so we don&#8217;t delay the arrival of the login window after they pick Mac OS. So since when we boot BootPicker is run in /etc/rc.local add our line between the &#8220;ipconfig waitall&#8221; and &#8220;bp=&#8221;. Now test. Problem fixed. Gotta love Unix.</p>
<p>Don&#8217;t you just love the fact that under the hood Mac OS is a real Unix operating system and no longer a toy. Weep you Windows guys, weep.</p>
<p>The real joy of all this is that all the files that ever need to change are on servers and so the CD can be used for years. Oh, and my dual-boot Mac is using standard student lab images on both halves - no need to create a special image.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=155</wfw:commentRss>
		</item>
		<item>
		<title>Newcastle life and work</title>
		<link>http://www.honestpuck.com/wordpress/?p=154</link>
		<comments>http://www.honestpuck.com/wordpress/?p=154#comments</comments>
		<pubDate>Fri, 26 Oct 2007 01:07:55 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Computers</category>

		<category>Macintosh</category>

		<category>Culture</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=154</guid>
		<description><![CDATA[So things are continuing in Newcastle.
My one desire is to find some good night life. Most places either seem to shut early or are overrun by extremely young patrons who object to a dodgy old partygoer like me - who&#8217;d a thunk it!! This weekend I&#8217;m going back down to Sinny for a dance party
Work [...]]]></description>
			<content:encoded><![CDATA[<p>So things are continuing in Newcastle.</p>
<p>My one desire is to find some good night life. Most places either seem to shut early or are overrun by extremely young patrons who object to a dodgy old partygoer like me - who&#8217;d a thunk it!! This weekend I&#8217;m going back down to Sinny for a dance party</p>
<p>Work continues apace. My big project at the moment is to get a routine for imaging dual boot Macs. I now know more about Altiris and Windows than I ever wanted. I have, however come up with a method of using a slightly customised Altiris PXE RDeploy CD to get our standard Windows image installed on to the Windows half of the Mac. We have moved the Mac drivers out of BootCamp and onto a share on our Altiris server so a batch file copies them into the right spot for sysprep to load them. The other problem is getting the MBR correct and rEFIt takes care of that easily, as well as allowing me to make the Windows partition the default boot device while it is going through the multiple boots of setup.</p>
<p>Now that I have that well in hand I am about to start Leopard testing, building new staff and lab images for next year and playing with Apple Remote Desktop. More on those next time.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=154</wfw:commentRss>
		</item>
		<item>
		<title>New job for honestpuck</title>
		<link>http://www.honestpuck.com/wordpress/?p=153</link>
		<comments>http://www.honestpuck.com/wordpress/?p=153#comments</comments>
		<pubDate>Mon, 17 Sep 2007 23:39:45 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Site News</category>

		<category>Macintosh</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=153</guid>
		<description><![CDATA[So I now have a new job.
Desktop Technologies Officer (Macintosh) at the University of Newcastle. It&#8217;s a great job and moving back to Newcastle is a major change, but a good one. My new office is a mere twenty metres from a a coffee cart so I have cappucinos any time I want. I&#8217;ve already [...]]]></description>
			<content:encoded><![CDATA[<p>So I now have a new job.</p>
<p>Desktop Technologies Officer (Macintosh) at the University of Newcastle. It&#8217;s a great job and moving back to Newcastle is a major change, but a good one. My new office is a mere twenty metres from a a coffee cart so I have cappucinos any time I want. I&#8217;ve already found a house to rent in Hamilton, though I&#8217;m not sure when I move in.</p>
<p>Lots of things to do and lots of things to learn.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=153</wfw:commentRss>
		</item>
		<item>
		<title>Better Bose earphones</title>
		<link>http://www.honestpuck.com/wordpress/?p=152</link>
		<comments>http://www.honestpuck.com/wordpress/?p=152#comments</comments>
		<pubDate>Mon, 18 Jun 2007 08:14:20 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>General</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=152</guid>
		<description><![CDATA[The Bose In Ear Headphones have had a major improvement. In my last post about them I mentioned that I&#8217;d had problems with the plastic variable size inserrts falling off. It seems I wasn&#8217;t the only one. If you sent in your warranty card bose sent you a free set of new inserts in all [...]]]></description>
			<content:encoded><![CDATA[<p>The Bose In Ear Headphones have had a major improvement. In my last post about them I mentioned that I&#8217;d had problems with the plastic variable size inserrts falling off. It seems I wasn&#8217;t the only one. If you sent in your warranty card bose sent you a free set of new inserts in all three sizes. They&#8217;ve been redesigned to stick on better.</p>
<p>Once I got the right fit for both ears and read the manual again (turns out I&#8217;d been inserting them too far) the dry ear problem went away as well. I&#8217;m going to try them on a long trip and they may well replace the Sennheisers for day to day use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=152</wfw:commentRss>
		</item>
		<item>
		<title>Going Extreme</title>
		<link>http://www.honestpuck.com/wordpress/?p=151</link>
		<comments>http://www.honestpuck.com/wordpress/?p=151#comments</comments>
		<pubDate>Wed, 23 May 2007 10:26:49 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Macintosh</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=151</guid>
		<description><![CDATA[So I checked and discovered that my MacBook already knew how to talk 802.11n without me paying the $1.29 or whatever for the enabler. That meant I had to go out and get an Airport Extreme base station, it was almost compulsory, I swear.
It certainly is fast and seems to work with the MacBook a [...]]]></description>
			<content:encoded><![CDATA[<p>So I checked and discovered that my MacBook already knew how to talk 802.11n without me paying the $1.29 or whatever for the enabler. That meant I had to go out and get an Airport Extreme base station, it was almost compulsory, I swear.</p>
<p>It certainly is fast and seems to work with the MacBook a lot better than the old Linksys. It also connects flawlessy with the Wii so it seems obvious to me that the wireless problems I was having were the old LinkSys rather than the devices, though I did have to change the channel being used from the default &#8220;1&#8243; on the Extreme so perhaps it was just RF clutter for the LinkSys - I do have somewhere between five and eleven wireless nets in my neighbourhood.</p>
<p>Setting it up is a breeze. Apple&#8217;s &#8220;Airport&#8221; utility has improved in the latest version and the Extreme has a good bunch of smarts. I tried sharing a printer and a hard drive hung off the Extreme&#8217;s USB port and both worked well.</p>
<p>Making it the same form factor as the Mini is also smart. If I can find a nice sized hard drive with the same factor I think  I&#8217;ll stack them and create a marvelous device.</p>
<p>The most difficult part was designing and building the net. Since I use Telstra cable the Extreme couldn&#8217;t take care of login by itself. That meant the LinkSys had to continue doing that so the Extreme hangs of it. OK, first turn off wireless on the LinkSys. The next problem was getting the right IP addresses to the wireless clients while still allowing hard connections to the LinkSys. So set up the DHCP in the LinkSys to serve out xx.xx.xx.50 to 100 and the Extreme to serve out 101 to 200. The give the Extreme a fixed address at .2 and the home server (the Mac Mini) at .3 attached to the LinkSys. That set up works fine but took about three attempts, I also seemed to have problems with the Extreme not answering DHCP requests from devices plugged into its Ethernet ports. This requires a little more exploration.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=151</wfw:commentRss>
		</item>
		<item>
		<title>Wii going well</title>
		<link>http://www.honestpuck.com/wordpress/?p=150</link>
		<comments>http://www.honestpuck.com/wordpress/?p=150#comments</comments>
		<pubDate>Tue, 24 Apr 2007 08:54:36 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Computers</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=150</guid>
		<description><![CDATA[I thought it might be a good time to update my readers on how the Wii I mentioned was going.
The biggest problem I have is finding good games, though I have more than enough to keep me playing. I haven&#8217;t found a store with a Wii on display to show the games so I have [...]]]></description>
			<content:encoded><![CDATA[<p>I thought it might be a good time to update my readers on how the Wii I mentioned was going.</p>
<p>The biggest problem I have is finding good games, though I have more than enough to keep me playing. I haven&#8217;t found a store with a Wii on display to show the games so I have to rely on online reviews and the store staff. Luckily that&#8217;s been good enough so far.</p>
<p>the positive side I went out and got a second controller and Jessi and I have been exploring the two player game space. Our favourites at the moment are tennis against each other or co-operatively against the computer.</p>
<p>The newest game we have is &#8220;Excite Truck&#8221;, which both Jessi and I enjoy. Give me another week and we&#8217;ll see if it lasts but at the moment it seems to be the car game we were looking for. Both Jessi and I enjoy a car game that does not have too realistic a physics engine and is a little forgiving of crashes and bad driving. On the Playstation we both liked the early &#8220;Need For Speed&#8221; games for that reason.</p>
<p>At the moment I&#8217;m stuck in the gold level but my driving is slowly improving so I have hope of eventually progressing. It&#8217;s fun enough that I don&#8217;t mind being stuck on one level. I get to try each race track in a half dozen alternate cars and find the best for each track, improve my driving and learn the course and enjoy the slow improvement. The control system is neat, you tilt the controller side to side to turn the truck and when it is flying through the air you can twist towards or away from yourself to angle the truck and fly further or drop faster - if you land on all four wheels at once you get a &#8220;nice landing&#8221; from the game and a turbo boost.</p>
<p>I&#8217;ve also spent some time playing tenpin bowling and have just started to work on the wrist twist required to curve the ball one way or the other - the motion sensitive controller amazes me, it makes game playing tremendous.</p>
<p>So to conclude, the Wii is going well, there is enough game play in just a couple of games to keep me happy and the controller technology is fantastic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=150</wfw:commentRss>
		</item>
		<item>
		<title>A better directory tree</title>
		<link>http://www.honestpuck.com/wordpress/?p=149</link>
		<comments>http://www.honestpuck.com/wordpress/?p=149#comments</comments>
		<pubDate>Wed, 18 Apr 2007 08:45:59 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Macintosh</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=149</guid>
		<description><![CDATA[Rob Griffiths in Macworld has a great column but he often glosses over details and in one recent case admitted to not understanding exactly what he was proposing we use. One of his recent columns showed a single command line to display a nicely indented folder tree on your command line:
find . -type d &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>Rob Griffiths in Macworld has a great column but he often glosses over details and in one recent case admitted to not understanding exactly what he was proposing we use. One of his recent columns showed a single command line to display a nicely indented folder tree on your command line:</p>
<p><code>find . -type d | sed -e 1d -e 's/[^-][^\/]*\//--/g' -e 's/^/   /' -e 's/-/|-/'</code></p>
<p>Griffith&#8217;s then admits that he does not understand the &#8217;sed&#8217; command. So let&#8217;s have a close look at the entire thing. Understanding this stuff is actually more important than you might think, real power in manipulating text, even in your word processor, comes from understanding regular expressions.</p>
<p>The &#8216;find&#8217; command is easily understood. &#8216;find&#8217; requires a directory and optionally one or more filters to specify the files you want listed. In this case we are asking for all files of type &#8216;directory&#8217;.</p>
<p>Now onto the &#8217;sed&#8217; command. &#8217;sed&#8217; is the unix stream editor. It takes an input text stream and carries out a number of commands on each line before sending it to standard out. In our line you will see a &#8216;-e&#8217; followed by some stuff. Each of the things following the &#8216;-e&#8217; is a command. The first, &#8216;1d&#8217; says that any line numbered 1 should have the &#8216;d&#8217; command done to it, and &#8216;d&#8217; is the delete command so we lose the first line.</p>
<p>Now we get down to some regular expression fu. If you want to read the manual on the regular expressions used by sed then a quick &#8216;man re_format&#8217; (short for regular expression format) will give you an explanation. A fairly opaque explanation so my advice is to pick up a copy of &#8220;Mastering Regular Expressions.&#8221;</p>
<p>Our command line has three substitute commands (&#8217;s&#8217; for substitute) one after the other. The standard substitute command finds a regular expression and replaces it with a string - s/expression/replacement/[options], though we can replace the &#8216;/&#8217; character with anything we want so long as we use the same character all three times.</p>
<p>The first one is needlessly complex - we could change it to <code>'s/[^-][^/]*\//--/g'</code> or even  <code>'s#[^/]*/#--#g'</code> and it would do the same thing. So lets go through it step by step. The brackets define a set of characters - we could say [abc] and that would match either &#8216;a&#8217;, &#8216;b&#8217; or &#8216;c&#8217;. The &#8216;^&#8217; character means &#8216;not&#8217; so our first bracket means any character except for a &#8216;-&#8217;, that&#8217;s why it&#8217;s unnecessary - we haven&#8217;t added the &#8216;-&#8217; characters in yet so there is no need to ignore them. The second bracket pair means &#8220;not a &#8216;/&#8217; character&#8221; - note that in the original someone thought that because it uses the &#8216;/&#8217; as the expression delimiter that the expression has to be &#8216;\/&#8217; to remove the special status of the character, though in fact only the &#8216;^&#8217; has any special meaning in brackets. The star means &#8220;repeat forever&#8221;. So our regular expression means &#8220;match any string of characters up to and including a &#8216;/&#8217;&#8221;. Instead of having to use &#8216;\/&#8217; at the end of our regular expression we could change the expression delimiter to another character - I&#8217;ve chosen &#8216;#&#8217;. We then replace that with the contents of the second half, in our case a pair of minus signs. The &#8216;g&#8217; at the end is short for &#8216;global&#8217; which means the substitute command is repeated along the entire line, not just the first time our regular expression is found.</p>
<p>Now our second substitution. Here&#8217;s why we love regular expressions, in our first substitution the &#8216;^&#8217; meant &#8216;not&#8217;, but in this case it is outside a pair of brackets so it indicates the start of the line. So we are finding the start of the line and inserting three spaces, basically so it looks prettier.</p>
<p>Our final substitution finds &#8216;-&#8217; and replaces it with &#8216;|-&#8217; so we get a vertical bar along the start of our list. Notice that since there is no &#8216;g&#8217; at the end it only hits the first &#8216;-&#8217; character. You might also consider that the last two substitutions both add something to the start of the output line so we might be able to combine them. Yes, we can - right at the start of the line insert three spaces and a bar, that should work.</p>
<p>So we actually have a much shorter expression that we understand. Here it is:</p>
<p><code>find . -type d | sed -e 1d -e 's#[^/]*/#--#g' -e 's/^/   |/'</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=149</wfw:commentRss>
		</item>
		<item>
		<title>A MacBook arrives</title>
		<link>http://www.honestpuck.com/wordpress/?p=147</link>
		<comments>http://www.honestpuck.com/wordpress/?p=147#comments</comments>
		<pubDate>Sat, 14 Apr 2007 11:24:39 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Macintosh</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=147</guid>
		<description><![CDATA[So a new joy has entered my life. A black MacBook. 2ghz Core Duo with 2Gb of RAM and a 120Mb HD with a 13&#8243; screen.
The out of box experience Apple provides is still great. I love unpacking Apple products.
The first thing I have to say is that I love two fingered scrolling and the [...]]]></description>
			<content:encoded><![CDATA[<p>So a new joy has entered my life. A black MacBook. 2ghz Core Duo with 2Gb of RAM and a 120Mb HD with a 13&#8243; screen.</p>
<p>The out of box experience Apple provides is still great. I love unpacking Apple products.</p>
<p>The first thing I have to say is that I love two fingered scrolling and the two finger click as an alternative to the right button. On a laptop they are so convenient.</p>
<p>The weight is good and the battery life is acceptable at around three and a half hours. The extra speed is a godsend. The little magnetic connector for power is neat, a couple of times it&#8217;s stopped me pulling the new machine off a coffee table and still having the little LED to indicate power and charge state is nice.</p>
<p>The display is nice, better than the VAIO though I think I prefer the matte finish on the old PowerBook, when Jessi is down I&#8217;ll do a comparison. The display is Ok to use in a shaded spot outside if I crank up the brightness a little.</p>
<p>I really load up on software so I like having the 120 Gb drive. At the moment I&#8217;ve got all the development tools and then added Apache 2.0, PHP 5, Ruby and Rails. On the application front I&#8217;m using Firefox, TextMate, QuickSilver and NeoOffice for most of my stuff with a few others being used occasionally. I&#8217;ve also shoved on Fink and used it to install a couple of extra command line tools, most notably imagemagick and wget. By the time I added all that and some music I had more than half filled the drive.</p>
<p>The only caveat is that I&#8217;ve had some problems with wireless on this box. I&#8217;m not sure if it&#8217;s Telstra&#8217;s lousy network or mine that&#8217;s causing the hiccups. More investigation required, I think.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=147</wfw:commentRss>
		</item>
		<item>
		<title>xFruits - a useful &#8220;mashup&#8221; tool</title>
		<link>http://www.honestpuck.com/wordpress/?p=146</link>
		<comments>http://www.honestpuck.com/wordpress/?p=146#comments</comments>
		<pubDate>Mon, 26 Feb 2007 11:23:36 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Web</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=146</guid>
		<description><![CDATA[xFruits is a nice new web service for dealing withe RSS feeds. Basically they offer a range of ways of creating and warping RSS feeds. 
As someone who loves RSS I was incredibly excited by both the concept and the implementation. RSS is probably one of the best ways of distributing and devouring news - [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.xfruits.com/">xFruits </a>is a nice new web service for dealing withe RSS feeds. Basically they offer a range of ways of creating and warping RSS feeds. </p>
<p>As someone who loves RSS I was incredibly excited by both the concept and the implementation. RSS is probably one of the best ways of distributing and devouring news - my current list of feeds runs to about 30 that can be quickly checked each day. They include friends websites, friends Flickr uploads, tech news, book reviews, political commentary and even some news.</p>
<p>xFruit takes the concept of RSS and allows you to do any number of things to the feeds. You can combine a bunch, send email and have it turned into a feed, turn them into a PDF, a web page or an email and that&#8217;s only a partial list. It even allows the output of one transformation to become the input of another.</p>
<p>Given those facilities I immediately started to dream up ways of using the tools. You can turn your email newsletter into a web page or RSS feed. You could turn your blog into a newsletter (yes, it&#8217;s on my list of things to do) or easily create a web page, RSS feed or email newsletter that can be contributed to by a whole group.</p>
<p>So if you want to create or consume a tailored information flow I recommend you give xFruits a look.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=146</wfw:commentRss>
		</item>
		<item>
		<title>Getting &#8216;man&#8217; pages into Preview easily and safely</title>
		<link>http://www.honestpuck.com/wordpress/?p=142</link>
		<comments>http://www.honestpuck.com/wordpress/?p=142#comments</comments>
		<pubDate>Sat, 17 Feb 2007 09:47:57 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Macintosh</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=142</guid>
		<description><![CDATA[I was recently reading Macworld and saw a tip for easily opening &#8216;man&#8217; pages in Preview.
The tip isn&#8217;t half bad but suffers from the typical problems that Mac gurus run into when playing around with the Unix underpinnings of OS X. They mistake simple for simplicity and elegance.
Let&#8217;s take a look at Rob&#8217;s solution and [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently reading Macworld and saw <a href="http://www.macworld.com/weblogs/macosxhints/2006/12/manpages/">a tip for easily opening &#8216;man&#8217; pages in Preview</a>.</p>
<p>The tip isn&#8217;t half bad but suffers from the typical problems that Mac gurus run into when playing around with the Unix underpinnings of OS X. They mistake simple for simplicity and elegance.</p>
<p>Let&#8217;s take a look at Rob&#8217;s solution and see about making it clean and neat.</p>
<p>First, Rob suggests creating the solution as a shell function and placing it in your .profile. Sure, for the simple code he has this isn&#8217;t a bad idea, however if, like me, you already have a personal &#8216;bin&#8217; folder in your path then a tiny shell script would do better.</p>
<p>Second, if you have a look at the comments to Rob&#8217;s articles you&#8217;ll see that others have pointed out the two problems that leapt to my attention - what about passing multiple arguments to &#8216;man&#8217; and what about checking that we will actually get valid output. When I was reading it nobody had put all three together so let&#8217;s do it.</p>
<p><code><br />
!#/usr/bin/env bash<br />
if [ "${1}" ]; then<br />
        if man -w $@ >/dev/null; then man -t $@ | open -f -a Preview; fi<br />
else<br />
        echo "Usage: pman [-n] command" where n is section number and command is a Unix command<br />
fi<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=142</wfw:commentRss>
		</item>
		<item>
		<title>Remembering the milk</title>
		<link>http://www.honestpuck.com/wordpress/?p=143</link>
		<comments>http://www.honestpuck.com/wordpress/?p=143#comments</comments>
		<pubDate>Tue, 30 Jan 2007 08:02:42 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Web</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=143</guid>
		<description><![CDATA[I&#8217;m a fairly disorganized person. I need to keep a close rein on the chaos. I&#8217;ve tried any number of methods for looking out for the tasks and appointments I have to do.
Google Calendar has been a good help. The one thing it lacked was a decent way of handling a task list - those [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a fairly disorganized person. I need to keep a close rein on the chaos. I&#8217;ve tried any number of methods for looking out for the tasks and appointments I have to do.</p>
<p>Google Calendar has been a good help. The one thing it lacked was a decent way of handling a task list - those things that don&#8217;t have a defined date or time but need to be on the list.</p>
<p>I tried &#8220;Ta-Da List&#8221;, &#8220;Backpack&#8221; and any number of online and offline solutions. About a month ago I discovered &#8220;<a href="http://rememberthemilk.com/">Remember The Milk.</a>&#8221; This one appears to be working. Ok, it has some problems, some things I don&#8217;t like but in the whole it is well designed.</p>
<p>It supports multiple lists, three priority levels, tagging and both dated and undated events. You can also add notes to a task and share tasks among colleagues and friends. It has some smarts to the system so you can put something like &#8220;Saturday&#8221; in the due date and it will work out when the next Saturday is for you.</p>
<p>It integrates well with Google Calendar. If you add it as a calendar to be imported it adds in as a special calendar which creates an icon on every date. Click on the icon and you get a little box that includes everything due that day, overdue and (if you wish) undated tasks.  You can accomplish almost anything you like from that little box. Mark a task complete, postpone it, edit it, add a new task. It only lacks some indication that a task has a note and the ability to add a new list.</p>
<p>The drawbacks. Well, I&#8217;d like a smarter entry box for adding a task. When editing a task you have toremember the keyb oard shortcuts for changing the priority, it&#8217;s missing from the fields you can edit. The Google calendar add in creates a diary entry for every day, even when nothing is due, which stuffs up your Agenda. All things considered I&#8217;d have to recommend it.</p>
<p><b>[update]</b> Remember The Milk have now released a module that allows you to see and edit your lists from <a href="http://www.netvines.com/">netvibes</a> , my favourite web desktop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=143</wfw:commentRss>
		</item>
		<item>
		<title>Foxmarks over Google Browser Sync</title>
		<link>http://www.honestpuck.com/wordpress/?p=133</link>
		<comments>http://www.honestpuck.com/wordpress/?p=133#comments</comments>
		<pubDate>Sat, 20 Jan 2007 08:01:20 +0000</pubDate>
		<dc:creator>honestpuck</dc:creator>
		
		<category>Web</category>

		<guid isPermaLink="false">http://www.honestpuck.com/wordpress/?p=133</guid>
		<description><![CDATA[My other move has been to turn off bookmark syncing in Google Browser Sync and install Foxmarks.
The reason boils down to one thing - http://my.foxmarks.com.
Foxmarks not only stores and syncs your bookmarks it allows you to visit them in any browser on any machine without having to install anything. Perfect if you are traveling. It [...]]]></description>
			<content:encoded><![CDATA[<p>My other move has been to turn off bookmark syncing in Google Browser Sync and install Foxmarks.</p>
<p>The reason boils down to one thing - http://my.foxmarks.com.</p>
<p>Foxmarks not only stores and syncs your bookmarks it allows you to visit them in any browser on any machine without having to install anything. Perfect if you are traveling. It also means I am now using delicious less, only for the important bookmarks rather than anything I might want to just keep for a day or so.</p>
<p>The my.foxmarks.com site has a good interface. It uses a left pane to hold the marks and loads the site you click on in the main right pane. Sub folders have a little plus sign to allow them to be opened up. It doesn&#8217;t, however, allow you to do any organising, of course you can do it in Firefox. Much to recommend this little utility.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honestpuck.com/wordpress/?feed=rss2&amp;p=133</wfw:commentRss>
		</item>
	</channel>
</rss>

