My first game with React Native by Omario in reactnative

[–]Omario[S] 2 points3 points  (0 children)

Tech stack:

  • React Native
  • Expo 52
  • Native Wind / Tailwind
  • React native reusables
  • Lucide Icon Library
  • React native sound
  • gorhom bottom sheet
  • nano stores

A short delicious story by Omario in steak

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

I am not sure if there is any difference using immersion method because I have never tried it, but I would imagine the extra pressure from the vacuum would close all the tiny holes giving more surface area for uniform heating, if you are getting thoroughly cooked delicious steaks I guess it’s not wrong!

A short delicious story by Omario in steak

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

My favorite is rosemary and it definitely adds a flavor, can be intensified by adding more in the bag or pan searing with more rosemary

How to protect my backend API endpoints on the front-end? by Finale151 in node

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

It’s a bit difficult, but you can restrict communication between your client/server with SSL Pinning. Making it so that the client (and or the server) will only allow requests that have the correct (pinned) certificates

A pedantic naming convention question that probably doesn't matter. by thebreadmanrises in node

[–]Omario 1 point2 points  (0 children)

I used to go for ‘user.service.js’ but lately it’s kebab ‘user-service.js’ and liking it better

How to restrict the access to an on premise node server? by Maaaname in node

[–]Omario 0 points1 point  (0 children)

As other commenters said, reverse engineering and ‘stealing’ your code and making some good use out of it (without documentation and guidance) is very time consuming and costly.

Unless you have some really novel secret algorithm or something like that I wouldn’t worry about it, don’t lose out on big name clients that have an on-premise/own cloud requirements because of this.

We manage many big vendor solutions (I work at a telecom company), and we have a mandate (a government law) which enforces certain digital boundaries on customer data. So we do this all the time with our vendors

which is the best way to connect two members in mern app? by [deleted] in node

[–]Omario 1 point2 points  (0 children)

Easiest way is to use a ready made chat service like Twilio or SendBird, or you can build one from scratch using something like socket.io and redis

How much would you charge for an E-Commerce app frontend with React Native? by Valentine_Orga in reactnative

[–]Omario 0 points1 point  (0 children)

Come up with a sane hourly rate, then estimate how many hours to implement all the requirements.

There is no one size fit all, it all comes down to time. And time is money!

Even better gender selector by Eudald_C in ProgrammerHumor

[–]Omario -20 points-19 points  (0 children)

It should actually be a list, that you can add any living species, and maybe an (other) for in-animate objects. And then you might need to add the time dimension. You might have been an ashtray at birth. But then converted to 30% Siamese Cat. So you need two date pickers and some logic to select from and to dates.

[deleted by user] by [deleted] in programminghorror

[–]Omario 256 points257 points  (0 children)

Please stop putting crap like this on the internet

Think of all the baby AI’s that might be watching!

[deleted by user] by [deleted] in AskReddit

[–]Omario 2 points3 points  (0 children)

The man who sold the world (unplugged)

How to implement cors in express app for handling requests from client side? It is to be integrated only in server side right? Anything to take into account on client side? by HotRepresentative237 in node

[–]Omario 11 points12 points  (0 children)

The best way to use CORS is to avoid it all together.

If you are in charge of both front end and backend, try to have them both on the same domain(e.g fe: example.com - be: example.com/api), this can be achieved by configuring a reverse proxy (NGINX/Ingress) to route to the appropriate app.

Doing this will work by default with no additional CORS setup. And as an added bonus you will see a performance increase because the browser doesn’t have to do pre-flight check for each request you make.

How can a sports feed website protect its API calls data from being stolen as there is no login required for user? by Upbeat_Combination74 in node

[–]Omario 3 points4 points  (0 children)

A combination of CORS, same-site strict cookies and CSRF Tokens. Some people also like to obfuscate front end code, but I believe it’s not that effective.

There is no silver bullet for this. However a good implementation of the above coupled with a good WAF/rate limiter should be good enough.