skysight-inc/HackerNews huggingface dataset:
Oh kotlin automatically names arguments for all functions/methods, not just anonymous blocks?

I'm obviously not familiar with kotlin.

I'd call it "quirky" to suggest that it's more "advanced" to automatically name arguments `it` for all function definitions!

I thought the kotlin enthusiasts were only suggesting it for anonymous inline blocks/closures, but was hypothesizing, ok so would doing it for all functions be even more "advanced"? (Is the answer that kotlin already thinks yes?!)
I've struggled with this for quite some time now, and tried almost every tool out there. At the moment, I'm settling with Bear, writing my notes in Markdown. I prefer the ease of using nvAlt but I need the ability to store images and PDFs and I like the fact that it has some very nice export options should I eventually move to another tool, so I don't feel like I'm "locked in".
Speak for yourself, my favourite 1995 Microsoft operating system was MSDOS 6.21
Show HN: Huemint – Machine learning for color design
How do you ensure that the client has docker though? Make a cross compiled binary that downloads and installs docker and then runs your image for them? Run it through a browser on another server? The starting point there leads to similar problems.

Also, docker seems to be on the way towards non free (or already in a?) /non-foss , so will probably soon be completely out of favor with everyone.
Perhaps other tools like jails,bhyve, etc will rule the space soon.
The embargo on Cuba has been a humanitarian and political disaster, and I think a position of respecting Cuban sovereignty is more widespread than you'd expect. The West has tons of dirty laundry, but it doesn't negate Russia waging a war of conquest.
Even Apple is moving into this space with Xcode Cloud.
Exhibit 1,029,267 in "knowing a lot about ethics does not make you more ethical".
Surprised not see Brave listed as an alternative to Google Chrome. Its a fantastic browser
So if you website is hosted by Github pages (US), then that is ok because you can't self host?
Author here, it makes me really happy to see SIngleFile on the front page of HN. Thank you! I take the opportunity to make you aware of the upcoming impacts of the Manifest V3 [1], and for those who prefer zip files, I recommend you to have a look here [2].

[1] https://github.com/gildas-lormeau/SingleFile-Lite

[2] https://github.com/gildas-lormeau/SingleFileZ
Ukraine: BBC adds two shortwave broadcasts, NEXUS adds MW service
I guess I'm at a loss then.

I've enjoyed the Souls series and have beaten all the games multiple times. They're also the only RPG I've ever played where I have absolutely no idea what's going on with the character past the entrance cinematic. I go into areas, kill things, fight named bosses until they die, and then go somewhere else. I'm sure it's a thematic part of the experience, but it makes the games feel like empty shells past the combat to me.
Of course I wouldn't want to find out but does Russia really have the capacity to threaten anyone else with war at the moment? Before the invasion they amassaed 70% of their army next to Ukraine and the US say (and why would they lie) that they have committed 80% of them.

Not to mention that it's not going exactly according to plan there with probably thousands of russian casualties...
I have an optical drive on my desktop, it's handy for reading old DVDs and Blurays, which are actually a fairly cheap way nowadays to get media, and ripping off of disks to digital formats is pretty easy. I wouldn't put one on a laptop at this point, but I'd probably keep one on my desktop, I still use the one I have on my desktop fairly regularly -- it's not just collecting dust.

At the same time, I don't know that I would go out and buy a new model. I don't use my disk drive enough that I need to care a lot about having extraordinarily fast BD write speeds.

:shrug: maybe the economics have changed and I'm being foolish buying SD cards and and external hard drives for archives instead of rewritable blu rays. But I feel like a lot of backups need to be mirrored to other mediums anyway to combat disk rot, so I'm not 100% certain that I'd like to have all of my backups sitting in a CD case to begin with. Seems like it would make retrieval awkward. Again, maybe the modern tech is different and Blu Rays are now an amazing way to store data.

