skysight-inc/HackerNews huggingface dataset:
> The writers all talk about how hard it was to write any sort of interesting story when you were forbidden from showing conflict between the main cast of characters.

And the show was all the better for it. Writers are lazy, too, and conflict between main characters is by far the cheapest way of creating drama, and the main way fiction differs from reality. Being strongly discouraged from using this shortcut is what gave TNG-era Star Trek another unique feature, that's almost unseen in shows and movies (sci-fi or otherwise): the main cast, and Starfleet in general, are portrayed as competent professionals who are good at their jobs and work well together. It's kind of what you'd expect from people whose dayjob is flying around on FTL-capable WMD platforms.

But yeah, Roddenberry had various peculiarities that needed pushback on. Constraints breed creativity, I guess?
An assassination is successful. An attempt is when it fails.
I get that this is cool and all but I just wish they didn’t have to tell me with a modal every time I open a page :(
You realise your comment history is public right? Anyone raging against the woke almost a year ago isn't switching their vote to Trump today.
How many non-tech people actively choose dark mode?
Given US presidential elections have, twice in my lifetime, been won by person with fewer votes than another, this would not be a concerning change.
Most people will be scared if they hear nearby gunshots and shit their pants if they get personally hit.
An anecdote: I haven't checked recently, but at least until 2015 there was a Belgian govt web site for the register of companies that would yield 0 companies in the city of Aalter.
The reason is not hard to find. In fear of SQL injection they would filter out all SQL keywords; in this case "alter".
I store the raw input in my database, but run it through bluemonday before rendering it. Simples.

https://github.com/microcosm-cc/bluemonday
I might be at a loss here, but I cannot use dark-themed webpages. They are totally blurred and unreadable for me...
My only hope is that light-themed documents will be kept
And how many can't really use it because of accessibility and vision issues?
You say win-win but what is the win of having a seperate internal ID specifically?

It is possible to do as you say ofc but what is the advantage?
I still think dark mode should be a browser feature. Not a feature of every website.

In a broader sense, the whole design of a site could be selectable via the browser. Similar to how CSS Zengarden works:

https://www.csszengarden.com

But with layouts that are stored on the user's computer and applicable to every website.
Does Germany get as bad of storms as the US? This article seems to say the US has worse weather than Europe:

> the colonists who arrived in the New World from Europe during the seventeenth century and found North American weather to be, in a word, hellish.

https://www.neh.gov/article/storm-patrol
We’re not even using hydrogen, the most dense fuel, in rockets. Why would you use anywhere else? Cars, trucks, EVTOLS and even planes are getting batteries which are superior in most aspects.
Chrome makes CPU info available to code running on *.google.com
> iPhone transcribes what they're saying in real time and I can decide to pick up.

How does this work? Is it a carrier feature?

On my iPhone, if it goes to voicemail the call is done and the display goes to sleep. I have to go looking for the message in the voicemail to interact with it.

I’m in France and have never seen this on the two carriers I’ve used (Bouygues and Free).
"... Since Android manages just fine on that front with full JIT"

How do we know this? No vulnerabilities/exploits reported using these?
"Literacy" is a ridiculously low metric as per the UN, I've read that a grade 6 reading level easily qualifies.

So it's not really a case of "low literacy skills" in terms of offical stats, but that the stats are lowish.

But what does one expect? For 100 IQ to be an average, there will be many below that number. The goal is to train all citizens as mich as possible, and literacy stats are to reflect that attempt.
I don’t know about that. My washing machine could be a general purpose computer but I didn’t buy it for that.

I didn’t buy an iPhone to be a general purpose computing device for the same reason
How many non-tech sites do have it?

Editing incorrect argument: More importantly, how many allow setting a specific contrast instead of just “dark mode” as-is.
So why it’s not used in rockets?
Or helping your uncle Jack off a horse.
CSS zen garden worked because you had people writing different styles for a single HTML document. How would you write styles for every site? Sure CSS does colors, but it also does a lot of other stuff that isn't easily transferrable between websites.
Not sure the escaping/sanitizing proposition can hold a candle to the overwhelming performance dumpster fire that is modern web dev.
Compact Fenwick trees for dynamic ranking and selection (2019)
We were contacted by a bug hunter once stating he has access to our database and asking for a bounty for his finding, he even provided a sample of first 100 users from the users table in the database.

After some investigating, I figured out how did he obtain the data.

He was one of the first 100 users, he set one of his fields to an xss hunter payload, and slept on it.

After two years, a developer had a dump of data to test some things on, and he loaded the data into an sql development software on his mac, and using his vscode muscle memory, he did a command+shift+p to show the vscode command bar, but on the sql editor it opened "Print Preview", and the software rendered the current table view into a webview to ease the printing, where the xss payload got executed and page content was sent to the researcher.

Escape input, you never know where will it be rendered.
Is the code available by chance?

See you on the shore next Friday :)
> my primary concern with internet ads today is malicious content

