skysight-inc/HackerNews huggingface dataset:
How does testing work within FB, and how much of the frontend is tested? I don't think I have seen much on how FB does testing out there, and I have a good friend who complained about lack of tests at FB (he got called about his code change breaking the spam filter at midnight, and was pissed because there were no tests so he wasn't able to guarantee something like that wouldn't happen).

I only ask out of curiosity, it'd be good to know how FB approached testing as a data point on a major company's approach (vs. say Google)
That's great! I find cycling & its place in society to be a really interesting subject, & one which I take part in (cycling is my main mode of transport), encourage & engage (member of Leeds cycling campaign) with in a fair few ways.

As a software dev, I'm particularly interested in the ways in which you found to apply your techical skills to the subject. What other ways do you you see of using those to further improve matters?
We used to have "vocally self critical"
There's another less appreciated one, I think, which is that input filtering often has the problem that the "sensitive" values that you might be trying to filter out are also very often perfectly valid values as well.

For instance, the apostrophe character is a very potent character in a number of injection scenarios and one you might be tempted to "filter", but it is also a perfectly legal character in things as common as "names". It is merely one example of a very large and constantly growing set.

You can't help but correctly encode things on the way out if you want things to work properly.

There is also the question of "filtering" vs. "rejecting". I personally recommend that one way or another anything with the first 32 ASCII characters that you don't expect not end up in your database, because they are full of magical behaviors in all kinds of places, but I also tend to recommend outright rejection on the grounds that these things don't innocently come in. Nobody accidentally types the Negative ACK character into their name. But at the very least, filter it out early. You can also outright "filter" on Unicode character classes you don't expect. But this really ought to be seen more as mere day-to-day business "data validation" than a security measure because of the aforementioned fact that some of the Characters of Interest are still valid, and you can't afford to just filter them all out.

