Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)

TorgoX
  sburkeNO@SPAMcpan.org
http://search.cpan.org/~sburke/

"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Monday March 06, 2006
08:45 PM

Ow my stack!! And use.perl.org CSS musings.

[ #28898 ]
Dear Log,

The glory and insanity of PostScript are both to be found in this one function that I stumbled on today:

/is_leap { % year => boolean [true: leap; false: common]
  dup 4 mod 0 eq 1 index 100 mod 0 ne 2 index 400 mod 0 eq or and exch pop
} def

It's from this neat georigami calendar page.

Hm, as I enclose that snippet in <ecode>...</ecode>, I wonder why I can't just simply use <pre> here. A simple "pre{ overflow: scroll; }" in the site's stylesheet would keep it from stretching the page. See!

And speaking of the site's stylesheet, why is there that weird ".intro p { margin: 0 0 1em 0; [...] }" rule that changes the normal style (margin: 1em 0 1em 0) of all the p's in postings? Here's an example of "text<p>moretext" that comes out looking like "text<br>moretext" because of that ".intro p" rule. Same problem actually appears in this message too.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.