Say ‘no’ to styrofoam. | James Revillini

Archive for January, 2008

  • PHP Script: Convert Excel or tab-delimited file to html table

    Here’s a script which I wrote today while on the jorb. The purpose was so that someone could copy and paste from an excel spreadsheet into a textarea, click a button, and voila: an html table.
    The nice thing was that when I pasted Excel data into the textarea, it was tab-delimited with line breaks. […]

  • Joomla Tip: “mgmedia2 component not installed. Please install first to use the plugin.”

    If you are seeing “mgmedia2 component not installed. Please install first to use the plugin.” then you probably either

    just tried to uninstall the mgmedia2 thing from your Joomla admin panel, or
    are trying to install mgmedia2.

    If you want to uninstal mgmedia2, make sure you go to Installers > Mambots and uninstall the mambot/plugin as well.
    If […]

  • [SOLVED] Dreamweaver: Site-wide, design time style sheets using templates

    Prerequisites:

    Every page of your site must be a PHP file, or some kind of server side language file.
    You must use Dreamweaver templates to make the design-time stylesheet automatically apply itself to the pages of your site.

    This solution is not going to work for everyone because of the two prereqs above; sorry about that. […]

  • Dynamically populate an element styled with white-space: pre

    Assume:
    $ = document.getElementById;
    pre = $(’pre-text-element’);  //pre-text-element is the ID of my pre tag element
    You cannot use:
    $(’element’).innerHTML = ‘line1\nline2′; //will not work in IE7
    You must do this:
    e = $(’element’);
    while(kid=e.firstChild) { e.removeChild(kid) }  //remove all children in the
    e.appendChild(’line1\nline2′);
    Lame, huh?

  • Killing me softly: Searchindexer.exe

    Do you have a process that won’t die? Tired of searchindexer.exe calling you at home to harrass you for the rent? Do you have credit card debt?
    Your solution is here! OK, what you want to do to prevent searchindexer.exe (searchprotocolhost.exe) from spawning everytime some MS product loads, just follow these simple steps:

    Start […]

james.revillini.com