HackerTrans
TopNewTrendsCommentsPastAskShowJobs

cantours

no profile record

comments

cantours
·2 ปีที่แล้ว·discuss
Inputs which is the default in f0 series. Structure is:

esd cell -> optional pull ups/down -> schmitt trigger.
cantours
·2 ปีที่แล้ว·discuss
Pretty much all ICs these days have builtin ESD protection which usually involves current steering diodes to supply rails.

So if you limit the input current (typically <5mA, and assuming the steered-to rail uses at least 5mA to sink it) it will survive any voltage. (Of course if it's a low power design or the device is off this wont work that well, then you want external clamping)

I have tested 24V AC applied to an stm32f0 pin with a 10K series resistor and it survives that indefinitetly.
cantours
·2 ปีที่แล้ว·discuss
>For projects of any significant size, you're going to run into some constraint which requires you to use `make` differently than you have before.

That's precisley why official/standard build systems suck, they are extremly cumbersome to wrangle when you go off the beaten path.

So the irony is that standard build systems/package manager are whats good for hello worlds, non-trivial programs require custom build steps.

Just let me write a build.bat/build.sh per platform/compiler/configuration that are explicit and precise in compiler flags, paths, output files, pre/post processing, etc so nothing magical is happening under the hood.
cantours
·2 ปีที่แล้ว·discuss
Google and Apple are just a bunch of scrappy teams trying to work together on insanely massive and bloated code bases. Numbers of bugs scale with lines of code.

Small scrappy team writing simple and consice code from scratch is likely to produce fewer bugs than enterprisey monstrosities.
cantours
·2 ปีที่แล้ว·discuss
You can only acquire billions of dollars if you cut corners and cheat as much as possible.
cantours
·3 ปีที่แล้ว·discuss
>idiot-tier youtubers

His youtube is cringeworthy sometimes, but he is actually a serious scientist with a phd and some pretty decent cred in chemistry.
cantours
·3 ปีที่แล้ว·discuss
Why isn't fractional scaling supported from day 1? I mean if you're going to do dpi scaling in the first place, why in the world would you restrict it to whole numbers only? Is it some insane hardcoded hack or something?

Scaling with changing dpi is the easiest thing in the world. Anyone who has written a program with some kind of 'zoom' feature (be it a game, image editor, image viewer, etc) knows how easy it is.
cantours
·3 ปีที่แล้ว·discuss
GDI works fine for dpi scaling.

  handle WM_DPICHANGED
  recreate fonts with actual_dpi/reference_dpi scale factor and send WM_SETFONT
  and apply scale factor to all DeferWindowPos() operations.