skysight-inc/HackerNews huggingface dataset:
Telegram: Pinned Messages 2.0, Improved Live Locations, Playlists and More
If I understand correctly, it's a printf-style function for which the %g format code outputs the shortest decimal string that round trips. This implies that it would output no more than seventeen significant figures, regardless of the requested precision.

The first thing I notice is this comment in a later changelog:

> I believe we have a very fast numerical conversion that appears to be reliably generating about 15 to 16 digits out output [last digit may be off by 1 or 2 in typical case].

If the last digit of a fifteen- to sixteen-digit output is off by one or two, are we sure it round trips?

Second, the test coverage for this feature in tests/format.cpp looks pretty sparse, and it's not obvious to me how the output is verified.

Interesting find. I may play around with this later.

Edit: I tried the test cases from here:

https://www.exploringbinary.com/the-shortest-decimal-string-...

Here's the result:

format="%.30g" output="0.1"

format="%.30g" output="50388143.06823721984"

format="%.30g" output="54167628.18"

format="%.30g" output="9161196241250.051072"

The first and third cases output the correct string. The second case outputs nineteen digits, instead of seventeen, and does not round trip (i.e., it rounded incorrectly). The last case outputs nineteen digits instead of fifteen, but does round trip.
What do you use to host nextcloud?
US already had a civil war. It is sort of remarkable just how stable the republic been since founding.

Maybe US is due for another go. Unfortunately this time there will be no neat geographic divide and it will probably resemble Russian civil war. That scares the shit out of me, I am Canadian btw. Delegitimization of the elections, stuffing the court, non-stop riots, armed militias. Good vs Evil narrative.

This Pandemic has not been that bad, imagine if this thing was more deadly.. there is no unity, republic verges on the brink
Their response to "How do I test Svelte apps?"

"We don't have a good answer for that yet, but it is a priority."

I was interested in Svelte until I read this. When they have a good answer, I'll be interested again.

https://svelte.dev/faq#how-do-i-test-svelte-apps
If we are going to fix this, we need real suggestions instead of just complaining about it. For example

Policy proposal:

Maximize the amount of people that can see a given post / news article. People would have to resubmit in substantially their own words any information they glean that should be passed on beyond that limit. E.g. someone posts a news article that reaches 10,000 people. The 10,001st gets an error saying it has already reached maximum views.

One of the initial 10,000 couldn’t just copy paste what they saw, but would have to generate unique content to reinitiate an information node that would also have a 10,000 view maximum.

This would not be great for national news sites, but it would reinvigorate local news, because that would be the only way for the information to spread.

Decentralization is key.
Is it also free to deploy? Can you deploy it on Linux?
Not the OP, but: Haskell's type system is great, and you can write a lot of functionality in not much code. It might be hard to find many developers who will feel confident picking it up. C# maybe, it's quite mature, and has the benefit of interop with F#. But both C# and Java suffer from the greatest indignity to programmers: null.
Last time Google killed something someone pointed out that we're still mad that Google killed Reader and honestly that was dead on for me
Good callout! Adding "dev" files for facilitating REPL development is one way, adding something called "rich comments" is another one (that I tend to gravitate towards) where you have comment blocks (actual code, not commented code) in the same ns as the actual functions, exploring the usage of the functions. Was recently on the HN frontpage as well, https://betweentwoparens.com/rich-comment-blocks - https://news.ycombinator.com/item?id=24718478
Direct link: https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/t...
Sorry but this goes way behind saying things people don't like. For example the numerous, well documented trips to eastern european ex-soviet states to dig up dirt on his political opponents.
As of this morning, a third party has verified the DKIM headers on at least one of the messages.

https://dailycaller.com/2020/10/29/cybersecurity-expert-auth...
Its not fake news if its true but inconvenient, so there's a pretty firm line there. There are plenty of recent examples of legitimately fake and (intentionally) misleading content that has been propagated on Facebook, I assume anyone with any right wing friends has been inundated with it. But in addition to that, the simple protection against censoring true notions that annoy the powerful is transparency. Complete transparency with when and why and how things are blocked would be a start. Blocking clearly fake content, banning people who (repeatedly) post it, and being transparent about the reasons seems like a fair progress with a fairly clean line between it and proposed dystopian outcomes.
Wise Traditions Podcast Episode 274: Is the Coronavirus Contagious?
Only for certain kinds of workloads, definitely not for what I do with JavaEE/JakartaEE/LifeRay, ASP.NET (SharePOint, Sitecore) projects, alongside RDMS like DB2, SQL Server and Oracle.
Awesome. Can we have containerized games at some point on Windows too? It’d be great to be able to keep a game and all its mods and extra dependencies together so I don’t have to worry about it breaking because I did a Windows Update.