But mostly I use my drive for compatibility with older formats and as a way to get access to cheap media, and while I see that continuing to be useful, I'm also not hungering to update my setup or buy new devices.
well the cost to build the architecture orchestration is where the real "value" is
1. There is a $300 copay for an emergency room visit (both in-network and out-of-network). This is actually our only copay period. It is to encourage people to only use emergency rooms for emergencies. There are no deductibles for our primary plan though we do offer a HDHP as well (for employers with HSAs), so for the secondary product a deductible does apply. Emergency care is always covered as an in-network benefit and no copay would apply for inpatient care/admissions.

2. Payor ID is EH001. Yes to all except 276/277 for right now.

3. Naturally, this depends on the type of provider. We work with our providers to contract on a basis that is comfortable for them. Not all physicians are ready to accept something like capitation. We collaborate with physicians on the quality parameters to track. Some agreements are done as bundles for the entire episode of care. Some agreements are case rates or capitation payments. Some are still benchmarked off of Medicare but tied more closely to patient outcomes. For example, with primary care doctors we target avoiding poor control of diabetic A1C levels to be below 15% and to do depression or anxiety screenings for more than 80% (among other metrics).

4. Nope. We contract directly and do all the claims processing ourselves. Sometimes that means negotiations can take awhile (for large health systems) but it almost always means we reach favorable terms with a mutually beneficial structure.
Also, here's a writeup on how the machine learning system works: https://huemint.com/about/#machine-learning

You can guide the ML model by locking one or more colors, then clicking generate again. (click the circular swatch on top to lock a color)
I perhaps should have said progressives and you are correct, although I am under the impression that the tough on crime legislation was broadly popular among conservatives and liberals, and not so much enlightened conservatives, libertarians, or progressives. But the latter groups have always been a minority.
Agreed. It’s common for doctors to be skeptical of patients if there’s no test that proves the condition they have, even though absence of evidence is not necessarily evidence of absence. It’s a sign for inquiry at least until certain causes can be ruled out for the still suffering patient; not just lazily diagnosing them with anxiety as doctors are sometimes apt to do.

By creating tests, it gives both doctor and patients the ability to move forward to create incentives for the medical industry to solve these problems. The former so they’re not penalized for questioning the status quo. The latter so they have their concerns properly addressed.

Very important work.
You are talking nonsense. I will write it again just for you: Ukraine has 4 nuclear stations with 15 weapon grade nuclear reactors which are producing Plutonium and use enriched Uranium.

The point is to use the nuclear reactor like a nuclear landmine, to blow up at retreat, to do maximum amount of damage. It's called «scorched earth tactics».

Ukraine, as part of USSR, developed nukes decades ago. Ukraine is the fist post-nuclear country in the world.
Mental Models for Learning Rust
Here's a transcript from one of his appearances on "Wait, Wait, Don't Tell Me" giving his opinion on the 2016 candidates:

> I have a little announcement to make. I mean my whole purpose in life basically is to offend everyone who listens to NPR. No matter what position they take on anything like I'm on the other side of it you know.

> I'm voting for Hillary.

> I am endorsing Hillary and all her lies and all her empty promises. I am endorsing Hillary. The second worse thing that could happen to this country, but it's she's way behind in second place you know.

> I mean she's wrong about absolutely everything but she's wrong within normal parameters.
There is none, but "broken McDonald's ice cream machine" is a whole category of meme.

So people start wondering my McDonald's is so plagued by machines that seem to only work on the third Thursday following the fifth month after the Lunar eclipse.

But it's likely a combination of disinterested staff and machines that require more involved maintenance.

Not to mention, there's several points of failure. Not only can various parts of the machine break; the drum that spins the mix, the compressor to keep the mix cold, leaks in various hoses and lines, but you can simply run out of mix.
I have gig internet and streaming still doesn’t match. There are definitely artifacts in some scenes at 4k. My kids have made me watch Frozen 2 a half dozen times and there’s a scene at the end where the reindeer are all running in a circle that turns up blocky crap every time.

