skysight-inc/HackerNews huggingface dataset:
Ask HN: Why do you do this during tech interviews?
I've got a few popular open source projects (1000+ stars on GH), I've got a side business that does around 10K monthly, and at my last job, I supervised a few programmers. Those might not be the best measures of my technical capabilities, but they prove I'm able to get stuff done and build things people want.

I'm in a position where I don't need to work and have been self-employed for 3 years. However, I interview to work with startups because of the potential equity upside.

The last 2 technical interviews I've been on, the same thing has happened. I get some average dude who thinks he's awesome. I show him the work I've done, how many users my side projects have, and he proceeds to ask me stupid ass technical trivia that it's clear someone at my level would know. I answer it all well.

Then, said dude will schedule a second technical interview where they ask me to solve the most difficult programming problem they've researched in advance. I tell them I'd need to lookup how to solve it (like they did), and they proceed to school me with the solution to recapture this technical dominance they feel I took during the first interview. I get the job offer, but they tell the owner I'm junior to them, which is 100% untrue.

I probably sound arrogant, but I'm not. I'm smart enough to decode this shitty aspect of human nature for what it is.

I don't think interview tactics like this are productive or fair, so I want to know HN's thoughts on how to overcome them.
A variant of this problem yields further interesting possibilities: if you’re trying to remove control characters like CR and LF, but replacing them with whitespace would be acceptable. That way you can work on it in-place, without needing to copy memory or allocate or anything like that.
That isn't really a rule change. The lexicon just added a new preposition, 'because,' to the old list. It means almost the same thing as the old preposition 'because of.'

There's a difference between coining a new word and changing a grammar rule.
This looks pretty interesting. It makes me want to learn OCaml. :-P

I've been using Coffeescript in projects for about two years. I know people have raised issues with it vs ES6, but I still really like Coffeescript. I feels more natural with my Scala/Ruby background and it outputs into Javascript in ways that (mostly) make sense and are predictable.
Symantec issues more illegit HTTPS certificates
I don't think it's the job of foreign leaders to tell the American people that they elected an individual with certain character traits or history. There are many foreign leaders who are not as nice, benign as we would hope they would be.

The extreme action would be an intervention. This will only be done if 90% of the US population is suffering and asking for help. Even if there would be camps where people would be murdered, the world will not interfere.

An isolationist policy very likely allows the rest of the world to refocus. By making the US less dependent on the world, the world will become less dependent on the US. The ties between Europe and Asia will become stronger and I'm curious what that will bring.
Kotlin can do that too: https://kotlinlang.org/
Many laptops use an SPI touchpad device, so they don't need to go through the relatively expensive and complex USB stack.
I'm confused; mortgages have been securitized since 1968 and MBS have been common since the 80's. How did they cause a financial crisis 40 years later, and why did it take so long?
Uber employee here, and I can tell you that almost everyone I know loves working here.

I apologize for the behavior of the random douchebag employee you encountered, I would hope most of us wouldn't act like that.
Do you guys prefer a Master's or a PhD for research roles?
>if I'm going to invest in you, you better be shaved with ironed shirt and good suite. Simply, it's telling me you are serious about your business.

This is still not a justification for why we are wasting time and money on appearance. If it's just to show seriousness by cost, why not demand that everyone arrive brining a bowl of dollar bills?

When someone shows up in a suit to meeting here in the bay, I instantly assume that they spent so much time on appearance to distract me from the pile of bullshit they about to unveil.
Toolkits for the Mind
Thanks! I suppose the other one is plain ERB.

The advantage of ERB is that it's plain Ruby and there is no need to learn another language. For the same reason in the Python world I prefer web2py's use of Python than Django's custom language. It reminds me of the days of Strut's <c:choose> tags and all the others.

Interesting that Liquid is faster that ERB. All the surrounding HTML tags being the same, it means that the translated Liquid-to-Ruby code is faster than native Ruby code, which is strange. But maybe Liquid is faster at handling the HTML part of the page. I googled for some data but I couldn't find anything.

