skysight-inc/HackerNews huggingface dataset:
> But again, did Tony Blair know it was a lie and misled the Parliament?

Yes. This is why the British troops were under-equipped because Tony Blair was intentionally holding back the knowledge that the choice to invade had already been made but he couldn't do this while also requesting parliament to fund war funding.

He was holding two narratives open at the same time. The public one where everything was above board, following all approved channels, ratified by the UN and due to WMD that he used to gain approval from the UK and a private one where it was clear the UK would go to war with the US regardless of what transpired.
> 0 I would think, no? Can an email address be '@domain', no preface?
Content is dynamically generated in response to user interactions. For example a user clicks a button to navigate to a parent directory the new directory contents are fetched and populated into DOM artifacts using a function which recognizes the returned object as a microservice instance.

Instead of querySelectors I use things like getElementById, getElementsByClassName, getElementsByTagName, and some custom DOM navigation utilities I wrote for this application like getAncestor, getModalsByModalType, getNodesByNodeType, and so forth.

You don't need any kind of framework or fancy wiring to work with events. You always know what you are working with from within the event handler, because event handlers receive an implicit event object as their first argument. From that there is event.target which returns the element the handler is assigned to or event.currentTarget which returns the element the user interacted with that fired the event after bubbling.

State management is also just as easy.
Current yield to shareholders in the form of dividends is 1.5% -- below inflation.
The people of Chicago have an elected body that should be making these choices. Instead a teachers union holds the city hostage.

I grew up in a UAW family and I’ve always supported unions but teachers unions need to be treated like other essential services: Public sector employees that are not entitled to strike.
> I don't get why people get so theological about logging.

Because the reason to log is about people, not about technology.

There's no technical reason to make logs: Just don't make bugs, and you won't need the logs to find out what went wrong because nothing will have gone wrong. Go to the beach!

This is hard though, and bugs happen for all sorts of reason that have nothing to do with the programmer making a mistake-- the customer can be unsatisfied because they didn't know what they wanted. Programmers learn very early in their career to distrust the requirements, because they know that saying but that's what the ticket says gets them nowhere besides an argument: They have to do what the business/customer meant.

