skysight-inc/HackerNews huggingface dataset:
Named parameters using a struct.

struct calculate_args {
int x, y;
enum {add=0, sub} operator;
};

int calculate_func(struct calculate_args args) {
if (args.operator == add)
return args.x + args.y;
else
return args.x - args.y;
}

#define calculate(...) calculate_func((struct calculate_args){__VA_ARGS__})

Now you can combine positional and named parameters or omit them.

calculate(1, 3); // 4
calculate(8, 3, .operator=sub); // 5
calculate(.operator=sub, .y=7); // -7

Works very well in cases where there is a lot of parameters that default to 0.
Keep in mind that you still need to know how structs work and you lose compile-time error detection.
See also: https://github.com/RSS-Bridge/rss-bridge
(already supports around 280 websites)
The point of a physical signature is not that anyone else can prove you signed something. It's that if you go to court, and the court asks if you have signed the document, you're committing perjury if you say "no" (assuming you did sign it). It's the act that's important, rather than the resulting scribble.
That's common in many places in the UK as well. And, in the US, it's pretty standard for a mandatory 18% to be added to the bill for groups. (The thinking is that a server could be really screwed if they worked all night for a group that under-tipped, as is easy to happen with a big group splitting a bill.)
> If Facebook allows third parties to scrape data (who can incentivize users any which way) where does it stop?

What say should Facebook have here though? I'd argue that when I am viewing data through my browser it's on my computer at that point. I've downloaded it so why should Facebook be allowed to decide what I can and cannot do with it any more than they can decide what I can do with my emails that I also view on my computer?
No, they replaced all the Google services with Microsoft implementations.
It improves service if people who look like you tip a lot. If people who look like you don’t tip, it makes it worse.
They assume YouTube's content costs will scale similarly to Netflix, which doesn't appear correct to me, mainly because YouTube content is largely user generated and I would assume orders of magnitude more new content is uploaded per day than Netflix. I don't know if you could even use Netflix CDN tricks since their content keeps changing constantly.

Considering pretty much every YouTube video I see these days is uploaded in 1080p or 4k, these costs would start to matter eventually.

I wonder how this affects their operating margin, considering this article calculates it to be between 5-18%.
Tests appear to only be available to paying customers though.
It takes some getting used to, but it does make a certain amount of sense, in allowing for very easy refactoring / restructuring, and fine-grained control over the shape of the graph.
JFTR, In a year since BrickLink acquired by LEGO® Group still there is no explanation provided to LDraw.org Team.[0]

[0] https://forums.ldraw.org/thread-23768.html
How is it a crap study? They had a bunch of people wear masks, which they did with varying levels of compliance ("46% of participants wore the mask as recommended, 47% predominantly as recommended, and 7% not as recommended"), and found no statistically significant reduction in infection rates.

To me that seems like a pretty convincing reason to believe that wearing a mask is not going to decrease my chances of getting COVID.

