RSS Feed
  1. Today I learned…

    March 23, 2012 by pfranzen

    If you are pulling html via ajax using jquery, ALWAYS, specify the dataType attribute as “html” you can’t rely on the browser to do it for you

  2. Today I learned…

    January 30, 2012 by pfranzen

    document.height does not work in the new Firefox (9) :-(

  3. Play simple audio using Javascript

    January 29, 2012 by pfranzen

    var sound_var = new Audio("path_to_audio/sound.wav");;

  4. Rotate

    February 25, 2010 by pfranzen

    This is the right way to rotate a dom object in FF, using jQuery, of course, it can easily be ported to work with IE, but that’s up to you.

    var angle = 40*Math.PI/180;
    var cosx = Math.cos(angle);
    var sinx = Math.sin(angle);
    var negsinx = (Math.sin(angle)) * -1;

    var rotato = cosx.toString() + ‘, ‘ + sinx.toString() + ‘, ‘ + negsinx.toString() + ‘, ‘ + cosx.toString() + ‘, 0px’ + ‘, 0px’;

    $(‘#testIMG1′).css(‘-moz-transform’, ‘matrix(‘+rotato+’)');

  5. How “business” destroys business pt. 1

    August 10, 2009 by pfranzen

    The business of America is business
    - President Calvin Coolidge

    If you’ve ever talked to me about the state of business in America.  There’s is a good chance you got an earful about how stupid, inefficient and mismanaged (most of) it is. Well instead of just shooting off my mouth, I’ve decided to collect some evidence.  95% of this is from Wikipedia so inaccuracies may be there.

    For the first part I’ve researched some sites, namely, and and complied lists of what they say are the best / worst CEOs of all-time.  Then I looked into their backgrounds and found out the most advanced degree they held and here’s the data.

    First The Bad

    The ratings for downfall are pretty loose.

    • Incompetence – Just being an idiot
    • INCOMPETENCE – Not fit to walk your dog
    • INCOMPETENCE!! – Rick Wagoner, seriously, during his tenure he lost about $80 billion dollars, more than any other CEO in history
    • D’OH! – It seemed like a good idea at the time
    • Hubris – There is no way this could backfire, after all it was my idea…
    • Criminal – Just an outright crook
    Name Company Degree School Downfall
    Ed Zander Motorola MBA Boston Incompetence
    Gary Levin Time Warner Law Penn D’OH!
    Chuck Prince Citigroup Law Georgetown Incompetence
    Bab Nardelli GE / Home Depot / Chrysler MBA Louisville INCOMPETENCE
    Stan O’Neal Merrill Lynch MBA Harvard INCOMPETENCE
    Dick Fuld Lehman Bros. MBA NYU Hubris
    Kerry Killinger WaMu MBA Iowa INCOMPETENCE
    Rick Wagoner GM MBA Harvard INCOMPETENCE!!
    Gary Forsee Sprint BS? Missouri D’OH!
    Ken Lay Enron PHD Philosophy (Wha?!) Criminal
    Bernie Ebbers WorldComm ? Mississippi Criminal
    Richard Scrushy HealthSouth ? UAB Criminal
    Angelo Mozilo Countrywide BS Fordham Incompetent & a crook!
    “Chainsaw” Al Dunlap Sunbeam West Point Incompetent
    Jimmy Cayne Bear Stearns Dropout Purdue INCOMPETENT
    John Sculley Apple MBA Penn INCOMPETENT

    You’ll notice there are seven MBA’s and none of them even had the good sense to be crooks. You’ll notice an almost complete lack of engineering, technical degrees or arts degrees. Although, to be fair, some of these folks have undergrad degrees in those fields (You’ll also notice a complete lack of women). Also, lots of these guys had wins in the past, but blew something huge, so its “not fair to judge them like that.” You know what else isn’t fair? Losing your job / 401(k) / pension.

    Now the good

    Name Company Degree School Claim to fame
    James Skinner Mickey D’s No Degree Navy McDonald’s kicked butt in the recession. I know all FF companies did, but not as much Ronald
    Reed Hastings Netflix Math Bowdoin Founded Netflix, still kicking butt even with stiff competition from streaming. Continued innovation
    Steve Jobs Apple Dropout Reed college Seriously?!
    Herb Kelleher Southwest JD NYU Southwest, also chain-smoked KOOLs and drank wild turkey
    Lee Iacocca Chrysler Industrial Engineering LeHigh Quintessential CEO
    Bill Gates Microsoft Dropout Harvard Seriously?!
    Katherine Graham Washington Post History University of Chicago Made the WaPo what it is (was)
    Warren Buffet Berkshire Hathaway MS Economics Columbia Seriously?!
    Reuben Mark Colgate MBA Harvard Did the “small stuff” best
    Andy Grove Intel PHD Chemical Engineering Pentiums
    Michael Bloomberg Salomon Brothers MBA Harvard Investing
    Sam Walton Wal-Mart Economics Missouri Wal-Mart

    Looks a bit different, doesn’t it? There are going to be lots of naysayers. Naysaying away about judging and over-simplification but here is something anecdotal for you:

    1. You’ll notice Steve Jobs on the best and John Sculley on the worst. Well, there’s a reason. Jobs started the company, was essentially forced out for a more “business savvy” alternative (BTW, he went away and built Pixar), the business guy ran the company into the ground and Jobs came back to the rescue. With, wait for it…good products! Amazing! Who would have thought!

    2. You’ll notice Bill Gates on the best and (in about 3 years, Steve Ballmer on the worst). Well, there’s a reason. Gates started the company, was essentially forced out for a more “business savvy” alternative (BTW, he went on to found The Gates Foundation) the ending is still missing, but you can see a pattern emerging.

    One more thing: here’s a Stock Chart of Microsoft’s, 2000 is the year Ballmer replaced Gates as CEO. Worth a thousand words I think.

    I know you think I hate MBA’s and I’m angry, and unrealistic, and all CEOs can’t be Steve Jobs, after all. But I’ll refer you to the title. The question that business has to ask itself is this, “Should our COO be our CEO?” If the answer is, “yes.” Then please continue manufacturing plastic forks and pretty, pretty, please, don’t forget what happened when you’re CEO said, “Hey, what if we combine a spoon and fork? It’ll be cheaper than doing them separate!”.

  6. How to tell if a “newspaper person” authored a blog post about newspaper websites

    June 16, 2009 by pfranzen

    Rating the top 25 Newspaper Websites
    Clue #1: If a blog post about good websites refers to users as readers. For example: People “read” the newspaper and “use” a website. You think I’m being pretentious, but when’s the last time you said, “I’m gonna go read the internet.” And don’t give me that, “I read the paper online” line. Average time on site for the NY Times is 4.6 minutes, that’s 15 million serious speed readers a month.


    June 14, 2009 by pfranzen

    Another great example of the EPS (elite-popular-specialized) model

  8. Business idea: Film cameras for celebrities

    June 11, 2009 by pfranzen

    A nice stylish, film camera, so you can take all the embarassing pictures you want while minimizing the chances they’ll be leaked. Also, a super-discreet (expensive) developing service Snail mail based!

  9. JQuery /OAS/ Flash interstitial ad

    June 10, 2009 by pfranzen

    For those of you familiar with OAS (open ad stream) you know it can a be a bit of pain to work with / troubleshoot / hack.  SO for your benefit I’m posting a little code snippet. This combines JQuery with the OAS tracking tags and some basic flash to build an interstitial ad. Downlad here: interstitial

  10. Simple, JQuery select all check box

    June 9, 2009 by pfranzen

    Seriously, this is a snippet that should be out there, jeez:

    function selectAllChecks(){
    if( $(this).attr('checked') == true ){
    $(':checkbox:not(this)').attr('checked', true);
    $(':checkbox:not(this)').attr('checked', false);

    }); //end document.ready function

    Obviously, you want your select all checkbox to have an id of “selectAll”