With that said, I haven’t put in a physical disk for a movie in years. I tolerate the artifacts for the convenience.
>SPA's suck! Here's my ad-hoc replacement architecture that you should totally just use!

Really though, this is a dead horse. SPAs are just a tradeoff like everything else in engineering. We trade the simplicity of a monolith for the ability to parcel out work efficiently between large disparate teams of frontend/backend engineers.
Russia: IT companies will be exempted from paying income tax for 3 years
Rogozin is famous for this kind of talk.

In 2014, after an airplane with him on board was denied entry to Romania due to EU sanctions, he threatened that he will return in a strategic bomber.

https://www.reuters.com/article/us-ukraine-crisis-romania-ru...
Sites are perfectly allowed to do just that... of course doing that they deprive themselves of an enormous, rich and growing market, a market that will surely be tackled by regional companies more respectful of their customers.
Rooms don't form a cohesive set of channels that one can join, rather the group together a bunch of channels. If I, for example, setup a #rules channel in a community room, then I cannot ensure that users are reading this channel, which contains vital information about the operation of the community. Same for announcement channels for events. Instead of people joining a server community, they join a bunch of bubbles formed by the people using only subsets of the channels, without being able to direct the overall community. This is poor UX for both the user and the community operators.
I guarantee you that no backyard trench dig is getting 1m budgets and an entire department. Usually even being able to afford basic tools like up-to-date imagery is problematic.
That's brilliant, thank you!!
I'm shocked that you think having a lawyer involves reputation costs.
Secure Code Review Checklist
I think the opaque and esoteric nature of packaging, which makes is so damn hard to build packages like this, actually prompts incredible amounts of waste when companies need to deploy their own code on their own machines. You get ridiculously overpowered solutions - container schedulers and the like - when all that was really wanted was binary packaging + init scripts or service units.
I don't think it has anything to do with that. It is the transmission of an IP address to US jurisdiction. Hosting a web page on github pages would have this issue too... (?)
Progressive enhancement was largely solved before SPAs became a thing. Its quite easy to enhance the client side incrementally, but SPAs started out as useful for full on Web apps and now everybody uses them by default for some reason.
why the career page is blocked (from India location)?
Hah, I had the same reaction to setting up a siphon. That's for when you need to get a liquid up over a hump and down to a lower point.

You draw the liquid into a tube from the source [1] and drag the outlet to a lower point. Then, as if by magic, the higher pool gets sucked through the outlet until it's drained, without any mechanical pump.

https://en.wikipedia.org/wiki/Siphon

[1] you can do it by sucking it in like a straw, but there are less gross ways like using a flexible bottle to provide pumping action
I don't think you need active phase-change cooling to survive a heat wave, there are architectural solutions found in deserts the world over (India and Iran have great examples). Namely, thick stone walls as heat mass so interior stays cool where nights are cool, and encouraging airflow through great public halls (wind will form where-ever there's a temperature gradient, breezeblocks or jaali can aid in increasing airflow while blocking sunlight)

Courtyards with a pool of water will have noticeably cooler ambient temps, these are found all over the middle east.

At the extreme, you get underground cities like Nūshābād.
That's a nice and simple tool, good work. I'm personally using Zotero to save copies of web pages: https://www.zotero.org/. With the browser extension you can save a snapshot in a few seconds.
> The rest is from oil & gas plants.

You mean gas plants. Gas in a powerplant produces .41 kg of CO2 per kWh[1]. A Model 3 gets 4.37 miles per kWh, so 2.81 kg of CO2 per 30 miles.

Even if a Model 3 is running on a 0% renewable, 100% gas grid, the 30 mpg Mazda produces 3.12x more CO2 per mile. 5.2x more on your grid, so only a 20% increase in the distance to make up for the battery.

Instead of 16k/21k miles you would have to drive 19k/25k miles.

