• WTF Firefox 3.6?!

    So, i upgraded Firefox to 3.6 only to discover it breaks shadowbox in most of my sites, and in an attempt to debug it, found out serverfault.com and stackoverflow.com are broken in this version. Real effin nice. I have a feeling i will be very busy debugging this winter….




    UPDATE!


    if your shadowbox is broken in FF 3.6, make sure DEFER is NOT set when you call shadowbox.js!
    I don’t know why, but tip courtesy of Brian Guertin!

     worldthreat No comments





  • piMP3 player | REMiX!

    So, i needed a light weight mp3 player for iamcell.com, when i stumbled upon the piMP3 Player by cssrevolt.com.  Perfect! (does not work in IE right now)…Uses prototype (less than perfect) and integrates seemingly seemless!  For the sake of UI, i added “previous” and “next track” buttons… Code can be seen below…  I worked under a stressful time constraint, so if any1 wants to jump in and drop some logic on my ass or fix the ie bug, by all means!

    _____________________________________________________

    download piMP3 player REMiX!

    next: function(e) {

    var counter = this.options.Counter++;
    var theCount = data.length;
    //alert(counter+'  |   |  ' + theCount);
    var sound = new Array();
    for(i = 0; i < theCount; i++){
    var ur = $('nextSound'+i);
    sound.push(ur);
    var cap = $('nextSound'+i).innerText;
    }
    if(counter==theCount){
    this.options.Counter=0;
    this.caption = sound[0].innerText || sound[0].textContent;
    this.sound_selected.writeAttribute('href',sound[0]).update(this.caption);
    } else {
    this.caption = sound[counter].innerText || sound[counter].textContent;
    this.sound_selected.writeAttribute('href',sound[counter]).update(this.caption);
    }

    Sound.play(this.sound_selected.readAttribute(’href’),{track:’pimp3Player’, replace:true});
    this.sound_status.show();
    Event.stop(e);
    },

    prev: function(e) {

    var counter = this.options.Counter–;
    var theCount = data.length;
    //alert(counter);
    var sound = new Array();
    for(i = 0; i < theCount; i++){
    var ur = $(’nextSound’+i);
    sound.push(ur);
    var cap = $(’nextSound’+i).innerText;
    }
    if(counter==0){
    this.options.Counter=theCount-1;
    this.caption = sound[theCount].innerText || sound[theCount].textContent;
    this.sound_selected.writeAttribute(’href’,sound[theCount]).update(this.caption);
    } else {
    this.caption = sound[counter].innerText || sound[counter].textContent;
    this.sound_selected.writeAttribute(’href’,sound[counter]).update(this.caption);
    }
    this.caption = sound[counter].innerText || sound[counter].textContent;
    this.sound_selected.writeAttribute(’href’,sound[counter]).update(this.caption);
    Sound.play(this.sound_selected.readAttribute(’href’),{track:’pimp3Player’, replace:true});
    this.sound_status.show();
    Event.stop(e);
    }

     worldthreat No comments





  • ftp via BASH! script

    Recently i developed an e commerce site that sends the order directly to a distributor for shipping after the bank transactions…
    Being a relatively new nerd, i work best destroying someone else’s code (script lion)… so here’s a lil contribution since every example i googled was (significantly) different. Here is a bash script that will upload files if your using a typical Media Temple server using Linux / CentOS 5… Script will also move the files to a new directory… just delete if you don’t want to move anything when your done…

    #!/bin/bash
    set -m
    theDate="$(date +%Y-%m-%d)"

    ftp -vinp ftp.urAddress.com <
    quote USER yourusername
    quote PASS 9assword
    cd Upload
    binary
    put /path/to/your/file/PO850.xml ‘date +%d_%m_%y’_PO850.xml
    quit
    EOF

    cp /path/to/your/file/*.xml /path/to/your/other_directory/

    rm /path/to/your/file/*.xml

    exit 0

    Hope this helps someone… oh… and to the younger script kiddies… don’t be afraid of Linux… shits, tit after a bit!

     worldthreat No comments





  • certified nerd

    remember that rap i wrote in php?
    Well, here’s the verse in audio! it’s called certified nerd… 7th track in my player on the right!

     worldthreat 1 comment

    1 comment - Latest by:
    • Shawn
      How about those mp3s? Good shit man, the beat is grimy.


  • ok. going to bread, but….
    i wrote some code that

      is

    a rap? yeah!
    yes i did. any way’s here it is… i WILL update this blog as i finish the proper chorus (deleted a few lines) & or get nicer at this werded algebra…. that’s”worded”…. to you whippersnappers!

    .theFont{
    font-family:Arial, Helvetica, sans-serif;
    color:#0033CC;
    }

    $connect = mysql_connect(”localhead”,”brain”,”evilFunkPuppet”);
    if (!$connect)
    {
    die(’Could not connect: ‘ . mysql_error());
    }

    mysql_select_db(”songs”, $connect);

    $instrumental = mysql_QUERY(”SELECT * FROM `electroLife` WHERE `instrumental` = ‘1′”);
    $result = mysql_QUERY(”SELECT FROM `electroLife` WHERE `instrumental` = ‘1′”);

    verseOne();

    verseTwo();

    function verseOne(){

    $smoke = “making smoke. breaking bones.

    shotokan. no to stoogs
    “;

    echo ”

    stone cold, stone cool

    soul sold, so few

    understand. wondering.

    love withstand all my cons,

    plus my pros, all i want.

    love my bros. love my job.

    lug it all spot to spot.

    place to place. stop to stop.

    face to face i make my case.”;
    echo $smoke;
    echo “contact the lung. oh here it goes.

    dialate. diet pills.

    concentrate. nice ‘n still.

    define array. populate.

    semi-col.

    curly brace

    “;
    }

    function verseTwo(){

    $lostAndFound = ”

    it’s obvious lost and found rhymes to it.

    grind to it. get up high and bend the spine to it.
    ” ;

    echo ”

    a couple words here and there.

    end the world cause i dont care.

    cause i can. because you cant

    understand my muttering.

    stumbling. end of the internet.

    once again i recollect.

    wipe my ass and blow my nose.

    i wrote like this cause i don’t know.

    design and pro-

    gram an ounce
    ” ;
    echo $lostAndFound;
    echo “damnit it now.

    say it loud.

    GOOD DAMN!

    “;
    }

    ….tooo super simple right now… but yeah.. that’s how it came out 4real….

     worldthreat 3 comments

    3 comments - Latest by:
    • certified nerd - world threat
      [...] worldthreat on May.20, 2009, under Music remember that rap i wrote in php? Well, here’s the verse in ...
    • Ryan T Graff
      Crazy stuff dude, can't wait to here it with a beat and everything!
    • Shawn
      $smoke = “making smoke. breaking bones. shotokan. no to stoogs"; Nice hook. :)






Shout Outs!

highly recommended brethren...

  • Electric Sheep
  • evilest.net
  • i am cell
  • mlebrun.com
  • rob o’toole – the flexiest man alive
  • ryantgraff.com