Jim Roepcke's weblog have browser, will travel (est. 1999)

26Dec/09Off

links for 2009-12-26

Filed under: Uncategorized No Comments
16Dec/09Off

Git is my friend

I know Git is my friend because Git helps me out in a pinch. I think Git's the kind of friend that would help me move...

I'm working on some new features, this morning, and a customer comes in and wants the latest build of their app on their iPhone... ack, I have uncommitted changes on my branch, but I need to checkout their branch. No problem...

git stash
git checkout customerbranch
# build their app
git checkout previousbranch
git stash apply

...and I'm back to where I was a few minutes ago without having to clone another copy of repository or commit unfinished work.

Thanks Git, you're a great friend!

Tagged as: No Comments
15Dec/09Off

links for 2009-12-15

Filed under: Uncategorized No Comments
6Dec/09Off

VMWare Fusion 3: vmmon.kext was installed improperly

Here's a tip if you're having trouble installing/running VMWare Fusion 3 on Mac OS X 10.6 Snow Leopard.

The installer displayed this error message:

System extension cannot be used

The system extension "/Library/Application Support/VMWare Fusion/kexts/vmmon.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

Turns out I still had remnants of VMWare Fusion 2 installed. I ran the Uninstaller that came with VMWare Fusion 3, then ran the installer again... the install finally worked!

Filed under: Uncategorized No Comments
5Dec/09Off

links for 2009-12-05

Filed under: Uncategorized No Comments
4Dec/09Off

links for 2009-12-04

Filed under: Uncategorized No Comments
30Nov/09Off

links for 2009-11-30

Filed under: Uncategorized No Comments
28Nov/09Off

links for 2009-11-28

Filed under: Uncategorized No Comments
21Nov/09Off

Open class listed in Java Stack Trace in Eclipse

I whipped up a little Mac OS X service today (using ThisService 2.0.2 and AppleScript).

Where I'm working right now we run WebObjects applications (which are written in Java of course) in the Terminal. If there's an exception, a stack trace is written to the Terminal. We'll find and remember an interesting stack frame from the trace (which includes the class name and the line number), then switch to Eclipse, load that class into an editor and jump to the line number.

This service automates that process. Just triple-click the stack frame's line in Terminal and activate this service. It will (using AppleScript) activate Eclipse, and then load the class using the Cmd-Shift-T keyboard shortcut, and then go to the line number using the Cmd-L keyboard shortcut. (If you have removed or changed those shortcuts, this service will not work.)

How to install in Mac OS X Snow Leopard:

Download http://files.me.com/roepcke/9zxcla

In System Preferences > Universal Access, turn on "Enable access for assistive devices".

Decompress this downloaded zip file and copy the .service file into ~/Library/Services.

In System Preferences > Keyboard, select Services on the left, and enable the "Open Selected Stack Trace line..." service. You can optionally set a keyboard shortcut by double-clicking on the right of that row. I used command-option-control-f, but it's up to you.

Note: if you set a keyboard shortcut for the service, you MUST LET GO OF THE KEYS AS SOON AS POSSIBLE after activating the service, as it works by simulating key presses in Eclipse. If you still have the keys for the service's shortcut pressed, the service will fail.

Also note, if you have multiple Eclipse instances open, I have NO IDEA which one will be activated. And if Eclipse isn't already open, it will launch an Eclipse (not necessarily the one you want if you have more than one) but will fail after that. Launch Eclipse fully before using the service!

Absolutely no warranty implied or given. I release the bundled AppleScript into the public domain.

PS: I'm not an AppleScript programmer, so I'm sure the code looks horrible, but it "works for me". :)

Filed under: Uncategorized No Comments
16Nov/09Off

links for 2009-11-16

Filed under: Uncategorized No Comments

Roepcke Computing Solutions

Jim Roepcke specializes in development and mentoring for iPhone and Mac OS X / Cocoa, WebObjects, and Python.

Contact Jim for more information.

Archive Calendar

March 2010
S M T W T F S
« Dec    
 123456
78910111213
14151617181920
21222324252627
28293031  

Blogroll

Saved Searches

Willing to Fail

Jim Roepcke is Willing to Fail

WebObjects book

I co-authored this book

Badges

Proud Member of the Association for Computing Machinery

Listed on BlogShares

Blog Directory - Blogged

Recent tweets

Meta