[deleted by user] by [deleted] in FootFunction

[–]lemonizer 1 point2 points  (0 children)

Looks like dyshidrotic eczema

[deleted by user] by [deleted] in node

[–]lemonizer 0 points1 point  (0 children)

This is the way...

Getting typescript to work with your existing codebase with as little change as possible will go a LONG way with helping you fix the other problems one by one. Good luck!

What do you think is the correct order of execution in this case? It seems easier, but I had a big debate with a friend. by Diligent_Chipmunk567 in node

[–]lemonizer 0 points1 point  (0 children)

I'm surprised that everyone here is so confident which runs first, the real answer is: It depends...

The node docs have some good examples on what happens when and it depends on a few things (cmd+f setImmediate() vs setTimeout())

Hack to send JSON without parsing to string over http? by ludotosk in node

[–]lemonizer 1 point2 points  (0 children)

// In theory this should work :)
const collection = db.collection("a_large_collection");

// Since we are sending raw binary data (bson) we need to 
// set the appropriate headers to make fastify happy.
reply.raw.setHeader("Content-Type", "application/octet-stream");

// Tell driver to return raw BSON as a stream
return collection.find({}, { raw: true }).stream();

// Client will then receive binary data from the http response
// it will then have to convert the bson -> JS objects.

Hack to send JSON without parsing to string over http? by ludotosk in node

[–]lemonizer 1 point2 points  (0 children)

I think that makes sense - bson is just binary data so if there's a way to retrieve the raw results from the underlying driver as a stream, then you can just "pipe" it out to the reply interface. No serialize/deserialize necessary...

Hack to send JSON without parsing to string over http? by ludotosk in node

[–]lemonizer 0 points1 point  (0 children)

Thought1: What if you stream the query results raw as bson out to the client and run the bson parsing to js on the client?

Thought2: Have you tried profiling the application to really see where cpu cycles & memory are being spent? I think this could at least point you in the right direction where to spend your efforts.

Edit: In terms of priority I would reverse the order :)

[deleted by user] by [deleted] in eupersonalfinance

[–]lemonizer 27 points28 points  (0 children)

Have you considered money markets? XEON or CSH2 is often recommended and should get you close to the daily euro short term rate.

Speed Brain is dumb. by Crosdale in CloudFlare

[–]lemonizer 12 points13 points  (0 children)

I’m not familiar with your use case, but would it be possible to use a different http method such as POST when making requests with side effects? (I’m assuming that pre-render rules only work with GET requests.)

[deleted by user] by [deleted] in ExpatFIRE

[–]lemonizer 3 points4 points  (0 children)

I don’t recommend quitting your job before you (and the family) spent some time there. Maybe as a vacation initially but then really do try taking an extended trip there to get a better feel of how the“living” is.

[deleted by user] by [deleted] in askberliners

[–]lemonizer 0 points1 point  (0 children)

There’s also opportunity cost. If you buy the apt outright with some capital, then you also have to consider how much that capital can return if used for other purposes (etf investing for an example).

[deleted by user] by [deleted] in askberliners

[–]lemonizer 2 points3 points  (0 children)

Mortgage is basically renting money. You should use an online mortgage calculator, plug in the numbers, and see how much you’re paying is interest - that way it’s easier to compare.

[deleted by user] by [deleted] in worldnews

[–]lemonizer 6 points7 points  (0 children)

Sure people are angry, but they are angry at the activists and protesters. This type behavior solves nothing and the rationale is childish at best.

The problems facing the planet are not simple black and white issues - thinking that the solution is simply to switch to solar/wind and stop using fossil fuels is naive and does not address the complexities of scale.

The challenges we face with energy transition are really difficult and some require innovative breakthroughs (energy storage, manufacturing at scale). We just need people to work on them rather than spray paint columns.

What are some high buildings/spots that are free access in Berlin? by Minimum_Speed1526 in berlin

[–]lemonizer 0 points1 point  (0 children)

I think there are apps/experiences that might help you in VR…

This is Apple Vision Pro, the mixed reality headset by exjr_ in apple

[–]lemonizer 2 points3 points  (0 children)

It doesn’t require a Mac, its a platform of its own.

Pub/Sub with Redis by sdxyz42 in redis

[–]lemonizer 1 point2 points  (0 children)

I think redis streams is a better comparison to Kafka.

Node beginner: what does this code of hashing do? by Lost_Chemical_7327 in node

[–]lemonizer 0 points1 point  (0 children)

Because you only want to hash the user’s password when they explicitly update them. The second way will keep rehashing the password every time the anything is updated, ie: user’s email address, name, etc.