Do you have a compelling reason to believe otherwise?
Most advanced rich nations are like that (and FYI and you've just described why they are rich.)
Isn't most of this just due to the missing fade transition?
I believe calling C from Go is a massive pain, and is slow, because of goroutines. Go makes the OS syscalls directly to avoid going through libc.
Ah-ha! Thanks!
Cups and spoons were popularized by American author Fannie Farmer. These measurements replaced earlier ones like a "handful of flour" or a"teacup full".
They do not even take up the main problem between academia and FB.

Science goes were the data is- and data is at G,F,A . Meaning any science regarding people e.g. social sciences, psychology, behavioural studies - are effectively privatized.

Meaning, the paper of psychology grad-student who did a experiment and asked 200 people on campus is less valuable, as the internal report of some fb-data scientists, who wrote a query and a filter and send the very same question into the production database.

So if a whole branch of the sciences is effectively privatized, why do we even pretend the outside branches are anything then a publicly subsidized hobby?

Why is there no real discussion about the moral problem of privatized sciences, selling the knowledge and advantage gained as manipulation lever to politicians?
I don't see a reason to implement anything like this without using bpf.
Tipping is out of control in The US. Everyday it seems we're being asked to tip in new situations where there never was such an expectation before. This is really just employers passing their staff costs on to customers.

Also, if you have a "tip" jar on the counter at a takeout joint or convenience store you're not asking for a tip, you're panhandling at work. I really don't appreciate the attempt to guilt me into paying extra for a gallon of milk or whatever.
Trust me, as someone that’s been both front and back of house, being a waiter is not easy. Different skillset than being a cook, no doubt, but personally I found waiting far more stressful.
Algorithmic Geometry
I think it would be better for society to codify living wages and better working conditions, and provide education for all as a means for advancement rather than tell poor, underprivileged people to grovel at the feet of a benevolent rich person who can help them move up the hierarchy.

Of course, that solution would make rich people less rich and less “powerful” by not subjecting those with less to their charity, so I can see why some would oppose it.
> As for your support for Google and Facebook moderation: don't you think support for the purpose of free speech requires that people be capable of exercising that freedom at a practical level?

The purpose of the first amendment is that the government can't throw you in jail for speech (freedom of speech, freedom of the press) and you can decide who you collaborate with (freedom of association). That's it. End of story. There's no thought or word put towards other people having to play nice with you about what you say.
My complaint (as an Australian) against tipping is that I have no idea what the cost of my meal ends up being.

If I dine out here at say a pub, the price for a steak is $30 AUD and the price of a beer is $5.

The total price I pay is $35 AUD.

This includes tax.

This includes the wage for the staff front and back of house.

And if for some reason I'm feeling like tipping the staff because they went the 'extra mile', I can optionally do so.

This is super confusing in the US (as a visitor) when the price of a meal is advertised as $xx and then you go to pay and it's actually $xx + tax + tip.

If I'm paying a minimum price of $xx + tax + 10% tip, why not just make that the price of the item? It just makes no sense to me!
I think any mandatory charge should be included in presented prices... Maybe that is just coming from country where I don't really need to calculate any of added taxes and so on.
Use VLA pointer arithmetic for invisible multiplication.

Also, anything involving arrays of pointers to functions is cool by definition.
I only tip because I'm afraid of what they will do to my food if I don't.

https://www.menshealth.com/trending-news/a19547701/how-resta...
I think it’s also worth noting that 50USD is a fantastic price for what you got -I can’t see anything even close to that good of a deal locally or on eBay, whereas I can buy a Pi with minimal effort right now.
I've been thinking the same thing. Take that away and I would... (maybe stay on an old version of macos where I can block apple)

Honestly I feed my macos box through a web proxy (currently privoxy) and block the crap out of everything.
>there are plenty of other regulations which only target companies above a certain size.

Conversely, there's even more regulations and more importantly, rights, that apply to every company. One of those is freedom of speech, i.e., the ability to not be forced to publish on a private platform the views of everyone.
Twice as long sounds about right. Optimistic even in some cases like when it calls for a sweet potato since that's irregularly shaped and needs to be pealed and chopped and is quite hard.

Maybe we need a "banana for scale" equivalent in cooking, where chopping time is defined as N times pealing a banana / chopping an onion. Or we just keep doubling the prep time of everything written in cook books, recipe websites, etc...
The render looked fast.

Gigabit internet, super computers in our pockets.. and people think this is "fast". This is why we can't have nice things..
Oxygen issues was a “let’s say” and the op said they don’t follow that. The point is not oxygen, the point is that some people feel the risk of wearing a mask always may be close to or greater than the risk of covid. Here’s a different take I’ve heard from those worried about masks: keeping a warm, moist cloth around your face holes while constantly having to adjust it by hand might lead to increased chance for other infections.
An american tablespoon is as UK desert spoon. The UK tablespoon is much bigger than the american one.
What is your social life like? I worry that post 30, starting a social life from scratch might be too much, especially for someone who is admittedly not particularly social.
What makes restaurants and bars different from other service industry jobs? Like your local policeman, judge or border guard? Shouldn't those be tipped too? Or wait, isn't that a bribe?
Pycharm has a profiler I used a couple of times.
https://www.jetbrains.com/help/pycharm/profiler.html#jump
The more likely scenario would be spinning it out as a separate company in which case it would probably be the biggest google cloud customer for a long while.
The problem is: what is the single source of truth (TM) for the expected DB schema? An ORM will (hopefully) manage a meta table with all the information. If I work on a collaborative project, I might rely on an outdated table structure. So ideally, the app reflects the DB schema in some type-safe manner.
How many liters are your hogsheads?
I really, really wish there was a paint.net clone for Linux. Paint.net is windows freeware, closed source since an early release, which is both feature rich and a pleasure to use. It covers 99% of use cases ordinary people have.

I believe the author closed the source after some other projects tried to use it commercially. It still gets regular updates.

There's an attempt at a clone, Pinta, which was based off the early open source version but it didn't get much further than mspaint functionality.
When I saw "45ot/min" on the record, I suspected the author was Czech or Slovak :)
> Apple has made it clear that they won't support other OSes on ARM Macs [...]

