Does Gmail have a setting somewhere to make message text appear in a fixed width font? 'Cause if it does, I sure can't find it...
To force it to use a fixed width font anyway, I added the following to userContent.css in my Firefox profile:
div.msg div.mb {
font-family: monospace !important;
font-size: 12px !important;
}
(Firefox's 'View Selection Source' came in real handy trying to figure out these classnames; regular View Source is a pain on Gmail because the whole thing's Javascript-generated.):visited pseudo-class and background-image urls to detect if a user has visited a particular link. [href=] selector. Unfortunately, there's another method that does work in IE and is even more dangerous...body {
background: url("
javascript:
document.body.onload = function(){
...custom js here...
}
");
}By specifying a rule like this in the browser's user stylesheet, it might even be possible to run a custom set of Javascript commands on opening of any visited website. (Although my brief attempt at making this work proved unsuccessful.) [via webgraphics]
114.milov.nl - a starry mouse-driven snowflake generator of sorts, made with Processing. Simply drag your mouse over the applet and watch the patterns form. (But don't stare at it for too long or you'll see it every second you close your eyes; believe me, I know.)a real-time video tracking program coded on the Processing environment to create a simulation of snowing.[via Low]
<ul> listings, check out IF THEN ELSE (who also caught the redesign bug this week)'s take on it; scroll down a bit and hover over the leftside menus. By already showing a tiny border in the default link state, and increasing the border size on hover, it looks like LEDs lighting up. Pretty colours!expression() syntax to simulate the css max-width property, which works in Mozilla/Opera but not in IE.<ul> lists. I like this trick where a fat border-left is used to create a neat hover effect. [via kottke.org]include_once("init.php"); to point to the original dir: include_once("../protected_dir/init.php")is_writable( "cache" ) to is_writable( dirname(__FILE__)."/cache" )Last-Modified and If-Modified-Since HTTP headers. I'll probably try this (even though the effect of my tiny RSS feeds on total bandwidth is negligible considering the 100KB of inline photos usually visible on my frontpage). [via Anil Dash]document.myForm.myInput.value
document.someImage.srcdocument.forms['myForm'].elements['myInput'].value
document.images['someImage'].src
1. posted by milov at 12:15 on September 15, 2004
URL: http://milov.nl/rss.xml
[pass] The URL shouldn't redirect
[pass] If clients ask for compression, then provide it
[pass] Don't disable caching with Cache-Control
[pass] Supply a Date header, to indicate the server time
[pass] The server clock should be accurate ( < 10 minutes difference)
[FAIL] Use an Expires header to tell clients how often to poll
[ ] Expiry must be in the future
[pass] Last-Modified headers tell clients how often content is updated
[pass] The Last-Modified date must be in the past
[good] Provide an ETag
[pass] Provide Last-Modified or ETag, so clients can make conditional requests
[good] Feed size should be less than 64 KiB
[pass] Conditional requests, using Last-Modified and ETag, save bandwidth and reduce server load
[good] If-Modified-Since alone should be honoured
[good] If-None-Match alone should be honoured