Techparade

technology blog

DoDIIS

Please click on the following link to view the article.
http://www.ncsi.com/dodiis12/index.html

Some Awesomeness from the Folks at the W3C

Dynamic outlines: the 'outline' property

The 'outline-color' accepts all colors, as well as the keyword 'invert'

'Invert' is expected to perform a color inversion on the pixels on the screen. 

This is a common trick to ensure the focus border is visible, regardless of color background.


  1. Outlines do not take up space.
  2. Outlines may be non-rectangular.
Enjoy!

Removing Empty/Blank Lines

Removing Blank Lines with RegEx Search and Replace

TextWrangler is an excellent and free text editing application for OS X. Common text editing "sanitation" issues include removing blank lines and HTML tags from a text document. Two simple methods to sanitize text are described below.

Removing Blank Lines:

To remove blank lines from a text file in TextWrangler, you have to run Search and Replace, tick the ‘Use Grep’ option and then search on the pattern:

^\r

Replace with nothing and the effect is like magic.

 

Removing HTML Tags from a File:

The pattern < /?[^>]> can be used to remove all the HTML tags.

Play Star Wars Episode IV

Using a simple telnet address you Terminal will connect in and play Star Wars Episode IV in its ASCII glory:

telnet towel.blinkenlights.nl

JavaScript Frameworks (in this case jQuery)

I have been hearing so much about the time saving goodness of JavaScript frameworks that I decided to see about it myself. Wow! I've been wasting time and keystrokes.

It took me about ten seconds to permanently switch to jQuery.

Compare the difference between the following two JavaScript fragments:

 

Non jQuery:

document.getElementById("iframe").src = url;

 

jQuery:

$('#iframe').load(url);

 

See what I mean?!

 

Filed under  //   Comparison   Frameworks   JavaScript   jQuery  

Resetting Favicons on Apple Safari Web Browser

      reset safari

reset safari favicons

      After you click Reset, reload your page and be happy!

Validate CSS3

Are you using CSS3 and wonder why the CSS even has the standard if they won't validate perfectly legal CSS3 code? All you have to do is hack the badge code.

Here is the code provided by W3C for CSS validation badge:

http://jigsaw.w3.org/css-validator/check/referer

Just substitute this URL for the one in the code:

http://jigsaw.w3.org/css-validator/check/referer?profile=css3