<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>Barry Dobson</title><generator>Tumblr (3.0; @barrydobson)</generator><link>http://www.barrydobson.com/</link><item><title>Creating iPhone Ringtones For Free In iTunes</title><description>&lt;p&gt;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&amp;#8217;s how.&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Open iTunes and find the song you wish to make a ringtone out of.&lt;/li&gt;
&lt;li&gt;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)&lt;/li&gt;
&lt;li&gt;Right click on the song in iTunes. Click &amp;#8220;Get Info&amp;#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.&lt;/li&gt;
&lt;li&gt;Now go into the iTunes preferences. On the first tab, click on &amp;#8220;Import Settings&amp;#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.&lt;/li&gt;
&lt;li&gt;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&amp;#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.&lt;/li&gt;
&lt;li&gt;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&amp;#8217;t need this cluttering up your library).&lt;/li&gt;
&lt;li&gt;Once you have the new song file on your desktop you need to change the file extension. If you can&amp;#8217;t see the file extension you need to enable it in folder properties. (In explorer select Tools &amp;gt; Folder options. In the View tab find the tick box for &amp;#8220;Hide extensions for known file types&amp;#8221; un-tick it. Select ok, you should now see the file extension, m4a, in this case).&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;Drag the file back into iTunes. You will now see the ringtone option in your library and the new ringtone will be within that.&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;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&amp;#8217;s free.  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.  Hope this helps.&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067094539</link><guid>http://www.barrydobson.com/post/6067094539</guid><pubDate>Wed, 13 May 2009 13:03:00 +0100</pubDate></item><item><title>PLS-00103: Encountered the symbol "" WHEN expecting one OF the following</title><description>&lt;p&gt;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.&lt;/p&gt; &lt;p&gt;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.&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067090919</link><guid>http://www.barrydobson.com/post/6067090919</guid><pubDate>Tue, 17 Feb 2009 16:06:22 +0000</pubDate></item><item><title>Using VB.Net To Encrypt LDAP MD5 Passwords</title><description>&lt;p&gt;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.&lt;/p&gt;
&lt;pre class="sh_csharp"&gt;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&lt;/pre&gt;</description><link>http://www.barrydobson.com/post/6067088358</link><guid>http://www.barrydobson.com/post/6067088358</guid><pubDate>Wed, 11 Feb 2009 10:13:00 +0000</pubDate></item><item><title>VB.Net HttpWebRequest Takes A Long Time On First Request</title><description>&lt;p&gt;I have recently been using the HttpWebRequest object in .Net Framework 2 and 3.5. I&amp;#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
&lt;pre class="vb.net:nogutter:nocontrols"&gt;request.Proxy = Nothing&lt;/pre&gt;
By doing this it no longer looks for the default proxy and will speed up requests.&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067086120</link><guid>http://www.barrydobson.com/post/6067086120</guid><pubDate>Wed, 21 Jan 2009 13:12:12 +0000</pubDate></item><item><title>Deleting LDAP Entries</title><description>&lt;p&gt;Following on from my popular post on searching LDAP directories I thought I&amp;#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 is to search for a node and remove one or more of its children. &lt;!--more--&gt;Below I will demonstrate both methods.

 
&lt;pre class="vb.net:nogutter"&gt;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&lt;/pre&gt;
 

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.

If you want to delete a specific item its easier and more efficient to use the following method

 
&lt;pre class="vb.net:nogutter"&gt;Using users As DirectoryEntry = dir.GetObject(MyUserQuery)
    users.DeleteTree()
    users.CommitChanges()
End Using&lt;/pre&gt;
 

In the above example we just search directly for a single node (user) then call the &amp;#8216;DeleteTree&amp;#8217; method. It the entry we searched for had any children, they would also be deleted.

 

