skysight-inc/HackerNews huggingface dataset:
"Researchers are proposing a logging program that
cannot be disabled by the repair technician. It
would be clear if the logs were deleted by the technicians."

Nice, now we just need EU getting together and creating a new law forcing that all hardware should have such capability /s
“Favoring component reuse can mean having less code to write and test, which in turn can reduce required time and costs.”

Everything is a tradeoff. For voting systems, I’m not sure reducing dev time/costs is the right tradeoff.
I do not see that as a bad thing because Whois databases have long been used as a tool for doxxing, spam, and harassment.
> Saying no is hard. It's an admission you can't do something.

Saying no is an admission that you won’t do something. You may or may not be able to do the thing: that’s orthogonal. By framing it in terms of ability, you internalize the no by describing it as a personal failing.
The Enchiridion (handbook) by Epictetus.

It’s really a summary of a single idea, but the most valuable idea I have encountered- how to recognize that the hardships and problems we face mostly come from failing to identify what we actually control, and mistakenly focusing our efforts and concerns on what we can’t control while neglecting what we can.
One thing I've observed personally is that your personal information content changes over time, as you get to know the culture of the people writing. There's just less surprising stuff in there.
In the very immediate term: announce the same time you block access. Leaving people in limbo overnight is a shitty move.

In the longer term: announce layoffs ahead of time. Ask if anyone wishes to take voluntary redundancy. In general, make sure people aren’t going to be totally blindsided by losing their job.
But of course, the decision makers who made bad choices after the IPO are not the ones to get laid off.
The sense that I get, as a side note, is that people who complain about cancel culture don't understand, or can't accept, how deeply unpopular their opinions actually are. They assume that everyone secretly agrees with them, but for some reason nobody is saying it, so there must be some conspiracy afoot to silence them. The actual fact is that, as I pointed out above, you can make people be civil, but you can't make them agree with you.
I didn't say it was my only reason. I said "This is a huge reason...". There are quite a few others as well. I didn't list them, because they're irrelevant to the "Ask HN" question, and are therefore off-topic.
Depends on how loosely you define "sexual harassment".
At least it’s significantly smaller than 100% I think.
In many work environments and cultures, it's not so easy. A single "no", even after a long row of "yes" can put you in an unfavourable position. I was once working in an outsourcing company that was onboarding developers in various short-term projects, for a usual duration between 3 to 6 months. When your project is over, they try to allocate you as a resource to another one, with a different team, different tech stack, different working hours and different work culture. I said "no" to a project that was IMO a bad match for my skills and interests, and that was the downward slope towards no further promotions, my isolation from management and my eventual departure.
That tendency of other humans to jump to conclusions about a person's demeanor and personality based on facial expression is one of the most irritating characteristics of humans. No matter how many times we hear cliche's like "don't judge a book by its cover," people routinely (and confidently) do that all the time.
you can't disable PRs on GitHub, can you?
Why Elon Musk Is Picking a Fight with Apple
It is telling that you believe because I said "Someone should not be fired for..." translates to you "Government should prevent someone from being fired for..."

Show me where I said employers should be denied any rights?
Too late for me to edit, but yes I did confuse the source of the bug. Please clarify the C64 drive scenario source of slowness. Was it VIC-20 backward compatibility, or?

In any case, I maintain the engineering wasn't at fault, having a CPU etc. Fastloaders showed it to be just poor software, and that's a point I did not make clear enough.
6000 employees? That blows my mind. What do they all do? Is it mostly sales, to convince restaurants to sign up?
Tracking was interesting to me — made me identify the worst offenders and try to come down on those first. Sodas went right away. I like my coffee sweet so dropped down to just one cup in the morning.

What worked best for me though was simply portion control. When I lay food out on my plate I can make a pretty good guess as to what's enough. The trick is to stop when you clear your plate — no seconds.

That ended up slowly taking the weight down. It only came back when I slacked off from my portion control regimen (started back on it again a few weeks back).
Yes.

