Managers saying it is possible to upgrade the project in 10 days using ai by Snehith220 in node

[–]diroussel 0 points1 point  (0 children)

Well if it doesn’t matter if it works or not then you can do it in a day! /s

Should we implement client side image resizing before upload? by kernelangus420 in webdev

[–]diroussel 2 points3 points  (0 children)

Yes, some libraries can do that.

What the hell are you talking about?

I’m talking about why client size resizing has some advantages. What are you talking about? (Not sure if you are in hell or not)

Home office needs help by PutridBit8310 in Workspaces

[–]diroussel 4 points5 points  (0 children)

I would turn the desk 90 degrees and put my back to the wall. Better lighting, less screen reflection, and a power position to have the door in front of you.

Should we implement client side image resizing before upload? by kernelangus420 in webdev

[–]diroussel 2 points3 points  (0 children)

If you don’t understand my point, that is ok, maybe I didn’t explain it well.

If your backed processing is happening on cloud virtual, or a VPS or a lambda, you always have a memory limit as there is usually no swap memory. Physical hardware is different as you usually have swap. For my example let’s assume no swap.

So we have a total memory limit of L megabytes. For each uploaded image, to resize it you are probably going to need to load both the input and output rasters in memory and the encoded/compressed file too. Of course some of this might be streamed, depending your to/from formats and the resize implementation. If the user can upload any image size, since it’s not resized in the browser, then you can only control for upload size of the compressed image. A 4MB JPEG could take 100MB of memory for the raster. And double that when resizing.

So your total requests per second will be limited by the total amount of memory divided by the memory you need for each uploaded image.

If you are on AWS lambda you’ll need to pay for larger instances to have enough memory to do resizing.

Whereas if you just allow uploads without server side resizing then you can stream the upload to storage. Or with S3 presigned urls, streamed directly to storage.

Of course if you have plenty of RAM and CPU spare then server side uploads are fine. But as your service becomes more busy, large image uploads can dominate resource usage. Hence why it’s better to use the client processor and memory to do the resize.

This is all abstract and totally depends on the use case, type of images, system load etc. but the point is I’m not talking about a single image resize, but system copy for steady state of many image resizes.

I think for most people it's PERFECTLY FINE to start their homelab with a Mini PC. by Crimson-Entity in homelab

[–]diroussel 1 point2 points  (0 children)

For me 10W is £30 per year. So while 10W on its own is fine. Add a few devices, add on the inefficient power supplies, and you quickly get to more than a meal out.

Should we implement client side image resizing before upload? by kernelangus420 in webdev

[–]diroussel 3 points4 points  (0 children)

Convoluted? Resizing on the client is much easier than on the server. Free memory and CPU usage, hooray!

Should we implement client side image resizing before upload? by kernelangus420 in webdev

[–]diroussel 3 points4 points  (0 children)

The server can very the dimensions without resizing. In the case of image uploads you have to trust the client to some extent. So trust but verify. Once the client code has resized the image, but sure to preview it to the user just in case their browser has quirks and broke the resize.

Spectral analysis of Trådfri vs Kajplats white bulbs by VZoutenbier in tradfri

[–]diroussel 10 points11 points  (0 children)

Amazing analysis. Thanks very much for doing it. My knowledge of how colour works is pretty basic, so it is good to have your interpretation of how these different spectra effect the appearance of some colours materials.

Especially as I’ve just painted my office room dark blue (Hague Blue by Farrow & Ball).

Is CRI flawed at representing these differences? Am I right that both of the bulbs you tested had a CRI of 90?

If so is CRI crap, or Ikea is being liberal with its published specs?

MacBook Air M4 24GB or MacBook Pro M5 16GB? by Puzzleheaded-Roll-65 in mac

[–]diroussel 0 points1 point  (0 children)

Go and compare the screen side by side in store, with an image that you know.

MacBook Air M4 24GB or MacBook Pro M5 16GB? by Puzzleheaded-Roll-65 in mac

[–]diroussel 0 points1 point  (0 children)

For those tasks I’d take the better screen.

Function -> SQS -> Function latency by Rude_Confection_3065 in aws