I hope this helps you out. Don&amp;#8217;t forget to leave comments if this helped, or you need any more info, thanks.&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067083801</link><guid>http://www.barrydobson.com/post/6067083801</guid><pubDate>Thu, 14 Aug 2008 11:15:26 +0100</pubDate></item><item><title>Wordpress iPhone Application</title><description>&lt;p&gt;I&amp;#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?&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067081571</link><guid>http://www.barrydobson.com/post/6067081571</guid><pubDate>Wed, 23 Jul 2008 21:57:37 +0100</pubDate></item><item><title>iPhone &amp; iPod Touch Screen Shots</title><description>&lt;p&gt;I don&amp;#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!&lt;/p&gt; &lt;p&gt;When your on the screen you want to capture just hold down the &amp;#8216;Home&amp;#8217; key and press the &amp;#8216;Sleep&amp;#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.&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067061259</link><guid>http://www.barrydobson.com/post/6067061259</guid><pubDate>Tue, 15 Jul 2008 14:02:27 +0100</pubDate></item><item><title>Working With LDAP In VB.Net</title><description>&lt;p&gt;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 &lt;a href="http://www.barrydobson.com/2007/08/31/systemdirectoryentry-unknown-error-0x80005000/" target="_blank"&gt;here&lt;/a&gt;. Because this post has proved popular with people searching for the error code on Google, I thought I&amp;#8217;d put together a quick post on using LDAP in VB.Net.&lt;/p&gt;
&lt;!--more--&gt;
 &lt;h3&gt;Simple Directory Search&lt;/h3&gt; &lt;p&gt;To perform a simple query you can use the following syntax:&lt;/p&gt;&lt;pre class="vb.net:nogutter" name="code"&gt;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;amp;(objectClass=groupOfUniqueNames)(cn=techSupport))
        s.SearchScope = SearchScope.Subtree
        results = s.FindAll
End Using
&lt;/pre&gt;
&lt;ol&gt;&lt;li&gt;First we are declaring a variable to hold our search results. 
&lt;/li&gt;&lt;li&gt;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&amp;#8221;), the principle (&amp;#8220;uid=myuser,ou=system&amp;#8221;), credentials (&amp;#8220;mypassword&amp;#8221;), and the method of authentication (this will depend upon your LDAP directory). 
&lt;/li&gt;&lt;li&gt;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 &amp;#8220;groupOfUniqueNames&amp;#8221; and CN is &amp;#8220;techSupport&amp;#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. 
&lt;/li&gt;&lt;li&gt;Lastly we return the results.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;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 &lt;/p&gt;&lt;pre lang="vbnet"&gt;(&amp;amp;(objectClass=inetOrgPerson)(sn=Smith))&lt;/pre&gt;

&lt;h3&gt;Performing An Update&lt;/h3&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;pre class="vb.net:nogutter" name="code"&gt;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
&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The above code shows two sub routines. Lets look at the first one, UpdateUser:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;First we construct the URL to the object we want. We supply the LDAP URL along with the path to the entry we want. 
&lt;/li&gt;&lt;li&gt;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. 
&lt;/li&gt;&lt;li&gt;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. 
&lt;/li&gt;&lt;li&gt;Lastly we call the CommitChanges method on the Directory Entry.&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;Performing An Insert&lt;/h3&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;pre class="vb.net:nogutter" name="code"&gt;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
&lt;/pre&gt;
&lt;p&gt;Lets look at the code:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;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. 
&lt;/li&gt;&lt;li&gt;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. 
&lt;/li&gt;&lt;li&gt;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). 
&lt;/li&gt;&lt;li&gt;Once we have assigned all the properties we go ahead and commit changes.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;You can &lt;a href="http://www.barrydobson.com/download/LDAP-Demo" target="_blank"&gt;download this sample project&lt;/a&gt; to check out some working examples.&lt;/p&gt;
&lt;p&gt;If you have found the above article useful, have any comments or questions on it please leave a comment, and if you are a &lt;a href="http://www.digg.com/" target="_blank"&gt;Digg&lt;/a&gt; user, don&amp;#8217;t forget to give it a Digg, thanks.&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067079154</link><guid>http://www.barrydobson.com/post/6067079154</guid><pubDate>Fri, 13 Jun 2008 13:51:36 +0100</pubDate></item><item><title>Windows Live Writer Plugin</title><description>&lt;p&gt;I have recently created my first Plugin for Windows Live Writer. I&amp;#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).&lt;/p&gt;

&lt;p&gt;I have submitted it the Windows Live Gallery, but I have no idea how long the submission process takes.&lt;/p&gt;

