Click here to Skip to main content
15,881,882 members

Articles by jsc42 (Article: 1, Tip/Tricks: 3)

Article: 1, Tip/Tricks: 3

RSS Feed

Average article rating: 4.90

Web Development
HTML
13 Nov 2011   Updated: 13 Nov 2011   Rating: 4.90/5    Votes: 3   Popularity: 2.34
Licence: CPOL    Views: 27,433     Bookmarked: 4   Downloaded: 116
Please Sign up or sign in to vote.
This article presents an improved method to display a definition for an abbreviation or initialism whenever the user hovers over the abbreviation or initialism.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.94

General Programming
Regular Expressions
7 Feb 2012   Updated: 8 Feb 2012   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 11,240     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
\S does not / did not work on all versions of RegExp on Microsoft JScript / VBScript (sorry to be vague - I just recall having to avoid it because it was flakey). Instead you could try Start([.|\n]*)End (match everything except newline and newline)Update: Checked some old code: I could...
Programming Languages
C#
31 Jan 2011   Updated: 31 Jan 2011   Rating: 4.88/5    Votes: 5   Popularity: 3.41
Licence: CPOL    Views: 8,640     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
It is much easier (and cleaner) to test for success than to test for failure.Viz:if ( condition1 // Note: Test for success, not for fail && condition2 // Will be short-circuited if condition1 fails && condition3 // Will be short-circuited if condition1 or condition 2...
Web Development
HTML
31 May 2011   Updated: 31 May 2011   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 19,083     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
You can simplify the replacement by not translating the strings to numbers as all array subscripts are treated as strings, and by representing '{' and '}' as more user-friendly substitutions (e.g. {{} and {}}) rather than {-1} and {-2} which can be pre-populated into the replacements array....

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Software Developer DDC OS
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.