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

comment 3y ago · link · parent

NeoCities is one option [1]

[1] - https://neocities.org/

comment 3y ago · link · parent

I've heard that too, but I think it would take a decent developer 1 hour to make a first pass at such a thing. It doesn't have to be complicated nor perfect. I think it should not require images nor javascript. It should probably be a server-side LUA script that caches the puzzle and answer.

I found a few starter ideas [1][2] and concepts [3] but I would prefer to use something like figlet vs gd generated images. Figlet or something like it should be much lighter weight. I just have to find one that is readable on cell phones.

[1] - https://github.com/lua-programming/lua-captcha

[2] - https://github.com/mrDoctorWho/lua-captcha

[3] - https://nedbatchelder.com/text/stopbots.html

comment 3y ago · link · parent

Aside from 3rd party code perhaps one middle-of-the-road idea would be a table of a few hundred factoids and then code that makes multiple choice checkbox factoids like

- Select everything that is a color im sure there are more clever open-ended questions and maybe sometimes switch up "is" with "is not".

- Red

- Blue

- Monkey

- Violet

- Armchair

People say that bots can learn such things but if every site had their own in-house tool then bots would have to keep track of thousands of site specific puzzles. Each site could even rotate through a dozen sets of different puzzle types and pause the ones that get learned. This would avoid sending cookies to a third party or depending on 3rd party code thus mitigating some corporate capture.

Bonus complexity: Don't use Alpha-Numeric characters. Use something like "figlet" [1] and cycle through a few of its ASCII art fonts.

[1] - https://github.com/xero/figlet-fonts

comment 3y ago · link · parent

When you say source do you mean in the email headers? Spam scores should always be in the email headers. There are some scripts [1] out there that try to reverse engineer all the spam scores but they are not perfect. Google has a tool specific to GMail. [2] To my knowledge very few mail providers hide this information but it can seem obfuscated as each provider may have their own proprietary in-house tools.

[1] - https://github.com/mgeeky/decode-spam-headers

[2] - https://support.google.com/mail/answer/29436?hl=en

comment 3y ago · link · parent

It appears so. I have this [1] in my cache and had to click on objects which is odd as there would never be robot behavior from my IP. Perhaps the bot submissions were becoming too much. I've not used a VPN in ages.

[1] - https://www.gstatic.com/recaptcha/releases/5qcenVbrhOy8zihcc...

comment 3y ago · link · parent

DownDetector does not show an abnormal spike in issues.

comment 3y ago · link · parent

It is on my long-term to-do list but there are some things I have to knock out first. I've never written a book but I am sure there are people here that have written threads on the best ways to go about it and the pitfalls. I should search for those.

comment 3y ago · link · parent

Inquiring minds want to know. CentOS 5 was a while ago, so maybe it's old enough you can talk about it?

I would like to but if I go any deeper into that one a certain company will be embarrassed and will respond very poorly. When the day comes that they and their legal entities cease to exist I will share more of the ugly details.

I found intel's reputation for stable, reliable NICs to be well deserved.

Same here, at least for their server NIC's. I've found that some of their consumer NIC's tend to lean conservative on power management by default and will start having issues negotiating speeds on very long ethernet cable runs to which I have to work around by changing ACPI settings, BIOS settings and sometimes even through a L2 switch at one end. Most of those seem to use the igb driver.

comment 3y ago · link · parent

I forgot to add, some sites already use this. [1]

[1] - https://www.shodan.io/search?query=RTA-5042-1996-1400-1577-R...

comment 3y ago · link · parent

Everyone has a test environment.

Yup, the weird bugs are rarely ever found in the test/dev/staging/qa environments. Sometimes it takes longer to even figure out how to reproduce some odd bug a customer found in Prod.

As one example we had one blade server that was causing financial data corruption. The senior java developers and architects debugged java down to the CPU and found 1 CPU core that was making mathematical errors under specific conditions. This would never in a million years have been found in dev, test, staging, QA, pre-prod environments. I was given the instruction by leadership to "drive over the server" in the parking lot as neither upstream OEM's were interesting in debugging it further.

Another fun one I ran into was using VLAN tagging on CentOS 5 on specific hardware with a specific NIC of whom shall not be named could get into a situation where partial frames were being transmitted in a loop from the ring buffer at the highest physical packet rate of the NIC which is surprisingly very fast. It brought down the access switches and the very big distribution routers. We debugged it pretty far down but hit a wall when one of the three vendors involved would not sign the 3-way NDA. The NIC was not Intel.

Or here is another one. We had a multi-million dollar storage solution that was never needed and in production it caused an IO fencing issue that broke the production databases in a glorious way. That bug would never have been tickled in dev or staging. It required a specific series of failures in the storage that triggered a logic failure on their controller of raid controllers. The vendor should have caught this one.