&lt;p&gt;My Plugin and its details can be found &lt;a href="http://www.barrydobson.com/software/amazon-quick-link-plugin/"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Tags: &lt;a rel="tag" href="http://technorati.com/tag/WLW"&gt;WLW&lt;/a&gt; &lt;a rel="tag" href="http://technorati.com/tag/Amazon"&gt;Amazon&lt;/a&gt;&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067069569</link><guid>http://www.barrydobson.com/post/6067069569</guid><pubDate>Mon, 09 Jun 2008 15:44:11 +0100</pubDate></item><item><title>AJAX Tutorials</title><description>&lt;p&gt;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.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://designsadvice.com/ajax/30-of-the-best-ajax-tutorials/trackback" target="_blank"&gt;Designs Advice&lt;/a&gt;&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067074265</link><guid>http://www.barrydobson.com/post/6067074265</guid><pubDate>Thu, 22 May 2008 07:15:12 +0100</pubDate></item><item><title>Is there anything the Internet cannot achieve?</title><description>&lt;p&gt;I am pretty late spotting this story but it&amp;#8217;s a good one. How many times did you hear about someone getting burgled? How many times do they actually catch the people responsible? How many times to the people get there stuff back?&lt;/p&gt;  &lt;p&gt;The Internet to the rescue. It seems the guy over &lt;a href="http://blog.mcfearsome.com/2008/03/22/wow-your-a-moron" target="_blank"&gt;here&lt;/a&gt; came back from a trip to find he had been burgled. Due to some sniffing around, the Internet, Digg, and a stupid kid he managed to get most of his stuff back. Its worth a read!&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067071961</link><guid>http://www.barrydobson.com/post/6067071961</guid><pubDate>Wed, 26 Mar 2008 14:09:40 +0000</pubDate></item><item><title>Xbox 360 DivX Only Plays Audio</title><description>&lt;p&gt;Since the fall 07 update, the Xbox 360 now has the ability to play DivX/Xvid files through the media blade on the dashboard. This was probably one of the best features to be added to the dashboard.

I use this feature a lot but recently I came across a couple of videos that would play fine in WMP but when played on the Xbox would be audio with no picture. I thought this was a limitation on the part of the way the Xbox does its decoding.

After a bit of digging around the web I re-read the &lt;a href="http://blogs.msdn.com/xboxteam/archive/2007/11/30/december-2007-video-playback-faq.aspx" target="_blank"&gt;December 2007 Xbox 360 video playback FAQ&lt;/a&gt; and discovered that this is a problem with PAL and VGA playback on the Xbox. The good news is that there is a fix, and it actually works. Check out the article:
&lt;/p&gt;&lt;blockquote&gt;&lt;em&gt;40. When trying to play 25 or 50 fps content, I don’t get any video over VGA&lt;/em&gt;&lt;/blockquote&gt;
on the FAQ for details on the fix.

Tags: &lt;a rel="tag" href="http://technorati.com/tag/Xbox%20360"&gt;Xbox 360&lt;/a&gt; &lt;a rel="tag" href="http://technorati.com/tag/VGA"&gt;VGA&lt;/a&gt; &lt;a rel="tag" href="http://technorati.com/tag/DivX"&gt;DivX&lt;/a&gt;</description><link>http://www.barrydobson.com/post/6067064064</link><guid>http://www.barrydobson.com/post/6067064064</guid><pubDate>Wed, 16 Jan 2008 08:09:24 +0000</pubDate></item><item><title>reCAPTCHA</title><description>&lt;p&gt;I recently added a &lt;a href="http://www.barrydobson.com/contact"&gt;contact&lt;/a&gt; page to my site. To do this I used a wordpress plug in,  &lt;a href="http://www.dagondesign.com/articles/secure-form-mailer-plugin-for-wordpress/"&gt;Dagon Design&lt;/a&gt;. Its a very good plug in by the way. It allows you to prevent spam by adding a reCAPTCHA image to the form. I&amp;#8217;ve always known about reCAPTCHA helping to digitise books where OCR is not working, but I have always wondered how the system knows you are correct, if the word cannot be read by computers. &lt;/p&gt;  &lt;p&gt;After I signed up for my free account at &lt;a href="http://recaptcha.net"&gt;recaptcha.net&lt;/a&gt; I read about how it works.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Each new word that cannot be read correctly by OCR is given to a user in conjunction with another word for which the answer is already known. The user is then asked to read both words. If they solve the one for which the answer is known, the system assumes their answer is correct for the new one. The system then gives the new image to a number of other people to determine, with higher confidence, whether the original answer was correct.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;You can read more about it &lt;a href="http://recaptcha.net/learnmore.html"&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/reCAPTCHA" rel="tag"&gt;reCAPTCHA&lt;/a&gt;&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067067045</link><guid>http://www.barrydobson.com/post/6067067045</guid><pubDate>Mon, 07 Jan 2008 13:12:02 +0000</pubDate></item><item><title>Xbox 360 DVD Up-Scaling</title><description>&lt;p&gt;All Xbox 360s have the ability to up-scale standard definition DVDs. There is a catch however. It will only up-scale when it&amp;#8217;s being used with either the &lt;a type="amzn"&gt;VGA cable&lt;/a&gt; or the &lt;a type="amzn"&gt;HDMI cables&lt;/a&gt; on the newer Xbox&amp;#8217;s.
&lt;/p&gt;&lt;div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c32948f4-b234-47e5-a071-547c61229794" class="wlWriterSmartContent" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a rel="tag" href="http://technorati.com/tags/Xbox%20360"&gt;Xbox 360&lt;/a&gt;,&lt;a rel="tag" href="http://technorati.com/tags/DVD"&gt;DVD&lt;/a&gt;,&lt;a rel="tag" href="http://technorati.com/tags/HD"&gt;HD&lt;/a&gt;,&lt;a rel="tag" href="http://technorati.com/tags/up-scaling"&gt;up-scaling&lt;/a&gt;&lt;/div&gt;</description><link>http://www.barrydobson.com/post/6067043177</link><guid>http://www.barrydobson.com/post/6067043177</guid><pubDate>Thu, 20 Dec 2007 18:24:55 +0000</pubDate></item><item><title>System.DirectoryEntry - Adding new objects</title><description>&lt;p&gt;I have recently been playing around with Apaches Directory Service, creating custom schema types and the like but came across a problem.

