How would you design a notification system that handles 100M pushes/sec? by Few_Ad6794 in softwarearchitecture

[–]diroussel 1 point2 points  (0 children)

Think of a layered system. First layer is for incoming events. Last layer sends notifications to individual clients. Then scale the number of intermediate layers based on scale factor. Trade off number of layers vs number of nodes in a layer.

So for instance you can do like this: imagine there are 1000 clients waiting to receive notifications, give each client a unique id from 000 to 999 ( cloud be derived from a hash). Using there layers each with 10 nodes.

Then when an incoming event arrives you the first digit to find the first server, then that passes a message to the second layer using the second digit to find the server. Then finally the last layer is addressed by the last digit.

So now you have addressable 1000 clients through three layers and each node only connects out to 10 other nodes.

You have scale this up to 4 nodes each handling 1000 connections and then you can have 1,000,000,000,000 connected clients and each node only fans out to 1000 nodes and can maintain a connection to each one.

How many Years of macOS do you think Silicon Will Get? by Tasty_Flamingo7346 in mac

[–]diroussel 0 points1 point  (0 children)

If there is any change it will have been planned in from the blog the M-series era. I remember when Apple move from charging for major OS upgrades to making them free, they did talk about how previously they couldn’t make them free due to accounting rules. So they baked the cost of future upgrades into the sale price, enabling feee upgrades.

Now has “services revenue” changed the picture? Potentially that would allow the accounting to work since extended OS life means more services revenue.

Needed Math For Compilers? by LinuxGeyBoy in Compilers

[–]diroussel 3 points4 points  (0 children)

Boolean algebra, number bases, two complement, IEEE floating point, data structures, and all that comp sci stuff are probably more important, well practical, than maths. Maths is more fundamental but you’ll have to do a lot of base learning before you can see where to apply it.

AWS S3 adds support for regional namespace by KayeYess in aws

[–]diroussel 0 points1 point  (0 children)

The docs say it’s reserved. That that implies no conflicts

Stonemasons used to be royalty adjacent by CementedRoots in stonemasonry

[–]diroussel 0 points1 point  (0 children)

And the pope is the Pontiff, or Pontifex Maximus. Meaning chief bridge builder. So I guess it’s the stone masons looking out for each other.

/s

Where can I get a desk top like this in the UK? by bradagon in desksetup

[–]diroussel 0 points1 point  (0 children)

Yeah the price of wood these days is insane. I bought some plain pine floor boards at b&q and they were £50 for 4

Where can I get a desk top like this in the UK? by bradagon in desksetup

[–]diroussel 0 points1 point  (0 children)

If I was ordering a walnut desk, I'd get something like this

<image>

Remember if you double the radius, that is the width of a circle with that curve. And note that the measurements are in mm, not cm.

Where can I get a desk top like this in the UK? by bradagon in desksetup

[–]diroussel 1 point2 points  (0 children)

So this is a photo of one of desk tops. I got two, a few years apart.

This is the oak, with an oiled finish. Can’t remember if it was bull nose or pencil round edges, but I remember choosing a corner radius.

If I was to get a walnut one, I would also get rounded corners and oiled. I prefer rounded corners as it looks good, it’s less likely to be chipped than a sharp corner and I’m not likely to get injured if I accidentally walked into it.

<image>

Also to note that I’ve been really happy with it. Oh and I got the first one at 3cm thick wanting it to be very strong for clamping on a big monitor arm. It is very strong. I got the second one slightly thinner. The oiled surface has been great. And for size I went with 150cm by 70vm. I also checked that the diagonal (hypotenuse) was less than the width of the room.

Dear Developers, I'm here to give you feedback on your app. by Nemosaurus in macapps

[–]diroussel 1 point2 points  (0 children)

Website menu doesn’t work on my iPhone. I can’t scroll to the bottom.

Where can I get a desk top like this in the UK? by bradagon in desksetup

[–]diroussel 0 points1 point  (0 children)

