Tag Archive for 'osx'

14
May

Ejecting stubborn Mac OSX disks

I’ve been using a Mac for several years, and I’ve had in intermittent problem: about once or twice a year, a CD-ROM will get “stuck” in the drive. In the past, I’ve only been able to eject the CD by rebooting my Mac. I’m sure a Windoze user would rejoice at only being required to reboot once or twice per year, but I find it annoying. Just a few minutes ago, I popped a recordable CD into my drive and got the following error:

"This disc cannot be used because it is not recognized"

So now I’ve got a blank (useless?) CD in my drive, but there’s no CD icon in Finder to eject, and the eject button on the keyboard isn’t causing the CD to eject either. To the Internet, Batman! A little searching on Google turned up a helpful post: Use disktool and System Profiler to eject stubborn CDROM discs. The short instructions (excerpted from the article) are:

  1. Run the System Profiler (Apple menu -> About This Mac -> More Info).
  2. I happen to know that my ComboDrive is an ATA device by Matshita, so I just clicked on the “ATA” section under “Hardware” (left pane of System Profiler), then looked for a Matshita device in the ATA Device Tree (right top pane of System Profiler). Clicking on the Matshita device in the top right pane shows detailed information in the bottom right pane: I needed to know the “BSD Name” of the drive. In my case, it’s “disk2″.
  3. Open a Terminal window and enter the following command:

    disktool -e disk2

Poof! Out comes the CD! That just eliminated about half of my annual reboots on my Mac. :)

18
Dec

Delicious Library and boardgames

I’ve been using Delicious Library to catalog our DVD’s, CD’s, and books for almost two years. It’s great for keeping track of your library, especially if you loan your books and such out to your friends–just drag the item being loaned onto the person to whom it’s being loaned.

DL will also keep track of video games, which doesn’t do me a lot of good since I don’t own any. But I do have a modest collection of boardgames that I’d like to catalog (and track!) in DL. I sent this feature request to Wil Shipley soon after I started using DL. Lo and behold, this morning I read the following (from “Transitions and Epiphanies”, about 1/3 of the way down):

…I start asking if the world even needs an app that catalogs books and DVDs and now boardgames when we could all be under five feet of water in a few years.

(Emphasis added.)

I’m running the current version (1.6.6) of DL, and there’s nothing to support boardgames in there, so I think this is a new feature being added to the upcoming version 2. I’m firing off an email to Wil begging to beta test the new version.

28
Nov

Difficulty upgrading to Leopard 10.5.1

I upgraded my PowerBook G4 to OS X “Leopard” yesterday. (Thanks, Kasandra!) Looks pretty cool, but one of the first things it tried to do was auto-update to 10.5.1. The system would present a “You must restart to apply this update” message, but upon restarting the system would hang while displaying “Configuring Installation”. After three attempts (and concomitant reboots) I finally gave up and asked Google for help. It turns out that there is a (much larger!) “standalone” 10.5.1 upgrade available from Apple’s Mac OS X 10.5.1 Update page. This did the trick, so now I can actually start exploring Leopard!

The best new feature I’ve seen so far is the Cover Flow view in Finder, a very slick way to browse your files!

28
Mar

Mac OSX Finder: “The volume cannot be found”

I love Mac OS X, but every once in a while I manage to screw up one (or more) of the network folders I dropped into the sidebar. (On this particular occasion I changed my mind after I started opening a network folder and clicked “Cancel” on the keychain access prompt.) Now every time I click on the network folder in the sidebar of Finder I’m getting the following message: The volume for “network-folder-name” cannot be found.

volume-cannot-be-found.png

I’ve had this happen before, but I can never remember how to fix it. A quick search turned up this thread which suggests blasting the entire com.apple.sidebarlists.plist file, but that’s a bit harsh if you have a dozen folders in the sidebar and only one or two of them are broken! Instead I chose to edit the plist file and delete the broken folders.

Double-clicking on ~/Library/Preferences/com.apple.sidebarlists.plist should open the Property List Editor. (If it doesn’t, see “to Diana” comment on this post.) Click on the exposure triangles for Root, useritems, and CustomListItems. Find the broken folder–they’re in the same order that they appear in the Sidebar. You can click the exposure triangle for a numbered item and see if the Name property matches your broken folder. Once you’ve selected the correction Dictionary item, click the Delete button:

plist-editor-sidebar-fix.png

