This is how I used to start slapd on OS X Snow Leopard:
OPENLDAP_HOME/libexec/slapd -h "ldap://smeorach:9000/"
-f OPENLDAP_HOME /etc /openldap /slapd.conf
where ‘smeorach’ is a localhost alias in /etc /hosts but it doesn’t work on OS X Lion, failing with the error:
daemon: getaddrinfo() failed: nodename nor servname provided, or not known
You have to put the alias above the fe80:: line:
/private /etc /hosts
127.0.0.1 smeorach
fe80::1%lo0 localhost
Reference: OSX Lion Gotcha! – /etc /hosts file
A while ago I wrote a post about migrating from Sourceforge to Github which required quite a few tricky steps. The steps in question are these ones:
mkdir guanxi-sp-engine
cd guanxi-sp-engine
cp -r ~/dev/Guanxi/Engine/* .
# Remove all the CVS directories and IDEA files
git init
git add .
cd guanxi-sp-engine
cat ../cvs2svn-trunk/output/guanxi-sp-engine-blob.dat /
../cvs2svn-trunk/output/guanxi-sp-engine-dump.dat |
git fast-import
(more…)
Having spent a few days installing Blackboard 9.1 SP8 onto Windows Server 2008 R2 and MSSQL Server 2008 I need to do a nightly export of courses to a central location. An ideal opportunity to add a new language to my portfolio, Powershell. I thought I’d flex my fledgling Powershell wings with getting user info from the database first and here’s the script in full as a gist. It connects to the Blackboard database and extracts username, names, emails and last login times. (more…)
If you’re trying to debug your NUnit tests in Visual Studio and getting the error:
The breakpoint will not currently be hit
this is how to sort it. First, change NUNIT_HOME\bin\nunit.exe.config to remove references to .NET2 and make sure .NET4 is enabled, e.g.
(more…)
So I started getting this error when connecting to an ActiveMQ broker as a consumer and producer from the same machine:
“the connection is already closed!”
which occurred when I tried to set the clientID on the producer, having already set up the consumer. Turned out I was using the same clientID for the consumer and the producer!