However I can understand why Shopify doesn't want to put full Ruby into the hands of customers. Some nasty guy could have used Shopify's CPUs to make some computations for free. Apparently GitHub pages also use Liquid, because of Jekyll and maybe for the same underlying reason.
You hit the issue in a roundabout way:

The very premise of the article 'how quickly can we remove whitespaces' is rooted in the intellectual foundations of CS. As a culture, we are are obsessive about 'performance'.

This is because back in the day, it's always been important - and even today 'under the hood' it's always important. And of course there are situations in which it's still important (complex algs, limitations of mobile devices).

But in reality - these things are never the issue.

The 'issue' is the pragmatic application of basic algorithms to do a number of basic things elegantly, which together form the foundation of a good user experience.

Yes - the issue of 'no spaces' in card numbers etc. is a clumsy thing, and it's laziness by developers.

Also - things like 'performance' are objectively measurable, you can get cool data for it etc..

A 'bad experience' is sometimes difficult to define.
F* looks pretty neat. I might try to learn that one.
No, you can't really reason properly about what lives on the stack. As the Go FAQ say, you can safely assume a variable will be allocated on the stack if you never take a reference of it, but that's not always clear as it seems. For instance, if you call a method on your variable, you can't immediately know by looking at the method whether the receiver is by-reference (pointer receiver) or by value. If you're using a pointer receiver, the variable's address may be taken, so the compiler has to perform escape analysis.

Once you take the address and escape analysis is performed, you've got no way to easily reason about what's on the stack vs. what's on the heap, without delving into the gory implementation details which may be changed in future versions.

Since Go isn't C++ and doesn't have a huge and complicated standard that guarantees compiler optimizations, you can't really reason about what's going on.

This is essentially the same situation as Java, although the Hotspot JVM's escape analysis is probably less 'basic'.
Seals discovered having sex with Penguins
> I don't think you understand.

No, I understand it perfectly

> You need an emulator to run the ROM. Nintendo has an emulator. They didn't steal

They're using an emulator which reads a certain format of ROM file, as demonstrated.

That would not be necessary if they wrote their own emulator
The 5 craziest hours in the White House
I deeply enjoy these sorts of distinctions in decorum, and the undercurrents of what it all must imply. It's all this subliminal signaling that tunes the pitch of an atmosphere to cultivate ideas.

Consider the duality of U.S. Marines, contrasting dress blues against combat BDU's. Or any military subculture for that matter.

Snappy dressers are trying to send a message about the money they burn on dry cleaning, and how early they get up to look sharp for their morning cup of coffee. How new their razor is, how orderly their coiffure seems. They have the time for this sort of thing, and they might have the time to waste on you ...if you're lucky.

And then there's nerd signaling. The next twelve hours to be spent scanning text, perched atop a swivel chair in comfortable clothes. Waking up possibly before before noon, because yesterday's dose of caffeine and inspiration carried through until 4:30 AM, when someone got their head bitten off in a forum by some cranky sleep-deprived rage about abuse of notation.

Meanwhile, in a court room, lives are irrevocably altered. People being hauled before a judge, to have their lives taken away from them, because they were born under a bad sign. There can't be any flippant hairstyles among the insiders of such a system. The whole point of showing up is to impress upon outsiders that a stone faced institution housed within a forrest of doric columns shall weigh and adjucate a decision. Clear voices in respectable, classic outfits must deliver verbal pronoucements with the reverb of a cavern older than the dawn of humankind. Janitors have mopped blood off these floors. This isn't some cluttered bedroom filled with the detritus of decades old junk.

Takes all kinds.
E2-E4
Now I understand what american bankers meant by saying "We won".
We reverse engineered 16k apps, here’s what we found
I can run BuckleScript under Windows/Bash. However as I understand it one needs things like merlin working to get a decent IDE experience.
Zoho is pretty good. Easy SPF and DKIM config guide + validation on their site. Really nice webmail interface if you want to use it. I don't know if you can do anything amazing with email service anymore. I think they basically don't break anything I'd normally expect.