[1]: https://www.eia.gov/tools/faqs/faq.php?id=74&t=11
After hearing their name, dialect and seeing their mannerisms, yes, I can tell. Several other comments mentioned there is an overrepresentation of specific groups from India, within the US, so I am attuned to recognize that group as "Indian heritage".

These things are rarely as simple as looking at someone visually from afar or in a lineup and making a complete decision.
YC legal team here: first, we agree that if you have legal counsel, you should get their advice on how to handle. Second, other startups have had this happen to them and it's typically easily resolvable.

The first line of the safe states "in exchange for payment by [Investor] of [$], on or about [date of safe] ... ." We drafted this line specifically to ensure that the parties understand that money MUST be exchanged for the safe to be valid. Without payment there is no "consideration," which means there is no valid contract.

We decided that picking a hard date for "expiration" of an unfunded safe creates its own set of problems, so the safe is effective "on or about" the same date it is signed. Opinions can differ on the distance between "on" and "about," but we think its reasonable that "on or about" means just 1-2 days. Investors should not be signing safes if they don't have the money to invest within that time frame.

A suggested course of action for OP's situation is to send the investor a written notice that the safe is terminated because there was no exchange of money on or about the date the safe was signed, as provided in safe. Take steps to ensure the notice is sent to whatever contact addresses you have for the investor (email, physical, email of the investor's legal counsel (if there is one). Keep a copy of the written termination notice and proof that it was sent.

Then probably best not to do business with that investor again!
MLOps is a mess but that's to be expected
> Ice cream @ a McD is a loss-leader (soft serve) or minor line item (McFlurrys) while it is the core product of DQ, despite their hot food offerrings.

IMO this is actually the point being made. There's no need to run a loss leader if the competition doesn't exist.
I use this Chrome extension to save web pages as MHTML: https://chrome.google.com/webstore/detail/save-webpages-offl...
These are pretty awesome looking take-home interviews! I run a job board for companies that don’t do LeetCode interviews and would be interested in getting these companies and others added in. May end up emailing you to see if I can get more details!
Thanks for the link. Just a note: It is preprint and hasn't been peer reviewed yet. But I really hope these findings are true.
At this point it feels like I hear "We will consider X as a declaration of war" from Russia every day or so. It reminds me of the Uno Wild Card. I wonder if they're using it as a catch all for any gaps in their armor?

Can't handle more sanctions? Uno wild card!
Don't want anyone supporting the Ukrainian defense effort? Uno wild card!
Can't guarantee the security of satellites? Uno wild card!
There is also CHM which is actually a Microsoft only file format for "Compiled HTML Help" files.
> Because it has a 90hp motor. That just exists to crank the _actual_ main motor at 1000hp+

Also known as a "Pony" motor. Other heavy equipment such as large Caterpillar D series bulldozers often have these just to start the prime mover.

Also a lot of these machines probably have hellish MPG, as low as 4-10 MPG, even the trucks.
> the idea of essentially removing the network round trip when a user clicks on something is not a bad one.

Practical SPA's have many more network roundtrips than the equivalent server-rendered web interface. Every AJAX request is an extra roundtrip, unless it can be handled in parallel with others in which case you're still dependent on the slowest request to complete. With SSR, you can take care of everything with a single GET and a single POST no matter what. Images load in parallel of course, but those are non-critical.
Appreciate it! In the future if you find your engineering team is spending a lot of time building & maintaining this kind of infrastructure keep us in mind.
Yep, exactly. This is actually silly. We should detect EU visitors and serve all sites in font-family: Comic Sans, Times New Roman.

EDIT: Oh the burning rage from HN for this one, sheesh
They can't win a war but they can end the world as we know it. Lavrov said WW3 will be nuclear.

https://www.reuters.com/world/russias-lavrov-says-third-worl...
We use Courier at OpsLevel. It's great.

