skysight-inc/HackerNews huggingface dataset:
This was just taking the final React code in the article and rewriting it in vanilla as close as possible.

Your comment is fully correct, but I would like to point out:

- with such a tiny DOM to rerender, it is equivalent, probably even faster

- custom element encapsulates DOM and it is fairly trivial and extremely fast to pick DOM (like you can even use id's everywhere) in the 'old jquery' way, with simple library functions

- updating DOM with simple render() call is way more elegant, but if you keep custom elements DOM small (and one should), this way is not that bad at all

Like this:

<!doctype html>
<body>
<custom-element></custom-element>

<script>
const CHECKBOX_ID = "my-checkbox";
const defaultLabelContent = "Toggle me, you newbies";
const beforeDiscountText = "You have not availabled discount";
const afterDiscountText = "Discount Availed!";
const beforeLabelText = "Click on me to remove fake discount"
const afterLabelText = "Click me to apply fake discount!"

const state = new WeakMap();

// 'library' code
function qs(selector) {
return this.shadowRoot.querySelector(selector);
}

function getElem(nodeOrSelector) {
return nodeOrSelector === String(nodeOrSelector) ? qs.call(this, nodeOrSelector) : nodeOrSelector;
}

function replaceText(nodeOrSelector, text) {
let elem = getElem.call(this, nodeOrSelector);
if (elem) elem.textContent = text;
}

function updateAttribute(nodeOrSelector, name, value = '') {
let elem = getElem.call(this, nodeOrSelector);
if (elem) elem[(value ? 'set' : 'remove') + 'Attribute'](name, value);
}
// end of 'library' code

class CustomElement extends HTMLElement {

connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<input type="checkbox" id=${CHECKBOX_ID}>
<label for=${CHECKBOX_ID}></label>
<div></div>
`;
this.shadowRoot.addEventListener('change', (event) => {
state.set(this, event.target.checked);
this.update();
})
this.update();
}

update() {
let isChecked = state.get(this);
updateAttribute.call(this, 'input', 'checked', isChecked);
replaceText.call(this, 'label', isChecked ? beforeLabelText : afterLabelText);
replaceText.call(this, 'div', isChecked ? afterDiscountText : beforeDiscountText);
}
}

customElements.define('custom-element', CustomElement);

</script>
Looks like run of the mill Mount & Blade: Warband code:

On_your_orders_your_troops_sack_the_village,_pillaging_everything_of_any_value,_and_then_put_the_buildings_to_the_torch._From_the_coins_and_valuables_that_are_found,_you_get_your_share_of_{reg1}_denars. none 37 370 3 1224979098644774912 30 0 370 3 1224979098644774913 30 1 2105 2 1224979098644774912 1 371 3 30 0 1224979098644774912 4 0 30 2 1224979098644774912 3 30 2 1224979098644774913 3 372 1 30 3 0 521 3 1224979098644774914 144115188075856213 7 4 0 32 2 1224979098644774914 0 1 3 936748722493063439 1224979098644774914 -5 3 0 2136 3 1224979098644774915 -35 -25 1 3 936748722493063440 144115188075856213 1224979098644774915 2204 2 1224979098644774916 144115188075856213 2190 3 1224979098644774917 1224979098644774916 432345564227567630 4 0 2147483678 2 1224979098644774917 0 1 3 936748722493063441 1224979098644774916 -3 3 0 2133 2 1224979098644774918 50 521 3 1224979098644774919 144115188075856213 50 2122 3 1224979098644774920 1224979098644774919 5 2105 2 1224979098644774918 1224979098644774920 1 3 936748722493063602 360287970189639680 1224979098644774918 2133 2 1224979098644774921 3 2123 3 1224979098644774922 1224979098644774918 100 2105 2 1224979098644774921 1224979098644774922 1 2 936748722493063447 1224979098644774921 522 3 1224979098644774923 1224979098644774916 99 2122 3 1224979098644774924 1224979098644774921 200 2106 2 1224979098644774923 1224979098644774924 502 3 1224979098644774916 99 1224979098644774923 1 3 936748722493063604 3 216172782113784226 2133 2 72057594037927937 1224979098644774918 1
Sure. Yet consensus among "brain scientists" has long been that locomotion and the ability to explore the physical world is essential (or even central) to how consciousness develops and works in humans. Which in turn would seem pretty important for an institute working on cutting edge AI?

One of the reasons ML-based AI is pretty dumb still is possibly that this autonomous exploration side of AI is largely ignored.

It all seems to tie back into what Judea Pearl talks about in his "book of Why" (how you can't model intelligence without modelling learning of causal inference) or what Jeff Hawkins explores with his "reference frames of reference frames of the world" 1000 brains theory.
Psh. Everyone knows by now that the gateway theory is utterly debunked. Some people start with cats, some people start with dogs, not everyone ends up using both, and some quit the pet trap altogether - for example, if their new partner does not like the smell of cat piss.

The only reason cats look like a gateway pet is because the same dealers sell both cats and dogs - and everything up to venomous tarantulas and constrictor snakes. And you bet they make a better profit off the more dangerous pets, because you need more equipment to use them on a day-to-day basis.

The feds let it happen because eventually all retail chains get a chunk of the sales. Food, enclosures, electronicals, silicone sealants, plastic containers, special furniture, all bought with hard-earned cash that could have chosen otherwise.

Pets are the real matrix.
If these 12 people are known, it seems that, aside from deleting their social media accounts (which may backfire), we could also focus persuasion efforts on these 12 individuals. It would be extremely powerful for these people to begin sharing how they changed their minds and came to see the truth that vaccines are good and saving lives. Imagine how many of their followers would also change their minds.
Exactly. Consistently and reliably storing business data is something that actually turns out to be important in the real world.

If you can't actually retain your business data, it really doesn't matter how many "good ideas" or fancy deployment strategies for the presentation tier you have.
The Goals of XML at 25: and the one change that XML now needs
Shame no pictures.
Very interesting, thank you!
So, I guess both the hydraulic press and slow curing time ensured that the tiles were very hard/abbrasion resistant. More so than plain mortar, somewhat closer to ceramic.
Show HN: Lambdatalk with Closures Inside
I don't mind articles being policed edited with propaganda so much.

What I do mind, is talk pages being policed and edited. This is new!

It used to be the case that if you visited a controversial article that didnt quite pass the "sniff test", you could then go to its talk pages and witness all the controversy laid bare, and make up your own mind on something.

Now there's some very inventive archiving and cleaning up and even censoring of people's comments in place, it feels like people getting "disappeared".
Greenland bans all oil exploration
You haven't mentioned anything specific about dangerousness of goto. The fact that you heard some conclusion is irrelevant, unless you pass the reasoning behind it. If goto is dangerous, why isn't if statement dangerous.

And about async code: Have fun writing bare metal code with that. Because, you know, your compiler will spit gotos anyway, and unlike gotos you write, you'll have little control over that.
Yes I love that an entire VM is basically 2 files - one disk image, one libvirt config. Makes backup and restore so easy :)
I've used react for years now and never had those problems. I've used components managed by other libraries and React didn't crash.

There are tons of ways to access state in a redux store elegantly from anywhere in a javascript application. Yes, if you think that is the difficult part, you are clearly doing it wrong...

And please don't write single page applications when you don't know why you need one... There are plenty of reasons why SPAs can provide a better user experience. If you do it right.
> The article talks briefly about mocking your database: definitely never do this.

I definitely recommend doing this for same tests: it's the only way to check how your application behaves in case of failures.

The best thing would be to have a DB where you can inject failures, but I'm not aware of any.
So test
- the happy path on the real db
- the sad path on the mock/fake (which might be a light wrapper around a real db, but with the ability of injecting failures)
Thanks for responding honestly. There's some more information out there now regarding the original story:

It looks like there are twelve individuals who have been responsible for large amounts of the disinformation that is a concern, and they're the ones whose content is being removed (I believe they still retain their user accounts).

Here's an article including a report that the White House has cited: https://www.theguardian.com/world/2021/jul/17/covid-misinfor...

The report[1] is quite readable; here are two quotes from the executive summary:

"Analysis of a sample of anti-vaccine content that was shared or posted on Facebook and Twitter a total of 812,000 times between 1 February and 16 March 2021 shows that 65 percent of anti-vaccine content is attributable to the Disinformation Dozen."

"Despite repeatedly violating Facebook, Instagram and Twitter’s terms of service agreements, nine of the Disinformation Dozen remain on all three platforms, while just three have been comprehensively removed from just one platform"

> Since gun violence is a "public health issue", surly the same reasoning would apply.

That is an insightful comment. My opinion is that guns and people with guns kill people, so this could warrant further exploration.

> Where's the boundaries of what constitutes a social media platform? Does that include payment networks like Venmo? Do you see how easy this can cascade, both in terms of content and in terms of the in-scope platforms?

> I don't understand social media to be the proximate cause of vaccine skepticism

Yep, I think you're right; it's individuals and their behaviour (especially folks who can attract, charm and influence a large audience, regardless of social setting) who are closer to the cause, not necessarily the platforms themselves.

But that said: the platforms are well aware of these kind of people, and have been for years. That they don't do anything about them, I expect, is down to the fact that those people are vital for the growth and engagement of their platforms.

They know the root causes and I am fairly certain that that knowledge will be well documented (or, if they are more careful, known and discussed without being written down) within their company growth strategies.

[1] - https://s3.documentcloud.org/documents/21011322/disinfo-doze...
It is worth to add the Joseph Conrad was a Pole whose family fought against Russian colonialism.
What does the article (about electrical infrastructure) have to do with parliaments in the title?
That’s a pretty old idea, but Intuit and H & R Block have spent substantial money blocking that legislation
Think of literally any piece of equipment that needs a human operator to operate it. If we had the software side figured out, none of these machines would have human operators.
Haha, yeah, it's why I like this handle, it's very rarely used anywhere.

As for support, I do encourage people to join the Discord or head on over to the L1Techs forums as I won't really be monitoring this very closely.

Edit: I mean I am at the moment because I am super stoked to make #1 on HN :D
It's interesting that I never played this game or heard of it until I was older and had limited time for games. Part of its appeal to the American audience will definitely be the historical setting that y'all learn about in class, which has great significance to you.
> Wetness can definitely screw up a paper map

This is why map shops have a laminator. It's always worth the extra.

> if it's currently snowing or raining I'd much rather be using a phone than actual paper

I wouldn't. Even with a fancy new waterproof iPhone, face ID won't work with all my gear on, the screen touch sensor is all over the place, and that's after I've taken off my glove.

You're not wrong that phones are often more convenient. If I wander off a poorly marked track, OSM & GPS is my plan A to get back. When it works it's incredibly efficient. But the first time you've been leaning on that GPS a bit too much, you're out on your own at 10% battery and you don't have a backup, the map and headlamp solution begins to make sense in a very visceral way. I'll carry both phone and paper even for daywalks unless it's a super clear track. It's not a matter of "forgetting to bring a map", it's a basic item like water.
For more about the game and its contribution to computer games, I highly recommend Jimmy Maher’s excellent blog: https://www.filfre.net/2011/03/on-the-trail-of-the-oregon-tr...
It doesn't look like a very complex application, but already has a ton of abstractions, essentially building your own, unproven and unreviewed framework.

Also I think you got a typo at
https://github.com/labmlai/labml/blob/master/app/ui/src/view...
You could shorten that down further to just "One day a Spot robot will have a gun."
Before thinking of removing the RDBMS; replacing itwith a NewSQL/NoSQL; or trying to horizontally shard, ask yourself: what is the performance I really need?

* Read-only queries can easily be scaled out to read replicas.

* Write transactions.

As an example of numbers publicly available, GitLab.com runs more than 250K read-only txs and more than 60K write txs on a single Postgres cluster, with room for further vertical scalability [1].

Do you need millions of transactions per second? Then go ahead. Don't? Then ou can scale very very far with a properly tuned and administered relational database like Postgres.

[1]: https://about.gitlab.com/blog/2020/09/11/gitlab-pg-upgrade/
You can turn this into an Apple whine fest if you like but that has absolutely nothing to do with simplifying printing. Reality is that 99% of printing is a person clicking a button because he wants to have a piece of paper that shows the things he sees on screen.

You don’t need the insane complexity that is Windows printing for that. But you do need someone to say this printer driver is old and no longer supported. Now you may want to believe in a dream where your precious inkjet from the 90s will be supported forever. But just like Windows 10 dropped support for a ton of these museum pieces, so will Windows 11. And you can blame Microsoft (or Apple) for that and they’ll just point to the manufacturer.

Believe it or not, we are heading for a future where operating systems will not let manufacturers run their crappy code in the kernel or in privileged processes just because that was a right they had 20 years ago. It’s unnecessary and dangerous so it’s going away.

Your iPad does not support your cheap printer and Apple isn’t going to fix it. And guess what happened? The new cheap printers that are in store right now do support AirPrint so iPads can print to them. Because customers demand it. It’s not rocket science.
One example is the most classic solarpunk novel, the Dispossessed by Ursula Le Guin. It deals with the tension between a capitalist society (not really cyberpunk) and a anarcho socialist outer planet colony on the corresponding moon. It doesn't paint the alternative society as a perfect utopia. It has its strengths and weaknesses. And it deals a lot with the cultural chock of someone who travels between. It doesn't deal that much with environmental issues though.

And I feel like Cory Doctorow's walkaway is a lot like this. I bought it but I haven't gotten into it. His writing style can sometimes throw me off a bit.
https://c19ivermectin.com/
> No, that's not my premise. You can't write a non trivial rust program that doesn't use unsafe in it's dependencies, often the standard library.

Same difference, because the use of unsafe is transitive. There is no distinction between "unsafe-but-part-of-the-standard-library" and "unsafe".

> But this is true of every other programming language I'm aware of. So if you want to define memory safety to be something never achieved in practice, fine, but that's not a useful definition in my books.

I don't. I already made that distinction further up in the thread, you can read that and reply there if you have any objections.
Could anyone point me to studies/research on how different parts of the world will be affected by climate change ?

I would like to know how the place I am currently living at will be different now vs 10-30 years from today.
I have a lot of respect for the VFIO crowd but speaking as an administrator of Linux systems myself, I didn't ever find the effort or pain worth it. I run a native Windows 10 system for games because the last thing I want after a workday of fixing corporate systems is having to fix my own system just so I can chill out and play a game.
Totally agree there as well.
They'll decarbonize the poor
Takes me back to the (very early) 80s learning machine code before I had an assembler program.
I'm doing this with NixOS and too, it was really simple. NixOS unstable hasn't been problem free though, it breaks quite often in the unstable channel, most usually though I just roll the channel back and wait it out. Right now I'm stuck with kernel 5.12 because nvidias shit Linux driver support.
Your theory is big booze and government corruption creates a problem of alcohol. Mine is that culturally many people really like to drink as an emotional salve. I didn’t ascribe the entire problem to it, just offering an additional or alternative cause, of which there can and must be more than one.

Throwing around accusations like intellectual dishonesty sorta doesn’t help conversation.
Yup, this is a good option too, makes it easy to debug/diagnose when things go wrong with the guest VM too.

Just note that not all multi-input monitors are equal though, a small minority appear to the GPU as unplugged when the input selection is changed.
Volumouse – control the sound volume with a wheel mouse on Windows
This is great until you have a tenant too large for a single shard. It’s pretty difficult to perfectly shard relational data. At some point you’ll run into a need for cross shards queries.

I think for most workloads, this approach should work for a good long while.
Miglior corso SEO avanzato italiano
They're flooding the market with good, very very cheap smartphones - it's no surprise.

Especially for older people that don't need $500+ flagships, a $150 Xiaomi is more than sufficient. I see them a lot nowadays.

Makes me wonder if it's sustainable.
I really like their approach.
This seems too vague to me, like a lot of philosophical posts out there.

> For example, if it is true that Aunt May believes that Spider-Man fights crime, then even though Spider-Man = Peter Parker, it does not follow that Aunt May believes that Peter Parker fights crime.

If you can't substitute Peter Parker for Spider-Man, then they are by definition not equal...
What makes it dangerous? Genuine question, I've never summited a mountain. Although I did get a fair way up Mount Snowdon before some people coming down strongly advised me to throw in the towel and start my way down before it got dark.
If it goes down the owners do the company have in a sense “won” - they sold their stock for more than what it was worth
But BBK Electronics is a private company while Xiaomi is a public traded company - so this news article is in favor of speculators / shareholders of Xiaomi.

You can always try to display the statistics in your favor...

It should also be noted that Canalys lists Xiaomi as one of their clients - so, one could argue that Canalys has a conflict of interest.
I'd echo the sibling comment, but also add that thousands a month isn't that much if you have a profitable idea that is internet scale. Thousands a month is the cost of one software engineer.
How does uBO accomplish this. Perhaps certain requests are necessary for ads. If true, then one way to avoid the ads is not to make the requests. This a guess: When we MITM our own traffic on our own network using a root certificate we make ourselves with openssl, the graphical browser may try to annoy us and makes us "click-through" a warning. It may effectively block a request. If the request is for an ad, then ...

TBH, I am not convinced that I have a solution that works on every video. This is why I ask for examples. However I never see ads with the videos I watch, so it does work on some. I generally do not watch stuff that is heavily commercialised. Also I normally download the entire video before watching; I dislike so-called "streaming" and Javascript video players.

I need more examples I can test. All the videos submitted to HN seem to work. I need other examples.
I guess the "program" makes sense as it was apparently supposed to be a 4GL (or is it 5GL?) where the entire thing would be designed through a UI:

> BANCStar actually came with a "screen generator" that was supposed to be used to construct applications. But the 5.1c version of the generator was so limited that experienced programmers soon began to pry off the covers and modify directly the intermediate code that the run-time module actually executed.

In that sense, they're basically editing the raw bytecode files, for something with less than great semantics but those semantics wouldn't really be visible / a concern if a generator program would be managing them.
Or... how a child pageant queen would look in a casual attire.
> And btw, you can opt out of ads personalization on https://adssettings.google.com/

ads are not unethical per se. what i find unethical is the on by default tracking apparatus/personalized ads following me around and trying to learn what i like/want. show me random ads like billboards first, and if i want tracking, i'll tell you.
It does not matter. Shareholders must take into account private competitors.

This article was labeled wrong and missed the biggest company.
Just like we saw with the lockdown policies.

Heavily tax mass transit but allow private jets, etc.
> I'm not entirely sure what "livres de collections" are, but in context it seems to mean fancy hardback editions of works, like those put out by the Folio Society [2].

It doesn't just means « fancy », but also old and rare. In a French speaking context, loose Pléiade prints (the default « fancy » edition) might not gather much interest unless it's sold as a whole collection.

On the other hand any good quality early edition of the well known writers of the 18th or 19th c. is worth at the very least a few hundreds. If you have a first edition print of any of Jules Verne's books by Hetzel, that's worth tens of thousands. A full copy of the first or second edition of the Description de l'Égypte is worth hundreds of thousands.
Not really, if you count a vendor, and not a brand, the whole of BBK group has long been the №1
Chromium like
https://www.srware.net/iron/

Gecko like
https://github.com/muslayev/icecat-win64

others
https://www.netsurf-browser.org/
https://www.radsix.com/
https://otter-browser.org/
Does anybody here have a tip how I can run virtualized OSX like this using the internal GPU of a notebook?
Create a desktop shortcut to "shutdown -s -t 1" it'll keep shutting down even if an application might try to keep the system running.
IMO This article is a mess.

Starts with an interesting premise, the foundations of logic (or rather, what people are taught as the foundations of logic) introduces unspoken assumptions. Then it goes on to illustrate with the worst example I can think off.

modern physics’ mathematical representations [...] tend to insinuate an eternalist rather than presentist conception of time.

I don't know which modern physicists he talks about, but pretty much any physicist will tell you time has a starting point, and none will make any claims to the existence or non-existence of an ending point. If anything, the lesson from modern physics is to enjoy the (relatively) brief period of time our planet is hospitable to humans.

Then it descends further into an unnecessarily jargon that can only be described as a debate about the sex of angels.