skysight-inc/HackerNews huggingface dataset:
The Yandex data breach the other day revealed swear words and racist language in their source code. I'm not sure what that says about their code quality.
You can use isolation: isolate to explicitly create a new stacking context now. It makes the code a bit clearer because position: relative is used for lots of different things.
Podman is default rootless and Docker is default rootful. It's a fair comparison.
Yeah, I love that series. It’s never actually drawing that religious connection to the bible though, as far as I can remember. Also, I’m yearning for some good, more serious, well-written science fiction…
> Why can't they be automated?

E.g. because of regulatory requirements, chain of responsibility, a paper has to be signed with a pen, etc.
Scala is both more functional than F# (type system has more features) and less functional (more emphasis on OOP). I don’t think it’s a net improvement tbh. Better JVM access is nice though.
Do you have a public example of a link-book repo?
Well, I think it’s probably fair for users to expect a site advertising itself as a great web host for git to not serve stale files over web protocols. It’s kinda the entire point of the website.

Maybe it’s a bit questionable to use the raw feature as a content host, but GitHub has intentionally moved pretty fair from plain old git (I believe people call this a “moat”)

I’m sure there are plenty of other players competing for users that would be happy to solve the problem for free.
But the fact is you can face the problem for literally any GitHub usecase. I will often open a file in raw just to copy-paste a few lines for example, which is not any specific use case.
Pichai makes over 100M per year. I think we can expect him to deliver a presentation on a tight schedule, otherwise how is he special?
Lessons Learned from 1 Year of Intermittent Fasting
If a company doesn't respond to the made up fantasy, that doesn't suddenly make the made up fantasy any more real or proven.

> The time a news outlet gives for a response is usually proportional to the severity of what they’re announcing.

This is an assumption with 0 substantiation. Actually in 2023, I would say the average main stream media outlet does NOT get the benefit of the doubt here.

> likely have multiple anonymous sources who have been credible before

This is an assumption with 0 substantiation. Again.

Why does this media outlet deserve the benefit of the doubt? I just don't get it.
DV is the only kind that actually matters. Browsers do not display EV certificates in the address bar anymore, the verified identity is hidden in a panel or sometimes even invisible. If you want to pay extra for snake oil, you get to enjoy all the pain in the process. See also: https://www.troyhunt.com/how-everything-were-told-about-webs...
And how do you ensure your monitoring keeps working?
You're totally right, but we both know someone is going to build this into some tool tomorrow, and it will mostly work. I think we might actually need legislators to step in to say that any use of ML would require review prior to use in life-critical applications...
So expecting that a raw file isn't outdated is a special usecase now?

And I don't see where you see that I'm not a paying user? This issue affects every repository, including ones where the user pays.
Nice idea!

+1 on reducing the permissions required. You could ask permissions just for individual repositories, and in this case just for `link-book` one :)
I haven't got a clue about meteorology, but I know a thing or two about machine learning and the majority of papers in the field remain interesting prototypes because they are tested in the same way: namely, on a test dataset that is already known and readily accessible during training -by the experimenters, and thereofore, indirectly, by the training model itself.

This is the case with this paper, from which I quote (see section "Dataset creation and splits"):

>> The available data spans a period from July 2017 to August 2020.

In other words, they have shown that their system works better than an earlier system on old data. It can predict rainfall in a three-ish year interval in the past.

Show that your approach works on real-world data, that you didn't have access to when training your model. Show that your models can predict the future, not the past. Otherwise, your experiments don't mean, what you think they mean.

Edit: and to make it perfectly clear for the uninitiated: when you, as an experimenter, know the "ground truth" of your test data, there is nothing easier than to tune the training of your model to maximise its performance on the test data. That's doubly so, and doubly as dangerous, with neural nets that are very, very good at reproducing their training set, but very, very bad at generalising beyond it. Unfortunately, this is what the vast majority of experiments in machine learning do: they test on known data. The result is that nobody really knows how good the tested systems are until they deploy them in a real environment (if they ever do, which they usually don't, because the whole point was writing a paper to report improved performance, and then move on to the next).
Is this open source? Be great if you could self host it too.
This is a delibrately ridiculous suggestion.