Microsoft has demoed graphics accelerated container-ish things with Windows Sandbox, including running full speed games, although I don’t know if it’s open to developers.
Seems to me like this works on the same principles as these big machines used to make plastic netting for fruits:

https://www.alibaba.com/product-detail/Fruit-net-machine_620...

But $300 is a lot more accessible than $5,000, and it's a lot more customizable.
You're onto something. I try to clamp down every unnecessary email, marketing message, notification, etc. that I receive and I still feel like I'm in a fog of "engagement spam." Instagram let's me know that some random person I might know just got on Instagram. Photos reminds me of some random dinner I had this day five years ago with an ex. Reddit says this random topic I don't care about is "trending." Facebook seems to have moved half the news feed into a parallel feed in the "notifications" area. "Someone you barely know just posted for the first time in a while, check it out!"

I'm borderline anal about managing which notifications I allow if a particular service lets you adjust them at all, but I feel like I'm constantly turning off some new one that they must have added and opted me into by default. I know I can turn them off for an app entirely, but sometimes I legitimately want a "ding" if a friend sends me a message. Yet I still feel like I'm in a constant haze of pointless "notifications" that are not about some event I need or even want to know about it. It's just attention theft, where a hostile computer program acts of it's own accord to cause my brain to have thoughts I didn't intend to have and waste my precious attention. I didn't ask for it to remind me of something, or let me know when a specific thing happens. This isn't even a "notification." It's just spam funneled into a channel that spammers know we haven't completely tuned out yet. They'll strip mine it until nobody bothers to pay attention to notifications anymore, and then they'll move to the next channel that still has any attention left in it.

If I could request any feature from Apple right now, it would be to treat "attention grabbing" as strictly as it has access to the device's camera or photos. Instead of a blanket "allow notifications," make developers register exactly which notifications they want to send with a predefined message template. Let me easily switch each of those templates on or off in the general settings app instead of having to hunt through the settings pages of the app itself (if it offers the option to tweak notifications at all).
If you are looking for an excellent piece of journalism on that topic, I would recommend this article [0] from earlier this year. His approach to writing parody lyrics is quite interesting.

[0]: https://www.nytimes.com/2020/04/09/magazine/weird-al-yankovi...
+1 for Summoning Salt. I especially liked his Mario Kart Wii video, where he explains the mechanics of the lap counting system in detail.
> Yes, but that's the main allure of Rust.

Not really. That's often touted as the banner feature, but it's the expressive type system that really makes Rust a better candidate than, for instance, Java.
Wise AI say

cat /dev/random > /dev/stdin

if [ self control < affection ]; then

ProclaimAffection()
else
exit

fi
What’s the purpose of requiring authentic arcade PCBs over emulators?
You could be forgiven for missing that the title is "Weird AI" instead of "Weird Al" :D

For the disappointed, there was a nice NYT piece on Weird Al the human a few months ago, which had some details on his songwriting process: https://news.ycombinator.com/item?id=22861977
I largely agree. XPath 2.0 started the downwards trajectory and XPath 3 made it worse.

The things XPath 2.0 and later do improve on XPath 1.0 is the "standard library", most of exslt got standardised in 2.0, and new useful functions got added in later revisions (e.g. contains-token from 3.1 is XPath finally adding the ~= operator from CSS).

Here's the deal though: it should be possible to add most functions without updating the rest of the engine (indeed the majority were originally developed for 1.0). I think some of the functions are designed to work with and around types, which would not be useful in 1.0.
Also as a cheaper alternative one can wrap themself in foil tape.
It ain't done before it can receive e-mail.
Kraan – Building platforms on top of K8s
XPath 1.0 was released in the late 90’s. I remember using it in some server-side XML processing code (Java 1.2?) It did the job where the alternative was writing a ton of procedural code to get at a specific node, etc.
Nice series, iam still waiting for the deployment part :) Especially for the edge device (not a model in the cloud).
But one misplaced comma and your whole site goes down.
There are legions of them. Layoff over 50 is a career-ender in software. Lawyers are just warming up at that point.
‘Smoking Gun’ Biden Email 100% Authentic, Forensic Analysis Concludes
> Journalism has stopped being about reporting what happened, and has become increasingly focused on telling you what to think about what happened.

No, it hasn't become any more about that than it has been for centuries. How it's changed within the recent past is it's become more diverse in the ideological slant of outlets, so every major outlet isn't telling you the same thing to think about what happened, regardless of slight divergences in the information they select to include about what actually happened. So, more of the difference in outlets is on narrative/spin than fact details. This makes the spin more noticeable.
West Virginians were promised an economic revival.  It hasn’t happened yet
I think the idea of somehow using types to express safe vs. unsafe URLs is much less compelling as an SSRF mitigation than using client certificates or proxies to rule them out, which is what shops that are serious about SSRF already do. Meanwhile: I think if you go looking at Rust web applications, you're going to find that they in fact do nothing like this at all --- they're not using magic types as an SSRF mitigation.

