skysight-inc/HackerNews huggingface dataset:
My quick and dirty answers are below. I'm thinking of moving jobs within the next year so I could use the practice. Can anyone do better?

> How do you treat colinearity?

Throw away the redundant part of the data

> How will you deal with unbalanced data where the ratio of negative and positive is huge?

This is very problem-dependent, but it's got the potential to wreak havoc with your learning algorithms. You might get seemingly good results by e.g. always predicting positive. Think carefully about your loss function.

> How will you decide whether a customer will buy a product today or not given the income of the customer, location where the customer lives, profession and gender? Define a machine learning algorithm for this.

This is a messy combination of continuous, categorical, and binary data. I'd encode the data in a vector [salary, x-y co-ords, one-hot encoding of profession, and binary indicator for gender]. Something like a random forest will probably get you most of the way there. Unusual professions could mess with the algorithm, so consider grouping by industry or averaging with a model that omits the profession data.

> Is it useful to apply PCA to your data before SVM classification?

Probably, but it could be data dependent. Semi-supervised learning often improves machine learning models, and it'll lower the dimensionality of your inputs, which will make training / hyperparameter search far more efficient.

> How do you compare a neural network that has one layer, one input and output to a logistic regression model?

Not entirely sure I understand the question, but a NN is basically just nested logistic regression, depending on the activation function.

> From a long sorted list and a short 4 element sorted list, which algorithm will you use to search the long sorted list for 4 elements.

To be honest, I'd use binary search and call it a day. I realise this isn't the answer you're looking for.

> How will inspect missing data and when are they important for your analysis?

You might try to impute the missing data from similar datapoints. Maybe use something like K nearest neighbours on the non-missing components to deduce the missing values. Got to be careful doing this though, since it could massively bias your analysis: consider using a special encoding for "missing data" too.

> Estimate the probability of a disease in a particular city given that the probability of the disease on a national level is low.

This is a tough one, since there are so many ways to answer it. I think I'd start by writing down a list of factors that might allow a high prevalence of the disease locally despite a low prevalence nationally. Weather? Local wildlife? Proximity to major transport hubs? Then I might suggest a simple model like naive Bayes.
Ask HN: Symfony Framework?
How is Symfony going these days. Is it still a big player in PHP Frameworks, or has Laravel completely taken over?
While it didn't start out this way, these days Ember apps lean heavily on components and all of the apps I work on use a pod structure that groups each component into a directory containing a component.js, a template.hbs, and a style.scss file. This maintains the spirit of "components should be self-contained" while not having to define html and css within javascript. Ember has React to thank for the idea, but I prefer Ember's implementation.
After playing Duolingo for almost 345 days straight and completing the course (english to french) I tried watching a french TV channel today and i couldn't even understand one single sentence.

I feel that while I have learnt a few basic words it's very difficult to get any fluency using such an app.

I guess the best way to learn a new language is to directly immerse yourself into the environment but that's not possible for me. So I was wondering what other ways are there to learn a new language and what worked for you..
3mb uplink? That’s... I’m sorry for you.

Maybe you can find another ISP, I’m in northern Germany and my ISP provides 100mbps down, 40mbps up via DSL.
I love JetBrains, but that number isn't that impressive. If you were to assume only half of that 500 were actual developers, that's still 13 developers per each product you listed. All of their products tend to use the same core technology as well.

Consider that Todd Howard's team that built Skyrim consisted of roughly 100 people.

Epic Games employed 250 people as of 2016. Most of those are not developers. Yet, their Unreal Engine 4 changelogs are mind blowing:

https://docs.unrealengine.com/latest/INT/Support/Builds/inde...
It's usually not a problem ... unless you live in a country where everyone has a gun.
> the loophole in the rules is that this only applies while someone is trying to tag the runner, so if the defense isn't trying to tag the runner, the runner can go wherever they want.

