Better HN
topnewbestaskshowjobs
Log inSign up

LinuxBender

57,650 karma · joined Jun 16, 2015 (11y ago) · 19,241 submissions

I am not for everyone. To ignore me in uBlock Origin, add to "My filters":

   news.ycombinator.com##tr.athing.comtr:has(a.hnuser):has-text(/\bLinuxBender\b/)
For HN usage questions see https://github.com/minimaxir/hacker-news-undocumented for HN tips (not my repo)

    (\_/)
    (='.'=)
    (")_(")
Submissions

9931.

Biden considers removal of Trump-era China tariffs to ease inflation(theregister.com ↗)

9 points · by LinuxBender · 4y ago · 5 comments

9932.

Three 'immortal' creatures that have fascinated scientists for decades(bbc.co.uk ↗)

2 points · by LinuxBender · 4y ago · discuss

comment 4y ago · link · parent

I suppose one could do this but then each OS will have to set flags on the browser executable and there is a whole can of security worms that opens. In Linux one could use

    sudo setcap cap_net_raw,cap_net_admin=eip /usr/lib/firefox/firefox
This could and probably should be automated in firejail or bubblewrap rather than the installer. Does this exist for Windows or Mac?

If using AppArmor or SELinux rules would need to be created unless Firejail is managing the rules on the fly. Then the browser would need to test for the capabilities and give some meaningful log in the web console because a way to debug this is considered good ettiquite. Then one would need a library or API in the browser that knows how to open raw sockets which means getting all the major browser developers to agree on a standard.

Thinking long term there are going to be security auditing tools that will detect the binary has non standard setcap modes meaning that browser developers would have to reach out to all these companies to get on the same page otherwise corporations will have some knee-jerk reactions.

comment 4y ago · link · parent

Have the authors tested this addon [1] for mitigating the vulnerability in Firefox and the Firefox forks?

[1] - https://addons.mozilla.org/en-US/firefox/addon/css-exfil-pro...

comment 4y ago · link · parent

Anecdotally in support of the article a friend of mine was a model and obtained what I can only describe as hideous tattoos all over her body that forced her out of modeling. She was indeed in a highly abusive relationship even by law enforcement standards. I'm happy that she escaped that mess but now has a tattoo head to toe to remind her of it.

There are some places that this theory probably breaks down in some way? For example everyone on "The Max" in Portland Oregon knew I was not from there for a lack of tats. There are some parts of Mississippi that people without tats will also stand out. Most of the places I can think of where I saw more tats than not were places of poverty, highly artistic people, very socially liberal. Most of these places also had lot of biker bars, night clubs, good music and good food.

comment 4y ago · link · parent

Oh I guess not. It was a big promo and was pushed as if they were "a new thing" but it seems that must have been a marketing thing. This was in the 1980's. Thankyou for the clarification.

comment 4y ago · link · parent

I had no idea Robertson still existed. I received a box of them for free when they were [Edit] being pushed in the 80's and loved them. The screw would stay on the bit no matter what angle I held the drill which made putting screws into hard to reach places super easy. No need for magnetic bits or other tricks. The local stores only carry Phillips, Hex and Torx so I buy Torx for the smaller screws and Hex for the bigger fence post screws.

comment 4y ago · link · parent

My list of mistakes I learned from would be too large for HN. I would only add that you may wish to also ask on StackExchange after lurking a bit.

[1] - https://parenting.stackexchange.com/

9939.

Will cloud giants drive colos off a financial cliff?(theregister.com ↗)

3 points · by LinuxBender · 4y ago · discuss

comment 4y ago · link · parent

Those enjoying them aren't gonna wanna talk about them much for fear they get ruined by strangers who "know whats best."

This is absolutely a thing. I have servers hosted on my local tiny ISP that only permit my local ISP's CIDR blocks as there is really no need for others to access them. It's literally for the local community. I might set up a VPN endpoint for people that travel some day.

9941.

Russias Super EMP Weapons Explained [video](youtube.com ↗)

2 points · by LinuxBender · 4y ago · discuss

comment 4y ago · link · parent

Have you tried any of the examples on serverfault.com? [1] There are a few incantations that match what I think you are doing. There are also some examples on haproxy.org [2] Here [3] are some examples on stick-tables. And finally here [4] are some examples on github of different ways to rate-limit in haproxy.

[1] - https://www.google.com/search?q=site%3Aserverfault.com+hapro...

[2] - https://discourse.haproxy.org/

[3] - https://docs.haproxy.org/2.6/configuration.html#4-stick-tabl...