That’s not completely true. They seem to be open to Windows.

Craig Federighi has stated that Windows could run on M1 hardware, but Microsoft’s licensing doesn’t allow the ARM version to be installed in a non-exclusive manner.

Source: https://9to5mac.com/2020/11/20/windows-can-run-natively-m1-m...
Tipping isn't going away just because waitstaff make minimum wage. It's too ingrained in the culture. As evidence tipping still exists and hasn't declined in the areas where those laws are already in effect.

I'm sure there are bartenders making 6 figures, but according to the BLS, the 90th percentile make $40k with tips.

The median pay is $10. That's lower than minimum wage in a lot of places, so I doubt that many bartenders are against minimum wage before tips (none of the ones I know are).
How’s it marketed as a gen 10 device? They didn’t remove the higher tiered macs still running intel in the pros. The airs they blow past their previous versions. MacBook has been the same since power pc. Also has the same non first party issues as the previous on it day zero devices. This is not new for legacy Apple users.
Interesting yeah that would make sense. The thing that I thought made this all all the more conspicuous was that they are basically launching this at the beginning of the holiday buying season so there's missed opportunity with people who like/want larger format MBPs. Cheers.
> Sure, but only short-term. And if you only care short-term, because you are a politician with a short term, then fine (for you).

Feeding children so that they can be stable adults is one of the most long-term policies I can think of.
Sound on Sound magazine! https://www.soundonsound.com/
StimulusReflex: Craft modern, reactive web interfaces with Ruby on Rails
You can quote your code (by preceeding it with four spaces) so that your stars become visible:

struct foo { int a; char *b; }
struct foo *p = malloc(sizeof (struct foo) + 100);
p->b[50] = 'x';
...
free(p);
'Someone's typing ': The history behind text messaging's most dreadful feature
Modern Portraits of the Soviet Arctic
Show HN: A newsletter for open source projects that I recently started
Running serverless
It's not that simple.

People argue about it mainly because their's potential for not tipping to piss off your server. He could spit in your soup or smear your steak on the ground a couple of times before bringing it out to you.

This expectation of tipping is forcing me to tip or I'm eating the saliva of a disgruntled server.
Sound Forge
I have never seen a well-made but general solution beat a well-made and specific solution for one problem, in complexity or run time, ever. This is very true with allocators. A lot of the time people will just use 'malloc' without any thought into what they're actually allocating. For example, if you only allocate/deallocate from one thread, jemalloc is already way overblown in complexity.
And that section gets bigger and bigger every year. Tip for drivers, delivery, movers, cashiers, barbers, doormen.

But not the janitors, nursing assistants, cooks, non food establishment cashiers, retail workers, etc.
Randall Carlson thinks it happened on Earth, around 10,000 years ago.

Mega-ripples of Camas Prairie Basin

https://www.youtube.com/watch?v=3iNHQCKQNhY
You like this because it harms Google. I get it.