If you're interested in moving some apps to them as well, they do provide other interesting services (I'm using invoicing and document storage)
I had this EXACT experience just this month. I went to have a screen replaced and I even explained (and apologized for the inconvenience) that I was very security focused. I set it up in advance so that would perform the repair in front of me, that the device wouldn't be plugged into any of their computers, and it wasn't to be taken out of sight.

Then, he straight up asked me for my password, "most customers write their password down so we can test that it works."

I feel a little bad because the look I must have given him was pretty absurd. I told him no, I'll just take the risk and test it myself.
'I'm Nobody'? Not a Chance, Emily Dickinson
I set up free email with custom domain on Zoho, yesterday.
You can set up to 25 free accounts IIRC.
I wouldn't use the word "missing". I believe several of the Rust language designers are very familiar with C++, and to say that something is missing implies it was an oversight or an accident, or maybe they'll get to it later. Instead, I believe they don't value some of the powerful features in C++ and ignored the fact that other people find those features very valuable.

Here's an example that has bitten me several times now. Try and implement the following C++14 code in Rust:

template<class T>
struct Something { T a, b; };

template<class S, class T>
auto operator *(const S& x, const Something<T>& y) {
return Something<decltype(S() * T())> {
x*y.a, x*y.b
};
}

There are ugly workarounds, and I'm certain they have their reasons, but it's so much simpler and cleaner in C++.
The optimization flags used should be good enough.

https://github.com/lemire/despacer/blob/master/Makefile

CFLAGS = -fPIC -std=c99 -O3 -march=native
Lyft is more expensive, which explains its better pay and its smaller ridership. I don't think this is sustainable because of what you've observed, which is that the smaller ridership pushes drivers away from the platform, making Lyft less appealing to even the people willing to pay (longer wait times, smaller chance of getting a carpool, etc).
How often does spam come encrypted with your public key anyways?
I dont believe he's referring ti fireign leaders as much as he's referring ti American bankers and business leaders.
Google co-founder Sergey Brin: I didn’t see AI coming
So this one investigation managed to neutralise all people at Deutsche Bank that were doing same things that most other banks are also doing - making highly risky semi legal investments and reaping profits. So now without those kind of people in Deutsche Bank the have no way of competing on global markets and will loose money while other bankers reap the benefits. Nicel done. Congrats to American bankers.
In the same time, https://arstechnica.co.uk/ redirects to http://.
Which was already available at that time, as you can see some commenters discussing it in that story.
It's icloud, not personal device storage. It has to be possible if you want recoverable content. If you don't like it, you can back up locally to itunes.
Someone file a compiler bug? 14x difference between the readable code and the optimized code is a lot. The first code is extremely straightforward, you shouldn't have deal with that SIMD mess manually.
In theory, practice is the same as theory. In practice, it isn't. I've seen only toy examples of some non-trivial program properties being encoded in type systems. It nowhere constituted proof of an entire program. Nobody actually does that. A lot can remain wrong in code which passes type checks. There is no "if it compiles, ship it". Not to mention that compilers can have bugs, and that hidden performance and resource problems can lie latent in high level languages.
This is the answer I was hoping I wouldn't get.

I understand that it runs on BEAM, much like I understand that IronPython runs on the CLR.

However, IronPython's performance is slower than C#'s performance due to the dynamic nature of the language, even with the special builtin support that MS built in.

What I was asking is whether or not Elixir's performance characteristics were significantly different from Erlangs.
what I'm suggesting is that grammar is a convenient fiction.

I don't think that's right either. It's not fiction, it's definitely something real.
you treated the phrase literally.
Is QUANTUM the Swedish one or is there a new one?
It is not that you don't trust your party, but that anyone with access to the servers or network between you can learn about who you are communicating with and when. Such metadata are often more useful to use against someone than the actual content.
5 Keys to Help You Thrive in 2017
It's all fine to say that we should first and foremost look at what someone does, not what they say, but the idea that the latter has absolutely no bearing on the former and that propaganda and rhetoric is universally and completely independent of the actions someone will undertake and that words have no consequences, well, that seems like exactly the kind of cutesy salon talk you criticize.
Right, I wasn't suggesting Uber was hopelessly behind the other major players, but that it seems unlikely they'll beat everyone else to market.

