Technical notes, my online memory

Thursday, November 17, 2011

Create an array of identical strings in python

›
To create an array of identical strings in python (sometimes useful for testing): In [12]: list("sdfsd" for x in range(1,4)) Out[...
1 comment:
Wednesday, November 16, 2011

OS X groups, subgroups and GeneratedUIDs

›
OS X groups are more confusing than they need to be, due to the use of UUIDs. First, lets create a group to test with and include a single ...
Tuesday, November 15, 2011

Using netgroups to control login and admin privileges on OS X

›
I wanted to use netgroups defined in /etc/netgroup to control: Login access via access_loginwindow OS X admin privs via the admin local gr...

OS X Service ACLs com.apple.access_*

›
To place ACLs on OS X services, you can create groups like this: sudo dseditgroup -o create -t group com.apple.access_loginwindow sudo dsed...
Monday, November 14, 2011

Compiling C libraries for use in python modules on OS X: specify a target architecture

›
My pycurl installation was failing with these errors: $pip install pycurl [snip] assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /us...
Thursday, November 10, 2011

OS X logging: asl.conf, syslog.conf, syslog master filters and log rotation

›
The apple syslog daemon (/System/Library/LaunchDaemons/com.apple.syslogd.plist) takes configuration from 3 different sources *groan*. asl...
Tuesday, November 8, 2011

OS X Terminal screwed up command history in iPython

›
I was getting some weird behaviour in ipython (0.11) in a OS X (10.6.8) Terminal window. When I used the up arrow to access the commandline...
‹
›
Home
View web version
Powered by Blogger.