Now if you open a new Finder window you’ll notice… That you still have the same problem. Doh! You need to restart Finder. Click on the “Apple” menu (top left of the screen) and choose “Force Quit…” (or just hit Apple-Option-Escape on the keyboard). Select the Finder application and hit the Relaunch button.

This doesn’t really fix the problem–the broken folder is gone, not repaired. But it’s better (imo) than whacking the entire Sidebar preferences file.

05
Sep

SMB file sharing doesn’t support Subversion on Mac OS X

I’ve received several queries about the SMB patch that I mentioned in my svn-on-osx post. Unfortunately, when I went hunting for the patch the second time around, I wasn’t able to find it. But I was finally able to solve my OSX/Subversion/scplugin problems by using the svn+ssh transport, thus:

svn+ssh://username@some.server/path/to/repository

Once I gave up on SMB file sharing, I’ve had no trouble with scplugin or Subversion on Mac OS X.

20
Apr

Testing scplugin on a local repository

On some earlier posts (tagged scplugin) I was trying to get scplugin working on my Mac (OS X 10.4.6). It seems like the problem may be due to subversion (svn) failing to communicate with my SMB-based repository. To test that, I made a local repository and created a test project within it.

First, let’s make sure DarwinPorts is up-to-date:

$ port sync Error: /opt/local/bin/port: port sync failed: sync failed doing rsync

Doh! I always forget to sudo that command…

$ sudo port sync Password: $ sudo port selfupdate DarwinPorts base version 1.200 installed Downloaded DarwinPorts base version 1.211 Configuring, Building and Installing new DarwinPorts base selfupdate done! $ port version Version: 1.211

(Just because I’m paranoid…)

Okay, now let’s see what version of svn I have installed, and compare that to what’s available from DarwinPorts:

$ svn −−version svn, version 1.3.0 (r17949) compiled Apr 4 2006, 11:47:42 $ port info subversion subversion 1.3.1, devel/subversion (Variants: mod_dav_svn, no_neon, no_bdb, mac-os-x-server-mod_dav_svn, tools)

Yep, the 1.3.1 version has made it into DarwinPorts so let’s upgrade that:

$ sudo port upgrade subversion −−−> Fetching subversion yadda yadda yadda −−−> Installing subversion 1.3.1_0 −−−> Activating subversion 1.3.1_0 −−−> Cleaning subversion $ svn −−version svn, version 1.3.1 (r19032) compiled Apr 20 2006, 15:31:38

(Paranoia again…)

Cool, the tools are up-to-date, so now it’s time to make a new local repository.

$ svnadmin create /path/to/local/repository $ svn import -m “Creating testproj” testproj/ file:///path/to/local/repository Adding testproj/some_file Committed revision 1.

Now let’s checkout a copy of the project and see how it looks in Finder.

$ svn checkout file:///path/to/local/repository/testproj svn: URL ‘file:///path/to/local/repository/testproj’ doesn’t exist

Oops, looks like I screwed up the repository import. I’ll just check out the whole repository for now, and rtfm for help with project importing later.

$ svn checkout file:///path/to/local/repository/ A svn_repository/some_file Checked out revision 1.

A quick perusal with Finder doesn’t show any visual svn status indicators, but after I made a change to the file I got to see scplugin’s “red bang” over the file icon, indicating that the file was out of sync with the repository. Woo hoo! Right-clicking or control-clicking on the changed file presents me with a Subversion context menu, from which I selected commit:

Sending some_file Transmitting file data . Committed revision 2. Process finished with exit status 0.