It would be more constructive to improve teacher education, wages, and standards to create a more productive and better resourced education system.

You could look to countries such as Finland et al for a model rather than drawing upon satirical dystopian ankle deep in thought Harrison Bergeron scenarios.
"Of course they're going to be willfully negligent! Just change the rules so they're allowed to kill you and they won't have to break them." While being novel isn't particularly compelling. It also has no explanatory power over all of the corruption and willful negligence pre-1979 or the spiralling costs elsewhere.
If you're interested in pangrams, you might like Dave's Scrabblegrams: https://twitter.com/dc_scrabblegram

Use each tile from a standard Scrabble set once to make a meaningful sentence.
The problem with nuclear is that it's very expensive and new nuclear plants take forever to build. Japan has lots of solar and wind power potential, but renewables are not very compatible with nuclear power for economic reasons.
So, we don’t keep nuclear - what is the alternative? Coal? Gas? You are aware, that the majority is still non-renewable and as an industrialized economy we do have a base load for consumption that we cannot just lower when there is no sun or wind.

I’m all pro renewables in general, but they aren’t a 100% solution for our grid or economy. Moving away from nuclear to gas furthermore supported Russias aggressions against Ukraine.

https://www.destatis.de/EN/Press/2022/09/PE22_374_43312.html
One of the largest C++ projects I worked on was compiled with exceptions disabled (-fno-exceptions).

Still in production, for 20 years now.
Kaffa roastery
Perhaps that prehistoric cave painting does show psilocybin mushrooms. That makes it even more crazy that there is no historical evidence for their use again until 1957– even though, as you point out— multiple species of psilocybin mushrooms grow pervasively in Europe.

Honestly, it would be groundbreaking if one grandma told stories about how her mother used to make mushroom tea. But we don’t have those stories. And, there is nothing in all of the Latin and Greek texts of the past 2500 years. It is a real enigma.
you don't need to control a node to trust it, like tcp isn't byzantine fault tolerant and yet here we are
Not a format I would recognize, but I am not an expert in the area. Two lines of awk would convert it to srt I guess.
Looking on from UK this all seems like a big joke. Slow moving, massive balloons, visible for hundreds of miles are sophisticated spying apparatus? But all the previous encounters over the years have just been unremarkable weather balloons?
The edit adding ", concurrency," and updating "two" to "three" arrived before the message, so it wasn't applied.
Ah, okay. Then I’m totally off the mark here.
When I was actively developing my text editor my favorite test file was made by concatenating all .c, .h and .S files from Linux kernel, which at the time made it a 542MB file with almost 20M lines. It was funny to see how some editors struggled with it.
Yes. Given that they have allowed free passage of such weather balloons for decades previously.
Another populair one is: "Lynx c.q. vos prikt bh: dag zwemjuf!"
Learn from some of the best. For example read and do the exercises of SICP followed by "Software Design for Flexibility - How to avoid programming yourself into a Corner". The authors have more than 50y of experience and go through multiple iterations and refactorings of examples, pointing out good and bad aspects of the code.
They did exactly that already for a few years. It doesn't seem crazy to me that after a while of that, they advanced to do a bit more. Still sounds like they mostly employed others, just now a level up from before, employing designers rather than buying finished product.
I wonder though if setjmp/longjmp was designed with exceptions in mind, or just as a general escape hatch for the 'tamed' structured goto in C (my guess would be the latter).
Well, it could still be read as "There are Baltimore schools which have zero students proficient in math." Not sure why you're taking issue with it, really. The idea that even a single school could have zero students proficient in math should be shocking.
Funny thing, I swear more in languages other than my native tongue.