Similarly: it's not at all my claim that Rust is somehow more susceptible as a language to SQLI attacks! The opposite thing is true: Rust, as a language, is far better situated to deal with them, because of expressive typing. But that's what could be, not what is. In practice, ironic or not, if you implement the same CRUD application in circa-2020 Rust and in Django, the Rust application is more likely to have SQLI.

The point is that unlike kernel code or browser components, where memory safety is most of the ballgame and Rust is a real game-changer, web application security is domain-specific. The language and its runtime are much less important to web security than what gets built on top of the language. And right now, even though Python is an objectively inferior language, more of the domain of web security is built more carefully on Django than what's available on Rust.
FYI, LWN has a great article about the current status of awk, latest features and future developments https://lwn.net/Articles/820829/
Thank you! This was my exact fear - being a checklist item.
On top of that, it is common to advocate features that Ada/SPARK or Wirth languages for systems programming have been doing for decades.

Although I should make a point that those kind of remarks don't come from the core team.
I personally have had very bad experiences with collaborative editing on Word 365, with it locking whole sections of the doc because someone else is editing them, while in Google Docs even editing the same sentence (e.g. adding items to a list) at the same time Just Works™.
> Rust web frameworks do not let you easily test your application's database access layer nor provide advanced authorization

Can you expand on this comment a bit? I find testing in Rust to be fantastic. Rocket makes for calling test functions simply via standard rust in tests, though you’ll need to build some test harness boot strap for your DB, but you generally end up doing that in any language for functional/end-to-end tests.
Surely inspired by Roobarb and Custard (1974): https://www.youtube.com/watch?v=I4aVXeDg3U4
I'm ignorant to all this (well, I guess I already knew that ETH has smart contracts). Can you point to a basic rundown of what "DeFi" infrastructure even _means_?
I've got a native Google Print option on my Canon printer; makes me wonder how much manufacturers spent on development and how many devices it got shoehorned into.
Why are your games breaking on a Windows update?

At some point you are always going to need hardware interfaces and those are provided by the OS kernel. There's only so much you can achieve with containerisation.
CSV to TSV via robust program, use AWK, and convert back if needed. Then you only have to remember the \\t\n\r escapes, not the whole quoting shenanigans.
> He said, “If you get the awk programming language manual…you’ll read it in about two hours and then you’re done. That’s it. You know all of awk.”

It's hyperlinked to the Gawk manual, but it seems likely he actually meant A, W & K's The Awk Programming Language (1988), which you could conceivably read in 2 hours, as it's a joy to read. I used it and The C Programming Language as exemplars of great documentation when writing my own.
Consider "Ecstasy of Order" about Tetris, and a group of people who play it and have a tournament. It belongs in a top slot also.
He did not say the scientists are overconfident and wrong.

He said they hurt the public trust in climate science when their predictions do not reliably come true.
"Weird Al the human"

I wonder how long it'll be before that distinction needs to be made on a more regular basis.

"Barbara Walters the human not the Markov Chain base AI"
This is the single reason why Google Cloud will never be successful, at least in the next decade. A huge number of software engineers have been burned by being treated as Google statistics. That works great for ads or search, but Google has a reputation as someone you would never, ever, ever, ever build a sustainable business around.

There is a critical mass of people who simply won't use Google in a business-critical setting, and it's growing quickly. Now, that adds any GSuite office which relied on Google for working printers. Is that a lot? Probably not. Multiply that times each time this has happened before, and times the never of businesses wacked out-of-business by Google's automated algorithms, and at this point, I think it's quickly reaching the point where most teams have a Google horror story or two.

It's fine for purely transactional businesses (ones with zero startup/shutdown costs -- for example, one can arbitrage adwords and referral fees).

My guess is that at some point, Google will realize this, either from data or otherwise, and sunset GCE and related services, probably with very short notice, leaving many businesses hanging.

Short of giving a 10-year guarantee of keeping services running at specific cost and service levels, with real liability (not externalizing costs to customers again), I don't see how Google could address this.
Everything you just described seems like reasons to not use CSV files in general, rather than not use AWK on CSV.
> Why does Trump need to be reelected?

The same reason Howard Stern was allegedly so popular. People who hate him listened even longer than people who liked him.
Xpath is so powerful for web scraping I just realized recently. I'd been using css selectors for my occasional scraping needs and never bothered to learn xpath until on day on a whim decided to learn at least the basics.

