skysight-inc/HackerNews huggingface dataset:
Can you explain what the intent of the code is and what the error is? It looks like the original code just grabs a substring containing the entire string. If the language used half-open intervals with an exclusive upper bound, the code I posted would also do that.

In python, for example, the operation of copying a list can be correctly written l[0:len(l)]. You're more likely to see l[::] or list(l) though.

Edit: I think maybe the proposed error that's being avoided is "a user tries to use a closed interval when sub takes a half-open interval." It seems like the opposite error is similarly likely though. Some areas where it's nice to have half-open intervals like using a modulus to restrict a value to an interval or parsing strings don't have such a symmetry.

Notably if you're making a binary heap the formulas come out much nicer with 1-indexing than with 0-indexing, but I haven't met any other examples where this is the case.
Domino’s delivery is subsidized by tips.
Parenting. Weird at times and consistently hard. Likely not what you had in mind when you asked the question. I’m also surprised no one else said it yet.

I don’t know about other parents here, but cracking the code to my 3.5 year old is a really hard problem for me.
Gravity is the negative acceleration force.
Not OP but baked chicken, slow cooked pork shoulder and rice or another grain probably takes about 15 minutes of active work (cook time obviously is longer). Throw some corn or green with that combo and you've got a pretty healthy and balanced set of meals. Make larger portions, buy some re-usable takeout trays and you're on your meal prep jouney. The biggest annoyance with meal prepping is redundancy in your meals but if you're okay with repetition you'll be fine.

I personally air on the side of making large portion of a meat, say chicken, and just making different variations with that pre-cooked meat through out the week. Shouldn't take more than 10 minutes a night with pre-cooked chicken to do something like chicken and pasta, chicken quesadilla, chicken salad, chicken on top of salad, chicken sandwich etc. Unless you're making a multi dish or complicated meal cooking really doesn't take that long.

Last thing, I love doing sous vide and it takes actual prep time down a lot. I'll throw a steak in when I go to work, turn it on while I'm not home and it will be done when I get back; sear it for a minute and it is good to go.
About 2.5 years out of school, plus a couple of big-name internships (Adobe and Microsoft). I also had offers from some other great companies which certainly helped. Google only negotiates when you have other offers.
Amex has customer service at least an order of magnitude better than any Visa/MC licensee I’ve dealt with; that’s really what you’re paying for. If something goes wrong with a purchase, they’ll tend to make it right without asking many questions/filling any forms. Lost cards can be next-day’s without charge. They have actual physical offices in non-US nations that can advance you local currency and provide you a new card (among other things) should your wallet be stolen while traveling.

Having utilized card services and customer support heavily for almost two decades with a number of card co’s made me very much an Amex partisan.
I think employer based healthcare works fine in more corporatist countries. Here in Germany we have a multi-payer system that includes the option for employer-based plans, but it's embedded in a culture that isn't going to throw you on the street in a pandemic, and there is of course the rest of the public healthcare system to catch people. In federal states purely national systems are hard to realise.

The US has the same issue I think, not to mention that the federal government doesn't always seem to be in good shape. Maybe better to go deeper than just healthcare and ponder whether the liberal capitalism needs to taken down a notch in favour of putting other stakeholders first instead of centralising healthcare further.
'Secret Hitler' is another interesting variation on Avalon.

I played both a lot, and like 'Secret Hitler' because they pared down the number of game mechanics a lot, and still left a meatier game.
I'm a junior in college and hoping I'm can get a prototype out before the end of the summer.

I've worked with other PVD systems yet I have not constructed my own. The main goal of this system is to make this sort of thing accessible to as many people as possible for the lowest amount of cost.

As it stands right now I'm learning machining to actually build most of this thing from scratch as I don't have the money to get this machined from from a job shop.
Wouldn’t the butterfly effect change the numbers? If not then the numbers need more entropy and less pseudo.
Twitter was never designed for back and forth communication. It was intended for people to broadcast their current thoughts (in 140 chars or less) to the world, and expect nothing back. It is only recently that threads, and DMs have been retro-fitted to the platform. But these have never felt to me, like native parts of the platform. And the styling and way in which the feed works doesn't seem to encourage debate as much as it simple encourages isolated "soundbites".

