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
Today I learned
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.
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
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.
Maybe it is... analogous
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
Today I learned Vera Lynn died
TIL about "text fragments" -- https://web.dev/text-fragments/
cluelessPHP
What's more, TIL the same has happened to Ian Holm
Weedpacket Seems like a good year all round
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"));
- Edited
Today i learned how to work from home and earn money through internet...!**
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.
Today I learned
$foo = 'hello world!';
$foo = ucwords($foo);
echo $foo;
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.
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"]
Today I learnt e.preventDefault stops checkbox from being checked....why didn't I know that?