skysight-inc/HackerNews huggingface dataset:
I am trying iRedMail to self host an email server. What do you use?

I've setup SPF, DKIM and DMARC. The PTR record is not possible for me to setup. How did you get around that? Did you get a static IP address?

What else do you think is necessary to make this better?
Amusingly, having not tested it, prior experience would indicate that my oven runs hot. Will throw a probe in there the next time I bake something.

All this being said, other than requiring a bit of extra planning, I have been quite pleased with the results of this slow cook. Maybe try a small temperature increment the next time I do it.
No mention of the paradox of tolerance, I see, either in the article or the study it cites.
There's been some discussion on that[1], with some suggesting the introduction of syntax analogous to f-strings:

foo(items, num=, kind=)
# equivalent to
foo(items, num=num, kind=kind)

But as far as I know there hasn't been a formal proposal (I could be wrong, and am happy to be corrected on this).

[1]: https://lwn.net/Articles/818129/
There's a point that I haven't seen made on the thread yet.

React requires a very particular mental model. You define a state for your app and your view is a function of that state. Most of nuance of writing react has to do with deciding where state belongs and how to model it.
This is very powerful.

I believe it is worth learning React to grok this model alone, and you can absolutely apply it to other frameworks and even other aspects of building apps.
We are using FastAPI a bit and it has been a decent experience.

One thing to note about it is tiangolo is pretty content to maintain singular control over his projects which means the project only really advances when he has the time or interest to work on that specific project.
I can second that. I've been working on fixing my hunger pangs for the past year or so. "Eat only when hungry" can end up badly if you already have eating/hunger issues in the first place. I've recently gotten myself to a state where I finally feel full after eating a reasonably portioned meal. Before that, eating most foods would just paradoxically make me get even more hungry.
I agree with everything in the article, but I would like to add one observation:

The article uses as an example of two arguments, a byte string and a string specifying the character encoding of the first argument. Having two arguments so strongly associated with each other as separate arguments is a slight code smell. One should contemplate unifying them into a compound type (like a class instance) which includes both arguments. It’s not always reasonable, of course, and may add more complexity than it saves. But one should keep an eye out for this.
In the last section, the author is wrong about `cadr`. It should be `cdr` that means “the rest of the list”. `cadr` is for the second element of the list.
I don't see the harm in someone spending a few hours nerding out on a strategy for a solitaire game. It's an interesting read for some, and shouldn't diminish your enjoyment.
I think what he was trying to say is that saying "crypto attracts scumbags" puts the onus purely on consumers of the tech, when in fact a lot of the scummy behavior, hype and fraud is planned and encouraged by the people implementing the technology, not only their users. That's a significant departure from "any other movement".
I'm a Red Hatter, and I'm not sure what they mean either. I obviously only know my own little corner of engineering, but I've seen no signs whatsoever of being gutted. From where I stand, it's just a change of ownership that, at least for now, is completely transparent on the ground. I expect the situation to continue for as long as Red Hat keeps making money.
faker.js creator says he wants GitHub to restore his ability to publish to NPM
I'm going to say something unpopular: it is possible to build and deploy real applications with just plain JavaScript and HTML. Not even Svelte and TypeScript. Just Javascript. I don't even use a CSS framework.

Yeah you are allowed to do that if you are a hobbyist, or if you are like me and a solo developer of a product. We are allowed because no one can stop us.

Component frameworks are useful though, and it is likely that if you bring in another developer to your project at a later date they will want to do it over in React or whatever flavor-of-the-month they like.

In my opinion, if this happens it's okay, because by that time there will be new frameworks and web languages that are popular (e.g., suddenly next year all the cool kids build websites in Ocaml, Dream 3.0 and web assembly) and the old framework you used won't even necessary be relevant anymore. Also no one really wants to pick up another person's large codebase anyway. They will be happy to do it over their own way.
The problem is infinitely printable FIAT, controlled by corrupt and incompetent politicians that is very slow and very expensive to to transact overseas and mutable.

The solution is 100x faster, cheaper, more secure, immutable, less prone to fraud and limited in supply.

It’s a very simple calculation.
Can wholeheartedly recommend Postmark, fabulous service and support. Virtually no problems over the last 6 years and always incredibly responsive to any questions.

Used to be with SendGrid, had a very bad experience with them where (at the time) they showed little interest in small customers and wouldn’t go back. A lot can change in 6 years, they may well be brilliant and now care more about small customers, but for reference:

https://news.ycombinator.com/item?id=12142728
That tends to turn Python into Java....
The paper found that the vast majority of Twitter users classified as bots were actually human. They analyzed data sets previously used by three organizations responsible for the majority of available papers on the topic.

