News for hackers. Stuff that matters.
Re:Busy Simulator: Feign importance with repeating app sounds by lanewinfield on Tuesday December 14, 2021 @11:02PM (#29561945)
Thanks for posting, I made this. Let me know if I'm missing any of your (least) favorite sounds.
Re:Busy Simulator: Feign importance with repeating app sounds by jonchurch_ on Wednesday December 15, 2021 @12:22AM (#29562410)
Please do add an option to play a video of a large zoom meeting where someone is talking nonstop and others are shaking their heads in disagreement.
Re:Busy Simulator: Feign importance with repeating app sounds by anyfactor on Wednesday December 15, 2021 @09:09AM (#29566114)
Also add a video where someone is repeatedly asking you to mute your audio.
Re:Busy Simulator: Feign importance with repeating app sounds by snthpy on Tuesday December 14, 2021 @11:37PM (#29562152)
This is great thanks!

What distribution did you use for the gaps between sounds? Feels a bit too regular to me. May I suggest Poisson distributed intervals based on the slider?

Re:Busy Simulator: Feign importance with repeating app sounds by lanewinfield on Tuesday December 14, 2021 @11:39PM (#29562161)
Messed around with numbers until they made sense. Your suggestion is a very smart one for a very dumb thing. Let me see what I can do.
Re:Busy Simulator: Feign importance with repeating app sounds by crdrost on Wednesday December 15, 2021 @03:33AM (#29563376)
Heh. I can quote the answer as the answer is easy.

If you want the time between the last sound and the next sound to average T, schedule the next sound to begin at

    next = last - T*Math.ln(Math.random())
Explaining why this is correct requires a bit of calculus and a couple perspectives from probability theory...

To give a quick outline, if this were discrete timesteps then the answer would look like this: given that one event has a probability p of happening, then the probability it happens after exactly n tries is

    (1–p)^{n–1} * p
Since it has to not happen independently n–1 times. Then we want to scale this to N tries per unit time so the timestep dt = 1/N... Evidently p needs to also decrease and we assume it just scales down with the timestep, p=k dt, t = n dt, so n = N t. Making those substitutions one gets the defining expression for e^x and so the probability that the event happens between time t and t+dt is, in the limit, k dt e^{-kt}. We can then integrate this to confirm that it is normalized and to discover that its mean is 1/k.

Then coming from the other side, the probability of the given expression being between t and t+dt is the probability that Math.random() falls between A and B, which is just B–A. Some more calculus gives the exact same expression with k=1/T, bada bing bada boom.

Re:Busy Simulator: Feign importance with repeating app sounds by CraigJPerry on Wednesday December 15, 2021 @07:43AM (#29565190)
That’s a neat solution, my instinct would have been futzing with the universal distribution of Math.random() into a normal distribution (incurring even more cost than the Math.log() call in the process).
Re:Busy Simulator: Feign importance with repeating app sounds by jtolmar on Wednesday December 15, 2021 @01:34PM (#29569841)
If I recall correctly, this will get you a standard deviation of 1.

  let result = 0;
  for (let i = 0; i < 6; i++) {
    result += Math.random() - Math.random();
  }
  return result;
Obviously this costs 12x as much as Math.random() itself, but it sure is simple.

(It'll also never return anything more than 6 standard deviations away from the mean, but it's not like you actually want that in most applications.)

Re:Busy Simulator: Feign importance with repeating app sounds by pkulak on Wednesday December 15, 2021 @12:27AM (#29562430)
> Your suggestion is a very smart one for a very dumb thing.

lol, I love HN so much.

Re:Busy Simulator: Feign importance with repeating app sounds by snerbles on Wednesday December 15, 2021 @02:16AM (#29562969)
Zoom ringtone please, I had a boss that would call me with horrible timing on a routine basis.

https://www.youtube.com/watch?v=vlyGdpyI1zI

Re:Busy Simulator: Feign importance with repeating app sounds by OttPeterR on Tuesday December 14, 2021 @11:17PM (#29562030)
Could you add Facebook and instagram sounds? Not so it makes you sound busy, but as a few other commenters have said, it may help with desensitization of notification sounds and I like that idea a lot
Re:Busy Simulator: Feign importance with repeating app sounds by DominikPeters on Wednesday December 15, 2021 @12:41AM (#29562507)
Re:Busy Simulator: Feign importance with repeating app sounds by lanewinfield on Tuesday December 14, 2021 @11:39PM (#29562167)
Do they have their own unique sounds? It's been so long since I've heard one that I assumed it was just system notification sounds.
Re:Busy Simulator: Feign importance with repeating app sounds by can16358p on Wednesday December 15, 2021 @03:14AM (#29563261)
Lovely idea! Any plans turning it into an app? I think just a wrapper around a webview would work for iOS, and PWA on Android. The only things that need a small work IMO is to remember last settings and autostart on app start.
Re:Busy Simulator: Feign importance with repeating app sounds by JoshTriplett on Tuesday December 14, 2021 @11:52PM (#29562251)
Fun! Thank you for building it.

Would you consider adding Zulip?

Notification sound at https://github.com/zulip/zulip/blob/main/static/audio/zulip....

Logo at https://github.com/zulip/zulip/blob/main/static/images/logo/...

Re:Busy Simulator: Feign importance with repeating app sounds by seirim on Wednesday December 15, 2021 @12:35AM (#29562475)
For the global audience could add one of the most used apps in the world from China - WeChat, which has pretty distinctive sounding pings. Great work!
Re:Busy Simulator: Feign importance with repeating app sounds by feanaro on Wednesday December 15, 2021 @02:34AM (#29563064)
I'd love to see Element here (https://app.element.io).
Re:Busy Simulator: Feign importance with repeating app sounds by Cthulhu_ on Wednesday December 15, 2021 @08:21AM (#29565513)
How about adding the 'call' tones for some of the services that have calling options, but make it low frequency (once a few minutes) by default. Might help to show a tooltip or something about how frequently it will trigger.
Re:Busy Simulator: Feign importance with repeating app sounds by count on Wednesday December 15, 2021 @12:52PM (#29569252)
It's awesome (and horrible). Needs 'cherry MX blue' sounds too...
Re:Busy Simulator: Feign importance with repeating app sounds by dotancohen on Wednesday December 15, 2021 @01:01PM (#29569374)
For better or for worse I'm bringing in my keyboard to the office tomorrow!
Re:Busy Simulator: Feign importance with repeating app sounds by jeroenhd on Wednesday December 15, 2021 @06:50AM (#29564692)
I was a bit disappointed that the "vibrating phone" sound didn't actually vibrate my phone. Chrome has support got that built in, might be a nice touch.

Also, the sliders don't render right in Firefox on Android.

Re:Busy Simulator: Feign importance with repeating app sounds by nyberg on Wednesday December 15, 2021 @04:35AM (#29563765)
Telegram notification sounds and maybe the ringtone would be "nice".
Re:Busy Simulator: Feign importance with repeating app sounds by allenu on Wednesday December 15, 2021 @12:36AM (#29562477)
This is great! Thanks for making it. I turned on everything and for a second it felt like I was in the middle of a crazy on-call session.
Re:Busy Simulator: Feign importance with repeating app sounds by dotancohen on Wednesday December 15, 2021 @01:01PM (#29569367)
The only two services that I use are Telegram and Signal - both missing.

But you did a great job overall, and the design is completely fitting.

Re:Busy Simulator: Feign importance with repeating app sounds by tiborsaas on Wednesday December 15, 2021 @09:46AM (#29566608)
A randomize button would be nice for the sliders. Or for extra randomness, you could slowly modulate them with a sine wave.
Re:Busy Simulator: Feign importance with repeating app sounds by perryizgr8 on Wednesday December 15, 2021 @05:42AM (#29564163)
If you would add the default Samsung notification sound, that would make this 10x more annoying for me :D
Re:Busy Simulator: Feign importance with repeating app sounds by cblconfederate on Wednesday December 15, 2021 @04:02AM (#29563585)
a keystroke sound or mouse click here and there , and then i could legally go to sleep on my chair
Re:Busy Simulator: Feign importance with repeating app sounds by tiniuclx on Wednesday December 15, 2021 @05:29AM (#29564074)
Please add WhatsApp Web notifications as well!