Runners typically leave the basepath when they are running fast and would have to slow down for the basepath's near-90 degree turns.
prude: a person who is or claims to be easily shocked by matters relating to sex or nudit

To think being around other naked people is creepy seems to fit the bill (not faulting you, but true).
I've had a few burnouts in my life.

The worst one... I was producing music and sound with a friend for a prime time TV show. We were supposed to start working on the music in February to air the show in October.

The project suffered from many production problems. The executive producer was the son of a billionaire who owns one of the biggest TV networks in Latin America and had never done this before. One of the directors was a junkie and a drunk. Money ran out. Actors were not showing up to the stage. It got ugly.

Eventually we started working on the music and FX in September, weeks before airing. We were 2 guys in charge of producing episodes of 45 minutes. Music, FX, dialog cutting, etc, at the rate of 2 episodes per week. I slept less than 20 hours per week and drank 5+ red bulls every day. I don't know how I didn't end up in a hospital.

Even worse, the mastering engineer destroyed our already bad job. We didn't know about that because we never had time to watch the show on TV and listen to the final audio that was being aired.

This went on for about 2 months until someone figured out the show was crap and they started cutting heads. We were fired, and they never payed us about 50% of the work.

I thought making music for an important TV show would be the best thing in my life, but it killed my musical soul.
Neat. My concern out of the gate is what would be the perf hit.

I assume I am switching from WAL-E to WAL-G for more perf. But WAL-E speaks GCS. If WAL-G needs an extra hop to do so, may lose some of the point of it..
At my work we're currently building out latest project against both React and Preact, and so far have not run into issues with the Preact version. Preact compat makes this easy: https://github.com/developit/preact-compat/blob/master/READM...
Haven't used VueJS but the obvious thing to me would be to do your data transformations before hitting the view code - separating view code from business logic.

So is this really a problem?
Why do you think scheme-to-C compilation is the future of programming?
Then by that principle you'd want to use !! since casting via function or constructor differs more between languages.
I don’t know if it’s something in recent events (I presume not) but it’s disappointing HN can’t have a conversation around popular culture topic without descending into calling part of the population “vapid” or whatever. Can’t we just accept people like different things. I like ruby. Maybe you don’t.
Other than Bitcoin Core most of the popular alt coins have come down in price during this rally so many traders are just exchanging one cryptocurrency for another.
Hailable fleets of self driving cars could get around the range and charging times, with current technology.

Charging times: fleet is driving most of the time. There's a home base that is also charging batteries simultaneously. When one starts to run low, they head home and swap out the battery. Even if the swap takes 10 or 15 minutes, that wouldn't affect utilization rates too much. Though, depending on the economics of utilization, having the home base just provide Tesla-style superchargers could also be fine.

Range: this is a bit trickier, but not insurmountable. You can have transfer stations every couple hundred miles. And perfectly timed transfers wouldn't be too hard. Though even there a self driving electric bus would have cut out the most expensive component (labor) and would have significantly more range than a regular electric car. I wonder if SF to LA would be doable on a single trip.
Ohio State researchers develop regenerative medicine breakthrough
There is also Kelsey's 1989 popl paper, which explains the idea of compilation as program transformation very clearly.

Kelsey and Hudak "Realistic Compilation by Program Transformation" POPL 1989
You keep mixing up what languages are currently used for and what they are suitable for.

There are very few projects for which you couldn't use Go, JVM and .NET languages equally well purely on the basis of language and runtime features (ignoring hiring, library availability and other cultural aspects)
What happens to your retina if you view an eclipse without protection
Check out https://reactiveui.net/about
Haha I guess those are languages too, rather this being hacker news it's what comes to mind first. That's great advice by the way. I too started with perl and pretty much followed the same route. I wish learning real languages was equally easy as googling stack overflow and learning it in the process!
Started a tech blog
> lolicon drawings are prohibited

> gory, bloody and violent pictures are allowed

