skysight-inc/HackerNews huggingface dataset:
>> Sometimes something that appears overengineered is built that way to meet the actual requirements a problem presents.

That's poppycock. Here are the requirments:

>> Write the most efficient function you can that determines whether a given string is a palindrome.

A palindrome is a string that is equal to itself reversed. That's like, the mathematical definition of a palindrome (simplified, of course). What I gave you catches exactly that. If some of the test cases in the proposed solution don't agree with the commonly accepted definition that's a problem of the proposed solution, not mine.

Also, in terms of the "most efficient" solution, the guy's proposed solution is far from that- because he tries to be smart and reverse the string while he compares it, thinking that's faster than going the whole hog. But that's only going to save you some cycles a tiny amount of the time, because the vast majority of strings you can expect to encounter are unlikely to be palindromes. Reversing and comparing the string to itself is the neatest, quickest, most legible and prettiest thing you can do in this case, regardless of your use case or anything else.

And if you're a recruiter that expects anything else, that's because you have no idea what you're looking for, not because you are as smart as you think you are.
By your definition, i am pretty sure that you are a slave.
On my Blackberry the site does not layout well. It might be worth looking at % of users coming from mobile and if you see a lot of that kind of traffic fixing the layout.
I don't know any brands for doors, but try googling for brands and see if there are US distributors. The doors are usually solid all the way through (none of this plywood nonsense with cardboard in the middle) in addition to the bevel + rubber padding around the edge.

Failing that, some of the major German "baumarkt" (building supplies stores) chains:

http://www.hornbach.com/de/index.html

http://www.obi.de/decom/home.html

https://www.toom-baumarkt.de/

Use google translate and see what you get. It might be worth investigating the pricing on a shipping container if you have an upcoming renovation or build in mind, shipping is cheap these days due to the global supply glut. If you have a friend who wants to do a project, a 40 foot container will cost you the same whether it's 10% or 100% full so you split the cost (weight doesn't matter). Try a shipping forwarder to the US or maybe you know someone in Germany and order to their address, and forward it.
Comments moved to https://news.ycombinator.com/item?id=11821425.
For reference, I build a standalone datepicker module with preact + redux at under 20kb (min + gz)... worked out really well. By comparison, went with regular react recently, and the payload quickly got over 200kb, though I needed a couple relatively heavy libraries for the app in question.

Another point worth mentioning is using react-icons individually (svg based), same for component libraries where you are only using a few components... tends to work out much lighter. Also, if you do use bootstrap as a base css library, work from the source instead of monkey patching the .css output.
360M reasons to destroy all passwords
"in most cases, people focus their (phone-based) social effort each month on around 15 people"

15 people??? Jeez! I had a hard enough time keeping up with 5!
Not only is it lost potentially due to increased automation but also because we no longer process our forestry products locally, whole logs get shipped to China so we can buy them back in the form of various goods.

Pretty sad to see so many industries cut out at the knees so the forestry company makes a few extra bucks
I don't buy the "understanding is hard". Also you'd have to characterize precisely what is so special about a unicorn. There are animals with 2, 3 .. things on their forehead. That doesn't make them special. What about pegasus. Or other invented beings of 50/50 blends (minautor, egyptian gods). We just have one particular model or animal qualities ingrained and 'enjoy' toying with a maximizing function of having both our traits and other animal traits. I'd love to see a cockroachman god figure.

I'd bet a thousands dollars that the underlying principles Deep Dreams uses to infer fractal and continuous images are the same we have in our brains.
SEEKING WORK

Location: Los Angeles. Remote OK

Languages/tech: Javascript, React, Python, C#. I have experience with basic deployment and provisioning of databases, as well as basic automation with shell and Python scripts. I have also worked on projects that involve scraping.

Stuff I am interested in: Learning more devOps, messing around with Typescript and writing Javascript libraries.

Linkedin: https://www.linkedin.com/in/samier-saeed-9335553a

GitHub:https://github.com/ss108
> I wonder if they count "hours of work" as hours with a passenger or as total hours driven. If the latter then she actually "worked" longer hours.

Even if its "hours with a passenger" its still too short; it really should be "hours in which other activities were foregone so that she could be logged in and ready to accept passengers".
+1 for Dark Reader too. Tried several others available Chrome extensions but they would decrease performance on scrolling or would lack options.
Hey America, do accidents happen anymore? Especially when a kid is involved?
>problem solved

And perhaps many new problems introduced (as you point out), so... no, not really.
I wrote a module that provides something similar to this using ES6 generators (which are already widely supported), but also supports callbacks in addition to promises. This way, you can make calls to existing APIs without having to wrap them to return Promises.

https://github.com/mappum/watt

