Login


Jonathan Wood

Description:I'm a software and website developer working out of the greater Salt Lake City area of Utah. I've developed many websites including Black Belt Coder, Trail Calendar, and others.

I hike each week with my dogs Suki and Sasha. You can see my hiking blog at Hiking Salt Lake.
Website:http://www.softcircuits.com
Blog:http://www.hikingsaltlake.com
Country:USA
Time Zone:Mountain Standard Time

Articles

Generating a Element
Here's some code that generates a random machineKey element suitable for pasting into your ASP.NET web.config file.
By Jonathan Wood • Created on Tuesday, April 26, 2011
Extending LINQ with Random Operations
You can create extension methods to extend LINQ. Here's some code I came up with for extending LINQ to return random list items and shuffle lists.
By Jonathan Wood • Created on Saturday, September 22, 2012
Colorizing Source Code
Here's some C# code you can use to colorize source code (syntax highlighter) you plan to display on a web page. This code can be used to colorize source code for any programming language that you can write the rules for.
By Jonathan Wood • Updated on Wednesday, October 30, 2013
Quick and Easy Method to Remove Html Tags
Here's a short snippet of code you can use to strip out HTML tags from a block of text.
By Jonathan Wood • Created on Sunday, April 08, 2012
Abbreviating URLs
Abbreviating a URL is easy: Just truncate it. However, this article shows how you can more intelligently truncate a URL so that it conveys more information about the full URL.
By Jonathan Wood • Updated on Sunday, December 12, 2010
A Random Image Rotator Control
Here's a web user control that will randomly rotate images from a list of image files. Each image file in the list can be flagged as active or inactive and the control will only display images flagged as active. Simply edit the file list to change which images are displayed on your website.
By Jonathan Wood • Created on Saturday, October 27, 2012
Enabling RSS Auto Discovery
RSS autodiscovery is a technique that allows browsers and other software to automatically detect any RSS feeds associated with a particular website.
By Jonathan Wood • Updated on Sunday, April 24, 2011
Converting Between Integers and Strings Using Any Base
.NET provides the Convert class, which among other things can convert between integers and strings using different bases. Inexplicably, the Convert class only supports base 2, 8, 10 and 16. Here's a class that can convert between integers and strings using any base.
By Jonathan Wood • Created on Monday, April 11, 2011
A Friendly DateTime Formatter
Many websites have the ability show a date and time formatted as "2 minutes ago", "1 hour ago", or "Yesterday at 2:30P". Here's a class I wrote to format dates and times this way. It even supports dates and times in the future.
By Jonathan Wood • Created on Friday, March 25, 2011
Creating a User-Friendly TimeSpan String
The .NET TimeSpan class is great for keeping track of the difference between two instances of DateTime. However, while TimeSpan has a lot of formatting options, none of them produce a very user-friendly result. Here's a class I wrote to produce a much friendly description from a TimeSpan.
By Jonathan Wood • Updated on Tuesday, October 09, 2012
First ... 6 7 8 9 Last