skysight-inc/HackerNews huggingface dataset:
Wtf.

If your use-case is that the user can select the crust, sauce, cheese and toppings for a pizza, just pass that shit to the make_pizza function with the help of enums and arrays. If you want to have predefined pizzas, you'd simply make a dictionary of pizza templates with all the options that the make_pizza function needs and/or if you wanna be fancy, you'd make a separate make_pizza_from_template function, but definitely not a make_pepperoni_pizza function, because that's just encoding data as a code in a silly way that arguably not even a factory pattern.

No solution will be able to cater to requirements that don't exist at the time of developing this pizza-application. You build it according to the requirements that exist and that is enough. It's not your fault if nobody cared to mention that the user should be able to arbitrarily subdivide the pizza and select options sepatately for each subdivision - that's a feature update and it's OK if the original program hadn't though of that. Just like you wouldn't scaffold ecommerce capabilities into a webpage "just in case", if there had been zero mention of such a need.
Ask HN: How to contribute to saving the climate as an old school hacker?
For the past 25 years, I have been involved in what today is called cyber security, mostly as a consultant based in Europe.
While cyber security remains interesting and important to me, I believe society today has bigger challenges to tackle than securing corporations.

In the future, I would like to make a positive contribution to saving the climate, one that goes beyond just managing my own day to day behavior. Unfortunately I don't see where I could best apply my experience and skills to make an impact. I don't believe there is a huge need for cyber security in climate challenges and think I have a mismatched skillset, or maybe I am missing something ?

So I am turning to the HN hivemind for your insights, any ideas on where my skills could make the most impact towards this goal would be greatly appreciated !
Yes, as someone outside the US, the fact that this is a thing is just... weird. When I go to the hospital I'm already worrying about health, I'm thankful I don't have to worry about money too.
That may be.
Virus particles are naturally occurring in human body and are mostly harmless. This vaccine may work on lab mice in ultra sterile environment. But in normal dirty humans it may cause severe allergic reaction, cytokine storm and painful death.
I'll be contrarian. These lawsuits are a Good Thing. Market forces push web sites and apps which are more addictive, more hateful, and more polarizing. Unless we have some mechanism to get that under control, things will continue to spiral.

I don't want to work on harmful technologies, and without government intervention, there will be increasingly incentives to do things which are harmful. Market forces apply to everyone -- devs, executives, researchers, and otherwise. A regulatory climate is there to point those forces to good.

Ideally, regulatory regimes don't ban things but, for example, tax or provide grants. I don't support outright bans. However, I would like to live with an internet which is, by default, safe for me and safe for my children. I support public funding of free software, laws like the GDPR, taxes on harmful things like sugar, and subsidies on healthy things. I'd like to live in a nice world.

The way I'd like the world to look is that the default path is what's considered nice and healthy, but the non-default path is available to people who have other opinions.
I read the article.

I was proposing to skip the (computationally expensive) step of approximation of the illumination effects on the subject within the live deepfake model, and just do a (computationally cheap) filter over the webcam image to be sent out.

I was saying 'correctly faking' might not be necessary, so let's fake it incorrectly. Of course I haven't tested it, but from reading the article, this seems to be enough to fool their detection model.

If I misunderstood this, please correct me, I am eager to learn. But please don't just repeat the article back at me. Thank you.
Which reminds me of the old engineering trick of saying it will take longer than it does as managing expectations is an art best explained by Scotty - https://www.youtube.com/watch?v=8xRqXYsksFg
Why would you want to maintain basically the same code in multiple places? That sounds more error prone to me. If the DRY code becomes too complicated then refactor it as needed.
What you mentioned is pretty much the way to go. You work on your config on the weekend what you thought was missing throughout your week. I wish everyone tells that the people starting out with vim/Emacs.
Well, I guess they won the challenge at least...

