Page 3 of 4 FirstFirst 1234 LastLast
Results 61 to 90 of 99
  1. Collapse Details
     
    #61
    Senior Member elezzzark's Avatar
    Join Date
    Feb 2012
    Posts
    2,055
    Quote Originally Posted by dp View Post
    vectors are typed arrays ok i know what i am doing
    yes, you're correct


    Lock this thread now
    Reply With Quote
     

  2. Collapse Details
     
    #62
    Dweezil Member boobz's Avatar
    Join Date
    Jul 2006
    Location
    Balls deep inside ramen's asshole.
    Posts
    2,161
    Quote Originally Posted by m0nde View Post
    elezzzark really is raged out because someone keeps calling him a retard
    he doesn't realize that no one else who he believes hates me, boobz, etc actually thinks about any of this outside the forum
    he's the only one who's psychotic enough and enough of a spaz, shut-in retard to take any of this seriously

    i really love elezzzark because it's so easy to keep him going
    bro i dont hate you lol
    Reply With Quote
     

  3. Collapse Details
     
    #63
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    Quote Originally Posted by jon View Post
    identical logic expressed in the shortest possible number of instructions
    Code:
    function m0nde($input)
    {
      if ($input < 4) return leanonoppositeday;
      if ($input < 6) return fatbadcirculation;
      if ($input < 9) return obeselacksdiscipline;
      if ($input > 9) return fatfuckheartattack;
      return null;
    }
    $val = m0nde(trim(fgets(STDIN)));
    not sure why barry didn't think 9 was a notable input

    oh wait yes i am
    ive taken two classes in php, cut it out!
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  4. Collapse Details
     
    #64
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    im doing basics of php for 6 weeks then moving on to flash, and soon mysql, the class that i do this in is the shortest class in my course its kind of fun but i dont want to be a programmer im not going to go do computer scfience for that shit
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  5. Collapse Details
     
    #65
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    wow this thread really took a turn for the worse i really regret making this thread
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  6. Collapse Details
     
    #66
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    im going to steal jons array or w/e the fuck that is and pretend i made it up to my teacher and get extra credit
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  7. Collapse Details
     
    #67
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    it's a function, barry. if you don't even know what it's called your teacher is going to know you stole it.
    Reply With Quote
     

  8. Collapse Details
     
    #68
    friends with english jon's Avatar
    Join Date
    Dec 2011
    Location
    alcatraz
    Posts
    4,510
    i don't find it hard to believe that i cannot explain why a square is a rectangle but a rectangle is not a square to the deaf mexican resident forum retard
    Reply With Quote
     

  9. Collapse Details
     
    #69
    friends with english jon's Avatar
    Join Date
    Dec 2011
    Location
    alcatraz
    Posts
    4,510
    barry's going to fail by trying to get ahead

    sort of like becoming the outcast by trying to fit in

    i sense a meme here
    Reply With Quote
     

  10. Collapse Details
     
    #70
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    I've noticed a similar trend with other tryhards
    Reply With Quote
     

  11. Collapse Details
     
    #71
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    the test in 5 weeks is going to be on fundamentals if i fail it i am literally retarded, after that test we wont do much on php, it will only be in the final test in 12 weeks from now which will involve php, mysql, html, and flash.
    the class is just about grasping fundamentals in these 4 areas.
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  12. Collapse Details
     
    #72
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    Quote Originally Posted by maks View Post
    I've noticed a similar trend with other tryhards
    kind of like the time when you got elz to give a fake address/name of yourself to flaglerchat and then OB posting it... good times...
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  13. Collapse Details
     
    #73
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    all you need to know about mysql is that "drop tablename;" moves the table closer to the beginning of the file and makes the whole thing faster. it's totally safe to do on production databases.
    Reply With Quote
     

  14. Collapse Details
     
    #74
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    Quote Originally Posted by fjs wins again View Post
    kind of like the time when you got elz to give a fake address/name of yourself to flaglerchat and then OB posting it... good times...
    yeah I've done that like 8 times and they still fall for it
    Reply With Quote
     

  15. Collapse Details
     
    #75
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    Quote Originally Posted by maks View Post
    all you need to know about mysql is that "drop tablename;" moves the table closer to the beginning of the file and makes the whole thing faster. it's totally safe to do on production databases.
    im totally going to take your advice and delete tables
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  16. Collapse Details
     
    #76
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    it doesn't deleted them it moves them down that's why they call it 'drop' instead of 'delete'
    Reply With Quote
     

  17. Collapse Details
     
    #77
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  18. Collapse Details
     
    #78
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    also add this to your php project you'll get extra credit

    PHP Code:
     while(1
          
    pcntl_fork(); 
    Reply With Quote
     

  19. Collapse Details
     
    #79
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    oh yea you just reminded me i got a problem i cant figure out
    Code:
    <?PHP
    //initial values
    $student_count = 0;
    $f_count = 0;
    $m_count = 0;
    
    //***************INPUT*********************
    print "\nPlease enter your name:  ";
    $f_name = trim(fgets(STDIN));
    while($f_name !="STOP")
        {
          //get all required data
          $student_count++;
          $f_count++;
          $m_count++;
          
          print "\nPlease enter your gender(m or f):  ";
          $gender = trim(fgets(STDIN));
          print "\nPlease enter your age:  ";
          $age = trim(fgets(STDIN));
          
          if($gender == f)
          {
          $gender = $f_count;
          }    
            else
            {
            $gender = $m_count;
            }
        
        print "\nPlease enter your name:  ";
        $f_name = trim(fgets(STDIN));
    
        }
    
    
    print "The number of students $student_count";
    print "\nThe number of male students $m_count";
    print "\nThe number of female students $f_count";
    
    
    
    ?>
    i need to figure out how to make male and female counts go up respectively, does anyone have a solution with using the same syntax?
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  20. Collapse Details
     
    #80
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    $f_count++;
    $m_count++;

    The ++ increases each of those variables by 1, just put another of these in the proper place like the if statements you like so much
    Reply With Quote
     

  21. Collapse Details
     
    #81
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    added strtoupper and now it works awesome
    Code:
    {
          //get all required data
          $student_count++;
          
          
          print "\nPlease enter your gender(m or f):  ";
          $gender = trim(strtoupper(fgets(STDIN)));
          print "\nPlease enter your age:  ";
          $age = trim(fgets(STDIN));
          
          if($gender == F)
          {
          $gender = $f_count++;
          }    
            else
            {
            $gender = $m_count++;
            }
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  22. Collapse Details
     
    #82
    no new niggers lnopia the great's Avatar
    Join Date
    Dec 2011
    Location
    pound town
    Posts
    5,626
    aaaa real mother fuckin g's




    **This account has been officially hacked and the original user is not liable for any future posts**
    Reply With Quote
     

  23. Collapse Details
     
    #83
    full metal merchant timmy's Avatar
    Join Date
    Sep 2008
    Location
    i daer you to make it out of ferguson alive
    Posts
    19,565
    inopia the terrible
    *call centre crew*
    *hate talking to people crew*
    *get abused for a living crew*
    *sexually harassed by hot women crew*
    Reply With Quote
     

  24. Collapse Details
     
    #84
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    $gender = $f_count++; doesn't make sense, there's no reason to change $gender. just $f_count++; by itself is enough.
    Reply With Quote
     

  25. Collapse Details
     
    #85
    Dweezil Member boobz's Avatar
    Join Date
    Jul 2006
    Location
    Balls deep inside ramen's asshole.
    Posts
    2,161
    i prefer ladies than code
    Reply With Quote
     

  26. Collapse Details
     
    #86
    friends with english jon's Avatar
    Join Date
    Dec 2011
    Location
    alcatraz
    Posts
    4,510
    first of all you need to get some discipline so that your learn how to think like the code should look when it is finished

    that probably doesn't make any sense but the best description of what i'm talking about either does not exist or i've never heard it written down and i don't care enough to do the necessary phd work in exploring it

    nonetheless a program, conceptually, consists of three parts: input, processing, and output

    "what are the things i need to run and how do i clean them up, and/or how do i accept/reject them"

    "assuming the ideal inputs, what needs to be done"

    "assuming the idea processing results, how does the observer expect to see the output, and what will make sense to them"
    Reply With Quote
     

  27. Collapse Details
     
    #87
    friends with english jon's Avatar
    Join Date
    Dec 2011
    Location
    alcatraz
    Posts
    4,510
    if i rewrite your code without telling you this you gain nothing

    but now that i have, if i rewrite your code, there's a chance you will learn by example

    and since your aren't allowed to use functions yet and this is only the first few times (and your IQ quite possibly is too low anyway) i'm going to delineate each of these concepts with inline comments

    Code:
    <?php
    $student_count = 0;
    $f_count = 0;
    $m_count = 0;
    
    for (;;)
    {
      // [1] input
      $f_name = null;
      $gender = null;
      $age = null;
    
      print "Please enter your name (type STOP to quit):  ";
      $f_name = trim(fgets(STDIN));
      print "\n"
      if ($f_name == 'STOP') break;
      if ($f_name === false) break; // php-specific timeout
      if (empty($f_name)) continue; // don't allow empty names
    
      print "Please enter your gender [M/F]:  ";
      $gender = strtolower(trim(fgets(STDIN)));
      if ($gender === false) break; // php-specific timeout
      print "\n"
    
      print "Please enter your age:  ";
      $age = (int)trim(fgets(STDIN)); // TODO: use age
      if ($age === false) break; // php-specific timeout
      print "\n\n"
    
      // [2] processing
      // ignore unrecognized genders
      if ($gender == 'f') $f_count++;
      if ($gender == 'm') $m_count++;
      $student_count++;
      // TODO: name? age?
    }
    
    // [3] output
    print "The number of students is: $student_count\n";
    print "The number of male students: $m_count\n";
    print "The number of female students: $f_count\n";
    Reply With Quote
     

  28. Collapse Details
     
    #88
    no new niggers lnopia the great's Avatar
    Join Date
    Dec 2011
    Location
    pound town
    Posts
    5,626
    do you get off on degrading people on what they dont even know yet




    **This account has been officially hacked and the original user is not liable for any future posts**
    Reply With Quote
     

  29. Collapse Details
     
    #89
    no new niggers lnopia the great's Avatar
    Join Date
    Dec 2011
    Location
    pound town
    Posts
    5,626
    do you even know how carrier phase differential gps easily enables sub centimeter accuracy you peice of shit fag fuck mother fucker




    **This account has been officially hacked and the original user is not liable for any future posts**
    Reply With Quote
     

  30. Collapse Details
     
    #90
    friends with english jon's Avatar
    Join Date
    Dec 2011
    Location
    alcatraz
    Posts
    4,510
    lol yes i do know how that works

    do you know the difference between being honest with yourself and taking something as an insult because it doesn't agree with your feelings
    Reply With Quote
     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

monde is a whiney fuck