skysight-inc/HackerNews huggingface dataset:
> There were a number of returns of fake / broken items.

This is not typical at all.
Personally I think we could push back on the dairy industry and instead force them to label all their milk as 'Cow Milk'.

The dairy industry does not own the word.
Mocking should only be used for extreme circumstances. This class is very easy to test without mocking. `bar` takes no arguments and has no external dependencies and therefore should always return the same result.
> - Behavior

I'm not sure what this means... You mean like the propensity of web apps to open non-native modals?

> - Sluggishness

This really depends on what kind of blended app you're using. Cordova (PhoneGap) and all the webview-based things are pretty terrible for this, but newcomers (react-native, nativescript) have been doing much better with the bring-your-own-js-engine-and-render-on-separate-thread approach.

> - Not able to use OS widgets

This is completely overcome-able with sustained effort, and appropriate sharing. Flutter literally decided to draw every single pixel on the screen and was able to do it, CSS styling is easier in comparison.

Also, this isn't a problem for the hybrid frameworks like react-native or nativescript, they do use native widgets, but you lay them out, style them, and perform interactions with HTML/CSS/JS mostly, which is preferable to trying to figure out each platforms layout quirks.

> - PWAs are a step in the right direction, ...

Yeah I think I wasn't clear enough with what I wrote -- I don't mean I want the web itself to become the mobile platform, I just mean I like approaches like nativescript and react-native/vue-native much more than learning ios and android separately, and think the HTML/CSS/JS paradigm is better than those things individually.

ServiceWorkers are the only solution if you are talking about a purely web app (webview) -- you can actually shim and use native stuff if you want, OR serviceworkers, or whatever else if you take the hybrid approach, while maintaining html/css/js for most interactivity.
She might have been using it as a replacement for this:

https://en.m.wikipedia.org/wiki/Fried_dace_with_salted_black...
I wonder if that’s something a type system (or Hungarian notation!) could have helped with.
> 2) Taste. To us adults ... on HN, rice and beans may sound more appealing than cheap mac and cheese with mystery meat. Take a poll of 3-year-olds and you may get a different result.

Depends on how the 3 year old was raised. I'm in my 30's, along with my brother, and my parents fed us what they ate. My mother cooked most of the week and weekends we would do takeout or the occasional restaurant visit. We were given portions from our parents meal and sometimes an extra side or appetizer. When old enough I got to pick my own meal which was never a kids meal of junk like mac n cheese or hot dogs. I wanted the good stuff like rack of lamb, steamed lobster with drawn butter, prime rib medium rare, fresh mashed potatoes, whole vegetables, etc. The good things my parents ate and shared with us. Sure there was junk food around, but it was kept to a minimum. The friends who became obese had parents who let them drink soda while feeding them deep fried frozen chicken, boxed mac n cheese, and a cupboard full of cookies, candies and other fattening snacks. Some are still morbidly obese to this day.
> 2) IF, and only IF, you'd like to take ADDITIONAL steps to avoid us accidentally flagging you, we also offered three steps (at the end of the article). However, these were totally optional.

Getting warmer.. but:

Even here, you're saying that the customer has (or could have) some role in preventing your error (accidental flagging). This is merely an issue with the wording (here, not necessarily in the OP blog).

The "protect your account" wording of the blog post itself seems good, as do the specific reasons for each additional step.

My only suggestions would be to add the concept of urgency in reachability to the phone number, as time sensitivity seems to be important to many (but not all) customers, and to substitute something for "don't miss important alerts" (which, again, could be read to imply blaming the customer) that has a more positive wording, that expresses that all the relevant parties would then be empowered to have visibility into those alerts (rather than avoiding the transgression of missing them).

See also https://news.ycombinator.com/item?id=17567900 (which I have no idea as to the veracity of but figured I'd call your attention to)

> Hope that helps.