In all seriousness though, screw TikTok. Kids should not be using (un)social media til like age 16 at least. I always wonder how the future will view the creators of these (un)social media apps. Brilliant innovators? Capitalists that turned a blind eye? Soulless murderers?
Could be referring to a standardised high current mains connector...

https://en.wikipedia.org/wiki/IEC_60320#C19/C20_coupler
On your last point, that’s precisely what Lemoine very cogently argues in an interview with Emily Chang [1]. To paraphrase, he points out the absurdity in Google’s position, that a sentient AI cannot have been created, because they have a policy against creating sentient AIs.

Whether LaMDA demonstrates sentience is not even a clearly formulated proposition, yet the work bullishly charges ahead behind closed doors.

He is anyway trying to stimulate a broader conversation on AI ethics.

> Chang: Why does this matter? Why should we be talking about whether a robot has rights?

> Lemoine: So, to be honest, I don’t think we should, I don’t think that should be the focus. The fact is, Google is being dismissive of these concerns, the exact same way they have been dismissive of every other ethical concern AI ethicists have raised.

> Lemoine: All the individual people at Google care. It’s the systemic processes that are protecting business interests over human concerns, that creates this pervasive environment of irresponsible technology development.

> Chang: Big tech companies are controlling the development of this technology. […] How big a problem is that?

> Lemoine: It’s a huge problem because […] if you think about the pervasiveness of Google search, people are going to use this product more and more over the years […] and the corporate policies about how these chatbots are allowed to talk about important topics like values, rights, and religion, will affect how people think about these things, how they engage with those topics, and these policies are being decided by a handful of people, in rooms that the public doesn’t get access to.

[1]: https://youtu.be/kgCUn4fQTsc
* Bootstrap 5 for CSS and customized styling: https://getbootstrap.com/

* HTMX (formerly "Intercooler") for interactive (Ajax) functionality: https://htmx.org/
> But the nails have slightly different weights, so you need to pick some representative value. Question: Should you pick the mean or the median? Answer: You should pick the mean, because when you weigh all the nails together the differences will cancel out.

Well, yes, that is the definition of the mean.

But you can't know what the mean is without having already answered your original question of "how many nails are there?", so as a formal matter this is completely useless advice.

What you actually want to do is pick out a number of nails that you do know exactly, say 10, weigh them, and use the mean weight of that sample to estimate the mean weight of the entire supply of nails.
Japan to start jailing people for online insults
You could also try to use your network to find jobs. Ask your friends and old coworkers about who is looking for someone.
You do not own most forms of content/entertainment you consume. Maybe the only exception is what you created yourself and haven't sold the rights of.

This applies to all forms of content/entertainment consumers would like to enjoy in perpetuity. It's a tale as old as money. People will try to find new ways to generate money from creating things (example: NFT) and other people will try to find new ways to circumvent paying for it (bad example: take a screenshot of said NFT).

Most consumers might pay for 'fair' agreements, but don't like it when the agreement is altered. And when the consumer complains about that, the creator/company quotes Darth Vader that they should pray they won't alter it any further.

I do not disagree with both sides. I understand making money is important. I can also understand that stripping away those initial rights of the license is not fair.
The CDC is breaking trust in childhood vaccination
Celebrating the 10 Years of Elixir – José Valim – ElixirConf EU 2022
My "instant-flow" choices are Stellaris Soundtrack (Paradox Interactive) and Oblivion Soundtrack (by M83, Tom Cruise movie from 2013)

I'm a subscriber on Digitally Imported. It's know as DM.fm [1] nowadays but it's Digitally Imported to me since I started listening it in early 2000's :)

[1] https://en.wikipedia.org/wiki/DI.FM
Do you have any data to back up that "usually"? IME more often than not the only reason why content is clipped is because of looks not because of functionality. This also applies to the example in the article.

The HTML default is to flow elements to make space for larger conent. You need to go out of your way to break that.
I remember Trump being mocked for creating the space force, but it seems useful enough to not have been disbanded
The things that made me the most money and learned me the most are without exception those which are hard to sell in person.

