skysight-inc/HackerNews huggingface dataset:
My 5 year old stumped me with this, and I had to look it up. He asked me why 1/3 + 1/3 + 1/3 = 1, since it's equal to 0.333... + 0.333... + 0.333... which is 0.999... How can that possibly equal 1.000...? And is 0.66... equal to 0.67000...?

I didn't have a good enough answer for him, so I had to look it up and found this page. I tried to explain it to him but since I'm a terrible teacher and he's only 5, it was hard for me to convince him. Luckily he has many years before it matters!
Basically an infinite series of 9's just means they're all maxed so the .999... = 1 makes sense to me (kind of anyway).
Game Bola Terbaik Di Smartphone Cocok Untuk Dimainkan Di Rumah
There's some useful perspective in there, but they're not exactly unbiased.

> Myth: Multics was closed source

> Bull HN has made the entire source available "for any purpose and without fee" at MIT as of November 2007.

So it was only proprietary (shared source, looks like) for the first 4 decades. Right.
I have lost access to one of emails because I've bulk deleted my old emails from my Gmail UI. Now I cannot recover my Gmail account. It asks me few questions and then says that I'm not the owner of my account.
You can just use map.forEach and avoid the types in the next two lines too.
No color support, but you can export the map to an STL file with the function `save_3dprint()`. You can declare the maximum width/depth and it will scale the model to the size you've specified.
Create Your Dream Site with the Best Website Builders
"However, the advertising industry is certainly not morally neutral."

If advertising were other than 99.5% falsehoods, I might feel a little bad about running uBlock, Privacy Badger and NoScript in Firefox (which you should do, too!) as well as running dnsmasq as a proxy to filter out a lot of well-known ad networks. But the way it stands, with "caveat emptor" essentially being the law of the land, I feel I have to do this. Caveat consumer, advertisers!

Also, criminy, it makes a huge difference. When I use a PC or Mac at work, I'm shocked at how intrusive and overwhelming the advertising is. Dial it back several notches, you untruthful scallywags!
The name quarantine itself comes from a preventative isolation practice.

But lockdowns during pandemics have been practiced occasionally, but always at the city level, due to the nature of governance during past pandemics. Famously Newton and Shakespeare did work during London lockdowns, and some Italian city states distributed fixed rations to peasants to help them stay at home.

What’s new isn’t preventative quarantines, what’s new is global travel and communication.
Does anyone here know if there’s a data structure more ideal (i.e. lower-overhead) than a B+-tree for holding onto large amounts of on-disk data, if you can constrain the operations you’re going to do? Personally, in my workload, I know I’m never going to delete from the tree, only insert and query. Does this “get me” anything?

For another consideration: B+-trees (or trees generally) aren’t necessarily the best when the workload is mostly appends to the end of the keyspace. Is there an on-disk data structure that is tuned for mostly-append, rarely-insert workloads? Or how about for insert workloads, where each insert is actually a batch of inserts of a large contiguous range of sorted keys? (I’ve observed that this workload makes LevelDB fall over, so LSM trees aren’t it.)
> There is no proof that will ever satisfy a person dead-set against this.

Indeed. I've torn my hair out trying to convince smart people with PhDs in hard sciences and had to give up in frustration.

I usually find that the most success can be had by kicking the ball to them immediately and having them define what they actually mean when they say "0.999…". If we're going to debate whether that thing equals another thing, we better make sure we know what we're talking about. Inevitably, this either causes the dead-set person to give up, or give a myriad of definitions that are either meaningless, ill-defined, or causes them to realize that they don't actually know what "0.999…" means (or what they want it to mean). It is hard to have the patience to chase down the consequences of their ill-fated definitions, though.
Extreme programming's "tracer bullet" is sort of a way around this, by implementing a minimal subset of functionality all the way though, so it "works".

The diminishing routines then come when expanding each stage. But at least you have the encouragement of being in post-phase-transition.
This is like a MVP or Mark Cerny's "Method", but for motivation, not evaluation.

