skysight-inc/HackerNews huggingface dataset:
It's not really even "by default" -- that suggests you could change it from the default. It's generally really hard to stick any custom error messages of any kind into a generated parser. You're often limited to making your grammar accept things that are wrong, and then writing a check that detects those invalid situations in the resulting AST. The parser generator doesn't understand any specifics about your language, so it's not capable of producing useful errors by itself in essentially any situation at all. If you're lucky, you can get "I didn't understand this token at this position; here's a list of other tokens that would have been valid." Meanwhile, with a hand-rolled recursive descent parser, you are writing literally every error message yourself. You can generate an error from anywhere you'd like, using any information you need (local or global!), since it's all just code that you're writing.

I have a large-ish grammar that I spent a lot of time on, and I'll be damned if I don't still sometimes get "Invalid statement." with no useful location information. I even wrote my own parser generator; it's not just a shortcoming of existing tools, it's just really hard to write a generic parser generator that's capable of generating custom and useful errors.
The American workforce has been redlining on poorly staffed overworked jobs for decades. It's not surprising that we're losing workers left and right to fatigue. They treat the equipment better than the people who are doing the job and that is saying something because the equipment is poorly maintained as well. Nurses, doctors, teachers, railroad workers, truckers, clerks, salespeople, developers, builders, contractors, and everyone else.

However, with our current political system, the solutions to these problems are nearly impossible to accomplish. Unions, socialized health care, workers rights, mandated vacation time, overtime limits, minimum wages, and UBI are all lightyears away. Instead our politicians are stripping women of their human rights and attacking children while placing migrants into concentration camps.
I found recently that 'autoplay' is always on when you start watching videos from a channel, rather than from the home screen.

It seems to treat the channel page as a playlist now, and for playlists it always autoplays.
Agreed. Unfortunately when it comes to ads (which I also hate! I have adblockers installed, subscribe to premium services like Youtube premium when it makes sense...) HN commenters take leave of their wits and just start posting conspiracy theories, hysterical criticism, or if you're lucky balanced sensible criticism that nevertheless doesn't make sense in the context of the article and is just an instance of preaching to the choir.
ex-Heroku here.

Can confirm Periwinkle is a thing. It started a couple of years ago.

However, as far as I know, it's also done. The scope was massively reduced once they realised the complexity of what they are trying to do (which isn't sunsetting Heroku, but more moving it in the direction that Salesforce Functions has taken). In the end, Periwinkle essentially transpired to be the banner that you now see at the top of Heroku properties.

Saying that, I've been out a few months. I don't know what the current plans might be, and I do wonder if recent events might have SFDC evaluating what's next.
Panasonic Eneloops and similar modern low-self-discharge NiMH batteries are really nice. Their capacity is not quite as high as alkalines, but their internal resistance is an order of magnitude lower. At loads over 100mA, they're a far superior battery in both ability to deliver power and effective capacity. They have low self-discharge, so you can charge them after using them instead of discovering you need to charge them before using them. And I've never had one leak, but I assume they can.
> URLs generally do not matter to people.

Emphasis on generally.

URIs do leak into the UI/UX. It's unavoidable. Purists hate it. But it is a fact of reality.
Wait, I am curious: you see ads on GMail? I haven’t seen ads in many years. What email client do you use? web app, phone app?
I have a different solution. I was lucky early in my career where I got to work on a few projects that were distributed not for scale but for super high reliability. I studied what I was given but studying was only so helpful.

To that point, I recently had someone ask me how I learned some of the things I did on distributed. I am not disagreeing with other commenters about reading up and studying but I think that it isn't as good as experimenting with things yourself.

Pick something like "leader election" and implement a naive/simple version of it so you have a better understanding. Take that and run it in AWS on 3 (or more) micro instances and play with failure scenarios. Alternatively you can do the same with local computers on your network, or raspberry pi's or any other SBC. For less than the cost of a text book you'll have real world experience implementing and experimenting.

From there, try other scenarios and keep building and testing. Doing this is far more valuable then just reading about it. Then if you do hit a job where you need those skills it isn't just academic to you, you'll have played with how it works and seen how to debug issues etc.

Speaking of debugging issues, one of the hardest things in distributed systems is just that, debugging. So build a basic (again maybe naive version) distributed logging/tracing solution so you can see the issues first hand. You'll then understand (at least somewhat better) the way to evaluate the common solutions/ideas that are on market or that people push.

You can learn a lot even by just setting up something like zookeeper or etcd and learn how they work, failure modes and how they can help or hurt you.

Just some ideas, but the basic concept is to actually implement things. Even just run your tests in containers (not as good IMO but still better than just reading about it) if you can't afford to spend a little money in AWS or on SBCs etc.

*edit fixed a word mistake
In reality they have proven to be the same.