If they can't maintain their market share in a driverless car world, it's difficult to imagine how they can justify their current valuation.
If you really want secure email, having it hosted and owned by a U.S. company is a recipe for disaster. Since we know that the U.S. gov't will gladly issue gag orders and blackmail, why even bother? It's great that Lavabit is innovating but Protonmail is already ahead by simply not being in the U.S..
Show HN: CuteVirusCollection- a Collection of Cute but Deadly Viruses
اقامت تور مشهد در هتل هاترا و سراج ورود ۳ بهمن ۹۵
If it helps you, I find myself performing the role of the yellow rubber duck at work with reasonable regularity.

Person or inanimate bath-time toy, neither devalues the seriousness of a technical problem that needs solving - the other person explaining their problem helps _them_ build a better mental model of it. Normally I don't even need to talk. I just quack afterwards (for completeness).
What IDE do you use for Elixir? Thanks.
Silly question, but is there an x86 instruction set emulator written in JavaScript? Not even Linux, just something that takes x86 instructions into a "virtual CPU" and lets you run the assembly statements?
harvest automation is the most difficult and imo, the least urgent. there is a difference between robots assisting human labour and robots replacing human labour.

strawberry picking in japanese hydroponic farms comes closest to decent automation. the robotic gripper can pick the ripest strawberry just in time. this is mostly possible because ripe strawberries can be easily recognised because it completely turns colour. colour sensors are utilised here. i have heard of brix measuring also, but i cant imagine how it can be done.

strawberry picking is brutal in a regular farm and it is hideous for the soil. it has to be picked a tad unripe so it is ripe when it reaches the supermarket or wholesalers. that's why u-pick strawberry farms are so prevalent.

dutch milking robots are the best example of automation in agriculture..altho' its not technically 'agriculture', but rather animal husbandry..but..oh well.
numpy pandas scikit-learn beautiful soup libraries for geo, geometry, tags, parsers etc etc. Python has an enormous base of sophisticated third party libraries.
JSX is available in Reason out of the box: https://facebook.github.io/reason/#diving-deeper-jsx
>"It seems to me that any spec. that went into sufficient detail to allow this would be more or less writing the project in another language, meaning there's no actual benefit."

The benefit is in designing code at a higher level of abstraction, one that can be easily reasoned about. It is possible to design code at a high enough level where the specs and the code are one and the same, but most languages haven't got the type system sophistication of something like Idris or Haskell, which is a key component of pulling off this feat. The vast majority of code is written in languages that do not lend themselves to code as specification. Code contracts and other complimentary techniques (such as automated test generation) can go a long way to counteract those shortcomings.

Crypto functions are a special case. In this instance you won't save time by defining specifications as the requirements on algorithmic correctness are much higher than average. However, in this case the ideal would be formal verification, and that still requires a specification, it's just likely to be more verbose than you'll want for day to day code checking.

Lastly, consider the alternative if you don't use specifications. At this point the burden of performing code checks is with humans. With a large, fast-moving codebase it's unreasonable to expect any one individual to understand all the parts that constitute the whole at a sufficient level to stop new bugs creeping into code. It happens on every project, no known exceptions. With that in mind, why wouldn't you want to put in a framework to help catch bugs automatically? New bugs will still occur, but with a well specced program this should be at a vastly reduced rate.
I am trying to wrap my brain around this one. Do you mean I can run the VSCode under the bash subsystem and connect to an X server? Good to know this is workable.
> The demo scene these days feels somehow less satisfying. The demos definitely look better, but they can plug into such a vast ecosystem of system libraries that 64KB feels like cheating.