I use Qubes OS [0] and open random websites in its auto-configured disposable VMs. Makes this problem irrelevant.

[0] https://qubes-os.org
Ask HN: Why are PWA user install stats so hard to find?
I want to know how many people install progressive web apps. All of the sources I could find say the same things over and over:

- "...market is expected to reach a value of 10.77 billion dollars."

- "PWAs cater to over 6.3 billion smartphone users globally."

- Dramatic improvements in speed, conversions, retention rate etc.

These stats don't tell me how many users and what proportion of users actually add PWAs to their home screen. For companies like Starbucks who have deployed a PWA I'd love to know what proportion of their web traffic ends up installing the PWA, and how it compares to native for example. Does anybody know where I can find this information generally?

The closest thing I could find to real data is this:

- Apple said PWAs had "very low user adoption" when they recently cancelled (and then un-cancelled) them for EU users.

- A Chrome OS blog post where they say "Since the beginning of 2021, desktop PWA installs have grow by 270%" (published early 2022).

Thanks!
Fair enough :)

I was assuming giving the images a transparent background, but I don't know what pandoc supports.
Judging by what I see at work, where people seem to use dark mode during daytime in teams, outlook and others, which isn’t the default AFAIK, I’d say quite a fair bit.
It's met with ridicule now, but the value of ridicule has slumped in
30 years.

Ian Levy, when he was at NCSC spoke about "shame as a weapon against
Big Tech". But he missed a crucial flaw - they do not give a fuck.
Shame and ridicule only work in societies where people have dignity,
self-respect, mutuality and care.

It's true that nobody has any reasonable expectation of privacy when
using a Google smartphone. But the ruling talks about "willingly".
What does "will" have to do with modern life where people are badgered
incessantly to surrender their choice, boundaries, and dignity?

To exercise "will" these days, is quite a big deal, and usually means
going against the flow and suffering some loss.
There are extensions like dark reader and I use them.

But you cannot just flip colors - pictures for example have to fit their background, for not breaking style.
Interesting - what specifically is missing? I’m thinking we’ve got all of scala’s pattern matching since JEP 406 (2021) but I don’t write Scala so there’s maybe a feature i don’t know. Would be interested to know.

switch (thing) {
case Integer i when i > 0 -> println(“Positive…”);
case …
}
there are A LOT of settings in ios that can safely be disabled while retaining "phone" functionality and conserving energy/data
It's one thing to have the parts designed and moulded, the electronic PCB boards to be made, the software to be written, assembled and packaged. The other thing is storage, warranty, distribution. But also selling and advertising should be kept in mind.

Up to here, it could be done as a one man job. If you're a multitasked and multitalented in using all the software for design and production. Typically it's not a one man show. So how much people are needed to be paid in such a local company?

But then, it goes to the regulatories. FCC approval. Some states special regulatories. Want to sell it world wide? .. Europe? .. EC sign, even more regulatory stuff like upfront waste-fee, etc.