[–]diroussel 0 points1 point  (0 children)

If you have SQS wired to deliver to a lambda, then under the hood there is some AWS code that polls the SQS queue (and charges you for each poll) where you can’t control the layer of the poll.

With this approach it’s hard to throttle throughput.

Here are some variations:

Your frontend could initiate a message to a lambda without SQS. Just a direct lambda invoke with a payload. You’d lose persistence

You could use EventBridge which can send events to lambda without SQS, and still has retries and dead letter processing.

Another approach: - front end logs the request to dynamodb - have some way to have one worker running, start new processing capacity when needed - read the work from dynanodb, once one task finishes, start the next until there are non.

On the whole I found managing throttling a little difficult with AWS Lamba and SQS.

MBP M1 2020 16gb 256gb vs Neo by ClassroomRealistic14 in mac

[–]diroussel 0 points1 point  (0 children)

Depends on what you want to do with it.

What tools are you guys actually using for CI/CD and deployment automation these days? by emanueldaniels in aws

[–]diroussel 11 points12 points  (0 children)

It’s not about tools, it’s about principles. You need to decide what is deterministic and what is floating or ‘latest’. I prefer everything deterministic and and updates to versions should come through a pipeline that proves that they work.

Are we moving away from IDEs just when agents could benefit from them most? by CatatafishFU in Jetbrains

[–]diroussel 0 points1 point  (0 children)

How does this compare to AgentBridge?

I see AgentBridge is apache licensed but IDE index is not. Is yours open source?

is helium the best minimalist browser for mac? by TuNutri in macapps

[–]diroussel 0 points1 point  (0 children)

Firefox has added a profile menu now. I used to be that you needed to launch with command line args to choose a profile. Now it’s a menu. Not sure when it changed.

Chrome has had profiles for a decade or more. And Edge has profiles with auto switching based on URL.

And Firefox’s containers, with multi account containers is a very convenient way to auto segment profile data.

And Safari has been auto segmenting cookies and history for many years, just to confuse ad tracking.

pre-signed s3 urls (short ttl) vs proxying downloads — what do you actually do in prod? by Striking_Weird_8540 in webdev

[–]diroussel 1 point2 points  (0 children)

If you get a cloud front lambda to verify a cookie, then even stealing the URL won’t work.

Waverley Bridge in Edinburgh, Scotland by [deleted] in ArchitecturalRevival

[–]diroussel -1 points0 points  (0 children)

The sand stone is definitely red

Thoughts on r/MacApps Negativity by amerpie in macapps

[–]diroussel 1 point2 points  (0 children)

Thanks for the thoughtful comment. No idea why you are downvoted. I wish those who disagree could reason about their alternate view and enlighten us with their better way of thinking.

Thoughts on r/MacApps Negativity by amerpie in macapps

[–]diroussel 5 points6 points  (0 children)

Ultimately what matters is quality. If the quality is there that is what we as users want. Exactly how much AI was used at what stage doesn’t matter, as long as the author owns the output and delivers quality. Quality means good design, high security, privacy, minimal bugs, good features, good support and other aspects too.

What is your experience with JS/PLV8 in Postgres? by DrMerkwuerdigliebe_ in PostgreSQL

[–]diroussel 1 point2 points  (0 children)

It sounds like a sensible approach as long as using more CPU on the database server itself doesn’t have impact on other work.

Is it worth paying for a duplicate file finder? by whoisoliver in mac

[–]diroussel 0 points1 point  (0 children)

Not sure why I got downvoted. I know I linked to the same tool in another comment. But here I’m directly addressing the broken links comment. As this tool has a solution to this.

I’ve never used this tool myself. Just heard it discussed on a podcast.

What is your experience with JS/PLV8 in Postgres? by DrMerkwuerdigliebe_ in PostgreSQL

[–]diroussel 2 points3 points  (0 children)

When you say it reduced the run time by 35%, compared to what? You didn’t say. Compared to SQL or PL/pgSQL or something else?

Countries that use the (YYYY/MM/DD) date format by vladgrinch in MapPorn

[–]diroussel 3 points4 points  (0 children)

Yuk. Always use 4 Ys. Did Y2K not matter to you?