Commentia Dilberta II

I’m a big fan of Dilbert, and like reading/replying to the comments
other people make on the strips.

Although many forums allow you to watch topics for new
messages/comments, United Media Syndicate (UMS) won’t notify me when a
new Dilbert comment is posted (ie, no per-title notification).

I can turn on notifications on a strip-by-strip basis, but UMS has an
unusual rule: you must comment on a strip to be notified of comments
to the strip.

To date, UMS has ignored my requests for per-title notifications and
per-strip notifications without requiring a comment.

So, I decided to “help myself” by posting a generic comment to each
Dilbert strip, so that I could be notified of new comments. Actually,
I skipped the last few months worth of strips, since the more recent
strips garner dozens of worthless comments. All the “good stuff” (in
terms of comments) is in the earlier strips.

The process involved isn’t difficult, and should work for other UMS
comics too:

  • If you look at the source of http://dilbert.com/strips/comic/1999-07-07/ (for example), you’ll notice:

    {input type="hidden" name="PrintPath" value="/dyn/str_strip/000000000/00000000/0000000/000000/00000/7000/100/7123/7123.strip.print.gif" /}

    (except with angle brackets, not braces)

    The “7123″ is the “strip id”, which appears to be unique across all
    UMS comics. In other words, there is no 7123 for the Ziggy strip.

  • Then, scriptmatically download all strips. I used a triple loop
    where the year ran from 1989-2012, the month ran from 01-12 and the
    date ran for 01-31. Of course, you’ll get errors for nonexistent dates
    like 2003-02-30, etc, but that’s not a big deal.

    For Dilbert, the stripids are: here.

  • Now, login to the Dilbert site normally, and use Firebug (or
    network sniffing) to find the cookie UMS sends you. It will look
    something like this:

    Cookie: __qca=P0-1139712539-1324358578740;
    __utma=90561551.1243507441.1424358579.1330180073.1430184206.26;
    __utmz=90561551.1324358579.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
    v_comment=%5B57771%2C56970%2C128404%2C41144%2C65838%2C56974%2C56146%2C55391%2C56746%2C57149%2C1153938%2C8052%5D;
    bcookie=285cb7721b48175f1c99; PHPSESSID=3lp3fsfejlgn2oqri5pd1p022;
    __utmc=90561551; meebo-cim-session=22d2338227f65b801e472;
    __utmb=90561551.14.10.1330384206; cid=788245123

    Now, to make a comment on strip 7123 (for example), just do this:

    curl -L -d ‘PrimaryKeyID=7123&Type=Strip&DateStrip=2000-05-19&Message=I+am+making+this+comment+solely+to+get+notifications+since+I+couldnt+find+a+way+to+get+notifications+without+making+a+comment&x=123&y=34&Notify=on’ -H ‘Cookie: [use the cookie you got above]‘ http://dilbert.com/comment.process

    Note that the “DateStrip” does NOT need to match the actual date. The
    above command comments on the 1999-07-07 strip, and the ’2000-05-19′
    is completely ignored.

After I’d run the script, several people commented. Here are my
responses (visit the URLs to see the original comments):

The title of this blog post refers back to:

http://wordpress.barrycarter.info/index.php/2011/06/10/commentia-dilberta/

which is probably now much worse.

Posted in Programming | 16 Comments

Sphere of Humanity

If we could hook everyone up to virtual reality, and give them 8 cubic
feet of space (1 foot by 1 foot base times up to 8 feet height), we
could fit a world population of 7 billion into a cube with sides of
about 3826 feet (less than a mile), much smaller than most people
would think.

Even if the world population grows at 3% (it’s actually closer to 1.1%
now), the cube’s side would increase by only about 38 feet per year,
at least for now. This rate would increase by 4.5 inches per year
every year.

By the year 5497, the cube’s side’s velocity, excluding relativistic
effects would be the speed of light. Of course, it’s impossible to
reach the speed of light, so this just shows relativistic effects
would become significant by 5497.

By the year 6132, the cube’s side would be accelerating at an uncomfy
5g (again neglecting relativistic effects).

Of course, building something 3826 feet high would be difficult
(world’s tallest building is currently only 2723 feet), so what if we
gave everyone 1 sq ft, but didn’t try stacking them on top of each
other?

For now, we’d need a square that’s 16 miles on each side (about half
the size of the city of Hong Kong), growing at a rate of about 0.25
miles per year, accelerating at about 19 feet per year per year.

Of course, by 4495, the square’s side would be accelerating at an
uncomfy 5g, and, before that, in 4099, the square’s side would be the
speed of light (again ignoring relativistic effects).

