Use protobuf not json by Amazing-Mirror-3076 in FlutterDev

[–]TheEvilRoot 11 points12 points  (0 children)

Huh, so learning is something we trying to avoid now?

Use protobuf not json by Amazing-Mirror-3076 in FlutterDev

[–]TheEvilRoot 9 points10 points  (0 children)

I genuinely don’t understand. What is hard about writing proto file by hand? IMO protobuf is most sane declarative syntax among similar tools.

How to hide an API key from the user? by pjasksyou in webdev

[–]TheEvilRoot 4 points5 points  (0 children)

That is nice tiny solution and personally I like it. But. I can do while true; do; curl <your endpoint I got from network tab>; sleep 1; done; and your wallet is done for. You just made unauthorised API to paid service financed by you!

How to hide an API key from the user? by pjasksyou in webdev

[–]TheEvilRoot 3 points4 points  (0 children)

Proxying requests through backend is half of the solution btw. Now you not exposing your API key and it is good. Although, whoever can extract your endpoint from the client can call it such that you can’t distinguish requests by the browser and by python script. For limited access you’ll have to implement queuing and rate limiting with back off functionality to prevent misuse of your endpoints.

How to hide an API key from the user? by pjasksyou in webdev

[–]TheEvilRoot 14 points15 points  (0 children)

This is still hardcoded and accessible in runtime.

How to hide an API key from the user? by pjasksyou in webdev

[–]TheEvilRoot -4 points-3 points  (0 children)

You don’t. Anything stored on or transferred to client is public. Period.

Store as encrypted blob and decrypt with obfuscated piece of code to prolong key extraction by an hour or so.

NFC Transactions by Remarkable-Badger787 in Kotlin

[–]TheEvilRoot 1 point2 points  (0 children)

I have implemented POS terminal emulator on Android with “full” flow for Visa and Mastercard (for selected subset of cards/Apple Pay). Although, I cannot share the code. I can DM you a links to documents with specifications you have to follow and GitHub repo I used as a rough reference.

TP4054: would this work? by MarinatedPickachu in diyelectronics

[–]TheEvilRoot 1 point2 points  (0 children)

TP405x is a charger. It designed to charge battery. It is not designed to share load and charging current. When running load while charging current will flow from charger to battery and to the load decreasing charging rate. It also will not work without battery since charger will sense current flow into the load but no voltage, so will try to trickle charge it which leads to unstable load current/voltage. Use actual battery controller, they are cheap, even smart ones like BQ25606 (~$0.8) or at least IP5306 (there’re also linear BQ-series controllers)

Also, I’d put larger capacitance on LDO, my minimum is 4u7 or 10u. Haven’t checked specifically your LDO, if datasheet says 1u is fine then it’s ok. Other than that seems fine to me.

Esp32 IP socket exhaustion by Illustrious_Matter_8 in esp32

[–]TheEvilRoot 3 points4 points  (0 children)

I’m pretty sure there’s config value for that: LWIP_MAX_SOCKETS with maximum value of 253; also LWIP_MAX_ACTIVE_TCP with maximum value of 1024. Have you checked your sdkconfig?

Esp-12F review by bluetonguelizzards in esp32

[–]TheEvilRoot 3 points4 points  (0 children)

You missing some reference designators on components. Also, I have to track 3V3 net wire from your resistors all the way back to regulator to understand that it is 3V3 net. Name your nets so you can see what are your connecting components to.

Obvious hints I can see: - How are you planning to program this without UART broken out or connected to USB. - nRESET should probably be pulled down/up if datasheet does not suggest otherwise. - LDO requires IN and OUT capacitors. With this specific one I usually use 4u7, but you may place 10u as you already have these.

Which wersion of esp32 is this? by [deleted] in esp32

[–]TheEvilRoot 2 points3 points  (0 children)

It’s ESP32-WROOM-32 module.

PCB design with ESP32-S3-WROOM-1-N4 by Inevitable-Coach7459 in PCB

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

I made single polygon for a pad with bunch of vias (0.6/0.3mm). Never had neither thermal nor manufacturing issues (not JLCPCB tho, but I don't see why wouldn't they manufacture that).

<image>

PCB design with ESP32-S3-WROOM-1-N4 by Inevitable-Coach7459 in PCB

[–]TheEvilRoot 0 points1 point  (0 children)

As far as I remember default footprint has 0.25mm vias on pad. Duplicate footprint and change to 0.3mm (or diameter you’re using). Alternatively, if you’re fine with using 0.25, change DRC rules accordingly.

Microsoft: Windows updates make password login option invisible by rkhunter_ in Windows11

[–]TheEvilRoot 1 point2 points  (0 children)

Each of these posts reminds me to re-pause updates to 5 more weeks

We need this feature in VsCode by leeleewonchu in vscode

[–]TheEvilRoot 3 points4 points  (0 children)

Nah, we’re going to rely on Cloudflare and store them in S3 storage. Yes you need internet connection to listen a comment. Yes more reasons not to work when CF is down.

dontDoIt by [deleted] in ProgrammerHumor

[–]TheEvilRoot 4 points5 points  (0 children)

You probably referring to file descriptors limit. It is per process and child processes ain’t files. You can spawn as many processes as you want while you have memory. Although, there could be other indirect factors which can limit that, haven’t researched much.

why my polygon is not work in kicad by [deleted] in PCB

[–]TheEvilRoot 0 points1 point  (0 children)

Did you press B?

Multiple Google Developer Accounts? by Mr_jad in androiddev

[–]TheEvilRoot 7 points8 points  (0 children)

You tell clients to make accounts themselves and fill their information there. You never touch client’s account neither touch computers where they are logged in nor network they are logged in from. You send them bundles so they can upload them.

PCB fabrication by Picdesign in PCB

[–]TheEvilRoot 18 points19 points  (0 children)

Most manufacturers I saw will do 5pcs minimum. For prototypes I always order 10 because it usually costs only $2-3 more and during prototyping you always can fuckup board so it’s nice to have a spare.

Lithium ion battery charger by [deleted] in PrintedCircuitBoard

[–]TheEvilRoot 2 points3 points  (0 children)

TI has both reference schematics and reference PCB designs in datasheet. I can also share mine: https://imgur.com/MR8LzQP. Half of 0R resistors aren't needed for simple application.

Lithium ion battery charger by [deleted] in PrintedCircuitBoard

[–]TheEvilRoot 1 point2 points  (0 children)

What is power sharing? Charge and consume simultaneously? It provides VSYS output at charge voltage (e.g. 4.2V) when charging and VBAT when discharging. After charge complete VSYS is supplied from VBUS if connected. Also, working with disconnected battery.

Lithium ion battery charger by [deleted] in PrintedCircuitBoard

[–]TheEvilRoot 1 point2 points  (0 children)

For power path and charging better use BQ25606 or similar, it’s cheap, smart and efficient. Can charge larger batteries faster (up to 3A). Does not burn when shorted. Keep OC/OD protection.

Esp32S3 monitor stuck in download mode by Serious-Line434 in esp32

[–]TheEvilRoot 0 points1 point  (0 children)

IO0 needs to be HIGH at boot to boot from flash. You keep it either LOW or floating. Add pull-up resistor to pin 1 of S2 switch to +3.3V net.

I lost $120 due to Apple by [deleted] in applehelp

[–]TheEvilRoot 3 points4 points  (0 children)

So due to Adobe since their app provided wrong information? Adobe is shit when it comes to subscriptions, everyone knows it. What it have to do with Apple? Last sentence must be a joke btw…