I think there could be an interest market-gap for an experimental social network that does encourage active dialogue. I think the key part to reform would be the feed. Maybe instead of seeing the top level post as you scroll, you scroll past a tag cloud? Or an AI generate summary of the thread so far. Or the 3 latest comments are shown rather than the first one (so it would be more like walking past a group conversation and deciding if at that moment it was worth joining). That last idea could be interesting to explore.
Well, that's one way of kindling a fire.

I second the request for a film if someone decides to do it.
Yes, as an academic and a co-creator of the de-facto annotation tool in my field [1] I certainly have (although having Google Analytics for the website is something I regret…). Now, we have the “luxury” of citation counts as a proxy for academic usage, but I know next to nothing about how our tool is/has been used in industry apart from what pops up on the mailing list. To be fair though, I suspect we could have had bigger impact and maybe keep the project more “alive” with both more efforts on our part and if we had decided to raise funds additional user metrics could have helped, but I am not shedding tears over this.

[1]: http://brat.nlplab.org/

Now, I absolutely sympathise with any developers in this situation. But I think the underlying issue is that we lack a good way to give consent and are stuck with awful solutions like opt-out and ridiculous pop-ups. Is there not good work on this out there or are we forever going to have to endure sub-optimal solutions?
Hammond is correct, however the term "slowly" in an F1 car would refer to speeds like 60–100 km/h. Note that the pit lane speed limit is generally 100 km/h during a race. I picked 40 km/h as it's a speed which even the hardest rubber tyre would not present difficulty retaining traction even without the aid of any downforce.

And indeed, if my memory of Hammond's experience is anything to go by, the F1 engine may not even be able to handle being driven exclusively at such slow speeds without stalling out.
Yes, that's why I linked to the list https://boardgamegeek.com/browse/boardgame?sort=rank directly.

Though honestly, as a newbie, you should probably look through one of the curated game lists: the bare rating that a game has seldom lines up with what a beginner might be looking for. For a start, it's mostly heavier games that have very high ratings.
> I once used two razors and a piece of wire plugged into the 220V outlet to boil some water.

A) Why?

B) Honestly that's pretty cool. Even if this is the only answer to A, this is worth being proud of.
GitOps Toolkit
Looking at the article, OpenGL seems to be allowed in that competition. No clue about other libraries.
I think the main problem with 1-indexing is that it makes some formulas that depend on the length of an array more complicated. Not a huge problem, but it's kind of annoying.
Using Facebook Ads to Land an Interview at Reddit
Over 1,800 F5 BIG-IP endpoints vulnerable to CVE-2020-5902
Inverted Aerobraking (2003)
Splendor: https://boardgamegeek.com/boardgame/148228/splendor

FYI I was kind of surprised when I saw that game only received a 7.5, but then I checked Catan for reference an that only received a 7.2 rating so make of that what you will.
ssh, mosh
GitHub discourages making commit messages longer than a certain number of characters; it’s interesting for me to see other opinions on that.
Mobile Apps Transform Travel Industry 2020
Mobile apps for travel industry plays a vital role travel apps help users a lot for planning tour, ticket booking, bookings hotels, route mapping, cab booking, and many more
By default Windows locks a file while it is open and does not let you delete it. Other platforms do not, so code which naively reads and then deletes a file without explicitly closing it will work fine until you try to run it on Windows.
States Take Aim at People with No Retirement Plan
It turns out that human beings are often inclined not to lie for selfish gain, and there is often a certain degree of social pressure not to lie for selfish gain.
The classic example of surprising optimization is perhaps matrix multiplication in Fortran:

At some point in history, when you wrote the straightforward, primitive three-nested-loops version of matrix multiplication your code ran much faster than when you tried to implement one of the more sophisticated algorithms.

