Hacker News new | past | comments | ask | show | jobs | submit | srathi's comments login

Ublock origin is not able to filter out <dialog> elements without breaking scrolling and other buttons in most cases (depending on how the site is implemented). Is there a generic way to disable these without affecting the rest of the site?


Don't have a computer handy to try, but it can block elements right? What if you block simply dialog (without # or so, because it's not an ID but a tag name) on the desired domain?

Or a little userscript walking the DOM to find dialog elements and removes them. Or you could check if one can listen on them for show/open events, or hijack the show() method to do nothing

Lots of options I'd say

Not something I'd have in mind when using dialogs for legitimate purposes as a developer though. Don't wonder why you don't get my "do you really want to delete this item?" on my software when you block these altogether, but I guess you mean this for specific domains where it's used for ads (have yet to see dialog used for that, but no surprise that they'd exist)


It is fun to explore the Git internals! Some time back, I used it to learn Golang [1]. Two birds with one stone!

[1] https://github.com/ssrathi/gogit


Dubai has almost 90% of population as immigrants! TIL.


Shameless plug: I gave a tech talk on this at my last company, and implemented some of these in Golang as a learning exercise [0]. While it is not mandatory to know the internals, but doing so helps a lot when you occasionally encounter a git-gotcha!

[0] https://github.com/ssrathi/gogit


> fork() takes no arguments, and CreateProcess() takes about 48 billion arguments.

I chuckled!


Jokes aside, it's more apt to compare CreateProcess() with posix_spawn()[0].

[0] https://pubs.opengroup.org/onlinepubs/009695399/functions/po...


Shameless plug: I created a Golang utility to scrub passwords from a deeply nested struct, before logging, at Nutanix some time back [0][1]. We also run an automated test to try out all operations with a known password, and then ensuring that it is not present in any of the log files.

[0] https://github.com/ssrathi/go-scrub [1] https://www.nutanix.dev/2022/04/22/golang-the-art-of-reflect...


Shameless plug: I created a Golang utility to scrub passwords from a deeply nested struct at Nutanix some time back [0]. A post describing it in detail [1].

[0] https://github.com/ssrathi/go-scrub [1] https://www.nutanix.dev/2022/04/22/golang-the-art-of-reflect...


Quantum - by Manjit Kumar, is a very accessible book covering the history of quantum mechanics.


Willow.tv is a major culprit here. There is no cancellation button on the website, and you are required to email a support person multiple times (back and forth with retention offers) for cancellation. They are in violation of CA law that prohibits this behavior.


Quantum by Manjit Kumar is my favorite. It is a novel like walkthrough of quantum development over the years.


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: