Liten Available on Apple Downloads
30 January 2008Liten, the commandline deduplication tool, is now available from Apple Unix Downloads:
http://www.apple.com/downloads/macosx/unix_open_source/liten.html
Permanent fix for readline problems on Leopard with IPython
19 January 2008At last! A permanent fix for readline on IPython:
http://www.oreillynet.com/onlamp/blog/2008/01/tpt_tiny_python_tip_fixing_rea.html
Great Tool for Launchd
14 January 2008I recently started using Lingon. It is good stuff!
My Spaces Configuration for Leopard
28 October 2007Here is a screenshot of my current Spaces config for Leopard. I have been tweaking things for about a year, as I had a Developer Edition. If you have any suggestions on improvement let me know.
IPython tab completion fix on Leopard
26 October 2007Update: Just install the EGG FIX
http://ipython.scipy.org/moin/InstallationOSXLeopard
Are you like me? Did you crack, or should I say, rip, open Leopard and then realize that IPython, “no workie”? Thanks to some great advice on the PythonMac mailing list from, Edward Moy, you can get tab complete to work.
1. Download and install easy_install for the native Python on Leopard.
2. Install IPython:
sudo easy_install ipython
3. open IPython and type:
import readline
readline.parse_and_bind ("bind ^I rl_complete")
4. IPython now works, but you need to manually do this until there is a permanent workaround.
Thanks Ed!
(Note for the future, this is Oct. 26th, 2007, I am sure this will be solved in a week or two. If you have some other problem with Leopard and IPython, this won’t fix it 2 years from now
)
Update: Thanks to the comment by Klokan here is the fix until there is a patch for IPython:
Edit your ~/.ipython/ipy_user_conf.py to look like this:
""" User configuration file for IPython
This is a more flexible and safe way to configure ipython than *rc files
(ipythonrc, ipythonrc-pysh etc.)
This file is always imported on ipython startup. You can import the
ipython extensions you need here (see IPython/Extensions directory).
Feel free to edit this file to customize your ipython experience.
Note that as such this file does nothing, for backwards compatibility.
Consult e.g. file 'ipy_profile_sh.py' for an example of the things
you can do here.
See http://ipython.scipy.org/moin/IpythonExtensionApi for detailed
description on what you could do here.
"""
# Most of your config files and extensions will probably start with this import
import IPython.ipapi
ip = IPython.ipapi.get()
# You probably want to uncomment this if you did %upgrade -nolegacy
# import ipy_defaults
def main():
# Handy tab-completers for %cd, %run, import etc.
# Try commenting this out if you have completion problems/slowness
# import ipy_stock_completers
# uncomment if you want to get ipython -p sh behaviour
# without having to use command line switches
# import ipy_profile_sh
o = ip.options
# An example on how to set options
#o.autocall = 1
o.system_verbose = 0
#added to fix readline support, temporarily
import readline
readline.parse_and_bind ("bind ^I rl_complete")
main()
~
Using AutoFS on OS X Leopard-How To For The First Time
26 October 2007If you are on old hand at *nix, you will, of course, now how to use autofs. You just uncomment /net in /etc/auto.master. Well TODAY, is your lucky day if you are on leopard. You will be in for a massive treat when you realize that this now “just works” in Leopard. You don’t need to uncomment files, just type ls -l in /net. You have no idea, and I mean it, no idea, how happy this makes me!
Here is the trick:
Your NFS Server must export “insecure” shares. They still haven’t fixed this as demonstrated here:
This is attempting to connect to an NFS server without the “insecure” option:
cd 10.0.1.2
cd: no such file or directory: 10.0.1.2
[ngift@Macintosh][H:7356][J:0]> ls -l /net/10.0.1.2/mnt/raid
ls: /net/10.0.1.2/mnt/raid: Operation not permitted
[ngift@Macintosh][H:7357][J:0]> ls -l /net/10.0.1.2/mnt/raid
ls: /net/10.0.1.2/mnt/raid: Operation not permitted
[ngift@Macintosh][H:7358][J:0]> pwd
/Users/ngift
This is attempting to connect after I changed the CentOS 5 server to export “insecure”.
[ngift@Macintosh][H:7359][J:0]> ls -l /net/10.0.1.2/mnt/raid
total 73
drwx--x--- 2 root wheel 4096 Oct 6 22:54 backups
drwxr-xr-x 8 root wheel 4096 Jun 3 13:23 home
drwx--x--- 2 root wheel 4096 Dec 27 2006 mail
drwxrwxrwx 18 root wheel 4096 Jul 21 23:12 squid_cache
drwxr-xr-x 2 root wheel 4096 Feb 19 2007 svn_root
drwxr-xr-x 11 root wheel 4096 Apr 13 2007 theplanet
drwxr-xr-x 4 root wheel 4096 Apr 13 2007 theplanet-config
drwxr-xr-x 5 1002 1002 4096 Mar 21 2007 wwwroot
drwxrwxrwx 2 root wheel 4096 Aug 25 21:16 xen_instance
In that code block I changed the NFS server to export insecure. This is my exact config file on Cent OS 5:
/mnt/raid *(rw,insecure,no_root_squash)
And a FYI, AutoFS is apparently multi-threaded, so when the network socket blocks, beachball for the non-programmer, things continue to work. Very nice addition to AutoFS!
Leopard AutoFS
26 October 2007I have to say, using autofs on OS X is like some sick fantasy, that suddenly came true. WTF, now OS X is a real *nix box. Yeah, baby, yeah….., to quote Austin Powers…
Zen of Mac
27 August 2007I wrote a reasonable popular posting on the Zen of Mac for O’Reilly:
http://www.oreillynet.com/onlamp/blog/2007/08/zen_of_mac.html
I will follow up with more later.
Computers For Kids?
17 June 2007My kid is now a little over 6 months old and is completely fascinated when I am programming or on the computer. When do I buy him his first computer? Isn’t there some Mac for kids or something like that? If I could teach him python by say 4 or 5 years old….heck I could just hand my work off to him….
Microsoft Monkey Business
17 June 2007With all of the sillyness about MS suing Linux, botnets, Vista, Zune…blah..blah..blah. You wonder how the heck did things get so bad so quick for Microsoft. Well, did it all start here? You really have to put things in perspective…this guy now runs Microsoft:
http://www.youtube.com/watch?v=Nc4MzqBFxZE
Basically, Steve Balmer is very unlikeable, looks uncomfortable and seems to be slightly nuts…in a non-mad scientists way..more in a rogue truck driver way.