That was because the Fortran compiler recognised the primitive version and replaced it with a special purpose highly optimized matrix multiplication. The compiler couldn't do that with the more sophisticated approaches.
Kingold Jewelry secures loans with gilded copper bars
Exactly.

No, this wasn't a particularly bright idea. However, someone

A) Was checking out books from the library. In my opinion, this should always be encouraged, with the possible exception of present events.

B) Was trying to protect themselves/their family. Maybe we understand that this is a bad idea, but it was done as an attempt to help.

B rephrased what jasonjayr said, so sorry about that.
Cool projects Some Rust macro magic could probably clean up some of that bounds checking.
Soylent vs. Huel–Can Powdered Meals Replace Food?
Because that worked so well when the Russians tried it with Cuba?

What you makes you think China would tolerate that any better in their backyard?
It's funny because all in all Bloomberg has a vested interest in staying on the good side of the Chinese government given their terminal business. You can see it in their editorial line which is rather neutral on most China issues compared to other publications like WSJ.
Or with a little bad timing on when they exercise options versus sell the stocks, they can go very negative thanks to AMT.
My brain shut down completely reading this, before I could really evaluate whether it had any validity, when I read "This is why people who are truly interested in learning from others on Twitter open up their DMs". Lots of people can't have their DMs open, lest they be flooded with abuse.
I am trying to decide whether a political party could be created (in my country) which implements rational evidence-based policy. All policies and their implementation would require a postulate, and pre-defined criteria for success or failure. All regulations and driectives would then need to be consistent with, and balanced according to, the accepted policies. If necessary, laws would be changed/implemented to further this.
I imagine the end goal is the same as with Uber's main business. Automation
Implicit in moore's law is that cost does not increase in the same way, if not prices of chips would also be doubling. Something more analogously sounding would be the decrease of cost per transistor.

The number of transistors is also not dependent on a single thing, it can be argued many macro events contributed since the 80s, the VC model for chipmakers in SV, the rise of the internet, going fabless, rise of mobile, innovations in fabrication technology.
France has exceptionally strong labour protections, I don't think it's fair to extrapolate France to the entire EU.
Why would you share file opening code between two such processes. That sounds like premature abstraction. If you're really doing something in a library like the gp csv example then yeah, close it.
Curious, why not take the dog on the 5k?
It sounds a bit like you tried to write Rust like you do JS.

Rust is “move” by default. Passing ownership of a variable to callbacks requires making sure you have the correct types along the way, especially if you want to mutate. It can be easier in many cases to only deal with “owned” data in Rust at first. Clone a lot, and so on.
Kernel Prepatch 5.8-Rc4
It's the future: https://circleci.com/blog/its-the-future/
I believe that computation, mathematics, information and semantics all share the same set of simple foundations. And that the means to understanding these foundation is to look at how physical computational processes use information from their environment, and produce information that is used to make "real world" outcomes happen.

I am working on this at the moment, and no, I don't expect that what I write here will convince anyone. And I don't have any summaries of the work at the moment.
US plans to rollback special status may erode Hong Kong’s startup ecosystem
They are still the norm on IRC-based chat applications and various forums. If you move away from social media networks, you will see nick usage a whole lot more
You can't take two one legged men and tape em together and win a race.

UberEats and Postmates have the worst execution in the space compared to Caviar (owned by DoorDash), DoorDash and Grubhub.

Dara is a banker, he doesn't know anything about operations. This will end bad.
Great work! I always think how we can help senior citizens to simple stretching and fitness exercises at home.

One challenge for them would be to wear the headset, because it may be heavy or cumbersome.

I am sure something can be worked out ...
> By applying a black background, it no longer makes the phone as appealing and when I open it, it keeps me calm, with room to breathe and use my phone intentionally.

I may have to do this on my laptop. I have a tendency to go r/unixporn to a degree, and spend to much time wasted on filler when I should be working on something.
I've played New Angeles which is the replacement for Battlestar Galactica using the Android setting instead of a licensed setting.

I hate traitor mechanics, and I'm not a big fan of the Android setting (Android itself I find not much fun) - but I found the mechanism in New Angeles acceptable. One player did indeed screw everybody else over, and it wasn't the most fun I've had in that amount of time, but I'd do it again some weekend I think.