As studied, and as the logic would follow the elite simply transfer from system to system as performance disparities persist through the generations because of genetics.
Through revolutions under different systems tracked family lines out performed others regardless of system.
A look at "communist" china.
Persistence through Revolutions
http://www.bristol.ac.uk/efm/media/workingpapers/working_pap...
My kid loved his Cuisenaire rods. Let me add:

- Schoolhouse Rock (songs and video): ( https://www.youtube.com/watch?v=zSRRAHvSQBo ). Related to skip-counting (counting by 2s, 3s etc), which some kids really like and you can practice anywhere you can count (count the stairs). Skip-counting leads to learning the multiplication tables (flash cards).

- Illustrated books about polyhedra. This may be a little advanced, but the pictures are nice. And it leads to Zometools ( https://www.zometool.com/ ) and software versions of the same.

- Books with number illustrations. You have to look for them ( https://designobserver.com/feature/herbert-spencer-and-the-b... ).

- Any illustrated book about symbols? I remember how my kids wanted to know the names and sounds of the IPA ( https://en.wikipedia.org/wiki/International_Phonetic_Alphabe... ). This may be just a quirk of my family tho. And it's not exactly math, but being comfortable with associating symbols with meaning might make math a little more comfortable.

This is what my kids liked, but every kid has different interests and talents and of course you should build on that. My kids weren't interesting in Lego or Erector Sets or breadboarding LEDs or shooting baskets playing with dolls. If they had been we would have done that.

It's not math, but another thing my kids liked was language-learning software like Rosetta Stone ( https://www.pcmag.com/picks/the-best-language-learning-softw... ).
App Tamer is a good example of a proper modern desktop UI, very good job, and beautiful!

Proper use of space, compact controls to avoid useless eye/mouse movement, no need to endlessly scroll through a list of huge controls, 100% native, efficient and small disk footprint

You don't see that kind of project on windows anymore
Macros in Elixir are very nice, so you only have to implement a few functions to get a GenServer instead of the whole protocol.

Also, I'm not a Ruby developer but still found Elixir to be nicer than Erlang in small but important ways. The documentation part does hold true IMO, as the official Elixir docs are fantastic, which goes beyond just a different CSS theme.
>Parental pressure to succeed is the destroyer of passion and joy in learning.

Bingo, bango, bongo. This is the case.

The problem is that children need structure and guidance if they're ever going to do things that aren't just mindless 'fill-time' sort of activities.

We had a hard time with our kids, because we let their interests guide their activities. The problem was - whenever they expressed an interest, external pressure and expectation is that they go ALL IN on whatever it was. Baseball? Better practice with a private coach or else they'll never make the travel team, and you'll never play for your school team at all if you don't do the travel team. Jiu jitsu? Better enroll in private lessons or else they'll never make competition, and you'll never get mat time if you don't join competition.

And it's not that the expectation was that they would immediately rise to the top and be highly competitive. It was the judgment, overt judgment and criticism from other parents when we didn't express an interest in all that nonsense.

The world for young parents is difficult, and it's easy to get sucked into the trap of 'my kid likes this so I should push them as hard as possible'. Because that's the default attitude among most people, from what I can tell.

Rant over.

To OP: If your kid expresses an interest in math/science, provide them with open-ended toys and games. If they don't and you're just doing it to raise the next Einstein, don't do it.
Weird hill to die on...

You still seem to be missing the point OP was making though. The dark pattern isn't that you can't skip the ad.
How can I adblock on my nvidia shield tv? I hate youtube ads. So much that I switched from iOS to Google Pixel just to be able to install vanced.
Does Salesforce really have any motivation to update the cheaper Heroku instead of direct people toward their more expensive options?
There is regulation, that's why we have mandatory 2FA for bank accounts. I think (but am not sure) that SMS phase-out is also part of that regulation, but that might also just be banks being happy to force their software onto more devices to do who knows what.
Incredibly common on a certain LatAm fintech/marketplace as well. A lot of people with suspended accounts with funds, nonexistent support. This is why crypto unfortunately makes a lot of sense, not that it should, but it often does feel safer, specially in the third world.
> Countries like Ethiopia are catching up from being way behind using imported technology

And who do you think is doing all the importing? A young guy in his 20s , who is working 14 hours per day for his family import-export company and helping his dad cooking the books to convince the bank to loan them money to get access to such foreign technology.

That is to me both a survivor and a risk taker, not an American kid getting out of college today.

> You're flat out wrong about young people and their willingness to take risks

Taking risks entails being open to novel experiences and also believing you are invincible and the world is yours for the taking . So let me ask you:

Do you smoke? Do you drink? Do you gamble? How many drugs have you tried? Did you violate lockdowns to go partying? When was the last time you stole another man's girlfriend? When was the last time you had sex with another man's girlfriend? When was the last time you managed to outcompete other men in a club and brought a girl home leaving them with nothing?

I am asking because I did all that (well except escaping lockdowns), back when colleges were still vibrant.

Risk taking is correlated with all the above. It takes arrogance to start or takeover a company, you have to fight and push the barriers, you don't get to have selective arrogance which only applies to one realm of life.
I think the complaint here is not exactly about the fact that you can't skip some of the ads, but that by varying the UI a bunch, users don't reliably "catch" all the skippable ads, so they watch more of them or take longer to skip them than would be the case if it was always immediately obvious what you could and couldn't skip.
> Air fryers are out. Countertop 3D-printing ovens that transform shelf-stable foods into hot dishes are IN! This one baked you a tasty peach cobbler from canned peaches that were genetically edited for “low-chill” conditions

This seems like pure fantasy to me, but is there really any tech that suggests something like this could come about in only 20 years?
I often feel that the 90's child me would slap me across the face in disgust at how casually I take for granted the age of magic we live in now.
Not if the plunger rests on the load cell. Then plunger just captures the work done as it is compressed, it doesn't reduce the force that passes through it (once at equilibrium.)
Whether accurate or not, a limit has to be decided.

I suspect it's more of an organizational tool problem than simply having a number to limit distribution, and that this is the lowest hanging fruit to create a solution for - for better or worse depending on your use case or needs; and externalized value no longer created by using this limitation may or may not result in a net benefit for you.
My mental model of this is like an email alias you define in your mail client mapping to multiple recipients.
What's worse is those who do pay for YouTube premium will still get these ads.
There's a lot of idiots out there for whom installing a browser extension is akin to rocket science. In fact, they may not even be aware of what extensions are.
It costs money. Plain and simple.
Here in California the posted price has to include the price in “natural” units (per oz, or per dozen eggs, or whatnot) for easy comparison. Whole Foods gets around this by often displaying the unit price as “per item” (so the two prices on the shelf are the same).

They’ve been getting away with this practice for decades.
And how we make sure to always skip ads is

1) use an adblocker

2) use a pihole

3) use sponsorblock

anything short of the first two is literally using a different internet. Marketers and Advertisers would ruin the net if we let them.
The ads pay for the marvel.
CA governor signs executive order shaping cryptocurrency regulation in the state
> They separated from West Pakistan on the basis of their Bengali Identity

This is not true. People in the Indian state of West Bengal also speak Bengali and have a Bengali identity. The split of Bengal into West Bengal and Bangladesh was based on religion.
You have to pay for it somehow, the adds are probably a fair price.
Almost 40, I'm getting older I guess but lately I feel put off with the unnecessary cursing on things that I find interesting.
> illeteracy

:)