Or in other words, I never got actually positive feedback before releasing and yet these products found their right customers.
We are running out of angular sand, not desert sand. Angular sand can be used for building materials like concrete but desert sand is smooth so doesn't work well for it. For this battery, I would expect either sand would work (but I didn't see any details in the article)
The way I read it, the employee installed/ran an .exe.
The issue not being forced only. It's how valid criticisms are just tossed out of the window and systemd is developed as is because "the lead developer and the team knew way better than the collection wisdom accumulated over the years".

Funny thing is they have bitten by the bugs they claimed they're immune to, so they had to apply these principles like they're first adopters of these.

I've voiced my criticisms over the years, yet I still use systemd. I don't like it, but I don't hate it either.

I want to share them, but, It'll be long, so I'll just leave links to my own comments:

1- https://news.ycombinator.com/item?id=27651567 - A general criticism comment.

2- https://news.ycombinator.com/item?id=25616356 - A general criticism thread.

3- https://news.ycombinator.com/item?id=29672248 - About bugs in systemd.

At the end of the day, if a critical component of an OS is being replaced, people at least want their concerns addressed. Want to have some conversation. Being yelled at literally and proverbially as forcing adoption of said software is bound to create some backlash.

*Edit:* Initial text contained in this reply misunderstood the parent. Corrected, clarified, softened and re-written. Sorry about that.
> Things got better under Nadella

- Windows is now a dumpster fire
- Azure is a mess
- surface computers suck
+ much more

I feel like our definitions of “better” are very different
Surely you'd remove repetition by doing this instead:

hawaiian_pizza = {
crust: "thin",
sauce: "tomato",
cheese: "regular",
toppings: ["ham", "pineapple"]
}

pepperoni_pizza = {
crust: "thin",
sauce: "tomato",
cheese: "regular",
toppings: ["pepperoni"]
}

def make_pizza(pizza):
requests.post(PIZZA_URL, pizza)

This isn't better just because it's DRY, it also keeps the data separate from code, which makes it usable elsewhere. Defining fifty different types of pizza inline inside functions is a strange choice, because it tightly couples your pizza definitions to your pizza-making. What if you want to answer a question like "how many thin crust pizzas do we sell?"
This is super interesting. But, if anything, it had the opposite effect on me to what was intended.

I'm 25, and I've been a bit stressed recently about how I've been working in the same company since I was 19 (took a year out and graduated uni when I was 21). I've started to feel like I've been wasting my 20s not taking enough opportunities or not seeking a more exciting job, just settling for one that's relaxing and good enough for now.

Seeing just how tiny my career has been so far, in comparison to retirement age, really made me reflect how things aren't that bad. I've got plenty of time to enjoy a comfy job and make some money before I go off taking crazy risks.
Do you know what you are talking about?

The blackmail done by a "private rogue lawyers", has a judge signature to authorize the ISP to give my personal information based on the IP that they supposedly got doing the infringement.
This is always done in courts in Bavaria that are very copyright-owners friendly.

Furthermore, around 1 year after I "Lawyered up", I still got a official Court order to show up in court, that's when I decided to fold and pay the 1000€.
I tend to feel the same. Something like I understand their legal hurdles licensing things across different country laws and such but in reality that is not my damn problem. Silly things like why can't I watch HBO max in Germany?
In business and marketing studies we are taught that companies in trying to protect their cash cows stagnate and are out innovated and surpassed by competitors. Very few companies are able to sacrifice their cash cow for something new. I think many of the western economies in trying to protect their older industries are now going to loose out to China as the world moves to renewables and electric from coal and gas.
I paid about 450€ for the 3x HPV vaccine series in Austria, which is absurd. In my time as casual sex addict I have seen three cases of severe anal condylomata outbreaks that I all sent to a dermatologist, all three not vaccinated. I myself had two anal warts (interestingly, right after the second vaccine) that I got cut out, luckily they never came back.
That is why we do stage I, stage II, and stage III trials before putting them to wider use.
Of course, it also only works if the profit offsets the cost. The cost of printing and shipping an extra book is very low. If you apply this to e.g. phones, I think the margins drop rapidly.
- Bootstrap

