skysight-inc/HackerNews huggingface dataset:
I think the scaffolding is worth it. You ask people on your team to run "docker run --restart always --name mysql -e MYSQL_ROOT_PASSWORD=foobar -p 3306:3306 -d mysql:5.whatever", and then you never think about it again. (Also be sure to firewall that off so only localhost can get to your database with a predictable root password -- lots of bots out there that will "hack" this thing in 24 hours. Try it and see!)

Compared to maintaining mocks that don't actually detect issues like invalid queries, or missing defaults, or mapping semantics between language types and database types, this is a lot simpler. You just need one thing running, and you only need to set it up once. Every feature that is available to production code is now available to your tests.

You can also have your tests launch a database container for you. I found this slow, and that the setup overhead of one instruction in the README was worthwhile.

Finally, you might not need the database for every test. If you have Service 1 that depends on the database and Service 2 that only depends on Service 1, writing fakes for Service 1 for the Service 2 tests to use to avoid the database is productive. Service 2 will want to test the error cases for Service 1 anyway, so you will have to have the provision for things like "make the next call to service 1 hang indefinitely", etc. so you will be writing that anyway. Some people like all integration tests to go all the way to the bottom of the stack, but I prefer testing only the boundary in depth and making simpler end-to-end tests. YMMV.
A goodwill repair is a repair done not because the issue is covered under warranty, but because the manufacturer wants to make the client happy. This could be because the item being repaired isn’t under warranty anymore, or because the repair is for something other than a manufacturing defect. The article is saying that Tesla is doing a lot of “goodwill repairs” that are likely actually for defects that would otherwise be classified as warranty repairs. It seems to be arguing that Tesla is doing this to avoid having the cars be classified as lemons, though it admits that another motivation for doing so is to adjust their financial reports as it changes how the cost spent for the repair is classified.
And why would you say that is the case? Bad personal finance skills (high mortgage, student debt...)?

How many people even try to negotiate their work hours? I'd believe you if you claimed less than 10% even think about it, the others just accept their lot as the norm.
We forward a cluster of 2,560 TPU pod cores from our GCE project to other GCE projects in europe-west4-a. Originally it was because we had a separate GCE project with a bunch of credits, but that project had no access to TPUs. The question was, could we still take advantage of the credits? It turns out, we could; the solution involved VPC Network Peering, which I later learned is how the TPUs themselves work. Some configuration details are here: https://www.shawwn.com/swarm#iptables

