Posts by preflex@fosstodon.org
 (DIR) Post #A7E3softorpW2TC5oW by preflex@fosstodon.org
       2021-05-14T02:14:23Z
       
       0 likes, 0 repeats
       
       @meowski @cyberfarmer Why is he using it?  I dunno.  Because he didn't want to write proper timers and state tracking.Unless he set some interrupt (also a bad idea), the system is non-responsive during delay().  He has to be holding down the button when the delay ends in order to get to the next step.
       
 (DIR) Post #A7E5W8BHKVzTmfBLFI by preflex@fosstodon.org
       2021-05-14T02:34:15Z
       
       1 likes, 0 repeats
       
       @meowski @cyberfarmer No. I think we do have enough information. No external context is necessary.  There isn't any context where this is good, but there are some contexts where it can work but be finicky and waste lots of time.
       
 (DIR) Post #A7E8zkELF3TM3JQXxo by preflex@fosstodon.org
       2021-05-14T03:14:12Z
       
       0 likes, 0 repeats
       
       @urusan @cyberfarmer What Urusan said.  Also track the state of your buttons and your depth in the code.The OneButton library is handy for this if you want to be lazy while having better code.https://github.com/mathertel/OneButton
       
 (DIR) Post #A7EAHLcPaQ16t3dx8C by preflex@fosstodon.org
       2021-05-14T03:28:35Z
       
       0 likes, 0 repeats
       
       @urusan @cyberfarmer To keep CPU usage down, you can keep shorter delays, but attach an interrupt before the delay and detach it either on the click or at the end of the delay.
       
 (DIR) Post #A7EAKtNSWomCSOL7Mu by preflex@fosstodon.org
       2021-05-14T03:29:14Z
       
       0 likes, 0 repeats
       
       @urusan @cyberfarmer Do _not_ attach interrupts to clicks in setup() unless you want everything to go haywire.
       
 (DIR) Post #A7EAuZkIzlNnzo2b56 by preflex@fosstodon.org
       2021-05-14T03:35:41Z
       
       0 likes, 0 repeats
       
       @urusan @cyberfarmer See:https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/in short:attachInterrupt(BUTTON_A, ClickedA, HIGH);delay(100);detachInterrupt(BUTTON_A);if(AButtonClicked){//do stuff}...void ClickedA(){AButtonClicked = true;}
       
 (DIR) Post #A7JHczosz9Hn7TY0ky by preflex@fosstodon.org
       2021-05-16T14:44:29Z
       
       0 likes, 0 repeats
       
       @xgqt I wish they'd let Bill sing more.  His solo albums are pretty good.https://www.youtube.com/watch?v=_-ijn-b_xBM
       
 (DIR) Post #A7eLSZajCcSixQgFqy by preflex@fosstodon.org
       2021-05-26T18:36:19Z
       
       0 likes, 0 repeats
       
       @linmob Thanks! That was very helpful.  I'd been wanting to try out the new stuff, but I was a bit wary of the murky instructions.  I followed your guide, and everything worked!  You rock!
       
 (DIR) Post #A7eLjuj3sWsHQZqaae by preflex@fosstodon.org
       2021-05-26T18:39:21Z
       
       0 likes, 0 repeats
       
       @postmarketOS Congratulations!  I guess I picked the right day to try it again on my PMOS edition pinephone after using Arch for the last few months.
       
 (DIR) Post #A8d0pdW2ztXfOXOqPI by preflex@fosstodon.org
       2021-06-25T01:02:36Z
       
       0 likes, 0 repeats
       
       @urusan Well, as far as I can tell, they're not equivalent or related.It's possible to feel certain that there are no gods, while still claiming intense spirituality.Many Buddhists are atheists or agnostics, but few would describe them as "spiritually minimalist".
       
 (DIR) Post #ABxi9p0sb9ub1J6uGW by preflex@fosstodon.org
       2021-10-02T18:18:34Z
       
       0 likes, 0 repeats
       
       @urusan "Nightmare Linus Torvalds"
       
 (DIR) Post #ACydtk2qiI7HiGzaXQ by preflex@fosstodon.org
       2021-11-02T02:57:36Z
       
       0 likes, 0 repeats
       
       @fatboy
       
 (DIR) Post #ADbuwGV5YCuQoBh6sy by preflex@fosstodon.org
       2021-11-21T01:42:18Z
       
       0 likes, 0 repeats
       
       @urusan Birds aren't _former_ dinosaurs.  They are dinosaurs.  At no point did they ever stop being dinosaurs.Birds are dinosaurs in the same way that humans are mammals.
       
 (DIR) Post #ADuEIVzRJME2mf3HNo by preflex@fosstodon.org
       2021-11-29T21:43:59Z
       
       0 likes, 0 repeats
       
       @urusan FTL is $2.49 USD at the moment.  It's one of the best games I've ever played.https://store.steampowered.com/app/212680/FTL_Faster_Than_Light/
       
 (DIR) Post #ADuJGo3ZfUjm0ZzTW4 by preflex@fosstodon.org
       2021-11-29T20:56:58Z
       
       0 likes, 0 repeats
       
       A friend of mine set up a mastodon node and can't seem to figure out how to federate.  Looking at the docs, I can't seem to find any details about it.Can someone point me in the right direction?
       
 (DIR) Post #ADuJGodjV3f1oiuLsO by preflex@fosstodon.org
       2021-11-29T21:11:33Z
       
       0 likes, 0 repeats
       
       I probably should have tagged the admins.  I bet they know.@kev @mike
       
 (DIR) Post #AGcC6MTgnEANYfK0dU by preflex@fosstodon.org
       2022-02-18T22:30:58Z
       
       0 likes, 0 repeats
       
       @xpil Apple's pervasive analytics revealed that this is what their customers want.
       
 (DIR) Post #AHBp3QSyPNlHtAm87k by preflex@fosstodon.org
       2022-03-08T03:02:18Z
       
       0 likes, 0 repeats
       
       @urusan I've been very happy with gandi.net for a long time.  I have used a few others, but Gandi didn't suck.
       
 (DIR) Post #AKGxFybmBH8phpCsGO by preflex@fosstodon.org
       2022-06-08T08:04:07Z
       
       0 likes, 0 repeats
       
       @urusan I don't think anything is sacred, but it's hard to imagine what benefit we could get that would outweigh the costs of evacuating the planet.
       
 (DIR) Post #AXQCKkmh5Az6JjiatE by preflex@fosstodon.org
       2023-07-06T15:17:46Z
       
       0 likes, 0 repeats
       
       @boilingsteam OLED would be rad.