I guess I don't consider swearing in foreign languages to be real, similarly to how you do things in a video game which you wouldn't do in real life.
I don't get this obsession with actually preventing AI models from generating 'offensive' content.

The models have been trained on a big chunk of the internet, and so are bound to contain all the 'points of view', however dismal, therein. People need to understand that, just like you can get 'offensive' content in google search (and should be able to), if you really try.

Surely we should be aiming for a default 'decent' moderation, but if you really want to slop around at the bottom of the barrel by carefully crafting input (aka 'jailbreaking'), that's on you.
BTW, to strengthen your point: all space missions use Newtonian dynamics, not relativistic.
Show HN: Henshu Editor – GPT text revision tool
Sounds a little bit like the standard recipe of any functional programming enthusiast: Just use pure functions!

Except that they‘re colliding all the time with that tiny problem that the world isn‘t pure... People expect the same page at the same URL, with different content, tomorrow, so good luck choosing a different one than the one they have bookmarked and that ranks on Google.

Caching doesn‘t get any less hard by trying to define the problem away.
The size is an extremely important benefit. It means a country like Japan is able to stockpile a domestic fuel supply sufficient for multiple years of electricity generation.
Start test names with “should” (2020)
UFOs: What to Do? (2000) [pdf]
The less code you write the fewer bugs, so LOC should be a good indicator of code quality :P

But bugs alone says nothing about code quality, the more you look, the more bugs you will find. More popular software will have more bugs (found).

Style guides are not the same as quality. Some people argue about line length, white space, and where to put line breaks, but that has nothing to do with the quality of the code/software, but it's easy to measure.

Do you understand what the code does ? How easy is it to make a change ? Comprehension and maintainability probably results in better code/software quality, but is difficult to measure.

Maybe if we measure the average bug count per user, as well as let users assess/rate the software - does the code/software do the job it was written for?
Personally I prefer gitlab. Just wanted to look at a bug I noted in their product this week (European weeks start on Monday :) ). Gave up because I couldn't find my way around, whether it's already reported. But at least with unlimited time I could probably do it.
>> 8. Losing fat and gaining muscle can both be done, just not together.

>> You see, it’s basically impossible to gain muscle and lose fat at the same time. To lose weight, you need to burn more calories than you take in. You need to have a net calorie deficit.

>> To build muscle, you need to eat more calories than you burn. You need to have a net calorie surplus.

Not true, can be done, you can find examples on the internet.

There is no need for a caloric surplus to build muscles. Muscles are build from amino acids, not "calories".
The body "eats up" muscles LAST: it will go through your fat first.

And if you are fat then you have "excess calories" in your fat: where do you think those go? Evaporate in thin air?

Eg look up Bryan Johnson: he built a lot of muscle while consuming 2k calories, which is 25% deficit for a guy of his height and weight and he still build muscles.

Looking at muscle gain as "calorie surplus" is ridiculus. Look up frutarians: they eat shitload calories from fruits but are totaly skinny, no muscle mass at all.

Muscles are built by having high testosterone. If you have low T it won't matter how much protein or "calories" you eat: you just won't built muscle easily.
Do we really still think Apple products are the gold standard in hardware?
Imagine what we could do with modern hardware if programs were as efficient as your typical C++/SQLite combo!
It looks pretty easy, but I'm not going to do it, if someone else wants to.
Siliwiz – Silicon Wizardry
One thing that may save Intel’s bacon big time is the increase of defense budgets worldwide as many countries go into a rearmament drive. All forms of weaponry today require chips, lots and lots of them.
>"... but exceptions (in the sense of programming languages) can also be used for many other things than exceptions ..."

Can you elaborate? What are the other ways exceptions are used when not used to handle exceptional situations?
Back in my Apple fanboy days, I was delighted to come across a pangram referring to Jobs and Wozniak, but I can no longer quite recall it, and my Google Fu is failing me.
I think it was:

Jobs and Wozniak quibble mightily over expensive coffee.

