Archive for July, 2007

Computed vs Cascaded Style

Friday, July 27th, 2007

Most JS frameworks and libraries I’ve seen have a function similar to this:
function getStyle(el, prop) {
if (document.defaultView && document.defaultView.getComputedStyle) {
return document.defaultView.getComputedStyle(el, null)[prop];
} else if (el.currentStyle) {
return el.currentStyle[prop];
} else {
return el.style[prop];
}
}
So what is wrong with this [...]

RegExp Tool

Sunday, July 22nd, 2007

My favorite text editor of all time is ActiveState Komodo. I used to use the full/pro version of this but since I was too lazy to buy it so I kept redownloading the trial version every month. A while back ActiveState released a free version of the editor called Komodo Edit.
Komodo Edit has almost all [...]

Earthquake

Friday, July 20th, 2007

This morning at 04:42 I felt my first real earthquake since moving to San Francisco. It was very short and it was over before I knew it. However, it left me a feeling of emptiness and I felt a lot more frightened than I would ever have expected.