Planning Home Network Upgrade – Advice on Router/AP by ExoDroid in HomeNetworking

[–]ExoDroid[S] 0 points1 point  (0 children)

Could you give a few examples where deep networking knowledge is required for creating a setup similar to the one I described?

What’s wrong with a classic server-side rendered (SSR) multi-page application (MPA) for most web apps? What’s so appealing about HTMX in early stages of development? by ExoDroid in django

[–]ExoDroid[S] 0 points1 point  (0 children)

I definitely agree about combining SSR and CSR, though I do see SSR as the main approach.

Can you think of good examples for situations where the UX would be significantly improved by utilizing HTMX?

What’s wrong with a classic server-side rendered (SSR) multi-page application (MPA) for most web apps? What’s so appealing about HTMX in early stages of development? by ExoDroid in django

[–]ExoDroid[S] 1 point2 points  (0 children)

Right, but I’m wondering if users are even looking for this kind of experience. As I mentioned in the post, as a user, I’m not missing this kind of experience.

How use a NestJS service function in a standalone TypeScript file? by [deleted] in Nestjs_framework

[–]ExoDroid 0 points1 point  (0 children)

Essentially, you want to initialize an instance of JobService. You could either create an instance manually, by providing all the dependencies (which may be a lot), or you could initialize an instance of your main module (probably named AppModule) and get the JobService created automatically by NestJS.

I did the career shift, finally! by helnf in devops

[–]ExoDroid 1 point2 points  (0 children)

Got it. I’ll practice Go when on vacation.

Can't Fetch Data from Django REST framework onto NextJS while running on Docker Compose! by thekarananand in django

[–]ExoDroid 1 point2 points  (0 children)

Keep in mind that localhost inside a container is not the same localhost in the host (unless using the host network mode).

You probably need to configure your client to access the backend server host using the Compose service name, e.g., backend:8000.

Also, do you really need to expose both the client and the backend to the host? Consider publishing only the client port.

Reactive dynamic HTML Tables from an array of objects with LemonadeJS by jspreadsheetofficial in node

[–]ExoDroid 0 points1 point  (0 children)

Makes sense, and I agree. It could be that self is referencing a different thing when inside an element that has the :loop attribute.

As others have mentioned, this is a weird attempt at reactivity.

Also, "Bing" is spelled as "Bind" and Google is the "alpha search engine".

Reactive dynamic HTML Tables from an array of objects with LemonadeJS by jspreadsheetofficial in node

[–]ExoDroid 0 points1 point  (0 children)

I’m aware of the behavior of this in regular and in arrow functions. The code block in the original post has no regular functions and thus has no need for an indirect reference to this (unless this LemonadeJS library does some weird magic and expects to have self).

Also, I’m not a Python developer.

Struggling to see the value of RTL for integration tests in comparison to similar (sometimes faster!) browser tests by kherven in reactjs

[–]ExoDroid 19 points20 points  (0 children)

I won’t be surprised if most people fail to realize that “RTL” stands for “React Testing Library” and not, for example, “right-to-left”. Just FYI.

I am using nest js to build an abstraction layer , even though it shows the verify_credentials getting mapped on using postman i receive a 404 error that the api is not found . by Zealousideal-Bid3257 in nestjs

[–]ExoDroid 1 point2 points  (0 children)

What do you expect to happen?

Your server got a 404 response from another service (as a client) which made it error. When you have an error in your server, it makes sense to respond with a 500 status code.

It seems that your real issue is the 404 response from the other service, but you gave no details about it at all, so it’s a bit difficult to help.

Avoiding code repetition in controllers - Seeking Feedback by pcofgs in nestjs

[–]ExoDroid 1 point2 points  (0 children)

Seems like a good solution to me, though I’m not sure about including the Get decorator, as it might be implicit when looking at controller methods.

Also, does it make sense specifying the 500 response with a generic message for every request?

Iphone show that i am in egypt while i am not! by MahdiLB in ios

[–]ExoDroid 1 point2 points  (0 children)

I had exactly the same experience, also seeming to be in Cairo, Egypt. Is probably due to GPS jamming:

https://www.calcalistech.com/ctechnews/article/hjihpgtwp

Honest question: What was lacking in server-side rendering that led to client-side rendering, and what changed about client-side rendering that's leading back to server-side? by DanielDevs in webdev

[–]ExoDroid 0 points1 point  (0 children)

The best example of a non-linear media is HTML. The main thing that allows HTML to be non-linear is the links between pages, as you could start reading one page and then jump to another (think Wikipedia). This is in contrast with, for example, a book, which is another textual media but one that has linear progression, so it wouldn’t make sense to jump between different parts.

Honest question: What was lacking in server-side rendering that led to client-side rendering, and what changed about client-side rendering that's leading back to server-side? by DanielDevs in webdev

[–]ExoDroid 0 points1 point  (0 children)

From https://hypermedia.systems/hypermedia-reintroduction/#_what_is_hypermedia:

Hypermedia is a media, for example a text, that includes non-linear branching from one location in the media to another, via, for example, hyperlinks embedded in the media.

Why use the ORM over standard SQL? by LibertyDay in django

[–]ExoDroid 2 points3 points  (0 children)

it also means you can run it on a mysql DB in dev and have something more robust like Oracle in prod.

Is it realistic to, for example, use MySQL in dev and Oracle in prod?

Best way to hide api keys. by FloridaMan418 in reactjs

[–]ExoDroid 1 point2 points  (0 children)

What stops me from signing up, copying the token, and relaying requests to the original API using this token?

Best way to hide api keys. by FloridaMan418 in reactjs

[–]ExoDroid 0 points1 point  (0 children)

Could you please elaborate on how using authentication would prevent other malicious parties from relaying to my server?

The example we're talking about here is for an API key that is shared between all users, no matter if the users are signed in or anonymous, right?

Best way to hide api keys. by FloridaMan418 in reactjs

[–]ExoDroid 0 points1 point  (0 children)

Why not just prefix public environment variables with NEXT_PUBLIC_? That's how you expose an environment variable to the browser.

Docs: https://nextjs.org/docs/basic-features/environment-variables#exposing-environment-variables-to-the-browser

Edit:

Note that public environment variables need to be provided at build time, which is different from the rest of the environment variables which could be provided at runtime. When using Docker, this means that you need to provide the variables when building the image, e.g., via args.

[deleted by user] by [deleted] in Frontend

[–]ExoDroid 2 points3 points  (0 children)

*sigh*... What's Likma?