skysight-inc/HackerNews huggingface dataset:
How many lines of C++ does a minimal CRUD database application need?
Check this example; two lines for initialization, one line for each operation:

obx::Store store(create_obx_model());
obx::Box<Task> taskBox(store);

obx_id id = box.put({.text = "Buy milk"}); // Create
std::unique_ptr<Task> task = box.get(id); // Read
if (task) {
task->text += " & some bread";
box.put(*task); // Update
...
box.remove(id); // Delete
}

Can it be done shorter than that?

PS.: the example shows user code only, there's a tool to generate boilerplate code, e.g. the Task struct and "binding" it to database.
In mac, there is sort by energy usage in activity monitor and Chrome always takes the top spot (at least for me).
How to Post Your Flask App in Ubuntu
Around IT in 256 Seconds Podcast
Podcast for developers, testers, SREs… and their managers. I explain complex and convoluted technologies in a clear way, avoiding buzzwords and hype. Never longer than 4 minutes and 16 seconds. Because software development does not require hours of lectures, dev advocates’ slide decks and hand waving. For those of you, who want to combat FOMO, while brushing your teeth. 256 seconds is plenty of time. If I can’t explain something within this time frame, it’s either too complex, or I don’t understand it myself.
Ack, I think the many years of "große Koalition" aren't good for democracy and I think it had been better if SPD would have gone into opposition after the last election and see the consequences of minority government roll out ... then we could have a political debate with contradicting points of views etc. instead of long discussions in a Koalitionsausschuss followed by harmony ... but this is not directly related to this specific topic.
(Side note: I'm fresh SPD member and think they get quite a few of their initiatives through, despite the election results they get ... but we need more proper debate in democratic circles ...)
I'm not a physicist, but my master's thesis was on numerical ODEs preserving physical (symplectic structure).

I think the best way of looking at these problems is thinking of space already equipped with a vector field (like streamline plots with little arrows) and objects just being carried by them, as if laying down small rocks on a busy river. Of course, this vector field is not constant and the object's mass alters it, but this will be small in the spaceship vs. planets setting.

This is more of a mathematical intuition than history-of-the-universe answer, but I think it should help.

Ed: This is very simple to reason about when talking about independent particles in one dimension; the phase space arises out of a simple variational problem. It's also easy to reason about in 3 dimensions, but the problem is that the "river" in one dimension has two coordinates, momentum and position. So to think of two dimensional space you have to imagine four dimensions, etc. But thanks to Darboux's theorem these dimensions are "coupled in pairs" (this is what symplectic means), and it's not that difficult to visualize four dimensions. Cf. this illustration of the "symplectic camel theorem":

https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRtOK...
F.G.T.H - Two Tribes (5m24s)

[1] https://www.youtube.com/watch?v=SXWVpcypf0w
This is a good article, but rather misses the point on performance of monomorphization vs. dynamic dispatch. Yes, CPU indirect branch predictors are getting better, and compilers are getting smarter about identifying opportunities to turn dynamic into static dispatch. But inlining remains the optimizer’s silver bullet, enabling a host of dependent optimizations. It’s those further optimizations that make the primary performance difference for static calls.
NYC Subway’s Virus Killers Unleash Mops, Mist on 6k Cars a Night
たしかに、残念ながらその点で間違えてしまいそうでした。認めます。

> if my translation was fair.

だって、簡単に言えば、どんなに原典の文法が崩れても、出てこない言葉は出てきません。
> I really like things as they are and I'm just not interested in change here.

The kind of change the EU is primarily pursuing is of the monetary sort. They're looking to use fines against the US tech giants as a golden pot to raid to fill their $81 billion post Brexit budget hole. [1]

This will continue for many years. The EU will attempt to extract tens of billions of dollars in fines from US companies, as much as they can by any means they can for as long as they can.

The proper US response is to begin targeting prominent EU companies to damage financially. The US economy will recover much faster than the EU economy - as with the great recession - and that should be used to maximum advantage.

[1] https://www.reuters.com/article/us-eu-budget/eu-leaders-to-c...
We can make robots from gelatine and other edible ingredients
It’s for tracking purposes. Which is why I like Apple’s forced restrictions and “monopoly” of software on its devices.
only for Safari on macOS and iOS
> I highly doubt the intent...

I don't think the user was making the point that it was an intentional decision, but rather an unintentional consequence.
Boxes face the same lifting force problem.

Burying it (dome or box) below enough dirt can alleviate the problem, but it's a lot of dirt.

Or you just make the structure with a lot of tensile strength. Run wires from the floor to the ceiling to hold the ceiling down.
https://en.wikipedia.org/wiki/Photon
Sandworm's Exim hacks reveal wider Russian activity
This seems incredibly short sighted.

To wit, the fact that Keller - or whoever is in that role these days - has to certify that the code and the system it runs on will work as expected speaks volumes about how serious this is.

If it doesn't, things tend to blow up, which is sure to ruin your day.

Also, I would be remiss if I didn't mention Therac-25, a medical device which killed or severely injured several patients.

https://en.wikipedia.org/wiki/Therac-25

In these cases, arguing over every change to code seems like the only way they can guarantee with any certainty that it works correctly.
It's a boxing term.
You're right this is survivorship bias, but I think it also illustrates that my premise is unfalsifiable. I'll try to restate it, keep in mind we are talking about evolution:

There must have been people throughout history who where of such high intelligence that it impeded their ability to procreate, while their circumstances didn't allow their exceptional abilities to be realized, and they died in obscurity. High profile, high intelligence historical figures cannot be an example of this because their circumstances allowed their intelligence to be realized.

In the best of circumstances, high intelligence can be exported from an individual and impact the entire culture, region, or even species (like a printing press). The meme can procreate without the individual procreating, and the impact of an individual like Leonardo da Vinci can permeate without him contributing DNA to the human experiment.

Here's my speculation: Maybe a gene that's too smart could possibly be self-defeating, and it won't be replicated.
My new hobby is using "collusion" instead of "collaboration"
Likewise. I've long thought it analogous to the "Balmer's Peak".

It's frustrating, because it's not like it's a solution to be tired all the time. If I'm sleeping better, I get less work done and more life done, feel happier and better, but get swamped by work later. If I'm exhausted, I get some work done and no life done, feel horrible and eventually dip back into depression, but I'm a little bit more on top of work.

Eventually I get too exhausted to even do that, so again it's no solution, but it is interesting none the less.
TripleLift Built an Adtech Data Pipeline Processing Billions of Events/Day
I am quite familiar with Duchesne County from my work. But yes, the right of ingress and egress applies to holders of mineral rights. I am sure there are bad apples, but the clients I've worked with have been very accommodating to surface owners when it comes time to drill. They want everyone to be happy and to get compensated for what occurs.

I only have experience in the Western states, but this it is very frequent to find the the mineral rights have been long severed from the surface rights. Typically it is when the original patentee of the tract sells the surface they end up reserving the mineral rights.
The OpenGL bit is even worse than it sounds. The driver is half-broken and the version is ancient, already a decade old.
Apples extends its ARM, gives Intel the finger.
Neither GPAs nor SATs are 'useless' they just need to be contextualized.
It’s happening in all industries. Monthly recurring revenue > revenue from one time sale. Aka rent seeking.
What should it be in your opinion?
>> One thing Apple does not need to give up is Windows support: Windows has run on ARM for the last decade

Supporting legacy x86 apps is 'windows support', not 'running windows'
Mathematics, at its core, is about tangible and easily perceptible stuff like counting things and measuring space. Through the introduction of layers of notational and conceptual abstractions, many dependencies can be discovered and many claims can be made. They are just "there", but we are seeing them through the lens of our own man-made abstractions.
It appeared in religious literature many centuries ago, probably in Mesopotamia (we don't have written testimonies before them) to express god-man relation.

Many religions nowadays are still based on the concept of a master God and a slave human follower

The Bible is the most simple example were slavery is accepted and considered normal (slaves, concubines, that became domesti workers but we're still slaves)

Another example is God that asks Abraham to kill his child, and Abraham obeys, because he's an "humble servant"

There are still many prayers that refer to God as The Lord (master) and the believers are servants to God (slaves to God, sometimes literally)

* “Amen, amen, I say to you, no slave is greater than his master nor any messenger greater than the one who sent him.” *

Said Jesus to his disciples in John 13:16

That's where it was born

And that's why it stayed

It really wasn't a joke, it was all very serious.
The worst part is this isn't even just going to affect folks that would never think to update their router firmware. The firmware they do push out is frequently a massive downgrade.

About a year ago, I tried to update the firmware on my Netgear router. It was the exact model from the article, the R7000. I assumed "new update" for router firmware would involve some critical security updates, and maybe some stability fixes, but it basically rendered the router unusable. It would crash every few hours with normal usage. I googled around and turns out it was a known issue, the only recommended fix was "roll back to version x.x.x (2 versions prior). I found this fix months after it had been posted, and there had still been no new patch released to fix the issue.

When my relatives call me to fix their wifi, I now have to think twice about updating the firmware. These days I recommend the google wifi mesh router(s), because they just involve the least maintenance effort. They have less fine-tune controls and the wifi speed is slightly slower when you start approaching gigabit speeds (vs other high-end consumer routers), but it's definitely worth the trade off for me. Plus, anyone calling me to help with their wifi won't notice either of those things :)
> Those "martian" cities will be needed as giant shelters on Earth before we can build them on Mars.

Which is a far stronger argument for building them than any space program. The harder problems of colonizing mars do not include "can we build domes without a substantial pressure differential tearing them apart".
I find it interesting that the article shows a photos of troops being transported by commercial plane.

Is it standard practice? Or does it perhaps show that the Chinese military is still somewhat short of transport planes?
Key difference being that massive bodies always attract one another. Two protons try their damnedest to push away from each other. An electron and a proton, sure, look a bit like two gravitationally attracting objects. But a soup of charged particles looks a hell of a lot different than a soup of massive particles.
Late reply, sorry. I'd say that in the domestic terrorism situation you describe, even someone completely untrained would still be more deadly taking aimed shots than with full auto or auto bursts. With auto, most of those 30 rounds would impact the ground unless they were shooting into a really, really dense mass of people, and even then you'd have many shots that would be grazing or non lethal hits. And by the time the second magazine went in, people would be clearing out fast.

With a large magazine it would be a different story though, you are right about that. This is why I think that it's good to have fully auto by design weapons be illegal (think the SAW, or the M240), along with magazines above 30 rounds.
I am fortunate to have had a colleague explain it to me but this is my understanding as well. Normally the cleavage would take time with possible undesired effects as a result of the process.
Here is the relevant file to comb over for today's dexamethasone result:

⁶ https://www.recoverytrial.net/files/recovery_dexamethasone_s...

Relevant passage:

> A total of 2104 patients were randomised to receive dexamethasone 6 mg once per day (either by mouth or by intravenous injection) for ten days and were compared with 4321 patients randomised to usual care alone. Among the patients who received usual care alone, 28-day mortality was highest in those who required ventilation (41%), intermediate in those patients who required oxygen only (25%), and lowest among those who did not require any respiratory intervention (13%).

Dexamethasone reduced deaths by one-third in ventilated patients (rate ratio 0.65 [95% confidence interval 0.48 to 0.88]; p=0.0003) and by one fifth in other patients receiving oxygen only (0.80 [0.67 to 0.96]; p=0.0021). There was no benefit among those patients who did not require respiratory support (1.22 [0.86 to 1.75]; p=0.14).

Based on these results, 1 death would be prevented by treatment of around 8 ventilated patients or around 25 patients requiring oxygen alone.

Given the public health importance of these results, we are now working to publish the full details as soon as possible.
The issue with standardized testing that's just rolled into coursework is that it'll further incentivize teachers to teach to the test. In my opinion it could also disadvantage schools which don't have education in the highest of mind. Basically running as a daycare center in some sections.
The other issue is that Windows for ARM is not a product you can just buy off the shelf right now.
Is this the second wave of Covid-19 in the U.S.? Or are we still in the first?
Agreed. I see no issue in in google’s situation for 2 reasons:

1) I am able to, by default, download apps from other app stores and marketplaces (albeit at my own risk)
2) The Play Store is valuable to me because I know that the apps I download there have been verified and are safe to use (at least in theory).