also, straw that broke the camel's back
But these three things are super easy with hooks, maybe even easier so than with class components.
your argument is just one big logical fallacy: https://en.wikipedia.org/wiki/Whataboutism

also danger != horrific working environment
Homesteader reduced water usage by 90%
You can exercise just fine in an apartment.

If you think a pandemic is the time to start major DIY projects then you really don't get it. You're not alone in that, but that doesn't make it smart or right.
Maybe a docker image for rich clients.
Hello HN!
Less than a month ago, as we started hearing about city's bookstores closing down - a small community got together to list their city's bookstores and ways to help them.

It resulted in detailing their gift cards, ways to order through them and if you couldn't order anything - a way to increase their social media following.

I took the spreadsheet and a friend proficient in Glide apps, converted it to an app.

This app now has listings of 800 bookstores in 21 countries. I am looking for feedback on how to improve the app, what elements would you add to it and what information is redundant for you?
Self-reply: I found these two but haven't tried them.

https://github.com/pelotom/runtypes

https://github.com/ianstormtaylor/superstruct
Hi bro my twitter handle is @Go_Movie_Mango, and I would tag #100DaysOfCode and #CodeWithMango , in that.

Your suggestions are worth considering :) thanks
Thanks for the feedback! It's true, one of the problems I face is that it's really hard to see the website through the eyes of someone who's seeing it for the first time. I might never be able to see it that way. I guess the only way to solve that problem is to show it to new people and watch them use it and then get real time feedback.
I think you should look more closely at what I did with the order of operations, and the fact that "<" now is part of the expression acted over by the limit.
I don't write much JS/TS anymore but I had a weird relationship with Typescript. I work daily with Swift and sometimes Kotlin and found myself slightly disappointed about the kinds of things that Typescript would let me do, I'm not sure if this is up to the underlying limitations of compiling to JS or that the settings of the project I was on wasn't configured properly. It adds quite a bit of overhead as a dependency when you have to bring in typings and keep these updated then make everything work with tests and storybook etc. It's a huge improvement over Javascript though and it's likely unfair to compare it to those other languages.
What's interesting is that people pretty quickly become comfortable with the idea that 1/3 = 0.333…

So using that as a foothold, we can express 1/3 + 1/3 + 1/3 as 0.333… + 0.333… + 0.333… and it should be pretty easy to digest. At once we can see that in this little zone we've defined, 1 and 0.999… mean the same thing.

Not a rigorous proof, and one or two people will probably bring up whataboutisms like "that's just because the calculator can't do stuff!" but it should at least be proof of comfort for most people.
I love the Pixel line of phones. I have had the 1, 3, and 4.
Not a specific commentary on the US reaction (or any particular country) but some of it comes down to complacency. Zika, Ebola, SARS, MERS and various other outbreaks occured and were contained which lead to a general feeling that (especially in the early days) this would be another 'Non-Event'. It reminds me of a post a few months back asking if Y2K was actually a problem. https://news.ycombinator.com/item?id=22556156
Wow this one is charming, so many concepts of unicode are often missed out even by computer science grads.
Very strange indeed. I think I started seeing videos with content from AskReddit on YouTube last year with several thousands of views. My first thought was well why don’t these viewers just go on Reddit and read it there instead.
> I think the point is not defining 0.9... to be 1, the point is that “...” means an infinite number of 9s. If you shift the decimal point by 1, then nothing changes, there are still an infinite number of 9s. If you shift the decimal point by 5 places, there are still an infinite number of 9s to the right. And here is the logical (induction) step: if you shift the decimal point by an infinite number of places, then there are still an infinite number of 9s to the right. This works for any repeating fraction, in groups of more than 1 repeating digit.

I've heard this argument many times. I understand the intuitive reasoning. I just don't find it a proof. I mean with reasoning like this why can't you have an infinite amount of 9s and then just put a 7 after that? What's keeping you from doing that? It's just a hand-wavy argument with no rules of any kind of what are allowed.

