Skip to content


What we Talk About When we Talk About CSS

May the following entertain you, assist you, or further develop your opinion.
UPDATE: This isn’t working as i’d hoped. Anyone with experience in publicly editable Google spreadsheets, please lend your advice.

What is it?

A calculator I made using a spreadsheet, years ago, which I find is useful in determining certain calculations with efficiency, for handling alignment and approximate with of HTML div, or other containers which might be a part of an HTML document, as styled with CSS.

Please comment, if you have any advice to offer. I wish to for it to be available for others to actually USE, instead of merely look-at. After all, it’s not much to look at, really. ;-)

Posted in Web Development.


Microsoft .NET and Silverlight Allow Code Execution

Known URL’s hosted by Microsoft which are relevant to this critical update:

  • http://support.microsoft.com/kb/2514842
  • http://support.microsoft.com/kb/2478658
  • Combat vulnerability. Download the Update

The text provided here is only an excerpt of the original MS article. Please do not mistake this NoviceNotes™ article for the official Microsoft article. Instead, read the Microsoft KB articles indicated above, for complete details.

Microsoft Security Bulletin Excerpt

According to Microsoft Windows XP operating system Automatic Updates facility, Users and System Administrators are advised to immediate action for repairing a vulnerability posted by Microsoft on 2011-06-14 as KB2514842 , and as detailed under KB2478658.
Please view the Microsoft publications for complete details!

begin excerpt:

Microsoft Security Bulletin MS11-039 – Critical

Vulnerability in .NET Framework and Microsoft Silverlight Could Allow Remote Code Execution (2514842)
Published: June 14, 2011
Version: 1.0
General Information
Executive Summary
This security update resolves a privately reported vulnerability in Microsoft .NET Framework and Microsoft Silverlight. …
Continued…

Posted in MS Windows, Operating System, Software.

Tagged with , , , , , , , , , .


PHP Code Compatibility Repair Part 1

PHP 5.3 deprecated ereg_replace() repair coming soon!…

PHP 5.2 and Earilier (versions < 5.3) Code Problems

As PHP matures, and new versions are released, one thing I’ve noticed is consistent: deprecated language constructs, built-in PHP funtions, and various favourite code snippets throw warnings– or worse– errors, even the so-called production environment. It’s beyond the purpose of this article to pick apart which portions of what versions of PHP are going to cause error, so don’t expect to find that sort of dialogue here.

Use the Regular Expression presented below to repair PHP code, where ereg() is deprecated. The expression, intended for a text editor, or text processing tool, replaces the deprecated code with a perfectly compatible PHP function, preg_match_all() which– unlike eregi()– is compatible with PHP 5.3, and shows no likelihood of being deprecated any time soon.
Continued…

Posted in Recommended, Web Development.

Tagged with , , , , , , , , , , , , .


Negative Lookbehind Regular Expressions

Rather than duplicate the text just one-post later, please have a look at the post which precedes this, in chronological order (i.e. on the previous page), as it offers more information about the Lookaround regex syntax.

The following is known, by the Regex Buddy developer’s terminology, as a Negative Look behind regular expression. I used this expression to find, and separate semi-colons which are not semi-colons in a for() , language construct statement. I am uncertain of how well it works, but I’ve had some success with this current syntax. I welcome commentary, revisions, any feedback the reader wishes to offer.
The Match Expression: featuring a Negative Lookbehind, zero-width match / capture syntax.
(.)(?!>(for([ \w='"-]+;)))(;)(.)
The Replacement Expression: as used for the process described, above.
\1\2\4\n\5

Posted in Web Development.

Tagged with .


Negative Lookahead Regular Expression

The following regular expression employs the regex lookaround syntax. Specifically, according to terms I learned through the author of Regex Buddy, the following is an example of a Negative Lookahead regular expression.

I intend to revise the illustrative text portion of this post, when I have more time. I apologize for publishing it in such a bare-bones state, but as with so many drafts I have on back order, it must certainly be better to have something of it published, rather than let it sit dormant, never to be read by you or I. That said, please return to this any time you wish, knowing it should be updated.

The following match expression finds each instance of a less-than symbol which is NOT followed by the texts between the “or” operators (i.e. pre|html|head|etc…). This regex syntax features a negative lookahead expression. For the complete definition of lookarounds, and negative and positive lookahead regex, I recommend the regular expressions resources available at Regular-Expressions.Info

(\x3c)(?!\/?(pre|html|head|title|body))

Note: other programmers, instructors, etc., may refer to this syntax by various names, other than “lookaround”, or “lookahead”. Please offer your comments, if you are aware of different terms for this syntax, or if you’d like to offer your own examples, or if you just want to write a comment, or…

Posted in Recommended, Web Development.

Tagged with , , , , , , , , .