Archive for the 'mac' Category

Using Sage with Fluid

Above is Sage running in Fluid.app, which is a “SSB” (Site Specific Browser). I am starting to like using the Sage notebook this way because it doesn’t interfere with my regular browsing and it’s nice having a dock icon to show your friends ;-)
Here’s how you can get it up and running in no time:
1) Install Fluid.app (http://fluidapp.com)
2) Create a new SSB by pointing it to http://localhost:8000
3) You can use this Sage logo for a dock icon (the icon is from artwork done by Sirio who originally posted it to the sage-devel mailing list) 
Obviously this will not work if you don’t run sage from elsewhere. I thought about including some script-fu to make it launch Sage automatically, but since I do sage -br so often it’s rather pointless. 

remove /home directory on leopard

If you’re like me and are curious about everything on your system, you might like this tip:

http://www.tipstrs.com/tip/1821/Fix–home-directory-after-installing-Leopard

It shows you how to remove the /home directory in your root on a Leopard machine.

Updated version of Colloquy which fixes Python plugins on Leopard

You can find an updated binary distribution of Colloquy here:

http://yiqiang.org/Colloquy.zip

The only modification is that it is linked using -weak_library so that it uses Python 2.5 if it exists on your machine and falls back to Python 2.3 if you’re using 10.4. This is needed because Python plugins for Colloquy need the pyobjc bridge, which is in Python 2.5 (as shipped with Leopard), but not Python 2.3.

You can find a sample plugin here:

http://yiqiang.org/sage-devel-trac.py

To install it, drop it into

~/Library/Application Support/Colloquy/PlugIns/

and either restart Colloquy or type /reload plugins.

Fixing home and end key for Terminal.app in Leopard

I’ve finally found a good solution for making the home/end keys work as expected in Terminal.app on Leopard.

  1. Go to http://www.starryhope.com/tech/apple/2006/keyfixer/, download and install it.
  2. Open up Terminal.app and go to Preferences (Cmd+,)
  3. Find the Keyboard tab for your settings
  4. Find the entry for home, click on edit, change “Action” to “send string to shell” and type in ctrl+a (it should expand it to \001)
  5. Repeat this for the ‘end’ key, and type in ctrl+e

Restart Terminal.app and voila!