I could probably write a book about all the weird bugs that "should never happen" but only happen under real-world Production use cases.

comment 3y ago · link · parent

There are a few variants of t-shirts for this. "I don't always test my code but when I do, I test in production" I knew a director of operations and engineering that wore this shirt which made it funnier.

The best and weirdest bugs are found by the public in production.

comment 3y ago · link · parent

That is why I left it out. I would not even begin to describe their activities. I merely pointed out it is not even permitted on the other site.

comment 3y ago · link · parent

Could one of the factors for the Amish be teamwork? Tradesmen are often competing with their peers and working very fast, sometimes too fast and at risk of injury. All of the documentaries I have seen watching the Amish work, they work as a team following the mantra slow and steady wins the race. They work hard, but as a group.

comment 3y ago · link · parent

I entirely believe you made it work but I think you are one of the exceptions now. Basic training will induce crazy weight loss but it will not reverse T2D which many young people now have. Many of them can't do a single push-up. Run 1 to 1.5 miles? Most of them would end up in the hospital. There are parts of the U.S. where this is the exception rather than the norm. The high-school kids around me are like freight trains and ready for the NFL. But this is not the case in most big cities.

comment 3y ago · link · parent

Do they still use the old PT model for fitness upkeep?

According to the General in the linked video from 2012 they have tried to make some improvements, though there is only so much they can do with someone that has been eating poorly and sitting still for most of their life leading up to enlistment. I have not kept up to date with what they are currently doing but there are others here that I believe are still in the military.

comment 3y ago · link · parent

The military are already having a very difficult time recruiting people. Not for a lack of interest but for a lack of physical qualification. [1] This behavior will not help them get more people.

I foresaw something like this when I served and had to fight them on DNA collection. I neither won nor lost but I stalled them long enough to get out. That was my commander's idea. It went all the way to Al Gore via FoIA and came back down as several boxes of paperwork that were worded more vague than a car commercial as to what the data/dna could be used for, how long they could keep it and who would have access to it.

[1] - https://www.youtube.com/watch?v=sWN13pKVp9s (2012)[video][16 mins]

comment 3y ago · link · parent

How do you get your local TV/video news?

Video News: Is not a thing anywhere near me. I think the closest news van is probably about 1.5 hours away and I have never seen them here. I am in a very rural area.

Audio News: I still listen to the radio. My new smart phone even has an FM radio as does my MP3 player. There are also a couple of somewhat-local mini-newspapers.

For weather I use weather.gov, windy.com and a couple neighboring states have a weather forecast online and I just read between the states.

comment 3y ago · link · parent

I had a Sound Blaster in my 386/40. No issues whatsoever, it worked great. Too many good people passing these days at what I perceive to be too young.

comment 3y ago · link · parent

I am not a lawyer but I think you would have to get the version of the agreements you had to click through in order to create an account and let a lawyer review them to see what you may have waived or what promises they made. After that your lawyer would have to prove damages and get a court to hear the case.

comment 3y ago · link · parent

The video is often re-posted on 4chan and is not the worst of their behavior. Their worst behavior is not permitted on 4chan.

comment 3y ago · link · parent

Adding to this, they are growing fast [1] and rumor has it they are moving into Texas. Curious what the U.S. will do to try to stop them. Military perhaps?

[1] - https://es.insightcrime.org/wp-content/uploads/2020/06/Mexic...

comment 3y ago · link · parent

So my concern with following this logic is that such tools that are writing to specific block locations would then be wiping unrelated inodes depending on the low level logic. I tried emailing Colin but his last known email is invalid now. He may be working for the NSA so I probably won't be able to reach him. Some people there are responsive, some are not and a few are on here.

So even if wear leveling prevents overwriting a file then such tools should in theory be a risk of data corruption. If this is the case then the tool should be updated to detect if the target is an SSD and abort with a scary message. Perhaps another route is to reach out to the coreutils team.

8033.

Qualcomm, Lenovo flag multiple high impact firmware vulnerabilities(scmagazine.com ↗)

1 points · by LinuxBender · 3y ago · discuss

8034.

After roasting Nvidia for overheating issues AMD now has its own(theregister.com ↗)

2 points · by LinuxBender · 3y ago · discuss

comment 3y ago · link · parent

This is the wrong way to limit porn to adults. For ages there has been a single line HTTP header that can be added to a site or even to the meta-data in HTML itself to identify adult content. A law could require all user-content sites to implement the header and require all browser apps, operating systems, mobile devices to make a best-effort attempt and requiring a parental control system that approve-lists domains that have the adult content header.