Man I can now write scrapers in 2 minutes that used to take me quite some time thanks to the power of xpath. Thing like ancestors, contains, the ability to chain, etc is so so powerful. I used to write so many hacks just to do the same with css before.
That's surprising to hear. Do you have any links that go into this (or show benchmarks)? I generally avoid PHP, but I've been thinking of looking into Laravel for when I do need to use PHP.
I didn't catch that title at first, it's not Weird AL, it's Weird AI, as in Weird Artificial Intelligence.

From part of the conclusion:

"Indeed, one of the appeals of the Weird AI Yankovic, if there are in fact any, is
seeing the train wreck of text that is output and deriving delight in the close-but-not-quite-sensical
results. Weird AI Yankovic is a case study in design trade-offs—when to handle failure modes and
when to permit failures—where improvements that reduce the likelihood of failed outputs also make
the outputs “safer” but also less interesting."
Has anybody else actually clicked through some of the links to the topics that are supposedly ready?

Authentication/Authorization - for me, this means something like Rails Devise, which gets you a full set of routes, controllers, and views for user management, including correct session management, account creation, password reset, all using best-practices for handling passwords, session tokens, and reset workflows. Instead, we get a few cookie and JWT widgets. Nowhere near ready.

CMS - they list 3 static site generators. A static site generator is all well and good, but it's nowhere near being a CMS. They not only don't have a CMS, but don't even seem to know what a CMS is or that they need one and that a static site generator is not a substitute.

Database - it at least does have some okay ORMs. But do any web frameworks integrate with them to the extent that you can set up test databases and run test suites with them automatically? Do any of them support validations? Last I checked, Diesel's support for associations is pretty bare-bones.

I've tried out Rocket. It's all right for making relatively basic API apps. And it still doesn't build on Stable yet, though that's hopefully coming soon. I like Rust for a lot of things, but it has a long way to go before it can compete with full-fledged web frameworks.
WEF says these are the skills employers are looking for now right up till 2025
This is a deep and complicated question, but the top-line answer is it's the best way to prevent cheating (note I didn't say perfect). A big part of these classic games is how the random events are generated. It would be fairly easy to modify the game in an emulator to more often generate ideal random events, giving you an edge over people playing on the real hardware. So the community agreed that for the purposes of the leaderboards in question here, the game must be played on real hardware.
Timing differences mainly. Plus emulators can be played at a slower speed and then the video sped up later.
I think most of us would legitimately meet the diagnostic criteria for clinical depression if we were trapped in one of those places.
This is the chilling effect of our close economic ties to oppressive regimes. I dont know if we can expect Apple to stand up to China. I think our government needs to do more to set the parameters of our economic interactions with them.
The problem with twitter is the censorship, shadow-banning, feed-manipulation, and permanent banning. Despite your confused opinions, there is no 'setting' to disable any of that.
This seems like a profoundly irresponsible move. After selling expensive snake oil FSD hardware for years, Tesla is putting a flawed system into production that people will trust too much and which will inevitably lead to accidents. This could lead to legislation against FSD and set the whole industry back, preventing more responsible players from bringing their superior products to market in a timely fashion. Maybe a conscious play from Tesla to handicap their more technologically developed rivals?
I agree. I think the original author completely missed the point and conflates lack of mainstream usage with dead tech. If you never run into problems that xpath addresses, of course you’ll never use xpath. It’s not for everyday use. And certainly shouldn’t be billed as a CSS selector replacement.
We used it (first directly, and then via PsychPy) for running vision experiments.

You need to be a little careful about timing, but otherwise it's not bad....
> decouple state from economics.

Nationalizing businesses is the literal opposite of decoupling the state from economics isn't it?
Well, not _completely_:
"A total of 172 specimens were positive for influenza viruses, of which 108 (62.8%) were typed as influenza A and 64 (37.2%) as influenza B."
Reminds me of The pattern on the stone by W Daniel Hillis where he builds a tic-tac-toe computer out of mechanical components. It's a great book for explaining how computers actually work.

https://en.m.wikipedia.org/wiki/The_Pattern_on_the_Stone
You can play with the system in Google Colab.

https://github.com/markriedl/weirdai/blob/master/weird_ai.ip...

https://github.com/markriedl/weirdai

Not sure why the authors don't include these URLs in the paper. Working, open code is a major plus for a research paper. I had to track this down manually.
My work makes a big deal about setting up a printer. IT needs to add each printer by request and they come around with a flash drive of drivers.

It hasn’t actually been that hard for a while, I’ve added the printers I’ve needed myself via AirPrint, no drivers necessary. I feel like the printer world got easy and no one told anyone.
Aren't the writers consciously choosing to monetize their content?
No disagreement with your jab. It's easy to be right once, when you get to choose whether you participate. If you had to speak for hours a day, days a week, you'd certainly be wrong some good amount of the time.