In VB.Net if I tried to add a new child to a directory entry, of a custom schema type (in this case in inherited from the person class) it would throw an exception when I tried to commit changes. On closer inspection I noticed that instead of creating an object of my custom schema class, it was trying to create an object of the person class, and the error being thrown by the LDAP server was because some of the properties I was trying to set did not exist for the Person class.

I managed to get around this by adding a property &amp;#8216;objectClass&amp;#8217; and setting the value to the type of my custom schema class. This means that when I call commit changes, the LDAP server can validate it against that class.
&lt;pre class="vb.net:nogutter"&gt;AddUpdateProperty(newUser, "objectClass", "myUserClass")
AddUpdateProperty(newUser, "mail", user.Email)
AddUpdateProperty(newUser, "uid", user.ID)&lt;/pre&gt;
&lt;p class="wlWriterSmartContent" style="display: inline; margin: 0px; padding: 0px"&gt;Technorati Tags: &lt;a rel="tag" href="http://technorati.com/tags/LDAP"&gt;LDAP&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/vb.net"&gt;vb.net&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/directoryentry"&gt;directoryentry&lt;/a&gt;&lt;/p&gt;&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067058840</link><guid>http://www.barrydobson.com/post/6067058840</guid><pubDate>Mon, 03 Sep 2007 12:54:35 +0100</pubDate></item><item><title>System.DirectoryEntry Unknown error (0×80005000)</title><description>&lt;p&gt;I have recently encountered this really unhelpful error message in VB.Net whilst trying to code a connection to an LDAP server.

After much head banging I found the solution! It&amp;#8217;s all down to the path you supply to the constructor:

