skysight-inc/HackerNews huggingface dataset:
When I was a broke guy in my mid-20's backpacking around Europe €50 was most of a day's budget. Inflation would change that but all the same it'd be enough to make me just spend more time in Florence. But maybe that's the point; I wasn't doing much for the local economy.
Our family is outside the norm in practicing millennia old religious traditions that include daily practice of gratitude and forgiveness. I have found it to be amazingly useful for passing down ‘emotional intelligence’ and existential maturity to the next generation (and also keeping everything in life in perspective).

This essay seems to suggest that the secular world lacks these practices for passing down EI, because many of the premises were foreign to my lived experience.
> People not able to factor out functions or structure their code in a readable way. Variables are called v1, v2, v3. Unit testing seen as a waste of time. CI seen as a fun toy. They lack the experience to even notice the difference.

Had a colleague work under a 'team lead'. Needed to take a form with variable amount of rows of input data - max 50 - and take data, parse it, and store it. Took 20-30 lines of code. Next day "I don't trust loops, these need to be unlooped". Really? This was all in writing and stated out loud in a meeting with witnesses, and everyone agreed. "Loops can be tricky - they don't always work like you think" (something like that). So a 30 line block of code with a loop around it became 1200+ lines with 'v1, v2, v3.... v50', with 'ifs' around each one to check if that row number was also submitted.

The code to generate the form was, of course, a loop that spat out holders for 50 rows. THAT was OK, because someone else's team wrote that a while back (really??) and ... it was already done and in production. The lead could not put their stamp on it.

Very very very weird. Having half a dozen other people all nod their head suggesting that a 30 line loop is fraught with danger, and the correct answer is copy/paste 50 times. Felt like gaslighting, to my recollection. Worked in same dept, just not on same project together, but enough of this was heard/pickedup across the dept.

And... my colleague and I aren't there any more, and to my knowledge, that team lead is still there.
It was a joint decision, taken by the US administration, the EU council, the UK and Canada in response to the Russian invasion of Ukraine -- not just something the Americans came up with.
According to Eth docs:

> One validator is randomly selected to be a block proposer in every slot. This validator is responsible for creating a new block and sending it out to other nodes on the network. Also in every slot, a committee of validators is randomly chosen, whose votes are used to determine the validity of the block being proposed.

The annotated code for this can be found in [2].

[1] https://github.com/ethereum/annotated-spec/blob/master/phase...

[2] https://notes.ethereum.org/@vbuterin/Sys3GLJbD#Misc
I think the argument which is charitable to Facebook is that they make money by more efficiently matching advertisements to slots: advertisers are less willing to pay for generic slots in a newspaper than targeted slots because, in theory, a slot seen by someone more desirable. Facebook do advanced targeting to allow slots to be sold at closer to their fair value by making buyers better informed and they take a fee for improving the efficiency.

But it’s still reasonable to argue that the targeting is not as effective as claimed, the fee is too large, or that there are political reasons to dislike targeting and we should disallow it even if it makes the ad market more efficient.
I prefer https://picocss.com/. Default styling just seems nicer.
Love the narrow playlist, just the one i needed without distraction, pray do add more when you can.
District heating is a regional monopoly in Germany.
Now, that makes a good point, thank you!
Probably homes aren’t connected through a gas pipe though. You can even heat with gas in that case but need a lot of storage room for the gas then, so it’s pretty uncommon especially in cities.
The ThinkPad X13s runs a Snapdragon and allows up to 32 GB RAM.

https://www.lenovo.com/us/en/p/laptops/thinkpad/thinkpadx/th...
Can we please stop usin Mother Theresa as an example of a good person?

https://en.wikipedia.org/wiki/Criticism_of_Mother_Teresa?wpr...
I believe some European countries employ government officials who prosecute attacks on consumers that violate consumer protection laws
No, that's why I said "much of the rest of the world", rather than "the rest of the world".
Actual title appears to be "Europe needs to catch up on pivot culture". The "get the hell out of Europe" comment appears to be editorializing by the submitter.

Reminds me of Jean-Louis Gassée's comment along the lines that failure is a key part Silicon Valley, and is a reason for its success.

