Earlier quoted context omitted.
Not long ago, the economy was largely fueled by slavery. Yet we got rid of that.
Not exactly Godwin’s law, but pretty close. Comparing advertising and marketing to the ownership of human beings? Slavery infringed on the inalienable of human beings, the existence of advertising doesn’t take away my freedom or potentially subject me to beatings. It’s a ridiculous comparison. I am not a friend to intrusive ad-tech, but making a moral equivalence to slavery is to trivialize slavery. It’s like compari…
BeGoneAds – A Python script that blocks ads by installing common hosts files
81–90 of 97 posts
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#82Earlier quoted context omitted.
Things you get with systemd that you don't get with cron unless you implement them in the script. * Not running if the network is down. * Not running if the download path isn't available. * Running if the machine was off during the scheduled time. * Monitoring and retry logic. * Logging to syslog. * Resource constraints. * Random wait. It ends up being a lot of code factored out of the actual application.
so instead of code in one place you have it in 2?
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#83Reading the code one clearly sees why Python is so well suited for these kinds of applications, one-shot script executables: Really nice string ops, regex, file io etc. One of my favorite languages. The other is C# for everything else, that Python is not that suitable for: Huge complex codebases, type safeness, more strict performance requirements etc. Specially the static typing. The dynamism and lack of type annota…
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#84Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#85Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#86Browsers cache and use outside DNS servers despite the hosts files. Chrome and sometimes Safari don't really honor the hosts files 100% of the time. Every once in a while I google around to try and restore my control, try to tweak my browser settings but I have yet to find anything that makes using hosts files bulletproof.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#87Python scripts to modify system files make me a little skittish, even with source code available. I think I would just as soon grab the hosts file from https://www.someonewhocares.org/ and drop it in myself.
Why?
1. What is so bad about python in specific?
2. If you worry about root privileges, required for modifying the host file, you can use app armor to put the thing on a leash
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#88Python scripts to modify system files make me a little skittish, even with source code available. I think I would just as soon grab the hosts file from https://www.someonewhocares.org/ and drop it in myself.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#89Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#90I'll be the first to admit that the existing advertising ecosystem is broken, primarily due to misaligned incentives across the board. But, given a choice, would you rather have a clearly labeled thing that you know is an ad transparently trying to influence you or a sneaky human billboard, err "influencer" coming up to you with an agenda along with tons of product placement in whatever you watch/read/listen to?
There's no either/or decision to be made here. You get compromised, paid for content with our without ads as well. Critical thinking I'd a requirement always.