[4] - https://gist.github.com/procrastinatio/6b6579230d99be5bfa26d...

9943.

Microsoft gives partners power to change privs on customer systems without perm(theregister.com ↗)

9 points · by LinuxBender · 4y ago · discuss

9944.

China attack not imminent, but US watching closely, says Gen Milley(bbc.co.uk ↗)

6 points · by LinuxBender · 4y ago · 1 comment

comment 4y ago · link · parent

I love David Mitchell's rants. My favorite is his rant on tax avoidance. [1]

[1] - https://www.youtube.com/watch?v=m2q-Csk-ktc

comment 4y ago · link · parent

If it is not already I would expect many organizations in the US and EU to buy and deploy these systems, assuming this is not already the case. There are already LED streetlamps that double as cameras and microphones to do machine learning on the public in San Diego, California. [1]

My limited understanding is that China may have been buying all the DNA data from all the DNA/ancestry sites and there are plans to gather IRIS data from VR headsets. I do not have links for this and it's leaked rumors which may or may not be true.

[1] - https://www.smartcitiesdive.com/news/san-diego-faces-lawsuit...

9947.

Why Seaweed Could Be the Future of Plastic [video](youtube.com ↗)

1 points · by LinuxBender · 4y ago · discuss

comment 4y ago · link · parent

That's easy enough to simulate on Linux if you want to try. Replace eth0 with your wan interface. Re-paste the "del" lines to clear the added latency. If testing this on a remote host I would suggest adding a cron job to run the "del" lines every 10 minutes. I am typing this from memory so it may not work quite right. Use "tc -s -p qdisc" to get the packet statistics. All of these commands need to be run as root or with sudo.

    # outbound qdisc
    tc qdisc del dev eth0 root    > /dev/null 2>&1
    tc qdisc del dev eth0 ingress > /dev/null 2>&1
    tc qdisc add dev eth0 root netem delay 250ms 20ms

    # inbound qdisc
    modprobe ifb numifbs=1 && ip link set dev ifb0 up
    tc qdisc del dev ifb0 root    > /dev/null 2>&1
    tc qdisc del dev ifb0 ingress > /dev/null 2>&1
    tc qdisc add dev ifb0 root netem delay 250ms 20ms
250ms 20ms means add a latency of 250ms with a variability of 20ms. This test will break at some point but one could test the impact of this using a speed test [1][2]

[1] - https://www.dslreports.com/speedtest#

[2] - https://fast.com/

9949.

Could US-Supplied Nasams Protect Kyiv, Ukraine from Russian Missiles? [video](youtube.com ↗)

1 points · by LinuxBender · 4y ago · discuss

9950.

WHO calls for ‘urgent’ action to stem monkeypox spread in Europe as cases surge(youtube.com ↗)

22 points · by Bender · 4y ago · 10 comments

comment 4y ago · link · parent

For what it's worth, I've always seen things like oomd and OOM score adjustments as clunky work-arounds for preventable problems. The default kernel settings promote memory over-subscription and I totally get why they do it, but one can disable that behavior at the risk of applications not launching while preventing data loss from vmscan initiating OOM kills.

A few of the settings will vary based on the amount of RAM one is willing to commit to the kernel and prevent user applications from using.

Examples only, please do not use these in /etc/sysctl.conf without first reading and understanding the documentation. [1]

    vm.overcommit_ratio = 0
    vm.overcommit_memory = 0
    vm.swappiness = 150
    vm.admin_reserve_kbytes = 256000
    vm.user_reserve_kbytes = 131072
    vm.min_free_kbytes = 768000
The last 3 numbers should be adjusted based on the memory in ones workstation or laptop. Redhat and Debian have formulas one can use to find the optimal number but I do not have the links handy. I set them really high to prevent user applications from spawning if memory is low. For example, on a server with 512GB of ram I set the min_free to 4GB.

Swappiness range is 0 to 200. Higher will start swapping earlier but in reality this should rarely occur if the system was configured with the correct amount of RAM for the machines intended usage. The rationale behind setting this high is to reduce the risk of a race condition where inode or dentry cache is not evicted fast enough.

Overcommit_memory 0 does not actually disable overcommit. That setting is 2 to disable entirely. The setting of 0 implements a simple formula ram+swap*{ratio}. Setting to 1 will always permit over-allocation.

One can also use cgroups and/or containers to put boundaries around application memory use.

More details are available on kernel.org [1]

[1] - https://www.kernel.org/doc/Documentation/sysctl/vm.txt

comment 4y ago · link · parent