Can't find Gassée's actual quote, but found something similar at https://money.cnn.com/2009/04/08/technology/french_entrepren... from 13 years ago:

> "France has been much more friendly to big firms than it has been to start-ups," says Isabelle Lescent-Giles, an associate professor of international business at San José State University whose studies compare business cultures in Europe, U.S. and Asia. "Launching a start-up in France is like playing Russian roulette in some ways."

> Failure is not tolerated in French business culture as it is in the U.S., Lescent-Giles says, and both the legal and social consequences of bankruptcy are much more dire in France. The government dominates the economy, and the business elite is almost exclusively recruited from the elite schools, the Grandes Écoles.

Still, 1) I recommend changing the titled to reflect the linked-to content, and 2) point out that this doesn't reflect a new change in business practices.
Twitter Ads vs. Using Twitter for Ads
I think the camera in my 14" M1 Pro is much, much better than the camera in my 2015 MPB. Also, people on the other end of Zoom etc commented on the improved picture quality.
> I absolutely cannot listen to music with words when I code

Same here. Med to high pitch does the same effect as words for me. But undecipherable words or ambients does not have the same paralyzing effect as words, things like metal growl, mumble rap, or ambient acapella. My goto music would be extreme polymetric metal music with dark tone (bright guitar tone doesn't work for me. Check out my fav band Meshuggah), noir jazz (jazz which accompany noir detective/mystery film), or muted song whose mid-to-high pitched instruments arent quite prominent.

And then there is a friend of mine who can program while listening to podcast. A mad lad he is I say.
near-zero carbon energy without nuclear at the current level of energy needs?

...
It’s more like mixing peas with whisky, or something. Like sure they’re both consumable via the mouth (ear), but they serve completely different purposes and in completely different contexts.

One of the reasons I like Spotify is for the suggestions of what to listen to based on prior sessions. But now it’s suggesting that I listen to either Fleetwood Mac or Joe Rogan? In the same UI?
The spec is open and documented pretty clearly.[1]

[1] https://notes.ethereum.org/@vbuterin/Sys3GLJbD#Misc
> There are two key equivocation rules a validator must follow, taken from the Gasper paper:
>
> Double vote - no validator makes two distinct attestations for the same target block
>
> Surround vote - no validator makes an attestation that surrounds or is surrounded by a previous attestation

Which are both punished by having the saked ETHs being "slashed" (32 ETHs staked, you end up losing 16 of the 32).

I never understood that: it opens a door for a huge attack in that it's now impossible to safely "stake". Ethereum devs says you can safely stake in that staked ETHs aren't at risk of being stolen (the key to stake and to move the ETHs aren't the same, so it's impossible for an attacker to steal the 32 ETHs) but...

An attacker accessing a staking node can, on purpose, double vote or surround vote to get the ETH slashed. The difference between losing 32 ETHs or 16 ETHs is not that big (sure, in the case of slashing at least the attacker doesn't get them, but for the person losing the ETHs, it doesn't make a huge difference).

So it's impossible to stake without risking your ETHs getting slashed, even if the staker is honest.

Here's my prediction: we'll see exactly that attack on slashing nodes, people are going to lose ETHs and we'll see excuses to the tune of "you didn't securize your node well enough".

I do think it should be possible to stake without that risk (just as it is possible to hold the private keys to cryptocurrencies on hardware wallets because, well, computers are all too often insecure).

Here's another prediction: some are going to come up with HSM to stake ETHs (maybe they already exist?). The risk of getting people's ETHs slashed is just too big.
A 2k screen in 2022?
I haven't used a non-HDPI laptop since a decade (bought the first retina MBP at the time). I can't understand how people can still use such displays today.

Also the CPU. It's from last year.

I just ordered a Xiaomi RedmiBook Pro with R7 6800H and additional Nvidia GPU – 1.200€.

It will Linux just fine but with more 2022ish hardware specs. :)

It's also slimmer than the 'Slimbook' (14.9mm vs 16.7mm).
But every single time there is an AskHN on the topic of how people got their current gigs, LinkedIn overwhelmingly dominates other channels.