They must have something wrong with their head.
Why not just go with C++? You'd still need UI code specific to Android, iOS and Qt, but you could keep your logic layer shared between all of them.
Yeah of course - that would have not been ideal. I know myself though (and know field of the niche products I work on) and I was just going to keep pushing myself as hard as possible until something like that happened.

I'm glad everything worked out and wish it happened a different way but if I didn't hit that burn out then I'm sure it would have ended up much worse down the line.

At the very least now I have a better idea how/when to tell future bosses to go fuck themselves :)
The point was probably that someone with a good knowledge of one language and little or know knowledge of another favors the one they already know.

There are plenty of people who are quite happy with what they have, and they see no reason to change. Then there are people (thankfully) who are never satisfied and who keep progress rolling.
> Even Google has decent data collection policies.

I’m not sure if you’re trying to intentionally ignore the issue here.

You are asking people to trust Google. If people trusted Google, they’d use Google Chrome in the first place. Your entire userbase is people that don’t trust Google, at all.

If you use Google proprietary software in Firefox, and tell people to just trust Google, you just entirely destroyed every value Firefox ever had, and your own job.

The whole purpose of Firefox is that I don’t have to trust Google. That I don’t even have any kind of interaction with Google. That I can exist without having to use Google’s technology.

If you use Google Analytics in Firefox’ Addon menu, or in Firefox Focus, and say "but Google doesn’t technically track people because we have a contract with them", then I can just as well use Chrome. If I trusted Google to keep their word, I’d use Chrome.

Chrome runs far faster, looks better, is easier usable, has better addon support, works with more websites because everyone only supports Chrome anymore, it actually supports 10 bit video, oh, and it even does hardware video decoding on Linux.

The entire reason anyone still uses Firefox is because they don’t trust Google. If you ask people to trust Google, you’re literally telling them to just use Google Chrome.

That is the elephant in the room that everyone at mozilla tries to ignore by putting Google Analytics into the addon menu of Firefox (and, as result, also in the Tor browser), and by importing a Google Analytics library into Firefox Focus. This destroys the one single value that Firefox has in the current world: It’s not Google.
not seeing the disagreement... what's at odds here?
I imagine the answer is "because it's not on Amazon", but I wonder why they didn't review the Nitrokey?

https://www.nitrokey.com/

Despite being a little fat and ugly, it seems like the best of the devices to me (I'll be ordering one soon).
Researchers Announce Wreckage from USS Indianapolis Located
This is off-topic but I'm learning python and just ordered your book earlier this morning (after reading through glowing reviews on amazon). I remember reading your bio and thought that it was pretty interesting that the author was a school teacher in Alaska!

Very serendipitous reading a comment from you here just now!

What are some other new/similar skills you've dabbled in over the years (if you don't mind me asking)?
You would think so, but apparently not. (Or perhaps more accurately, "maybe, but it would be politically inconvenient to investigate.") From the article:

> In May, after the revelations about the rin trading by CVR, the senators wrote to the heads of the S.E.C., the E.P.A., and the Commodities Futures Trading Commission, calling on them to investigate. But it could not have escaped the senators’ attention that two recipients of their letter—Jay Clayton and Scott Pruitt—had met with Icahn in the context of securing their jobs. The Senate Democrats cannot issue subpoenas to agencies unless they get the Republican majority to sign on—an unlikely outcome. In May, the C.F.T.C. replied to the senators’ letter: the agency would not be investigating Icahn or CVR, because rins, even though they are commodities, do not trade on a futures market, and the agency therefore had no jurisdiction to look into the matter. By this logic, the fifteen-billion-dollar market for renewable-fuel credits is not regulated by any government agency.
It's pretty much an issue of getting to a "stable" state, which means that model stabilizes to a certain value after all the actions by user and code. That can be a problem with 2way binding and sometimes it causes very subtle bugs, but it boils down to the infamous event storm. So that's why they gave up on 2way binding and made it more optional and deliberate
I loved playing soccer and tennis. Heroes for little kids are nice. I grew up with some Baltimore Oriole playing families in Baltimore.

