<?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>Paco Hope &#187; dvdcam</title>
	<atom:link href="http://paco.to/category/dvdcam/feed" rel="self" type="application/rss+xml" />
	<link>http://paco.to</link>
	<description>My Random Musings and Rants</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:11:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Tricking Office 2008 updater</title>
		<link>http://paco.to/2008/tricking-office-2008-installer</link>
		<comments>http://paco.to/2008/tricking-office-2008-installer#comments</comments>
		<pubDate>Mon, 07 Jul 2008 16:13:30 +0000</pubDate>
		<dc:creator>paco</dc:creator>
				<category><![CDATA[dvdcam]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://paco.to/?p=229</guid>
		<description><![CDATA[I'm not sure what the problem was, but every time I tried to update my Office 2008 installation, with the 12.1.1 updater, it would say there was no version of Office to update, even though there was. Perhaps it's because I have Office 2004 also installed. I need to be compatible with some Office 2003 [...]]]></description>
			<content:encoded><![CDATA[<p>I'm not sure what the problem was, but every time I tried to update my Office 2008 installation, with the 12.1.1 updater, it would say there was no version of Office to update, even though there was. Perhaps it's because I have Office 2004 also installed. I need to be compatible with some Office 2003 Windows users, and 2008 doesn't do it in a variety of specific places. Read on to see how you can trick the installer into updating no matter what.<br />
<span id="more-229"></span></p>
<p>So anyways, I figured out how to get the update to apply in 3 easy steps.</p>
<ol>
<li>Create a script called find_office.sh and put the following contents in it:<code>#!/bin/sh<br />
echo "/Applications/Microsoft Office 2008"<br />
exit 0</code></p>
<ol>
<li> Make sure it's executable by setting its execute permissions:<tt>chmod a+x find_office.sh</tt></li>
<li>Make sure that you put the right path to Office 2008 in the 2nd line, if you didn't install in the standard path.</li>
</ol>
</li>
<li>Go into the .mpkg folder for your updater and move the real <tt>find_office</tt> program away. In my case, I had put the updater on my desktop, so these commands looked like this for me:<br />
<code>cd ~/Desktop/Office\ 2008\ SP1\ Update\ \(12.1.0\)/Contents/Resources<br />
mv find_office find_office.orig</code></li>
<li>Copy your <tt>find_office.sh</tt> script to that location, and remove the .sh from its name. E.g.,:<br />
<code>cp ~/find_office.sh ./find_office</code></li>
<li>Now double-click the Updater. It will work. (At least it did for me)</li>
</ol>
<p>Incidentally, this made it much faster, since the standard find_office program roams all over the hard drive looking for Office installations. It took about 3-4 minutes on my system to do that. My no-op script, obviously, takes a fraction of the time and works fine, as far as I can tell.</p>
]]></content:encoded>
			<wfw:commentRss>http://paco.to/2008/tricking-office-2008-installer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft is trying to kill the Mac by writing software for it</title>
		<link>http://paco.to/2008/microsoft-is-trying-to-kill-the-mac-by-writing-software-for-it</link>
		<comments>http://paco.to/2008/microsoft-is-trying-to-kill-the-mac-by-writing-software-for-it#comments</comments>
		<pubDate>Fri, 23 May 2008 18:33:07 +0000</pubDate>
		<dc:creator>paco</dc:creator>
				<category><![CDATA[dvdcam]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://paco.to/?p=220</guid>
		<description><![CDATA[I plan to rant later about what a ridiculous flaming piece of garbage Microsoft's Office 2008 for Mac is. Today it is Remote Desktop Connection for Mac. It doesn't handle case-sensitive filesystems correctly, and I have to make a change to my filesystem to make their software work.One of the options in RDC shares your [...]]]></description>
			<content:encoded><![CDATA[<p>I plan to rant later about what a ridiculous flaming piece of garbage Microsoft's Office 2008 for Mac is. Today it is <a href="http://www.microsoft.com/mac/products/remote-desktop/default.mspx" target="_blank">Remote Desktop Connection</a> for Mac. It doesn't handle case-sensitive filesystems correctly, and I have to make a change to my filesystem to make their software work.<span id="more-220"></span>One of the options in RDC shares your Mac drives with the Windows system as if they were network shares. Pretty handy—if it worked. Here's the options in the RDC Preferences:</p>
<p><img src="http://paco.to/wp-content/uploads/2008/05/rdp-drives.png" alt="RDC Drive Sharing" /></p>
<p>As far as I can tell, this doesn't work if you format your hard disk with a case sensitive filesystem. Case sensitivity has been available since Tiger, but Leopard was the first time I actually played with it. If I share my home folder (as shown in the graphic above), have all lower-case paths and file names, I can see them in Windows. Otherwise, not a chance.</p>
<p>Furthermore, if I create a folder in Windows on my shared drive and I call it "TestFolder," the folder will actually be named "testfolder" when it gets created.  So: all lower-case paths are half-way usable. If you're like me, though, and you use mixed case in your folder names and such, you're just out of luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://paco.to/2008/microsoft-is-trying-to-kill-the-mac-by-writing-software-for-it/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Restarting MacOS Kernel Extensions</title>
		<link>http://paco.to/2008/restarting-macos-kernel-extensions</link>
		<comments>http://paco.to/2008/restarting-macos-kernel-extensions#comments</comments>
		<pubDate>Fri, 16 May 2008 16:37:46 +0000</pubDate>
		<dc:creator>paco</dc:creator>
				<category><![CDATA[dvdcam]]></category>

		<guid isPermaLink="false">http://paco.to/?p=222</guid>
		<description><![CDATA[I find that both Parallels and the CiscoVPN client get confused with all the changing I do on my network (using wired, wireless, Verizon card, etc). Sometimes it’s tough to get it all sorted out again. I’ve gotten it pretty consistent now. I just restart the appropriate kernel extensions and it all works out. Before [...]]]></description>
			<content:encoded><![CDATA[<p>I find that both <a href="http://www.parallels.com/" target="_blank">Parallels</a> and the CiscoVPN client get confused with all the changing I do on my network (using wired, wireless, Verizon card, etc). Sometimes it’s tough to get it all sorted out again. I’ve gotten it pretty consistent now. I just restart the appropriate kernel extensions and it all works out.</p>
<p>Before I run Parallels, I run this command in a terminal:<br />
<tt>sudo SystemStarter restart Parallels</tt></p>
<p>Likewise, I can kick Cisco’s VPN extensions with a similar command:<br />
<tt>sudo SystemStarter restart CiscoVPN</tt></p>
]]></content:encoded>
			<wfw:commentRss>http://paco.to/2008/restarting-macos-kernel-extensions/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leopard Migration Assistant Let Me Down</title>
		<link>http://paco.to/2007/leopard-migration-assistant-let-me-down</link>
		<comments>http://paco.to/2007/leopard-migration-assistant-let-me-down#comments</comments>
		<pubDate>Sun, 18 Nov 2007 16:20:19 +0000</pubDate>
		<dc:creator>paco</dc:creator>
				<category><![CDATA[dvdcam]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://paco.to/?p=208</guid>
		<description><![CDATA[I've upgraded 3 Macs in the last few days: a MacBook Pro, a MacBook, and a Dual G4 Power Mac. All were running the latest 10.4. I did backups to external firewire drives, then did a fresh install (formatting my old hard drive and then installing. It worked great for the MacBook Pro, but failed [...]]]></description>
			<content:encoded><![CDATA[<p>I've upgraded 3 Macs in the last few days: a MacBook Pro, a MacBook, and a Dual G4 Power Mac. All  were running the latest 10.4. I did backups to external firewire drives, then did a fresh install (formatting my old hard drive and then installing. It worked great for the MacBook Pro, but failed on the other two. Here's what I did to solve it.<br />
<span id="more-208"></span><br />
First, I copied my whole backup into a directory on my local box. I used rsync to do that:<br />
<code>rsync -aHSE /Volumes/BackupDisk/ /Users/paco/Desktop/Backup</code></p>
<p>Then I wrote a shell script to move over any applications from my backup of my Applications directory. This just checks to see if the app already exists. If it does, then it ignores it. If it doesn't exist, then it moves it over.</p>
<pre>cd /Users/paco/Desktop/Backup/Applications
for app in *
do
  if [ ! -d "/Applications/$app" ]
  then
    mv "$app" /Applications
  fi
done<!--more--></pre>
<h1>Making Users</h1>
<p>Once I had the applications moved over, then I needed to create users. I found a few decent references online, and ultimately I needed to make my own little shell script. Here's a script that creates an admin user:</p>
<pre>#!/bin/bash
NEWUSER="doofus"
dscl . -create /Users/${NEWUSER}
dscl . -create /Users/${NEWUSER} UserShell /bin/bash
dscl . -create /Users/${NEWUSER} RealName "Doofus Admin"
dscl . -create /Users/${NEWUSER} UniqueID 503
dscl . -create /Users/${NEWUSER} PrimaryGroupID 20
dscl . -create /Users/${NEWUSER} NFSHomeDirectory /Users/${NEWUSER}
dscl . -passwd /Users/${NEWUSER} *for i in staff _lpadmin _appserveradm "com.apple.sharepoint.group.1" _appserverusr admin
do
  dseditgroup -o edit -a ${NEWUSER} -t user "$i"
done</pre>
<p>I got the list of groups in my script by looking at the list of groups a properly created user (i.e., by the System Preferences) had.</p>
<p>This user has no password (see the last <tt>dscl</tt> command?). I did <tt>sudo passwd ${NEWUSER}</tt> to set their password. Since I only had 5 or 6 users, and I knew all their passwords (wife, kids, sister, etc), this worked for me. I can imagine that any <em>real</em> system administrator would have trouble with this step.</p>
<p>Finally, I made the non-admin users. Here's an example of that:</p>
<pre>NEWUSER="video"
dscl . -create /Users/${NEWUSER}
dscl . -create /Users/${NEWUSER} UserShell /bin/bash
dscl . -create /Users/${NEWUSER} RealName "Video User"
dscl . -create /Users/${NEWUSER} UniqueID 506
dscl . -create /Users/${NEWUSER} PrimaryGroupID 506
dscl . -create /Users/${NEWUSER} NFSHomeDirectory /Users/${NEWUSER}
dscl . -passwd /Users/${NEWUSER} *
dseditgroup -o create -g 506 "${NEWUSER}"
dseditgroup -o edit -g 506 -a ${NEWUSER} -t user "${NEWUSER}"</pre>
<p>Those last two commands are wrong. <img src='http://paco.to/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  They're an attempt to get the "video" group to be GID 506, the way it had been in the original system. It doesn't work. To this day I have GID problems where users aren't in the right groups for stuff. Generally speaking, though, things work fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://paco.to/2007/leopard-migration-assistant-let-me-down/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netflix Instant Viewing to my iPhone</title>
		<link>http://paco.to/2007/netflix-instant-viewing-to-my-iphone</link>
		<comments>http://paco.to/2007/netflix-instant-viewing-to-my-iphone#comments</comments>
		<pubDate>Sun, 23 Sep 2007 01:58:42 +0000</pubDate>
		<dc:creator>paco</dc:creator>
				<category><![CDATA[dvdcam]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://paco.to/?p=202</guid>
		<description><![CDATA[I subscribe to Netflix and I use a mac and an iPhone. I want to watch some of my "Instant Viewing" content on my iPhone. This process isn't for the faint of heart, and it isn't for Windows users (I don't have instructions for Windows). By following a series of steps I can: Download the [...]]]></description>
			<content:encoded><![CDATA[<p>I subscribe to Netflix and I use a mac and an iPhone. I want to watch some of my "Instant Viewing" content on my iPhone. This process isn't for the faint of heart, and it isn't for Windows users (I don't have instructions for Windows). By following a series of steps I can:</p>
<ul>
<li>Download the whole movie content without watching it. (Therefore I don't use up all my Instant Viewing minutes for the month)</li>
<li>Remove the DRM from the content, so that I can watch it offline.</li>
<li>Convert the WMV crap to MP4, which is more compatible</li>
<li>Drop it into iTunes and sync it to my iPhone.</li>
</ul>
<p><span id="more-202"></span></p>
<h2>Get the Movie</h2>
<p>The first step, being a Mac user, is to fire up Parallels for the Mac, where I have a working Windows XP instance. You must use crappy Internet Exploiter and Windows Media Player with all its DRM crap. No other choices here. I go to the "View Instantly" page and start watching a movie. While I'm watching it, I'll see a progress meter like this:</p>
<p><img src="http://paco.to/wp-content/uploads/2007/09/partialload.png" alt="Partial Upload" /></p>
<p>This shows that I'm watching a 23 minute movie. The grey bar is the play head (i.e. where I am in the movie, and the dark bar to the right shows me how much of the movie has been downloaded so far. It's only a fraction of the total movie. Can't do anything until that <strong>whole bar is ful</strong>l! Now, The surefire way to get the whole movie to load is to just watch it. You don't have to, however. You can move the play head to the right (but not really far) and it will start downloading movie you haven't watched yet. It's not linear, though. Remember that Media Player can download random bits from the middle of the movie. So, if you pull the play head all the way to the end of the movie, that doesn't mean it will download the whole thing. It can skip ahead and download just the movie near the play head. This is the part that's annoying. You have to pull the play head around bit by bit and get it to download the full movie.</p>
<p>Once the download is done, and I can freely view any part of the movie, then I'm ready to make a copy of it and remove the DRM. Let's make a copy. My Windows Login is just "Administrator" (security, shmecurity!), so I find the WMV file in the following location:</p>
<p><tt>C:\Documents and Settings\Administrator\Local Settings\Temp\AxPlayer\pbuffer.wmv</tt></p>
<p><strong>Note</strong>: Don't let the file size fool you. Moments after my file download begins, the file will be full-sized. I.e., if I do <tt><strong>dir pbuffer.wmv</strong></tt> I will see something like this:</p>
<pre>09/20/2007  07:08 AM       372,471,801 pbuffer.wmv</pre>
<p>Now there's no way I have downloaded 372 megabytes in 15 seconds. It's just a buffer. I only have the full movie when that progress meter shows that the whole movie has loaded.</p>
<p>At this point I make a copy:</p>
<p><tt>copy C:\Documents and Settings\Administrator\Local Settings\Temp\AxPlayer\pbuffer.wmv "..\..\..\My Documents\movie1.wmv"</tt></p>
<h2>Remove DRM</h2>
<p>For removing the DRM, I use well known tools for doing it. I didn't write these things, I didn't write the instructions on how to do it. I just followed the instructions. One good web site is <a href="http://www.mydigitallife.info/2007/07/20/crack-and-remove-windows-media-video-wmvasf-and-audio-wma-drm-license-acquistion-in-wmp-player-with-fairuse4wm-13-fix-2-and-mirakagi/">this one</a>. I found a mirakagi.zip using <a href="http://dl.torrentreactor.net/download.php?id=1123416&amp;name=Mirakagi%20WM-DRM%20Removal%20Tool">BitTorrent</a>.</p>
<p>Generally, this stuff works as advertised. The only notes I have for this step are:</p>
<ul>
<li>I had to upgrade to Windows Media Player 10 by using <a href="http://download.microsoft.com/download/1/2/A/12A31F29-2FA9-4F50-B95D-E45EF7013F87/MP10Setup.exe">this link from Microsoft</a>. I had WMP version 9. There are various warnings about compatibility of mirakagi with different variations of WMP 11, so I stayed with 10. It works fine.</li>
<li>I have to start the WMV movie playing and get the license window that says "Press Play to play your movie." I don't close that window, or press Play. While it's open, I have license keys to the file, and the FairUse4WM program can do its thing.</li>
</ul>
<p>I'm not sure what it means, but since I save the WMV files, I have the DRM-protected versions of the movies and can watch them later. I don't know if Netflix tracks my usage and records the hours spent playing if I don't play the movie in my web browser.</p>
<h2>Convert to MP4 for iPhone</h2>
<p>At this point, I have an unprotected WMV file, which usually has a file name like <tt>[NoDRM]-movie1.wmv</tt>. When I'm running Parallels, my virtual machine's C: drive is available to me as a folder in MacOS. To convert it for my iPhone, I use a program called <a href="http://www.isquint.org">iSquint</a>. It's fantastic. Just point and click. I browse my virtual machine's C: drive, pick the NoDRM file, and then tell it to convert it and store it somewhere on my Mac. Done. If I use MP4 encoding, the 23 minute movie that I tested would convert in about 7 or 8 minutes. If I used h.264 encoding, it takes about 20-21 minutes.</p>
<h2>Sync to iTunes</h2>
<p>Finally, iSquint has a "add to iTunes" checkbox. So, when it does its conversion, it automatically notifies iTunes of the new movie and puts it into my library. I have to manually go into iTunes and give it the information for the episode number, show name, etc. None of that's in the WMV or the MP4.</p>
]]></content:encoded>
			<wfw:commentRss>http://paco.to/2007/netflix-instant-viewing-to-my-iphone/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone and Wireless Router Config</title>
		<link>http://paco.to/2007/iphone-and-wireless-router-config</link>
		<comments>http://paco.to/2007/iphone-and-wireless-router-config#comments</comments>
		<pubDate>Mon, 02 Jul 2007 02:57:11 +0000</pubDate>
		<dc:creator>paco</dc:creator>
				<category><![CDATA[dvdcam]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://paco.to/?p=190</guid>
		<description><![CDATA[See my other post about my D-Link DIR-655 wireless router. I wanted to connect my iPhone to it. I started with a strong password and maximum security, but it didn't want to connect. I backed down the security settings a little bit, and the iPhone connects just fine.I started with WPA2 Personal as my only [...]]]></description>
			<content:encoded><![CDATA[<p>See my other post about my D-Link DIR-655 wireless router. I wanted to connect my iPhone to it. I started with a strong password and maximum security, but it didn't want to connect. I backed down the security settings a little bit, and the iPhone connects just fine.<span id="more-190"></span>I started with WPA2 Personal as my only network protection option. I also set it to use a pretty long, strong password: <tt>WeDon'tDoWindowsHere</tt>. I'm not sure if that's longer than the iPhone can grok or if that apostrophe interfered. Either way, it didn't like that. Furthermore, the iPhone didn't seem to like WPA2, at least as implemented by the DIR-655. If I dropped to a simple password, and I dropped to WPA authentication, the iPhone connected fine. WPA2 never worked.</p>
<p>In the end, I got a pretty reasonable password (15 characters, just alpha numeric) and WPA encryption/authentication. And now my iPhone gets reception all over the yard, just like the MBP does.</p>
<p>I feel like I'm essentially in an arms race with my neighbors. Whoever gets the biggest Wi-Fi antenna wins.</p>
]]></content:encoded>
			<wfw:commentRss>http://paco.to/2007/iphone-and-wireless-router-config/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>D-Link DIR-655: Excellent Wireless Router</title>
		<link>http://paco.to/2007/d-link-dir-655-excellent-wireless-router</link>
		<comments>http://paco.to/2007/d-link-dir-655-excellent-wireless-router#comments</comments>
		<pubDate>Mon, 02 Jul 2007 02:48:42 +0000</pubDate>
		<dc:creator>paco</dc:creator>
				<category><![CDATA[dvdcam]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://paco.to/?p=189</guid>
		<description><![CDATA[I just bought a D-Link DIR-655 "Xtreme N Gigabit Router" for the house. I have two major problems: aluminum siding that seems to block my old Netgear's signal pretty well, and a MacBook Pro, which we all know has sucky Wi-Fi reception. Well, I'm blogging this from my hammock in the back yard. I call [...]]]></description>
			<content:encoded><![CDATA[<p>I just bought a D-Link DIR-655 "<a href="http://www.dlink.com/products/?pid=530&amp;sec=1" class="pageHeader">Xtreme N Gigabit Router</a>" for the house. I have two major problems: aluminum siding that seems to block my old Netgear's signal pretty well, and a MacBook Pro, which we all know has sucky Wi-Fi reception. Well, I'm blogging this from my hammock in the back yard. I call that a success.<span id="more-189"></span>The nice thing about the DIR-655 is that it has darn near everything I could ever want. It's fast as blazes around the house, and it has gigabit ethernet. I plan to do some wired gigabit ethernet devices in the house, so I needed a gig-E switch. I also needed a beefier Wi-Fi signal to get through the thick skull of my MacBook Pro. This has it all. It was on sale at <a href="http://www.microcenter.com/" target="_blank">Microcenter</a><br />
for $139. Sold.</p>
]]></content:encoded>
			<wfw:commentRss>http://paco.to/2007/d-link-dir-655-excellent-wireless-router/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GUC-232A Driver for MacOS X</title>
		<link>http://paco.to/2005/guc-232a-driver-for-macos-x</link>
		<comments>http://paco.to/2005/guc-232a-driver-for-macos-x#comments</comments>
		<pubDate>Wed, 23 Nov 2005 04:28:03 +0000</pubDate>
		<dc:creator>paco</dc:creator>
				<category><![CDATA[dvdcam]]></category>

		<guid isPermaLink="false">http://blog.paco.to/?p=64</guid>
		<description><![CDATA[I use this USB-to-serial adapter to talk to my Garmin eMap GPS unit. It's a little hard to find the driver for it, and all the web sites that claim to be "driver central" or some such thing are obnoxious. They want registrations, they're covered in ads, etc. Well, I hunted arond and found the [...]]]></description>
			<content:encoded><![CDATA[<p>I use this USB-to-serial adapter to talk to my Garmin eMap GPS unit. It's a little hard to find the driver for it, and all the web sites that claim to be "driver central" or some such thing are obnoxious. They want registrations, they're covered in ads, etc. Well, I hunted arond and found the driver <a href="http://www.aten-usa.com/?support_df&amp;Item=UC232A">here</a>.</p>
<p>This driver worked out-of-the-box for me. I've had a few minor glitches, which you can read about below.</p>
<p><span id="more-64"></span></p>
<p>Before I could figure out how to update the driver to understand <i>my</i> version of this device, I had to use the Apple System Profiler to find out what information it sends to the OS. When I find it under USB Hardware in the System Profiler, I see:</p>
<table>
<tr>
<th colspan="2">USB Device:</th>
</tr>
<tr>
<td>  Version:</td>
<td>	0.01</td>
</tr>
<tr>
<td>  Bus Power (mA):</td>
<td>	500</td>
</tr>
<tr>
<td>  Speed:</td>
<td>	Up to 12 Mb/sec</td>
</tr>
<tr>
<td>  Product ID:</td>
<td>	0x2008</td>
</tr>
<tr>
<td>  Vendor ID:</td>
<td>	0x0557</td>
</tr>
</table>
<p>Note that 0x2008 is hexadecimal. Using the calculator, I turn that into 8200 decimal. Likewise, I turn 0x0557 into 1367 decimal.</p>
<p>I perform the normal system installation as per their instructions. I don't restart my computer. This is MacOS, not Windows. Even a kernel extension doesn't <i>require</i> a reboot.</p>
<p>I use Cmd-Option-Esc to kill the installer after it gets to the "Restart" button.</p>
<p>Then I open a Terminal and run a few commands:</p>
<pre>
cd /System/Library/Extensions/ProlificUsbSerial.kext/Contents
sudo cp Info.plist Info.plist.dist
sudo vi Info.plist
</pre>
<p>The <code>cp</code> command is simply to keep a copy of the original. I like to be neat and have it for reference.</p>
<p>When I edit the Info.plist file, I change two integer values. I change <code><font color="brown">&lt;integer&gt;8963&lt;/integer&gt;</font></code> to <code><font color="navy">&lt;integer&gt;8200&lt;/integer&gt;</font></code> and <code><font color="brown">&lt;integer&gt;1659&lt;/integer&gt;</font></code> to <code><font color="navy">&lt;integer&gt;1367&lt;/integer&gt;</font></code>.</p>
<p>Now I want to load my kernel extension. I type the following at the command line:<br />
<code>sudo kextload /System/Library/Extensions/ProlificUsbSerial.kext</code><br />
Easy, huh? I don't understand why installers won't do that. They insist on making you restart.</p>
<p>To confirm that you have the driver properly installed and configured, run <code>ls /dev/cu.usbserial</code>. If that file exists, the driver is correctly installed. If that file doesn't exist, then you need to try something else.</p>
]]></content:encoded>
			<wfw:commentRss>http://paco.to/2005/guc-232a-driver-for-macos-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vgrind under MacOS X</title>
		<link>http://paco.to/2005/vgrind-under-macos-x</link>
		<comments>http://paco.to/2005/vgrind-under-macos-x#comments</comments>
		<pubDate>Fri, 02 Sep 2005 15:22:45 +0000</pubDate>
		<dc:creator>paco</dc:creator>
				<category><![CDATA[dvdcam]]></category>

		<guid isPermaLink="false">http://blog.paco.to/?p=42</guid>
		<description><![CDATA[MacOS X ships with groff. It even includes a shell script called vgrind which helps format and print C, C++, and other kinds of code. I find it really useful. However, it's broken as shipped with MacOS X. Here's a quick fix. (Updated for Tiger) The simplest fix is to find the tmac.vgrind file and [...]]]></description>
			<content:encoded><![CDATA[<p>MacOS X ships with <a href="http://www.gnu.org/software/groff/groff.html">groff</a>. It even includes a shell script called <code>vgrind</code> which helps format and print C, C++, and other kinds of code. I find it really useful. However, it's broken as shipped with MacOS X. Here's a quick fix. (Updated for Tiger)</p>
<p><span id="more-42"></span></p>
<p>The simplest fix is to find the <code>tmac.vgrind</code> file and put it in the right directory. As it is, the file exists but in the wrong place. So when it's time to invoke <em>troff</em>, it isn't found and <em>vgrind</em> fails.</p>
<ul>
<li><code>sudo ln /usr/share/groff/tmac/tmac.vgrind /usr/share/groff/1.19.1/tmac/</code></li>
</ul>
<p>That's the simplest way to get up and going. It's not very good on C++, though. There's another file called <code>vgrindefs</code> that tells <code>vgrind</code> how to recognize the syntax of various languages.  I find that <a href="http://www.freebsd.org/">FreeBSD</a>'s <a href="http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/usr.bin/vgrind/vgrindefs.src?content-type=text/plain"><code>vgrindefs</code> file</a> is better. I recommend downloading that file and copying it to <code>/usr/share/misc</code>:</p>
<ul>
<li><code>/usr/bin/ftp -o vgrindefs \<br />
'http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/usr.bin/vgrind/vgrindefs.src?content-type=text/plain'</code></li>
<li><code>sudo cp vgrindefs /usr/share/misc</code></li>
</ul>
<p><strong>Paper size</strong>: It turns out that the default paper size setting for all things <code>troff</code> related is A4.  If you use a4 paper, lucky you.  If you don't, then you need to change your paper size.  The following bit of perl magic will edit every file named DESC in your <code>/usr/share/groff/1.19.1/font</code> directories and set the papersize from a4 to 'letter'.</p>
<ul>
<li><code><br />
perl -pi -e 's/^papersize a4/papersize letter/' /usr/share/groff/1.19.1/font/*/DESC<br />
</code></li>
</ul>
<h2>Using vgrind</h2>
<p>To use <em>vgrind</em>, simply provide one or more code files on the command line. It spits out Postscript on standard out, meaning that you have to capture that output to a file. Then you probably want to convert it to PDF so that you can view it with Preview and print it.</p>
<p>I do it this way:</p>
<pre>vgrind wtf.cc | ps2pdf - wtf.pdf</pre>
<p>Now I can open wtf.pdf and print from Preview. Note that I used the <code>ps2pdf</code> command there. That's part of Ghostscript, which you can get easily using <a href="http://finkcommander.sourceforge.net/">Fink Commander</a>. In theory, Preview can convert Postscript to PDF, but I've never seen it do a credible job. It either takes <em>forever</em> or it just hangs.</p>
<p>If you're interested, here's an example:</p>
<ul>
<li>The C++ file: <a href="/blog/wtf.cc">wtf.cc</a></li>
<li>The corresponding PDF file: <a href="/blog/wtf.pdf">wtf.pdf</a></li>
</ul>
<p>This particular example illustrates a bug in GCC that I found on the <a href="http://gcc.gnu.org/ml/gcc-help/2001-06/msg00053.html">gcc mailing list</a>. I've duplicated this behavior on Intel Linux (Fedora Core 1), but on no other platform. FreeBSD/AMD, OpenBSD Intel, MacOS X PPC, Solaris Sparc, etc. None exhibit this floating point issue.  But that's beside the point...</p>
]]></content:encoded>
			<wfw:commentRss>http://paco.to/2005/vgrind-under-macos-x/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Taking over an account in MacOS X</title>
		<link>http://paco.to/2005/taking-over-an-account-in-macos-x</link>
		<comments>http://paco.to/2005/taking-over-an-account-in-macos-x#comments</comments>
		<pubDate>Thu, 11 Aug 2005 17:15:03 +0000</pubDate>
		<dc:creator>paco</dc:creator>
				<category><![CDATA[dvdcam]]></category>

		<guid isPermaLink="false">http://blog.paco.to/?p=63</guid>
		<description><![CDATA[A user recently left our company, and he didn't clean up any part his laptop. He didn't tell us his account password and he didn't create an account that we could use. We wanted to gain access to his laptop and to recover any company data before reformatting the hard drive and reassigning the laptop. [...]]]></description>
			<content:encoded><![CDATA[<p>A user recently left our company, and he didn't clean up any part his laptop. He didn't tell us his account password and he didn't create an account that we could use. We wanted to gain access to his laptop and to recover any company data before reformatting the hard drive and reassigning the laptop. I knew that the steps would be (1) boot to single user mode, and (2) clobber his password so we could use his account. I had never done that before, and a search on the net didn't turn up anything exactly as I needed. Here's the commands I did.<br />
<span id="more-63"></span></p>
<ol>
<li> Boot to single user mode. There's lots of advice on how to do this. Basically, hold down &#x2318;-S while the system boots until you see text on the screen.</li>
<li>Mount the filesystem read/write. I just type <tt>mount /</tt></li>
<li>Normally I'd use <tt>niutil</tt> to modify netinfo entries. In single-user mode, though, that doesn't work. The netinfo daemon isn't running. Rather than figure out what it takes to run the netinfo daemon, I figured out what it takes to do this stuff directly on the netinfo database files.
<ol>
<li> Verify that you can read the netinfo database. I use:<br />
<code>nicl -raw /var/db/netinfo/local.nidb -list /users</code></li>
<li>Clobber the password. In my case, I just wanted to destroy it. That way I could log in as this user with no password at all.
<pre>nicl -raw /var/db/netinfo/local.nidb -destroyprop /users/<font color="brown"><b>joesmith</b></font> passwd</pre>
<p>Where <font color="brown"><b>joesmith</b></font> is the userid that I needed to access.<br />
If you don't know the short user name of the user you're trying to manipulate, the list from the previous step will show you the short names. Non-system (i.e. real people's) user accounts will be listed last. Intuition will usually tell you<br />
which one you want.</li>
</ol>
<li>Type exit to finish booting normally into multi-user mode. I was able to login as the user and just press "enter" for their password.</li>
</ol>
<p>I did this on Panther, but I have tested the nicl command on Tiger and it seems to behave the same. I can't see any reason why this wouldn't work exactly the same on Tiger as it does on Panther.</p>
]]></content:encoded>
			<wfw:commentRss>http://paco.to/2005/taking-over-an-account-in-macos-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