> Do you mean you disagree with the result, or that you agree with the result but don’t believe the proof is really a proof?

I've never considered that specific "proof" a proof. When 0.9... is given a proper definition of limits and considered within the real numbers, then sure of course it's true and the proof is legitimate.
Yeah, no active noise cancellation or "transparency mode" equivalent is just a massive bummer. It's hard to compete with the AirPods when you're missing the two most impressive features.

They sure look cool though.
It should be fairly easy to incentivize good charging habits. Offer a small discount on per kWh costs in exchange for allowing the car to shift around when it can charge.

I suspect that most people don’t really care when their car charges, they just need it to work in the morning.
>We usually average 240 patients a day. For the last week, we averaged fewer than 100. That means our patients in this diverse, low-income community are afraid to come to the ER for non-COVID care.

It's weird to draw this conclusion. It may be likely that the reduced number of ER visits are instead tied to: less driving, staying home, less work stress, fewer dangerous activities, fewer human interactions, etc.
The GP's definition is the fundamental definition of the decimal notation. It's exactly what the "0.9..." symbol means.

You can redefine the "0.9..." symbol to mean something else as much as you want, you can have it meaning pi if you like, but then you are just changing the subject on the most unhelpful way.
Sorry to see this at the bottom of the thread, because you have a real point here. None of the attempts at "better C" or even "replacing C" have been serious attempts, and it's frankly getting a bit insulting. No one who still uses C wants its replacements to "catch up" on the past 20 years of new language development. We want C, but without the problems. We don't want D but less so. The response below - "you don't have to use any features if you don't want to!" - is a ridiculous cop-out and the same thing people who defend C++ are saying.
I find the algebraic way convinces most people:

x = 0.9999..

10x = 9.9999...

10x - x = 9

9x = 9

x = 1
> All you can do with your time really is spend time on the internet or wander your neighborhood

No. You can draw, write, read, build things, etc. It just requires people getting creative, which is something we've getting less acustomed to as we instead consume more and more.
Using a Raspberry Pi honeypot to contribute data to DShield/ISC (2017)
On the face of it, no wires seem like a good thing, but it brings with it a range of drawbacks.

Which does not make wireless headphones a "solution to a manufactured problem". You're fine with wires, fine, but others don't have the same use case you do. Your list of drawbacks? There's your "manufactured problems", none of those things matter to me when I'm out for a run.
The author states:

>"If the sequence number is completely out of range then the receiver ignores the segment entirely. If, however, it is within the window of expected sequence numbers, then the receiver sends back a “challenge ACK”. This is a segment which tells the sender that the RST segment had the wrong sequence number. It also tells the sender actual sequence number that the receiver was expecting. The sender can use the information in the challenge ACK to re-construct and re-send its RST.

Before 2010, the TCP protocol did not impose these additional restrictions on RST segments. RST segments were accepted or rejected according to the same rules as any other segment. However, this made blind TCP reset attacks too easy."

If the "challenge ACK" communicates that sequence number that was expected doesn't this in fact still aid reset attacker? Or am I reading this passage incorrectly and the "challenge ACK" procedure is no longer in more modern TCP stacks?
You could further constrain it to exclude a lot of instructions and instruction pairs that makes no sense given the context. E.g. any instruction pair where the second one makes the first one redundant, such as the second instruction clobbering the same register the first one modified. Or a "ret" in the first few instructions...

It'd probably not constrain the search space nearly enough though.

But even if it did and you'd somehow manage to even generate every combination, you'd still face the second problem of how to evaluate if they do something "interesting enough" to be worthwhile reviewing.
True, but there are other alternatives: You can draw, write, read, build things, etc. It just requires people getting creative, which is something we've getting less acustomed to as we instead consume more and more.
I am actually working on a self-hosted anlaytics tool targeted towards conversion-rate-optimization. I am still adding new features, so currently the funnel part is not that well showcased, but you can have a look and let me know features that you find important are missing: https://www.usertrack.net/
> Obviously a lockdown can cause the number of cases to go down.