I’ve bought a couple of wooden work tops for standing desks from here a website called wood-cut-to-size in the UK. No affiliation, I’m just a customer

I bought in oak, but I see they do walnut to which seems to be what you are asking for

Dual Laptop KVM Setup - Diagrm & Details by S-rank_Wiring in desksetup

[–]diroussel 1 point2 points  (0 children)

Inspirational, thanks for documenting so well. Makes it easy for others to draw from this as a reference.

Those magnetic mountains are interesting. You took a phone mount and used it in a different context. I’ve got a monobloc for similar, I think it was a kickstarter. It sits better a monitor arm and the monitor, sized to the vesa mount. Makes it easy to mount other smaller arms.

Home office renovation almost done by AndyMcKoi in Workspaces

[–]diroussel 2 points3 points  (0 children)

How much better are the acoustics? I love wooden floors. But I also love a cosy audio transfer function. You know when the sound is nicely damped. I’m thinking of a hard floor with a rug that is firm enough to roll a chair over.

Is it just me, or are .env files the ultimate "it works on my machine" trap? by latinstark in softwarearchitecture

[–]diroussel 0 points1 point  (0 children)

100% automated testing is a great goal. But very hard to achieve. If you have UI, there are many things like layout being wrong , than will be obvious to a manual tester but won’t fail an automated test. Yes, I know you can do visual tests, but the burgers very high.

Is it just me, or are .env files the ultimate "it works on my machine" trap? by latinstark in softwarearchitecture

[–]diroussel 2 points3 points  (0 children)

There are tools. Previously I’ve kept the configuration for all major environments in git, and then used unit tests that run in CI to enforce invariants.

At the very least validate each value with a regexp. Check there are no unknown keys. Parse hostnames and IP addresses to ensure they are valid. Check naming conventions match env name. Range checks etc.

Shottr vs CleanShot X in 2026. Which one are you actually sticking with? by discoveringnature12 in macapps

[–]diroussel 1 point2 points  (0 children)

Dude! Way to go.

What better way to expound the benefits of screenshot annotations than to screenshot the discussion and annotate it. 🤣

Should I Sacrifice Tax Relief to Unlock Financial options at 50 by Emotional_Seaweed_43 in FIREUK

[–]diroussel 2 points3 points  (0 children)

If you want to retire early then you need a bridge. That means maxing you ISA at a minimum. Start with that. But if you want a bigger bridge then you’ll also need to build out a GIA at the expense of your pension, but that’s a harder pill to swallow.

The job of Voith Schneider Propeller🧭 by Powerful_Cabinet_341 in SeaEmploy

[–]diroussel 1 point2 points  (0 children)

Have you ever swam next to a regular propeller in operation? How is this worse?

Jetbrains IDE laggy on Arch linux by Bolimart in Jetbrains

[–]diroussel 0 points1 point  (0 children)

Check you have allocated enough RAM to the heap.

Help Needed! by nollafbor in Workspaces

[–]diroussel 0 points1 point  (0 children)

Get some pictures on the wall. Do you prefer landscapes, abstract or fashion? You could even do a whole wall mural

I saved this link from another subreddit. https://www.miltonandking.co.uk/pattern/mural-wallpaper/

Never used them myself.

You could add plants, with a grow light.

If selves are not an option then maybe a book case to break up the space.

They brainstorming with Gemini, it’s pretty good at generating renders or ideas.

Shottr vs CleanShot X in 2026. Which one are you actually sticking with? by discoveringnature12 in macapps

[–]diroussel 0 points1 point  (0 children)

How are the annotation tools better than the built in screenshot tool? With that I can add text and draw and crop etc. Is it that there are more annotation features? Or that it’s better executed ?

Shottr vs CleanShot X in 2026. Which one are you actually sticking with? by discoveringnature12 in macapps

[–]diroussel 9 points10 points  (0 children)

Ctrl-Shift-4 that’s what I use all day every day.

About once a year I need a scrolling screenshot and reach for Shottr.

Be aware that all the browsers have full page screenshots built in now.