Geeks With Blogs

News

qrcode

Lance Robinson

Create Your Badge

Lance Robinson is a software engineer in Durham, Chapel Hill, Raleigh, and surrounding areas. More about Lance.

 Subscribe


Lance's TextBox » About Me » My Resume »Twitter Programming
LDAP Authentication and Password Management
Using LDAP to authenticate users is common, fast, and easy way to do. A while back I wrote a tutorial about how this can be done in a web app using the IP*Works! LDAP component. This particular article was written using VB.Net code samples. Some people ask me for classic ASP code samples, here you go. Lots of people ask about how to change an Active Directory (orADAM) user password over LDAP. With Novell, SunOne, and OpenLdap, its not so difficult as long as you have the administrator permissions ......

Posted On Friday, August 19, 2005 3:27 PM

EDI and BizTalk
Jeff Lynch is using /n software's AS2 Adapter for BizTalk 2004: I approached this new project with considerable skepticism and trepidation since I had never used the "AS2" protocol and never dealt with a third-party "exchange" before. The good news is I was very pleasantly surprised at just how easy this can be to setup and use! It sounds like Jeff had a favorable experience, but I wonder how this experience compares with those B2B integrations he's been a part of in the past. Based on Jeff's feedback, ......

Posted On Tuesday, August 2, 2005 10:03 AM

Thunderbird extension for extension developers curses at you
Mitch Graw has posted a Thunderbird extension called Reloadchromezilla, which adds a "Reload Chrome" option to the Thunderbird context menus and toolbar. Looks like John Coleman didn't like it because it contained a "swear word". A swear word in an open source Mozilla add-on? Seems like the guy could have simply modified the code rather than giving a 0 star rating for a free, open source, useful tool ......

Posted On Monday, July 25, 2005 10:27 AM

Audible Announces RSS Delivery
This press release from Audible details plan to offer secure RSS feeds. Audible made the announcement today at Gnomedex.

Posted On Friday, June 24, 2005 9:27 AM

Microsoft RSS Team?
Dave Winer hints that we'll get a peak at what Microsoft is doing with RSS tomorrow at Gnomedex.

Posted On Thursday, June 23, 2005 5:27 PM

XmlDocument.SelectSingleNode
Andrew Mooney just showed me the SelectSingleNode function of the XmlDocument class, which I'd previously overlooked for some reason. Doh! In searching for a node in an XmlDocument class with a particular attribute value, I was stepping through the entire tree! Instead, it is much easier to simply use: Dim place as System.Xml.XmlNode place = Msgs.SelectSingleNode("/myr... = '" + myvalue + "']") ......

Posted On Wednesday, June 22, 2005 3:52 PM

ADO.NET Entity Framework – Code First Development Pattern
Here’s a quick start introduction to the ADO.NET Entity Framework Code First Development Pattern. For a more complete (but still intro) walkthrough, check out ScottGu’s blog. At the time of this writing, you’ll need the EF 4.1 Release Candidate. After EF 4.1 is released you’ll no doubt be able to find it on the ADO.NET team blog. 1. Create a new empty ASP.NET MVC2 Web Application, add a reference to System.Data.Entity. If using the EF4.1 RC - add a reference to the EntityFramework dll that comes ......

Posted On Thursday, April 14, 2011 3:42 AM

Visual Studio 2010 Find and Replace With Regular Expressions
Here is a quick notes about using regular expressions in the VS2010 Find Replace dialog. 1. To create a backreference, use curly braces (“{“ and “}” ) instead of regular parentheses. 2. To use the captured backreference, use \1\2 etc, where \1 is the first captured value, \2 is the second captured value, etc. Example: I want to find*: info.setFieldValue(param1, param2); and replace it with: SetFieldValue(info, param1, param2); To do this, I can use the following find/replace values: Find what: {[a-zA-Z0-9]+}.setFieldValu... ......

Posted On Thursday, March 10, 2011 5:07 PM

MSDN Chats Page Needs RSS feed
The MSDN Online Chats site could really use an RSS feed.

Posted On Wednesday, June 15, 2005 2:23 PM

Drinking on the job?
Christian Weyer found an interesting AD attribute. What is your favorite drink?

Posted On Tuesday, June 14, 2005 10:27 AM

Colorizing code in blog posts
I'm using this free Syntax colorizer (C#) from SquishyWARE. It does the job well.

Posted On Tuesday, June 14, 2005 10:09 AM