Nowadays we forward the TPU pods to pretty much anyone who wants to try them out, in hopes of getting more people involved in the TPU programming scene. The TPUs are managed via a website (https://www.tensorfork.com/tpus) and we coordinate TPU access via spreadsheet. Each researcher has their own GCE project, and we simply flip a switch to give them access.

If anyone reading this happens to be into ML and into programming for big hardware rigs, feel free to hop into the Tensorfork discord server and we can show you the ropes. https://github.com/shawwn/tpunicorn#ml-community
if you don’t live close to a Tesla service center it’s a massive hassle...and even then the backlog can be quite large and take much longer to service
Trying magnesium after reading about it on HN comments last year changed my life. Definitely try it. I just use magnesium citrate from Walgreens.
What do you replace a single-use plastic catheter with? Wash it and use it again?
Has it solved the reloading problem yet?
>> and the claimed harmful ingredents weren't harmful in that form and were illiminated

That sort of thing is part of the problem. A change made to appease such people is seen, by them, as confirmation of their beliefs. We are taught to "respect" the opinions of others but we cannot allow that respect to legitimize dangerous beliefs or behaviors. Doing so creates controversy where there shouldn't be, which in turn perpetuates the incorrect beliefs. There is something to be said for not giving ground, for calling out the idiots as idiots.
Not as far as diversification it hasn’t.
Perhaps a minimum pricetag then? E.g. a cup or a plate must cost at least $1.00
It's amazing how much better the .org site is over the .com.
the "mask" is the red herring of every discussion. It is a talisman that people cling to as a way to ward off any of the ills.

I happen to be convinced that some types of masks, like the reusable cloth masks actually make you sicker.

Here is a well research piece with a randomized trial that shows how continuously worn cloth masks are worse than using them more rarely (control) (leading to 4% more infections):

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4420971/

Of course I don't expect this research to be quoted in the current hysterical environment.

But I would not be surprised if by this time next year the world will be full with publications on how cloth masks cause more trouble than worth with a strong recommendation to avoid them.
Cigarette filters are the largest source of trash floating in the ocean and are usually not bio-degradable [1, 2]. They end up as micro plastics.
Banning them instead of plastic straws can be seen as vastly more effetive [3].

Edit:

It seems pretty useless as they essentially have no function (edit: to health), since the near-universal adoption of filters on cigarettes has not reduced harms to smokers and lung cancer rates have not declined [4]. And the color change is something that was added to make the filter to appear to be effective [5]:

> The tobacco industry determined that the illusion of filtration was more important than filtration itself. It added chemicals in the filter so that its colour becomes darker when exposed to smoke (it was invented in 1953 by Claude Teague working for R. J. Reynolds Tobacco Company). The industry wanted filters to be seen as effective, for marketing reasons, despite not making cigarettes any less unhealthy.

So trying to be rational here, they don't have any health benefits and are responsible for a large share of the microplastics in our ocean.

[1]: https://www.businessinsider.de/international/new-study-shows...

[2]: https://www.nationalgeographic.com/environment/2019/08/cigar...

[3]: https://www.nbcnews.com/news/us-news/plastic-straw-ban-cigar...

[4]: https://tobaccocontrol.bmj.com/content/20/Suppl_1/i10

[5]: https://en.wikipedia.org/wiki/Cigarette_filter#Colour_change
from the article: https://www.reddit.com/r/teslamotors/comments/ct284e/tesla_j...

The article also noted a former employee is involved in a lawsuit accusing Tesla of reselling lemons.
> Let's say you are training a black intern. Do you think you could, with a straight face, explain the nuances of a master-slave relationship in the Linux ecocsystem?

It would never, ever cross my mind there is any relationship between my colleague being black and the terminology used in the system. Moreover, I think it would be racist to even suggest so.
I have a family member who works for IKEA and one reason that small objects need lots of big packaging is because of theft, simple as that.

It wastes space for them, adds costs, and so on but the reduction in thefts are so big that it's worth it.
The 0,0 (owl eyes) party gets ignored by all the eigenparties who can't seem to find any alignment
From the article:

“Cars without issues repaired under warranty don't need to be reported to the NHTSA – National Highway Traffic Safety Administration. After all, warranty repairs are due to manufacturing issues and are, therefore, an OEM's responsibility. Goodwill fixes are something automakers do to please their clients.”

Seems like if they classify a repair as goodwill they can avoid a car receiving a lemon designation. There’s also a link to an article that alleges Tesla classifies warranty expenses as goodwill in order to lower their warranty accruals per vehicle, boosting profit margins.
Thanks for the Information. You're right zstd even on a single core is pretty fast but for multicore systems with nvme drives multithreading would be beneficial.
As we all recently discovered, it takes time for global supply chains to adjust to demand.
> If Geekbench was so misleading, why does the Intel version of Geekbench run so fast on two year old iPad chips?

If Geekbench wasn't so misleading, why do they do worse on other benchmarks?

https://benchmarks.ul.com/compare/best-smartphones

https://www.gsmarena.com/benchmark-test.php3

> And “Hardware acceleration” isn’t misleading if it’s accelerating commonly done tasks.

Hardware acceleration is misleading because it can give you huge speedups in a single measurement which significantly affect the overall score when it's averaged in, and because it's easy for the competitor to hardware accelerate the same thing if it really matters without losing any of their advantage anywhere else.

> Apple could have switched to AMD to get better faster processors cheaper, but nowhere near half as cheap, and nowhere near as power efficient.

With the amount they have to spend on R&D in order to do this, it's hard to argue "cheap" and the AMD processors have TDPs down to 10W, so it's also hard to argue efficiency.

> And Apple has no reason to use this to increase margins, when they can use it to dramatically increase volume and market penetration, which will increase margins on its own.

Lowering prices never increases margins. It may increase volumes, which reduces amortized costs, but there is a grisly trade off there. If you're selling a phone for $400 which has a $200 unit cost, lowering the price to $300 is probably not going to double your sales but it is going to half your margins.

> Fir example, the iPhone SE is faster than any Android phone ever made, yet Apple still priced it at $399.

Meanwhile this is the cheapest iPhone and it still costs significantly more than the average Android phone, which is around $250.

> And iPhones and iPads have all day batteries a fraction of the size of laptop batteries, and without the space, mass, or fans of laptops.

Predominantly because they have smaller screens, and screens consume more battery than a mostly-idle CPU.

> The A14 will be able to run in MacBooks at a higher power level while still remaining cool, providing for more cores and faster processor speeds.

You still seem to be confused by this. "A higher power level" and "remaining cool" are the opposite of one another. If they use the power budget to have as many cores as e.g. a Ryzen 7 4700U then it will probably use about as much power on the same process node. They're not magic, they're just making different design trade offs for phones than AMD and Intel make for laptops.
Most founders keep to themselves because they don't want to overpromise. Musk does the total opposite, by tweeting all the random thoughts in his brain and I suspect it mirrors his thinking and the thinking of other founders (Zuck, Page, etc..) closely. The latter are just much quieter. Anyone would look stupid with their unfiltered thoughts broadcast to millions, but it's one of the things that people like about the dude.
Thanks for sharing that. In our time of troubles, it's nice to be reminded of a time when many people felt a calling to help others, it wasn't so much about self aggrandizement.
Great initiative, but these political edicts are not useful, and 2021 is too soon.

What we need is a structured approach, that analyses all of the kinds of use, how realistically dependant we are on all of them, probably some strategic alignment from gov. and a phased approach with more time.

Canadian ministers of industry are rife with any number of 'PowerPoint Programs' for this or that, that are again in the category of 'business sentiment' and often completely miss the mark.

I would really love to see the Minsters, or at very least the heads of their Bureaucracy - actually have an operational business background. We've established that our Ministers of Finance have to have 'credentials' - why on Earth we don't demand the same from our business related ministers is astonishing.

They could be identifying most of the use, talking a lot with the entities most affected, researching alternatives, lining up suppliers, poking in maybe in highly-specific areas, possibly with some truly progressive alternatives with intelligently focused investment, and at least proving some kind of 'phased transition framework'.

Much like when Sweden went from 'Left Lane' to 'Right Lane' driving, there needs to be plan.

A lot of business right now are facing truly existential calamity, to have a politician pull this out and say 'you have 6 months to change' is just not good.

I also feel that 'any rule can be hacked' and we're going to see all sorts of externalities from this, specifically glass.

Plastic is a really useful material, and that we don't want it in the Ocean's means we have to change, but not necessarily along he lines he's taking - in fact - the edict, were it followed to the tee, might not change many things other than in the minds of voters.

I would love to see a comprehensive plan for how we can tackled plastic waste, it will not come from the PM's office.
I've just finished implementing my Solitaire game with curses interface in C. Solitaire was the first computer game I have played and I never got around to implementing it.

This is a writeup of how the game was made, using the vim+gcc+gdb stack.

Although working on a completely different tech stack at work, I like C, there's something zen-like about being close to the machine and almost universally portable.
This movement is really dumb.

Plastic pollution in the ocean is a problem, but it’s not the western countries causing it. There are 10 rivers that cause 90% of plastic pollution, and they are in Africa and Asia.

Plastic in a landfill harms nobody.

The worst part is that people somehow have this linked in thier mind with climate change, as in fixing plastic pollution is going to help with that.

Well if anything, it’s going to make it marginally worse because the replacements for single use plastics consume more energy.

Meanwhile this also has a pretty disproportionate amount of inconvenience for the public, continuing the “Environmental issues are about your personal sacrifice” message which is both unnessissary (companies can have a much Larger impact without you sacrificing anything) and counterproductive.

This is the politicians fallicy in action.
>It will be decentralized because if it is not fragmented, it is literally just oppression.

The conclusion ("It will be decentralized") doesn't follow from the argument though ("because if it is not fragmented, it is literally just oppression").

It could very well be "just oppression" and keep being that...
I fail to see the harm in this. Who or what is harmed by an inert piece of plastic sitting safely in a landfill?

Edit: this isn’t rhetoric, but a legitimate inquiry.
Note that pbzip2 can only parallel-decompress files originally compressed using pbzip2. lbzip2 (https://lbzip2.org/) can parallel-decompress arbitrary bz2 files, which is a more common need IMHO. bz2 is very CPU- and RAM-intensive, but gives the best ratios of any mainstream algorithm, so it's really only useful for publicly distributed files where bandwidth considerations dominate.
Ah yes sort of like when we sold out all our electronic component manufacturing in the UK to Philips in the 1960s-1980s. These eventually got spun off to the Far east.

Add enough local industry to that and there are unspoken pockets of vacuum and two generations of children in poverty and unemployment instead.

Very short sighted.
Do you expect a headline to tell you the whole story?
How many seconds will it take you to replace “master” with “primary”? Compare that with the amount of time spent on this thread.

Arguing that the term is not more incorrect, which you have conspicuously failed to do, is missing the point. If you want to argue that a mouse is a confusing name, feel free but also note that usage doesn’t recall brutality in recent history. Masters not only didn’t usually do the same work as their slaves but the relationship was defined by the violence and permanence: your database master doesn’t torture its slaves if they make errors, or threaten to sell their children, etc. When the master died, they were replaced by their children or someone else but never a former slave. If you’re just talking about parceling out work, try to think about why you’re so attached to using “slave” instead of “workers” and how that would call your motives into question.

Using terms like primary/replica (where both do the same work) or controller/worker (where they don’t) both more accurately expresses the nature of the relation and don’t drag in unpleasant connotations.
Is anyone participating in neurips competitions? Can we collaborate?
The small leather adhesive dot I use on mine is extremely compressed and dented by the case, and that’s a 2017 MBP, so I’m kind of shocked people are using hard plastic ones at all.
Maybe the end goal of paper straw advocates really is that. If the only straws available are shitty ones, more people might prefer to go strawless.
Narrating the “Truth” in HBO’s Chernobyl
I should have been more complete I’m my response.

What I described is the first step to narrow down candidates that I choose for in-person interview.

After that step, if I think they are worth “investing” I’ll give them some assignments and drill down on the tech questions.

But yes, this process still fails. It just fails less, I think.
Is it really that easy to write a dirty script with rust? It doesn't seem like something that's very forgiving nor allows rapidly testing concepts or prototyping.

Do you personally start writing Rust from the get-go or do you first write something in some scripting language and then transform it to rust once the basics work?
>I've never understood that way of viewing things. For me identity is a right.

Historically "identity" wasn't a right, but something imposed on people, for better tracking and controlling them by authorities...

>In an oppressive state identity surely could be oppression, just like everything else, but in a democratic country?

Oppression is not about democratic vs totalitarian state. McCarthy and Hoover, to mention just two examples, reigned over others in the good ole democratic US of A.

Not to mention very few (if any) countries have actual direct democracy, or give the people say in how they want to be governed, from the constitution and downwards.
This article is BS. Every repair I’ve had in the past was marked as a warranty repair.
"Yes. I also see the problem that mainly asian and white men are discriminated against in today's hiring world, i completely agree with you"

Yes, this is why there are so few Asian and white men employed in technology...????
Why not 'reduce use of single-use plastics'? Or 'ban some'? Really easy to make the headline more truthful.
We are like jedi knights. We can fly spaceships, fighters, code in c++ or even vb on a bad day.
I mean Intel stopped making DRAM because they were soundly outcompeted. We lost the DRAM industry before we actually stopped making DRAM.

Disks afaik are still made in the US, although not only in the US.
> However it is a dangerous precedent to set that anyone who does something that might be seen as a catalyst for suicide can be found culpable in a murder.

Most people don't have such inescapable power underlying their threats. The government is a good deal more fearsome than most individuals who aren't directly threatening murder in the traditional sense.

> Also suicide is never a "reasonably foreseeable outcome" when someone is faced with a 6 month jail sentence.

It's a bit disingenuous to call it a threat of 6 months in jail. That was a plea bargain offer with other strings attached, that came after Swartz was threatened with up to 35 years and then more charges were added bringing the potential up to 50 years. By the time the 6 month offer was made, Swartz had already been subject to more abuse and harassment than his actions could have ever justified. He was deep into a Kafkaesque nightmare before the prosecution offered the first shreds of mercy.
It seems to be a very uniquely American game - being from the UK, I've never seen a copy in person.

From what I can tell, I'm not missing much - I think my kids would hate it, since they're happily playing Ticket to Ride and Splendor already.

It does make me wonder if there are equivalent "ubiquitous" games in other countries, that are essentially unknown outside of that country - can't think of one for the UK, although I suppose you could find regions where Merrills was universally known and played.
I've written several applications using this approach lately, administrative systems.

None in C++ yet, but Java & Go.

Integrating the UI tightly with the backend has a lot of advantages and I strongly prefer working in a sane language to both template engines and JSON APIs.
> approximately zero of the cops... have been brought to justice.

Is that true though? At least in the recent George Floyd case the 4 cops involved were all fired the next day from their jobs and have all been charged and are awaiting trial.
This mirrors my experience with Rust. That said, I'm currently creating a shared library in Rust because it seems to be the best tool for the job.

If it needs to run in the browser, or React native, I use TypeScript.

Else if it needs to run on the JVM I use Kotlin.

Else if performance doesn't matter and the project is small, I use Python.

Else if I can use a garbage collector, I use Go. Because why manually manage memory with the borrow checker in Rust if I can let the runtime handle it?

Else Rust. Because I don't want to mess with C++ anymore.
Tesla lost its way years ago with their wallstreet obsession. Their main product is stock.
https://archive.is/r1js6
Good point. I don't think anything bad would happen if you could opt in via something like `-j8`, preserving the default backwards-compatible behaviour and offering an escape hatch for newer workloads / machines.
Infinite Ramsey Theorem
The bgzip format (widely used in bioinformatics) supports parallel decompression, while being readable by gzip. (Compression ratio isn’t the best, though.)
I’ve always found it strange that some delivery apps use the value of the order as part of the drivers compensation or delivery fee. It looks like this is one of the changes Shipt are making, which probably would lower driver pay for more expensive items.
Percent similarity on display, not on commit.

That second part is actually important from the user's perspective, not as details on the internals: every single new hire we've gotten who is still learning version control expects svn to detect automatically, and has to be told about "svn mv".
Xkcd #2330: Acceptable Risk
The US has been oppressing indigenous people, black people, and communists for decades and decades. And crackdown on protests against equal application of the law for mainland and a territory after letting the protests run on for a whole year is barely controversial. Everyone should compare China against the West without seeing China as some unique evil.