Just something to keep in mind. This post will have a lot of negative LI reviews simply because it was used as a sort of attack vector.
How do you propose they check? Active Facial recognition?

Parents login to devices and give them to their kids, the vast majority do not setup child profiles or enable restrictions.
It depends on what I'm coding. If it's something brand new that requires a lot of concentration, then I can't handle lyrics or even any music at all. If it's more routine work, lyrics are fine, I can even sing along
> Each time they increase prices

They have never increased subscription prices. They still charge the same amount they did 7 years ago, when subscriptions were introduced.
Then remove the "buy" button and replace it with "lease for some time, until we decide otherwise"
Let us not gloss over the fact that in China Apple willingly handed over their HSMs to the CCP granting them full control of Apple devices there, even if it means aiding in Uyghur genocide.

When it comes down to money, or protecting the freedom or privacy of users, they will choose money. In this case the money is in good PR to help them secure more government contracts. They are playing all sides.

I do not feel anyone that needs high freedom, security, and privacy is well served by proprietary walled gardens. Particularly those that only grant holes in the walls to corrupt state actors.

https://www.nytimes.com/2021/05/17/technology/apple-china-ce...
- Jinja templating as standalone or in Flask.

- Classless minimal CSS framework to make pages pretty without using css

- htmx

Try to avoid doing state management. If you have to do it, use a frontend framework at that point.

https://github.com/dbohdan/classless-css
I think it's good to recognise gas and nuclear as being preferable to coal and oil, but green they are not. I consider them transitional energy sources; we will be stuck with them for a long time while we transition to greener energy, but coal and oil need to be stopped as soon as possible.

After the Fukushima disaster, Germany closed its nuclear power plants and replaced them with coal plans; absolutely the worst possible reaction to that disaster. We do need a middle category to recognise that nuclear and gas are better than coal and oil, but I really don't want energy companies selling me nuclear and gas power as part of my green energy subscription.
I think the propagandistic title is just an expression of the Parliament's meaning; they've declared that nuclear and gas are to be treated as "green" for the purposes of various exemptions. You can legislate that Pi is equal to three, but that doesn't make it so.

As parent notes, every molecule of methane burned turns into a molecule of CO2.

Incidentally: I don't see how burning coal produces more CO2 than burning methane. Burning coal is worse than burning methane because burning coal produces lots of particulates, as well as nitric and sulphuric acids. Same for burning oil.

Has anyone ever done testing on automobile exhaust similar to the testing that has been done on cigarette smoke? Of course not - nobody pretends that autombile exhaust is safe to inhale. Everyone knows it's much more carconogenic than ciggie smoke.

So I'm not defending coal and oil; they're worse than methane. Just not because they produce more CO2.
Discussed here:
https://news.ycombinator.com/item?id=31918433
Well, if you want to hear from the darkside... Romania.