Creating Team Foundation Work Items With PowerShell
Here is the simple function I added to my powershell profile: function create-tfstask ($desc) { tfpt workitem /new $workItemType /collection:$serverUrl /fields:"Title=$($desc);Ass... To=$assignee;AreaId=$areaId... } To find the AreaId and IterationId for your project/versions, just look at a bug you know is setup correctly: PS C:\> tfpt query /collection:http://3bs001vs... /wiql:"select AreaId,IterationId from workitems where ID = 879" Next I hooked this into ......

Posted On Wednesday, January 26, 2011 10:58 AM

How do I rollback a TFS check-in?
I can never remember how to rollback a check-in, and there all kinds of mess in search results about this (change between different versions of TFS etc), so I thought I’d just put this here so I won’t forget anymore. :) Thanks to @manningj, TFS genius. Just drop to the command line and use tf.exe. Example: tf rollback /changeset:12345 For more on the tf.exe commands: tf help Technorati Tags: Visual Studio,Team Foundation,Rollback ......

Posted On Tuesday, December 21, 2010 11:24 AM

PowerShell – Recycle All IIS App Pools
With a little help from Shay Levy’s post on Stack Overflow and the MSDN documentation, I added this handy function to my profile to automatically recycle all IIS app pools. function Recycle-AppPools { param( [string] $server = "3bhs001", [int] $mode = 1, # ManagedPipelineModes: 0 = integrated, 1 = classic ) $iis = [adsi]"IIS://$server/W3SVC/... $iis.psbase.children | %{ $pool = [adsi]($_.psbase.path); if ($pool.AppPoolState -eq 2 -and $pool.ManagedPipelineMode -eq $mode) { # AppPoolStates: ......

Posted On Thursday, December 16, 2010 3:59 PM

Setting a Master Page Dynamically
To set an ASPNET master page dynamically, use the Page_PreInit function and set the Page.MasterPageFile property. For example: protected void Page_PreInit(object sender, EventArgs e) { this.Page.MasterPageFile = "~/MasterPages/" + mymaster + ".Master"; } In the above example, mymaster should be set by whatever your requirements dictate – read from DB/CMS/whatever. The page (aspx) itself shouldn’t have any other reference to the master page (ie, no “MasterPageFile attribute in the page directive), ......

Posted On Tuesday, August 17, 2010 3:04 PM

PowerShell TruncateAtWhitespace Function
Here’s a TruncateAtWhitespace function that takes an incoming parameter value and an incoming max length, and returns a substring broken at a whitespace position. This way if you have “Lance has a blog” and you need to truncate it to 8 characters or less, you get “Lance” instead of “Lance ha”. function TruncateAtWhitespace{ param( [string]$value, [int]$maxlength=200 ) $maxlength-=3; #allow for "..." suffix if ($value.Length -le $maxlength) { return ($value + "..."); } $closestwhitespaceindex = [int]$value.Substring(0, ......

Posted On Monday, August 16, 2010 3:30 PM

Amazon SimpleDB Developer Tools
According to a recent Amazon survey, “Developer Tools” were the most requested improvement for SimpleDB. /n software’s Amazon Integrator fits the bill for developers building in .NET, ASP.NET, .NETCF, Java, JSP, C++, C++ Builder, Delphi, VB6 (ActiveX), and even classic ASP. You can download a free trial version, which includes demos and API documentation for the SimpleDB component as well as the included AWS, EC2, S3, and SQS components. Technorati Tags: Amazon, AWS, SimpleDB ......

Posted On Tuesday, February 3, 2009 9:46 AM

TwitterMinder and Flickr->Twitter scripts
If you’re an RSSBus user who is using my Google Calendar –> Twitter or Flickr –> Twitter services, you might notice a minor change to both. I changed Twitterminder so that tweets resulting from Google Calendar entries are prepended with “GCal: “. I did the same thing with the Flickr->Twitter script, it will now prepend “Flickr: “. Related: How to call these services from your own applications. Related: How I converted TwitterMinder into Flickr->Twitter by changing 4 lines of code ......

Posted On Thursday, August 28, 2008 1:58 PM

CSharp TruncateAtWhitespace Function
Here’s a TruncateAtWhitespace function that takes an incoming parameter value and an incoming max length, and returns a substring broken at a whitespace position. This way if you have “Lance has a blog” and you need to truncate it to 8 characters or less, you get “Lance” instead of “Lance ha”. /// <summary> /// Truncate at the end of a word /// </summary> /// <param name="value">The original string</param> /// <param name="maxlength">The maximum length of string to return</param> ......

Posted On Monday, August 16, 2010 3:28 PM

Listing SPQuery FieldNameRefs
It took me a while to figure out how to get a list of all the available fields for a particular type of list in SharePoint (for performing custom queries in SPQuery). I was looking for a published list of these fields, which as far as I know does not exist. Instead, you just use the GetList method of the Lists SOAP service. Here’s an example SOAP request: <?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://sche... SOAP-ENV:encodingStyle="htt... ......

Posted On Monday, December 7, 2009 4:24 AM

Copyright © Lance Robinson | Powered by: GeeksWithBlogs.net | Join free