Convert LDAP data to CSV
This script reads LDIF data from STDIN and outputs as CSV:
This script reads LDIF data from STDIN and outputs as CSV:
While I don’t sit around on Facebook at work (wink wink), I wanted a way to be able to instantly get Facebook notifications without too much interruption (without alerts swamping my inbox or the Facebook page open).
Ideally I wanted a little Facebook app in my dock with a badge icon. Fluidapp is great for this. The normal Fluidapp with the standard Facebook website displays the number of unread messages. But I wanted my notifications displayed on the dock badge too.
Here’s how I did it:



Enjoy!
I’ve started using Google Docs a lot recently, but one thing annoyed me: I wanted to have documents open in Google Docs just by double-clicking them in Finder.
The APIs are pretty good, so I’m surprised nobody has written a native app to do this. While I don’t have time to write a native app, I was able to whip up something thanks to googlecl and Apple’s Automator.
Opening local files in Google Docs by double-clicking (in 3 easy steps)
The following solution will allow you to open documents in Google Docs by double-clicking them. The document will be uploaded and opened. If the document has already been uploaded (matched by filename), it will just be opened.
sudo port install googleclgoogle docs list
And that’s it!
It works! Yay! Bear in mind I slapped this together in the last hour. I might make it slightly more elegant if I get the time (or you can).
Follow me on Twitter!
Spotify wish list - the easy stuff
Spotify dream list
In my job I’m often required to generate passwords for clients. One of the common ways of supplying it to them is over the phone because it’s quick and (mostly) secure.
But it can be painful at times. People can easily mishear the spelling, which is why we turn to the ICAO spelling alphabet (or “NATO phonetic alphabet”). The problem is that I’m not enough of a radio guru to have memorised the entire alphabet yet. So I wrote this handy tool to help me:
Phonetic alphabet helper
https://dans.im/phonetic-phrase-gen.php
Simply input the word and it prints the phrase to read out over the phone, using the phonetic spelling alphabet:

After a few more password reset requests, I’m hoping I’ll be able to memorise all those words and make the radio veterans proud.
Enjoy!