It checks out, but it feels weird that I can't find a reference to it online.
For what crime exactly?
It's actually really difficult to run a business that is hugely profitable and to keep wages under control. This is less of a "Facebook" thing and more of a "highly profitable company" thing.

The reason wages at FAANG are high is because they make a shit tonne of money, and since they've got that much money they can just pay top engineers more than competitors. There's a limit to that - which is how much money are they making.

But if Meta decide they're just going to pay everyone less, what happens? Everyone leaves and goes to Google. What happens if Google decides to pay less? They go off to Microsoft or Amazon. So they can all afford these high salaries - because the company makes a tonne of money, and they have a clear downside to not paying these salaries- they lose top talent.

The cases where other companies are paying less are entirely down to actual hardnosed business, they pay less because they expect to hire less good people and that's a good trade off in a business that isn't reliant on engineering talent. Intel coasted for about a decade not competing for the best talent, why? Because their sales strategy was what dominated the profitability of the company. Eventually they lost their engineering edge and now the company is in the toilet, but that wasn't really a mistake, it was a deliberate choice by management to control costs rather than invest to innovate.
> inherently wonderful about `while(*this++ = *that++)`

As someone who hasn't used C as a primary language in some project for over a decade, I read this and (1) realize that LHS and RHS both post-increment, (2) don't remember if there is some UB I might be overlooking, (3) realize that the operator is assignment "=", not comparison "==", and I can't even remember what the loop termination criterion here would be. Until "*that++" is equivalent to false, or something?

It may be beautiful to the experienced programmer, but I personally would consider this just "clever" (which is a criticism, not a compliment). It feels like someone needlessly tried to pack everything into a single line of code.

This is something I'd write out more verbosely, if only to make reading it simpler. The compiler will probably generate the same machine code either way.

I'm fully aware that to the seasoned C developer, my criticism might come across as naive. However, even the fully seasoned C developer can get careless, or become tired, and in C, every one of those little things can come back and bite you in those situations.

Edit: removed the double pointer dereferencing remark, must have been an artifact from HN's special treatment of the asterisk.

Edit-Edit: I was probably wrong. I don't think it's possible to create a more verbose version without it affecting performance.
I've made a JSON schema for the Karabiner Elements Complex Modification rule files: https://gitlab.com/notpushkin/karabiner-jsonschema/
Look at this:

https://www.hetzner.com/cloud

More like $5 but still, 1 vCPU, 2GB RAM, 20GB NVMe storage. Closer to $4 USD if you let go of IPv4 in favor of IPv6 only.

Edit: Looks like that's also a shared vCPU.
One of my teachers when studying Physics spent some classes teaching us about dimensional analysis, and since then it has been one of my favourite tools. I remember solving an electromagnetism multiple choice test using dimensional analysis, it felt almost like cheating.
Github raw seems like the simplest system for solving cache invalidation: invalidate the cache of a changed file when it’s pushed.

They have access to both GitHub and the raw service. I know there are usually all sorts of layers between that make interconnectivity logistically complicated, but am I wrong that at the top-level it’s that simple?
Show HN: PageSpeed monitoring that notifies when score drops below 90
I wrote about the tech stack and the high-level architecture: https://www.joseferben.com/posts/a-pagespeed-monitoring-serv...

It's using Remix, SQLite with Litestream and Kysely and it's hosted on fly.io
After Snowden, we quit our jobs to build privacy software. It reached 1.0
I have a personal monitoring system (uptime kuma) running on Hetzner (Germany data center) and since around 5am UTC today I am seeing intermittent timeouts only on services proxied by cloudflare so not just Vultr affected it seems…
The biggest impact I had
Removal of the Queen's portrait

> Postgraduate students at Magdalen College have voted to remove a portrait of the monarch based on a photograph by Dorothy Wilding, taken in 1952, at the time she was crowned.

