NogDog I don't think it's for me, but in its defense it's not as bad as some of the abominations that have come out of Scotland reccently

    TIL you have to remove more than 20 screws from an old iMac to replace the abominably slow 5400RPM 128GB hard drive to make it remotely usable.

      10 days later

      TIL I'm currently that sick I uniroically stubmled across the solution to my current problem via a question I asked on here in 2017

        6 days later

        TIL that when you use the analogWrite() function to try and set an analog voltage level on an arduino pin, it's probably going to use PWM, which is not really an analog voltage AT ALL.

          Today I learned PHP is now 25 years old and Laserlight likes bad dad jokes

               position: -webkit-sticky; /* Safari */
              position: sticky;
              top: 0;
              

            TIL it seems handy

              10 days later
              8 days later

              TIL how to link a subdomain, was a lot easier than I thought it would be

                seems like a good one to know

                
                var observer = new IntersectionObserver(function(entries) {
                	var div = document.querySelector('.my-work');
                	if(entries[0].isIntersecting === true)
                	div.classList.add("visable");
                	}, { threshold: [0] });
                observer.observe(document.querySelector("#my-work"));
                
                  6 days later

                  Today i learned how to work from home and earn money through internet...!**

                    14 days later

                    This one surprised me. UNIX-y systems have cat(1), as many of us know:

                    cat file.txt file2.txt > combined.txt

                    I was surprised by this on Windows, though:

                    copy *.csv combined.csv

                    Did everyone else just know that and I'm only learning 20 years later? 😃

                      I didn't know about that (or if I did I long forgot it); I use a port of cat on Windows.

                      10 days later

                      Today I learned

                      $foo = 'hello world!';
                      $foo = ucwords($foo);    
                      echo $foo;
                      22 days later

                      Today I learned

                      $a = [1, 2, 3];
                      $b = [4, 5, 6];
                      $c = [...$a, ...$b];
                      
                      var_dump($c);
                      

                      But that doesn't work if the arrays have string keys.

                      Weedpacket

                      Reminds me that yesterday I learned that in Ruby you can do:

                      $ irb
                      2.4.0 :001 > test = ['a', 'b', 'c', 'd']
                       => ["a", "b", "c", "d"]
                      2.4.0 :002 > test - ['c']
                       => ["a", "b", "d"]
                       
                        2 months later

                        Today I learnt e.preventDefault stops checkbox from being checked....why didn't I know that?