News for hackers. Stuff that matters.
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @07:51AM (#38276107)
The Blinking LED,

A simple Hack that still works for me after years:

1. Place a tiny LED (red or yellow) by the side of your monitor or virtually on the screen corner. Basically anywhere almost bordering your field of view.

2. Make it blink like a fast heartbeat (120-150 bpm) and gradually slowdown to around 60 bpm (or your slow heartbeat base). Make the slope approx 20 to 60 minutes (you can adjust the best rate by testing in 10m increments after a few days in one setting).

Now...

3. Get to work regardless if distracted and agitated. Close all apps except what you need to work and BOOM!, let the magic happen. Without realising, your brain will try to sync with the light that you can barely see, calming you down and allowing you to go focus-mode with the task in had.

Works like hypnosis!

It is also a cheap hack... I build my unit with a cheap ESP32 and heart-rate sensor to sync deeper and dynamically adjust the slope...

Will explain better if any interest.

No science behind (only principles), I just hammered a solution like any Ape with the shakes would need!

Re:Hacking ADHD: Strategies for the modern developer by gregsadetsky on Wednesday November 15, 2023 @08:01AM (#38276196)
Fascinating! A few questions:

- once the LED has slowed down to 60 bpm, do you keep it at that tempo for the rest of the day? for a few hours? do you ever go back to 120 bpm and then go back down?

- generally speaking, how did you come up with the idea?

- do you think that a software version (i.e. some blinking pixels in the top right corner of a monitor) would work, or is the intensity of the LED (i.e. the fact that it's not part of the monitor) part of the reason why it works?

- could you also talk about the heart-rate sensor - how do you use it / how does it affect the bpm algorithm?

Thanks!

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @11:45AM (#38278779)
Sure,

Here is what I did to my current v.3+

- Once it reaches the lowest rate, the LED goes off after a 30min timer set, it fades the light over that time under the same blinking rate. So I won't notice. - The Idea comes from desperation really, mostly curiosity on why sound beats from upbeat music had a effect to improve mood, i.e. work more at gym. Also the idea that your brain will take patterns and try to synch with. Check PubMed (few articles about) - I started with a software version (v.1 and v2) and then a hardware one. No idea why, but hardware (as a side device) works really good. I 3D printed a tiny case and it is discreetly below my iMac screen powered by the USB. Look like an old modem but tiny.

Finally...

- I added the heart monitor (a cheap cable and wrist sensor) to see if I could shorten the time to achieve the lowest rate of blink based on my heart response instead of waiting the time or trying to read brainwave pattern (I try measuring voltage and electric wave form, from a headband I bought and returned after a rapid test) but the signal would mix with the work in front of me, so useless and expensive.

Using heart rate looks cheap, non-intrusive and effective to shorten the time, it goes 1/3 of time to get lowest, could use an apple watch vs cable and sensor but I'm cheap.

; )

Re:Hacking ADHD: Strategies for the modern developer by gregsadetsky on Wednesday November 15, 2023 @11:57AM (#38278990)
Thanks, super interesting!

There was research some time ago (jeez, 10 years ago...) [0] [1] that used video and... computer vision algorithms to detect a person's heart rate without any devices. Wondering if it could be used here i.e. use your webcam instead of an external hardware sensor?

Other thing - would you be open to publishing/sharing your algorithm / esp32 code (on Github or as a blog article)?

[0] https://news.mit.edu/2012/amplifying-invisible-video-0622

[1] https://people.csail.mit.edu/mrub/vidmag/

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @12:20PM (#38279381)
We use this approach of video heartbeat detection on a real product (recruiting tool) but not for my hack ADHD device,

You can't really do video detection it in real time and properly, without overheating the cheap device. On the SaaS we did we use a recorded segment of video so we can analyse it afterwards, check the colour changes in the face of the subject and try estimate heartbeat with loose accuracy. More like high, Normal, Low after taking a few seconds as base.

The idea of the ADHD device was just a cheap hack done in a day for myself.

Not a product or commercial as I don't feel claiming it can do to others what I looks like does to me.

Happy to share here FREE ; )

Re:Hacking ADHD: Strategies for the modern developer by nerpderp82 on Wednesday November 15, 2023 @03:42PM (#38282159)
I assume you are measuring the pulse/stress level of a candidate. Is this a proxy measurement for a lie detector?
Re:Hacking ADHD: Strategies for the modern developer by actionfromafar on Wednesday November 15, 2023 @05:41PM (#38283630)
Dear Lord, hope not.
Re:Hacking ADHD: Strategies for the modern developer by zeristor on Wednesday November 15, 2023 @07:04PM (#38284183)
Sounds a bit like a Voigt-Kampf machine to see if they’re a replicant to me.

Greedo shouldn’t have asked about Han’s mother!

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @06:07PM (#38296960)
We use on video-applications when pre processing them, the idea is to sense stress levels when the applicant is introducing themselves at the start of the video and then not reducing their scores or points when the same person gets shy of being on video or forget something due to stress when talking about something else.

We try estimate a "confidence" level when saying something, but NOT able to guess if a lie. An actor can easily have full confidence in a script, but still be a lie.

We intended for roles that are client facing and where personal skills are key. Things like retail, costumer service, sales.... not technically or education based, temporary work and alike. Not that Orwellian yet ; )

Example: You need 40 people for an event to work a few hours as guides or hosts, from 100 applying the system can suggest a score and list them all in order so you can start watching or calling for interviews from somewhere.

Re:Hacking ADHD: Strategies for the modern developer by nerpderp82 on Tuesday November 28, 2023 @01:15PM (#38449003)
Thanks, I appreciate the reply.
Re:Hacking ADHD: Strategies for the modern developer by SuperCuber on Wednesday November 15, 2023 @05:46PM (#38283672)
I'm definitely NOT attending an interview where this kind of tech is used. My heart rate is irrelevant to whether someone should hire me - and I say that as someone who doesn't even get anxious or nervous during interviews.
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @09:33AM (#38289973)
Not for interviews, video-applications, is used to sense stress and give extra points (not deducting them) if a person is indeed just too shy of being on video vs talking about something ; )
Re:Hacking ADHD: Strategies for the modern developer by Qiaogun on Friday November 17, 2023 @06:50AM (#38302262)
I've developed an experimental ESP32 project that simulates a heartbeat pattern. But I don't have a heart rate sensor, I used my normal resting heart rate as a basis for the simulation. The project utilizes an ESP32 to create a LED blink pattern that represents a heartbeat, starting at a faster rate and gradually slowing down to a resting rate.

Here's the link to the project: https://github.com/Qiaogun/ADHD_Blink

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Friday November 17, 2023 @07:54AM (#38302826)
That's the idea! Looks good ; )
Re:Hacking ADHD: Strategies for the modern developer by nonethewiser on Wednesday November 15, 2023 @08:20AM (#38276334)
Seems likely to be a placebo. You have a vested interest in it working, admit its not based on any sort of science, and one of the setup steps is to overcome distraction (which is the problem that’s trying to be solved).
Re:Hacking ADHD: Strategies for the modern developer by disgruntledphd2 on Wednesday November 15, 2023 @08:27AM (#38276380)
> Seems likely to be a placebo. You have a vested interest in it working, admit its not based on any sort of science, and one of the setup steps is to overcome distraction (which is the problem that’s trying to be solved).

Fundamentally, if it works for the OP, who the hell cares?

And how would you even double-blind test this anyway?

Re:Hacking ADHD: Strategies for the modern developer by autoexec on Wednesday November 15, 2023 @09:09AM (#38276744)
> And how would you even double-blind test this anyway?

Get lights that either start fast and slow down or blink at speeds that randomly change then use serial numbers to track which lights are which, but send them out at random to test subjects?

Re:Hacking ADHD: Strategies for the modern developer by disgruntledphd2 on Wednesday November 15, 2023 @10:51AM (#38278014)
Which treatment you're in is relatively easily detectable, so unfortunately that wouldn't work.

I like the approach though, it would be a reasonable control condition (assuming that the 60bpm is a core part of the effect).

Re:Hacking ADHD: Strategies for the modern developer by mattnewton on Wednesday November 15, 2023 @03:11PM (#38281762)
you would blind the participants to the effect you are looking to measure. If they don’t know what to expect or what conditions there are, they can still get a placebo effect from random patterns.
Re:Hacking ADHD: Strategies for the modern developer by disgruntledphd2 on Thursday November 16, 2023 @06:34AM (#38288311)
> you would blind the participants to the effect you are looking to measure. If they don’t know what to expect or what conditions there are, they can still get a placebo effect from random patterns.

Maybe. Generally you'd do a manipulation check at the end to ensure that people couldn't identify what condition they were in.

Additionally, that's single blind rather than double blind.

Re:Hacking ADHD: Strategies for the modern developer by mattnewton on Thursday November 16, 2023 @11:13AM (#38291354)
The researchers can be blinded by not experiencing the intervention and handing out identical looking devices. You’re right that you would need a manipulation check at the end but this experiment is totally design-able properly.
Re:Hacking ADHD: Strategies for the modern developer by disgruntledphd2 on Friday November 17, 2023 @06:50AM (#38302257)
I still think that the manipulation check would reveal failures of blinding, but yeah it is doable (but we needed a while to come up with a reasonable design).

And more generally, my philosophy (as someone with a PhD in the placebo effect) is that harnessing any expectancy/placebo effects in one's personal life is totally reasonable, and if it works for people and there's low risk of harm then more power to them.

We shouldn't gatekeep potentially useful personal treatments based on the gold standard. It's kinda the medical equivalent of YAGNI, I suppose.

Re:Hacking ADHD: Strategies for the modern developer by lelanthran on Wednesday November 15, 2023 @10:26AM (#38277651)
Trivially, given a small amount of money.

He sees a correlation, correlations are amongst the easiest thing to test.

Causation is the difficult one

Re:Hacking ADHD: Strategies for the modern developer by qzx_pierri on Wednesday November 15, 2023 @09:33AM (#38276967)
Not to be too confrontational, but why did you feel the need to point this out? When someone has a solution that works for them, why possibly ruin it for them by pointing out placebo?

Mind you, pointing out placebo could be useful if the OP made the claim that their solution could cure a disease or something (such claims could discourage someone from getting effective treatment).

Re:Hacking ADHD: Strategies for the modern developer by SquareWheel on Wednesday November 15, 2023 @09:43AM (#38277079)
> When someone has a solution that works for them, why possibly ruin it for them by pointing out placebo?

You are likely aware of this already, but for others readers, it's important to know that placebos are still effective even when you know they are placebo. The term is "open-label placebo".

https://pubmed.ncbi.nlm.nih.gov/33594150/

Re:Hacking ADHD: Strategies for the modern developer by gosub100 on Wednesday November 15, 2023 @09:58AM (#38277272)
the first time I tried antidepressants I had this effect. I even knew about the placebo effect, and I knew they take multiple weeks to do anything. but yet the day after I took the first pill I started wondering if things were getting better and I was trying to deny it, but it felt like a change. (spoiler: it had the opposite effect and once they took effect I could barely get out of bed lol). It was just incredible knowing that it was placebo but still feeling the effect.
Re:Hacking ADHD: Strategies for the modern developer by RoyalHenOil on Thursday November 16, 2023 @04:11AM (#38287252)
I wonder if the placebo effect is actually hope.

I wouldn't be surprised if you felt better even before you took your first dose; I can imagine you started feeling better just having a prescription in hand.

Re:Hacking ADHD: Strategies for the modern developer by gosub100 on Friday November 17, 2023 @01:17PM (#38307601)
Imagine what it must have been like for "primitive" civilizations: "Oh my son, your hurt back has gone on far too long. I'm taking you to the tribal elder who will prescribe a remedy and do a spell. Once he finishes, all your pain will be a distant memory". And it works (for some duration).
Re:Hacking ADHD: Strategies for the modern developer by ChrisRR on Thursday November 16, 2023 @04:25AM (#38287375)
Because it's a discussion about science and their comment is totally valid.

One of the biggest parts of placebo is going through the motions, whether you believe it or not. The original commentor appears to be aware that their approach may not have any scientific basis so mentioning the potential of placebo is fine.

Re:Hacking ADHD: Strategies for the modern developer by throwuwu on Wednesday November 15, 2023 @09:36AM (#38276994)
It’s not. It’s called brainwave entrainment and it’s well studied with both sound and light having a strong effect that’s measurable on EEG.
Re:Hacking ADHD: Strategies for the modern developer by whalesalad on Wednesday November 15, 2023 @11:26AM (#38278489)
Music BPM has the same effect. For me personally the right cadence can almost induce a flow state immediately.
Re:Hacking ADHD: Strategies for the modern developer by RoyalHenOil on Thursday November 16, 2023 @04:16AM (#38287290)
I find music distracting when I work because I listen to it too actively, but I can imagine that a subtle regular pulse or beat might help. It would beed to be quiet and plain enough that it would not dominate my attention.
Re:Hacking ADHD: Strategies for the modern developer by regularfry on Thursday November 16, 2023 @06:33AM (#38288303)
For me it's a question of whether it has lyrics or not. No lyrics? Absolutely fine. Lyrics? Instasquirrel.
Re:Hacking ADHD: Strategies for the modern developer by RoyalHenOil on Thursday November 16, 2023 @07:10AM (#38288576)
Even music without lyrics is distracting to me, but lyrics (if in a language I understand) definitely make it much worse.

Oddly enough, non-musical sounds (like birds or cars) don't affect me at all. I think it's the complex pattern-matching in music that is a problem for me. Of course, that's also what makes it so delightful to listen to.

Re:Hacking ADHD: Strategies for the modern developer by regularfry on Friday November 17, 2023 @11:41AM (#38305971)
For me it's more that the language processing centre in my brain is strongly single-threaded. Some non-verbal sounds do engage it, but there's a complexity threshold. Magpies chattering to each other do. Some classical music does, but not all by any means.
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @11:52AM (#38278902)
Yes, it could be the placebo effect, but placebo works wonders ; )

I detailed better aspects on a question above,

Placebo need you to trust it works (or see a figure of authority to believe it does), in my case I expect nothing and got not much on v.1 (software) by v.3 (hardware) it is surprising.

; )

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @12:26PM (#38279478)
Messed my earlier response...

YES, it can be the placebo effect, but still placebo can works wonders ; )

I detailed better aspects on questions above, also not doing it commercially or claiming it can be helpful for anyone other than me.

In placebo, one needs to trust it will work (or see a figure of authority to believe it does), in my case I wasn't expecting much and got not far from it on v.1 (software), but by v.3 (hardware) I was surprised and used to it.

So, I'm happy to share it here FREE ; )

Re:Hacking ADHD: Strategies for the modern developer by chipsrafferty on Wednesday November 15, 2023 @03:12PM (#38281776)
Seems unlikely to be a placebo.
Re:Hacking ADHD: Strategies for the modern developer by j_heffe on Wednesday November 15, 2023 @03:57PM (#38282369)
I believe there is research into rapid eye blinking followed by slow blinking causing the brain to "calm", so perhaps an external source has a similar effect?
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @09:38AM (#38290028)
I didn't look too much into it but I too have seen something long time past about patterns with light from a TV on some of those documentaries from the 80's, basically about people trying advertising with subjective flashes to induce a certain mood.
Re:Hacking ADHD: Strategies for the modern developer by maskil on Wednesday November 15, 2023 @08:31AM (#38276407)
"Make the slope approx 20-60 minutes", to be clear does this mean it should take that period of time to gradually go from 120 to 20-60?
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @12:01PM (#38279047)
Yes, I started with a 1 hour slope... from 150 to 60 over that time.

Also it is not really a blink but a quick fade in/out effect not a flash.

Re:Hacking ADHD: Strategies for the modern developer by flir on Wednesday November 15, 2023 @08:36AM (#38276439)
Intriguing. Wonder if sound would work also.
Re:Hacking ADHD: Strategies for the modern developer by imposter on Wednesday November 15, 2023 @09:10AM (#38276756)
I used to hear to Hucci alot back in the day because most of his songs would hover around 60-70 BPM, I'd gather it was having a similar effect.
Re:Hacking ADHD: Strategies for the modern developer by flir on Wednesday November 15, 2023 @09:16AM (#38276814)
I use Erik Satie a lot (https://www.youtube.com/watch?v=5pyhBJzuixM). Also ASMR videos of mechanical keyboards (https://www.youtube.com/watch?v=_zq5blZL1P4). Wonder what a light with some randomness would do.

You could hook up some physiological monitors and try all kinds of light patterns.

Re:Hacking ADHD: Strategies for the modern developer by ethanbond on Wednesday November 15, 2023 @09:35AM (#38276989)
Try Endel! Works great for this type of stuff IMO.
Re:Hacking ADHD: Strategies for the modern developer by flir on Wednesday November 15, 2023 @10:34AM (#38277778)
Does seem good. I laid it on top of some typing sounds, and it's a bit elevator muzak but that might be why it works.
Re:Hacking ADHD: Strategies for the modern developer by FrankyHollywood on Wednesday November 15, 2023 @10:07AM (#38277388)
Nice idea, but sound distracts me very much, I just wanted to suggest a package deal: blinking led with a pair of noise canceling earbuds :)
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @11:59AM (#38279017)
It does, but the blinking was better in my case.

I used to do beats high to low, instrumental music basically.

; )

Re:Hacking ADHD: Strategies for the modern developer by shambulatron on Wednesday November 15, 2023 @04:17PM (#38282624)
brain.fm really seems to help me out, when I remember to use it!
Re:Hacking ADHD: Strategies for the modern developer by herculity275 on Wednesday November 15, 2023 @08:35AM (#38276431)
Do you have a script you could share?
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @01:45PM (#38280625)
Just use any blinking LED template code that your OEM offers for your particular board (ESP32 or alike) as it will be specific for the PIN the LED is wired and libraries available, etc.

Basically a function slope with a value from 150 to 60 that calls "blinks" over an hour, when at the end it turns off LED.

You can make it smoother, add the heartbeat sensor, make it pulse instead of blink, that stuff will be particular to whatever you have at hand.

GPT for such simple code after explaining the device and pointing to documentation should be a 3-4 shot process.

My one is horribly inefficient and shameful to share : )

Re:Hacking ADHD: Strategies for the modern developer by chipsrafferty on Wednesday November 15, 2023 @03:14PM (#38281800)
What if I don't know what any of that means? I only know how to code, never used a "board" but I want to try this
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @03:23PM (#38294946)
I see, well in that case just search for ESP32 on Amazon and get one for a $5, then look for a few videos on Youtube who to program for a ESP32 board and you will probably learn as a first example something to control the board's LED. From that you will be half way, just modify and try things out ; )
Re:Hacking ADHD: Strategies for the modern developer by tsegers on Thursday November 16, 2023 @04:10PM (#38295587)
Here's what I cobbled together for Arduino [1]. It ain't pretty, but it's short and it works.

[1] https://paste.sr.ht/~tsegers/53adaecd734e7159352f152ac1dcc85...

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @08:36PM (#38298150)
Looking good for a test run indeed!
Re:Hacking ADHD: Strategies for the modern developer by voisin on Wednesday November 15, 2023 @08:15AM (#38276288)
Have you considered building this as a product and selling it? I could see this with a kickstarter or even Shark Tank!
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @12:07PM (#38279147)
Hi thanks for complement,

I guess you would be a client ; )

No, I have hundreds of things I do and very few go to product or build phase.

For this personal issue, I would not be comfortable claiming it could do anything for others like what it does for me. Also I'm not based on anything other than experimental data.

I'm happy to share it here and FREE.

I run a tech incubator in the UK, so hands full : )

Re:Hacking ADHD: Strategies for the modern developer by cmplxconjugate on Wednesday November 15, 2023 @08:08AM (#38276238)
This should be a product.
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @12:10PM (#38279211)
Thanks for the complement,

I guess you would be a client (few comments)

I have hundreds of things I do and very few go to product or build phase.

Not my view for this one as it is a personal issue. I would not be comfortable claiming it could do anything for others like it does for me. Also I'm not basing it on anything scientific other than raw experimental data from 1.

I'm happy to share it here and FREE for everyone.

I run a tiny tiny tech incubator in the UK, so hands full : )

Re:Hacking ADHD: Strategies for the modern developer by zubairq on Wednesday November 15, 2023 @08:16AM (#38276304)
Great idea, where can I buy one?
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @12:22PM (#38279410)
Explained before under another comment ; )

...

Thanks for the complement, I guess you would be a client (few comments)

I have hundreds of things I do and very few go to product or build phase.

Not my view for this one as it is a personal issue. I would not be comfortable claiming it could do anything for others like it does for me. Also I'm not basing it on anything scientific other than raw experimental data from 1.

I'm happy to share it here and FREE for everyone.

I run a tiny tiny tech incubator in the UK, so hands full : )

Re:Hacking ADHD: Strategies for the modern developer by arsome on Wednesday November 15, 2023 @09:00AM (#38276654)
You could probably just implement this in software on a side monitor even...
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @11:58AM (#38278994)
I explained above on another question, did started as Software (v.1 and v.2) but I guess my brain tried to ignore and sabotage the work on the screen, so I placed as a tiny device underneath (gotcha F brains!).

Like tricking the brain to see as not part of the work.

; )

Re:Hacking ADHD: Strategies for the modern developer by koonsolo on Wednesday November 15, 2023 @09:32AM (#38276956)
> Get to work regardless if distracted and agitated. Close all apps except what you need to work and BOOM!, let the magic happen

Isn't this the part that actually does the heavy lifting to get stuff done?

Re:Hacking ADHD: Strategies for the modern developer by simplyluke on Wednesday November 15, 2023 @09:46AM (#38277114)
Most productivity hacks are window dressing around this.
Re:Hacking ADHD: Strategies for the modern developer by koonsolo on Wednesday November 15, 2023 @10:24AM (#38277628)
Yeah, but this blinking light is still at another level. I'm glad it works for the OP, but to me this really stood out as pretty absurd.

Sounds a bit like: I have a hard time falling asleep, so I have this blinking light next to my bed. I take a sleeping pill and let the magic happen. My heart rate then syncs to the light and I fall asleep. This light works great!

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @01:03PM (#38280026)
No really what I was trying to say but get your point.

The idea is that you sit at your desk even if too agitated and remove the visual distractions that aren't work so your eyes will either look at work or the blinking led. I have an iPad by the side so I can't see the screen but will open from time to time to check emails.

So, stare at the screen even if you don't feel like it and try 1o-15min.... if you forget and realised an hour passed and the blink stoped it... then it worked!

; )

Re:Hacking ADHD: Strategies for the modern developer by ChrisRR on Thursday November 16, 2023 @04:26AM (#38287381)
This part seems like "draw the rest of the fucking owl"
Re:Hacking ADHD: Strategies for the modern developer by ark4579 on Wednesday November 15, 2023 @09:45AM (#38277097)
oh sh*t. here we go again. another IoT that I would love to start and then abandon for some reason knowing full well how fix it but not find the "time" to do it.
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @12:13PM (#38279249)
I Did't get this one...

It is not broken, it works, I just don't feel it should be a commercial product as I'm not comfortable in claiming it can do what it does for me.

Happy to share FREE here,

; )

Re:Hacking ADHD: Strategies for the modern developer by ChrisRR on Thursday November 16, 2023 @04:29AM (#38287394)
IOT? It's a blinking LED, pretty much always the first thing you learn in embedded. No need for internet, just an LED and a microcontroller.
Re:Hacking ADHD: Strategies for the modern developer by makeworld on Wednesday November 15, 2023 @10:02AM (#38277304)
Re:Hacking ADHD: Strategies for the modern developer by lelanthran on Wednesday November 15, 2023 @10:43AM (#38277918)
What would be really useful is a follow-up study that used GPs LED optical trick to influence the brainwave frequency.

IOW, set the frequency to a known external stimulus, and see if the effect still holds.

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @01:35PM (#38280469)
Interesting stuff indeed!
Re:Hacking ADHD: Strategies for the modern developer by sonicanatidae on Wednesday November 15, 2023 @10:06AM (#38277359)
OMG. I could not do this. I hope it's useful to others, but not for me...at all.

The biggest distraction for me, when working/focusing, is movement at the edge of my vision. You know, like most websites with their moving ads, or fly-out videos that no one asked for, etc.

I'm glad you found your silverbullet, but that specific approach would wreck my productivity.

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @11:55AM (#38278943)
I don't recommend my solution BUT

Your description is close to what I experience at times, that blinking thing may help you ignore outside the monitor distractions as it is there forcing you to ignore?

Interesting,

Do one and tell me ; )

I cost me $25 or less.... all spares ESP32 (most of them has a LED pinned anyways) and don't bother the heart monitor initially, just set time and rate of descent for the blink.

Cheap test...

Re:Hacking ADHD: Strategies for the modern developer by sonicanatidae on Wednesday November 15, 2023 @12:33PM (#38279580)
I'm fortunate in that I can control my office enough that I can simply eliminate the distractions. For the rest, there's pihole, Brave and Ublock. ;)

I may try this, as an experiment, but going into it, I'm expecting a fail. If I do try it, I'll follow up.

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @12:58PM (#38279945)
You can't lose as even if it does not work much for you, you will get the building pleasure for sure.
Re:Hacking ADHD: Strategies for the modern developer by sonicanatidae on Wednesday November 15, 2023 @01:13PM (#38280165)
Agreed and part of why I'm a career long SysAdmin is I like to tinker. :)
Re:Hacking ADHD: Strategies for the modern developer by ChrisRR on Thursday November 16, 2023 @04:22AM (#38287342)
Same. I can't stand people hovering around my desk. Every little thing they do or say distracts me.
Re:Hacking ADHD: Strategies for the modern developer by sagebird on Friday November 17, 2023 @09:17AM (#38303883)
What if instead of a blinking led, it were a warm incandescent bulb, shaded by a diffuser? Bulbs have some on and off ramp time naturally but maybe this could be purposefully exaggerated so it pulses instead of blinks. Wonder if it would be as effective though.
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Monday November 20, 2023 @12:12PM (#38350756)
I've changed the LED to pulse at early interactions, blinking was too crude indeed.
Re:Hacking ADHD: Strategies for the modern developer by jblezo on Wednesday November 15, 2023 @10:06AM (#38277366)
Nice tip. Thanks for sharing. I'll probably try this by making a cheap one with one of my kids' microbits. This seems like the perfect board for doing this.
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @12:27PM (#38279494)
Its a simple project and yes, microbit will be fine!

Good luck!

Re:Hacking ADHD: Strategies for the modern developer by atcalan on Wednesday November 15, 2023 @10:29AM (#38277699)
Sounds like a time timer. The ventromedial pfc is the culprit here. Time blindness.
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @12:30PM (#38279537)
It's like a maestro, guiding you down with light not sound or words. So, yes. Done at PFC level probably ; )
Re:Hacking ADHD: Strategies for the modern developer by scns on Wednesday November 15, 2023 @11:00AM (#38278133)
I like Binaural Beats for this, plenty of Apps on offer.

Started out with this one and hacked a bit on it, never published my version though: https://f-droid.org/en/packages/com.github.axet.binauralbeat...

Now i'm pretty content with this one: https://play.google.com/store/apps/details?id=com.project.rb...

And this tune, it now is on my phone and every PC thanks to NewPipe.

https://www.youtube.com/watch?v=-6WNB9JN_2o

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Wednesday November 15, 2023 @11:49AM (#38278861)
Yes, it could be the placebo effect, but placebo works wonders ; )

I detailed better aspects on a question above,

Mostly when I added the heart monitor, somehow I can measure that the time to lowest blink got shorter and I'm not paying attention to the device at all.

When I realise it us OFF I can see the logs and see how long it take vs the heartbeat to sync.

Also, I build myself so I like there was no marketing or product to trust, just test and adjust.

Re:Hacking ADHD: Strategies for the modern developer by JaDogg on Wednesday November 15, 2023 @01:37PM (#38280501)
[delayed]
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @08:53PM (#38298270)
Nice one! Be distracted! VERY distracted indeed.... then try it out to calm you down! Loop
Re:Hacking ADHD: Strategies for the modern developer by swah on Wednesday November 15, 2023 @02:43PM (#38281385)
Found an use to my m5stick C+ , will try this
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @09:50AM (#38290191)
Great little device, and you don't need to 3D print a case : )
Re:Hacking ADHD: Strategies for the modern developer by timsayshey on Wednesday November 15, 2023 @04:14PM (#38282589)
Inspired by this post I threw together a new open source desktop app that has an annoying always on top window that has a flashing timer, this seems to accomplish the same thing. https://github.com/timsayshey/cringe-clock
Re:Hacking ADHD: Strategies for the modern developer by smithcoin on Wednesday November 15, 2023 @04:35PM (#38282871)
How were you able to manage the window always being on top? I thought you had to disable SIP for that on MacOS.
Re:Hacking ADHD: Strategies for the modern developer by timsayshey on Wednesday November 15, 2023 @04:58PM (#38283157)
In Electron it's super easy. Just set alwaysOnTop to true: https://github.com/timsayshey/cringe-clock/blob/main/src/bac...
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @10:26AM (#38290710)
That's cool! I get stressed just looking at it ; )

Jokes aside, whatever works...

For me a side device with a pulsating red light with a heart sync for the lope do the gig!

Deadlines comes free.

Nice one!

Re:Hacking ADHD: Strategies for the modern developer by kristianp on Wednesday November 15, 2023 @05:37PM (#38283595)
Why does the rate have to start high and slow down?
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @08:51PM (#38298251)
In principle yes,

Anything you get aware that goes fast-to-slow in a smooth gradient is the idea.

I tried sound (beats) on a headphone with some tracks, then build a tiny app to show pixels on the screen (blink) and then settled on a LED on a prototyping board type of device (ESP32) as a quick project and that worked.

I only improved by adding the heart sensor months later, now I don't think about it much, Now even If I'm not aware of, every time I turn the iMac it powers the device via the USB and so it starts anyway at 150bpm when the heart sensor is not responding or not detecting anything. After an hour it gets to 60 and the light fades out....

I'm not aware when it goes off, so I guess it is working ; )

Few people here posted code, ideas and I added the device pic I used (similar) and the sensors... you can buil one with almost anything and try!

Good luck!

Re:Hacking ADHD: Strategies for the modern developer by 28304283409234 on Wednesday November 15, 2023 @05:59PM (#38283759)
Would some blinking pixels in a corner of the screen not also work?
Re:Hacking ADHD: Strategies for the modern developer by kamaal on Wednesday November 15, 2023 @09:05PM (#38285089)
Do you have pictures of the set up?

Do share for the benefit of the masses.

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @10:14AM (#38290542)
Sure,

May do a pic later when back home, meanwhile... I used this ESP32 board, it has RGB LED right in the middle, here is a web picture of one: https://dfimg.dfrobot.com/nobody/wiki/8a1de42ec21a99f36f69da...

Its a Fire Beetle ESP32 E V.1.0, I bought cheap <$15 don't remember when or from who anymore... The heart monitor is from a study kit (Chinese brand)

My whole set is similar (not the same, not my picture) to this: https://pic-microcontroller.com/wp-content/uploads/2018/04/B...

Enjoy !

; )

Re:Hacking ADHD: Strategies for the modern developer by monkeydreams on Wednesday November 15, 2023 @09:28PM (#38285241)
My daughter suffers from functional seizures due to FND and we do something similar with counting. When she is suffering from a complex motor tic we will ask her to count at a "comfortable speed" - which is always 100+ counts per minute. She will then slow down the counting until we reach 60 counts per minute at which point she has usually transitioned to a less intrusive tic or she has ceased ticcing altogether.

> I just hammered a solution like any Ape with the shakes would need!

This is an underrated approach. Following hunches and suspicions often leads to solutions that a pure evidence-based approach might miss or delay; especially if your suspicion goes against the prevaling wisdom.

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @09:47AM (#38290155)
Really interesting to learn about your solution for you daughter, great to see it works and appreciated the comment of my approach being an underrated one.

My case isn't anything as relevant as yours and maybe that's why I did not much of research, easy going for a crude trial.

Re:Hacking ADHD: Strategies for the modern developer by OneOffAsk on Thursday November 16, 2023 @12:17AM (#38286007)
I just listened to a podcast, Huberman, that discussed how to improve your ability to task switch. Apparently, there’s some connection to how your mind perceives time. He mentioned an exercise to improve your ability to task switch that manipulates how your mind perceives time, switching back-and-forth between slowing it down and speeding it up.

I think the inability to task switch is a big part of ADHD and this thing you’re describing really sounds similar to what Huberman was discussing.

Now, I’m not a doctor and I have no idea what I’m talking about here. Every time I start talking about this stuff I imagine my doctor friend sitting in the corner of the room shaking his head (maybe some of you saying it’s placebo should do the same).

Re:Hacking ADHD: Strategies for the modern developer by ChrisRR on Thursday November 16, 2023 @04:19AM (#38287319)
I don't get this at all. What does the little flashing light achieve?

I find minor irritations like this very distracting so I'm not really sure what the theory is

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @09:03PM (#38298378)
My guess is that may be working more like a simple "maestro" telling your brain orchestra and heart drummer to reduce the speed from Heavy metal to Ballad and that somehow makes easy to focus in what's in front of you?

I make no claims here, I did it for me and looks like it works, not scientifically based or proven, not even tested on more than 1. So, no idea if can or will work for you ; )

That said, I'm now curious with so many comments to see how it will perform for those building versions to test. Its a 20min project, free for those already with prototyping board around.

The key for me was to remove to my marginal angle of vision, not on the screen (like an app), the moment I moved outside and wasn't in front of it it work best. If you see it directly it does distract you indeed.

Re:Hacking ADHD: Strategies for the modern developer by BaculumMeumEst on Thursday November 16, 2023 @05:11AM (#38287712)
i coded up an entire program to blink according to what you described before i it occurred to me my screen only runs at 60hz lol
Re:Hacking ADHD: Strategies for the modern developer by anticrymactic on Thursday November 16, 2023 @05:28AM (#38287834)
Thankfully, heartrates are only in the single digit frequencies, so that shouldn't be a problem. 60 BPM = 1 Hz
Re:Hacking ADHD: Strategies for the modern developer by BaculumMeumEst on Thursday November 16, 2023 @09:58AM (#38290318)
thank you for the correction. i blame one or all of fever delirium, lack of coffee, and allergy to math for this mistake. thank god i'm using a shitposting account.
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @09:48AM (#38290169)
; )
Re:Hacking ADHD: Strategies for the modern developer by gcatalfamo on Thursday November 16, 2023 @07:35AM (#38288796)
Fascinating, but I have photo-sensitivity and continuous blinking would give me an headache.

But I used to reproduce a similar behaviour with music (repetitive)

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Friday November 17, 2023 @12:02PM (#38306336)
I didn't like the blinking at first, so I made it pulse instead (smoother) but was never to the point of headaches. that said, sound should work if you can keep a headset ; )
Re:Hacking ADHD: Strategies for the modern developer by dofdial on Thursday November 16, 2023 @09:12AM (#38289698)
great.

i am trying this now with a chrome-shortcut, window size 50x50, stay on top, js with blinking background on the bottom rigth corner of the screen.

If it helps, i will use a esp32. thanks.

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @09:34AM (#38289989)
Nice, Let me know how if works for you, for me only the hardware (led outside the screen perimeter) works best.
Re:Hacking ADHD: Strategies for the modern developer by maliker on Thursday November 16, 2023 @10:14AM (#38290544)
ChatGPT coded up a simple python script to do this for me if anyone would like to test it out.

Here's the script: https://gist.github.com/dpinney/a3c0b1f333ef89748fa12d057a55...

Re:Hacking ADHD: Strategies for the modern developer by loamaa on Thursday November 16, 2023 @01:58PM (#38293775)
Thanks for this initial go at the blinking LED script! I went ahead and tried to add some quality-of-life features to this that I wanted. I've never used pyqt before, so I admit I had help from google and copilot figuring out methods. Anyways, here is an updated version that has a few more configurations for background color, circle color, slowdown period, graceful window resizing, and graceful shutdown.

https://gist.github.com/rzwiefel/4527d40de25a7fd5a723016fbd4...

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Friday November 17, 2023 @08:00AM (#38302884)
Looks good!

Try doing one on a physical device too... My settings are just related to fade after reaching target or turn off immediately, Led colour (my ESP32 has a RGB onboard) and blink or pulse. Then there is a Start & Stop rate (150-60) as standard and IF sensor is connected or has data (heart) those values adjust too.

Nice one!

Re:Hacking ADHD: Strategies for the modern developer by atlas_hugged on Thursday November 16, 2023 @01:26PM (#38293404)
Bruh, I think you’re onto something here. Definitely going to try this. Thanks a mil
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @08:39PM (#38298170)
[delayed]
Re:Hacking ADHD: Strategies for the modern developer by floydax on Thursday November 16, 2023 @04:23PM (#38295734)
This got me so intrigued that I built https://github.com/vlameiras/tranquiled in order to have similar behaviour but in the screen itself. Nothing fancy, just curious to try it out!
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Thursday November 16, 2023 @09:16PM (#38298495)
Nice one! I will be curious to learn if that works for others too.

In my case v.1 and 2 were apps with a similar on screen red dot like yours. Much smaller and first placed at the status-bar (like the cock ":" blinking) then floating on screen lower left corner.

Things got interesting and worked best for me after I remove the light from the actual screen I must look at to work. Hence the device use, and then later the heart sensor.

The key (I guess) is to make you brain see it but not you (if that makes sense?). Something like you looking at your screen but can still see if an Ant moves nearby or your phone shows a notification. Near your screen but not on it ; )

In any case, great little test, and eager for any feedback you can get.

Re:Hacking ADHD: Strategies for the modern developer by loco5niner on Thursday November 16, 2023 @04:41PM (#38295963)
ChatGPT got me a similar HTML based solution with this prompt (F11 for full scren):

Create a simple web page with a red blinking LED in the top-left corner. The LED should start blinking at 150 BPM and gradually slow down to 60 BPM. The initial size of the LED should be 40px, and it should completely disappear during the "off" phase. Additionally, include a red box shadow during the "on" phase of the blink. Please use HTML, CSS, and JavaScript for the implementation. Adjust the code as needed for clarity and readability.

Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Friday November 17, 2023 @07:56AM (#38302847)
These days with GPT and the lot there is really no reason not to try stuff. Nice one!
Re:Hacking ADHD: Strategies for the modern developer by loco5niner on Monday November 20, 2023 @02:34PM (#38353260)
Thanks! One new thing I learned after multiple iterations of: "That's great, but can you change this, or that". Once I was happy with the result, I asked it to produce the AI prompt that I could give next time to generate the same output, and that's what I put in my previous comment.
Re:Hacking ADHD: Strategies for the modern developer by decodingchris on Friday November 17, 2023 @06:37AM (#38302154)
Thanks for sharing your hack! I made a chrome extension for myself and others that want to try it out. Would love your thoughts! https://chromewebstore.google.com/detail/blink-effortless-fo...
Re:Hacking ADHD: Strategies for the modern developer by TheRealHB on Friday November 17, 2023 @07:50AM (#38302798)
Looks cool!