Click here to Skip to main content
14,925,914 members

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

Article: 1, Tip/Tricks: 3

RSS Feed

Average article rating: 4.90

Web Development
HTML
Posted: 13 Nov 2011   Updated: 13 Nov 2011   Views: 19,393   Rating: 4.90/5    Votes: 3   Popularity: 2.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 113
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
Posted: 7 Feb 2012   Updated: 8 Feb 2012   Views: 9,430   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      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#
Posted: 31 Jan 2011   Updated: 31 Jan 2011   Views: 7,320   Rating: 4.88/5    Votes: 5   Popularity: 3.41
Licence: The Code Project Open License (CPOL)      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
Posted: 31 May 2011   Updated: 31 May 2011   Views: 16,853   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      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.

jsc42
Software Developer DDC OS
United Kingdom United Kingdom
No Biography provided