Since it uses generators, you use 'yield' where you would have used 'await'.
The notion of hot versus cold for Promises/Futures doesn't make much sense, because you're not sharing a connection, but a result. In other words you're thinking of memoization of the result. Also backpressure doesn't make sense when you're pushing a single result, as there's nothing left to apply backpressure for.

You mentioned Singles. I actually think Singles are terrible because they are observables. You see, while it's a poetic notion, the use cases are different. In particular, Futures tend to be used in tail recursive loops whereas observables are not used like that. So Futures can and must be stack safe (in flatMap), but Observables cannot be stack safe by definition (since you always have a last onComplete event).

As a disclaimer, I've been working on a Scala library inspired by ReactiveX, Scala, Cats, etc. And my Task (i.e. Single) does not inherit from Observable. Try doing this with Single: https://monix.io/docs/2x/eval/task.html#flatmap-and-tail-rec...
Intel's data center chief talks machine learning – just don't ask about GPUs
In light of all the recent data breaches, and waking days of my life spent reseting passwords, I think there is only one solution to this mess. Let's destroy all passwords. It starts with developers.
I take issue with your first statement- evolution certainly works at the species level (in the sense that population genetics is a thing). It does appear there is a population fitness that is selected for when two desirable phenotypes can't be accomodated in a single individual.

Also, "Most organisms die long before they get cancer, so the fitness of a gene that prevents cancer is pretty small." ignores the fact that there are genes preventing cancer (tumor suppressors), and those genes are under active selection.
Ditto for my BlackBerry Passport. Still really like the site though, and plan to brush up on my *nix.
Elon Musk interview at Recode [video]
Of course there are other factors. But that doesn't mean the dispersed interest of consumers should be valued at zero just because they don't have a lobbyist and no one donates to a politicians campaign after explaining how they should let Apple sell used iPhones.
I have used none, but at the time I researched it, a lot of people were talking positively about

https://www.informatik.uni-augsburg.de/lehrstuehle/hcm/proje...
Check out the Bluebird benchmarks [0], or you can easily try it for yourself - create a simple web server which does some makework async task, like stating a bunch of files, then benchmark with ab or something better.

[0] https://github.com/petkaantonov/bluebird/blob/master/docs/do...
Yeah, no shit! This is no surprise to me whatsoever. Owncloud has been stuck in a rut for a long time! I'm assuming that taking 90% of the top contributors means they'll still be taking along a hefty amount of the politics, but maybe with a fresh outlook this project will become competitive again.
No, I didn't even study NN, so backprop is a fuzzy notion. I take it as a convergence feedback loop, am I completely off ?

By backward I meant the images done by the Deep Dreams program. They retrofit (hence the back) 'dog' signals fractally. This is a pretty amazing primitive to me. Trying to recognize 'concepts' even through that much distortion.
I once loved Second Life. So many science demonstrations (NASA, NOAA, and many museums setup virtual campuses there that are still amazing), gatherings, museums, and educational experiences that only a virtual world can provide. Then it became a ghost town (with some mostly-NSFW exceptions).

The problem is that SL is closed source. I once tried to run a virtual field trip with 10 kids to show them around, but Linden Labs blocked us for having too many users access SL from the same IP address. You have to lease property on Linden Labs servers for a presence there. Why am I going to invest the time and energy into building something amazing on rented space that will vanish the moment I stop paying for it?

If SL were to be released as a open-protocol, like WWW, where anyone can pop a server onto the Internet and host a community, I think SL would thrive again. I would love to see that.

I found a nine-year-old blogpost I wrote on the science attractions in SL. It really was an amazing place. I would really like to see something like it again, but open. I think there's a huge opportunity there for someone with the right technical capabilities.

http://ideonexus.com/2007/03/03/science-in-second-life/
The French would have far fewer complaints about these companies if they were French, even if they behaved in exactly the same way.