Indeed!

But that aside: forgiving this debt is not about bailing out universities or banks, it is to help those individuals. That the banks get the money doesn't really matter in the longer term, the quality of life improvement for the individuals affected more than offsets that and if this didn't happen they would still have to pay the banks.
I don't think I've seen a YouTube ad in years. uBlock Origin plus SponsorBlock make for a much better watching experience.
It's been tried: https://github.com/andrewzlee/NeuralBlock
Crunchy Bridge is staffed with a lot of former Herokai and some Postgres core committers.
You can use PGAnalyze as a (fantastic) secondary service to give you statement/query visibility. I get the impression Crunchy is trying to build what Postgres data is (and what it could have been).
I do business with PGAnalyze but have only talked with Crunchy. I have heard good things about Aiven as well.
Well wouldn't it be just recouping cost to run engineering infrastructure and hence ads.
It depends. Are we discussing Rust? Microservices? Or Climate Change? Other topics attract fewer flies.
Check out devcontainers on VSCode when you start building. When I first started working on full stack projects I wasn’t sure how to literally connect the pieces but these containers give you all them via Docker which simplifies so much of the initial getting started steps.
google and YouTube generate insane profits. they could show fewer ads and it would not impair the functionality of YouTube
Portraits of Time: Ancient Trees
Even questions like should I buy the expensive car battery or the cheap one is an investment.
YouTube, like TV and any other technology infested with adds seems to me completely unusable as it is, I don't understand how people are so patient and keep using it.

I use uBlock Origin, SponsorBlock and Watch On Odysee extensions to improve it.
1) Meh, MVC was never all that, it's kind of a guiding idea, but isn't in the realm of relational databases as far as specific utility and power.

2) Dinosaurs are still around in the form of birds and have found amazing utility, so even the analogy lacks nuance ;)
they didn't buy heroku for its hosting, and my impression is that they've been somewhat frustrated by the fact that it keeps being so profitable. They bought heroku because of all the work heroku has done intergrating salesforce with other systems. I don't know much about that part of the business but yeah, they didn't really know what to do with the hosting side of heroku, and 100% would have killed it off right away if not for the fact that it keeps making good money.
How does ublock solve the promotions you describe?
It doesn’t. The point is the in content/in video ads severely decrease value I see in youtube premium.
Rails: Postgres Native Partitioning
Easy [Wind] Chime Design and Build
GDPR-blocked for European IPs. Quite ironic given the title.
But these services are forcing you to use Apple/Google - Apple/Google aren't imposing that requirement.

