5.12.08 Multiday Calendar Datepicker JQuery Plugin category: DHTML, jQuery
2
comm

4.24.08 LitJson Patch To Serialize Hashtable/IDictionary Keys of DateTime Type to JSON category: C#.NET
0
comm

LitJson is great - lightweight, fast, easy to incorporate, etc. Thanks Leonard Boshell!
I actually found the need to serialize Hashtables to a JSON string that contained Keys that were of the DateTime datatype. LitJson 0.5.0 assumes that the Keys of Hashtable or IDictionary can be cast into a string by default. The DateTime object [...]

4.22.08 Convert Single Level “XML” To Native C#.NET Object Via Json And Regular Expressions category: C#.NET
0
comm

So we have a 3rd party API that’s returning “XML” in as though it was a DTD-less WDDX or XML-RPC format. We need to convert this “XML” into native C#.NET objects. The solution is a bit on the “Perl Hackish” side of things - but the simplest and fastest method I could come up with [...]

4.21.08 Convert ADODB RecordSet XML To ADO.NET DataSet Object Natively In C# category: C#.NET
0
comm

Problem: You have a 3rd party API that returns an ADODB XML RecordSet that you need to incorporate in your .NET application.
ADO.NET is completely different than the Legacy ADODB and offers no completely transparent backward compatibility. As per Microsoft’s admission, http://support.microsoft.com/kb/910696, using TlbImp.exe’d legacy ADODB dll’s or those that were included with Visual Studio 2005 [...]

4.17.08 Simple AES (Rijndael) C# Encrypt & Decrypt functions category: C#.NET
0
comm

I simply re-purposed Bobby Derosa’s Triple DES (3DES) Encrypt() and Decrypt() functions to provide a simple and straight-forward way to use AES symmetrical encryption safe for use on such things as UTF-8 and/or HTTP GET string compatibility. I’m using this in ASP.NET AJAX-enabled applications.
I’m only using a 256bit (32byte) key for these example functions.
Encrypt()
public static [...]

4.11.08 Mark Gibson’s JSON JQuery Updated category: AJAX, jQuery
0
comm

Mark Gibson put together a re-purposed json.js direct from Douglas Crockford’s early implementation of json.js as a jQuery plugin located here. I simply took Douglas Crockford’s ‘2008-02-14′ json2.js release and did the same re-purposing as Mark Gibson did just to have the updated features of the new json2.js code. One of those features included the [...]

4.11.08 MSSQL - Fast Character Field Loose-Comparison category: Coldfusion Development, MSSQL
0
comm

Another absolute gem that a coworker of mine, Scott Fitzpatrick, found as part of our continuing database optimization was how to compare character fields fast if doing a “loose” comparison. Say we wanted to find a row where the field was O’BRIEN but we wanted to match on OBRIEN. We have previously been using a [...]

4.11.08 MSSQL Functions To Strip Non-AlphaNumeric and Non-Numeric Characters In Character Fields category: MSSQL
0
comm

Thanks to Dan Venor and Scott Fitzpatrick and a little help isolating the ASCII Character values here are a two functions for use with inline MSSQL queries to strip non-alphanumeric and non-numeric characters in character fields respectively. This comes in handy if you’re using older versions of mssql that do not have regex (regular expression) [...]

3.27.08 Load Test AJAX Applications With HTTPERF category: AJAX, UNIX
0
comm

First off - never leave home before launching any site or server architecture without HTTPERF. http://www.hpl.hp.com/research/linux/httperf/
This is the most robust and elegantly simple load testing CLI (command line interface) I’ve yet ever seen or been happy to use. The one feature that is most impressive is the –wsesslog feature:
[...]

3.17.08 Fast Display of Coldfusion Execution Time category: Coldfusion Development
2
comm

There is a definite penalty to using the “Report Execution Times” in the coldfusion administrator. There is a simple way to use built-in java timestamps to guage execution time.
I simply add a start time at the beginning of a request via the Application.cfc’s onRequest method and calculate the difference in time at the end of [...]

1.083s