Today I learned - Page 16
Page 16 of 20 FirstFirst ... 61415161718 ... LastLast
Results 226 to 240 of 296

Thread: Today I learned

  1. #226
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Well today I learned clever things such as

    PHP Code:
    <?php 

    abstract class Model
    {
        protected 
    $dbh;
        protected 
    $stmt;

        public function 
    __construct()
        {
            
    $this->dnh = new PDO("mysql:host"DB_HOST.";dbname=".DB_NAMEDB_USERDB_PASS)
        }
    }
    I'm sure it'll be useful


    from here
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  2. #227
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Today I learned if you do

    PHP Code:
    setInterval(function(){ 
         var 
    bet parseFloat($('.tokens').text()) || 0;
         var 
    qty 2;
         var 
    total bet qty;
        $(
    '.tokens').text(total);
      }, 
    2000); 
    and

    PHP Code:
      <div class="tokens">Points left</div>
             <
    div class="tokens">500</div
    It turns to "infinity"
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  3. #228
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Today I learned
    PHP Code:
        displayinline-flex
    Best thing ever
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  4. #229
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Today I learned...



    My friend sent me this video, was rather funny seeing her reaction, she's Spanish and less than amused
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  5. #230
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  6. #231
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493


    Today I learned moon cakes are awesome
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  7. #232
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Today I learned how not to do a project, this is the **** show I'm throwing away
    fail
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  8. #233
    PHP Witch laserlight's Avatar
    Join Date
    Apr 2003
    Location
    Singapore
    Posts
    13,915
    Quote Originally Posted by cluelessPHP View Post


    Today I learned moon cakes are awesome
    Have you tried snow skin mooncakes?
    Use Bazaar for your version control system
    Read the PHP Spellbook
    Learn How To Ask Questions The Smart Way

  9. #234
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Quote Originally Posted by laserlight View Post
    Have you tried snow skin mooncakes?
    No, they were sold out when I went to the one shop in my area which sold them, the woman said I'd have to wait until next year for them
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  10. #235
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Today I learned I have an interview for a graduate position tomorrow at 1pm, I also learned what abject terror is
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  11. #236
    PHP Witch laserlight's Avatar
    Join Date
    Apr 2003
    Location
    Singapore
    Posts
    13,915
    Quote Originally Posted by cluelessPHP View Post
    Today I learned I have an interview for a graduate position tomorrow at 1pm, I also learned what abject terror is
    LOL! So how did it go?
    Use Bazaar for your version control system
    Read the PHP Spellbook
    Learn How To Ask Questions The Smart Way

  12. #237
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Quote Originally Posted by laserlight View Post
    LOL! So how did it go?
    I meet a very uninterested interviewer, he spent most of the time flirting with some girl on WhatsApp while asking generic questions such as "what do you hope to get from working for our company?" My answer was "to be able to work in a team with clear and meaningful communication​" he ignored this and asked which historical figures I found insperation from "I said Adam Smith" he said "uh huh go on" whilst paying no attention so I said "oh and Karl Marx, of course Marx version of wealth of Nations was far more interesting than Adam Smith's manifesto" he gave absolutely no reaction, then said "uh huh go on" so I said "Heinrich Himmler's humanitarian work" he completely ignored that too still flirting on WhatsApp, he then asked what I thought of sales I said I thought this was a junior developer position, he said it was but everyone had to do some time in sales, I thought ERM..what? So I asked him if he was a developer he said he was so I asked him what he preferred writing code in "PHP, SQL, HTML gazebo or wix" he said wix.... I said well thank you for the interview and promptly left, I accidentally ignored their call just now silly me
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  13. #238
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    8,525
    Quote Originally Posted by cluelessPHP View Post
    I meet a very uninterested interviewer, he spent most of the time flirting with some girl on WhatsApp while asking generic questions such as "what do you hope to get from working for our company?" My answer was "to be able to work in a team with clear and meaningful communication​" he ignored this and asked which historical figures I found insperation from "I said Adam Smith" he said "uh huh go on" whilst paying no attention so I said "oh and Karl Marx, of course Marx version of wealth of Nations was far more interesting than Adam Smith's manifesto" he gave absolutely no reaction, then said "uh huh go on" so I said "Heinrich Himmler's humanitarian work" he completely ignored that too still flirting on WhatsApp, he then asked what I thought of sales I said I thought this was a junior developer position, he said it was but everyone had to do some time in sales, I thought ERM..what? So I asked him if he was a developer he said he was so I asked him what he preferred writing code in "PHP, SQL, HTML gazebo or wix" he said wix.... I said well thank you for the interview and promptly left, I accidentally ignored their call just now silly me
    Not sure I'd call you silly, (I'd say you did quite well here) but if you find a perfect job let us all know.
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  14. #239
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Quote Originally Posted by dalecosp View Post
    Not sure I'd call you silly, (I'd say you did quite well here) but if you find a perfect job let us all know.
    It was also a commission paid job, so basically a sales job under another name, perfect job would entail not picking up anymore dead rats
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  15. #240
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    493
    Today I learned

    PHP Code:
    SELECT count(*)+
    Seems strange to me
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

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
  •