Readit News logoReadit News
G_o_D commented on Is it possible to allow sideloading and keep users safe?   shkspr.mobi/blog/2025/08/... · Posted by u/ColinWright
G_o_D · 7 days ago
I create apps just for myself, just started learning, self taught, not a student taking programming course in university, not professional

Apps created by me for my routine,

Does that mean i would not be able to install my apps ??

G_o_D commented on Debounce   developer.mozilla.org/en-... · Posted by u/aanthonymax
G_o_D · a month ago
Debounce -> Like when we throw a ball once on ground, but it keeps bouncing, To prevent that

Human interaction with circuits, sensors, receptors, occur like that

When we click a keyboard key or switch circuit switch the receptors are very sensitive

we feel we did once but during that one press our fingers hands are vibrating multiple times hence the event get registered multiple times due to pulsating, hence all after first event, the second useful event that can be considered legitimate if the idle period between both matches desired debounce delay

in terms of web and software programming or network request handling

it is used as a term to debounce to push away someone something aggresive

Example wise

a gate and a queue Throttling -> gate get opened every 5 min and let one person in, no matter what

Debounce -> if the persons in queue are deliberately being aggressive thrashing at door to make it open we push them away Now instead of 5 min, we tell them you have to wait another 5 min since you are harassing, if before that they try again, we again tell them to wait another 5 min Thus debounce is to prevent aggresive behaviour

In terms of say client server request over network

We can throttle requests processed by server, let say server will only process requests that happen every 5 min like how apis have limit, during that before 5min no matter how many request made they will be ignored

But if client is aggressive like they keep clicking submit button, keep making 100s of requests that even after throttling server would suffer kind of ddos

so at client side we add debounce to button click event

so even if user keep clicking it being impatient, unnecessary network request will not be made to server unless user stop

G_o_D commented on A proposal to restrict sites from accessing a users’ local network   github.com/explainers-by-... · Posted by u/doener
G_o_D · 3 months ago
Browser should just allow per-site settings or global allow/deny all to allow deny permission to localhost

So thats user will be in control

cant just write a extension that blocks access to domains based on origin

So user can just add facebook.com as origin to block all facebook* sites from sending any request to any registered url in these case localhost/127.0.0.1 domains

DNR api allows blocking based on initiatorDomains

G_o_D commented on A proposal to restrict sites from accessing a users’ local network   github.com/explainers-by-... · Posted by u/doener
G_o_D · 3 months ago
Cors doesnt stop POST request also not fetch with 'no-cors'supplied in javascript its that you cant read response that doesnt mean request is not sent by browser

Then again local app can run server with proxy that adds adds CORS headers to the proxied request and you can access any site via js fetch/xmlhttprequest interface, even extension is able to modify headers to bypass cors

Cors bypassing is just matter of editing headers whats really hard to or impossible to bypass in CSP rules,

Now facebook app itself is running such cors server proxy even without it an normal http or websocket server is enought to send metrics

Chrome already has flag to prevent locahost access still as said websocket can be used

Completely banning localhost is detrimental

Many users are using self hosted bookmarking, note app, pass managers like solutions that rely on local server

G_o_D commented on Show HN: PunchCard Key Backup   github.com/volution/punch... · Posted by u/ciprian_craciun
G_o_D · 3 months ago
Plus just place punch card on paper apply a paint with brush of better spray and you printed your holes will be printed on paper share anyone (Softcopy ツ)

alternatively for fun use photographic chemical film paper and dark room, place plate on light source flash and capture holes on film

Steganography ideas Another fun-> divide cut plate into puzzle give pieces to different people only when puzzle combined reveals full datà

Another -> Have two or more plates with extraa binary bits holes and masking plates, when they are superimposed/stacked in proper order or aligment then uncessary bits will be masked revealing useful bits

Deleted Comment

G_o_D commented on Show HN: I created snapDOM to capture DOM nodes as images with exceptional speed   github.com/zumerlab/snapd... · Posted by u/tinchox6
G_o_D · 4 months ago
It doesnt load, snapdom dont appear in my devtools had to copy paste script

Plus it just struck at pending promise dont work

Plus css is messed up, i cant call it a snapshot, if it dont look same

domtoimage lib works for me and is fast whole html body node captured within second

G_o_D commented on Show HN: NoteUX – Fast and minimalist note-taking app   noteux.com/... · Posted by u/ifrosted
G_o_D · 5 months ago
data: text/html, <html contenteditable>
G_o_D commented on Tiniest Flying Robot (Wingspan <1cm) Soars Thanks to Magnets   spectrum.ieee.org/flying-... · Posted by u/bookofjoe
G_o_D · 5 months ago
Just place magnetic strips coil inside outer ring and wings connected through inner ridge with tinient ball bearings that allows inner wing fan to move and copper coils inside fan design and they will start deflecting spinning and it will lift up

u/G_o_D

KarmaCake day8October 4, 2024View Original