Monthly Archives: April 2009

  • CSS tip: Use :after pseudo-element to append copyright notices to printed material

    Here’s some simple CSS code that’s useful if people frequently print portions of your website. When added to your print stylesheet it will append your site’s copyright notice to the end of any printed page. #content should be replaced with whatever element wraps your content.

    #content:after {
    margin-top: 40px;
    content: "Printed Material Notice: Any and all original material on this website may be freely distributed at will under the Creative Commons Attribution-NonCommercial License, unless otherwise noted."
    }

    I don’t recommend you append copyright notices unless your content is frequently printed and distributed. eff churns out tons of original, quotable material and I often have visitors email me asking what permission they have to cite and distribute our work.

    check out eff’s print stylesheet to see it in action. In the rest of the stylesheet we strip extraneous material (sidebars, navigation, etc.), change the formatting of blockquotes and anchors so they’re not color-dependent, and print the page’s url after the ‘permalink’ anchor using this snippet.

    a.perm:after {
      font-size: 90%;
      content: ": http://www.eff.org" attr(href);
    }

    Over in print-notie.css we replace our header image with a printer-friendly version using a list-style hack.

    #logo img {
      display: none !important
    }
     
    #logo {
      display: list-item;
      line-height: 70px;
      list-style-image: url(images/print_logo.jpg);
      list-style-position: inside;
      width: 99%
    }

    This keeps everything kosher for the most part. Here’s a screenshot of a blog post in a browser, the same post after printing, and the post after printing without a print stylesheet. Without a print stylesheet it spans five pages and the only usable content is on page four.

    While EFF’s print stylesheet is not perfect, it does a good job prepping web content for printing. The :after pseudo-element, while not fully supported in all browsers, fails gracefully and can add helpful features to alternative media.

    It’s feels odd referring to paper as an alternative medium…

  • Toward a deontological obfuscation of God

    Here’s a journal entry I wrote many years ago and recently found while organizing my computer’s archives. I thought I’d share it with the world. Experiences like this led me to study philosophy at USF.

    Toward a Deontological Obfuscation of God

    God is a cheeseburger.  Or so I convinced myself when I was 16.  It was my junior year of high school and I decided my formal education was a total waste of time.  Rather than study for my pre-calc final exam (after only attending the class on occasion) I thought I would try an experiment: I’d pray for a passing grade.  But I wouldn’t pray to God; I would pray to a cheeseburger.

    I was raised in a traditional Roman Italian Catholic family.  I attended church every week and I had the Bible beaten into my brain.  My mother wasn’t a very good bible-humper, though.  She raised me to believe that all God cared about was my actions toward others.  She led me to believe if I was a caring, decent human who put others before myself, God would approve and take care of me.  She raised me to be a good person.

    So I defamed God.  I envisioned him/her to be a ridiculously juicy cheeseburger and I facetiously worshipped said entree for the week leading up to the exam.  I was under the impression that if God took offense to being burgerfied while I made a sincere effort to follow the Golden Rule, God was an arrogant douche bag with no sense of humor and not something I was willing to look up to.  I mean it was funny: God being a cheeseburger and all.  Come on.  (Yes, I trolled God).  If God wasn’t full of herself I’d get a decent grade on the exam and pass out high-fives all around.

    The episode taught me three things:

    1.  My teacher was an idiot.  The exam was a multiple-choice Scantron test.  I solved every answer by the process of elimination and scored an 82%.  It was the most poorly written test I had ever come across with each set of answers able to be reduced to one of two possible solutions.  Paired with one third the knowledge of pre-calc i should have had, I had ~75% chance of answering each question correctly.  I have no idea what the guy was thinking.

    2.  If God exists, she really only cares about the motives of my immediate actions.  If this were not the case she would have set me on fire because I blasphemed her mad hardcore-like.  Hey, I meant no harm, though.  My intended goal was good-natured enlightenment.

    3.  God is a cheeseburger.  If you fear God rather than befriend her, you are an idiot because how can you seriously be afraid of a cheeseburger?  Prayer should not be painful or scary.  If you worship God because you fear Hell, you are willingly imposing a sort of metaphysical totalitarianism upon your consciousness.  God means nothing unless you create meaning for her.  Why not choose something that will make you happy inside?  You should really reevaluate why you take the Bible so literally.

    God is a cheeseburger.  Or a glowing white ball, or a jar of mayonnaise, or an old man with a beard, or a sliced pickle, or two strips of bacon, or a thick slice of cheddar cheese, or a fresh sesame bun, or… mmmmmmm… God…