The authors of the paper concluded that, in the future, any claims that withhold the list of account handles classified as bots should be ignored because the claims can’t be independently verified.

So they didn’t rebuke just one study but datasets underlying most studies on the topic, they analyzed Twitter rather than Reddit, and they did not claim that bots don’t exist. If I am mistaken, someone who’s analyzed the paper in more depth than I did can correct me.
Yeah, the more I look at it, the more I'm a fan of "?=". Kind of seems like the obvious choice at this point.

The only potential downside is that standard, function definition-time default arguments also imply "present? else = ...". But I think of all the options available, this one makes the most sense.
Makes sense that the high profile founders that started companies when young were largely inventing new industries from scratch. I'm actually struggling to think of a case where that's not true. Stripe kind of fits, but that's arguable.
I have some bad habits that I think come from reading so much fiction as a child as a way to pass the time, just plowing through...and I am trying to refocus toward making my goals primary and treating books, etc., as reference material that I dip into somewhat more random-access.
I don't understand how one can provide "damning statistics" for a trend based on a single sample. It is more likely that universities are less discriminatory today that fifty years ago, or ever. There were quotas on Jews at US universities as recently as 1960 and blacks were segregated until 1965, not to mention the centuries that women were banned outright. I think that only someone who knows absolutely nothing about the history of universities can think we're on some downward trend in academic discrimination.

"The idea that most objects of inquiry exist independently of the social world," is not, as the article states, "a central Enlightenment value," and it was the knowledge about racism acquired through research that uncovered the fact that many "technical" subjects have always been politicised, rather than "the emergence of Black Lives Matter" that politicised them. We've become more aware of the biases that have long existed among us. The discovery of those biases did no more create them than the discovery of microorganisms created the need for hygiene. In both cases, though, the discovery has certainly made some people uncomfortable.
You don't understand because it doesn't make sense. It's just fun sci-fi storytelling.
If you consider arbitrary code execution for desktop apps you'll see that there's no much difference at a conceptual level.
Typo in the title. If anyone has edit privileges then can they update it to "Ask HN:"
Modern day progressive ideology has for a while now been distanced from classical liberal ideology in a few key ways. Especially when it comes towards discussing ideas that don't always agree with the ideology.
This was one of my huge struggles with Go before I just out and out gave up. So much 'good' Go code at my office was just CS101 spaghetti.
> my first question here is: why are "liberal attitudes" correlated with education?

Here's one perspective on that:

https://www.libertarianism.org/publications/essays/why-do-in...
It doesn't matter what "we want". What matters is what the customer wants. The people paying 50k/year have decided that they want to go to schools where right wing views are not tolerated.
Was there a special on broad brushes at the hardware store? The author must be buying them in bulk.
The BMS ultimately just electrically contacts commodity li-ion cells in all cases that I've seen. You could use proprietary cells in some fashion but that would greatly increase the cost to the manufacturer as well.
Of course AI could replace doctors. Some people will always prefer the bedside manner a person provides, but many others won't care, and AI will eventually do a good job at imitating a good doctor's bedside manner.
Robot Nerf Alarm Blasts You Awake with Foam
Most people in the U.S. are one or more of "white, cis, straight". What often passes for 'diversity' in some places is very much the exception, not the rule.
They haven't. I have no doubt that IBM has historically mishandled a great many acquisitions but thus far I haven't seen any changes that feel pushed by IBM.

Source: I work at Red Hat.