(You basically end up with "English letters and numbers". If you're trying to "filter" away all the "bad" characters in advance, without really knowing where they're going, you can't even have things like "space" (very active shell character), and UTF8 can actually be dangerous if stuff isn't expecting it, etc. And when push really comes to shove, even strings of nothing but English letters and numbers can become dangerous if they are too long, in certain pathological contexts, i.e., "seriously, don't write network software in C". Because the safety of a string is not an intrinsic property of a string but has everything to do with interpretation by further bits of code, there isn't a way to generically "cleanse" a string.)
The organization of the profiled church reminds me of soccer leagues in apartheid South Africa[0]. The people running these complex organizations are effectively learning how lead and organize - how to govern.

[0]http://foreignpolicy.com/2010/06/07/how-soccer-defeated-apar...
> The spacecraft captured the view on April 12, 2017

That's the anniversary of the first human spaceflight, celebrated as Yuri's Night (and also, awesomely, my birthday):

> Yuri's Night is named for the first human to launch into space, Yuri Gagarin, who flew the Vostok 1 spaceship on April 12, 1961.

https://en.wikipedia.org/wiki/Yuri%27s_Night
I probably should've waited till evening to share this but I'm excited. Also, I should mention that it definitely doesn't work on mobile or older computers.
Great stuff ! Respect from the 514.
It's more R&D costs than anything else. Batteries and electric motors are really easy to use and scale up.

Micro/Nano Gas Turbine Engines easily surpass batteries over 1h, but are not cheap or easy to use. And, if you only need 10 minutes at a time for testing then batteries are significantly lower weight.

EX: Wren's MW44i 46 oz (1320g) and produces almost 7 hp or ~5kw.
React is very usable without Redux. I'm not sure how they became bound so tightly together.

I keep seeing this pattern of redux as a page-level data store, whereby on each page load you pull your data from rest APIs, put it in that page's part of the data store, to be modified with that page's reducers, triggered by that page's action creators. Then it's all hooked up to one single page-level connected component which passes all the state down to other components as props anyway, making it functionally identical to just using the React state in that page component.

The justification for this is usually either "Now you can make your page components pure functional components!" (whooptee-do) or "Redux scales better" (citation needed). Pretty thin.
But while they're doing that, who's going to work on Amazon Forms?
There don't happen to be any recordings of the lectures are there?
The debate now, is if it even has a (non placebo) effect. I am sure if it is good or bad in the context of getting things done will be quite subjective.
A bit scary thinking someone could do this with ease.
Impact and correctness are two very different things. Cool results often get cited quite a bit, without much checking if the result actually is valid/can be repeated.

(but yes, peer review doesn't solve this either, especially not in the current form)
Time to Explore Alternative Ownership Structures for Network Effects Businesses
>There's a expose like this every couple of years, but nothing ever changes.

Why would it? These are not "predatory journals," they are akin to diploma mills for quack scientists and it's a mutually beneficial arrangement. Scientists get published, and the publisher gets paid.

The only one harmed in this arrangement is a hypothetical third party, and that is dubious.
If anyone isn't aware, you can use babel-plugin-react-html-attrs[1] to address the class/className issue addressed in the author's last point.

[1] https://github.com/insin/babel-plugin-react-html-attrs
> Every single bad bot will avoid known user agent strings

If I was writing a bot, I would set user agent to some well known and very popular value, i.e. newest Chrome on Windows, or something like that.
There’s a problem with the phalange
Conversely, when scanning a table of contents, I look at the last author first, because that tells me what group produced the work.
Researchers harness mysterious Casimir force for tiny devices
I have the same phone, but battery life has significantly dropped in the past 6 months. What version of Android are you running on yours?
This article ignores the fact that the stated goal of the NK Regime is reunification of the peninsula(under their rule, of course), and that they were the ones that started the war to achieve that goal in the 50s.
I agree that this is completely appalling and their apology is basically "Sorry you didn't know." But let's not characterize Jojo Hedaya as a bad guy just yet, I did a basic searched and didn't find anything else shady from him. I guess what I'm saying is let's give him a chance and hope for the best, one big thing like this shouldn't mean he is beyond redemption. At least that is what I hope and believe about humanity.
I don't understand Redux, I have almost 20 years of coding (I probably suck at it though). I once asked a developer at an interview if he could explain the redux stuff he had used in an assignment. He couldn't and I really tried to understand all the boilerplate and inner designs of the library, but I found it really hard to get into. Mobx though, 2 minutes and you get it AND you get more efficient in building complex UI:s.
I'm using a Xiaomi Redmi Note 3 Pro. I have to recharge my phone every 2-3 days. Although I turn the internet off overnight and I barely use my phone (other than stuff like whatsapp and FB messenger being constantly on).
He had me up until he dismissed fears of North Korea as a rational actor to be baseless. Just because they aren't "CRAZY" and won't nuke Japan for the hell of it doesn't mean I want them sitting on the UN security council.

Day 1: Kim Jong Un in a partnership with Iran has announced that Juche is compatible with Sharia law and in a joint effort propose to bring these brilliant strategies to Europe...
any other identifying information

This part is actually much harder than it looks.

Honestly though, if you tell users you can delete their data on request, you should just do that - delete all of their data, full stop. If you can't or choose not to, you should just be up front about that, also - that means in plain language they will see, not buried in a TOS or whatever. It's the only ethical way to handle this. National boundaries and jurisdiction are side issues, really.
"Feel" seems like the key word here. Unsure how much of this is the placebo effect at work or just simple recursive autosuggestion (you expect to be more sharp and so you are constantly checking for that sharpness and therefore find that feeling validated)
Woah that's kinda scary. What could we do to determine if a video is legitimate or not?
thanks for bringing this up! i saw this article last week and it THRILLED me. so much potential here.
I mean, you're comparing real life with a fictional TV show, what did you expect? People don't watch NCIS with the expectation that it's anything like the real world. I mean, even if you were going to criticize the show, you should probably start with its overly broad definition of the NCIS mission, or why they were in Africa in the first place.
Working to stop human trafficking, especially of children, is on top of my list of things I'd want to work on. Can you provide more information about this org, and how effective they are? What kind of roles are available. I'm natural talents are technology and working with children (I've worked in preschools).
@EPA says it is false

https://twitter.com/EPA/status/856508545805758464

> Rumors about the website http://opendata.epa.gov/ are wrong. It's open, working & not going anywhere. This website & the EPA belong to you.
this is clearly way better than visakanv-rnn. thanks!
So this kind of article is excellent and I really am excited about how entheogen can potentially heal productivity to depression.

I have been very interested in this concept and approach as I know several people who could benefit from this - myself included.

Psychedelics are tools and are not to be taken lightly. As much as an advocate as I am for them I also agree that they're not for everyone.

Finally being able to have access to testing and experimentation we may discover even more capabilities.

However, what drives me crazy is how are we supposed to get the medicine? Especially in the case of LSD I am concerned of purity and risk of finding it.

It's a lot different now than it was in the 80's - at least here in the midwest. We no longer have the Grateful Dead and/or "family" providing clean sources. To make matters worse it's most likely the > 40 year olds crowd who would be interested in this but who is going to sell a 'mom or dad looking person' a hit of acid? Hanging out in the concert lot isn't what it used to be ;-).

Perhaps in places like Marin County there still is some availability. I hope so and I hope it once agains paints it's way across the country/world.
Let’s make ‘yield return’ our best friend
How to Improve Your Self-Confidence
> I know we have the "but mah immediate mode" crowd

I'm in the "but mah immediate mode" crowd, so thanks for the condescending tone. I like immediate mode and matrix stacks and all the nice stuff compatibility mode provides because they are convenient even if they aren't fast. Quite often what you want is convenience, not performance and adding a usually badly documented 3rd party library that might be dropped next year (or whatever) or break its API is not a desirable solution. Especially when the entire point is moot since OpenGL 1.x/2.x and 3.x/4.x compatibility isn't going anywhere any time the next couple of decades - at least.

Besides the parent post is about what someone's favorite API was so i also added what my favorite API is. D3D9 isn't any more deserving to be someone's favorite API than OpenGL.
My point being, you are doing a great job, if a person is frustrated over some tech and writes a blog post or whatever about it, maybe you should just leave it with that? Coming out defending design decisions etc just leaves a foul taste. React is awesome, but maybe it is not for everyone?
A lot of Abramov's responses do refute the original points, but they also betray how much cognitive overhead is required to play in React's ecosystem.

The guy used Redux, I'm sure, because he knew he needed to manage state somehow - and the articles he found probably pointed him there (rather than vanilla component state)

He knew he wanted some sort of routing system, found react router, was got a bit scared by how quickly it has been moving lately - and also, likely, how many existing articles about it are somewhat outdated

Etc
ohno i was totally planning on doing this next ):
Related: Jocko Podcast, always good food for thought > http://jockopodcast2.com/
The `get` and `set` methods on `Date` have been deprecated since 1.1... In favor of `Calendar`, which is all `Date` is using under the hood to perform such calculations anyway.
> The North Koreans are dangerous because they refuse to submit to our imperial authority and play ball with our global order.

Like it or loathe it, this is the problem.
Mine is called cdx and includes 'env' functionality and a bit more. (https://github.com/apk/c-utils/blob/master/aenv.c)
Indians is such a big category though. I have Indian DNA, lived most of my life away from parents in western counties. I can't speak hindi to save my life.

But occasionally you'd find the person who'd be a snob and judge you from the skin. Then you'd say something and they'd be like "where are you from". "I'm from here". "No no, wheeeeere are you from?". "From Africa". "Where are your grand parents from?
You might want to read Carlo Rovelli's paper https://arxiv.org/abs/1312.4057.

TL;DR Aristotle's physics lasted a long time because it works in the environment in which people used it.
there are categories of H1B people: Those who come from India having "specialized skill", those who graduate with a Masters Degree in US in specialized areas like CS, Cybersecurity.
Why ignore the latter?
While it's true that the media overplays how volatile NK is (mostly by acting like saber-rattling has any reasonable chance of devolving into full-scale war), let's not act like their administration is ran by reasonable people either.

Remember that according to KN Kim Jong-il's birth caused a new star to appear in the sky and the season to miraculously change from winter to summer, and never needs to defecate. This is also the same country that is home to some of the worst human rights violations in the world and keeps their dissidents in concentration camps.

Painting them as innocent and reasonable feels like a bit of a stretch.
Works for me in Canada, but only using IPv6.
"U.S. propaganda can dismiss North Korea’s legitimate concerns so easily because of the underlying racist assumption that these are a bizarre and simple-minded people that believe in things like unicorns. This feeds off of and into orientalist logic that sees East Asians as a nearly subhuman “other” that can’t be reasoned with and so must be handled with force."

I don't particularly see this logic with Vietnamese, Chinese, South Koreans, Japan. At least in the particular context of military action. In fact, most of the articles I end up reading about Japanese, South Korean, or Chinese responses to what North Korea is doing at the current time.

That said, I think there is a big role of racism to play when North Korea is used as a fear tactic during political cycles locally. But maybe everything is just about America and I'm wrong here.
There are mass/weight gainer supplements that you could try (maybe start with 2-3 servings/week) but I wouldn't use it without some sort of anaerobic training program to build muscle.
>> The reason that the Fedora port is on hold is because I'm waiting for everything to go upstream so that this sort of thing stops happening.

Fortunately that is happening. GCC 7 now has RISC V support and will be the compiler for Fedora 26. They really do need to get the priv spec finalized so kernel patches can go upstream as well. It's falling into place slower than people (both of us included) would like, but it is happening much more so than it did for Power, Sparc, or OpenRisc.
The only reliable way to sanitize PHP-serialized data is to unserialize it, scrub it, and reserialize it. This poses a nigh intractable chicken-egg problem, and makes a switch to JSON by far a more economical option.
You don't have your email set so created an anonymous account just to say thanks for doing what you are doing, it really really matters and means a lot
I don't think they actually unsubscribe you. They basically sit in front of your incoming email and don't pass on emails that match specific patterns. (And apparently sell that sweet, sweet anonymized data)
That's fantastic! I recently joined the Dublin Cycling Campaign and we want to do things like this - as you mention, the map at https://cyclebath.org.uk/map/ is an inspiration.
This is great! Can organizations use your site?
What I thought was stars in the background, was actually dust on my monitor.
As a fan of Nes, I thank you.
React is useful, it makes a lot of things easier to learn, and it has a beautiful architecture (imo).

But, React is still just another tool in our toolboxes.

If we're building prototypes or short-term apps, slap it together with whatever tool is fastest for you. If we're engineering something that needs to last and provide a great experience, it's important to know when to use a Philips head screwdriver versus a flathead, or either, or when we really just need a hammer.
You shouldn't have posted this :)

EDIT: I remember playing a copycat of konami's contra at childhood, and had wondered what the name of that game was. Now I know the original, thanks!
> Why would one ever prefer a linked list over a dynamic array?

I thought this same thing when I started doing embedded console game development and saw a lot of linked lists going on. I came to realize there are a bunch of really good reasons to use linked lists.

The biggest difference in practice is that linked list pointers are commonly fields inside the data that you're linking, as opposed to being a separate data structure. With a dynamic array, it's usually a separate data structure. Neither of those is absolute or always, but that's how it normally plays out.

With that in mind:

Sometimes you're loading a block of pre-formatted binary data off disk or from a network that has space for linked list pointers. Rather than allocate anything else, you can fill in the list pointers.

Sometimes you have a lot of small lists to manage. If you're allocating space for your list data, and the dynamic array doesn't get big enough for amortizing to take over, then you're doing double allocations, one for the data and one for the dynamic array & potentially first couple of reallocs.

Fragmentation is worse with a dynamic array (when it's a separate data structure), and re-ordering events are much costlier in arrays than with linked lists.
Creating a Construction O and M Manual Template
The problem is the show is so life-like, and so realistic, people believe it.

I believed it, and was actually a little nervous to walk out onto the streets of Bamako, which is pure nonsense.

And of course, the news also does exactly the same thing.

Slow news day - let's pick something bad that happened in one of the 54 countries in Africa to show people. Never mind there are literally a billion people who are extremely friendly, happy and peaceful.

Think for a moment what your perception of the USA would be if you lived elsewhere, and the only news you ever got was the bad stuff - mass shootings, police violence, undrinkable water, fires, tornadoes, crappy education, high debt, more shootings, more violence, violence when the president is sworn in, etc. etc.
Ask HN: How much do Senior iOS Engineers make?
Glassdoor is not really reliable, so I'm wondering how much does a senior iOS engineer makes in big companies like facebook, google, apple, et
I agree, it is reassuring to see that the team is thinking about ethical implications.

Judging by the samples from the homepage there are audible artifacts in the recordings resulting from synthesis. I doubt these would pass scrutiny if presented as evidence in court. In some ways forging a voice is like forging a signature, truth can be exposed with enough effort.
Was this maybe CereProc? That's who helped Roger Ebert post thyroid cancer. He was a great candidate for the service as there were of course hours and hours of high quality audio recordings of his voice to use as a source.

http://abcnews.go.com/Technology/roger-eberts-voice-restored...
I've never been to Africa, so my perspective has likely been tainted by media and entertainment programs like the ones you describe.

How often did you travel to rural parts of Mali? Is it as safe as Bamako?

> ... I met hundreds and hundreds of the kindest, friendliest and happiest people...

Over the years, I've learned that most people from most places are sane, regular people just trying to make their way in the world. People from Iran, North Korea, Russia, China, Afghanistan, Tibet, Venezuela -- they're just regular folks like you and me. They get up in the morning, go to work, try to have a good time with friends/family in the evenings.

If we were to hold up a mirror and try to judge ourselves based on the outlandish things people do and say that end up being worth news coverage, I think we'd feel some dread about where we live too.
Well the article does say that the researchers controlled for these things by using a placebo.

There was a study done last year that scanned the brains of volunteers, some given a placebo, and some given LSD, and the results were enough to convince me that this is a topic worthy of more research.
In what way? Genuinely curious.
It does. Remapping Command onto Caps Lock helps a lot with the hand cramps, and Control makes a pretty good super key since almost nothing uses it. Still a mess, but it's manageable if you know how.
Direct link, https://www.podcastinit.com/episode-106-yt-project-with-nath...

To submit a link, leave the text field blank and add a comment after the redirect to the |new| page.
In most publications editors select headlines for all stories in an issue. The writer does not have a say in what is printed as the title of their own article.
> Or you'd need to use the latter form and do lookups by mnames[mon - 1] instead of mnames[mon].

All of which should be hidden behind your API anyway. It was a terrible choice, because it forces the client to deal with weird things just so that you can squeeze a single decrement out of your code.
Why respond at all if so?