The concerns are real, but the underlying issue is that having foreign firms succeed over local ones upsets people. One needs only listen to how often the politicians mention that the companies are American.
I would say the iphone was a total innovation killer. Apple restricts ideas to only things they like. Maybe we wouldn't have such polished phones but we would have more interesting ideas emerge.
I agree that weaponization of the courts as a tool for bullying, carrying out vendettas, and/or shutting down innovation from small companies is a huge problem (Donald Trump's penchant for this is one of the reasons I have a hard time closing the gap on supporting him).

I think a good way to keep this system fairly stable but approximately prevent its weaponization is to require that each side has equivalently-priced representation. The Court should require the wealthier party to disclose their legal costs and pay 1x that much money into a trust managed by the Court, which would then be forwarded to the other party's attorneys. This way, both sides are evenly matched and it's a fair fight; if Thiel wants to pump $10m into the other party's legal offense fund, that's fine, but he'll have to pump an equivalent amount into the legal defense fund.
I could not use youtube since I chosen not to use google+. By "using" I meant active use, with comments and posting videos - I could do none of that because of google+ being forced despite people not wanting it.

Of course - any company can do whatever they want, some actions will result in people hating their products. And forcing google+ was one of those actions.
"To maximize your free will, press the key that the robot tells you to."
Happier, more productive employees?
Humans are bad at random number generation, until you train them to do it. Randomness is a skill that can be learned like any other.
I've been using ownCloud for quite some time now with a handful of users and many clients across Windows, Android, Linux, and OS X without any issues. This is running in a FreeBSD jail.

I too wish it wasn't written in PHP as I'd be inclined to add features, but I haven't had any of the issues mentioned in this thread.

What is the reasoning behind this new fork again?
We are specifically talking about Seattle here, though. All the other variables would also be different in different parts of the country.
Looks good! We've been working on something similar at reddit, https://github.com/reddit/node-build, to solve the same issue. It has defaults for react/es6, and I'm also using it without react for building es6 libraries for NPM distribution.
Why Video Conferencing Is Getting Smarter, Bigger in 2016
Play with Linux containers in the browser
They analysed one year of phone records for a phone company. And basically what they found was that 25 year olds actually talk to a wider variety of people than other age groups... Not popularity. Not how many friends one has, and not how large one's social circle is.

I'll agree with the others, completely out of touch and a weird click-bait headline.

Does this stuff actually matter past school? If so, I'm doing life wrong.
> So I'll stand by a claim that the money is pretty good, at least in <$10/hour minimum wage markets

But the whole calculation of the money was based on the earnings of one driver in LA, which isn't a < $10/hour minimum wage market (California has a $10/hr minimum wage).

(And, after taking the employer-equivalent share of self-employment taxes into account, the pay is barely above the equivalent of a $10/hour employee wage.)
Well, those people are wrong I'd say.

Being quite unpredictable just means that you do a lot of random things -- but says nothing about how you came to will them.

If someone, for example, was threatened and ordered to follow for years what a program with millions of suggestions told him to do, he would be very unpredictable, but totally without free will.

And the inverse: one could choose to do the same routine all his life, and thus be very predictable, but it would still be his free choice.
How quickly did the starfish return? He only removed them every other week. How many needed to be removed each time? If he had to remove a similar number each week as he did on the first, the message is that the removal isn't effective. If they were coming back within days/hours his results might be coincidental. Shorelines are dynamic places. Even with a control area a few meters away, he might have been witness to a natural change at that location.

Also, pity the poor animals on the sharp end of "kick it and see" experimentation. This is not something to be applied to what my land use prof called "cute cuddly megafauna".
I just witnessed it happen on my father's PC last week. It's even worse than what they're reporting here.

Basically, it brought up a window with a countdown saying that an "update" (won't say what) is scheduled to run in 4 hours. I had the option of changing the update to happen tomorrow, the day after, or the day after that. No close gadget. No opt-out. No alternative. Killing the window via task manager just caused it to relaunch. Cutting the power just made the update run when it restarted. I'd already backed everything up, so I wiped and reinstalled windows 7, and then used Never10 to hopefully stop that shit in future.
I have always on enabled and reviewed my recordings. Same results as you. Voice searches I initiated and voice keyboard input.
Correct. However on the otherhand, walking around a 3D art gallery where each wall is dedicated to one of the accounts you are following would be a benecicial use of the technology. You could easily scan the small framed images for those you like, and click on them to visualise them at full size in front of you.
Anyone relying on "notifications" to define their wrist-worn device is in big trouble. I just bought a Garmin Fenix after debating to: wait and see what Apple has at WWDC, or wait for the Pebble to ship. I ended up with the Fenix, and commented to the wife: "notifications is the baseline, hell, just about everything in Garmin's lineup can do that, and that's not their main business."

So we see Pebble trying to define themselves with something other than just "you have mail!", only on your wrist. To me, Apple seems to be trying to do to much to not just be "notifications on your wrist", but not doing any of it all that well. I ended up with the Fenix because after two versions of Pebbles it seems my main use case for a wrist-worn device is fitness stuff, which Garmin does really well. Pebble looks to be trying in this next iteration. But do I wait on Pebble and take a chance they get fitness right, or do I get the watch from the company I've been buying from for years and have been happy with, now with wrist notifications? Apple's a non-starter, given that I have to bring a phone on runs (umm...no).

In summary, when buying a thing that goes on my wrist, notifications are a given. What else do you have to offer? And that differentiation is what will decide winners and losers, IMO.
> The problem with student loans is that you can't bankruptcy them out of existence.

This is a pervasive myth, but, while they are harder to discharge than most other unsecured debt, they can be discharged in bankruptcy.
Artifactory has been worth every penny
sells very poorly compared to xbox one and ps4 and pc.

in their current state (with missing ports and driver performance) that they sold any is almost amazing.

As a linux gamer though, I'm appreciative that there are many games available to play now because of their efforts though.
Young people and children still watch a lot of "TV" but a big share of it is done via streaming. Also, judging by how many young couples make their kids watch "TV" on a tablet or phone while they are waiting on some appointment (situations where my generation had to actually stay put or find creative ways to pass the time) I think the case can be made that children are actually spending more time in front of the "TV" than our generation did. In any case they are spending more time in front of the now ubiquitous screen and so may very well end up with a bigger waistline too.
Removing the minimum wage is so extreme it's barely even under consideration anywhere outside libertarian-only econ conferences. And it always has been. Your positions (the few that have not already been enacted, because of how far right our system has shifted) are hyper extreme, they have always been hyper extreme, they always will be hyper extreme, even in conservative circles because the vast majority of people simply do not want them to happen and have never wanted them to happen because they would be awful for almost everyone.

The only items on your list you have NOT gotten because of our extreme rightward shift in the last 60 years have been the points about removing pieces of the government wholesale (and removing government-recognized marriage, which near zero percent of the population has ever wanted, which isn't even a conservative position). Because government agencies were created for a reason, to meet a need and those needs have not ceased to exist.

Gun and religious laws have not really changed much. Deregulation has happened massively and destroyed huge sectors of the economy. The only point there that withstands even casual scrutiny is judicial activism.

You could have just replied "Yes".
The model behind ANNs defines how the system maps its inputs to its outputs. A theory, on the other hand, is something that describes an aspect of the environment/sample data regardless of system's outputs. One benefit of having several theories is that you can compare, test and invalidate them.

...

If your definition of "experiment" includes stuff like practicing a baseball pitch 1000 times, it is too generic to be meaningful. Experimentation implies purposeful gathering of knowledge by trying different things.
Any random result series has such "unlikely" occurrences -- you can get 100 6 in a row by throwing dice for example, it's just rare. It's the long term convergence that matters.
(A bit late, but hoping that you see this:)

If possible you should probably go for an even stronger property, namely Idempotence[1]. (This can be relatively easy if you can force clients to provide some sort of unique token for every operation.)

It's usually makes this even easier to reason about for clients since they can just retry anything while knowing that it doesn't matter if they retry an already "applied" operation.

[1] https://en.wikipedia.org/wiki/Idempotence
How Do I Make This Hard to Misuse?
Ok, so it works. Did you try to input the letters you chose by yourself?
We’re Sorry Amnesty International Ruined Your Ideology
Here's a totally different idea: lets assume that the true-false questions are on a related topic. We can give partial credit if wrong answers are consistent with each other: that is, if there is some (simple) model of the topic we're asking about that is close to the correct model and produces those particular wrong results.

Intuitively, if there are a bunch of questions about the same "feature" and you get them all wrong, all those mistakes stem from the same misunderstanding. I guess in a well-written test where questions are conceptually spaced out this is not as much of an issue...

So to give partial credit, we try to find a simple model consistent with the T/F answers and award credit based on how wrong the model is.

In particular, this would catch the problem where you have a single misunderstanding that cascades into a whole bunch of wrong answers even if you actually understood the rest of the system fine. That's one of the main uses for partial credit in longhand answers, isn't it?

How would we do this systematically? Well, we can't, really. But there are places where we could. I worked with a professor who did research in program synthesis, and I remember he had an interesting idea for education: when a student submits an incorrect program in, say, Scheme, we could try to synthesize an interpreter that would make the program correct and then extract what the students misunderstanding was. (For example: they used dynamic scoping instead of static scoping.) If you seeded your synthesis system with the various kinds of things students actually get wrong, this could be both useful and practical.

You can apply the same idea to grading a test about Scheme. Award partial credit if somebody has a consistent mental model that just happens to be wrong. If they got a whole bunch of questions wrong just because they mixed up scoping rules—but understood everything else—partial credit seems fair.

I guess this is pretty explicitly rewarding consistency with partial credit, but that also seems fair in a lot of classes like CS.

To be clear, I don't actually think this approach is really practical: it's more of a thought experiment on what could be interesting. Even if it was possible, doing it on T/F questions would likely require a lot of questions since each one only provides one bit of input. If you had questions along the lines of "what does this Scheme program produce", you could get away with significantly fewer if you were clever about choosing them—but you'd still want some redundancy to be at least a bit robust to the student making typos as well as conceptual mistakes.
really? I frequently video conference to places will 11 hour time differences, and I am constantly amazed how well it works. I am pretty sure 10 years ago this wasn't practical.
The followup list of ways bad APIs can be easy to misuse is worth reading as well: http://ozlabs.org/~rusty/index.cgi/tech/2008-04-01.html
I didn't compare with bup and can't say how much has it improved in four years. But yes, subjectively it's slow, mostly because of compression I guess. Not "exceptionally" slow though. With default settings it's a good tradeoff IMO.