In Apple’s case, I think the argument is that their operating system is not open to other hardware vendors, so they don’t need to allow alternative app stores. I don’t think it’s anti-competitive that Mazda doesn’t allow me to choose the navigation software in my car’s HUD. If I wanted different navigation software, I should have considered that before purchasing a Mazda.
I guess you may be interested in this petition to make all publicly funded software free: https://publiccode.eu
Ha, I know that story from the Julia Donaldson kids book (and song) "A Squash and a Squeeze" [1]. So true too. We don't appreciate how good things are, or how much we are capable of, until they get a lot worse.

[1]: https://www.panmacmillan.com/authors/julia-donaldson/a-squas....
>I, on the other hand, think that high taxes end up benefitting everyone through greater services for those down on their luck which seems to translate to less desperation, less resentment, less classism, less crime.

That's a perfectly reasonable decision.

That said, far more Scandinavians have calculated that they would rather have the US approach than the other way around. Whether on an absolute or (especially) per capita basis, far more Swedes and Norwegians move to the US than follow your lead and move to Scandinavia.
They sorta did then sorta skipped everyone else. The real requirement was that their bootloader was in the first partition. You can install windows to a different drive/folder. It would probably mess with a lot of programs out there though. The later versions (past 2000 I think, maybe xp its been awhile) did not really give you the option to put it somewhere else.