- Bootswatch

- Some custom scss to pop it up

- Some basic jQuery for everything dynamic

Simple yet super effective
The Old Man : Anyone can buy OCP's stock and own a piece of our city. What could be more democratic than that?
I think the underlying meta principle here is: Don't be dogmatic in your following of principles. Make sensible choices for the use case at hand which might be informed by the spirit of principles, but don't treat them like some biblical commandment that has to be applied at all time.
This is a link to liveblog, here is a separate news story:

https://www.theguardian.com/politics/2022/jul/07/boris-johns...
Do what's best for the situation, WET/DRY principles both have valid application use cases. They should be used to leverage the most advantageous effect for your usage.
I usually just pull in fomantic ui (fork of semantic ui). It has all the components (and variants) I need, it’s easy to use and the components look much nicer than other ui frameworks.
Good friend of mine had covid in November.

He is still coughing. Nothing went away.
You can also buy books by the linear foot. Apparently when WFH got going big time it caused a huge spike in demand as people wanted filled bookshelves as a backdrop for video calls.
In Finland, which this news article is about, typically in apartments, each radiator has a thermostat so you have very precise control. Also in houses. Further, each building has a heat exchanger.

Offices have multiple thermostats per floor.
One of my favourite bookstores before it closed was Galloway and Porter: http://www.bookstoreguide.org/2009/03/galloway-and-porter-ca...

They had remaindered or unsold books, covers intact, usually of an academic nature. But that also included O'Reilly books, and I got several large "coffee table" books of glossy photographs that would usually be £50 but reduced to £2 due to cosmetic damage to the slip cover.
Yes that is a very valid point and does move into the realms of marketing and psycology. Though there will always be a proportion of customers who that does not work upon, which is why I like ticketing systems, which enables the customer to go do something else and pop back in X minutes, as not all want to spend those ten minutes waiting in a queue when they can pop and do other tasks in that time.

Giving the customer the choice can see a balance of best of both, though smartphones have helped in that respect as they afford the abity to do that whilst being in the queue. But time managagment is an artform unto itself.
Super interesting! Thanks for sharing it.
It is true that kids learn social skills much more effectively and naturally as active members of a larger cluster of their peers. I think there is plenty of hard evidence for that. In industrialized societies there is another level or organization (network or networks is more complex) than per-industraliazed one. No argument or proposal is made in the article of how to organize and naturally allow kids to be with other kids in such environment (which has a more rapid pace of living with higher social pressures).
Cost wise it only makes sense if you have photo-voltaic on the roof. In Germany there is more acceptance of paying more if there is a (possibly perceived) environmental benefit.
Correcting someone's language is always ok as long as it's done respectfully, which it was. I'm sure people that speak English as a second language really appreciate it, otherwise if nobody tells 'em they're using something incorrectly then they're never get to learn!
One topic not discussed here, is that the function of homework is not only to increase attainment in the topic. I work hard. I strongly believe my hard work is a significant factor in my success. I didn't always work hard. In my GCSE exams (16 year olds UK Exams) I got a mixed bag of results, I didn't particularly work very hard. At AS level (17 year olds) I kind of realised that if I didn't start working hard I was not going to get good results. I started working seriously hard, particularly self-teaching the parts of my subjects that were particularly poorly taught by my school. I went on to get straight A grades (highest grade available at the time) in both my AS levels, A levels, and a first class masters degree from a top university. The role of homework can be to teach children the value of hard work and to teach them the skills and habits that are needed to be successful adults, that is more about culture than what grade you actually got in your middle-school algebra class. These skills and attitudes are also very difficult to pick up later in life.
Icelandic won't disappear soon. (it's a bit of a mistake to say latin disappeared but I digress)