The US also has a voluntary ban on any submunitions with a greater than 1% dud rate. This forced the destruction of quite a bit of ordinance such as MLRS rockets with cluster warheads, huge stockpiles of 155 mm DPICM, etc. There's no question these weapons are devastatingly effective on the battlefield, but the US doesn't want to own the horrific aftermath.

So yeah, this is one area where the US is actually setting a good standard.

Also you see this pattern with quite a few similar treaties, where the US kinda wants to have its cake and eat it too, by not actually signing the treaty but adopting a similar or better standard voluntarily.
Yeah protein powder is actually a really good food
It's very easy to say "we should stop growing this and feeding it to animals, and grow that instead and feed it to humans", but it's a lot harder to make that work in reality.

Not everything grows particularly well in a given location.
That is exactly the problem discussed in this HN submission.
> What is the best way to learn to write programs for Windows?

There are many ways to program Windows.

If you want C or C++, you can use Win32[0] and COM[1]. Of course, the C and C++ standard libraries are also available, within ucrt.dll[2]. Not to mention additional libraries/frameworks like Direct3D, OpenGL, DirectSound, etc.

For .NET, there's several options:

- Windows Forms[3]
- Windows Presentation Foundation (WPF)[4]
- WinUI 3[5] (most recent, but lacking some features)

Windows' command-line shell of choice is PowerShell[6], written in C#. There are two flavours, Windows PowerShell 5.1 (Windows-only, uses .NET Framework 4.8), and PowerShell Core (cross-platform, uses .NET 6+).

> For example, let's say 'I want to disable taskbar tab grouping programmatically', how would I know where to look?

There are registry keys and GPO policies[7] (you can use any of the above C/C++/C# APIs to read/write from the registry, but your program will need the appropriate permissions)> However, Windows really is best configured with the GUI (Settings app -> Personalisation -> Taskbar).

[0]: https://learn.microsoft.com/en-us/windows/win32/

[1]: https://learn.microsoft.com/en-us/windows/win32/com/componen...

[2]: https://learn.microsoft.com/en-us/cpp/porting/upgrade-your-c...

[3]: https://learn.microsoft.com/en-us/dotnet/desktop/winforms/ov...

[4]: https://learn.microsoft.com/en-us/dotnet/desktop/wpf/overvie...

[5]: https://microsoft.github.io/microsoft-ui-xaml/

[6]: https://learn.microsoft.com/en-us/powershell/

[7]: https://social.technet.microsoft.com/Forums/en-US/f08bc6bb-a...
That's super interesting. Can you share a link? (Now that someone is asking, maybe you bother to find it? Also, please don't say no to this...)
"Then you should be much more careful about what you choose to guarantee, because you'd be wrong,"

Please, do show me how I'm wrong.

HIPAA allows the disclosure of some health information without a warrant. There are plenty of abuses that happen today. Would centralizing increase those? Sure. But they are already happening. And again, I don't see whether these are truly centralized like a DB, or if they're independently on the cloud (or perhaps you didn't answer that because you're trolling).
That’s a possibility. However maybe her “real” audience is a small group to whom she presented these via other media and are or were looking for reaction to the art. In other words a public art installation. Is it real, is it fake? That’s the art.

The bigger problem to me is other people swiping her art, not confirming and not attributing it —simply using her art.
I'd vote for FT from your list. It is worth it just for Janan Ganesh's columns, the rest is just a bonus.
You can enable the experimental `browsersListForSwc: true,` option which uses your browserlist to determine the appropriate target. You can also disable `legacyBrowsers`

ref: https://nextjs.org/blog/next-12-2#other-improvements
Zero-Day Twitter Hack Has Already Impacted 5.5M Users
It is MIT licensed so one could host their copy or fork entirely elsewhere. It's available as a Rust crate, which doesn't seem to have the issues that concern you. The Discord part is a little harder to address. Contributing back to the code upstream could be difficult. Projects have moved before when corporate hosts proved problematic for either the maintainers or enough users, such as the exodus from Sourceforge. I have no doubt if Discord, Github, or Twitter become issues the project could move elsewhere, possibly to a private Gitea and to Mastodon. Right now, though, the maintainers are probably happy to use these services and not worry about maintaining production servers for it.
> For example, you'll never get Ruby or Java to work on the BEAM VM

