skysight-inc/HackerNews huggingface dataset:
> Your cases don't consider [1 start][2 start][2 end][1 end] or the opposite [...]

Your notation there, where instead of a pair of start/end pairs you have a list of tagged times, reminds me of a good approach if one is doing a generalized version of the problem: given a list of N appointments, find conflicts.

Make a list of tagged times, where a tagged time is a triplet (time, 1, name) if appointment named "name" starts at time "time", and is (time, -1, name) if appointment named "name" ends at "time".

Sort the tagged time list with time ascending as the primary sort key, and the start/stop tag ascending as the secondary key.

Now to find conflicts you simply scan through the tagged times list, keeping a running total of the start/end tag values. If the running total is greater than 0 when you begin to process a given entry, that entry has a conflict with an earlier appointment, and the running total is how many earlier appointments it conflicts with.

As described above, this lets you print a list of what appointments have conflicts with earlier appointments, but it doesn't give an easy way to say which earlier appointments conflict. If you want to do that, it is straightforward. Just add a set data structure, and during the scan of tagged times add "name" to the set when you encounter an appointment's start, and remove "name" when you encounter an appointment's end. When you find a conflict, the set contains the names of all of the earlier appointments the present appointment conflicts with.

The above assumed that two appointments do not conflict if the ending time of the first is the same as the starting time of the second. If that should be counted as a conflict, just change the sort so that the secondary key is sorted descending instead of ascending.
Smartphones should be banned in all meetings.
To me, it is incredible that the frameworks matter THAT much in the JS world. Once you know about Javascript, the web, and browsers... any good dev should be able to pickup such part of the tech stack (frameworks, libraries, ecc) quite quickly.

In other environments (e.g. Python, Java) nobody expects you to know everything about the specific libraries used in a company; once you know the language and a bit about the technologies (e.g. work on Linux, on a webapp or a desktop app), you're good, you'll pickup the details while working.

Forcing a technology change because it's not the "latest and greatest big, shiny thing"... I find this is a slightly disturbing trend in frontend development.
What change?

First, Apple shunned right click because it was difficult (in early computing era 80s and early 90s) for the common user to use -- in tests few used it, and even today, even in Windows land, most common folk can't master it.

Not because it "hid functionality". It was the inverse cause and effect actually: since Apple only had single-button mouse, they didn't want developers to make things only available in context menus, so they forced them to make them easily available for left button access. But the first consideration was how users interact with the mouse (and lack of right click skills in the average non computing savvy masses), not the hiding of functionality. They still offered control-click for right click and supported optional two button mice for advanced users since like forever.

Second, regarding hiding functionality Apple has since forever had all kinds of hidden options in menus, only available when you open the menu and press Option/Alt or click Option/Alt somewhere -- and other such cases of advanced (but hidden) features.

They never had an issue with having such hidden functionality, that you could use only once you knew it was there, meant for more advanced users.
If one can not afford to pay a living wage for these jobs, then these jobs should not have existed in the first place.
>Even the smartest and most technically capable people I know are confused by 3D Touch, almost all of whom eventually turned it off. What is it for?

Perhaps for me, who am not confused.
I'm actually recently started ML using a book, jupyter and Python. But i have a hard term translating the formula's to code and graphs. I know/understand what the formulas do, but the code to write seems hard. Perhaps because i don't know Python. Any advice on this?

Ps. Only 1 day since i installed Jupyter to recreate graphs and implement formulas

