377 karma · joined February 26, 2020
One easy way is to add a flag
let working = true;
(function work() {
console.log("running");
if (working) requestAnimationFrame(work);
else console.log("stopped");
})();
Programmatically, you have the function cancelAnimationFrame that you give as parameter what requestAnimationFrame returns. The same as setTimeout and clearTimeoutWith a friend, we had an idea of making custom keyboards for all laptops. With a 3d printer you may get away dealing with most of the covers. We desisted from the idea noticing that to change the keyboards you have to practically disassembly the complete laptop, testing would be very expensive too.
Something that I didn't expect is that is not that easy as "buy low" and "sell high". I had to cap the buying price for the bot to make money at all, else the "bought at" will get so high, that you won't have a chance to buy much.
let bougthAt = 0;
let fn = { click: () => {} };
let buy = document.querySelector("#buy");
let sell = document.querySelector("#sell");
(function work() {
let founds = +document.querySelector("#funds-fiat").innerText;
let coins = +document.querySelector("#funds-coin").innerText;
let price = +document.querySelector("#price").innerText;
if (founds > price && price < 5000) {
fn = buy;
bougthAt = price;
console.log("bougthAt", bougthAt);
} else if (price > bougthAt && coins > 0) {
fn = sell;
console.log("sellingAt", price);
}
fn.click();
requestAnimationFrame(work);
})();I think the AI is now capable to reply to "how likely this will mean this other thing if you say it this way", that applies to text, pictures, videos, whatever, you name it. Is not intelligent in any way, but still gives meaningful responses back, which is useful for the use cases to which it is applied, search, games, etc. That been said, I have no doubts, that with time, it will reach understanding resolving basically almost any problem... but.. we always have doubts, and you can't just divine the future, look at the James Webb Telescope, we launch it to get some answers, so doesn't matter how intelligent a system may be, we would need more research, and the system will need it too, even if it's an AI, (because its needs to know things, to learn from them, in case that wasn't obvious)
Edit: Also Windows 10 end of life It's just too soon...
Yeah thats the crazy up situation..... I could maybe access via a imap client, Guess they will ask for an "insecure app password" (I forgot the name of this)
But the thing that blows my mind is that you cannot make your own browser! Thats the problem..... because I was considering to do just that, my own browser, wow, I cannot do it without google approval..... I will need to think about it....