Maybe I'm just ignorant, but could you explain how a lockdown is supposed to decrease the total number of cases rather than just prolong it?

A lockdown does not make a population more resilient to a virus. It just reduces contagion vectors so it spreads more slowly. The virus still spreads, though. Eventually, enough of the population will catch the virus and build up a resistance to it so that herd immunity kicks in. At that point, enough people will have been exposed to the virus that it does not have enough people to spread to and simply dies out.

I suppose the threshold for herd immunity is lower in a lockdown situation, but I am skeptical about it working to that extent. If my skepticism is misplaced and the lockdown really is that effective, then that also means India will have to stay on lockdown for a very long time to keep that herd immunity threshold low and completely starve the virus out.
First Western Country to declare victory over coronavirus
Most Western nations are doing fine. There's really just a dozen or so countries that have been hit hard, and even then the impact has been uneven within the hardest hit countries.
It might not net you a 7-pack, but it could possibly net you an 8-pack.
He Raised $380M to Build a Marketplace App That Is Used by 44M People
No .666666 is not equal to .6700000

0.666... is equal to 0.666...7
Yes. I'm part of a long term support team - teams do their work and transition it to me. I support a lot of solutions at once, none of which I've built or been able to spend a significant time getting into the guts of. Having the code do a lot of the investigation for me is incredibly valuable. It helps me quickly build a mental model of the small slice of the code I'm dealing with.
Prior to Corona crisis One in four Indians were practising untouchability aka social distancing https://archive.vn/bEMTt

In Western countries people will lose Privacy in crisis. In India people lose human rights in crisis; Police will assault you for trivial reasons; https://twitter.com/search?q=%23PoliceViolence&src=typed_que...

Distrust between Patients and Doctors due to Racism https://archive.vn/QkTja and Diversity aka Castes in India https://archive.vn/YXDP8

1st Corona virus case in India was detected on 30th January; Lock down was declared after 54 days i.e. on 24th March Check the impact https://nextstrain.org/ncov/global?f_country=India&l=clock

While people are fighting Corona virus Modi regime quietly/covertly written off debt of Corrupt people https://archive.vn/N8GSh Caste-wise list https://archive.vn/1X1Un
What if? The USA, at least, is heading towards a fairly strict "human life begins at conception" legal stance. That makes abortions, and many birth control methods, into murder. USA citizens, at least, wouldn't be able to do anything about this. Less righteous countries would have an advantage in 20-30 years of selection for intelligence.
I think this describes developing economies generally. Basic housing and food is what people need work for.
Two things can be true.
You shouldn't need an IDE to grok the code.
This is pretty much exactly what Descript.com does with its “overdub” feature. You can even choose the emotion and intonation of the generated audio. It works freakishly well.
Can you please give an example of React hooks 'dynamic scoping'? See https://stackoverflow.com/a/22395580 for an introduction to dynamic scoping.

React hooks 'state' variables are scoped to a single function. They are not arbitrary variables, but represent inputs to the program. The mental model is a function that produces the same output given the same inputs. Think of a dropdown, where the associated state variable D my have values a, b or c, depending on what the user chooses. The render function simply does not care how the value of D was set, and renders the exact same jsx given a specific D value: jsxa for a, jsxb for b and jsxc for c. That is as pure as it gets. Furthermore, the dropdown state variable D never represents the intermediate computation of some other component[s], and it's never changed by other components arbitrarily based only on the variable name.

The use of "dynamic scoping" to describe React Hooks state is unnecessarily imprecise, implying that a fairly well designed system is a specific kind of mess. Please don't engage in FUD.

Tip: Never call setFoo functions from render code. Only call setFoo from event code.
Hong Kong is basically city-level. And Korea has implemented highly-localised measures.
Of all places, I'm surprised HN doesn't like me asking for evidence.
I've never programmed in D so I don't know, but from curiosity I wanted to check if what you write is true. However, I can't find any function that is declared as auto.