https://docs.microsoft.com/en-us/windows-hardware/drivers/de...

The problem is they only really made it work correctly with OS2, WindowsNT, Win9x, and DOS. Even then it was kind of a pain to make it work correctly.

Have not messed with the UEFI bits they added in recent versions so it may be different now. But I doubt it.
I wasn't sure where to look for hard evidence for the claim, and I would love to see data showing the average SAT scores over time on a per-school basis. But this at least shows how admission rates have been consistently decreasing over (recent) time: https://www.ivywise.com/ivywise-knowledgebase/admission-stat...

I think it's reasonable to assume that the increased competitiveness in admissions leads to increasingly competitive attempts to game the admissions process.

Whether or not the original claim is true, I think it's certainly true that an increasing amount of cost and effort has gone into SAT prep. Certainly, that was my experience (if we're comparing anecdotes). Everyone I knew in the top percentile of my HS prepped for the SAT, and that was in the early 2000s. Based on one of your other comments, it seems that your personal experience was in the 70s -- how reflective do you think that is of the admissions process today?
As a Canadian living in the U.S., I noticed a subtle thing that comes up when we Canadians lament the lack of global leaders in business. We often instinctively say "the government ought to do this or that" (I do this too). Whereas Americans tend not to bring up the government at all -- they go straight to private capital and get it done.