That looks pretty good. Unfortunately, scplugin hasn’t changed the status indicator in Finder–it’s still showing the red bang, even though the working copy and the repository are now in sync. Relaunching Finder doesn’t change this. :( Hmm…

Well, that’s some progress–at least subversion is working! I’ll play with scplugin some more and see what I can find out.

13
Apr

OSX and Windows simultaneously!

The possibilities for an Intel-equipped Mac just keep improving! The headline from an article in today’s New York Times tells it best:

Run Windows and Mac OS Both at Once

Boot Camp by Apple was great news last week, and it will still have its uses, but the news out of Parallels about running OSX and Windows simultaneously just clinched my family’s next hardware purchase–an Intel Mac Mini will be the next system to grace our desk!

04
Apr

Mac OSX Subversion with an SMB repository (again)

I just applied the Mac OSX 10.4.6 update, hoping that it would solve my problems viz a viz committing changes to an SMB-based subversion repository. Alas, I still have the same trouble with svn commit. In addition, the new update undid scplugin’s changes to Finder which indicate a file’s svn status (e.g. current, newer working copy, etc). I guess that’s not such a big deal, since the svn status is useless without the ability to commit my changes. :(

Version 1.3.1 of svn came out a day or two ago, so let’s see if that does the trick.
Downloading Mac binary svn client v1.3.1
Installing…
Testing…


515$ svn –version
svn, version 1.3.1 (r19032)
compiled Apr 4 2006, 00:30:54

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles ‘http’ scheme
- handles ‘https’ scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles ’svn’ scheme
* ra_local : Module for accessing a repository on local disk.
- handles ‘file’ scheme

516$ svn commit -m ‘Changed script to be user-independent’ my_script
subversion/libsvn_client/commit.c:873: (apr_err=5)
svn: Commit failed (details follow):
subversion/libsvn_subr/io.c:2199: (apr_err=5)
svn: Can’t write to file ‘/Volumes/svn/grading_system/db/transactions/4-7.txn/rev’: Input/output error

ARRRRRGH!

Oh well, I guess it’s time to try the (old) patch for SMB access, which means building Subversion from source. Darwin ports collection, here I come!

11
Mar

Progress on scplugin?

Thanks to Stu (no URL) and Ant, I think I’ve made some progress on scplugin! For some background, see my post on Subversion on Mac OSX and my subsequent attempts to get SCPlugin to work with Finder.

After trying Stu’s and Ant’s suggestions, I now get a Subversion menu when I control-click or right-click on a file/directory in the Finder. Woo hoo! Everything looks good, too. If I open the Subversion menu on a file which isn’t part of a svn working copy, only the Checkout and About menu items are available (as expected). Subversion working copies show the full menu (or whatever is appropriate). However, there are two things that still seem to be broken: the svn status indicators (icon overlays?) aren’t showing up in Finder, and I seem to have hosed the connection to my repository. Doh!

We’re using smb file shares to host our repository. When I first set this up, I connected to the file share (⌘K in Finder) and checked out a working copy of the repository. I could only work via the command line, but everything worked. Fastforward to a few days ago (when Stu and Ant dropped comments). I’m now trying to use scplugin again (not the command line), and all of the sudden nothing is working. It finally dawned on me that perhaps I should try the command line again. It turns out that when I first created my working copy, I must have somehow given a connection-specific smb string instead of the server name followed by the share. Here are the errors I’m getting:

svn commit -m 'Changed script to be user-independent' my_script subversion/libsvn_client/commit.c:873: (apr_err=180001) svn: Commit failed (details follow): subversion/libsvn_ra_local/ra_plugin.c:285: (apr_err=180001) svn: Unable to open an ra_local session to URL subversion/libsvn_ra_local/split_url.c:125: (apr_err=180001) svn: Unable to open repository 'file:///Volumes/server-3/my_proj/trunk/my_script’

The /Volumes/server-3 bit is where the problem lies–It should be /Volumes/sharename, instead of the third connection to this server. I did some hunting around on the net and found out how to fix broken svn repository references: use svn switch --relocate, such as:

svn switch --relocate file:///Volumes/server-3 file:///Volumes/sharename workingcopyroot

or so I thought. :( Now I’m getting the following error:

svn commit -m 'Changed script to be user-independent' my_script subversion/libsvn_client/commit.c:873: (apr_err=5) svn: Commit failed (details follow): subversion/libsvn_subr/io.c:2199: (apr_err=5) svn: Can't write to file '/Volumes/sharename/my_proj/db/transactions/3-1.txn/rev': Input/output error

Bummer. It may be time for a bug report…

04
Feb

Problem with Mac OSX Dock not “unhiding”

I had a strange problem with my Mac (OSX 10.4.4) this morning–the Dock wouldn’t “unhide”. Normally I keep the Dock hidden to save screen real estate, and when I need to fire up one of my usual applications I just drag the mouse down to the bottom edge of the screen and voilà, the Dock pops up with all of my favorite apps. But this morning the Dock was being shy and wouldn’t reveal itself. I tried toggling all the preferences, but nothing helped. I finally found this suggestion on Apple’s Finder, Dock & Dashboard discussion site (registration required, or read my version of it here):

Delete (or move/rename) the com.apple.dock.plist in your ~Library/Preferences Folder, then log out and log back in. This worked for me, but I lost my Dock settings, in particular the applications that were in my dock! It seems obvious in hindsight, but I suggest that you make a list of your docked applications before you whack the preferences file, so you won’t have to repopulate your Dock from memory.




September 2008
M T W T F S S
« Aug    
1234567
891011121314
15161718192021
22232425262728
2930  

Tags

abramoff accessibility acetylene activism aerial photo afrofunk aim4tree air america airport express alite alito amtrak andante andy anti failure any browser apache apple applescript arden arcade arden park ariana arnold ashland astronomy attic attika audio avid reader backup baen bart bathroom bbq bee beef begonia bgg bike bike hikers bike journal bikejournal biketalk bill oreilly bittorrent blacklist blog bloggercode blogroll blueberry boardgamegeek boardgames bonjour book bookcrossing boot failure bootcamp borderline chaos bugmenot bush business card cabinetry caira caitlin california candamir caroline carpet cat cateye cdrom celebration cellular phone century cheese chicken chico chimney chinese chipotle chocolate christmas chumby city bikes civilization cjd claire club club fed co op coconut coffee comfort food community computer concord congress conquest conservation consumer reports copyright costco crazybikerchick crepe crock pot cruftbox css csus curl currency custard cvntrak dagoba daniel goetz darwinports datarescue date format death delicious monster democracy now Democrat demolition dessert dickens diff disaster discrimination discworld dishwasher diskwarrior dixie belle dock doors downing street memo drm dryer drywall dump ed burke eff eggs eject election electric car electric truck electrical electricity elvgren email energy efficiency eric meyer esr etext euthanasia facebook family faq faux news feed feedreader fence finder firefox first4internet first amendment fishmeal flash flickr flooring foreign exchange foundation fox and goose framing freebsd freedback fyq garage garden geek geotag geourl gnutar go gonuls google google earth google maps gpl gracenote graywater greek green group concat gtd gunthers gutters gwbush gymnastics hacking halloween handspring hardwood harry potter headmeta high speed photograph high tech inv hoax hobbies hobby hodgins holiday holly home power magazine horcrux houseblogs how to html humor hvac ilovejackdaniels impeach inspection insulation intel internet ipod ipodder iq iraq isight itunes ivins iwantsandy java city javascript joint chiefs joseph jott journalized blue judges cup kctc khs kimkerry kitchen kyocera la salles la times labor landscape laundry law leatherbys legal lego leopard liberal library linkedin ljurban lodi logic logo lungren maaloufs mac macbook mailinator malware map marin markdown mason media media clip media reform meetup metric mexican microsoft mike comfort military milonic mindstorms mlk model railroading modoc hall monterey morning sedition motorcycle movie moving munchkin murray mushroom music mynetflix mysql naked lounge nerd score netflix network new urbanism new year nofollow nutella oatmeal obama obcz occidental occupation omni openssl oracle organic osx owp paint pair palm panasonic parallels party patch peak adventures peak oil pear pedestrian village perl petaluma php ping pingback pingomatic pingomation pingqueue pirate pl sql planet bike plasma playroom entertainment plugin plugin:preview theme plugin:text control plugin:ultimate tag warrior plumbing podcast podsite politics portupgrade potato powerbook printer programming project gutenberg pryde punk puzzle qiana quilt quilt shop quiz quote r5 records racism radio railroad recent comments recipe redalt remodel resaurant resolution restaurant restore review richmond rio americano robotics roger niello ron montana roof rootkit rss sacbee sacog sacramento sacramento spotlight magazine salad san francisco sandwich santa cruz scam scandal school days scplugin security session report shakespeare shuffle sigma siriradha sitemap snl snopes social social network software soma somafab sonicchicken sonicchicken blog sony spam spam karma spellcheck spinach spirit spoiler etiquette spring hill cheese sql sqlserver stairs standards statcounter stephen king stop loss stucco stunt subversion sudoku superbowl superhero supreme court sushi svn sysadmin tacoma tags plugin takara technology telephone television template terms and conditions textcontrol thai kitchen thanksgiving theater theme theme:borderline chaos theme:elvgren theme:elvgren wordpress google code theme:fluid blue theme:fullwidth theme:head theme:journalized theme:journalized blue theme:psycho theme:redoable theme:sharepoint like theme:simple green theme:spirit theme:steam theme:wuhan theme:yadda theme switcher thomas tigris euphrates tile tinfoil hat toc tofu tower theater training transit transit oriented development tribute u haul uneasy rhetoric university village van zant veterans day video vie viking hobby vote smart w3c wall warboss washer washington post weather web web developer web server wikipedia windows wishlist woodworking wordpress workplace wpblacklist wpgatekeeper wsj yaaarr yard