Put another way, the user doesn't want logs: The user wants to know if everything is okay or not, and presumably they have some way to figure that out, but if it isn't working correctly (or they merely think it isn't), the programmer will probably want those logs to help them.

In many environments, the loop is larger than just those two people, there's QA support people, and internal experts/operators, and triage, and all of those people are going to have different needs from those logfiles. People might also have a second use for those logs involving anticipation of failures and tracking capacity.

So there are a lot of non-technical, non-functional needs for logs, and once you understand this, it may be a little easier to understand why people would have almost rabid opinions about what those logs should look like (or if they can get the cure they need another way, what they might prefer instead of logs)

> [standard out] will work in an OOM situation

If you use write() which doesn't allocate memory, that's almost true, but if you use printf() it might allocate memory, and it might not work in an OOM anyway depending on what "standard out" actually is.

> will work if your network switch is on fire, when the DNS records are wrong and your technicians can't even enter the building

And yes you can write logs that nobody will ever be able to read, but what's the point of that? When your manufacturing plant is a smoldering rubble, someone is going to want to launch an expedition for those hard drives and try and figure out what caused millions (or potentially billions) of dollars in damages, so if you just wrote everything to standard output and washed your hands of the rest, you might have to find another job anyway.

I've been programming for over three decades at this point, and I'm convinced there is no "easy one-size-fits-all answer" to whether to log or not, or if to log, how to log, so I find it useful to learn about this bit of theology so that I'm better equipped to talk to others about this, and maybe convince them of my opinions.
I want a cross over with USB naming scheme for maximum confusion.
I think everyone should pump the brakes on being upset until the details actually come out. Presumably this chip is the same that they use on their "cloud" servers, including the stuff that runs bare metal linux so there should be drivers for Linux.

That's a ton of assumptions, all probably wrong, but do we always have to immediately jump to the negative assumptions? Especially when it's meant to interface with the cerberus OCP project.
As a note,

find . -type f -exec grep stuff {} \;

will also invoke a new grep process for every file, which can be slow. If you think find is going to return a lot of files, it is often better to use

find . -type f -exec grep stuff {} + # note plus sign

which will replace {} with as many filenames as allowed (all correctly quoted, etc).
In quantum computing the consequence of the theorem (as I understand it) is that once you have asked every yes/no question there is to ask about the state, the state has collapsed.
E beam lithography in credibly difficult. Recommend chapter 13 in "Principles of Lithography" https://spie.org/Publications/Book/2525392?SSO=1.

My opinions is that this whole comment discussion about creating a competitor is in the wrong direction. It is impossible to recreate and outperform what ASML has.

A better focus would be to tackle problems in the <2nm processes. If someone found a method to stop electron tunneling at smaller nodes, this will net much more revenue and create more value for society.
Click bait title and rather poor content.
I'd call plumbing a craft, same with auto mechanic. I admire someone who put in the years to not only fix the thing, but knows ridiculous details of certain kinds of bolts or whatever. That's having a hobbyists perspective, and the enjoyment of something just because you're fascinated by it.

Obviously, some would consider it a waste of time. 90% of their colleagues would say, "I don't get paid to know unnecessary stuff about the bolts. I get paid to screw this to that according to this diagram." Which is what commercial software work is. Different thing from being a hobbyist.
I really enjoyed reading this. I could feel the frustration.
Archived URL: https://web.archive.org/web/20220105164221/https://github.co...
1. This was written in 2012, and it mostly applies to Debian/Ubuntu-derived Linux only.

2. The cheat_sheet.org.sh file should be renamed to Readme.md for more newbie friendliness. Github doesn't render the file correctly as-is. But, as this was last updated a decade ago, it probably will not happen.
>Except now you’re tied to Sentry. Want some other service? Good luck.

If this is a concern, just create a class with a method that takes an exception, message, context, etc. as parameters and use that. Now you can change it in one place instead of throughout your codebase.

Agree on logging messages as well; is useful to see live what is happening in the system as well as it is useful to see logging broken up by different errors
You'll enjoy it! Here's a well-written and resource to begin your journey:

http://modernperlbooks.com/books/modern_perl_2016/

It explains many of Perl's "quirks" to a modern audience.
True, anyone that has any decent means is probably doing private school or lives in the burbs because the public government system is so failed.
On MacOS I find Paste works really well.

It tracks your last N items, shows previews of images, has search, clean UI, does not store items from 1Password (ignored app list is editable)

Ticks all the boxes

https://pasteapp.io
> But having Microsoft-designed hardware as a backdoor in my system?

I think there is as of yet insuficient data to support that claim. A security processor that guarantees safety for critical data is a good piece of hardware for those that require such functionality, as long as it's optional, not-backrooted, not controlled by a remote corporation, has an open API and interactions with the system can be audited:

Windows devices with Pluton will use the Pluton security processor to protect credentials, user identities, encryption keys, and personal data. None of this information can be removed from Pluton even if an attacker has installed malware or has complete physical possession of the PC.
Absolutely insane. And people sometimes argue that renewables are only viable due to subsidies.
I’m not sure about hidden dependency if the metrics break immediately. Important metrics should have alerts when absent or change unexpectedly.

Communication and the decision to depend on the logs as a source of metrics would be key to keeping these systems connected and functioning.

Taking a dependence on logs based metrics without communicating that is the failing here.

The same breakage could happen by depending on the event being emitted and a developer changing the event structure.

Communication and understanding helps both scenarios, not duplicating the effort by emitting logging for debugging, events for auditing and metrics for business.
> Even more reason to crack down hard on crypto miners.

You're speaking like cryptominers are criminals...
I remember they completely _screwed_ my employer in Benefits costs. Prices got incredibly out of control really fast, we saved a _LOT LOT LOT_ in costs by getting out with comparable coverage elsewhere.
The article is about engineers, not factory workers. Are you really telling me there's no culture of overworking for engineers in Silicon Valley? It's contrasting Arizona with Taiwan; I don't think this same article would be written about Silicon Valley vs. Taiwan.

There's also a difference between what you're saying and what the great-grandparent said: being cheaper can be because they have better processes or are more innovative, or have shorter supply lines, or better access to mainland China or whatever.

But the great-grandparent both (a) assumed that tech fundamentally belongs to the US, and if it's being done somewhere else, it's in service to the US, and (b) that the primary reason someone would produce things outside of the US is labor costs.

Labor costs are no longer the primary reason things are produced outside of the US. At this point, it's primarily industrial capacity and know-how.
Maybe try "grep -v" ?
Thanks! Asheville FTW. I think I can guess who you are, in which case, I hope all is well!
> Are there ways to do this?

In some systems / runtimes, yes. For instance every browser supports "logging breakpoints" which can be added and removed on the fly (create a breakpoint then right click, you should get an option or sub-option about logging). I would also expect that there's Java instrumentation things which do it, though I haven't done any java for a very long time.

It's pretty rare though, obviously so for runtime-less programs, somewhat less so for those with a runtime but while "external" profiling is common logging is much less so (e.g. Python supports updating the configuration of the existing static logging system on the fly, but not defining the log points).

> It sounds like an application restart would be warranted at the very least, which can be disruptive.

See above, if you can profile an application on the fly without restarting it you should be able to instrument for logging.

And tools like dtrace/ebpf should allow this, but I've yet to take the plunge and actually try and look at that, it's only been an idle thought so far.
Why not return an error in the case of an anticipated failure? You don't have to use exceptions for that.
Stainless steel is also much more brittle than construction steel. And this matters a lot. Not only in case of earthquakes but also just in construction where you have large tolerances. Construction steel will bend plastically, while a more brittle steel can just crack. Welding stainless steel is also inviting issues, but possible in principle.
Fork put-downs are really the only way you’re going to get that sort of deficit.
Do you have a better answer or do you prefer devolving this into meta?
BlackBerry held the tiny keys to my heart
> Solar and wind mean you need batteries (can’t do off-peak without it)

We do not have enough batteries in the world, and producing enough of them would take decades, and cost us trillions of dollars. Nuclear power plants are better and cheaper solution.
Beyond the Borrow Checker: Differential Fuzzing
On my device I can goto www.domain.com

What’s the point in hiding how it works behind a GUI widget?

If you just want to abstract everything behind the least UX possible, use curl to browse the web.

Watch them hide everything behind UI and all the tech nerds complain they can’t see how anything works then!

It’s IT people whining their way into closed systems with their circular back n forth; open source/diy or closed and they do it all for me!

There is no middle ground.
Unless you're seeing other processes crash because of a lack of RAM this isn't an issue, your OS will page things in/ out, including in Chrome, based on memory pressure.
You could do that, but I’d argue using filter then map is more readable. What do empty arrays have to do with doubling even integers?
Studying for work is work! You should count it that way.

If you're not, you're harming not just yourself but, in the long run, your employer (who won't understand what they're asking of people) and your other coworkers (who feel pressure to meet your standard).
Build with stone blocks. Even if it gets knocked over the blocks just need to be reassembled to be useful whether as a wall, a tower, a road, or another house.
Have you read [0] already? This might give you an idea what might be going on with Ivermectin. Summary: parasite infections are widespread in some parts of the world. Treatment for Covid surpresses overzealous parts of the immune system which, unfortunately, makes the patient vulnerable to these parasite infections which in turn can kill the patient. Giving someone Ivermectin before treating them for Covid solves the problem by killing the parasites first. Therefore Ivermectin decreases the risk of death with Covid (not by).

[0] https://astralcodexten.substack.com/p/ivermectin-much-more-t...
Most of the comments talk about the ease, or lack of it, of adding a different search engine to Safari. I'm sure Apple would love for everyone to focus on that, and then they can make a big noise about settling the suit by allowing more choice.

I think the complainants are really asking "why don't they do Apple Search, just as they now do Apple Maps, i.e. their own search?"

How would this make Google unhappy and willing to pay billions to prevent it? They could buy DDG or Bing or some other product to get a head start, and then pour their limitless $$$ into improving it. It might not succeed any more than Apple Maps has, but then, a $3T competitor is not to be taken lightly.
This is a space that's surprisingly ripe for disruption. Cloud providers push 'hybrid cloud' by allowing you to integrate your own machines with their networks- but they maintain the upper hand in that relationship because they own your network.

Tools like this allow users to own their network and avoid that lock in. All that's needed here is auto-scaling integrated w/ various cloud providers, and some canned templates for creating K8s clusters and common services. At that point- we've got a self hosted cloud w/ 80% of what the big guys offer.
There's a bit of a question about how much of the house is actually left from 200 years ago.

My house was technically built in 1897 but was moved in the 1920s on to a new foundation and we basically knocked the entire thing down and rebuilt it a few years ago after we bought it. Now we're adding to it again. It shares some of the DNA of that house from 1897 but basically none of the parts anymore and is much nicer looking whilst keeping the old timey style.
>I’m not in US (and neither the person you asked)

I'm actually in the US, wasn't born here but I've been for 24 years now.
Hard disagree on that one. For 99% of your software it’s stuck the cert in your distro’s trust store and use the result as your base VM / container templates. Adding to the Java trust store is a 10 line script and never needs to be touched again. It’s not that it’s completely trivial but it’s so much less complex than every other thing your infra team does.

Random BYO devices I can understand but in your cloud / datacenter it’s so easy just because you control everything.
This is a balance of power issue, and corporations will always try to shift more power to themselves when the technology to enable that is available.

I don't want Netflix to have the ability to verify the software I'm running before it gives me the stream I paid for. None of the things they could do with that power, such as forcing me to watch ads before the stream I've already paid for, or charging me different prices based on the kind of device I'm using benefit me.

We as technologists should be wary of technologies that further shift the balance of power away from users.
They are criminals when you outlaw crypto mining, no?
Avalanche has already shown previews of its future high fee problem. ENS plans to add layer2 support which will drastically reduce the transaction fees associated with ENS. Layer2s have the benefits of alternative L1s but without the centralization risk that other L1s have that can lead to unrecoverable assets (centralized L2s can censor you and then you can forcefully exit to L1).
Always happy to see OneBag shared, even if the forum doesn't seem to be apt. This incredibly comprehensive work by Doug Dyment has made me into the traveler that I am today. I have been following his guidelines and recommendations for almost 12 years now with great success.
Also, why is this crane school spending the money to hire 9 lawyers to work on this lawsuit?
Phones have gigabytes of RAM. It's a relatively niche situation where someone is running Chrome on < 1GB of RAM, which is less than what modern OS's require to begin with.

Besides, memory usage is hard to measure. Lots of memory may never get paged in.
Supply vs demand.

I can still find MBP configs in stock in the US. And ordering one from Apple is "only" 3-4 weeks out, which isn't surprising, given the holiday season and the fact they just came out.
Try Typora; that's the most established markdown WYSIWYG editor.
Out flat in Edinburgh New Town had built in shutters on the inside of sash windows - these were actually really effective at helping to keep the place warm - far better and easier to care for than curtains.

Edit: I should point out that the Edinburgh New Town is quite old, but not as old as the Old Town, obviously.
I used this a bit, it was really great. Writing a Rust backend & exposing it to TypeScript was really slick!

There was one issue I ran into that made me think about jumping to Electron mid project, but I can't remember what it was now, but I think it was something like making my app bleed the entire MacOS window while still being moveable.

The other downside is you're going to be tempted to go down the rabbit hole and do everything in Rust. [1]

[1] https://github.com/Submersible/sycamore-mac
> One of the greenest things that you can do to a home is not build a new one as I understand it.

I would need evidence for this statement. There have been many great advances in technology over the years, to the point that I can see old insulation/wiring/plumbing to not be worth repairing and replacing. Not to mention if any of the previous stuff used harmful materials such as lead and asbestos.

I also think it is unreasonable to assume current lifestyles and needs will be satisfactory for future generations.
Show HN: Wordle Solver
it was people who drove US production over seas. Consumers were always free to choose locally made products. They didn't, they chose cheap.
I was thinking that there was a good Linux option out there. That may not be true.

One of the benefits that a company like Framework has is that they don't have to support everything. They can be like Apple and tailor their hardware choices to the ones best supported by the software.

To me, Asahi Linux is the most exciting thing going on in Linux-land right now. They have a very small number of hardware configurations to support. In theory, they should be able to get it really dialed in and polished to the point where it just works. I don't care if they go for KDE or Gnome, SystemD or SysVinit, or anything else in particular. If it works right from the start and is extraordinarily stable, I'll learn to love the choices they make.
“Man plans, God laughs”
As per the article:

> Americans workers at TSMC’s Arizona fab may chafe at becoming the humble students of their mentors in Taiwan, who nearly 50 years ago transferred semiconductor technology from RCA of the U.S.

It was more geostrategic rather than capitalist outsourcing that lead to the knowledge transfer, but after that transfer was complete, the economic factors mentioned by the person you're responding to would fully be in effect. A nontrivial part of Taiwan's economic success has been that knowledge transfer that enabled the creation of TSMC.
There is some clinical evidence to support curcumin as a prophylactic or treatment for COVID-19. The evidence so far is weak, but it's cheap and has no real side effects at normal dosage so from a risk versus reward standpoint it may be worth a look.

https://www.frontiersin.org/articles/10.3389/fphar.2021.6693...
Right, it was a massive generalization. However, I highly doubt those people are using Windows 98 (insert other example), and they probably did at some point (depending on age, ecosystem etc).

They may well not be using the 'most current' version of the software, and I can think of a few pieces of software where that's been the case for me too. Either because I don't use it enough to justify the upgrade, or I actively object to being fleeced again for essentially the same product that's been "updated".

But eventually, if they want to continue doing the task they'll end up paying for a new version. Unless it's open source, it's always under the control of the product creator, and their incentives are always going to be on extracting money, and indeed they need to, to continue supporting the software.

In the Apple Ecosystem, the move to M1 Macs is an example that will force people to pay for upgrades.

Buying it once and riding it as long as possible is undoubtly cheaper than subscriptions, however it's still got a lifespan that eventually requires the next payment.
Do they really know how bad they are?

Because this common caricature of "smallpox blanket" is not based in verifiable historical fact. There's no clear evidence that Europeans were literally weaponizing smallpox to wipe out most of native American populations. The understanding of how infection spread happened a good 200 years later, than depopulation.
Right now, the various Electron apps I have running:

1Password, 155mb

Discord, 441mb

Element: 38.7mb

Signal: 91mb

Slack: 46.2mb

A few higher but a couple that are lower...
ZenML helps data scientists work across the full stack
T7-VIP1 is a personal aircraft of Nazarbayev family. https://www.flightradar24.com/data/aircraft/t7-vip1

The news are there that he fled the country to Switzerland, got a boot from there, and was forced to flee to Uzbekistan.
at least tell us why you did this?