Undo a Commit in TortoiseSVN

Filed under Apple on Wednesday, 28 July, 2010 4:19 pm

Go to Show Log Screen, select the revision that you want to undo, right click it and select Revert changes from this revision, this will do a reverse-merge.

Source: http://stackoverflow.com/questions/248821/undoing-a-commit-in-tortoisesvn

Copy Mac Clipboard to iPad/iPhone (Using Automator + Dropbox)

Filed under Automator + iPad on Friday, 18 June, 2010 12:51 am

I came  up with a super useful way to copy the clipboard from OS X straight to your iPad or iPhone!
Everything you need is free. Only pre-reqs are Dropbox and Automator. I've only tried this on Snow Leopard and I'm not sure if it works on Leopard. I use this to get URLs onto the iPad, notes and it even works pretty well if you need to copy a Wifi password without syncing to iTunes. Best thing about it is that the copy process is near instantaneous!

It's pretty simple and works like this:

  1. Select text
  2. Right click -> Copy to iPad (Dropbox)

See it in action:

Wooo! Now first, make sure you have Dropbox installed on both your Mac and iPad (Free)
Then we need to make a simple to make Automator service:

  1. Open Automator.
  2. Choose "Service".
  3. Search for "Run Shell Script".
  4. You want the /bin/bash shell (should be default option).
  5. Type in the following:
  6. cat > ~/Dropbox/Mac-Clipboard.txt

  7. Save the Service.
  8. Make sure it looks like this:
  9. You're done!

Now all you ever need to do is right click on some text, pretty much anywhere, choose it from the menu we created. Since the clipboard's contents are normally very small (say less than 500kb) your upload to Dropbox should be pretty much instantaneous! When you open DropBox on your iPad, the copied text will be waiting. 8) 8) 8)

After some more thinking about making this better I thought it would be good to do something like this for images using an RTF file format and a Python script. I abandoned the idea since Python doesn't have an RTF writer built-in so you would have to download it separately, make it, blah... blah... it was just getting too complicated. It's best to keep it simple and if you really want images, just copy them to  your Dropbox :wink:

If you liked this tip or think you can improve it in someway, be sure to leave a comment!

Copying Files with SCP

Filed under CLI + Linux + Mac OS X + Unix on Tuesday, 25 May, 2010 10:39 pm

When you want to copy files from one server to another, or remote to local copying.
SCP is your tool.

A typical scenario is I'm SSH'ed into a remote server and I want to copy a file on my Mac, to the Remote machine I'm sshed into.

You can copy the "remote" file with this command:

scp -r brock@192.168.1.6:/remoteDirectory /localDirectory

Rsync for Local Directory Mirroring

Filed under CLI + Linux + Mac OS X + Unix on Tuesday, 25 May, 2010 5:56 am

Just a quick post on using the amazing rsync.

Copy a local directory's contents /Volumes/src/ note the trailing slash, then place those contains inside /Volumes/des.

rsync -Pva /Volumes/src/ /Volumes/des

Key rsync Options
Option Description
-P shows progress during the transfer
-v Turn on verbose mode
-a This turns on archive mode. Bascially this causes rsync to recurse the directory copying all the files and directories and perserving things like case, permissions, and ownership on the target. (Note: Ownership may not be preserved if you are not logged in as the root user.)
-z Turns on compression during the transfer. This option compresses the data as it is copied over the network.

No Interfaces Available in Wireshark on Mac OSX

Filed under Apple + Mac OS X + Networking on Wednesday, 12 May, 2010 7:04 pm

Wireshark in Quicksilver

Easy fix. You need to give Wireshark permission to access the network devices.

sudo chown {your account name} /dev/bpf*

Subversion Server on Mac OS X Leopard Server

Filed under Apple + Mac OS X Server on Sunday, 7 March, 2010 12:13 pm

Subversion and Mac OS X Server image

Nayan Hajratwala over at Agile Shrugged managed to write a really great article describing how he got Subversion repos running on Mac OS X Server.

I got mine working on Mac OS X 10.5.8 but had to make a few different changes in order to get things working. His doesn't deal with multiple SVN repositories, only with a single one. This isn't ideal and I highly doubt anyone would go to the trouble of installing a SVN server (Click here for the full article...)

Compile ODE 0.11.0 on Mac OS X 10.6

Filed under Apple + Physics Engines on Wednesday, 30 December, 2009 10:54 am

The Official ODE instructions for compiling on Mac OS (even Linux) are pretty useless. Their wiki and instruction files included with the source code contains 'generic' instrcutions that list at what worked years ago. It frustrates me that their entire project becauses useless on one platform because it takes an inner knowledge of ODE's development process in order to get the damn thing to build.

Macports doesn't install ODE correctly either. Macports installs a PPC binary on your system (even if you have an Intel Mac). So here is the correct way to compile ODE on a Mac.

Download the ODE Source Code from Sourceforge.

Extract the source (Click here for the full article...)

Next Page »