Shhh, please let Mysql sleep and p_forsale



  • While refactoring some code the other day. I found this gem.

      sleep(1); // ?? let mysql save data

    I do not know how

    I do not know why

    That made me cry.....

    The following is an include file that is loaded with every page load.

     

    <code>

     // global product arrays
      $p_productid = array();
      $p_productcode = array();
      $p_product = array();
      $p_category = array();
      $p_list_price = array();
      $p_descr = array(); 
      $p_forsale = array();
      $p_specs = array(); 
      $p_manual = array(); 

      $p_other = array();
      $p_image = array();
      $p_thumb = array();
      $p_displayorder = array();
      $p_msrp_price = array();
     
      // global product category arrays
      $c_categoryid = array();
      $c_category = array();
     
      // global product option arrays
      $o_productid = array();
      $o_optionclass = array();
      $o_optiontext = array();
      $o_options = array(); // separated by 0x0d 0x0a or \r \n, load into CSL

      // global pricing arrays
      $pr_productid = array();
      $pr_price = array();
      $pr_membership = array();
     
      // global discount coupons arrays
      $dc_coupon = array();
      $dc_discount = array();
      $dc_coupon_type = array();
      $dc_productid = array();
      $dc_categoryid = array();
      $dc_minimum = array();
      $dc_expire = array();

      // global wholesale discounts arrays
      $wd_productids = array();
      $wd_amount = array();
      $wd_membership = array();
     
      // global video arrays for gallery
      $v_videoid = array();
      $v_video = array();
      $v_channel = array();
      $v_displayorder = array();  
      $v_active = array();
      $v_descr = array();
      $v_specs = array();
      $v_manual = array(); // not if csv file yet
      $v_other = array();
      $v_image = array();
      $v_thumb = array();

      // global reseller lists
      $r_listnam = '';
      $r_listgeo = '';
      // global reseller arrays
      $r_resellerid = array();
      $r_reseller = array();
      $r_channel = array();
      $r_displayorder = array();  
      $r_active = array();
      //$r_descr = array();
      //$r_specs = array();
      //$r_manual = array();
      $r_other = array();

    </code

     My favorite array name is p_forsale()!

     



  • Smells like "pause for replication" (have loads of that in old code here).

     



  • @OSvsOS said:

    I do not know how

    I do not know why

    That made me cry.....

     

    Fatal error: Incompatible rythm on line 3, column 4. Rhyme processing failed.



  • @OSvsOS said:

    // global video arrays for gallery
      $v_videoid = array();
      $v_video = array();
      $v_channel = array();
      $v_displayorder = array();  
      $v_active = array();
      $v_descr = array();
      $v_specs = array();
      $v_manual = array(); // not if csv file yet
      $v_other = array();
      $v_image = array();
      $v_thumb = array();
     

    You forgot one:

     

    $v_forVendetta = array("Voila! In", "view humble", "vaude", "villian", "veteran, cast", "vicariously as both", "victim and", "villain by the", "vicissitudes of fate. This", "visage, no mere", "veneer of", "vanity, is a", "vestige of the", "vox populi now", "vacant,", "vanished. Howe", "ver, this", "valorous", "visitation of a bygone", "vexation stands", "vi", "vified, and has", "vowed to", "vanquish these", "venal and", "virulent", "vermin,guarding", "vice and", "vouchsafing the", "violently", "vicious and", "voracious", "violation of", "volition. The only", "verdict is", "vengeance; a", "vendetta, held as a", "voti", "ve not in", "vain, for the", "value and", "veracity of such shall one day", "vindicate the", "vigilant and the", "virtuous.", "Verily this", "vichyssoise of", "verbiage", "veers most", "verbose, so let me simply add that it's my", "very good honour to meet you and you may call me", "V.")



  • @halcyon1234 said:

    @OSvsOS said:

    // global video arrays for gallery
      $v_videoid = array();
      $v_video = array();
      $v_channel = array();
      $v_displayorder = array();  
      $v_active = array();
      $v_descr = array();
      $v_specs = array();
      $v_manual = array(); // not if csv file yet
      $v_other = array();
      $v_image = array();
      $v_thumb = array();
     

    You forgot one:

     

    $v_forVendetta = array("Voila! In", "view humble", "vaude", "villian", "veteran, cast", "vicariously as both", "victim and", "villain by the", "vicissitudes of fate. This", "visage, no mere", "veneer of", "vanity, is a", "vestige of the", "vox populi now", "vacant,", "vanished. Howe", "ver, this", "valorous", "visitation of a bygone", "vexation stands", "vi", "vified, and has", "vowed to", "vanquish these", "venal and", "virulent", "vermin,guarding", "vice and", "vouchsafing the", "violently", "vicious and", "voracious", "violation of", "volition. The only", "verdict is", "vengeance; a", "vendetta, held as a", "voti", "ve not in", "vain, for the", "value and", "veracity of such shall one day", "vindicate the", "vigilant and the", "virtuous.", "Verily this", "vichyssoise of", "verbiage", "veers most", "verbose, so let me simply add that it's my", "very good honour to meet you and you may call me", "V.")

     

    The Real WTF was that movie.



  • @Justice said:

    The Real WTF was that movie.

    This thread is now about Alan Moore, his comics and the terrible movie adaptations thereof.



  •  Haha, funny. I thought it was Richard Stallman.



  • @morbiuswilters said:

    This thread is now about Alan Moore, his comics and the terrible movie adaptations thereof.
    In his defense, he has refused to have anything with the movie adaptions because the studios (and DC Comics) pissed him off so much.  Also, at least he hasn't wandered into the same insane territory as Frank Miller.



  • @bstorer said:

    In his defense, he has refused to have anything with the movie adaptions because the studios (and DC Comics) pissed him off so much.

    Absolutely.  It's part of why I am incredibly hesitant to see Watchmen.

     

    @bstorer said:

    Also, at least he hasn't wandered into the same insane territory as Frank Miller.

    Frank Miller is arguably the best white supremecist comic book writer on the face of the Earth.



  • @bstorer said:

    @morbiuswilters said:

    This thread is now about Alan Moore, his comics and the terrible movie adaptations thereof.
    In his defense, he has refused to have anything with the movie adaptions because the studios (and DC Comics) pissed him off so much.

     

    V for Vendetta I'll give him; the lesson I learned from that is, never read the book first, and especially never have it fresh in your mind when you see the movie.  League of Extraordinary Gentlemen was an abomination as well, but I didn't much care for the book either.  I'm holding out hope for Watchmen, because hey, how can you go wrong with Zack Snyder and David Hayter on the team?

    I wonder if Moore would be less cranky if he did his own artwork.  Supposed to be therapeutic, y'know.



  • @morbiuswilters said:

    @bstorer said:

    Also, at least he hasn't wandered into the same insane territory as Frank Miller.

    Frank Miller is arguably the best white supremecist comic book writer on the face of the Earth.

    That's what you think...



  •  @morbiuswilters said:

    This thread is now about Alan Moore, his comics and the terrible movie adaptations thereof.


    Since Spectate Swamp is back I just saw this little piece Swamp Thing and thought it went along nicely with the Alan Moore theme... 🙂



  • @amischiefr said:

    Since Spectate Swamp is back

    Wait, what? Where?

    I'll freely admit that I'm fairly drunk right now, so if you're kidding just tell me. Otherwise I expect a link.



  • @bstorer said:

    @morbiuswilters said:

    @bstorer said:

    Also, at least he hasn't wandered into the same insane territory as Frank Miller.

    Frank Miller is arguably the best white supremecist comic book writer on the face of the Earth.

    That's what you think...

    I read the whole thing and... wow...

     

    Just... wow.. 



  • @morbiuswilters said:

    I read the whole thing and... wow...


    Just... wow.. 

     

    Wow doesn't do it justice...

     <font face="Verdana,Arial,Helvetica" size="2">But let's think about
    three important words here. "Fifteen hours ago". That means one of two
    things. Clark Kent either drank this carton of milk fifteen hours before
    Dick Grayson was kidnapped by Batman, and thus it is a magical prescient
    carton of milk, OR it's actually been a long enough ride in the
    Batmobile for Dick to have been reported missing, for his name to get to
    the missing persons groups, for them to submit his information to the
    milk company, for the milk company to print the cartons, distribute the
    cartons, and then for Clark Kent to go to the grocery store and buy the
    carton of milk. Let's see, by my rough estimate, that means that Batman
    and Dick have been on the way to the Batcave for, oh, about FIVE FUCKING
    WEEKS now.  </font>

    Nice... 

     

    And I love the kid "that's so queer" and the classic "shut up!" from Batman. Hahahahahahaha, was this written by a 12 year old kid?



  • @morbiuswilters said:

    @bstorer said:

    In his defense, he has refused to have anything with the movie adaptions because the studios (and DC Comics) pissed him off so much.

    Absolutely.  It's part of why I am incredibly hesitant to see Watchmen.

    The only redeeming thing of the V for Vendetta adaptation is that it could've been worse. The thing with V for Vendetta is that even Alan Moore himself admits that the original setting with England surviving nuclear war wouldn't work because of Nuclear Winter and radiation spreading from the nuked countries. (And well, Blair's NuLabour didn't remove the nukes from the UK, but that's another story.)

    However, the guys who did this movie screwed up other things and basically killed the original V character. Oh, and they did a weird timeloop with the storyline: they link the Larkhill experiments with the "terrorist biological attack", when it is stated both in the comic and the movie that Valerie was imprisoned after Norsefire rises into power. Therefore they changed the backstory from improbable to impossible!

    Watchmen is already being butchered as well, and I fear what might come out of that.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.