<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Whomwah.com &#187; lookup</title>
	<atom:link href="http://whomwah.com/tag/lookup/feed/" rel="self" type="application/rss+xml" />
	<link>http://whomwah.com</link>
	<description>The website of Duncan Robertson, currently computing for the BBC</description>
	<lastBuildDate>Fri, 06 Jan 2012 12:55:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Lookup &#8211; A simple Mac utility that wraps ldapsearch</title>
		<link>http://whomwah.com/2009/04/07/lookup/</link>
		<comments>http://whomwah.com/2009/04/07/lookup/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 11:53:14 +0000</pubDate>
		<dc:creator>Duncan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[lookup]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://whomwah.com/?p=1361</guid>
		<description><![CDATA[I work on a Mac at work, and it has always been a bit slow searching for other staff members in our global address book. Like other big organisations we have some directory services which we can use LDAP to interrogate. The seemingly standard way for apps to poll these services is asynchronously every second [...]]]></description>
			<content:encoded><![CDATA[<p>I work on a <a href="http://www.apple.com/mac/">Mac</a> at <a href="http://www.bbc.co.uk/">work</a>, and it has always been a bit slow searching for other staff members in our global address book. Like other big organisations we have some <a href="http://en.wikipedia.org/wiki/Directory_service">directory services</a> which we can use <a href="http://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol">LDAP</a> to interrogate. The seemingly standard way for apps to poll these services is <a href="http://en.wikipedia.org/wiki/Asynchronous_I/O">asynchronously</a> every second or so, so that you&#8217;re getting results back quickly in the background. In reality this can be clunky if your network is slow, or the directory is very big.</p>
<p>I wanted something simpler, and a gui that gave me was suited to my work requirements. Lookup displays glance-able contact details straight away, letting you copy, paste and drag this data around. It also has simple shortcuts like double clicking the contact to start a new email to that person.</p>
<p>Lookup does not poll asynchronously, it does one request per search and just looks through some key attributes. It seems to work very well, and has been customised for my workplace, but is generic enough for someone to tweak it to suit their companies needs.</p>
<p><a href="http://www.flickr.com/photos/duncanponting/3420133723/"><img src="http://farm4.static.flickr.com/3302/3420133723_714683acc3.jpg?v=0" alt="Lookup" /></a></p>
<p>It wraps <a href="http://linux.die.net/man/1/ldapsearch">ldapsearch</a>, which is a command line app that comes free on your mac. When I say wraps, it&#8217;s not a complete wrapper, but wraps enough to create an app of this kind. Ldapsearch app did everything I wanted in search terms, and gave me a chance to use <a href="http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSTask_Class/index.html">NSTask</a> and <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSPipe_Class/index.html">NSPipe</a> which I know will be useful in the future.</p>
<p>You can get the <a href="http://github.com/whomwah/lookup/tree/master">source over at Github</a>. Why not try and tweak it to work for your company. You never know, just compiling it and updating the settings in the preferences menu may be enough.</p>
<p class="note">Just to be clear, this app does NOT give you access to the BBC address book, just incase you thought I&#8217;d gone mad.</p>
]]></content:encoded>
			<wfw:commentRss>http://whomwah.com/2009/04/07/lookup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