The popular game I refuse to play is "Firefly: The Game". The friend who owns it says "Well it's flawed but it really captures the TV show". I hadn't enjoyed our first game of Firefly and hadn't seen the TV show, though I had seen the movie, so I watched the TV show. The next time I explained to him that he'd been correct. It exactly captures the TV show, in that the TV show's writer clearly doesn't understand that he's writing a story about the bad guys. Stories about bad guys can be fun. There don't even need to be good guys, there arguably aren't any good guys in "The Wire" for example - but the writer does need to be aware they're telling a story about bad guys. Firefly thinks these people are heroes. And so does the terrible board game.
You're talking about the title of the commit message. Yes, the title is supposed to be under 50 characters. Now add a blank line after it and you can write all you want (line wrap at 72 chars).

If you use markdown Syntax in your commit body, github and other tools will gladly render it correctly. You can grep for commit messages with "git log --grep <pattern>" and it will also search commit bodies as well. It's beautiful!
Could be selection bias. People who comment about good commit messages are most likely people who pay attention to commit messages. That does not necessarily mean they make up a majority of committers.
People said the same thing about SaaS 5 years ago
>>The term reactionary dates to the French Revolution

Yes, but associated mostly with Marxism. And the French Revolution, with its equality-inspired fanaticism, was the ideological forebearer of Marxist revolutions.

There are many similarities between the French Revolution and the communism inspired Cultural Revolution in China, for example.

>>All it takes is a few minutes watching Tucker Carlson or his comrades in arms to hear them lay out their specious case that there is a unified effort to unfairly cancel innocent celebrities.

I don't follow Tucker Carlson, so I'm not familiar with his narratives. But Cancel Culture refers to a culture, not a conspiracy, and clearly exists.

>>And it is nearly always celebrities. It amuses me that the right wing narrative at the present moment includes a tabloid-like fixation on the fate of anyone halfway famous

It's any one with influence, or in a position of power really. Your fixation on these peripheral points, like who Cancel Culture is affecting, and the fact that Conservatives care about the fate of celebrities, when the debate is about whether Cancel Culture exists, is petty.
To be clear, RSUs are indeed taxed as you said. My point is that blahblahblogger's billionaires don't tend to get paid that way, but by appreciation of founder's stock (which can be captured only by a wealth tax, or by a capital gains tax if/when they sell).
Thank you, that could be it. Then again, there would at least have to be a separate log somewhere on the same box with IPs to counter abuse. I think creating and using a UUID without explicit opt-in is still a red line for me, but I do concede that I could very well be too paranoid for the good of myself and the community as a whole.

I should probably get back into the Discourse thread to see if I can contribute constructively, but the amount of back and forth between mostly “My freedom!” and “Tū quoque!” [1] in the thread over the weekend – apart from me being far too busy to take the time to summarise it all – has kept me away, although it looks way better over the last few hours. With the little free time I have I would rather work on my Julia code. '^^

[1]: https://en.wikipedia.org/wiki/Tu_quoque
Vaccine+Adjuvants+Market+Size+Worth+$1,305.7M+By+2027|+CAGR:+10.68%+
The automatic refund gives that scam price, but if you insist on the full refund plus tax you'll still get it
This needs more supporting data and independent verification. It's Vladimir Zelenko, again.[1] Without an outside review of the data, again. Also, all the patients are apparently from Kiyras Joel, which is a cult community in New York State with group prayer three times a day. It's a high-density situation, like a nursing home.
Zelenko had previously stated that "90% of Kiryas Joel had COVID-19 after 9 of his first 14 tests came back positive — a conclusion the Orange County health commissioner blasted as irresponsible."[2]

Lots of stories from March, few later, probably because NYC had a much bigger epidemic.

[1] http://archive.is/rg1IG

