Web Info & Tutorials

March 15th, 2008

PAINTING QUESTION

Any painters here? I should be moving into a new home next weekend. It was built in 88 and is due for a fresh coat of paint. The sprayed on ceiling are what I think is referred to as "popcorn" ceilings. What's the best was to paint them?
March 15th, 2008

I AM UP TO 75 IN A SET. APPARENTLY EVERYBODY SHOULD BE DOING THEM: PUSH-UPS.

http://www.nytimes.com/2008/03/11/health/nutrition/11well.html?_r=1&em&ex=1205553600&en=43b8530ee36900ef&ei=5087&oref=slogin
March 15th, 2008

REMOVE EDDING

Does anyone have experiences how to remove Edding 2000 from the dogi? I want to be careful, because I am afraid, that the colour will spread, if I try to remove it.
March 15th, 2008

MA, WEAPONS AND…

Hello,
I feature an engrossing article most women and MA, the essence, if I see it aright was about, that girls, who hit to bleak discompose low males, do meet so to a destined point, they module kvetch or `suffer`, they see to never be the agressor, so women see a primary activity and it…

March 15th, 2008

BANK OF MONTREAL MAY TAKE ADDITIONAL C$1.9 BILLION WRITEDOWN, ANALYST SAYS

Bank of Montreal may write down C$1.9 billion of debt investments and decide to shore up its balance sheet by selling stock, Genuity Capital Markets analyst Mario Mendonca said. via Bloomberg.com

March 15th, 2008

PROGRESSIVE ENHANCEMENT WITH CSS SUPPORT

Via John Resig we just got to learn about a clever technique applied by the Filament group in Boston called Progressive Enhancement with CSS support.

The study rightfully claims that object detection to determine whether a user agent is capable of supporting a certain interface is not enough. You also need to make sure that the browser supports the right look and feel - in other words that the CSS you will apply can be rendered as intended.

I've done similar things in the past, reading out the offsetWidth of an element to determine if the browser is in standards or Quirksmode but Filamentgroup's test script goes a lot further than this. It tests for the following CSS support:

  • Box model: make sure the width and padding of a div add up properly using offsetWidth
  • Positioning: position a div and check its positioning using offsetTop and offsetLeft
  • Float: float 2 divs next to each other and evaluate their offsetTop values for equality
  • Clear: test to make sure a list item will clear beneath a preceding floated list item
  • Overflow: wrap a tall div with a shorter div with overflow set to 'auto', and test its offsetHeight
  • Line-height (including unitless): test for proper handling of line-height using offsetHeight, primarily to rule out Firefox 1.0

For example the right box model support is tested with this script:

JAVASCRIPT:
  1. var newDiv = document.createElement('div');
  2. document.body.appendChild(newDiv);
  3. newDiv.style.visibility = 'hidden';
  4. newDiv.style.width = '20px';
  5. newDiv.style.padding = '10px';
  6. var divWidth = newDiv.offsetWidth;
  7. if(divWidth != 40) {document.body.removeChild(newDiv); return false;}

When the browser passes, the script adds an "enhanced" class to the body that you can use in your style sheet.

Neat idea and very defensive programming.