I read this article to imply that because I have no trespassing signs that I am a racist and I should be letting random people wander onto my property? I so I disagree as would my highly diverse friends. My signs are to provide legal boundaries of protection for my family and horses. Criminals do not read signs but lawyers and the Sheriff absolutely do.

I should add that there are 18 million acres of BLM land for people to wander and explore freely in my state along with a couple of the largest national parks in the country. I doubt any one human could explore all of it in their lifetime. The public land contains some of the most incredible wilderness and scenery. There is no need for anyone to be wandering onto my flat boring horse pastures.

9953.

Insufficiently protected credentials vulnerability in fixed in curl 7.83.0(packetstormsecurity.com ↗)

1 points · by LinuxBender · 4y ago · discuss

9954.

PHP Library Remote Code Execution(packetstormsecurity.com ↗)

1 points · by LinuxBender · 4y ago · 1 comment

9955.

2050 carbon emission goals need nuclear to succeed(theregister.com ↗)

6 points · by LinuxBender · 4y ago · 1 comment

9956.

Cyberattack shuts down unemployment, labor websites across the US(theregister.com ↗)

3 points · by LinuxBender · 4y ago · discuss

comment 4y ago · link · parent

I access Reddit through the Teddit [1] proxies so my answer may not be entirely useful. Anecdotally I see the times for the proxies to fetch a Reddit thread appears to be getting progressively slower but that could also be them rate limiting the proxies for all I know.

[1] - https://addons.mozilla.org/en-US/firefox/addon/reddit-to-ted...

comment 4y ago · link · parent

I too would love to see some lab testing. The data from Dark Iron Diesel is probably sufficient for fuel economy and my own personal anecdotal data on deleting the EGR confirms in my mind the damage done to the engine oil and thereby the engine from additional friction is quite noticeable. With the EGR my engine oil is black before 3k miles. Without it the viscosity and color are dramatically different. I suppose I could send oil samples off to a lab but it would just confirm what I can visually see. I also had to rebuild my engine at 250k miles. I am curious to see how many more miles I can get without the EGR.

You know, what auto manufacturers spend a lot of time and money doing.

I do not believe I would trust anything coming from manufacturers. They have a serious vested interest in people using more fuel, adding corrosive materials to their oil, burning up engines and buying new vehicles. The oil industry would also love to see people using 30%+ more fuel and having to change their engine oil on a very regular basis to compensate for the damaging highly abrasive exhaust being blown back into the crank case.

I think it might be a challenge to get some empirical data for the other numbers on diesel engines as the locations that have smog checks and bi-annual testing will not have many people deleting their emissions systems. Conversely locations that do not test such as my state will not have the necessary smog testing equipment to get accurate numbers. I think the best we can get is the limited smog data from the ECU unless someone wants to take their offroad racing truck to a smog center but I suspect those numbers will be off due to racing specific tuning.

As for dumping more toxins in the environment I don't think it's super simple to break this down. The smog systems on diesels are just breaking up the particles to make them smaller but at the same time dramatically increasing fuel consumption. I don't like the particles being made smaller. Sure, less irritation to the throat but now those particles can get past the defenses in my lungs and get directly into the blood. This was noticeable when people were testing benzine excretion before and after using isothiocyanates. Anyway using more fuel can only create more particulates even if they are smaller. The particles emitted by a diesel without emissions controls are basically soot which is heavy and falls to the ground. The treated emissions are lighter than air and tend to float in the sky. This is noticeable in places like San Jose from the observatory. If one drives up to the top of the mountain they can not see the city any more from the smog. People are breathing those toxins and to my knowledge there is no debate that smog affects peoples long term mortality and health span. Soot on the other hand would just end up on the ground and on the walls of underpasses with some of it potentially being kicked back up from traffic but would be filtered by the vehicle cab filter assuming one has the windows up. I would be curious how much more dangerous that soot really is than say brake dust.

Anyway, all interesting points and maybe some day we can get some empirical data on this provided that manufacturers do not tamper with testing and are not in any way involved. In the mean time I will just do whatever prolongs the life of the engine, gives me back fuel economy and keeps the vehicle reliable.

comment 4y ago · link · parent

I agree with this.

For what it's worth my solution which may not work for others is to set the default ring/text tone to "None" and then add custom ring/text tones in my address book on my little throw away flip phone. It works great for me personally. I never get distracted by bots and just mass delete their messages without even looking at them when I get around to it. This method probably will not work for people glued to their phones.

9960.

Japan swelters in its worst heatwave ever recorded [video](youtube.com ↗)

1 points · by LinuxBender · 4y ago · discuss

1
331332333
642