But why would anyone care? we suffer fools dumping taxpayer dollars into ludicrous athletic programs for lesser colleges and mostly empty new stadium sky boxes for corporate lobbyists.

Passive viewing of sports and entertainment is dull. Attentions and dollars are better devoted to efficient live musical performance. So many of my fellow DC software engineers turned out to be talented instrumental musicians. I presume that early ambidextrous and symbolic training cultivating skilled code slinging applied mathematicians is not coincidental.

My consulting firm did some work in drug discovery. We were already tapped out on brute force discovery by the 1990's. Elective medicine seems indefensible feeding kids synthetic food and leaded water.

Encouraging kids to suffer supersized heroes on drugs beating dogs and women is unwise. My own mathlete kid watches ZERO TV And loves Aikido.

Has demographic crisis, boredom and research attentions wasted on militaries driven good people mad?
So if I have btc I don't necessarily have BCH unless I did something? I didn't know there was a time window.
>Costa Rica

I worked on site in San Jose for a time and also remotely in the US while my office was there. Internet is a real, real issue in a lot of Central American and other "nice" foreign places to visit that aren't fully developed. Became a real problem for me as a remote worker.
Plus the patent worries - that to me was the other big takeaway.
This is a pretty harrowing story for those that don't know. They were carrying atomic bomb secrets so they couldn't call for help. The crew floated around in water getting eaten by sharks. The old man in Jaws does a good job of telling the story. You should definitely research it if you are interested in that sort of thing.

https://en.wikipedia.org/wiki/USS_Indianapolis_(CA-35)

Bataan Death March, Rape of Nanking, most of WWI, all pretty gruesome and what humanity is capable of pretty quickly.
The first example of the article is completely flawed though. It's not a matter of creativity, it's that the adult knows that aren't vegetables making you an adult, so he might be thinking a better, more efficient approach (doing something that forces you to learn). Sure there are creative things kids can do, but the first one is an example of ignorance, not creativity.
The same thing applies, you have to buy/power GPUs and decide they are best utilised mining ethereum, mining another coin or powering your new startup.
This is common in the normal business world. Most 401k vests over a period of three years with a prorated clawback mechanism.
"If you haven't heard of the Indianapolis, that's the whole point" says the narrator. Like people haven't seen "Jaws" and remember the whole "like doll's eyes" speech from Quint.
So I think vaccines are pretty useful, but against the flu? Seems like an overkill to me. I don't sleep in a tent in the wilderness, I live a medium sized city in Europe and I'd wager there's more people who don't get any sort of seasonal shots than people who do. Everything works just fine.
Sorry to hear this.

The way I've found motivation is to do something small for myself. It doesn't matter if it's not a world changing idea, but it has to be for you and it has to be small so that you can finish it quickly.

This is only intended to start working the motivation muscle (the reward system) of your brain. It takes time, but that's how I've done it in the past.

You can do this.
Don't those put everyone on a different VLAN? At least that was the case when I was in uni.
Thank you for saying that. I needed to hear that more than I expected.
This is all completely hilarious. I mean think about what all of us are doing here. These coins only exist because we believe they exist and have value. I'm not naysaying -- it's legitimately funny. We're building rigs to "mine" internet coins like a slot machine that only costs electricity, and some of the world's smartest people have spent so much time thinking about it and building on it. And now we have Bitcoin Cash which is nipping at 25% the value of Bitcoin. That means anyone who bought at $300 just 3x'd their money. 3X! Do you know how hard it is for like almost anyone in the world to triple their money? I know BTC went up by like 130% in the last 60 days, but BCH is now theoretically a separate store of value. And you only 2x'd your money on that old crufty BTC. Cool kids got 3x on BCH.