I'm a big government person (especially for society-wide services like healthcare, public health, education) but in business, I've come to realize that it's not helpful to have the mindset of relying on the government. (exception: defense, which almost always needs government funding. But almost everything else does not.)

I had a friend who was running a nascent high-tech commercial business and he spent a large chunk of his time writing proposals for government grants. Money is money, of course, but it's a little strange to me that even business people in Canada rely so much on the government instead of just going to the capital markets. And what's worse, a lack of government programs in a particular area is interpreted as a constraint. This should not be.

The 2nd largest company in Canada by market cap right now is Shopify, and it succeeded with no significant government support. We need to shift our people's mindset to not default to invoking the government -- instead we need to encourage non-risk-averse capital investment into bluesky projects from private parties. It is true that we are not awash in capital, being a small country and all, but we have enough (we're 16th in the world in GDP/PPP). Much smaller countries in northern Europe with smaller GDPs have done better than we have in establishing global business leaders.
> The amoebic dysentery answer in this exchange⁽⁵⁾ indicates the confusion with hydroxyquinoline

Why would this answer indicates such a confusion ?
> if you've ever tried to do some mindfulness meditation, you realize we're not very good at it.

Well that's the point, to get better at it. It helps to have some good instructions; the book The Mind Illuminated is fantastic.
"the i3-1000NG4 Intel processor that is the cheapest option for the MacBook Air is not yet for public sale; it probably costs around $150, with far worse performance than the A13"