Uhm, several ways:

1. Bind the VM in as a C FFI artefact

2. Write your ruby or Java bytecode emulator to run on one Erlang process only. Since Java supports threads, each thread could live on a different process, any shared memory would live on an Ets table.

"never" is a strong word. The reason why people don't do it is that it's not worth it.

I believe riak embeds javascript in the erlang VM. You can imagine why that might be worth it.
If I'm working with other people, usually rest my chin in my hand and cover my mouth when I concentrate specifically to signal that I'm not angry and can be approached because my eyes often suggest otherwise. It's not really a conscious effort or anything, but it certainly changes my expression from "angry" to "furrowed brow."
Rustrepo: Find the Best Rust Resources for Your Project
Lots is customer support, I’d imagine.
> Can I modify my page after it's been published?

> Not currently, but we're thinking about it. Very rarely do you need to update a page once it's been posted

… what?

edit: I literally had to edit this post because the quote formatting was off
But can't you do the same with CSS ?

If every selector in a file begins with the component class, isn't it the same as writing styles in the component JS file ? I mean, the only real benefit I see is the forced encapsulation in JS compared to "soft" encapsulation in CSS. But, it's something so trivial to learn and practice that the soft part shouldn't be an issue. And if it is, then it is time to learn some rigour, no ?
I was born with congenital RBF (Resting Bitch Face) and it's been a mild inconvenience in my work and relationships. I've actually tried to adjust my neutral face as a result just so that I don't freak out bystanders when I'm waiting for a bus or looking at a restaurant menu.
> so the compression program you used

The standard Linux compression programs, zip, gzip, tar, don't lock by default. I don't even think they have such an option.
How do you read "ability" into this? Can't can mean many things, like no I can't do it because I don't want to, I don't have time for this etc.
I accidentally installed this on Gentoo once when I was looking for a decent CJK font. Little did I know, somehow it was set system-wide as the default CJK font, and I couldn't reverse it. I lived for about a year at my PC seeing all CJK text in this font, which got a little grating after a couple of months.
Tesla starts selling its chargers at Best Buy
[Addendum] …or, generally, any book about back-of-the-envelope calculations (or Fermi estimates). I heard there are some great ones.
I really only ever encountered this issue when working with ring routes, as in TFA. Love the macro at the end, may start to use it because why not.

Now I want to say this to Clojure beginners: launching Emacs with a very complicated, non optimized, init (3400 lines of custom elisp code I wrote over the years) takes 1.4s on my system. Now launching the app, with two REPLs (one for Clojure on the back-end, one for ClojureScript on the front-end I'm testing) and about 30 dependencies (including figwheel, which is kinda heavy) takes...

16 seconds.

So, from complete scratch, launching Emacs, opening a Clojure source code file, (which btw also triggers the launch of the Clojure LSP server) and then launching the webapp server, two REPLs and loading the main webapp page in a browser takes less than 18 seconds. Well, ok, it's not from complete scratch as source files that haven't been modified do not need to be recompiled, I'll grant that.

It's a 2019 AMD 3700X with 32 GB of RAM and a NVMe M.2 PCIe 3.0 x4 lanes SSD. Not a bad machine but not last gen either (I'm probably swapping it for a 7700X one of these days).

I'm pretty sure the startup time is going to go significantly down when I'll switch to the 7700X.

So even though it's great to not have to restart the app/REPLs it should not be a problem to restart the whole thing.

If your REPLs take two minutes to start, I'd argue there's an issue and it's time to fix that first. Move from lein to deps.edn (which launches one JVM less, which really helps as Clojure startup times on the JVM are slow), buy a faster dev machine. Buy a PCIe SSD. Use chrome/chromium instead of Firefox for testing your webapp (in my experience chrome is simply way faster for anything JavaScript and, oh boy, does ClojureScript generate lots of JS). Etc.