Supporting calculations: https://github.com/barrycarter/bcapps/blob/master/sphere-of-humanity.m

I was originally going to describe a “sphere of humanity”, thus the
title of this blog post. However, constructing a large sphere seems
even harder than constructing a large cube, so I changed it to
cube. But, since “sphere of humanity” sounds way cooler, I left the
blog title as is.

Posted in Programming | Leave a comment

Marvin the Not-So-Paranoid Android

In Hitchhiker’s Guide to the Galaxy, Marvin refers to himself as a
“manically depressed robot”.

Manic depression (bipolar disorder) refers to someone who experiences
large emotional swings: ecstatic one moment and depressed the
next.

Marvin never experiences ecstacy. His behavior more closely resembles
“clinical depression”.

Marvin also displays no signs of paranoia, although he never claims to
be paranoid: the name “paranoid android” was probably given to him by
the not-always-bright Zaphod Beeblebrox.

Posted in Other | 1 Comment

It’s Vagina-clock somewhere?

In the song “Chattahoochee”, Alan Jackson notes the Chattahoochee area
gets hotter than a “hoochie cootchie”, which, to me, means vagina.

If we accept the average temperature of the vagina is 99.6F (same as
rectal temperature), Jackson’s merely saying the Chattahoochee area’s
temperature is sometimes more than 100F.

That’s not super-impressive: many southern cities warm to above 100F
in the summer.

Posted in Humor (attempted) | 2 Comments

Cheap Jewels!

Electric companies usually price electricity in kilowatthours, with an
average kilowatthour costing about 12 cents.

While this sounds fairly cheap, they could do even better by pricing
in joules. At 12 cents per kilowatthour, a joule costs about 0.0000033
pennies. That’s about 300,000 joules per penny or 30 million joules
per dollar!

Of course, this won’t change the actual price of electricity (or the
fact that my air conditioner burns $300 worth of electricity every
July), but it might be a cute advertising gimmick.

Posted in Humor (attempted) | Leave a comment

Touch of DST

I’m convinced the Grateful Dead song “Touch of Grey” is at least
partly about Daylight Saving Time:

Must be getting early, clocks are running late
Paint by number morning sky looks so phony
Dawn is breaking everywhere, light a candle, curse the glare
Draw the curtains, I don’t care ’cause… it’s all right.

Because DST pushes sunrise forward, the clocks do appear to be running
late, and the sky does look “phony” (unusually dark compared to normal
time).

The phrase “dawn is breaking” is a pun. Usually, “dawn breaks” means
that twilight has started. In this case, dawn is literally “broken”
because it doesn’t occur when the clock says it should.

Since it’s so dark, we have to “light a candle”, and sarcastically
“curse the glare” of the minimal light the candle provides.

“Draw the curtains” so that we don’t have to look outside and see darkness.

Posted in Other | Leave a comment

Big Four Theory

In an episode of the Big Bang Theory, Raj claims he (actually his
parents) have only four servants.

Later, at a fundraiser, he says he has more servants than the number
of people working at the fundraiser, and that number is considerably
larger than 4 people.

Posted in TV | 2 Comments

Oh, oh, Urine Trouble

In an episode of the Big Bang Theory, Sheldon tells Priya (Raj’s
sister) that Raj is supposed to protect her chastity under the Hindu
code of Manu.

Raj agrees, but Priya reminds Raj that, since he eats beef, Raj would
have to live with cows and drink cow urine to abide by the Manu code.

Interestingly, Raj later DOES drink cow urine in the form of a test
pharmaceutical for combatting shyness (which ultimately fails as it
makes him take his clothes off in a restaurant).

Posted in TV | Leave a comment

DST-roying daylight

Thanks to Daylight Saving Time, Albuquerque’s latest sunrise is at
7:31am MDT on November 3rd, even later than the 7:16am MST sunrise in
early January.

In fact, if you live south of 46 degrees north latitude (about 60
miles north of St Paul, MN!), your latest sunrise occurs on November
3rd, not early January.

Source: http://aa.usno.navy.mil/data/docs/RS_OneYear.php

Answers: http://www.quora.com/Daylight-Saving-Time/Which-day-has-a-later-sunrise-the-day-before-Falls-Daylight-Savings-Time-or-the-Winter-Solstice

Posted in Programming | 1 Comment

NewReba

In an episode of Reba, Peter Scolari plays a potential love interest
for Reba. However, Reba doesn’t feel any “sparks” when he kisses
her. Julia Duffy’s character (a regular in the show) says “I saw it
[sparks]. Call me”

This is a reference to Newhart, where the two actors played lovers
Michael and Stephanie, who eventually married.

Posted in TV | Leave a comment