<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Barry Dobson</title>
	
	<link>http://www.barrydobson.com</link>
	<description>Web Development And Beyond.</description>
	<lastBuildDate>Wed, 13 May 2009 12:03:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/BarryDobson" /><feedburner:info uri="barrydobson" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Creating iPhone Ringtones For Free In iTunes</title>
		<link>http://feedproxy.google.com/~r/BarryDobson/~3/_jcPnO0dE1Y/</link>
		<comments>http://www.barrydobson.com/2009/05/13/creating-iphone-ringtones-for-free-in-itunes/#comments</comments>
		<pubDate>Wed, 13 May 2009 12:03:38 +0000</pubDate>
		<dc:creator>Barry Dobson</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[Ringtone]]></category>

		<guid isPermaLink="false">http://www.barrydobson.com/?p=72</guid>
		<description><![CDATA[
			
				
			
		
Unfortunately Apple decided they would like to charge for people to be able to download ringtones for songs they already bought. Luckily there is a way you can use iTunes to get ringtones from any MP3 file for free, here&#8217;s how.

Open iTunes and find the song you wish to make a ringtone out of.
Play the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.barrydobson.com%2F2009%2F05%2F13%2Fcreating-iphone-ringtones-for-free-in-itunes%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.barrydobson.com%2F2009%2F05%2F13%2Fcreating-iphone-ringtones-for-free-in-itunes%2F&amp;source=barrydobson&amp;style=normal&amp;service=bit.ly&amp;service_api=R_afcfcb0f75307325636188928ea62464" height="61" width="50" /><br />
			</a>
		</div>
<p>Unfortunately Apple decided they would like to charge for people to be able to download ringtones for songs they already bought. Luckily there is a way you can use iTunes to get ringtones from any MP3 file for free, here&#8217;s how.</p>
<ol>
<li>Open iTunes and find the song you wish to make a ringtone out of.</li>
<li>Play the song in iTunes. Take a note of the start and finish times of the section of the song you wish to use. (E.G. Maybe you want an instrumental section of a song that starts at 2:34 and ends at 2:51)</li>
<li>Right click on the song in iTunes. Click &#8220;Get Info&#8221;. Find the tab that contains the options for start time and end time. Tick these two options and fill in the start and end time that you noted down from step 2 (I think this can get do milliseconds if you need to be precise). Click OK to close the dialogue.</li>
<li>Now go into the iTunes preferences. On the first tab, click on &#8220;Import Settings&#8221;. Make sure the encoder is set to AAC (You can change this back to MP3 once this process is finished, but for creating ringtones it should be AAC). Close the preferences screen.</li>
<li>Right click on the song again that you wish to make the ringtone from and select the copy to AAC option. After a pause you will notice a new song has appeared below the one you chose. It will have the same name/artist but it&#8217;s length will reflect that of the options you set in step 3. Right click the original song and un-tick the start and end time options.</li>
<li>Right click the new version of the song and select to view in explorer copy the song to your desktop. Back in iTunes you can now remove the new song your library (select to move file to recycle bin, we don&#8217;t need this cluttering up your library).</li>
<li>Once you have the new song file on your desktop you need to change the file extension. If you can&#8217;t see the file extension you need to enable it in folder properties. (In explorer select Tools &gt; Folder options. In the View tab find the tick box for &#8220;Hide extensions for known file types&#8221; un-tick it. Select ok, you should now see the file extension, m4a, in this case).</li>
<li>You need to change the extension from m4a to m4r. When you do this you will notice the icon change and it will now say ringtone.</li>
<li>Drag the file back into iTunes. You will now see the ringtone option in your library and the new ringtone will be within that.</li>
<li>Plug in your iPhone. In the sync options select to sync ringtones. When you perform a sync your ringtones will be sent to your iPhone. In the settings in your iPhone you will now have the option of selecting your new ringtone.</li>
</ol>
<p>The process seems a bit complicated and painful, but after you have done it a couple of times it will only take a minute to create custom ringtones from any MP3 file in your library, and it&#8217;s free.</p>
<p>If you prefer to use an editor like Sony Sound Forge for you editing needs (in order to play around with samples and get better accuracy when cropping) you can still go ahead and use it. Simply create your file in the editor and export it. Add it to your iTunes library and follow the instructions from step 4.</p>
<p>Hope this helps.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/IOnhfHiZLP4BJ_z_3swI7l3OJdg/0/da"><img src="http://feedads.g.doubleclick.net/~a/IOnhfHiZLP4BJ_z_3swI7l3OJdg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/IOnhfHiZLP4BJ_z_3swI7l3OJdg/1/da"><img src="http://feedads.g.doubleclick.net/~a/IOnhfHiZLP4BJ_z_3swI7l3OJdg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/BarryDobson?a=_jcPnO0dE1Y:LgKCfBrz8Os:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/BarryDobson?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/BarryDobson?a=_jcPnO0dE1Y:LgKCfBrz8Os:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/BarryDobson?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/BarryDobson/~4/_jcPnO0dE1Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.barrydobson.com/2009/05/13/creating-iphone-ringtones-for-free-in-itunes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.barrydobson.com/2009/05/13/creating-iphone-ringtones-for-free-in-itunes/</feedburner:origLink></item>
		<item>
		<title>PLS-00103: Encountered the symbol "" WHEN expecting one OF the following</title>
		<link>http://feedproxy.google.com/~r/BarryDobson/~3/S1VGzcxDBEY/</link>
		<comments>http://www.barrydobson.com/2009/02/17/pls-00103-encountered-the-symbol-when-expecting-one-of-the-following/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 15:06:22 +0000</pubDate>
		<dc:creator>Barry Dobson</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.barrydobson.com/2009/02/17/pls-00103-encountered-the-symbol-when-expecting-one-of-the-following/</guid>
		<description><![CDATA[
			
				
			
		
I recently came across this error whilst developing stored procedures in oracle. The stored procedure will be built in Oracle but marked as invalid. Trying a re-compile will give you the above error.
The problem appears to be with Windows CRLF characters on line breaks. Oracle does not treat this as white space, instead it sees [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.barrydobson.com%2F2009%2F02%2F17%2Fpls-00103-encountered-the-symbol-when-expecting-one-of-the-following%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.barrydobson.com%2F2009%2F02%2F17%2Fpls-00103-encountered-the-symbol-when-expecting-one-of-the-following%2F&amp;source=barrydobson&amp;style=normal&amp;service=bit.ly&amp;service_api=R_afcfcb0f75307325636188928ea62464" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently came across this error whilst developing stored procedures in oracle. The stored procedure will be built in Oracle but marked as invalid. Trying a re-compile will give you the above error.</p>
<p>The problem appears to be with Windows CRLF characters on line breaks. Oracle does not treat this as white space, instead it sees it as an empty string. In order to get round this problem, convert the CRLF characters to LF characters and Oracle should be happy.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/Ijvkq4btBtVTSlOm8ioY8wNnEb8/0/da"><img src="http://feedads.g.doubleclick.net/~a/Ijvkq4btBtVTSlOm8ioY8wNnEb8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Ijvkq4btBtVTSlOm8ioY8wNnEb8/1/da"><img src="http://feedads.g.doubleclick.net/~a/Ijvkq4btBtVTSlOm8ioY8wNnEb8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/BarryDobson?a=jcpATex2"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/BarryDobson?a=HYGj0EUg"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/BarryDobson/~4/S1VGzcxDBEY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.barrydobson.com/2009/02/17/pls-00103-encountered-the-symbol-when-expecting-one-of-the-following/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.barrydobson.com/2009/02/17/pls-00103-encountered-the-symbol-when-expecting-one-of-the-following/</feedburner:origLink></item>
		<item>
		<title>Using VB.Net To Encrypt LDAP MD5 Passwords</title>
		<link>http://feedproxy.google.com/~r/BarryDobson/~3/gcbNRLCQXuc/</link>
		<comments>http://www.barrydobson.com/2009/02/11/using-vbnet-to-encrypt-ldap-md5-passwords/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 09:13:14 +0000</pubDate>
		<dc:creator>Barry Dobson</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://www.barrydobson.com/2009/02/11/using-vbnet-to-encrypt-ldap-md5-passwords/</guid>
		<description><![CDATA[
			
				
			
		
When passwords are stored in an LDAP directory they are stored encrypted. LDAP supports different types of hashing, but I chose to use MD5.  The LDAP implementation is to use Base 64 encoding. Below is a simple function I use to convert the plain text password into a hashed string ready to be added to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.barrydobson.com%2F2009%2F02%2F11%2Fusing-vbnet-to-encrypt-ldap-md5-passwords%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.barrydobson.com%2F2009%2F02%2F11%2Fusing-vbnet-to-encrypt-ldap-md5-passwords%2F&amp;source=barrydobson&amp;style=normal&amp;service=bit.ly&amp;service_api=R_afcfcb0f75307325636188928ea62464" height="61" width="50" /><br />
			</a>
		</div>
<p>When passwords are stored in an LDAP directory they are stored encrypted. LDAP supports different types of hashing, but I chose to use MD5.  The LDAP implementation is to use Base 64 encoding. Below is a simple function I use to convert the plain text password into a hashed string ready to be added to LDAP.</p>
<pre class="vb.net:nogutter">Public Shared Function EncryptPassword(ByVal value As String) As String

        Dim cryptProvider As New MD5CryptoServiceProvider
        Dim b As Byte() = Text.UTF8Encoding.UTF8.GetBytes(value)
        Dim encoded As Byte() = cryptProvider.ComputeHash(b)
        Dim hash As String = Convert.ToBase64String(encoded)

        Return hash

End Function</pre>

<p><a href="http://feedads.g.doubleclick.net/~a/wMle9roJUFXGkAozBHZpyLCs0KY/0/da"><img src="http://feedads.g.doubleclick.net/~a/wMle9roJUFXGkAozBHZpyLCs0KY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/wMle9roJUFXGkAozBHZpyLCs0KY/1/da"><img src="http://feedads.g.doubleclick.net/~a/wMle9roJUFXGkAozBHZpyLCs0KY/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/BarryDobson?a=PXwOoaXw"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/BarryDobson?a=GeQCWHRZ"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/BarryDobson/~4/gcbNRLCQXuc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.barrydobson.com/2009/02/11/using-vbnet-to-encrypt-ldap-md5-passwords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.barrydobson.com/2009/02/11/using-vbnet-to-encrypt-ldap-md5-passwords/</feedburner:origLink></item>
		<item>
		<title>VB.Net HttpWebRequest Takes A Long Time On First Request</title>
		<link>http://feedproxy.google.com/~r/BarryDobson/~3/WQkVXQLE5qk/</link>
		<comments>http://www.barrydobson.com/2009/01/21/vbnet-httpwebrequest-takes-a-long-time-on-first-request/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 12:12:12 +0000</pubDate>
		<dc:creator>Barry Dobson</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://www.barrydobson.com/2009/01/21/vbnet-httpwebrequest-takes-a-long-time-on-first-request/</guid>
		<description><![CDATA[
			
				
			
		
I have recently been using the HttpWebRequest object in .Net Framework 2 and 3.5. I&#8217;m using it to observe the timings of requests on a project and noticed some strange behaviour. The first time you call GetResponse it can take over 30 seconds to return the response, whereas subsequent calls to the same URL will [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.barrydobson.com%2F2009%2F01%2F21%2Fvbnet-httpwebrequest-takes-a-long-time-on-first-request%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.barrydobson.com%2F2009%2F01%2F21%2Fvbnet-httpwebrequest-takes-a-long-time-on-first-request%2F&amp;source=barrydobson&amp;style=normal&amp;service=bit.ly&amp;service_api=R_afcfcb0f75307325636188928ea62464" height="61" width="50" /><br />
			</a>
		</div>
<p>I have recently been using the HttpWebRequest object in .Net Framework 2 and 3.5. I&#8217;m using it to observe the timings of requests on a project and noticed some strange behaviour. The first time you call GetResponse it can take over 30 seconds to return the response, whereas subsequent calls to the same URL will result in much quicker responses. I have found the problem to be in the use of proxies. It tries to find a proxy to use on the first request. To fix this (unless you are using a proxy of course) set the Proxy property to Nothing</p>
<pre class="vb.net:nogutter:nocontrols">request.Proxy = Nothing</pre>
<p>By doing this it no longer looks for the default proxy and will speed up requests.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/7csy4qNgMv1s-w4kPMqi2FdjAxo/0/da"><img src="http://feedads.g.doubleclick.net/~a/7csy4qNgMv1s-w4kPMqi2FdjAxo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7csy4qNgMv1s-w4kPMqi2FdjAxo/1/da"><img src="http://feedads.g.doubleclick.net/~a/7csy4qNgMv1s-w4kPMqi2FdjAxo/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/BarryDobson?a=vLL7Yb4K"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/BarryDobson?a=y7US5yMX"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/BarryDobson/~4/WQkVXQLE5qk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.barrydobson.com/2009/01/21/vbnet-httpwebrequest-takes-a-long-time-on-first-request/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.barrydobson.com/2009/01/21/vbnet-httpwebrequest-takes-a-long-time-on-first-request/</feedburner:origLink></item>
		<item>
		<title>Deleting LDAP Entries</title>
		<link>http://feedproxy.google.com/~r/BarryDobson/~3/uhYuQTKJ0mc/</link>
		<comments>http://www.barrydobson.com/2008/08/14/deleting-ldap-entries/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 10:15:26 +0000</pubDate>
		<dc:creator>Barry Dobson</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://www.barrydobson.com/2008/08/14/deleting-ldap-entries/</guid>
		<description><![CDATA[
			
				
			
		
Following on from my popular post on searching LDAP directories I thought I&#8217;d follow up with a simple piece of code that allows you to delete entries.
There are two ways to remove an entry. The first way is to search for a node an remove it, along with all of its children. The second way [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F08%2F14%2Fdeleting-ldap-entries%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F08%2F14%2Fdeleting-ldap-entries%2F&amp;source=barrydobson&amp;style=normal&amp;service=bit.ly&amp;service_api=R_afcfcb0f75307325636188928ea62464" height="61" width="50" /><br />
			</a>
		</div>
<p>Following on from my popular post on searching LDAP directories I thought I&#8217;d follow up with a simple piece of code that allows you to delete entries.</p>
<p>There are two ways to remove an entry. The first way is to search for a node an remove it, along with all of its children. The second way is to search for a node and remove one or more of its children. <span id="more-40"></span>Below I will demonstrate both methods.</p>
<p> </p>
<pre class="vb.net:nogutter">Dim dir As New LdapConnection(MySettings)

Using users As DirectoryEntry = dir.GetObject(MyQuery)
    For Each r As DirectoryEntry In users.Children
        users.Children.Remove(r)
    Next
    users.CommitChanges()
End Using</pre>
<p> </p>
<p>Above shows us searching for a node then looping through each child and removing it. We could also examine the properties and delete based on that.</p>
<p>If you want to delete a specific item its easier and more efficient to use the following method</p>
<p> </p>
<pre class="vb.net:nogutter">Using users As DirectoryEntry = dir.GetObject(MyUserQuery)
    users.DeleteTree()
    users.CommitChanges()
End Using</pre>
<p> </p>
<p>In the above example we just search directly for a single node (user) then call the &#8216;DeleteTree&#8217; method. It the entry we searched for had any children, they would also be deleted.</p>
<p> </p>
<p>I hope this helps you out. Don&#8217;t forget to leave comments if this helped, or you need any more info, thanks.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/CjVepOfwzwAdrr6dUFTVZj5lPoM/0/da"><img src="http://feedads.g.doubleclick.net/~a/CjVepOfwzwAdrr6dUFTVZj5lPoM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/CjVepOfwzwAdrr6dUFTVZj5lPoM/1/da"><img src="http://feedads.g.doubleclick.net/~a/CjVepOfwzwAdrr6dUFTVZj5lPoM/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/BarryDobson?a=TmFLLPxW"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/BarryDobson?a=BVmcCWab"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/BarryDobson/~4/uhYuQTKJ0mc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.barrydobson.com/2008/08/14/deleting-ldap-entries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.barrydobson.com/2008/08/14/deleting-ldap-entries/</feedburner:origLink></item>
		<item>
		<title>Wordpress iPhone Application</title>
		<link>http://feedproxy.google.com/~r/BarryDobson/~3/ynOjFiH_5H4/</link>
		<comments>http://www.barrydobson.com/2008/07/23/wordpress-iphone-application/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 20:57:37 +0000</pubDate>
		<dc:creator>Barry Dobson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.barrydobson.com/2008/07/23/wordpress-iphone-application/</guid>
		<description><![CDATA[
			
				
			
		
I&#8217;ve just installed the Wordpress iPhone application on my iPod Touch, and am giving it a go. Have you used it? What do you think?
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F07%2F23%2Fwordpress-iphone-application%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F07%2F23%2Fwordpress-iphone-application%2F&amp;source=barrydobson&amp;style=normal&amp;service=bit.ly&amp;service_api=R_afcfcb0f75307325636188928ea62464" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve just installed the Wordpress iPhone application on my iPod Touch, and am giving it a go. Have you used it? What do you think?</p>

<p><a href="http://feedads.g.doubleclick.net/~a/RtLnIFz54_VcJmd9tdOOTsGKAmQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/RtLnIFz54_VcJmd9tdOOTsGKAmQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/RtLnIFz54_VcJmd9tdOOTsGKAmQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/RtLnIFz54_VcJmd9tdOOTsGKAmQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/BarryDobson?a=S5NoWzRT"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/BarryDobson?a=hAD806VS"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/BarryDobson/~4/ynOjFiH_5H4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.barrydobson.com/2008/07/23/wordpress-iphone-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.barrydobson.com/2008/07/23/wordpress-iphone-application/</feedburner:origLink></item>
		<item>
		<title>iPhone &amp; iPod Touch Screen Shots</title>
		<link>http://feedproxy.google.com/~r/BarryDobson/~3/_QHEVR-pSfE/</link>
		<comments>http://www.barrydobson.com/2008/07/15/iphone-ipod-touch-screen-shots/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 13:02:27 +0000</pubDate>
		<dc:creator>Barry Dobson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[2.0]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.barrydobson.com/2008/07/15/iphone-ipod-touch-screen-shots/</guid>
		<description><![CDATA[
			
				
			
		
I don&#8217;t know if this is a new feature of the iPhone 2.0 software (I doubt it) but you can take screen shots from your iPhone or iPod Touch!
When your on the screen you want to capture just hold down the &#8216;Home&#8217; key and press the &#8216;Sleep&#8217; button. The screen will flash and the screen [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F07%2F15%2Fiphone-ipod-touch-screen-shots%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F07%2F15%2Fiphone-ipod-touch-screen-shots%2F&amp;source=barrydobson&amp;style=normal&amp;service=bit.ly&amp;service_api=R_afcfcb0f75307325636188928ea62464" height="61" width="50" /><br />
			</a>
		</div>
<p>I don&#8217;t know if this is a new feature of the iPhone 2.0 software (I doubt it) but you can take screen shots from your iPhone or iPod Touch!</p>
<p>When your on the screen you want to capture just hold down the &#8216;Home&#8217; key and press the &#8216;Sleep&#8217; button. The screen will flash and the screen shot will now be in your pictures folder. The screen shots are stored in PNG format and can be transferred to a PC or Mac. This even works on the iPod touch. Once you have taken a screen shot the next time you plug the iPod into the computer you will see the iPod as a drive in your system. The pictures can then just be drag and dropped.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/nUdtatZptwzY-pMyCRWnNF859GU/0/da"><img src="http://feedads.g.doubleclick.net/~a/nUdtatZptwzY-pMyCRWnNF859GU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/nUdtatZptwzY-pMyCRWnNF859GU/1/da"><img src="http://feedads.g.doubleclick.net/~a/nUdtatZptwzY-pMyCRWnNF859GU/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/BarryDobson?a=x8sq6K6t"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/BarryDobson?a=EhRoLqrF"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/BarryDobson/~4/_QHEVR-pSfE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.barrydobson.com/2008/07/15/iphone-ipod-touch-screen-shots/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.barrydobson.com/2008/07/15/iphone-ipod-touch-screen-shots/</feedburner:origLink></item>
		<item>
		<title>Working With LDAP In VB.Net</title>
		<link>http://feedproxy.google.com/~r/BarryDobson/~3/9cbde36Vv7k/</link>
		<comments>http://www.barrydobson.com/2008/06/13/working-with-ldap-in-vbnet/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 12:51:36 +0000</pubDate>
		<dc:creator>Barry Dobson</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://www.barrydobson.com/?p=29</guid>
		<description><![CDATA[wrote a post a while ago dealing with an error that VB can throw when dealing with an LDAP connection, you can find it here. Because this post has proved popular with people searching for the error code on Google, I thought I'd put together a quick post on using LDAP in VB.Net.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F06%2F13%2Fworking-with-ldap-in-vbnet%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F06%2F13%2Fworking-with-ldap-in-vbnet%2F&amp;source=barrydobson&amp;style=normal&amp;service=bit.ly&amp;service_api=R_afcfcb0f75307325636188928ea62464" height="61" width="50" /><br />
			</a>
		</div>
<p>I wrote a post a while ago dealing with an error that VB can throw when dealing with an LDAP connection, you can find it <a href="http://www.barrydobson.com/2007/08/31/systemdirectoryentry-unknown-error-0x80005000/" target="_blank">here</a>. Because this post has proved popular with people searching for the error code on Google, I thought I&#8217;d put together a quick post on using LDAP in VB.Net.</p>
<p><span id="more-29"></span></p>
<h3>Simple Directory Search</h3>
<p>To perform a simple query you can use the following syntax:</p>
<pre class="vb.net:nogutter" name="code">Dim results as SearchResultCollection

Using dir As New DirectoryEntry(connectionPath, principle, credentials, AuthenticationTypes.ServerBind)
	Dim s As New DirectorySearcher
	s.SearchRoot = dir
        s.Filter = (&amp;(objectClass=groupOfUniqueNames)(cn=techSupport))
        s.SearchScope = SearchScope.Subtree
        results = s.FindAll
End Using
</pre>
<ol>
<li>First we are declaring a variable to hold our search results.
<li>Next we open up a connection to the LDAP directory. This is done by instantiating a DirectoryEntry object. The DirectoryEntry object requires the connection path in the form of a URL (LDAP://MyServer:10389/OU=subdir,O=parent&#8221;), the principle (&#8220;uid=myuser,ou=system&#8221;), credentials (&#8220;mypassword&#8221;), and the method of authentication (this will depend upon your LDAP directory).
<li>In order to search the directory we need to use the DirectorySearcher Object. We assign our DirectoryEntry object to the SearchRoot property, this will tell the DirectorySearcher where to base its search. The Filter property needs the details of what we are searching for, in this example we are looking for an entry whose ObjectClass is &#8220;groupOfUniqueNames&#8221; and CN is &#8220;techSupport&#8221;. The ampersand in front of the query tells the searcher this is an AND operation. The SearchScope property tells the searcher that we want to search the whole sub tree from the SearchRoot down.
<li>Lastly we return the results.</li>
</ol>
<p>This is a very basic example of searching the directory. The directory is searchable on any property that an object may have, e.g. you may want to find all entries whose are inetOrgPerson and have a surname of smith. In that example your filter would be
<pre lang="vbnet">(&amp;(objectClass=inetOrgPerson)(sn=Smith))</pre>
</p>
<h3>Performing An Update</h3>
<p>You can perform an update on a directory entry just like you can in a database. When performing an update it is important to remember an entry can have multiple properties of the same name. In other words the properties are in fact arrays. The following is an example of an update.</p>
<p>
<pre class="vb.net:nogutter" name="code">Public Sub UpdateUser(ByVal username as String, ByVal firstName as String, ByVal surname as String)

        Dim myUserDN As String = String.Format("{0}uid={1},{2}", _settings.LDAPUrl, username, _settings.UsersDN)
	Using u As New DirectoryEntry(myUserDN, _settings.Principle, _settings.Credentials, AuthenticationTypes.ServerBind)
	    AddUpdateProperty(u, "cn", firstName)
            AddUpdateProperty(u, "sn", surname)
 	    u.CommitChanges()
	End Using
End Sub

Private Sub AddUpdateProperty(ByVal r As DirectoryEntry, ByVal propName As String, ByVal value As Object)
        If r.Properties(propName).Count = 0 Then
            r.Properties(propName).Add(value)
        Else
            r.Properties(propName).Item(0) = value
	End If
End Sub
</pre>
</p>
<p>The above code shows two sub routines. Lets look at the first one, UpdateUser:</p>
<ol>
<li>First we construct the URL to the object we want. We supply the LDAP URL along with the path to the entry we want.
<li>Next we attempt to connect straight to our entry using the DirectoryEntry object. If the object is not found this line will throw a DirectoryServicesCOMException exception.
<li>Now we can go ahead and update the properties we need to change. This is done via a helper function to handle the fact the entry could contain none, one or many of the property.
<li>Lastly we call the CommitChanges method on the Directory Entry.</li>
</ol>
<h3>Performing An Insert</h3>
<p>Performing an insert on the directory is very similar to performing an update. The code below shows how we can insert a new user type entry.</p>
<p>
<pre class="vb.net:nogutter" name="code">Using users As New DirectoryEntry(userDNRoot, _settings.Principle, _settings.Credentials, AuthenticationTypes.ServerBind)
    Using newUser As DirectoryEntry = users.Children.Add(String.Format("uid={0}", username), "person")

        ' add user required properties
        AddUpdateProperty(newUser, "cn", forename)
        AddUpdateProperty(newUser, "sn", surname)
        newUser.CommitChanges()
    End Using
End Using
</pre>
<p>Lets look at the code:</p>
<ol>
<li>We need to connect to the LDAP directory. This time we connect to the root DN of where we want to add our new entry. Think of this as XML, we are going to add a child entry to the root.
<li>Once we have a connection, we can use the Children.Add methods to create a new DirectoryEntry object. As a parameter we pass in the name of the entry.
<li>Using the same helper function we saw above in the update functionality we create the properties on the object (note that this is a shortened list).
<li>Once we have assigned all the properties we go ahead and commit changes.</li>
</ol>
<p>&nbsp;</p>
<p>You can <a href="http://www.barrydobson.com/download/LDAP-Demo" target="_blank">download this sample project</a> to check out some working examples.</p>
<p>If you have found the above article useful, have any comments or questions on it please leave a comment, and if you are a <a href="http://www.digg.com/" target="_blank">Digg</a> user, don&#8217;t forget to give it a Digg, thanks.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/IYMtI_QhUwx3QS1Mx11BtjBrnj0/0/da"><img src="http://feedads.g.doubleclick.net/~a/IYMtI_QhUwx3QS1Mx11BtjBrnj0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/IYMtI_QhUwx3QS1Mx11BtjBrnj0/1/da"><img src="http://feedads.g.doubleclick.net/~a/IYMtI_QhUwx3QS1Mx11BtjBrnj0/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/BarryDobson?a=wLFelNVF"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/BarryDobson?a=l1iGjC5Q"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/BarryDobson/~4/9cbde36Vv7k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.barrydobson.com/2008/06/13/working-with-ldap-in-vbnet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.barrydobson.com/2008/06/13/working-with-ldap-in-vbnet/</feedburner:origLink></item>
		<item>
		<title>Windows Live Writer Plugin</title>
		<link>http://feedproxy.google.com/~r/BarryDobson/~3/LTtNrFUx1q8/</link>
		<comments>http://www.barrydobson.com/2008/06/09/windows-live-writer-plugin/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 14:44:11 +0000</pubDate>
		<dc:creator>Barry Dobson</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WLW]]></category>

		<guid isPermaLink="false">http://www.barrydobson.com/2008/06/09/windows-live-writer-plugin/</guid>
		<description><![CDATA[
			
				
			
		
I have recently created my first Plugin for Windows Live Writer. I&#8217;m starting off simple with a Plugin that allows you to add Amazon affiliate links to your posts. It works with Amazons Quick Linker Widget which needs to first be added to your pages (in the footer).
I have submitted it the Windows Live Gallery, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F06%2F09%2Fwindows-live-writer-plugin%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F06%2F09%2Fwindows-live-writer-plugin%2F&amp;source=barrydobson&amp;style=normal&amp;service=bit.ly&amp;service_api=R_afcfcb0f75307325636188928ea62464" height="61" width="50" /><br />
			</a>
		</div>
<p>I have recently created my first Plugin for Windows Live Writer. I&#8217;m starting off simple with a Plugin that allows you to add Amazon affiliate links to your posts. It works with Amazons Quick Linker Widget which needs to first be added to your pages (in the footer).</p>
<p>I have submitted it the Windows Live Gallery, but I have no idea how long the submission process takes.</p>
<p>My Plugin and its details can be found <a href="http://www.barrydobson.com/software/amazon-quick-link-plugin/">here</a>.</p>
<p>Tags: <a rel="tag" href="http://technorati.com/tag/WLW">WLW</a> <a rel="tag" href="http://technorati.com/tag/Amazon">Amazon</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/84D0BKLx-nRJ7gOgIBT5V5e0shc/0/da"><img src="http://feedads.g.doubleclick.net/~a/84D0BKLx-nRJ7gOgIBT5V5e0shc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/84D0BKLx-nRJ7gOgIBT5V5e0shc/1/da"><img src="http://feedads.g.doubleclick.net/~a/84D0BKLx-nRJ7gOgIBT5V5e0shc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/BarryDobson?a=kVR9JDYn"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/BarryDobson?a=HySq0mSV"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/BarryDobson/~4/LTtNrFUx1q8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.barrydobson.com/2008/06/09/windows-live-writer-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.barrydobson.com/2008/06/09/windows-live-writer-plugin/</feedburner:origLink></item>
		<item>
		<title>AJAX Tutorials</title>
		<link>http://feedproxy.google.com/~r/BarryDobson/~3/XL8eeY3_4qg/</link>
		<comments>http://www.barrydobson.com/2008/05/22/ajax-tutorials/#comments</comments>
		<pubDate>Thu, 22 May 2008 07:15:12 +0000</pubDate>
		<dc:creator>Barry Dobson</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.barrydobson.com/2008/05/22/ajax-tutorials/</guid>
		<description><![CDATA[
			
				
			
		
I found this very good article that has links to 30 of the best AJAX tutorials around. It covers things from drag and drop to lists, as well as the basics of AJAX.
Designs Advice
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F05%2F22%2Fajax-tutorials%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.barrydobson.com%2F2008%2F05%2F22%2Fajax-tutorials%2F&amp;source=barrydobson&amp;style=normal&amp;service=bit.ly&amp;service_api=R_afcfcb0f75307325636188928ea62464" height="61" width="50" /><br />
			</a>
		</div>
<p>I found this very good article that has links to 30 of the best AJAX tutorials around. It covers things from drag and drop to lists, as well as the basics of AJAX.</p>
<p><a href="http://designsadvice.com/ajax/30-of-the-best-ajax-tutorials/trackback" target="_blank">Designs Advice</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/tH0zD7lEfGqsBLIqOoN_BfaYwZE/0/da"><img src="http://feedads.g.doubleclick.net/~a/tH0zD7lEfGqsBLIqOoN_BfaYwZE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/tH0zD7lEfGqsBLIqOoN_BfaYwZE/1/da"><img src="http://feedads.g.doubleclick.net/~a/tH0zD7lEfGqsBLIqOoN_BfaYwZE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/BarryDobson?a=OWagzGm7"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/BarryDobson?a=u3FF8Zhn"><img src="http://feeds.feedburner.com/~f/BarryDobson?d=52" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/BarryDobson/~4/XL8eeY3_4qg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.barrydobson.com/2008/05/22/ajax-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.barrydobson.com/2008/05/22/ajax-tutorials/</feedburner:origLink></item>
	</channel>
</rss>
