Archive for the ‘OS X’ Category

Accessing the clipboard from OS X command-line

Posted by michael on April 22nd, 2009 under OS X
Tags:  •  3 Comments

pbcopy and pbpaste are the OS X alternatives to the POSIX tool xclip.
pbcopy takes the standard input and places it in the specified paste-board. If no pasteboard is specified, the general pasteboard will be used by default.
pbpaste removes the data from the pasteboard and writes it to the standard output.
For example:
user@host:~/Projects/some/dir/that/is/long$ pwd | pbcopy
The working [...]

Python 3.0 + py30-readline on OS X (MacPorts)

Posted by michael on January 1st, 2009 under Code, OS X
Tags: , , ,  •  No Comments

Python 3.0 (release) seems to be in MacPorts now, but the py30-readline package fails to build:
—> Building py30-readline
Error: Target org.macports.build returned: shell command ” \
cd “/opt/local/var/macports/build/_opt_local_var_ \
macports_sources_rsync.macports.org_release_ports \
_python_py30-readline/work/Python-3.0/Modules” && \
/opt/local/Library/Frameworks/Python.framework/ \
Versions/3.0/bin/python3.0 setup.py build ” returned \
error 1
Command output: readline.c:396: warning: passing \
argument 1 of ‘free’ discards qualifiers from pointer \
target type…
I fixed it [...]

Open MacVim tabs from command-line

Posted by michael on October 13th, 2008 under OS X
Tags: , ,  •  5 Comments

MacVim takes vim and provides better integration with Apple’s OS X - I’ve only just started using it and I am already loving it. Provided along with the application is a wrapper-script written to handle calls from the command-line:
cd project
mvim project_file.php
MacVim supports tabs, but unfortunately calling mvim multiple times from the command-line results in multiple [...]

Update GetBundle to use a custom subversion binary

Posted by michael on September 24th, 2008 under OS X
Tags: , ,  •  1 Comment

GetBundle currently ships with it’s own svn binary from the 1.4 branch, but it is easy enough to make it use a different one.

Open TextMate
Go to TextMate > Preferences > Advanced
Click Shell Variables
Add a new variable called TM_SVN and set it to the path of the binary you want to use

Close the preference pane and [...]

Free OS X screencasting (with VNC)

Posted by michael on September 15th, 2008 under OS X
Tags: , , , , , ,  •  1 Comment

You can use vnc2swf and a VNC server on OS X (any OS really, but these instructions are for OS X) to easily and quickly make your own screencasts. There is a bit of preparation involved, but nothing strange. These are the steps you have to follow (on OS X 10.4.11, Tiger):
Install Xcode Tools, Apple [...]