But the principle and it's implications you have considered deeply and have no issue with them?
Thanks for informing.

- I assumed everyone here on HN would be familiar with him. But lesson learned that it was just another assumption. I've added the details about him.

- I've fixed the broken links.
The real thing with tipping IMO is the unknown of where and when it's expected. At least at restaurants, it's pretty standard that you're supposed to tip and roughly how much.

It's like, there's some mysterious unknown correct tip amount. If you don't just automatically know this amount and don't tip at all or too little, then you're a jerk. If you tip too much, then you're a sucker or trying to get some other kind of favor. How about if you want to make a particular amount of money for doing some job, you just tell me how much you want? I can either agree and pay it and we're both happy, or not do it at all and at least nobody feels ripped off.
Tipping doesn’t go away because the baseline shifts. You just tip 0-10% for bad to good service instead of 15-25%.

The first 10-15% of “tip” in the US isn’t a thanks, it’s a mandatory tax on menu prices.
"What does this even mean?"

It means they have better Doctors, better processes, better equipment, more of it.

It means if you have a problem, and want to 'be fixed' - you would much prefer to be in an American hospital - the only question is 'can you afford it').

Rich Canadians go across the border to the US all the time for care.
It depends on whether you are paid regardless of the outcomes beyond your control.
Sure. I'm not defending Cambridge Analytica here - just saying that, on a practical level, it seems unlikely that they had a decisive impact on any elections.
I have gotten registrars to change domain records for domains over the phone without having to prove who I am. Definitely vet your registrars and registers very carefully, they do not all operate by the same rules.
Huh, until now I've only ever thought of "number cruncher" as a euphemism for "processes numbers rapidly like a creature crunching through food".

But, now you say this ... early 'computers' (eg adding machines) of course did have teeth (they used mechanical gears) and would literally be 'number crunchers' and so would fit a description of "crunches numbers with it's teeth" as a literal term.

Now, a number cruncher in UK English is used to refer to a person, like an accountant: I suppose in the past they crunched numbers using mathematical machines (analogue calculators).

Also, of note is that originally a 'computer' was a job role of someone operating a mathematical machine.

Obviously then a 'computer' became the machine, and it still 'crunched numbers' except it did it silently using transistors.

It sounds like that textbook was not wrong but perhaps just needed explanation.
Redditor suffering from cancer shares wisdom and bids goodbye in final post
What evidence is there that masks prevent lockdowns? We've been wearing masks for months now and lockdowns are coming back regardless.
Well, unless you need to divide a recipe down. Base 10 isn't optimal for everything.
DevSecOops – Stories of DevSecOps Failures and Success
If you’re dead-set on using FOSS, why switch to the Mac in the first place? Wouldn’t you stick with Linux and use GIMP (or maybe Krita, which is usually a better alternative)?

GIMP is not really a good image editor, when you compare it to the alternatives and include paid alternatives in the comparison. From my memory of using Photoshop, I’d say that GIMP is roughly equivalent to Photoshop 3.0, which came out in 1994, although it is missing some core features from Photoshop 3.0 (and prior versions—the workflows that I used in Photoshop 2.5 are unworkable in GIMP, as far as I can tell, and it’s extremely frustrating to try and use GIMP for basic tasks).
> IMO the idea that a handful of private companies with completely different business models and content moderation policies have a 'collective monopoly' on public communication is ridiculous

I have the opposite opinion: these companies do collectively cartelize public speech. People who get banned from one platform are frequently banned from others soon after, especially if notorious. These companies also all have content policies prohibiting the same constitutionally-protected speech, e.g. on some subjects relating to the recent election.

Censorship doesn't have to be binary to be censorship: an environment in which your reach is reduced to practically nothing if you have one viewpoint and amplified into the stratosphere where you have the opposite viewpoint is an environment antithetical to the purpose of the first amendment, which is about creating an open and honest marketplace for ideas. Being able to talk about some idea in your kitchen but not on the internet is an inadequate level of free speech protection for today's world.