Some of these sceners are doing shadertoy.com type stuff that is to say, complex imagery and geometry calculated only from pixel shaders (no polygonal geometry / vertex shaders etc), ie. ever-cooler, faster, more-complex "faux (but realtime) ray-tracing" with a VERY limited set of operations, no real frameworks/libraries etc, everything fine-tuned down to the last float, endless neat tricks and approximations --- probably recaptures/continues quite a bit of the very same spirit!

Stuff like this https://www.shadertoy.com/view/4ttSWf WARNING might crash your browser or temporarily crawl it to a halt while open, save your work!

Sadly WebGL performance is STILL abysmal is newest browsers on even current-gen Quadro workstations.. what a sad joke. And here there's not even any particular per-frame data-to-GPU/VRAM transfers!
Google seems to have largely solved its biggest problem: spammy results. It's very hard to find sites in the top results for strong keywords with poor backlink profiles.

It has done this by a) Actually improving its spammy backlink detection, and b) Scary webmasters away from spammy SEO tactics through sudden updates like Panda/Penguin and straight up propaganda.

Once you solve the spam issue, Google's search results organically become better. Ergo, it doesn't need to spend that much time monitoring and improving them
actually,
oldWorkers = 650
and now
Workers = 60
Robots = 590

the 60 workers do not produce, only watching the robots.

the robots do produce.

oldProduction = 650 * 8000 * .75 = 3900000

newProduction = 590 * 21000 * .95 = 11770500

increase = (11770500 - 3900000) / 3900000 = 201.807%

i believe tfa should write 8000 per worker vs 21000 per robot since it's written that 60 workers do not produce, naturally that only means 0 per worker
A large number of said vendors for the UK market will be exhibiting at BETT next week. If you're looking to ask DP questions in bulk, it might be worth a visit.
Andrew Ng's Coursera course simply titled "Machine Learning" is good - it addresses the mathematics of fundamental algorithms and concepts while giving practical examples and applications: https://www.coursera.org/learn/machine-learning

Regarding books, there are many very high quality textbooks available (legitimately) for free online:

Introduction to Statistical Learning (James et al., 2014) http://www-bcf.usc.edu/~gareth/ISL/

the above book shares some authors with the denser and more in-depth/advanced

The Elements of Statistical Learning (Hastie et al., 2009) http://statweb.stanford.edu/~tibs/ElemStatLearn/

Information Theory: Inference & Learning Algorithms (MacKay, 2003) http://www.inference.phy.cam.ac.uk/itila/p0.html

Bayesian Reasoning & Machine Learning (Barber, 2012) http://web4.cs.ucl.ac.uk/staff/D.Barber/pmwiki/pmwiki.php?n=...

Deep Learning (Goodfellowet al., 2016) http://www.deeplearningbook.org/

Reinforcement Learning: An Introduction (Sutton & Barto, 1998) http://webdocs.cs.ualberta.ca/~sutton/book/ebook/the-book.ht...

^^ the above books are used on many graduate courses in machine learning and are varied in their approach and readability, but go deep into the fundamentals and theory of machine learning. Most contain primers on the relevant maths, too, so you can either use these to brush up on what you already know or as a starting point look for more relevant maths materials.

If you want more practical books/courses, more machine-learning focussed data science books can be helpful. For trying out what you've learned, Kaggle is great for providing data sets and problems.
Obama is the first president in history to spend every day of his presidency at war, and he was given the Nobel Peace Prize. We don't even know how many countries either Obama or Bush bombed (as the DoD refuses to disclose all their 'kinetic actions'), yet we should believe the new guy's words make him the worst?
Heat Rises: America Trump’d with Inauguration of HotLeaks.org
food is abundant. it can be free. and yet..not. farming isnt 'high profit' by any definition. it is however expensive because you cant throw seeds and eat food. labour is expensive. there is a terrible and tremendous cost to working the soil. and it's invisible too. it is bad for the environment but there is no way to quantify it. everytime you see a tractor rip the soil, that's carbon released into the atomosphere. it is highly dependent on fossil fuels. seeds have become proprietary. you are paying more for distribution and storage..sometimes triple the cost of the food itself. its complicated.