Could you please paste some example of a function that has a return value which is declared as auto?
CEO of Banjo admitted to being a Neo-Nazi skinhead in his youth
Absolutely, it's invaluable for just this feature. Also for digital nomad type workers who often have inferior internet to work with, and for being at the same exact spot when you left the office and get home to wrap up that last bit of work. Just reattach session and keep going. I also like to keep a freenode pane open that stays relatively uninterrupted.
My point is about rates... COVID is less lethal than the Flu even if it's temporarily causing more damage because it's new.

You said nothing about death rates? I did... the rates are very important when it comes to decisions about whether or not we should lose our collective shit over it or not.

Something that's more communicable than others but less lethal than the flu? We can't contain it and shutting the country down is going to destroy more lives and cause more damage than COVID.

My original post was that COVID is less lethal. And it is turning out, that with more information coming out each day, this is true.

My definition of Less lethal = deaths / infection count.

I'd also add that it's hard to take current COVID death counts serious when hospitals across the country get paid more for COVID cases.

It's hard to not see hospitals that are hurting for money turn down 30% more money for the same cases.
SARS burnt out fairly readily with mitigation measures, MERS turns out to be quite difficult to catch at all, and the cold's mortality is low enough it's not an enormous priority (especially when coronaviruses only cause 10-15% of those cases).

The effort spent making a vaccine is going to tend to be proportional to the disease's impact. There's no much point continuing development on a SARS vaccine when it hasn't had a new case in fifteen years, after all.
The opening up is not intended to alleviate poverty, in fact it's the opposite. Currently workers can get ~$3000/month if they are unemployed without fault. If they are unemployed because they refuse to put their lives at risk, they get $0.
This is a really good point. Maybe the problem is how we define equality. What's the test for when two numbers are equal?

People accept that 1/3 = 0.333333... The same people don't always seem to accept that 3*0.33333... = 1. Well, how are we defining "equals"? If we can give that definition in black and white, I think that may help.
> He asked me why 1/3 + 1/3 + 1/3 = 1, since it's equal to 0.333... + 0.333... + 0.333... which is 0.999... How can that possibly equal 1.000...? And is 0.66... equal to 0.67000...?

This would make me very proud.
The Pentagon released 3 videos of UFOs spotted by Navy aircraft
I'm in the same boat. Loved my Nexus 6P but they bungled the warranty response to the bootloop issue. I didn't buy a pixel because they were out of my price range. Everyone I know in real life that has one really likes it. The branding is confusing, I guess Pixel is just Google's phone hardware and accessories brand now.
A lot of companies have blanket policies prohibiting sending any IP to an unvetted vendor.

In quant finance, for example, a DB schema might reveal details of a proprietary strategy that the firm does not want a third party to see.
I’ve pondered before the idea of a video codec that works like RAR, where the video embeds an arbitrary user-specified virtual machine that can be used to decode the video frames. (How is this not just a program binary? Because it still would have the semantics of a video stream, with no random access to frame data, only tape-head-like access.)

Seems like this would be perfect for videos that are just e.g. gameplay of games made of tiles+sprites: the video could just store one copy of the assets, and the frames could just be tile maps + sprite position information.

It would also work well for “videos” that are really just a single static image. Or videos that are visualizations of the audio stream: the VM could actually take the audio frames as input and output the respective video frame.
Zoom picks Oracle as cloud-infrastructure partner
Red Hat takes on the hybrid cloud with its latest OpenShift Kubernetes distr
Being part of the EU, Schengen where people can travel abroad much more frequently due to distances. Also, it's common in the end of February to go skiing during Sportlov week so traveling to the hotspots in Austria and Italy was a bit more frequent for Swedes than New Zealanders, I assume.
For me, WireGuard isn't really a viable option because I want functional mDNS name resolution.

As a test, I did set up a vxlan tunnel through a wireguard tunnel (linux to linux) to prove that it is possible to get that working. However, I can't do that on something like a mobile android client.
TIL: https://docs.python-guide.org/writing/gotchas/
Great work, guys!