As a sidenote I'd say this specific "ring route not updated" is a variation of the age old issue of cache invalidation.

So basically: I love working at the REPL and keep my REPL(s) opened for a very long time, hot reloading everything (including ClojureScript on the client-side) without needing to restart everything but I don't lose sleep over the fact that I do sometimes relaunch everything for it takes not even 20 seconds.
They never are.
I don’t find anything wrong with the authors approach. I just think he should make it clear that he’s not interested in issues or PRs on the project readme or contribution guide. It’s hard to have it both ways - where you say issues and PRs are welcome but say no when someone reports or makes a contribution.
> A Bunch of young, mostly male, underpaid, low-authority folks abuse their customers

Are you assuming their gender or saying if we had more females doing the work, there wouldn't have customer abuse?
Exact pricing is not listed, however if you dig around on GitLab’s site [1] it says Dedicated is for purchasers of >= 2000 seats of Ultimate, plus a management fee to cover defraying the infrastructure cost, and the time to look after it for you.

From this even with generous discounting on those seats, I’d infer this is for customers willing to spend >$50k/mo or >$500k/yr.

[1] https://about.gitlab.com/direction/saas-platforms/dedicated/...
The perceived decline in quality might just be caused by a very real increase in the quality of ‘amateur’ journalism.

I noticed this both during covid and Ukraine coverage. The quality of journalism that is now available online is in my opinion much greater than any news organisation can put out. Often because the amateur journalist are people covering event from on the ground as it is happening.
How did you lose data? It looks like it was WAI. You were writing to a file and deleted it. How did you expect that to go down?
>If you take the view that rights are granted by society and not inherent then you are technically correct that rights don't really exist. But then neither does money or law. This kind of nihilistic reductivism isn't particularly useful.

If you take the view that rights are granted by society, then money, law, and property rights DO exist.

I get that you are saying that you want something, but it doesn't exist in either the current defacto social sense, or in inherent moral sense.

>I thought the whole deal with this society thing was a collective endeavor for the common good; structures that hold private interest above common good seem blatantly counter-productive.

I think this is where your position differs with mine, and that, and that generally held by world. Society is not and has never been a collective endeavor for the common good. It is merely a system to prevent people from murdering each other, enslaving them, and taking their things. In one sense, the common good is served in that it prevents lawless anarchy, but few societies have ever bought into the utilitarian view where maximizing the common good is the primary goal.
Why is that surprising and or a fault of Windows?

> If it's written for linux it can be made to work well with BSD and Mac.

Maybe that's true in a theoretical sense, but it has not been my practical experience with macOS. Too many times have I found I needed a plethora of workarounds on macOS only for the same thing to work flawlessly on Ubuntu.
“Immigration support: We will set the termination date for March 1, 2023, giving those with visa applications (and a desire to stay in the US) as much time as possible to find a new job”

Every company should do this to help employees on H1B that are laid off.

The standard terms are one of the horrific things about US immigration policy; suddenly uprooting families including kids attending school in the US.
I'm maybe a lifer like the OP. Similar age, some similar concerns. I haven't really decided yet, but my motivation to put myself back on the market has dramatically declined.

I've been... OK to let my salary rot a little. I think it's an implicit part of the lifer "bargain."

I've found, though, that you can sometimes get a correction by talking to management about market rates and where your salary stands (without making any implied threats or anything, just raising the concern).

The HN mindset is that, if you want more money, you need to switch jobs. But you can't get what you don't ask for, and if you're a strong contributor, you might be surprised at how responsive your management can be. A long term employee brings their own form of value that management may well recognize.

A disclaimer here is that I work in higher ed, where programmer salaries will never be competitive with for-profit tech companies. This is kind of a given. But I have observed that I can at least keep my salary commensurate with jobs at other institutions.
> or (as others have pointed out) just keep them locally and avoid making a bunch of unnecessary connections to a remote host entirely

