Rapid debunking of conspiracy theories with Perl
Thursday, 26 April 2007
use Date::Calc "Delta_Days"; my $days = Delta_Days( 2001, 9, 11, # US 2004, 3, 11 ); # Spain print $days, $/;
912.
Etruscans you can experience.
Thursday, 26 April 2007
use Date::Calc "Delta_Days"; my $days = Delta_Days( 2001, 9, 11, # US 2004, 3, 11 ); # Spain print $days, $/;
912.
About · Referring queries · Random article · Random doc · Recent comments (XML) · Contact · XML/Atom
1,084 articles · 1,304 document pages
We highly recommend The Rejection of Pascal’s Wager: A Skeptic’s Guide to the Bible and the Historical Jesus. It is an incisive display of unpretentious, serious scholarship and it is the only word needed on the debate.
Anyone can double click to edit the block below. Its content is not necessarily from Sedition·com or reviewed or approved by us. Your chalkboard entry will stay there until someone else does the same or the server cache is reset or expires in a week. Rules: XHTML strict, no styles, no scripts, no <pre/>, no attributes except href for links, 750-ish characters, and, as usual, threats and abuse won’t be tolerated unless they’re very, very funny.
Why would you want to do this? You can put an ad and link for your site there. You can put a “Sedition·sucks” there. It’s above the fold on the top page and it’s all yours until the next visitor comes along.
Why would we want to do this? 1) Free speech is fun. 2) Cross-pollination is fun. 3) A Web 2.0 résumé point is nice when poking the job market with a sharp stick.
» Turns out James Hetfield isn’t that great a match after all
» A day to honor our allies and friends
» Kid Rock quotes for all ocassions
» This week in the news #52: the horror
» “Extra line breaks in this message were removed.”
» For whatever reason –or– Don’t count your blessings before they hatch
» Avatar
» Untitled
» Questions from the QueryLog: catalyst model open text file
» Questions from the QueryLog: access catalyst config from a model
» Keywords: form bind change onchange ie problem ie6 ie7 jquery
» Wrap-up: 10 Catalyst models in 10 days
» Catalyst Model #10: Fixing your legacy code by not fixing it
» Catalyst Model #9: TheSchwartz
» Catalyst Model #8: Titles in real typefaces on demand with Imager
» Catalyst Model #7: Page view counter/tracker
Katherine» uncanny!
Ashley» I thought I was a mean absurdist. :)
Vagrant» Celia, I'd like to believe that, but the simple truth is that t…
Vagrant» I, for one, am always delighted when my friends reject salaried…
Celia» hello...i dont believe music makes you gay. if you are a good …
We use carbon neutral web hosting to serve pages and our software, images, and auxiliary content are developed using 100% wind power; no, seriously.
It happened once upon a time that a certain Greek ship bound for Athens was wrecked off the coast close to Piraeus, the port of Athens. Had it not been for the Dolphins, who at that time were very friendly toward mankind and especially toward Athenians, all would have perished. But the Dolphins took the shipwrecked people on their backs and swam with them to shore.
Now it was the custom among the Greeks to take their pet monkeys and dogs with them whenever they went on a voyage. So when one of the Dolphins saw a Monkey struggling in the water, he thought it was a man, and made the Monkey climb up on his back. Then off he swam with him toward the shore.
The Monkey sat up, grave and dignified, on the Dolphin’s back.
“You are a citizen of illustrious Athens, are you not?” asked the Dolphin politely.
“Yes,” answered the Monkey, proudly. “My family is one of the noblest in the city.”
“Indeed,” said the Dolphin. “Then of course you often visit Piraeus.”
“Yes, yes,” replied the Monkey. “Indeed, I do. I am with him constantly. Piraeus is my very best friend.”
This answer took the Dolphin by surprise, and, turning his head, he now saw what it was he was carrying. Without more ado, he dived and left the foolish Monkey to take care of himself, while he swam off in search of some human being to save.
Discussion
Comments
A missing-the-point comment
What editor do you use for perl? I've always used emacs with cperl-mode, but those don't look like the standard colors for either of emacs' perl modes. Anything you'd suggest?
By Jen on 26 April 2007 · 12:50
comment link · reply to this
Re: Rapid debunking of conspiracy theories with Perl
I also use Emacs with cperl-mode—or sometimes perl-mode which indents some things better—but what’s printed up there is dynamically generated from the software which runs the site. I added the code coloring just a couple of days ago.
It uses the wonderful PPI to walk through and add spans around different code tokens. Then it’s just a little CSS to color it (I haven’t settled on a final scheme yet, I’ll probably rip off perldoc.perl.org’s lovely scheme. I was planning on posting a code sample of it but haven’t got to it yet. I want to do a section of nothing but code snippets because I’ve got 1,000+ lying around. That is shaping up and I’ll add something in the sidebar like “New non-journal stuff” when it’s together.
By Ashley on 26 April 2007 · 13:10
comment link · reply to this
Re: Rapid debunking of conspiracy theories with Perl
Never even heard of PPI. Pretty cool stuff. Isn't it a bad sign for the readability of a language if it isn't possible to parse it without the actual interpreter? But that's just my reaction from reading all the we-will-never-be-perfect stuff... I haven't checked out what PPI can acutally do.
And code snippets would be awesome... I do luvs them snippets.
By Jen on 26 April 2007 · 20:42
comment link · reply to this
Re: Rapid debunking of conspiracy theories with Perl
PPI is very, very good at parsing Perl but, like the man said, only perl can parse Perl (meaning, only the actual interpreter can parse the language). This is because Perl is extremely dynamic for things like self-generating code or on the fly namespace manipulation; you might not even know what your program looks like until it’s running, or has been running. This is part of its curse and its charm. Why it’s both so easy and so easy to write badly. I think it’s safe to say I would not be a hacker, of any material cloth, without Perl because I’d never be charmed by any of the other languages.
By Ashley on 26 April 2007 · 22:56
comment link · reply to this
Re: Rapid debunking of conspiracy theories with Perl
Hmm.. that's odd. On this page there's a link to the next post, "I like insects better than you #26: sweat bee", but as of 11:45 EST, it doesn't seem to exist.
By Jen on 26 April 2007 · 20:45
comment link · reply to this
Re: Rapid debunking of conspiracy theories with Perl
:) Sweat bee might be next… I must have broken the search_live ResultSet call—that post is not “live” yet but scheduled to post in the future—when I reordered the arguments earlier to allow for something else. You can have a top secret preview for being so observant: sweat bee.
I’m fiddling lots of little stuff right now to allow for different kinds of hierarchical/tree posts in and outside the “blog” line.
By Ashley on 26 April 2007 · 22:48
comment link · reply to this
Re: Rapid debunking of conspiracy theories with Perl
hierarchical/tree posts........... line ?
By anne on 27 April 2007 · 21:07
comment link · reply to this