What about the licenses and patents? Even the app communication with some devices can be problematic in terms of patents..

So, parts design, parts production, parts assembly, packaging making and packaging of the product itself, is not that big problem and can be done locally or outsourced it locally.

Also the whole regulatory stuff and danger analysis and what ever is needed before you actually can sell to customers, can also be done or outsourced locally.

... Just some money is needed for it. Your friendly local outsourcers also want to earn some money for a living.

So you end up with big development costs per device. No one will buy it for that costs.

That's why you typically search for partners, who have some experience in rapid development and prototyping. When you've found them, they also experienced in final production and packaging. And because it's their job, they often also know about the regulatory laws and/or are experienced here and use f.e. less plasticizers in the rubber..

Most of the times you'll find such partners in eastern/asian world. Because the wages there are lower, so a company can exist even if it doesn't make own products.

It's not the right question you ask. The right question would be "how expensive will it be to develop and produce locally". Because it's all about the money.

(I saw in a comment of you further down "us manufactured microcontrollers < $100"... That's exactly the wrong approach :)

Compare it with the costs somewhere else. The aim is to preinvest as less money as possible and to earn as much as possible per product. Don't forget all the other costs that will be pile up and must be turned over per device. So you might really end with 10k-20k per device. How much devices are planned to be sold in year in US? )
We could have saved a fortune in electricity if dark mode was a default and as a standard rolled out decades ago across everything.

One of my old CS teachers would rant about googles evil choice of white background.
I've been using Dark Reader for a long time and even donated for their amazing work. It is my favorite Chrome Extension by a large margin.

https://chromewebstore.google.com/detail/dark-reader/eimadpb...
> This means more than half of Americans between the ages of 16 and 74 (54%) read below the equivalent of a sixth-grade level.

It’s like the second sentence in the article.
IQ has to be 55 or below in order for literacy to be unattainable, which is less than 1% of the population. Between 56 and 85 adds difficulties and requires extra education but is not insurmountable. That's about 15% of the population.

130M in the US is over 50% of the adult population. That is not a matter of statistical distribution, that is a matter of policy failure.
If this is hinting at 1-in-3 American adults being somewhat culturally deficient or otherwise intellectually challenged then that feels about right.
Speech to text exists, they should have stuck to that.

Voice notes are garbage. Sorry I'm in a noisy place, I can't hear your text message.
I have never sanitized any input, full respect to whatever text there is.

It's simple - html/xml/javascript/json/url is not text. You render it with whatever tools you have to - and that tools happen not to be concat. You render xml - use DOM, xslt, etc. html - same story, use whatever templating engine you wish. json - use your own model and render it to json. SQL - prepared statements.
you don't mention the top one, pytorch, which is behind most AI
If you have done ML with PyTorch or Tensorflow you will know how much multithreading can improve data loading performance. Currently multiprocessing provides the necessary parallelization of data loading but it is painful and riddle with bugs.
I have a hard time believing that one third of any user base ever changes any particular default setting, much less something this buried.
Astigmatism? I have a minor one but points of light on a dark background is the best way to see it.
I (tech) hate dark mode. My wife (very non tech) uses it.
It's my understanding that most monitor types (except CRT and OLED) are literally just a filter over an always-on white backlight. Is this not correct, or is the light somehow re-absorbed and turned back to energy?
Security for a long time has been log parsing and auditing for compliance (pdf reports) and some tooled posture report !! It took a while security team to do this tedious task now an ai with 1/10 price can do this !! And can make big companies rich !! Do it once and give it to all !!
Speech to text doesn't require AI. I've had it on my Google keyboard for a very long time. Its always been accurate too.
That’s because everyone is different and one guys dark mode is another guys eye horror. Sites implementing some dark mode is like public places implementing some accessibility as they see it, with different ideas in every place.

Dark mode should be a set of settings tuned to every user, like glasses. Not a designer’s hallucination about matrix and hackers.

As a matter of fact, I’d like to have similar settings for bright mode as well. Cause designs get out of hand in both modes.
The Experience of Deploying Next.js Apps on Cloudflare
It's more nuanced than that.

Modern displays do use a backlight, but might not drive it at full brightness for mostly not-white displays.
Interesting fact: the DPRK used to issue three parallel sets of coins and banknotes. One was for locals, one for visitors from other Socialist states, and one for visitors from Western states.

The three-tier model was a little but unusual, but the idea of a secondary currency for foreigners was not that uncommon.

One other reason for it is to ensure "minimum spend" -- some countries required you to buy a certain amount of the foreigner currency at the official exchange rate as part of the entry process, even though the black-market rate for "local" currency was far more competitive.
Me too, although I use bookmarklets instead of extensions.

A bookmarklet can change images too.

We would just have to decide on an algorigthm for the images.

For example here on HN - the algo could detect the similarity between the orange in the title bar and the orange in the Logo. And change the logo accordingly.

Or the site could add some semantic info on how the colors should behave.
>We could have saved a fortune in electricity if dark mode was a default and as a standard rolled out decades ago across everything.

How - you need an OLED display for this to be a thing, The ones with backlight (well the extreme vast majority) prevent the light from going through.

>One of my old CS teachers would rant about googles evil choice of white background.

That's awkward - get a display and measure the input current with different modes.
Makes sense. If I pick up an 8-inch or 5¼-inch and put it in a a maintained drive it WILL read it, try that with a writable CD/DVD. Don't get me started on the bit-rot you can expect from a 2024 NVMe
And it could have a value equal to that of MySpace too. Ten years is too far in the future to pontificate on Company values.

On the other hand, if the the US Dollar goes the same way as the Zimbabwe Dollar, that value could be quite accurate.
They can only build so much !! They did all the foundation work now its all makeup on the pig mode
> The iPhone SE's popularity is driven by price, not the demand for a smaller phone. The iPhone SE is 5% taller and wider than an iPhone mini.

seems like you are talking about the "new se" models, not the original one that everyone wants.
So somehow they managed to create shittier system despite having 30 years of OS building behind their belt is what you’re saying?
There's another one that works 100% of the time.

Do client server rendering. Send HTML, then query backend for content. Something like p.textContent = ... It's safe.

It's pretty much the same as what a prepared statement does in SQL, send data and code in different channels
>But what does one expect?

I mean, at least a little bit more humility and respect for knowledge and expertise. One of the prevailing sentiments these days seems to be "do your own research!" which seems to me pretty difficult to square with the fact that the national recommendation for medical guidelines is to write at a 6-7th grade reading level to make sure most people understand the instructions.
>not ever accessible to any google server

How can they use it for ad targeting then?
Can people not still rap their knuckles upon your chamber door?
And securely provision it and access it
> Do you really think they were going to take over the government if they took over the building or stopped whatever process was going on? Why?

No, and I don't know anybody who thinks like this, because it's a misrepresentation of the insurrection that happened. The danger was never that some random person sits down in a government chair and suddenly becomes the new government.

> The military would have taken back that building in 10 seconds, and the process can be postponed till the next day or the next week.

And that's what the republicans counted on - they wanted the election process to be interrupted, which would (according to their reading) have allowed Pence to count the fake electors they provided. And who could have stopped them? The supreme court they stacked? That's the insurrection. Do you disagree with any of this? All of it is quite well documented.

> Nothing was at danger, that is not how a country functions. You need an armed militia or at least half of the military to take over.

If not for the actions of a few individuals, the sitting president would have literally overturned the election results. That's absolutely a huge danger to the country. You don't need an armed militia if half the politicians are working together with the insurrectionists.
My daughter does, and she is a rare example. I consider it a waste of time/resources. Brings me back to black/green displays.
> If this is hinting at 1-in-3 American adults

130m is about 1-in-2 per 2020 census.

Even more frightening, imho.
When I want to use a site in darkmode, I always use this code as a bookmarklet:

s=document.createElement('style');
s.textContent=`
* {
color: #2c2 !important;
background: #222 !important;
font-family: arial !important;
}
`;
document.head.appendChild(s);

I use a lot of bookmarklets, so I wrote a tool to convert clean code to bookmarklets and vice versa:

https://www.gibney.org/bookmarklet_editor
because we made the rules as such, not because of a universal/natural law
I have looked at it. I don't want to deal with that. I would be happy to pay a premium if an OEM supports it. I neither have time nor patience/passion (more of this one) to tinker around anymore. Besides there is this risk of apps not working (esp. banking/finance apps) and then I will be screwed. And I have a Pixel 5 (as a secondary phone) and I am never buying another Google made/sold phone ever.
According to FairVote, the organization behind RCV in the US, RCV is the only option that is resistant to strategic voting.

https://fairvote.org/resources/electoral-systems/comparing-v...

Disclosure: I am a member of FairVote
> a big difference between me enabling an app to use my data for the service I believe it provides and them using it for everything else.

Making this distinction a legal requirement was a very important part of the GDPR.
One advantage is to use more compact data type for performance-critical paths. Table ID datatype will be used not just in the given table, but also in all tables referencing given table. Table ID is always indexed and foreign keys very often are indexed as well, so this datatype "leaks" to the many database indexes. If your index is compact, it allows for better RAM caching and generally faster queries. And, of course, faster writes.

Another advantage is that you don't need to "think" about using sortable id, numeric serial id is sortable by default. It also helps with index size and insertion speed for primary key index and often foreign key indices.

Using completely random UUID leaks no data about record creation time. It might not look like sensitive information, but generally it's better to be on a cautious side about leaking information.

Generating sortable ID is far from generally accepted solution. You need to find obscure libraries or write non-trivial code yourself for all languages you're using. It'll be solved in time, as UUIDv7 became standard, but we're not there yet. UUID v4 is available in any language (and generally trivial to generate).
And there should be a ban on big washing machine locking down their washing machines. People should be able to use the hardware for what they want.

It's a pretty pointless thing to say "I didn't buy an Ipad to do X so why should it be able to do X?". Of course you didn't buy your ipad to do X. It's not capable of doing X so you'd be pretty stupid if you bought it for that purpose. That has nothing to do whether the manufacturer of the ipad should be allowed to control whether you can do X.
Is it OK now?
Portable, as in Windows native is not supported?
Statistically, you can't rely on having a non-repressive government for your entire lifetime. The US has been fortunate in missing out on it for quite a while, but even then there has been HUAC and J Edgar Hoover, even if they didn't take over the whole government.
The key is that for every Apple, there are a ton of companies we don’t even remember the names of that went out of business or otherwise did not beat the SP500.

Put another way - if you can reliably pick the next Apple before anyone else, you should go work in finance and make tons of money.
Seems to cause issues with black SVG pictures for now

Like in this: https://en.m.wikipedia.org/wiki/Hopf_bifurcation
In germany we have tapestry that blocks hf signals.

I could not find an English shop that sells it with nice pattern, but you can always use something like this :

https://consciousspaces.com/products/yshield-hnv100-emf-shie...
I would say most people would not consider WSL to be "Windows".
Fair tradeoff if you ask me
I don't think this is sufficient. Scripts could still do bad things, for example mining crypto.
HTML that uses sane markup, ids and classes goes along way towards making CSS skinnable.
> I think they should try to blow us away with something really small and innovative.

absolutely!

give me back a phone that easily fits in pockets and doesn't pull my shorts down; it's doable.
What about the prices? Is Polish one cheaper?
> shame as a weapon against Big Tech

Shame is far more often used as a weapon promoting Big Tech. I am constantly ridiculed for not having Facebook or Whatsapp accounts, and many people that I meet are suspicious of me. Try meeting women on Tinder without Whatsapp.