[2] https://www.lohud.com/story/news/coronavirus/2020/03/24/kiry...
Hey, this doesn't sound too different from the adaptive diagnostic Maths Pathway (https://mathspathway.com/) has. It starts at Level 1 and retests all mathematical knowledge of the student until it reaches their zone of proximal development (ZPD). It's all within a classroom environment, but it means all the students are learning the maths that suit them, not a one-size-fits all which is the issue you are referring to I believe.

Full disclosure: i work at maths pathway.
Essentially the Maxwell's equations of information theory?
> and there's a better than even chance that testing positive means that we can be discriminated against for a pre-existing condition for the rest of our lives

In the United States it is currently against the law for insurance companies to prevent you from obtaining coverage for having a preexisting condition under the ACA.

That law is being challenged now before the Supreme Court, and the DOJ* has filed a brief arguing that the law is unconstitutional.

If the SCOTUS strikes down the ACA, then it would be absolutely legal for insurance companies to deny you treatment for having had COVID-19 in the past. There is no current legislative plan to replace the ACA if its struck down.

* I personally find the argument in the DOJs brief to be manifestly absurd, but you can decide for yourself here: https://www.supremecourt.gov/DocketPDF/19/19-840/146406/2020...
It's never required: https://stedolan.github.io/jq/manual/#Streaming
Well, I had been looking at joining that. I was afraid it would be something like this though, thanks for the warning.
getting downvoted for pointing out facts and reiterating the authors own words. The anti-Chinese hysteria on this website really is a sight to behold at this point.

Is "China bad" how HN and the US is going to look for the next 20 years as North America goes down the hill?

For an actual science based look at Nortel there was a good study done by a team at the Tefler School of Business years ago.[1] Taking an extensive look at the corporate culture and the state of the business which was despite dotcom evaluations in a pretty sorry state already. Tracing the decay back to the 80s and 90s and a whole row of disastrous decisions.

[1](https://obj.ca/article/nortels-failure-was-years-making-telf...)
The way I think companies should be valued is superior to your proposal.
I’m a covid fatalist now, but I hope I live long enough to see a clear timeline of HCQ.

I remember when the media politicized the drug, and it caused places like medium to ban articles saying it was useful:

http://web.archive.org/web/20200405061401/https://medium.com...

Then we find out there was fabricated data about the drug in the world’s top medical journal that had to be retracted.

wtf is going on
Uber/Postmates deal meant DoorDash pays nothing for consolidation in some market
But does it work reliably?

I have a cheap Inateck dock which does support UASP (the FD2005). Two or three times I had a bunch of errors like these:

Sep 22 17:26:01 nuc kernel: sd 4:0:0:1: [sdb] tag#2 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT
Sep 22 17:26:01 nuc kernel: sd 4:0:0:1: [sdb] tag#2 CDB: Write(16) 8a 00 00 00 00 01 4d b4 c4 00 00 00 03 b0 00 00
...
Sep 22 17:26:22 nuc kernel: usb 2-3: stat urb: no pending cmd for uas-tag 2
...
Sep 22 17:26:22 nuc kernel: xhci_hcd 0000:00:14.0: ERROR Unknown event condition 34 for slot 3 ep 3 , HC probably busted

followed by filesystem corruption.

I found other folks complaining about similar problems, eg: https://unix.stackexchange.com/questions/239782/connection-p...

Then I disabled UAS. Haven't had any corruption since. It's not absolute proof, but I believe the firmware and/or driver support for UAS with this dock is buggy, and the older protocol works fine. I like speed as much as the next person, but not if it means repeated filesystem corruption...
That doesn't make this pricing model any more ethical.

To Roblox's credit however, they did refund the money when asked.
It's terrible that 2-8GB RAM is not enough for a full on desktop replacement. You could run Windows 95 in 4 MB. Was that not a desktop? The original Mac was just 128 KB.

Suppose it was all for graphics. Scaling up for modern color depth and screen size, we should need about 400 MB for the Windows 95 level of efficiency, or about 64 MB for Mac level of efficiency. That's a huge overestimate because RAM is not all consumed by graphics.

In other words, modern software can't run a desktop properly without even 10 to 100 times as much RAM as it ought to need.