I've been using this extension for many months now and that's exactly how it already works. You're just plain wrong.
I think I have RBF and always look angry.
Same here, grainy and distorted.
Offering a Feb RSU vest and a March termination date to help those here on visas are incredibly thoughtful and expensive touches.
I don't know why you're being downvoted so hard—I've never seen a definition of values objects that includes extensibility. I'm not even really sure what the point would be with the way they're typically used.
It can be. But could also be a fasting protocol. I’ve been doing rolling fasts for months now and it works great when you’re severely overweight.
Ah, yes ... fear-mongering over what the "red" team might do, while pretending the "blue" team haven't been committing this kind of abuse unchecked for years now.

Those abuses are ignored, or worse, reported as a good thing:
https://www.wired.com/story/fbi-google-geofence-warrant-janu...
It's deeply hypocritical because Teslas have all the same issues that Apple devices have: locked platform, opacity, high potential for surveillance and remote control, low independent or end user repairability, mandatory (and even silent) updates, vendor lock-in via proprietary connectors, etc.

Make Tesla cars and the Tesla network use CCS, make the cars more repairable, and make the digital elements more user-controllable and open and then maybe we can take this seriously.
Tell HN: If you have trouble focusing on projects/meetings, see a psychatrist
I have been a chronic procrastinator all my life, and I could never truly focus on classes, meetings, and everyday conversations.

You could talk to me, but I would only half listen or get distracted for a few seconds here or there. I would start personal or work projects and get super stuck for unknown reasons. I'd never be able to finish a book unless it was genuinely thrilling. And I'd never been able to complete any online classes I took.

Due to life circumstances, this problem got much worse in the past year or so. I couldn't pay attention to my spouse or my kids, I couldn't remember to do simple stuff, I routinely lost things such as my glasses, wallet, and keys, and all of this created a lot of unnecessary stress.

This sort of unfocused behavior always occurred, but it got much more frequent and worse to the point of generating a lot of frustration for me and those around me.

Then it got to the point I could not finish projects, start tasks I didn't like, and so on. This lack of focus almost impacted my work, yet no one seemed to notice, as I could work on things that didn't block anyone.

Following advice from my wife, friends, father, and here on HN, I looked for a psychiatrist to understand what was going on. After a lengthy consultation, the doctor told me I most likely had ADHD, and it got worse due to a more demanding lifestyle.

He prescribed me weekly therapy with a psychologist and some medicine. I was skeptical of it all at first but decided to give it a go.

I cannot express more emphatically how these two steps changed my life this past month. I'm more aware of everything around me, focus on things with ease, and start and finish projects efficiently. My wife and I rarely fight anymore, and I even have the willpower to play with my kids.

It was as if my mind got pulled away at every turn, but now I can finally fully control it.

If you feel the same way I did, do look for help. Even if it makes your budget tight, it will help you beyond what I can describe.
I bet that death threats were real, though of zero seriousness.

Sadly there are many people willing to spam death threats with zero credibility or as a "joke".
This isn't feudal Japan and you don't have to commit seppuku for a mistake. The executives report to the CEO and the CEO to the board, and the board to shareholders. There is a process to hold management to account.
A ‘Golden Era for Large Cities’ Might Be Turning into an ‘Urban Doom Loop’
I looked at the code from a Java developer point of view, and besides the first 2 points, I don't see anything that was Java-specific.

If anything, the code style is reminding me more about classic game code, where they use arrays instead of List and are more concerned about data types and memory usage. Maybe this person is coming from a background of game programming and/or C(++)?
I agree. I've also come to accept that it's part of human nature and, on an evolutionary scale, is probably a net good. "Judging a book by its cover" probably saved countless cavemen from being eaten by lions, and probably has similar effects today.

Nevertheless, your point still stands- it is indeed incredibly unfortunate, for the reasons you mentioned.