We did a build vs. buy analysis and I'm so happy we went with Courier. It lets us manage user notifications in a single place across multiple channels.

Good UX, easy to set up, and pricing is reasonable. 10/10. Would recommend. :)
I'm glad that this article talks about the absurdity of the US policy. For a country that supposedly "follows the science", we sure do not follow other countries in their research. I'm quite glad in retrospect that I stuck to my citizen scientist perspective.
That is unfortunate, it may have something to do with the fact that this latest conquest of Ukraine by Russia started only days ago

In any case, hijacking a discussion about this particular war and humanitarian crisis to talk about something else, just to get more traction, seems like an unfortunate and cynical ploy

It's basically like Kanye coming into the thread and being like, "yo, victims of Russia's conquest of Ukraine, I'm'a let you finish, but these other victims are the best victims of ALL TIME"
Multifactor Authentication Is Being Targeted by Hackers
Given that there is virtually no enforcement for flagrant GDPR violations... not at all.
The converse of that is "I've never seen it, therefore it does exist". That would suggest that bigfoot, UFO's and the Loch Ness monster are all real.
The important thing is the moisture level. You need to be able to sweat, which you usually do in a sauna.
That's a good problem to have, and then I'll get a lawyer!
The template engine is not so awesome (it is the Go template engine, really awkward!). Another thing that is really not awesome is that Hugo doesn't use semantic versioning, so that you don't have any idea whether the new version will break your project or not.
Differentiable Programming – A Simple Introduction
While eloquently written, this article seems to make the mistake of myopically focusing on just speed in web performance, when web performance is much more than that.

Addressing the "unified theory of web performance" the article proposes:

> The mission of web performance is to expand access to information and services.

> We expand access by reducing latency and variance across all interactions in a user's session to more reliably return the system to an interactive state.

> We work to improve the tail of the distribution (P75+) because that is how we make systems accessible, reliable, and equitable.

We performance is not just about expanding access by reducing load times. It's about improving the user experience. It can be viewed as a subset of UX concerns, or a specialization of it.

Take for example Cumulative Layout Shift (CLS), a web performance metric that measures how much a page shifts as it loads. CLS is about reducing jarring user experiences by stabilizing the way content renders as it loads. Therefore fixing latency issues will not fix CLS issues, nor will fixing CLS issues allow others expanded access to information and services. Reducing layout shift will just make the user experience suck less.
> I don't understand this perspective.

The first few seconds of the linked video cover this. I encourage you to watch it.

Effectively, there is not a strong equivalence between the categorization of white vs. black in terms of origin. Whites typically weren't forced to move to North America and have their home cultures stripped from them through generations of slavery. This is why you find things like German Heritage celebrations or St. Patrick's Day, etc. You don't see Yoruba Heritage celebrations, etc. Further, the definition of "white" has grown over time to incorporate Irish, Italian, Slavic, etc. African heritage has persisted as a secondary class of citizens or worse in US history.

That is what is meant by stripped heritage. It really isn't schizophrenic. A white person could use the census and other tools to trace their roots successfully, further. A black person can and often does hit a dead end much quicker. We all come from somewhere -- knowing one's history can be helpful medically and for personal worldview.

Should a person be solely where their ancestors originated? I don't think so. But it does matter, in the same way the OP article on caste matters, in hundreds to thousands of small interactions over the course of every day life. I highly recommend Dr. Painter's The History of White People. [0]

[0] https://en.wikipedia.org/wiki/The_History_of_White_People
Also it can mean that the first half of the lunch rush used up all the frozen ice cream and it can’t freeze new ice cream instantly. So the later part of a rush period will often have unacceptable soft ice cream.

When I ran frozen daiquiri machines it took a lot of finesse to make it through a busy night. Have to constantly manage the temperatures and levels to a nearly absurd precision while doing the rest of your job as well. But the only parameters you can manipulate are material input and material output, there’s no “freeze it faster” button or “store it colder” dial.