The whole thing is just amazing and absurd and absurdly amazing.
I guess it's taste, but that's far less readable than the JSX with `.map` example to me. JSX is easier to use and read because you just use the JS constructs that you already know rather than a whole new DSL.
Beyond Cyberpunk
So if an anti-abortion doctor wants to go work at an abortion clinic and express his or her views in the workplace, then you feel he or she shouldn't be allowed to be fired for expressing those views? Surely that would impact the business.

What if a nazi wants to go work with a black rights group? Or a male sexist wants to work in a women's shelter?

Adding politics to the list of protected classes would be the end of protected classes.
> Hopefully there will be good ways to go bearish by the time Coinbase enables Bitcoin Cash.

You can short it on Bitfinex...
Fifty Years Later, Remembering Sci-Fi Pioneer Hugo Gernsback
Soyent is also sold in prepared bottles that have a shelf life of a year. There’s also 6 flavors to choose from: original, cacao, nectarine, cafe coffiest, cafe vanilla, and cafe chai.
As a German, I can assure you that our media are merely debating a different set of trivial things.
Your argument could use some work. You are basically saying that since we don't know everything, we should just behave as if we knew nothing.
> VMs are pets. Containers are cattle.

That's the funniest yet most accurate down-to-earth analogy I've heard so far that explains the mentality of Docker/containers. While funny, it's actually practical to have an analogy when explaining newcomers what Docker does to the mentality of server/service management. Thanks.
Proof of Stake is a mechanism by which people who own a lot of ethereum (notably the foundation and insiders) can get the mining rewards instead of the miners.

It also means locking up the supply of ethereum draining liquidity and thus pumping the price.

Technologically it is not good for security:
http://www.truthcoin.info/blog/pow-cheapest/

But as a pump and dump, it's an excellent thing to do.
In U.S. Public Statues of Confederate Soldiers Nearly Double Those of Women
There's quite a few papers on Reconciling Perspectives but behind Elsevier paywalls.
I’ve been using it for about 5 years now, and barely have 400. Half of these connections are people I never met trying to sell me something.
Stop trying to make Dart happen. It's not going to happen.
Exploring How and Why Trees ‘Talk’ to Each Other
If you read the relevant part of the Wikipedia article, that's not actually true:

> In the first official statement, the Navy said that distress calls "were keyed by radio operators and possibly were actually transmitted" but that "no evidence has been developed that any distress message from the ship was received by any ship, aircraft or shore station."[22] Declassified records later showed that three stations received the signals; however, none acted upon the call. One commander was drunk, another had ordered his men not to disturb him and a third thought it was a Japanese trap.[23]

It looks like nobody noticing the sinking until a plane saw the survivors floating in the water was not due to any secrecy requirements, but rather due to four people screwing up simultaneously (the fourth being Lieutenant Stuart Gibson, who didn't notify anyone when he noticed the ship was overdue).
The assumption that PoW is wasteful is one with an ideological basis that comes from a lack of understanding of the purpose PoW serves, and I suggest you read the Satoshi white paper.

Ethereum uses a lot of handwaving to justify what is ultimately a pump program to make insiders and large ETH holders richer.
The DNS server is the wrong place to make that decision.

If there is a set of choices and a decision to make, letting the client choose would be the best option.

I think I'd start with a client shuffling the list of results and asking for small fragments of the dataset from each. Based on the latency, bandwidth detected, and the size of the requested data it would then pick the most optimal set of servers. This also allows for fallback in case servers are unresponsive.
You don't always want to transform data, sometimes this is merely a UI concern...as in filtering, sorting, etc.
Here's the description for the man-page for git-clean:

> git-clean - Remove untracked files from the working tree

https://git-scm.com/docs/git-clean

Now I would call that description very precise and readable.

Here's the GUI's warning:

> Are you sure you wish to discard ALL changes? This is IRREVERSIBLE!

What changes? He didn't change anything. Did the GUI change something? Maybe it did. Maybe nothing will happen.

Foolish not to back-up before experimenting? Sure. But GUI's imply friendliness to the inexperienced. This seems like bad UX.