In so curious so see this.
Unless I missed it we haven't seen consumer high end ARM chips that are readily available running a general purpose OS.

Like the Raspberry Pi is cool, but it's still trash in comparison to an average x86 laptop.

Let's see if those really high geekbench scores translate to an excellent computing experience.
I have German citizenship but have not lived in Germany since my teens, so I'm a bit ignorant of the political situation these days. How would you summarize GP's views on German/European guilt?
They get paid a reported $8 billion a year by Google not to care.
A Love Letter to Mvp.css
I wouldn't recommend this. PDF support is horrible, particularly if you have a two column layout file. You cannot correctly zoom in far enough in most cases - in the sense that zoom is possible, just absolutely impractical. Without that, you generally need a magnifying glass to read the text on the display.

Very nice hardware, just awful software.
The scaling limit is that they would dilute their brand if they started letting in a lot more people. Exclusivity is one of their main value propositions.
Tools for Testing in Java
I don't know the details of this project—and the UAE's affinity with grand projects certainly warrants a grain of salt—but I've often thought these baby steps could be useful for space exploration.

Sure, Mars, the Moon, etc. are not like anything found on earth. But at the same time getting good at surviving in the least hospitable places on Earth could certainly yield some insight when living in even lesser hospitable places.

And like so many other space research projects, there might even be useful outcomes for everyday life on earth.

Wishing them all the best, and even if they "fail", I hope valuable insight is learned from this.
Have you considered going to someone who is qualified to diagnose the condition and prescribe medication?
Search is one of those services that requires tracking to get right [1], whether to understand what we mean by a certain phrase, or to customize to a specific user.

This makes it at odds with Apple’s emphasis on privacy. (See Siri for another example of a service that’s hindered by Apple’s privacy standards).

[1] Many people will argue DuckDuckGo is okay, but by ‘right’ I mean competing with Google for the top slot for the everyday search user.
Orbit Trap
How do I block my sites from appearing on your lists? I’m already spamming a lot with product and movie pitches and last thing I want is even more.
Only Nixon can go to China.

Only a conservative political leader who was a captain on the Eastern Front telling the nation that it was time to acknowledge the past and look to the future could be heard.
Software Buyers Council: Shape the future of software
Procrastination was been hitting me hard recently. I was so stressed out that I found myself literally saying "I'm not good enough." I knew that was not accurate, but I was still feeling inadequate. So I look a long lunch. While I was out I realized that I could pivot to saying "My code's not good enough" and "I am not my code". I was working through a lot, but I just wanted to share that it is possible to make incremental gains when you're feeling like krapola.
The honesty and bravery of the speech is remarkable - that a leader can tell those he leads painful and difficult truths - rather than tell them merely what will appease them. Everyday we see evidence of how easy it is to appeal to base and superficial feelings, rather than what is noble and honest.
There is so much we can learn from both the causes of the tyranny and how the aftermath was handled, politically, personally and socially.