If anything it'd probably give better grounds to prosecute the services that require Apple/Google.
That is not piracy.
Your suit would be against eg your bank for failing to provide you obtainable access, but you are likely to find it not a winnable case if you've signed any sticker contracts.
> crypto

> safer

?????
We should totally play "Twitch Plays Pokémon" in real life: https://en.wikipedia.org/wiki/Twitch_Plays_Pok%C3%A9mon
Your service looks very nice and the design is fantastic.

Just thought I'd share.
Before I get to reply to your comment, let's talk about my sponsor for today: Shady VPN!

Did you know that killer sharks are tracking your every step and move through the internet? They are stalking you, so that they can find you, kill you and eat you (and your whole family, too!) when you go to the lake the other day. That is because they track all your steps on the internet. Now you might wonder: What can I do against that? It's easy: Just join Shady VPN and choose our VPN solution. Military grade encryption will hide your location from the network sniffing sharks so they have no idea where you are. Enjoy the summer. Sharkfree!

On the topic: Same goes for me, "ad-free" YT is not really ad-free, only a little less "infested".
There is no free lunch I think is his point. Also, I think youtube allows you to pay to have an ad free experience
Woodwork – An Open Source Python Library for Rich Semantic Data Typing
True, but if you're just using phone and desktop, Signal works well.

My point here isn't that Signal is perfect, just that the implementations by Signal and others shows that support for e2ee DMs on multiple devices is solvable. Teams can decide what their users need and how much flexibility is worth supporting. A public company of Twitter's size is clearly capable of solving this for some broad set of use cases.
I’ve been creating an open source library for rich semantic data typing, which helps you managing and communicating data typing information. If you’re curious what this library can do, check out our new blog post!
If you are eating crustaceans you are eating arthropods that are differentiated from insects by living in water and having two segments instead of three.
Try to ask that question without using words stolen from Greek or Latin but still incomprehensible English.
That's because someone did the work of setting up a server for you, configuring the services, and issuing FTP credentials. That part is now a whole lot cheaper and easier and more secure.

It doesn't get much easier than signing up for e.g. Glitch.
Do you own a Macbook with touch bar? Use Safari and skip ads by using the scrubbing feature of the touch bar. No adblock needed, all ads skippable, and they're none the wiser.

Mwua-ha-haaa.
Ask HN: What is your development and testing workflow for SQL queries?
What is your workflow for developing, testing and versioning SQL queries?

My company has data pipelines that query a number of databases, such as MySQL and BigQuery. The SQL queries are typically read from a file or inlined as a string.

It seems to be challenging to develop, test and reuse SQL queries as you would code in programming languages like Python or Java.

For example, I'd like to decompose queries into reusable units that can be individually tested without heavy-weight external or remote dependencies and complicated setup, have any ideas?
> Shorter terms devolve the actual functions of governance to unelected, long term burrocrats, thereby ensuring the reigns of power are held in a stable structure that cannot be perturbed by passing social fancies.

Does it though? It's much more than just the heads of agencies that are political appointees [1] that change with administrations.

It may appear that the government can be slowed by paperwork but there really is no penalty for the executive branch (or any branch) to just ignore the other branches (ex. [2]).

[1]: https://en.wikipedia.org/wiki/Political_appointments_in_the_...
[2]: https://en.wikipedia.org/wiki/Trail_of_Tears#Legal_backgroun...
Monitor Git repositories for new commits
Is there also a limit to the number of Circles one can define? That might help with spam prevention.
> I think that best government is least government;

The problem with this view is that government is the way that we - as a society - make collective decisions about the rules and norms under which we want to live, as well as the way we build programs to serve the public good and achieve things that we want to achieve together.

If you make that process - the process of deciding rules and norms - so painstaking slow, and the process of enforcing the rules nearly impossible, then what you end up with is a society with out rules or norms. Which isn't a society. Or with rules and norms locked down and frozen, unable to adjust to the changing needs of the society.

What we need is a government that is as responsive to the needs and wants of the governed as possible.

Usually the way you achieve that is through various forms of democracies, but those are prone to tyrannies of the majority - in which a majority intentionally choose to oppress various minorities. So the trick is to have a super-responsive Democracy that also has safeguards in place to protect the minority from the majority.

And there in lies the rub, what those safeguards should be is the never ending debate.

But "best government is least government" is a truly toxic and self-destructive meme that has badly infected US culture. If you want to understand what you're actually saying with that sentence, s/government/civilization/g. Government is simply the mechanism through which we collectively build our civilization.