> The portrait, purchased in 2013 by students to decorate the Middle Common Room (MCR), the room that houses them, has been removed because it was an unwelcoming symbol of the UK's "recent colonial history".

Something about slavery, idk

> An Oxford University college has decided to keep its statue of a Barbados-born slave owner.

> All Souls College has dropped the name Christopher Codrington from its library

The concept of audible clapping

> Representatives from the Student Union (SU) passed a motion last week to replace clapping with “jazz hands” in hopes that this will make events “more inclusive” and “accessible” for those with the mental health condition.

> This comes after the University of Manchester made international headlines for passing a similar motion in September 2018.

In general it seems we import a lot of cultural nonsense from other Anglo countries even if its not quite relevant.
I wonder why they waste resources studying how certain groups of people reached atheism, reason leads to atheism. Atheism is the default state, as all babies are atheists, would be more interesting to know how in modern societies, intelligent well educated people fall for the fallacies of religion. Also as a European, it's shocking to me that in the article it refers to being atheist as a stigma.
It doesn't matter what their 'objectives' are really.

Yeah they are not worried about our 'detection limits' and definitely not 'wasting our resources'.

They might possibly be hoping to pick up some F22 signatures or something like that but even then very unlikely. They have ships that can do that.

And given the 'free publicity' the China Hawks are going to get (not quite 'Sputnik Moment' but a bit like that) I suggest it can't bode well for them, unless are playing real 3D chess and some internal guy is trying to get America to 'wake up' so as to prevent a war!

It's definitely a wierd one.
Wait so they design it in house? That's pretty amazing considering their small size, especially compared to system76.
That's not the reality of modern web development in the last 10+ years though.
>...because 1) the public demands it;

An appropriate quote to the situation

“The conscious and intelligent manipulation of the organized habits and opinions of the masses is an important element in democratic society. Those who manipulate this unseen mechanism of society constitute an invisible government which is the true ruling power of our country. ...We are governed, our minds are molded, our tastes formed, our ideas suggested, largely by men we have never heard of. This is a logical result of the way in which our democratic society is organized. Vast numbers of human beings must cooperate in this manner if they are to live together as a smoothly functioning society. ...In almost every act of our daily lives, whether in the sphere of politics or business, in our social conduct or our ethical thinking, we are dominated by the relatively small number of persons...who understand the mental processes and social patterns of the masses. It is they who pull the wires which control the public mind.”

- Edward Bernays, Propaganda 1927
I am surprised to see a post from this month linked there on the Debian wiki discussing future plans to add telemetry to Go (https://research.swtch.com/telemetry-intro)

The author in there tries very hard to convince the reader that this is necessary and that the way Go would do it protects your privacy. To me it’s never been about what information they collect or what the motivation is.

The fact that apps and tools repeatedly introduce a) sudden and b) non-reversible (unless you fork) changes to their software. Heck, as far as I can tell Netlify CLI even sends a ping when you opt out, that you have opted out.

My personal gripe lies in the coerciveness of it. Yes, I can always use another tool, but say that to someone who built their whole workflow and platform on something that suddenly decides to alienate their users.

Again, yes, it’s open source, so why not fork? And forks do happen, see Audacity. But bit by bit, our confidence in tools we use to stay productive erodes. What if their analytics servers go down? Will the tool start to fail? (A surprising amount of websites break when you disallow Google Tag Manager). Will the tool be slowed down? Will it have bugs introduced by tracking?

The aw-shucks mentality about including invasive tracking is hilarious.

Even more so in sensitive environments, where tools that you depend on doing unexpected network calls can make some people really nervous.

Don’t alienate your users should be one of the core values of any software, and even more so when your users use it in a professional capacity.
It’s not the only PostgreSQL operator for Kubernetes. There’s Zalando, Stackgres and others.
GitHub recommends using GH Pages for that. Raw links cause a higher server load and aren't even being served with the correct mime type.
I am not going to give you access to my private repos. Is that really necessary?