Remember the good old days? When every known website in the galaxy featured a shiny button with the words "Best viewed in browser X", prominently placed on a splash page or maybe on a separate error page. Using a different browser than the one preferred by the site designer, more than occasionally meant that the complete site would be unavailable. Well I do remember, and to be honest it wasn't anything good about it!
A good email validator is an indispensable tool to aid in fighting spam and other common problems with web forms. Creating a function that correctly identifies and approves the different aspects of an email address can be a challenging task. Utilizing the powers of regular expressions to do this can greatly simplify the work needed, but grasping regex's can be a daunting task in itself. This article won't do much to teach you regex's, however I will provide an expression that can be used to validate an email address.
Several of the projects I'm working on deals with IP addresses, and quite often I need to store these in databases. A major goal when working with databases is making them as small as possible (to create fast apps), as such storing a IP's as a text-strings isn't a viable solution when they can be stored as numbers. To aid with this conversion I have a ready made function in my code library that often gets used...
I might go totally ape-shit one day, but at the moment I've avoided the potential crisis. Once again it's IE's buggy rendering engine that's causing me problems, again nearly making me loose my few remaining marbles. Today, out of the blue, random headings across this site suddenly did an impressive vanishing act. The problem was that I really wanted them there, and in no way tried to make them disappear.
Ok, I might be slow... Just found David Baron's site and read "Notes on suggesting link styles" originally posted back in September 1999. Initially the article makes sense to me, the technique also solves a couple of (really anoying) problems with named anchors, so after a bit of reaserch I'm implementing a solution based on his article.
Finally it seems as though I've finished with my first larger CSS layout project. To rediscover the secrets of CSS I leaped into the work of creating my mandatory 3-column CSS design. I've worked with CSS designs in the past, but never created a CSS-only design, so this was meant to be sort of a "learning by doing" project. When starting I had some specific goals, most of which I think I got covered.