Old Connection (doesn&amp;#8217;t work):
&lt;pre class="vb.net:nogutter"&gt;Using dir As New DirectoryEntry(ldap://yourserver:port)
	' Your Code
End Using&lt;/pre&gt;
New Connection (does work):
&lt;pre class="vb.net:nogutter"&gt;Using dir As New DirectoryEntry(LDAP://yourserver:port)
	' Your Code
End Using&lt;/pre&gt;
Spot the difference? That&amp;#8217;s right! the protocol part (LDAP) is case sensitive. Changing to uppercase works like a charm.

Update: I have posted an article and sample code on working with LDAP &lt;a href="http://www.barrydobson.com/2008/06/13/working-with-ldap-in-vbnet/"&gt;here&lt;/a&gt;.
&lt;p class="wlWriterSmartContent" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a rel="tag" href="http://technorati.com/tags/vb.net"&gt;vb.net&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/directoryentry"&gt;directoryentry&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/unknown%20error"&gt;unknown error&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/ldap"&gt;ldap&lt;/a&gt;&lt;/p&gt;&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067055704</link><guid>http://www.barrydobson.com/post/6067055704</guid><pubDate>Fri, 31 Aug 2007 10:31:30 +0100</pubDate></item><item><title>Pet Names</title><description>&lt;p&gt; After reading the story about a woman&amp;#8217;s pet Boa-Constrictor, named &amp;#8216;Fluffy&amp;#8217; it got me thinking about other good names for pets.&lt;/p&gt; &lt;p&gt;I&amp;#8217;ve always thought that given a cat or a dog a human name would be funny. I don&amp;#8217;t own a pet, but if I did I think I&amp;#8217;d name a dog Kenneth, and a cat either Martin or Kevin. I don&amp;#8217;t know why, I just would.&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.wmctv.com/Global/story.asp?S=6837886"&gt;Woman&amp;#8217;s pet snake missing near Memphis golf course&lt;/a&gt; &lt;/p&gt; &lt;div class="wlWriterSmartContent" style="display:inline;margin:0;padding:0;"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Pets" rel="tag"&gt;Pets&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Snakes" rel="tag"&gt;Snakes&lt;/a&gt;&lt;/div&gt;</description><link>http://www.barrydobson.com/post/6067053250</link><guid>http://www.barrydobson.com/post/6067053250</guid><pubDate>Thu, 26 Jul 2007 09:23:23 +0100</pubDate></item><item><title>Are ISP’s modifying your web pages?</title><description>&lt;p&gt;Apparently some of those nasty ISP are modifying web pages you request, so insert their own adverts into them, can you believe it?&lt;br/&gt;To see if this is happening to you, visit &lt;a href="http://vancouver.cs.washington.edu"&gt;this&lt;/a&gt; web site is designed by the University of Washington and ICSI to answer these questions.&lt;/p&gt; &lt;p&gt;&lt;a href="http://vancouver.cs.washington.edu"&gt;read more&lt;/a&gt; | &lt;a href="http://digg.com/security/Are_ISPs_modifying_your_web_pages"&gt;digg story&lt;/a&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" style="display:inline;margin:0;padding:0;"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ISP" rel="tag"&gt;ISP&lt;/a&gt;, &lt;a href="http://technorati.com/tags/internet" rel="tag"&gt;internet&lt;/a&gt;, &lt;a href="http://technorati.com/tags/adverts" rel="tag"&gt;adverts&lt;/a&gt;, &lt;a href="http://technorati.com/tags/web%20pages" rel="tag"&gt;web pages&lt;/a&gt;&lt;/div&gt;</description><link>http://www.barrydobson.com/post/6067050441</link><guid>http://www.barrydobson.com/post/6067050441</guid><pubDate>Wed, 25 Jul 2007 12:53:05 +0100</pubDate></item><item><title>50,000 football fans worldwide to buy an English club and pick the team</title><description>&lt;p&gt;This is a football club takeover with a difference. Not like Glazier, Lerner or Kroenke buying into English football - this is a web site that harnesses the power and enthusiasm of football fans around the world. They will have an equal share in the club, vote on team selection and tactics, buying and selling players and club business decisions.&lt;/p&gt; &lt;p&gt;I think this is a good idea and it will be interesting to see if this works, if it does it could catch on. Can you image the days leading up to a game, just before the squad list has to be submitted for a match with 50,000+ people studying the coaches form guide and picking their first 11? It will be exactly like football management games and fantasy football. &lt;/p&gt; &lt;p&gt;Another good thing about this if it takes off is that it should generate a lot more interest in the lower leagues. People will be looking for the score every week, whether they have invested in it or not, and as for all that extra media coverage!&lt;/p&gt; &lt;p&gt;I don&amp;#8217;t think I&amp;#8217;ll be investing in this, but I will be keeping an eye on it!&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.myfootballclub.co.uk"&gt;read more&lt;/a&gt; | &lt;a href="http://digg.com/soccer/50_000_football_fans_worldwide_to_buy_an_English_club_and_pick_the_team"&gt;digg story&lt;/a&gt;&lt;/p&gt;</description><link>http://www.barrydobson.com/post/6067047945</link><guid>http://www.barrydobson.com/post/6067047945</guid><pubDate>Tue, 24 Jul 2007 12:52:26 +0100</pubDate></item></channel></rss>

