Ok day, spent most of the day hanging out with friends.
Spent 2h writing some tampermonkey scripts to automate work for someone, once finished it'll save them a lot of time. Some useful js is
function $$(x) {
return Array.from(document.querySelectorAll(x));
}
function $(x) {
return document.querySelector(x);
}
Then you can do stuff like
$$("span")
.find((s) => s.textContent === "Print")
.click();
Which is nice. Also when automating stuff it's better to loop until elements are found (the way selenium does it) then to hook DOMContentLoaded
, since DOMContentLoaded
is meaningless for single page apps.
Spent an hour reading rudin, Managed to build some intuition for his inscrutable proof of the weierstrass approximation theorem.
Got home, spent 40m trying to fix stupid wifi card issue again (I hate computers). Spent an hour procrastinating by reading random blogs and looking at books on amazon.
Spent an hour writing cut the enemy. Should have been faster but I got sidetracked reading the book of five rings.
Spent another 30m doing nothing, spent an hour listening to a podcast about ai alignment while eating dinner.
Spent an hour on youtube and discord, was 9pm, went running because I diden't go earlier (sigma grindset amirite). It felt good to do something difficult after an unproductive day.
Spent 30m on discord, REALLY should have been journaling because it's late, then spent an hour journaling (mostly writing up the WAT theorem, agh I need to go to sleep earlier!)
WAT theorem
I should extract this to a post later, it can be followed by someone with basic calculus knowledge if I patiently explain each step
Rudin sets
With picked such that . This seems wierd, but if you read the proof backwards you see the key step: Since goes to zero when isn't close to the origin (see desmos) we can split the error integral into three parts, both and parts go to zero (because goes to zero away from the origin) and the part can be delt with using continuity.
Set the approximating polynomials as
(The can be shown to be polynomial by messing with the integral then differentiating, I think. not sure about this part)
Now because and is constant we have
Meaning we can combine integrals to write the difference as an integral, then split it up! (where )
Here's where our choice of pays off, for large enough both integrals become less then meaning we have as desired.
How would you have came up with this? Well, if you notice that writing as an integral allows us to view the error in a nice form you might be able to guess to make the proof work.
Writing the above took too long, it's 11pm now I should be in bed. I found some neat stuff to study tomorrow though