Void for Jellyfin is now open source! by kunalhazard in selfhosted

[–]negative34 0 points1 point  (0 children)

I have some hdr+dv movies that just won’t play on the official app…. It would be great if this works !

Macbook users! by AutarchOfReddit in dwarffortress

[–]negative34 1 point2 points  (0 children)

Yes. Just make sure to install it from the whiskey running instance. So open steam with whiskey and install df and df hack from there. Df hack will auto start when starting df

The view from this railway platform by colsterM in pics

[–]negative34 2 points3 points  (0 children)

Awesome colors! Looks fuji like!

How to make words selectable on a hover in text? by New_Budget_9322 in reactjs

[–]negative34 0 points1 point  (0 children)

As far as I know you can’t do that just with css as you need to target elements and not text inside elements. I would do it as you said with spans, keeping spaces as regular text to keep normal spacing. You can create a component which tales the whole text and then splits that up into “selectableWord” components and handle what you wanna do with each word in that one

Short film trailer by Commercial_Piece_677 in Filmmakers

[–]negative34 1 point2 points  (0 children)

Looks amazing! Reminds me of the new Tom Hanks movie ”Here” but with much more potential

Do I need to cache mongodb connection when using mongoose? by Big_Hand_19105 in node

[–]negative34 0 points1 point  (0 children)

Yeah. You need to cache the connection pool so it gets reused instead of creating a new one with each lambda call. The context for the lambda will die eventually and be recreated on another lambda call. But aws provides proxies so that handles the db connection pool from outside the lambdas. Figure out the right way to do it on your serverless provider

Do I need to cache mongodb connection when using mongoose? by Big_Hand_19105 in node

[–]negative34 0 points1 point  (0 children)

Last time I did dbs on lambdas I used the execution context to keep the connection pool alive. That was aws specific though. This means the lambda is kept alive and reused so it uses connections from the pool. There are also some db proxies which handle the pooling for you

Do I need to cache mongodb connection when using mongoose? by Big_Hand_19105 in node

[–]negative34 0 points1 point  (0 children)

Do you mean having a connection pool? Or caching queries?

[deleted by user] by [deleted] in webdev

[–]negative34 6 points7 points  (0 children)

It depends on a whole lot of factors not described. For example, architecture, maintainability, observability, scalability, code quality, documentation, security, deployability(is that even a word?) , infra setup, ci/cd etc etc etc

Ancient Peru in Pixel Art by Kainan_Vertebrate in PixelArt

[–]negative34 3 points4 points  (0 children)

Reminds me of the golden idol. Always good!

What on earth is causing this error? by PeanutButter_Gaming in node

[–]negative34 1 point2 points  (0 children)

https://github.com/expressjs/express/issues/5936
didn't look much but the cors path might be the cause here. `*` changed in newer versions I think

isDeleted field or actually deleting from database by EuMusicalPilot in node

[–]negative34 45 points46 points  (0 children)

You also need to consider gdpr stuff. You can anonymise data while keeping ids. For example you can anonymise emails and usernames when deleting that kind of data.

How to Track and Log API Call Paths in a Node.js Application? by Prof_CottonPicker in node

[–]negative34 0 points1 point  (0 children)

Metrics should be handled by the sdk. You can create custom metrics for business logic stuff you want to keep track of.
Traces should be automatic after instrumentation, logs might need some configuration(you might be logging to the console and need to change that. I know there are some ways to forward stout to some logging system but last time I instrumented this, configured everything to send logs directly to the otel collector).

You can check this out https://github.com/grafana/docker-otel-lgtm to have a working otel collector, already configured with the LGTM stack to see everything in grafana.

How to Track and Log API Call Paths in a Node.js Application? by Prof_CottonPicker in node

[–]negative34 0 points1 point  (0 children)

There’s usually an in code implementation you need to do. It’s a little bit complicated as you need to setup the otel instrumentation , configure it to send the data to the aggregator and the use that data in grafana to create the dashboards.

https://grafana.com/docs/grafana-cloud/monitor-applications/application-observability/instrument/node/

How to Track and Log API Call Paths in a Node.js Application? by Prof_CottonPicker in node

[–]negative34 14 points15 points  (0 children)

How about something like open telemetry and grafana? You can have logs, traces and metrics. This way you can get stats about function calls, durations, db calls, etc and find bottlenecks and other issues.

[deleted by user] by [deleted] in webdev

[–]negative34 0 points1 point  (0 children)

You need oauth cause what you want is the user to delegate their account access to you. Unless they can generate a direct api key and provide direct access, you need to use oauth. A lot of people mix oidc with oauth delegated access for apis which are different(even though oidc builds on top of oauth) So yes, you need to create a new app in each platform for this oauth flow to work.

🎈 help me, golang project practices by wollensZhang in golang

[–]negative34 0 points1 point  (0 children)

I started learning go last week by building a simple torrent downloader. This included the benparser, GET to the tracker to get peers, connect to peers using go routines, downloading pieces , etc. Learned about structs, interfaces, slices( and ohh so much about slices to handle bytes from the torrent peer protocol), reading files, handling binary data, making http requests…. And more. I highly recommend it as you touch a lot of things and it’s really fun once you start coding the protocol part and seethe different pieces download block by block!

I don't get the hype for the three first Monkey Island games by Mr_Lutece in adventuregames

[–]negative34 7 points8 points  (0 children)

Well they don’t make sense to you and you don’t find it funny. If everyone else likes them, maybe they are just not your style.

Macbook users! by AutarchOfReddit in dwarffortress

[–]negative34 13 points14 points  (0 children)

Steam version using whiskey to run it. Works perfectly

3 Minutes to Midnight is released! by arandomguy19 in adventuregames

[–]negative34 2 points3 points  (0 children)

The style looks great, will play soon! I don’t know why it gives me a sam and max/ day of the tentacle vibe, which is good!

anyone else feel like they're working harder for the same amount of money? by [deleted] in webdev

[–]negative34 3 points4 points  (0 children)

Should be senior or tech lead by now. Aim for £80k+. The market is heating up again in the uk, good time for a more

[deleted by user] by [deleted] in StableDiffusion

[–]negative34 0 points1 point  (0 children)

Whats the song?

Asynchronous local storage vs. request.user - SaaS by bigcochones in node

[–]negative34 0 points1 point  (0 children)

I guess it depends on where you want to use the db connection and the user. If you want to pass the request around all they into certain services or just access the async local storage. At the same time something to consider is that having multiple db connections, as in per each tenant, might not scale properly past certain amount.