It might take some work (and more media being produced in it, surely) but I don't think it's at risk

> because smartphones do not support their native language

Nowhere in the article says that. And most smartphones do even have support (including the Icelandic keyboard)

what is not supported is voice activated devices:

> "“Not being able to speak Icelandic to voice-activated fridges, interactive robots and similar devices would be yet another lost field,"
https://archive.ph/nT6Lf
> But you can't know what the mean is without having already answered your original question of "how many nails are there?", so as a formal matter this is completely useless advice.

Yes, obviously you'd estimate the mean/median by taking a small sample (or using a published value). I left that detail out because it's not relevant to the choice between mean and median.
Say what you want about Microsoft, but the thing is they look after their people. See Miguel de Icaza for a previous example.
It depends on the day, but I like to put on some stoner rock/desert rock, or even post rock when I need to concentrate. For example Electric Moon - Inferno, or anything by My Sleeping Karma.

Otherwise, classical music is cool. I also like some mild techno like BT.

But it must be a personal thing, probably.
I didn't pull in this case, but my reasoning was that eventually there might be a way to rescue those people.
Just restate the obvious: Russia has invaded Ukraine.
"Disabling profiles, debugging and MDM?"

I'm not really going to argue this but, just in case it is interesting for you and others to learn:

I use profiles/configurator on my kids' iphones ...
Perhaps a docker container?

If you set one up, I would like to know how it should be done
Not more silly than there are laws against theft and murder
I live in a area where you do not study in English. To counter your rudeness, you must be from the US if you don't know the language barrier is a thing.
Ha ha! I get emails from a former employer, who looks at my skillset and seems to think I'm a good match ;) They don't seem to have noticed I used to work for them, or else surely they'd actually say "would you like to come back?" . My theory is the recruiters are having performance measured by volume of approaches they've done, so there's an incentive to contact anyone who's a reasonably plausible lead.
I wrote a (simple) accounting/billing application for my inlaws' shop some 20 years ago wih wxWidgets. I developed it on a mac, but it ran on a PC. The PC was very modest even back then (some 486, at best), but the application ran like lightning.
Alain’s School of Life has been excellent for me. Mostly introducing me to well known philosophers, psychologists and summary of their ideas. It fascinated me that challenges analysed by thinkers a century or more ago apply to me today. There I discovered stuff like - 19th century idea how modern man would not need religion and would find meaning in education, art, chosen profession - and here we are none the wiser; Emile Durkheim’s 19th century analysis of people heading for life of opportunity in the cities… and getting more depressed; How differences between Catholic and Protestant Europe could be shaping our approach to work today...
Shame my introduction to philosophy happens through a YouTube channel and was not part of my education, but I guess needs some life experience to appreciate it.
> That all is a lot of nonsense

It is the cold, brutal truth that is happening right now in the free software / open source ecosystem. Totally accurate.

> this is an instance of Microsoft paying an open source developer to maintain open source.

You might as well put binary blobs in a GitHub repo and call it 'open-source' or / and have telemetry baked in stealing our usage data since the term 'open-source' not only misses the point, but it is quite frankly meaningless at this point.

But we all knew that the tech-bros have hijacked the point of open-source whilst the free software movement have failed to stop all of it.
I think that drawing conclusions from these examples is not productive at all. In the wild we're going to see functions such as

def make_string_filename(s):
# four lines of regex and replace magic

so that we have code like

file_src = make_string_filename(object_name)
file_dst = make_string_filename(object_name_2)

which is much more understandable than eight lines of regex magic where you don't even know what the regex is doing.

The problem of not knowing what it does or whether it has side effects or not is more a problem of naming and documentation than DRY. Even then, it's still better than repeating the code all over, simply because when you read and understand the function once, you don't need to go back. On the other hand, if the code is all over, you need to read it again to recognize it's the same piece of code.