It's a bit of a strange comment considering it blames IBM for Lenovo's management of the Thinkpad line and a commercial that they later realized (but still haven't corrected themselves) was actually an HPE commercial [0].

[0] https://news.ycombinator.com/item?id=30047062
We definitely have it easier here in America with regards to available space and the price of used equipment, though I'd note that this kid's situation isn't typical.

I grew up middle-class (my dad made, statistically, pretty much the median household income) and out of the scores of kids I knew, perhaps one of them might've had the parental and financial resources to do something like this, had he had the skill/intelligence/inclination.

We had a tiny garage, barely enough to fit a small car. Of course, there was no room for a car, because we needed to keep the yard tools and such in there.

I'm laughing -- trying to imagine my dad's reaction, had I asked him if I could build a science lab in there instead. "Sorry dad, the lawn mower's got to go somewhere else now" lol. He would have told me to go fuck myself.
So there are no bots on Twitter?
That's the thing though. Recurring payments hide the cost from you and it hides the fact are making a choice by owning a car instead of going to a nice restaurant every month.

Paying for stuff only when you use it puts the costs in your face and puts you in control of your spendings.
Absurd. The level of intelligence, perseverance, and money to pull this off is astounding.
For some reason everyone around me was treating it for a while as if it was a curated source of high quality writing (and I have seen people brag about writing Medium articles). I am still confused how anyone saw it as anything more than a blogging platform.
I used to use it as my sole source until the site became so slow that I couldnt handle it anymore.
What I learned from my time in grad school (physics) is that at least for the hard sciences, reading is not enough, you must DO.

Unfortunately this isn’t easy. It takes physical effort and will power to resist just reading over the words and feeling you’ve internalised something vs actually forcibly mentally thinking through the steps.

If the subject is something like math or physics, do some related ‘homework’ problems.

If it’s programming, actually implement something in that language or framework.

If it’s foreign language, try putting together useful sentences with the words and language constructs in question instead of just racking up points in Duolingo. Better yet talk to a friend in this language.

If it’s philosophy or history, well then it’s less clear. In that case your idea above may be the best you can do, either explaining to someone or even pretending you’re explaining to an imaginary newbie.

This is just my two cents but what I found works for me over the past few years. Personally I don’t
understand how people here on HN claim they can learn a math topic (eg quaternions) just by watching a YouTube video, or understand functional programming just by reading thru SICP but not doing a single exercise. Maybe they can, but in my case I need to work through some actual pencil-on-paper or hands-to-keyboard examples myself to really grok the subject.
I don't think I'm asking that? I guess I'm asking, where is the fun in reducing a game that takes some brain power to a game of solving one 5-letter anagram. Your analogy is a fair one though. I don't begrudge people using their talents to analyse and dig deep in to a game (like chess or go), I think it's just a bit sad that every single one of these simple games is effectively broken just days or hours after taking hold with 20 lines of code (see also 2048).
But seriously can we please keep political crap like this off HN?
No GUI library used thus far, but since I'm using Linux as my target machine for these things it's probably going to be Gtk. Might write my own helper library on top of some raw FFI bindings.
Yes, you should not do it in case it doesn’t help. But it sometimes does help.
I'm having a hard time understanding why they would be bitter. Residency is temporary and a part of the training process. Once completed, doctors will make 2x-3x+ compared to midlevels for the rest of their careers.
The article mentions that students are being, so to say, "a wild force", even though other sources express it with more evidence.

The issue is, the students attend to university in order to acquire and develop the intellectual instruments: how come those who "came to learn" by definition became tyrants over, possibly, the learned?

There is a basic cultural societal fault in the acceptance of the empowerment of the «emotional and politically charged». There is the foremost problem, in social disgregation impeding communication and discussion - the basics are shaken.
Yes, I think youtube is making billions of dollars a year. Youtube's revenue was $25 billion last year. It's a mature product. You don't think it's making money?
It's about power, just like mandating going back to the office.
Even though the PEP doesn't explicitly mention mutable default arguments, I'm pretty sure it's intended for this use case, as well. It should address this issue.

>Function parameters can have default values which are calculated during function definition and saved. This proposal introduces a new form of argument default, defined by an expression to be evaluated at function call time.
Plenty of electric scooters have no mechanical brakes and only electric braking on one hub. But since an extra couple feet of stopping power can be a life or death feature, you definitely want breaking on both tires. Even assuming no reliability issues with the electric breaks (hello sudden rain storm), mechanical is a cheap and weight efficient way of adding braking to the second hub.
It was a very big study with lots of interesting data! But I agree, I should have provided a wider range of citations. This report only covers the UK, but is also good: https://www.ucu.org.uk/media/8614/Academic-Freedom-in-the-UK...
>does anyone think the current US political climate is sustainable?

No. We seriously need to delete FPTP in favor of something more proportional. No one should ever be able to say e.g. "So you're voting for Trump?" because you don't want to vote for Biden.
Try uberspace! Small German hosting provider that should cover all your needs for sending and receiving email with a pay-what-you-want model (>5€ monthly encouraged). I host email adresses for several projects with them and never had any deliverability problems. Plus, they don't want any data from you.

https://uberspace.de/en/

Edit: they don't sell domains, but you can bring your own domain that you have registered elsewhere.
Crypto is not practical or fair by design. It needs a steady supply of greater fools to operate, and the only future it's capable of creating is one where everything is monetized, corporatized and the wealthy is in charge, with no recourse for the rest of us.

https://www.youtube.com/watch?v=YQ_xWvX1n9g
What's your motive here? Are you planning to leave the company if this escalates?

I'm asking because if you want to "take them down" you totally can. Capture evidence and involve an employment lawyer. But what is in it for you? The lawyer will get paid handsomely. What about you? I don't think you're particularly damaged by this to ask for damages.
Security too. In the UK a big target for thieves is just the battery.
Seems like you’ve conflated a lot of things here. Binaries in the Ubuntu Snap store are not reviewed for years, it’s days at best (and that’s only for classic mode, the confined apps are released without human review). Software you get from NPM isn’t a random website nor is it a desktop binary, it’s source code you can read. I trust random web pages much more than I trust Linux Desktop apps, because the browsers are far more audited and safe than applications, and I have complete control over what data I put in the browser.
There’s a ton of daylight between being oppressed and deciding not to engage in an argument. If you are not engaging out of a fear of large-scale repercussions, then it starts to smell like oppression.

Not to say this isn’t bad, but it’s important to make sure to take context into account.
Show HN: Fugu, open-source and privacy-friendly product analytics
I'll give a different answer, which is that a blockchain-based prediction market can be used as an oracle for other blockchain-based contracts. So there can be both a final answer and a mark to market for the contract which should approximate reality in some way. However, being unregulated, there's always the possibility of cornering the prediction market and causing the derivative contracts to end with unreality. So you may need another kind of oracle to finalize the market price of the prediction market.

Probably could be accomplished without crypto, but it can also be accomplished on some blockchains with minimal additional investment.
Hello HN!

Fugu is a product analytics software that focuses on privacy and simplicity. Oh, and it’s open source[0], too!

At its core, Fugu allows you to track events along with properties by calling the Fugu API. You can then analyze your events by looking at different time ranges, time aggregations, property breakdowns and creating conversion funnels.

Here’s an example request body that you might use:

{
"api_key": "very_secret",
"name": "Fun event",
"properties": {
"color": "Blue",
"type": "Oak"
}
}

Fugu doesn’t track unique users, not even anonymously. I believe that you can get enough insights without doing that, and that the incremental insights you get by tracking unique users is not worth the privacy trade-off. You can read more about my thinking in this post linked in the footnotes [1]:

I’ve used Mixpanel, Amplitude and PostHog before, and while they are good tools, they lacked the privacy and simplicity I was looking for. I didn’t need (nor wanted) integrations with other tools, screen recordings, feature flags, retention analyses and so forth.

That’s why I started to work on Fugu sometime last year and went in October. I’ve got a day job, and I only get to work on Fugu for a couple of hours each week.

You can host the open-source version yourself for free, forever, without any feature restrictions. Additionally, I offer a managed cloud version and charge $9/month for it. You can try the cloud version for free - you don’t need to pay as long as you only track events in test mode (it’s meant for testing, and those events are deleted after 14 days).

Fugu is a Ruby on Rails monolith. I use Postgres for the database and Stimulus for the little JavaScript I need. For the charts, I use the awesome Chart.js library. It's hosted with DigitalOcean in their Frankfurt, Germany data center.

I'm looking forward to any questions or feedback you might have.

0: https://github.com/shafy/fugu

1: https://fugu.lol/why-fugu-doesnt-track-unique-users/
Indeed I did not check the bio of the article writer, but when you read:

<<As a result, the GOV.UK Coronavirus dashboard became one of the most visited public service websites in the United Kingdom.>>

You don't expect the gov UK dashboard to be done us consultants...
A class seems heavy. The tuple() is a great way to keep it light.
Thanks for the hint. You're right, I've changed that!
IANAL, but I did work as a recruiter. This sounds illegal from what I know about hiring. Diversity good. Discrimination bad (and stupid).
A relative new player is MailerSend (https://mailersend.com/). We've moved all of our transactional e-mail over to their service.

They have a sensible onboarding and UI/dashboard. The dashboard makes it clear how to set up SPF, DKIM and DMARC. There is a generous free tier for a single domain. A single paid account supports multiple domains starting at $25/mo for 50k outbound. Support has been excellent.

And the biggest upside is that their shared IP range, so far, is clean and not blacklisted. That was the clincher for us.

I have no connection to MailerSend other than as a happy customer.
Recommend a good such tool for all kinds of image editing
/Cropping/etc in browser?
Sendgrid has the worst IP addresses I ever used for sending email and the customer support has been even worse.
I think there is sometimes too much confidence placed in these results (no different than any other empirical field that makes heavy use of statistics and significance testing). But it's still a positive direction, unquestionably.
That's knot funny.
Reminds me of the IBM lawyer scene in Halt & Catch Fire