Ps2. Thought about implementing c# as a kernel in Jupter, but i think it's better to continue with Python.
I'm somewhat surprised they didn't have a group in their studies with some other irrelevant object (say, the person's wallet) on their desk. I know that having anything in my personal space disrupts my ability to think.
Didn't TI also had a dispute about the first microprocessor ? something internal they didn't really market or .. I forgot.

ps: I always loved the 99 design, especially with the side modules. Reminds me of old analog Meridian hifi modules
>That's correlation not causation;

Or, more accurately, "that's orthogonal".

But the reason the iPads have it without 3D touch is because they have much larger screen estate (and also because they lack 3D touch).
Show HN: 23andme – A JavaScript client for the 23andme API
First - If workers hours can be cut arbitrarily by employers in a response to an increased minimum wage, then FIX that. Even peoplel paid by the hour obviously need contracts that ensure them an amount of work - ideally a guaranteed full time (40/h week) and any less than that should be the choice of the employee.

I think increased minimum wages are a good thing but it seems like an attempt to cure the symptoms rather than the cause.
Working 9.4% less time for 6.6% less income seems like a good trade.

Consuming less is the way to sustainability. Consuming less can be aided by earning less.
I'm not an expert in this field, but an engineer of vimeo went into detail, why this approach did not work for them. [1]

Problem with consistent hashing:

However, consistent hashing comes with its own problem: uneven distribution of requests.
Because of its mathematical properties, consistent hashing only balances loads about as
well as choosing a random server for each request, when the distribution of requests is
equal. But if some content is much more popular than others (as usual for the internet),
it can be worse than that.

Problem with Power of 2 Load Balancing:

Why wasn’t there a way to say “use consistent hashing, but please don’t overload any
servers”? As early as August 2015, I had tried to come up with an algorithm based on
the power of two random choices that would do just that, but a bit of simulation said
that it didn’t work. Too many requests were sent to non-ideal servers to be worthwhile.

Instead, he used something called Consistent Hashing with Bounded Loads.

[1] https://medium.com/vimeo-engineering-blog/improving-load-bal...
What is steganography?
That's interesting. My knowledge of JS is a bit lacking, so I'm struggling to see the equivalence of the interfaces approach. E.g., is it possible to parametrize interfaces with actual values, such as @maxLength(20)? Also, how do you apply interfaces down to the field-level, where they are of primitive types, such as number or string?
>It was said million time here. But if you don't like trying new stuff, learn one stack and stick to it. Nobody is forcing you to try new stuff and then talk about js fatigue.

You'd be surprised -- since even single stacks change all the time. Try using React Router and keeping it stable.

Heck, even React changes paradigms (from mixins and factories, to ES6 classes and pure components, to fibers, etc). And from pure React, to coming up with Flux, 4-6 flux alternatives, the Redux dominating, etc.

And let's not get started with things like Angular to Angular 2 et al...
Are you still using Django, Rails, or Flask to provide API end points to your front end? If not, what do you use?
Could we modify the title to say Neural Network library? Not sure most people can guess what NN library means but maybe it's just me.
IBM building blockchain-based platform for big European banks
Consuming smarter can also go a long way, but that often requires earning more and is the route most people would like to take.

I'd rather have an organic steak than no steak.
Benefits of R or SAS – Career of Data Scientist
A video explaining kerberos which could be understood by 5yo https://vimeo.com/150247674
> Pests go nuts in indoor farming operations like this. You have to spray to stay on top of them.

Weird, I heard the opposite on an informal tour I took of a local hydroponic farm. They guy could have been full of shit, but he said that one of the biggest benefits of growing indoors was that you didn't have to use pesticides.
Technically no. A Googlewhack requires 2 dictionary words. Dave Gorman won't be visiting us.
Your.MD raises $10M to grow AI-driven health information service and marketplace
Last election, Santa Clara (county, IIRC) had a ballot proposition up to change their labor law so that a business which needed additional hours worked would be required to offer them first to existing employees (potentially putting them over thresholds for things like full-time employment status) before they could hire any additional employees to work those hours.

It's a game of whack-a-mole, but if you want to get to living wage + benefits for everyone, that's kind of how you have to go about it, since businesses will always hunt for loopholes.
Funny, but HN oldsters probably remember when functional programming wasn't at all tied to immutable data structures, and when Lisp and derivatives where considered enough functional programming, without every discussion of the topic requiring strictly requiring purity and immutability -- just first class functions, map, fold, and the like.
To what end? AWS and Azure both have offerings for students in the form of free credits, administered through a few distinct programs.
> The plague killed way more people than nukes ever did

Yeah, but without bacteria we wouldn't be where we are today. Whatever that means.

I would not identify rather specific technologies accelerating the reach of the dysfunctional into "technology in general", just like I wouldn't lump together the bacteria that caused the plague and those that live in my stomach.
I rather not listen to music at all, but to do it with Apple's headphones. Never been a fan of those.
U.S. Image Suffers as Publics Around World Question Leadership
It's hard to know if a patent holder or system architect actually did the work or just took credit for it. It's easy to check if someone can print out a binary tree. Certainly a "system thinker" who can't write the simplest code and assumes it's for "monkeys" to do it is worthless both as a programmer and in any higher-level capacity, whereas someone who can program might be able to do meaningful higher-level work.
I ended up trying apulse myself last evening and it seems to work fine, so crisis averted for now. I don't particularly enjoy having stuff much with LD_PRELOAD and friends but I suppose it's less effort.

Thing is... I know what you're saying, and I don't doubt it's probably just some trivial issue that I can solve with a two-hour trip to Google and my PA config files. However, not running PA works fine, and has been working fine for like 12 years on every computer I've owned. It's literally no effort at all. I could spend some time getting sound to work again, or do absolutely nothing at all and have it working fine, just as it's worked for the last six years on the machine in question.

The days of endlessly troubleshooting ALSA settings and OSS wrappers aren't really gone if we're troubleshooting PA settings and ALSA wrappers instead.
Duolingo introduced japanese language recently. Here you go, now you have a reason to use your phone.
The airlines are just pinging the ESTA system.
If they bring someone to the US without ESTA permission they get fined $5000.

The same thing happened two weeks ago to my boss, he had an ESTA permission issued until Nov 2018 but it got revoked without notice or reason and he only found out at the airport. He still doesn't know, even though he has an Official Passport (sometimes called Service Passport) and was on diplomatic mission to the UN climate conference in NY.
I assume that the question is meant to give insight into how they solve a problem that on the face of it looks straight forward?

It isn't though. First assume that all datetime stamps are in UTC, otherwise we have opened a can of worms that still trip experienced developers. Now draw a "timeline" and start enumerating the different cases. Then you can make a reasonable solution. But I would only expect this from experienced developers or people with a higher degree.
Panorama (YC S13) in Boston – Sr. Software Engineer – Make a Change in Education
>Subtext: "A hire can either be good or bad. It's never management's fault if it doesn't work out."

I agree that the article gets this wrong. It reminds me of Diego Forlan's time at Manchester United.

Diego Forlan is/was an Uruguayan striker at Independiente (Arg) where he scored 36 goals in 77 games (a very good rate). He then moved to Manchester United (Eng) in January of 2002 and was anticipated to take off. He made 18 appearances in the 2001-2002 season but failed to score. It took him until October to net his first Premier League goal.

He was loved by the fans as he has/had a great attitude and had some delightful near misses. He also famously scored twice against Liverpool[1]. But he continued to struggle at United, scoring only 17 goals in 63 appearances until he was sold to Villareal (Esp) in August of 2004. In his first season at Villareal he won the Pichichi Trophy (golden boot for La Liga) and the European Golden Boot. What a turnaround!

Forlan went on to have a terrific career and is considered one of the best Uruguayans to play modern football (soccer). His time at United was certainly a misstep but it wasn't because he was bad. And it wasn't because United were bad. It just didn't work. Sometimes it just doesn't work.

[1] https://www.youtube.com/watch?v=49Zym0gaZqA
I always leave the dongle on in-ear headphones, that way I never forget them. Sure, the problem still exists for listening in a new environment (a friend's car, as someone here gave as example), but not with your own headphones.

(mind you, I do not listen with in-ear headphones when I actually want to enjoy music, but they sure are a lot easier to bring with me than my "real headphones")

Edit, as a bonus, as I almost always have my in-ears with me, is that I most often also have access to the dongle while in new environments as well.
Pitbull Husky Mix is a combination of Pitbull and Husky dog breed. They both are pure breed. Both have cuteness, loyalty. Their features combined in Pitsky. They have Wheezing and breathing problems. If you want to keep them healthy up to prime age then you have to treat your dog to enough exercise and feed healthy diet.
Is there any plan for 64-bit integers?
But that's not what's being asked by OP. Their question is rather simple, and software engineer should be able to answer it on autopilot, without even engaging her brain. As a hiring manager I would end the interview right there and then after the failure to answer something like this.
The problem is not just device diversity, it's also about calibration. This is an issue that's been known for years now. Most Android phones are terribly calibrated and even within a single apparent model there can be component and calibration differences, especially between regions.
16/8 is not just skipping breakfast: it's also not eating anything (or drinking anything calorie rich) in the evening after dinner, which is a common practice for many people. It's also not eating anything between the skipped breakfast and lunch. In other words: it cuts down on snacking and alcohol.

That intermittent fasting has many of the same benefits of calorie restriction is obvious if you realize that people practicing intermittent fasting usually do not compensate the lost calories in other meals. So they effectively calorie restrict. Often that is even the main goal.

I have never seen a study that indicated 16/8 had effects
similar to 24/24

It's well known when the body goes into the fasted state: after at most 12 hours. So 16/8 gives you at least 4 hours in that state, vs. 12 hours for 24/24. In addition to that there is the calorie restriction. It would be surprising if 16/8 did not confer much of the same benefits as other forms of intermittent fasting.
I recognise that your tongue and cheek may be in close proximity here, but care to elaborate?
I've seen multiple klocks of code written in Java and C that are taking minutes to handle database operations, unable to process parallel network requests, and choking on errors. Watching new features get added is exciting in the same way it's ensorcelling to watch someone assemble a house of cards.

I'd love a tool that enabled me to spend my cognitive currency how I want to, but so far all I've found are tools that have disguised their expenses in new and interesting ways, like tranches of a collateralized debt obligation.
Not a big fan of Ruby or Python as the backend server given the choice, there's just a lot of languages that do it better (Elixir, Clojure, Go for example). Django and Rails have a lot of extra stuff you don't need.

But if you just want to get an api up quickly its really hard to beat Flask or even Bottle (not sexy but very simple) and I've never used it but Sinatra is supposed to be great, too. Microframeworks are great.
No, it usually isn't. See my upthread response to dpark.
Imagine a cottage with all 4 walls facing south. And there is a bear visiting it. What is the color of bear's fur?
Valid-name-list: make sure it pass your name validation
Would you mind explaining in a bit more detail what you mean here? I'm not quite sure where you're getting those numbers from.
The suit was dismissed last week, as the parties have settled.
Bug.n – Tiling Window Manager for Windows
The 'new' trend of 'Reading your way into success' is quite interesting. Not really sure if I have any more additional comments than so for now, but it is something to see how it will evolve.
Do you really propose because we failed to contain ~crime against humanity we should at least talk nicely about?
I can think of a few ways to rebalance things on the fly, but I would probably just hash some immutable values for the user, like Id and name, together with a nonce. If a server get's overloaded, slowly move people from it by changing their nonce.
Keynote: Linus Torvalds in Conversation with Dirk Hohndel, VP, VMware
Like a vending machine?
Solving Industry-Specific Problems by Combining AI and Subject Matter Expertise
Your work buddies have it wrong. You don't need to "try" new technology, you simply need to "learn" it. When something new pops up, see what people on HN are praising/hating. Hop on StackOverflow and see what the noobiest questions are for a taste of the installation and compatibility issues. Read some of the questions with multiple replies but no accepted answer to see how toxic or hepful the community around it is. If the new tech has an official forum/chat, hop in there and browse around for a bit. You'll pick up pretty quickly if a new stack, DB, or framework is worth using or not... you don't even need to touch it.

Scientists publish papers so other scientists don't have to run the same experiments over and over. We have HN, SO, and other developer communities for that purpose. Read, learn, watch, wait. "Try" at the point you think it sounds so perfect, you have to try it.
A grocery store is pre-last-mile. The consumer handles it themselves.

Or the store does some kind of delivery, but that's no easier or harder because of producer location.
Causations are not necessarily one way. Inflammation causes disease, disease causes obesity (unhealthy people tend to move less), obesity causes more inflammation. Start anywhere in the circle.

I don't believe there's actually any evidence for the
claim that inflammation is the root issue for most disease

I quote from a seven year old issue of Nature insight (http://www.nature.com/nature/supplements/insights/inflammati...):

Inflammation forms the basis of many physiological and
pathological processes. Much is known about how
inflammation is initiated, develops and resolves over the
short term. But less is known about the causes and
consequences of chronic inflammation, which underlies many
human diseases. Recent studies have extended our
understanding of chronic inflammation and the cross-talk
that occurs between inflammatory responses and other
physiological and pathological

This is common knowledge and has been for a long time.
You just made me realized that this sentiment of pending apocalypse is maybe exactly what drove humankind forward along the past.

It just look like the notion is always morphing from generations to generations : the flood, the plague, the apocalypse, the nuclear winter and now climat change.

From biblical hazards to scientific hazards, maybe humankind is finally like the high school student who only work great when under heavy pressure for it's exams.

And maybe just maybe this is how you can best reconcile science with religion because no matter your beliefs, this is a test for all of us... Are we making enough "good" around to deserve joy for us, our children and all they children after them?
SelfGOL
Not everyone is expecting a living wage though. Case in point - I have a family member who's making less than minimum wage (which alone would be barely sufficient to survive), but when she combines this with her husband's income, she's not living terribly bad. If her boss was forced to pay minimum wage and adhere to all other laws, he'd likely close the business and she (my family member) would end up being worse off. The reason why he'd close the business is that it's a shitty clothes shop where the increases employee costs would eat a lot of his (meager) profits.
Yea smartphones are the new books etc etc. Get over jt
I would suppose that Apple is well within its rights to order the withdrawal as the bank is trying to leverage technology of said company. Why would it be considered anti-competitive?
I love this concept and would definitely contribute if someone did build such a thing (not just this case but plenty of others, too).
> code splitting

That should only take a few lines in a Makefile.

JSTARGETS = foo.js bar.js

build-js: $(JSTARGETS)
foo.js: foo_main.js lib_a.js lib_b.js
cat $< > $@

bar.js: bar_main.js lib_a.js lib_x.js lib_y.js
cat $< > $@

With make's builtin topological sort, adding dependency information to control the order or other unusual build requirements isn't hard to add.

> output 6 images for all the sizes

IMAGES=( baz quux )
IMGSRC=(patsubst %,src/images/%.jpg,$(IMAGES))

IMGSML=(patsubst %,build/images/%-small.jpg,$(IMAGES))
build/images/%-small.jpg: src/images/%.jpg
convert $< -resize 25% $@

build-images: $(IMGSML)
> 9. Make decisions based on max skill, not average or min skill

This is a strict specialist search - here, too you should make a decision depending on your requirements and future outlook: Do you need a generalist that can branch out and specialise, or strictly a specialist that only does the thing you need right now?

(Also let's not argue which is better, specialist or generalist - deep down, each of us already knows and made the choice ;) )