There's nothing wrong with requiring neutrality from social media companies. Common carrier regulations wouldn't violate their free speech rights: these corporations aren't speaking in their own voices, but are instead carrying the speech of others. And besides: corporations are not natural persons and we should abridge their rights in order to preserve the rights of real people.
-Wimplicit, UBSan, ASan,...

The idea that "you can't write safe C" is a big joke. C is as safe as you make it.
Your knives may be due for sharpening, and you might benefit from a different grip. Youtube is pretty good for knife skills.

Here's my favorite video on the internet: https://youtu.be/1y5h1pDHhzs
If I'm baking bread or a cake or something that really needs exact amounts yes. Strict mise en place and measuring things by the gram for basic recipes seems like major overkill to me, I'd eyeball everything and avoid dirtying the measuring spoons at all. Maybe I'm lazy.
Actually you can regard "closed" questions as a way to find the best questions.
Tips for Finding and Hiring the Best Freelancers for Your Business
My favourite in this space is https://tiddlyroam.org/, very usable, easily extended and cross-platform.
1 US cup is a little less than a quarter liter (actually 236.6 mls)

There are 16 tablespoons in a cup, which gives the ~15 mls you found.

Also note there are 3 teaspoons in a tablespoon.
What's the point of separating it?

Why not just increase the price of the food and service charges to compensate for the salaries?

It feels like some kind of psychological hack where they want price of food to appear cheap on paper till the moment you pay.
The Scary Parallels Between Trump and Mussolini
No one brought up valid use cases for docker-in-docker. They brought up the issue that gitlab mandates docker as an interface (which I totally understand, btw.).

For instance the "how do I compose multiple docker containers" is trivial when you can just execute a script that runs docker or podman. If you really want, you can use docker-compose.
It would be worth more than that.

It’s per user revenue is low and can be increased to $20 as author notes.

Today’s market values growth over everything and since they are profitable they will get a steep multiple.

Markets are irrational and trade on momentum.

The valuation provided is more of the floor than what it would trade based on growth expectations and general excitement.

Unlike FB which has competition from Twitter and Snapchat and would be suffering had it not acquired Instagram, YouTube itself has no direct competition in its space.

More likely it would trade at $250-350b

Either way it along with Instagram are the two best acquisitions in modern tech history.
Big thumbs up for PostgREST. While it hasn't been completely issue free for me, it's a great project making a ton of progress and the community is very helpful and responsive.

I found myself butting heads with the limitations of the API quite a bit, but since it has a wonderful RPC feature, you can always drop a custom endpoint to do what you need to do without completely ejecting.

You can also surface other systems with PostgREST, using foreign data wrappers. This is great because you can use Postgres's rock solid role system to manage access to them. FDWs are surprisingly easy to write using Multicorn, and you can get pretty crazy with them if you're fronting a read replica (which you should be doing anyway once past the proof of concept stage).
If you want to view it that way, fine, but it's far more than just a 'system'.

It's like saying 'transportation' is one key to a healthy 'manufacturing system'.

If you are sick and you can have the choice between going to an American Hospital or a Canadian Hospital ... you go to the American one, because they are better, point blank.
What's your typical way of sourcing clients?
Right, the purpose of the law was to prevent the act of moderation resulting in the moderator becoming complicit. Moderators' options before Section 230 were either:

1) assert some control over the content, thus showing you are engaged with it, meaning you can be held liable for it; or

2) do nothing and avoid sharing any guilt.

My go-to example of a Section 230 defense is a library sued by a mom whose kid looked at internet porn on the library's computers. It's not the library's fault there's porn on the internet, so even if they had policies and safeguards trying to prevent this, it doesn't make sense to punish them.
Very recently, just before Pandemic hit India, we had to run around because one of the key Japanese counterpart was in USA and unable to send money (small amount) to complete a stock purchase.

My response was, "Please login to your bank's website and do the transfer."

That was the time I learnt that some (or maybe more) Japanese Banks still need the individual's personal Stamp/Seal to send money from their Banks.

I learnt an interesting thing.