• My First Music Video: Certified Nerd

    So, I don’t know why i chose this first… I have a slew of others on the way i dig a whole bunch, but i had a great time dressing in taped glasses and a pocket protector! I hope you enjoy! Don’t forget to check out my favorite songs to the right… NEXT: “Vela, together we remix the storm”!

     worldthreat No comments





  • 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





  • Diamond Age (or A Young Lady’s Illustrated Primer )

    absolutely in love with the new G1!

    …Shouldn’t have afforded it but glad i could! This phone is a beast! Using connectBot SSH Client, I can reset a server @ 70 MPH on the friggin freeway, which of course is a blessing for work! This new technology is reminiscent of Neal Stephenson’s “Diamond Age (or A Young Ladies Primer)”. In “diamon Age”… PEEP IT!

    I never thought i’d let Google know EVERYTHING about me, but i don’t have much to hide, so… I guess it’s worth it for superb technology that makes this geek’s life easier… and somehow more fun!

    :P

     worldthreat No comments





  • The Evilest.net Mastermind is the Gza

    and if this metaphor would continue, rob o’toole is ghostface, ryan graff the Rza and that would make me j-roc, BABY!the gzabeing that the rest of the metaphor is just distortion to the content of my intended story i will proceed explaining how a primary server, hosting scheduling software for work, collapsed on friday afternoon. A massive detour in my weekend, leading to roadblocks and extra miles.

    from restarting Red 5, to rebooting the whole damn thing, my troubleshooting eventually led me to 5-1hr + conversations with our hosting company. 2 clones were attempted and some other supposed debugging occurred until it was discovered that there was a bad sector on the hard drive.

    immediately, i sought the consultation of Shawn haworth. after some lengthy conversation we agreed that downloading some gz onto a local Asterisk server was a safe bet. After following oracle like instruction, i configured the linux server so that Shawn may secure shell the VOIP server. 2 failed attempts and almost 24 hrs later, i was able to convince the dedi co. to slave our original drive so we may transport everything salvageable… The waiting game …

    begins…. Here i am: Tuesday is the earth, cyberspace is space and i gotta drill a nuke in an asteroid to save the fuckin planet.
    i’m the fuckin Bruce Willis of IT, bitch.

    Shawn successfully transports most of the data but of course the most important data was stored in the damaged part of the harddrive. Thankfully (for the most part…. !@$#%), I (fuck) made a backup of our server on (fuckin) March 22….. mother fuck. Now i have alot of php updating and debugging to work while the rest of the office deals with the asteroid fragments that tore through the slaes, admin and executive departments….

    ahhhh… my 1st 3 day weekend becomes my 1st over niter, awake having nightmares… It was fun though. I remixed a friends already dope track, had mischief and (pretty sure) saved the day with help from California! Mr. lehey and randy did not succeed this time….

     worldthreat 3 comments

    3 comments - Latest by:
    • rob
      i agree with everything in this post. i've lived off the hustlers diet. http://www.youtube.com/watch?v=-PMSYPTMc6M
    • Shawn
      Parent comment is spam, FYI. They're getting sneaking with vague comments.
    • RichardOn
      Interesting site, but much advertisments on him. Shall read as subscription, rss.


  • 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
  • i am cell
  • mlebrun.com
  • rob o’toole – the flexiest man alive
  • ryantgraff.com