It does (at least IMO), and I hope you take my feedback in the contstructive spirit in which it is intended. (I don't personally have a strong opinion either way, as I lack enough direct experience).
When the product literally becomes a piece of glass with a matte back on it... branding (and counterfeiting) will become a big problem faster than any of these companies are preparing for, I suspect.
I live in San Francisco and have kids. We walk a lot and my older one is a big fan of muni. I really dislike taking the car out.
Also almond milk (and soy milk?) predates the FDA and the USA, so prior usage.
Do you suffer a deficiency because it takes a long time to build up B12 levels, or because you are used to not eating much meat?
Women in the US House of Representatives
Since we're already off topic, check out Karl Schroeder's Virga novels about a world where space has air and the sun does turn off at night.
Maybe you mean American corporations and people in power love space and their cars and the money they make off of selling and developing those things?

For example, LA used to have a great train network for public transportation until the automobile industry made sure to tear it down so people would be forced to drive cars.

In SF/BayArea people want zoning to change so there can be more housing/apartment buildings. Who's blocking that from happening? Homeowners who think that would devalue their properties.

Also, doesn't seem like people in NYC value cars or yards that much (at least not over living in NYC).
And in gun-controlled areas? They would have to control the printers and the digital blueprints as well.
Bored pilots aren't a problem if passengers are safe. There are many thousands of commercial flights every year so we know the current safety levels aren't a fluke.

On the other hand we don't know yet whether self driving cars will actually be safer. They're only used in very limited times and places so there's no way to do a fair analysis.
Anecdotally, I am in Madison, WI and it would be feasible with kids in the right neighborhood here. Lots of bikes have little carriages for small children.
I feel sorry for the poor guy who has to deal with your ad-hoc, informally-specified, bug-ridden, slow implementation of half of HTTP 10 years down the line.
Ask HN: Is Flask secure?
I'm considering setting up a production web server with Python's Flask - to host a RESTFul API; is Flask secure? What are the best options for securing Flask?
It's trivial to learn as well. You use const for everything until you get an error for trying to reassign it.
That would be true if the pricing were based on the business's location, but not if the pricing were based on the map's location.

If you say that you're in Khartoum when you're actually in New York, you won't get a very useful map back.
Wouldn't you be way better off buying one of those realistic airsoft guns and painting the tip? Plus in many jurisdictions should you ever be caught, crimes committed with a gun require serving more years.
The old joke goes, Emacs is a great OS, if only it had a decent text editor!
Ask HN: How do you manage scalable storage for your SaaS?
Hi HN!

I run https://usebx.com and we are adding a feature that allows users to attach documents to invoices and projects.

I know a lot of people use Amazon S3 for storing things such as this, but I'm interested to know if anyone here manages this sort of storage themselves at scale.

Key things I'm interested in are:

How do you ensure high availability?

How do you add storage when you're low on space?

What software you use to manage your environment?

How do you secure content belonging to particular users?

What infra do you use to serve the content to users?
Depends on the workplace culture.

Some places you can't negotiate down to 40 hours a week. Those places you quit.
Mind if I chirp in with another idea? Is phoning a friend an option??

Here's how I see it. You've got to do two things - build a community and build it a home. You've already got a pre-MVP to build a community around. Could you find someone to build it (or help with part of it)?

I'm worried you won't like the look then get bogged down in weird front end stuff.
Well when I was in middle school we did, "Home Economics". Sure it was a bit dated with "How to write checks" and such. Other than that we learned a ton about the basics of cooking. Using an oven, food prep, and what was a good "deal" when making food purchases.
Amazon prime 2hour delivery. $22 has it at my doorstep in two hours.

If I want it faster than that, or cheaper, I walk to the home depot a mile away.
OK, you caught me, give bar an argument. (I'll edit the gist)

Why should mocking only be used in 'extreme circumstances'? I want to test what bar does, and I don't care what baz does, and if someone breaks baz, my unit tests for bar shouldn't fail, because it is doing its job.

I would mock it if it was calling some function in another module, so what's the difference if it's calling another function in the class?
No,what people don't like are inputs which are not compatible with the crap they have to interface with. Whether or not the thing is 1" or 10' away is _completely_ irrelevant.
Most common use case for people using only the text editor part is probably the package manager downloading files in clear text.
So it becomes a medium of communication rather than an actual usuable code. That is interesting...
Sounds like a controversial statement and I'm not sure how universal true this is. I'll give it a thought. Thank you.
To be honest, I'm not sure what caused it. I eat a fair amount of meat now. I haven't had my blood done in a little while and I'm probably due.

The last time I had it done was a couple of years ago and it was noted that I had low hemoglobin as a result of low B12/Iron. My doc suggested I eat more red meat and take a supplement. I never used to be able to afford much in the way of beef so I got my protein through other means. Anemia runs in my family, so it may be related to that—though I'm not anemic myself.
First: I recommend you read this: http://www.paulgraham.com/say.html

Second: You start with claiming that these are not dangerous ideas. Then you finish your comment by saying this might turn young men into terrorists? :D

It's a tough cookie I know. Chill. Consume responsibly. Whether you like it or not, these guys are very intelligent. Speaking of IQ, some among them with IQ 170. I'd rather not ignore what they are saying. They give a lot of insight into the thinking of the currently rising alt-right. Did you ever consider what if they are right, and you are wrong? Or at least some of the things they say are right? How will you orient yourself in such a world? What are the dangers? What are the opportunities?

If you know of any source that offers rebuttal to these ideas in a PG style, please let me know.
I don't know a ton about the situation -- I do know that the streamer in question was active enough with the community that an NPC in the game was named after him, though.
>cables-cum-adapters are not, in fact, additional, because they merely replace what used to be a standard cable (e.g. the one that "came with my phone") is being glossed over.

I agree with most everything you said, but unless you're surrounded by nothing but MBP's these cables are not replacements; they are additional nonsense.
I was referring to that specifically and it's awful.
I doubt it’s feasible year round.
A new way to communicate project status
Alcohol - Only socially. Maybe 1-2 beers a month

Coffee - 2-4 espresso shots a day
You beat me to the punchline. Yes, you can do pretty much anything. (Edit: I guess in the spirit of the joke anything besides writing lol. Shameless plug: I use emacs.)
I've debated several holocaust deniers and I've never met one who was deliberately lying. It's a dangerous world when we make it "illegal and punishable" to be wrong.
If your country has any kind of antitrust or competition regulator then please file a complaint against Google.
My original argument was related to creating a system that does the work of a current system. This kind of thread gets side tracked easily.
I grew up in Rockford IL. Pretty sure you have an issue between September and May.
If players with the resources of Apple and Microsoft are lagging here, it's not because Google "made it hard", it's because it's a hard problem. Yet they are competing, and that's a good thing. Google is just better. And you want it for free. And thus we get back to the cry-me-a-river bit.
Nokia Maps wasn't collateral damage. It is still very much alive and kicking. Nokia rebranded Nokia Maps as Here and and eventually sold it off. Here is still very much alive. Employees several thousand and is still a major player in the mapping services business.
It's a chalcogen vacancy, a very common type of defect in these materials. These materials are called transition metal dichacogenides, so they have the form MX2, where M is a metal (most commonly Mo or W) and X is a chalcogen (typically S or Se). In this case, there is an S missing, but you still see a spot because there is another S below it (if you look at the crystal structure, it resembles graphene but has more complex structure in the third dimension, its 3 atoms thick rather than being flat, with the two chalcogens in the unit cell right on top of each other).
Ah, so no way to block those ads anymore? Most websites load AMP pages now and I tried using duckduckgo for a while but didn't like it much.
If it wasn't possible you could still do:

sum(x > 3 for int(x) in iterable)

And avoid a class of errors in other places.
I have been doing a lot of Local Guide work, photos, verifying, etc. in a rural area. Will be switching to OSM. This was the last straw.
IT worker bailed after allegedly stealing 31 snowball devices worth $600,000
There are people running and working with emacs' shell, read the news, rss, stock market, emails, calendar etc. See the OS punchline below. Thus beyond basic operations of emacs like package management that require a secure connection you have a user's day to day activity.
Dune 1.0.0: first release of dune, the default build system for OCaml and Reason
> complaining about how busy they are

It's an excellent way to protect yourself from actually having to work too much : always act and pretends like you're super busy. People will bother you less. My productivity increased a lot since I started acting busy to deflect non sensical requests and questions
Slide 3 shows washing hands, a behavior meant to defeat infection. A section caled "Healthy Habits".

https://www.cdc.gov/drugresistance/protecting_yourself_famil...
Half a pot of coffee per day
500-700 grams of 80 proof on weekends, Fri evening to Sunday. 50 grams, 80 proof is 116 calories, 0 carbs.

I am on a low carb, high fat, intermittent fasting, 1400 calorie diet. So I weigh most everything, including the rum.
Wow, that's a poignant last paragraph. Good writing! :)
Indeed. Kanji are quite similar in abstraction level to roman letters. That's why I don't agree with your assertion that emoji and kanji are basically the same. The two are very, very different in how they convey ideas. Emoji are concrete, directly showing the thing they represent while kanji are abstract and mostly unrecognizable (more similar to English words).

A few typical examples would be 日 (sun), 人 (person) and 目(eye). No matter the font, the glyph for 人 will not imply details like gender. For emoji, extra care needs to be taken to strip out irrelevent details or you end up with problems like the 'pedestrian' emoji[1].

[1]: https://emojipedia.org/pedestrian/
I wish I didn't need to create an Embarcadero account just to download it. I can download VS Community Edition without needing to register.
The upvote isn't for the article per see it's for the subject matter. I'm hoping to hear war stories and crtiques of Hilbert Curves vs S2 vs H3 or KD-Trees for spatial indexing.

The fun of Hacker News is hearing pros talk shop about stuff too distant from what you're working on.
I donno, looks comprehensive enough for me. What were you looking for, exactly? Source code? Packet traces? Pew-pew maps?

A useful PM include a summary, impact analysis, root cause analysis, and a comprehensive (and realistic) set of measures that will prevent recurrence.

After reading what they provided, I have a reasonable understanding of what went wrong (sufficient for me to plan my own safeguards if necessary), a useful measure of the team's response and remediation capabilities, and enough information to judge my comfort with their preventative measures.

Anything else is just cleverly-disguised marketing.
One might start by recognizing that poor people are, first of all, just people, which means there are lazy ones and hard-working ones and smart ones and dumb ones and some who've had bad luck and some who have brought all their problems on themselves -- and every possibility in between.

It isn't empathetic or helpful to treat a group of people as though they have no control over their own lives.
Can you offer an example of when it would be required (or useful) to replace the bodies immune system with an alternative?

Any foreign substance added to the body (even if it's fighting an infection) still needs to be cleaned out by the immune system. So adding viruses that attack bacteria isn't a zero sum game.
Embedded Flash Scaling Limits
I'm a parent to a one-and-a-half year old in New York City, and I grew up in a mid-sized midwestern city. I'm obviously biased, but I think we've got it much better off here.

A block and a half away is one of the best playgrounds in the city, and three blocks the other direction is another fine playground. Both of them are packed with kids at all hours of the day. When we go visit family in the midwest, we make a point to take walks and visit the neighborhood playgrounds. We're almost always the only people there. Of course people have their yards so nobody needs the playground... I think something is lost.

Walk a few blocks in any direction from our house and you'll see tons of wonderful daycares, family-friendly restaurants, and other parents' necessities, most of them locally owned and operated by another member of the community.

We travel all around the city, we take the train. My son passes the time on the ride charming the other passengers and subway surfing. It's much more civilized than strapping him into a car seat and not looking at him for an hour every day.

I'll grant you that New York City is something of an outlier as far as American cities go.
Unfortunately, no, it doesn't really say how ZFS behaves when an error is encountered.

This is super-disturbing and a dealbreaker, if it's still true:

> The scrub operation will consume any and all I/O resources on the system (there are supposed to be throttles in place, but I’ve yet to see them work effectively), so you definitely want to run it when you’re system isn’t busy servicing your customers.

I browsed a little of the oracle.com ZFS documentation but couldn't find much in the way of what triggers it to decide that a device is "faulted" other than being totally unreachable.
Alcohol: maybe one drink per month. I generally don’t like the taste. Possibly due to me being a supertaster (https://en.m.wikipedia.org/wiki/Supertaster) as determined by a test kit I bought on Amazon due to having suspicions for a number of years.

Coffee: Again, I don’t like the taste, possibly again due to the supertaster factor (Coffee tastes way too bitter for me). I hardly ever drink coffee. I do, however, like mildly coffee-flavored ice cream, candy, or desserts sometimes. I usually drink water (not soda, and especially not caffeinated soda) with meals. Most of my caffeine intake comes via Sweet Thai Ice Tea which I usually order when eating at a Thai restaurant a couple of times a month. Also, perhaps once every two months I will order a sweet iced chai. Also, I generally can’t eat chocolate due to its theobromine being a migraine trigger for me.

Since, for the above reasons, I am exposed to caffeine so rarely, I tend to be lot more affected by it than other people are. One cup of something caffeinated can make my heart race and make it hard for me to concentrate.
Welcome to HN :)
Stuck in anonymity
Ever since I was 9, I've been online under my current psuedonym. Since that same time, I've been programming, and chatting with people online. My parent's are aware of my online name, my website, and my GitHub page. However, they are very strict on online communication, and are unaware of my online friends, aquaintances, and connections. Something even as trival as someone swearing in a chatroom would make it unsuitable for me to be there, in my parents' eyes. So I have to keep almost all of my online activity a secret. Because of this, many projects I worked on with others and connections I've made cannpt be shared with my parents. This would be fine, and it was, but now I'm needing to build up a portfolio so I can get a job later in life. I've got my GitHub repos, but I can't say "Worked at such and such company" or my parents will freak that I've been doing all this. Likewise, I can't accept payments with anything other than bitcoin, and I can't spend it on anything tangeable, only online resources that I can pay for with BTC, such as hosting, but not computer parts to maintain my aging box. I really don't know what to do. I feel like I'm really screwing up my life.
I'm a little torn. I don't remember my apartment days fondly (except during college and in Houston where apartments can be LARGE). Noise/smell/bugs from neighbors is awful to deal with, crummy stairwells (never an elevator), fighting for a parking spot and hauling groceries was a hassle.

But I dislike driving for a commute, I've done as little as 30 minutes and up to 1.5 hours of commute, it's very stressful to be constantly alert for a good chunk of your day just to get from A to B.

I think I've found the best of both worlds; a house that's my family's own space, and Houston Park and Ride stations. I drive 10 minutes to the station, leave my car there and commute on a bus to my job. The stop is about 5 blocks from the building I work at, I'm relatively stress-free and I can choose to make good use of the time spent riding the bus (generally reading books, news, sports, etc.). The bus gets there at the same time I would have in spite of the stops it makes because it uses the HOV when I would be stuck in traffic on the freeway
No living in the country is actually not a vast alt-right conspiracy.
It is in Boulder, Colorado. The bike paths are generally cleared of snow separately and before the roads.
Basically, due to the lack of customer service, Google cloud is not for serious busines, just casual side projects. Reading through this and the article about getting their servers cut off made my stomach lurch
I'm always so confused by this. I switched to Feedly the day Reader went away. It was just as good then and is better now. I subscribe to way more stuff now than I did then. I've never understood how this "killed the entire medium".
You're not screwing up your life. Your parents are.
"America" doesn't consist of LA, NYC, and SF. There are a lot of people even in those places that don't want density but choose the environment because there are jobs, and there are jobs because so few people are willing to leave. (catch 22)