A panel of the best UX designers in the industry could draft the RFC for device/browser updates and the law could reference the RFC. A panel of parents could test the beta versions. This way people can't really say "Its too technically hard to enable parental controls". This could even become part of the device setup such as buying a new phone and going through the setup menu. "Enable parental controls? Y/n" If "Yes" then the setup guides the parent through creating accounts for kids and lets them choose whether or not to allow user-generated/adult content per account.

In NGinx it looks like this:

    location / { add_header Rating 'RTA-5042-1996-1400-1577-RTA'; }
In HAProxy it looks like this:

    http-response set-header Rating "RTA-5042-1996-1400-1577-RTA"
I do not know how to add this to Envoy or Caddy.

This puts the control and liability of the approval on the parent and they don't even need to be technically savvy at all. This also puts the liability to self-label a site on the site owner/administrator and they can each have instructions in a standard location on the site how to enable parental controls in apps/devices after such a law requires devices to have this functionality created in a standard and simple way that just looks for the header. Despite being meant for adult content there is nothing stopping this from being used for user-generated content domains. The end goal would simply be to provide a method of parental controls per domain or globally.

Most important, this method provides zero tracking of who is into what and does not leak financial or PII data.

How to enforce this? Crawlers find user generated site, people submit user generated sites. No header? 3 attempts are made to contact the domains admin/technical contact. 4th attempt domain(s) are seized. Domain outside of the U.S. and that government will not cooperate? Sanctions. It's a big hammer but it works.

Could a determined teen get around this? Sure, the same teen that would use a parents credit card or the card of a stranger. In my proposed method credit card fraud is taken out of the picture and people do not have to leak real names.

comment 3y ago · link · parent

I've also seen people say that and to instead use "blkdiscard -sz" but that also does not write to specific blocks. I still can not find a definitive source saying that shred is not able to write to specific blocks on a SSD and it is not clear to me that wear leveling actually prevents shred from writing to specific blocks. But I agree that I have seen people say this repeatedly on StackExchange, ServerFault and Reddit.

Either way one should also use filesystem and file level encryption for sensitive files and encrypt sensitive attributes inside databases. Swap must also be encrypted as it may contain sensitive data. Datacenter bad-drive mishaps do happen as in not shredding the physical drive as a few government and military agencies have recently been embarrassed by.

I do agree with pinkorchid that ultimately drives should be destroyed physically.

comment 3y ago · link · parent

It would be as hard as writing the file {n} number of times again. So if one created a 1MB log file and then did a 3 pass wipe that would write 3MB. Number of passes would really just depend on the system being worked on. If PCI I would expect 7 passes and I am sure that would just be factored into the cost of the servers for that environment.

Shred also isn't perfect as it has no concept of the file systems journal and does not clean that data but I think it is still good practice for sensitive data, in addition to filesystem or file level encryption on systems with highly sensitive data.

With sensitive data one must look at the value of the data vs the value of the SSD. If I go out of my way to extend the life of my SSD, do I risk losing $5billion? That is how I factor in whether or not extra wear-and-tear on a SSD makes sense.

comment 3y ago · link · parent

Is Lithium the only barrier to EV's? Are there any global supply chain logistical issues that may arise should ongoing conflicts escalate? Do the same supply chain issues affect ICE and EV's equally? I honestly do not know but I see this get brought up when people discuss EV's more so than Lithium.

Could the existing coal mining companies transition or relocate to locations rich in Lithium, possibly offering their employees relocation bonuses? Some of the coal mining companies are in the process of shutting down and it seems like money could be saved by repurposing some of the equipment and utilizing some of the coal mining team experience. Could states offer financial incentives to relocate and switch to mining Lithium?

Are we still reliant on Cobalt as part of the Lithium battery? There is an interview with Siddharth Kara that suggests all lithium batteries contain cobalt and thusly depend on child slave labor. [1]

[1] - https://www.youtube.com/watch?v=CIWvk3gJ_7E [video][14 mins]

comment 3y ago · link · parent

The package is available in Alpine so I tried it out. It seems to work best if the terminal is using en_US.UTF-8. My default is C but I have a function to set UTF-8. I was curious if it could handle stdin and it does. It saves the output in ~/.config/lnav/ something to probably add to my clean up script. It is convenient that it can prepend timestamps to logs. I could see this being nice for people that do QA on build logs all day or that have to debug access logs often. If used with sensitive data one should probably add a shell function and log rotate scripts to clean up ~/.config/lnav/ using the shred command.

8040.

Bret Weinstein Speaks with Dr. Aseem Malhotra [video][2hr](youtube.com ↗)

3 points · by LinuxBender · 3y ago · discuss

1
267268269
642