Badly maintained infrastructure (as an American you're probably familiar with the idea). Keeps breaking down. Not enough money invested to bring it to modern standards. Pipes are not well insulated, they break down constantly, huge leakages and losses.

Cost of heating is so high that about 20% or more of the entire Bucharest city budget (I've just checked, budget: ~$1.8 billion, subsidies: ~$450 million; Bucharest has about 2.2 million people) is spent on subsidizing heat for poor families. Heating/hot water sometimes go down for hours or even days in random districts.

In many districts district heating is mandatory because everyone who can pull out does so and that makes the system even more inefficient, which would cause the collapse of the entire system, hurting poor families even more.
Yes it would need a hard fork - but Bitcoin community is notoriously resistant to change, so it probably would not happen for some years or decades.
That's just justification for unnecessarily using microservices, which basically leads to 75% of your code being redundant plumbing. Microservices (correction: distributed systems) purposefully throw away DRY, small cohesive teams, developer ergonomics, and streamlined debugging, in favor of solving hard problems at scale, which most companies simply don't have.
No-Token apps: an alternate vision for the blockchain
For a programmer, screen real estate (dependent on scaling). I look at 4k 100% scaling as having condensed two 1080p monitors without bezels.
Don't do this! OP's version is better!

It might be "fine", but you don't gain anything here while introducing both indirection and coupling. DRY is _not_ about data repetition. Data repetition is fine.

Alice and Bob having the same birthday is coincidental. And even if they are actually twins, you rather say that they are twins separately.

In your example you are just preserving keystrokes, but you don't say anything of value with 'pizza_base'. You haven't shown that 'pizza_base' is worth keeping track of or even mentioning.

A pepperoni_pizza with thick crust or extra cheese is still a pepperoni_pizza. A hawaiian_pizza's sauce being tomato doesn't relate to a pepperoni_pizza's sauce.

When coding data, just be explicit, verbose and keep it simple. Our text editors, IDEs and database APIs have affordances to change data in bulk. Those things are orders of magnitude easier if your data is simple, dumb and not complected.
I wish more Americans knew this.

The healthcare systems in Canada, the UK, France, Germany and Switzerland are all distinctive (they’re main commonality I suppose is that they somehow deliver quality healthcare at a fraction of the US cost.). But to hear Americans say we should “do it the way it’s done in Europe” is to understand that the person likely don’t know how the healthcare systems operate in different countries.

The other frustration in talking about this is the tendency to “It’s just” the problems. If this were a simple problem with an obvious solution it likely would have been solved. We are where we are because of a century of organic, and often idiosyncratic, growth. Well intentioned policies of decades ago have come back to bite us with unintended consequences as likely are our best ideas today.

I don’t say we should throw up our hands and give up, but when anyone says there is an easy solution - we just need the political will to let them do what they want - I do see snake oil.
That’s an essay.
You can use a lightweight and modern web browser like Epiphany or Pale Moon.
Elm.

If there is a back-end API with a spec (GraphQL or OpenAPIv3) you can generate an Elm client for that which makes API calls type-safe and thus very robust.
Milk carton ads are so easy to ignore, I've never actually seen one in real life.
> simply because how many people are currently torrenting e.g., a full bitrate UHD copy of Django (1966)?

On the most popular Russian public torrent tracker, there are 22 results for that right now, and even though none of them are UHD, top two of the highest-bitrate 1080p BDRip torrents do have active seeders.
That might explain why Mojib Latif’s books are published by a publisher otherwise specializing in religious books
I didn’t say it makes much sense. But it fits with how we talk about time in Norwegian and Danish both: When English speakers say half past five, we say half six. Which is a half hour before six. In the same way, I suppose half three twenties (halvtres in Danish) is short for half a twenty short of three twenties. So yes, there’s logic to this madness.
Boris Johnson Resigns
Humans have no morals too, and everything they do is for personal profit.

If I sell you a car, and decide I want it back, without a refund (if I even want to sell it back to you), and if take it back - that it's called stealing your car. Same should be done with Sony and courts should punish them enough, so that they won't even think about doing that again, and neither will the other companies.
> It's also probably one of the simplest principles to understand.

Turn‘s out - no it isn‘t!

I think DRY and KISS are probably the most important and most misunderstood principles by far. Why? Because they seem trivial at first sight, but really are not.

Not every repetition should be DRYed (dry those which pose a risk to integrity) and „simple“ is not the same as „easy“ or „familiar“!
If you don’t mind sharing, I’d be curious what specific traditions you practice?
What does "quietly" mean to you? It would be an exercise in conceit to broadcast such a move on social media with the assumption that people are interested, wouldn't it?
Show HN: StackBricks – Start with a pre-made stack. Customise later, like Lego.
Hi HN! Igor here, co-founder of StackBricks. We are a team of 6 hackers from London.

StackBricks allows you to start building your app with a pre-made stack that works right away in your AWS account. A bit like create-react-app but for your entire stack. So instead of building your app first, then figuring out infra it is live from the moment you start working on your app. All you need to do is replace dummy apps with your code by connecting your GitHub repositories.

You might have noticed a bunch of things from us - the original Digger last year; AWS Bootstrap, Terragen and OpsFlow more recently. They’re all powered by Digger engine that automatically generates and runs Terraform. On top of this we have built multiple versions of the UI that we keep changing rapidly based on your feedback. With every launch we learn what people like and what doesn’t fly and make the product better.

The idea behind StackBricks is to combine the features that got the users of AWS Bootstrap and Terragen most excited. While AWS Bootstrap only allowed you to set up a “triangle” stack (frontend + backend + postgres) and Terragen was all about auto-generating Terraform, StackBricks introduces the concept of generic “stack layouts” (you can see them right on the landing page). And from Terragen we have taken and improved on the idea of overrides - you can write your own custom Terraform right in the web UI, it no longer requires you to connect a dedicated infrastructure repository, which was a common friction point before.

We've also just launched on ProductHunt: https://www.producthunt.com/posts/stackbricks

Please give it a try - would love to hear your feedback!
There's nothing wrong with DRY. It's a concept not a law. I once saw some VB6 code that was 30k lines of copy pasted if/then statements. DRY would have reduced this to about 500 lines of highly readable code. Are there cases where you by design don't want to follow DRY yea... There are... But it's not a useless principal
> So it's impossible to stake without risking your ETHs getting slashed, even if the staker is honest.

I mean, the entire point of staking your ETH is to say "Hey, I'm willing to risk these ETH to \"prove\" that I'm a honest validator and that my node is secure. If I fuck up, I'm willing to accept the punishment". Without risking those ETH, it means nothing to stake ETH, and would break down the idea behind it.

I'm not sure if you fundamentally miss the idea behind staking, or if I'm missing something obvious in your critique of staking.
TL/DR: It's a naive "sour grapes" type argument that doesn't take any kind of costs/tradeoffs into consideration...

Proper DRY at scale requires types that make sense and are easy to think about (you have to invent and document them even in dynamic langs ...that's why Typescript's a thing and so sucessful). You can't have DRY that doesn't slow you down and cause bugs without proper f types!

Eg. a sane solution to the authors' problem when the requirement for split pizza came would be:

- rename make_pizza(toppings: dict) to make_pizza_part(topings: dict)

- implement a new make_pizza(topping: list[dict]) calling make_pizza_part(toppings: dict) - and here you've change the type (important!), so you'll not miss any unchanged all calls to it, your tools will yell at you (ideally at build/compile/commit), or at worst at runtime but with an easy to interpret even from logs error

DRY is fine if done in the context of proper software engineering practices and tools.

Now being non-sloppy and following solid practices has a cost, and you might want to avoid it sometimes - in those cases do less DRY rather than crappy DRY!

(Whole languages are built around the OP's philosophy, eg. Go, but they are explicitly engineered to lower cost and defects in large corporate orgs! Randomly choosing to follow this in a project with 1-3 people of adequate skills and limited scope will just unnecessarily make that project have 4x the code, 4x the bugs, and 4x the cost for zero benefit.)
Is 2k bad or good for '22? I still haven't moved past 1080p, so I'm not sure how to take "can't understand how people can still use such displays today."
Building Agency
How slim do you want your laptop to be? Slimmer than 17mm? Why? What advantage does this give you?

Your backpack is 30mm thick and wouldn't fit a sandwich anymore? You want to slide your laptop under the door and there's only a 12mm hole? You want to look hip in a café and 17mm doesn't cut it?

Weight makes a difference, sure. Apart from that I care about the thermals and ability to replace parts, both of which are better on thicker laptops.
High DPI displays have been available for a decade, since the 2012 retina macbook pro. "Science of visual acuity" aside, the difference is noticeable.

I use a tablet pc and find it bizarre some vendors sell the m with 1080p displays when it's meant to be used closer to the face at be times. 2-in-1 budget laptops also have the same issue when using 1080p panels
Does AppSmith count? It's drag and drop and has themes. Easy to use with micro services. https://www.appsmith.com/
...we've just hit a DRY SPOT

</inevitable_joke>
There's an app for that?
Maybe I am stupid, but at least to me its not obvious how one would randomly select a member in a decentralized way, assuming some actors are malicious?
He should never have even been leader.

Boris was only ever concerned about one thing - himself.

Those that supported and enabled him are still in power though.
https://benjaminion.xyz/eth2-annotated-spec/phase0/beacon-ch...