skysight-inc/HackerNews huggingface dataset:
Great exercise! Here's my solution in Java, seems be about O(n):

class Ptr {
public Ptr next;
}

<T> List<List<T>> mergeIntersecting(List<List<T>> lists) {
Map<T, Ptr> lookup = new HashMap<>();
Map<Ptr, List<T>> output = new HashMap<>();
for (List<T> list : lists) {
Ptr ptr = new Ptr();
if (list.isEmpty()) {
output.put(ptr, new ArrayList<>());
}
for (T value : list) {
Ptr prev = lookup.get(value);
lookup.put(value, ptr);
while (prev != null && prev != ptr) {
Ptr tmp = prev.next;
prev.next = ptr;
prev = tmp;
}
}
}
for (Map.Entry<T, Ptr> entry : lookup.entrySet()) {
Ptr ptr = entry.getValue();
while (ptr.next != null) {
ptr = ptr.next;
}
if (!output.containsKey(ptr)) {
output.put(ptr, new ArrayList<>());
}
output.get(ptr).add(entry.getKey());
}
return new ArrayList<>(output.values());
}

If I give it random lists of integers, it takes around 1 microsecond per element of input. Really curious if there's any way to speed it up a lot.
It's not a religious question - the same thing would come up if you wanted to setup a large electric train set, or hold a dance class, or anything, and then refused to return the space to its original state.

There are no (few) formal rules, just the weight on inconvenience. By physical necessity only one person can work with a tool at once so as long as you share nobody minds being temporarily without, but if you do something like take all the tools at once you're inconveniencing everyone and people will complain.

If you box up all the tools and move them out of the room you're inconveniencing all others who'd work in that area. If there are less of you than them, or if you're doing things you could do in any other space, you'll rightly be asked to move because it inconveniences you less than the people trying to do hacky things with the tools.

And leaving the space setup in your way is rude unless you're coming right back. Nobody minds if you run to the washroom but if you go to 7-11 for snacks you'll come back to find your tools in use at another station. If you go home for the night, you'll get complained to when you come back in the morning.

> In other words: these meditation practices hack the mind.

Sure sure, but to they need the whole room to be left unusable by other hobbies to do so? Can't they hack the mind in the corner and clean up after themselves?

> The Bodhisattva ideal has this streak of radical inclusiveness too. There's something here that might benefit both groups.

In the monks refusing to cleanup? "Oh, I don't do my dishes because it radically includes others in my cycle of life, peace brother."

> How effective are they? Can you measure happiness? To what extent can technology help or hinder this? Wouldn't you want to know?

Oh god no, just do the bloody dishes and quit trying to dodge the issue.

This is all just being thrown out as some weird excuse for space-dominating actions and making the space less comfortable for everyone.

When the dishes are clean, we can talk.
> Uber is one of those rare ventures where punishing the company legitimately doesn't punish the company at all, but rather solely its employees, drivers, and riders

Boycotting companies that employ people directly or indirectly probably does punish these employees... but either way, it does punish the company. What is Uber with 0 users? nothing...

Maybe Uber's goal is to raise prices once they killed all competition.
Making pull requests that merge
OK, I can now see your post (I was getting only part of the page before).

Probably someone is targeting the journalist and is interested in posts that link to them rather than in your post per se. Does your post come up prominently in any search results?
"knowingly"
All of the government is funded by congress. But that doesn't change the fact that the defense agencies, the civil service, the intelligence agencies, etc. are all executive branch departments and are under the control of the president.

The way the government and civil service are supposed to work is that the country expresses its wishes via elections and the representatives elected set the policy and create laws. The civil service's purposes is to enact those policies and laws. What they don't get to do is set their own policy or create their own laws (yes, they do get to create some regulations but only within the scope outlined by congress.)
Whenever I hear 'the American people' I inwardly cringe.
I've had several meetings with a District Rep, who contacted his government rep at the utility for the area, who leaned into them. They said they would contact me; 3 times, and never did.
Wow, what an amazing article.

I wish I'd read this a decade ago.
Also:

• you've probably entirely emptied out everything in your intestines+colon by then;

• you've possibly starved your intestinal microbiome enough that it's stopped excreting any metabolic byproducts;

• you've probably starved any bacteria hanging out in your mouth/sinuses/tonsils/adenoids, and so breathing + drinking water + saliva has finally had a chance to actually get rid of those;

• any of the inflammatory compounds that get into your bloodstream from your food, have been removed, so your total tissue inflammation is lower than it ever is otherwise (like being on corticosteroids, sort of);

• since your liver/kidneys aren't dealing with a constant stream of input, they can 1. clean themselves for a change, and 2. clean "lower-priority" stuff out of your blood;

• and once they've done that, now they can just shut down and stop spending energy or consuming metabolites.

Presuming you're also drinking a normal amount of water,

• your blood pH and O2 sat. are likely maintained much more closely than they are when you eat food, which allows your organs and your immune system to function slightly more optimally.
No experience with Draftsight but going from SolidWorks -> Dassault's Catia -> Solidworks again was painful. Catia was (and I presume still is) an excellent product.
NPR needs a mobile friendly website sooner or later.
Both of your cases sound like shitty places to work.
Mark Cuban: Robots will ‘cause unemployment and we need to prepare for it’
I've got a new workstation that's currently running Ubuntu 16.04 LTS but will soon be replaced with Arch Linux. This is my primary "work" machine so I want it to be back "fully-operational" as quickly as possible.

I performed an installation of Arch Linux on a ThinkPad W530, carefully documenting every little thing I did (lots of minor "tweaks" to get ZFS just the way I want it, my Yubikeys working with LUKS at boot, etc.).

Once that was up and running, I started writing Ansible roles to configure the system exactly to my liking. It was very time consuming at first, as I made sure to do every little thing "the right way" and so on. Eventually I started taking shortcuts in the interest of time, as I can always go back later and clean things up.

Once I get everything I need taken care of by Ansible, I'll reinstall the laptop and let Ansible loose as one last "verification", then I'll do the same thing for my workstation. I should end up with two almost identical machines that are configured exactly how I want them. Changes I make later can be "replicated" to the other host simply by updating my repo and re-running my playbooks. I'm going to try my best to avoid any ad-hoc changes but we'll see how that goes...

I work from home 95% of the time and the laptop is mostly for when SHTF and I have to grab it and go (network engineer for an ISP, so that usually means "something bad has happened"). I'm confident that I won't end up out in the field somewhere without access to certain files I need or documentation or whatever and the environments being almost identical means I won't have to deal with those annoying little inconsistencies between machines at the worst possible time.

It's time-consuming, for sure, but I think the end result will be worth it.
If it is legal it not for Google to decide, but given government. They should not interfere. If government says that given site is illegal they can take it down for that particular government/country. (just like github is doing for the Russians - https://github.com/github/gov-takedowns)
Is it really infinite, without any repetition?
The Boston Globe ran a piece on him a while back: https://www.bostonglobe.com/ideas/2014/10/18/vote-all-you-wa...
Yes, I think I misunderstood the question.
I think this will require the user to login and have a Telegram account (which I didn't wanted to rely on), but I might be wrong.
That's how people find EVERYTHING. Which is why paying $10,000 for the dot com version of your company doesn't mean much, when you can get the .whatever for much less.
>This isn't some banana republic.

Murdering people you don't like.

Intelligence agencies closely linked to big businesses.

Fueling the economy by criminalizing normal people.

Militarized police force that kills innocent people regularly, for no reason.

>No one who cares about this nation would do that.

"I don't like you, therefore you can't be a patriot."
... and because men have more cells in their body and so more tickets for the cancer lottery.
1) Tanya is an oncologist
2) Cachexia != fasting. Not much you can do about cachexia, it is an end stage phenomenon where the tumor is hijacking essentially all incoming nutrition. Feed the patient, feed the goober.
3) reversing myeloid bias (I'm dubious about this, even though Gregor was not the kind of fast and loose player that would fudge counts) would, if true, enhance innate and adaptive responses (subject to a million caveats because Immunology Is Really Fucking Hard)

If patients consent to trials and enough evidence accumulates it will become the standard of care. Of course it's going to be tough to patent not eating so don't hold your breath.
Chris, after starting an ISP[1] in the UK in 2014 I certainly feel you're pain around the difficulties in starting an ISP! Myself and my co-founders have often looked at the comparable easy of growth software based startups and wondered what on earth we were doing, but we soldier on and our looking at our reliable, contracted MRR now is certainly starting to make up for it :)

Good luck, I look forward to keeping up with how things are going your side of the Atlantic.

[1] https://telcom.io/
Stop Calling a Story ‘Fake News‘
You're being downvoted because everything you say applies to frequentist statistics.
Thanks. I get that throat clearing, I probably should. I am otherwise very healthy and active so now that I think about it, may be some underlying cause.
>Because men receive worse medical treatment.

What about an alternative... Men are less likely to seek medical treatment?
+1 for Liquibase, too
Jerusalem Syndrome at the Met
Yeah it's really bizarre. It reads like the editor didn't think the original article was interesting enough, and had the author rewrite it with a sinister tone.
Coincidentally, antifolate drugs like methotrexate (which explicitly halt your cells' reproduction, usually for the sake of fighting cancer) also have similar symptoms.
Also: weeds are not always bad. Clover, dandelion, thistles..these are all considered weeds. But they are the earliest to bloom in spring and have nectar for bees to forage. After winter, when bees come out..starving and needing energy, these first sources of nectar is very important for the hive to survive and thrive. Weeds are important. They are highly resilient and they survive where they are not wanted. They have a purpose too..my other pet peeve with modern farming is the mass destruction and obesssion with weed elimination.
OK, so in his will, he somehow has it provided to some anonymous publisher :)
5 Tips to market businesses on Facebook
It might not stay that way like this.
A violin. 200 years old and it still worked.
I'm not sure it matters, but I had problems with what I thought were low bloodsugar, and later found out that it probably wasn't the case (https://en.wikipedia.org/wiki/Idiopathic_postprandial_syndro...). A lot of individuals have similar symptoms (feelings of weakness, shakiness, irritability that are cured by eating) but it isn't accompanied by lowered blood sugar.
That's talking about being liable for damages.

The only thing that's asserted under penalty of perjury is that you're authorized to act on behalf of a copyright holder. If you lie about everything except that one fact, the only thing that can happen to you is someone can try (and good luck with that...) to claim damages from you. The only way you face perjury charges is if you lie about being authorized to act for the copyright holder.
Vint Cerf airline routing error
Just to confirm, is this a smart-phone based spectrometer? (Why don't they use that term?)
I'm happy to let opinions stand as such, but in your support of Trump's mental competence you're denying reality.

Sarah Palin was McCain's pick for VP, and thus well on her way to "having navigated her way to the position of POTUS." And if you feel that the candidate who couldn't name a single newspaper she read was mentally competent to be POTUS then that's an opinion of yours I won't be able to share.
That is 10 days with zero calories?
Land Rover were part of British Leyland from 1968 to 1986: https://en.wikipedia.org/wiki/Land_Rover
Why post a bitly link? Real link:

https://www.susanjfowler.com/blog/2017/2/19/reflecting-on-on...
"When the dishes are clean, we can talk."

That's addressing a very different issue. May I assume you were there back then when this happened, and this was one of the issues that came up within the community?
It's interesting that this is always the american response whenever the broadband comparisons are made. I don't mean this in a negative way, but it's a very persistent argument and I wonder if there's some external factor that pushes it (telcos/media/other).

I think this is definitely a factor - but it's vastly overstated. The USA is more urbanised than many European countries at 80%, so there's definitely quick wins for the vast majority of the population.

The big difference I see is the way these services are regulated. In the UK for example, the physical infrastructure associated with the last mile is owned by a company that just manages this, with regulated prices linked to asset investment required. Services are then resold to Internet Service Providers who provide the IP services and compete on price and other factors.

The capital costs of providing the infrastructure are restrictive and the advantage of competition does not outweigh the cost of having multiple last-mile infra.

Note - I've used some simplifications on the ownership and extents of infraco/telco ownership, but the concept holds.
It's a mixed bag. Product management and project management are broader roles that let you see the bigger picture, and let you interact with more people at your company. If you're a PM or PJM at a smallish (100-300 person) company, you'll know everyone in the company within your first year. So it's a good career move if you're more outgoing/extroverted. It's also nice to not have to constantly be running the "hot technology" treadmill to stay relevant. I can pick and choose what languages/frameworks to learn that I think will be most valuable, instead of having to dabble in everything because "Framework X is outdated--Everyone's using Framework Y now!"

Downside is you generally have to let go of direct control of what code goes into the products and let your talented engineers do it. My first few months as a PM I still wanted to commit code and had to stop myself. There is also far less demand for PMs and PJMs at tech companies. Everyone's hiring developers by the truckload, but PM positions are few and far between. The whole "it's easy to change jobs in Silicon Valley" thing only really applies to developers. Pay is also not as good as engineering (currently).
Handmade Engraved Watch
Fowler described a pattern of ongoing behaviors by management and HR. That description forms the bulk of Fowler's narrative. The New York Times portrays Fowler's entire narrative via a single isolated incident. Conversely, it portrays tweets by the CEO and a board member as substantive and expansive responses of equal detail and devotes more column inches to corporate damage control PR than to Fowler's statement.

There is no plausibility analysis of the CEO's claim of unawareness given the recent replacement of the head of HR and its upgrade to a C-level position. Instead the New York Times analysis consists of drawing false parallels to the ambiguities of Pao's unrelated experiences.
Feminism told me it's because of male privilege.
Read entire article... multiple times. kind of arrogant of you to assume otherwise. no mention on the post what so ever about let's encrypt.
Supercomputing for the rest of us: 8 Nvidia K80s running MapD on 1.2B Taxi rides
Considering nuclear warfare has been there primary mission for 60+ years, I'm not impressed.
Liquid biopsies in the future of cancer diagnosis
"Meanwhile, Microsoft founder Bill Gates recommended last week that robots who took over human jobs should pay taxes."
sounds good to me, let's start with the combines and weaving looms as they took away a lot of jobs, not to mention all the stable hands put out of work from those horse less carriages.
What about both? Because it is both. Source: I am a man.
It is popular in the USA right now to silence rational, evidence based discussions. Now more than ever it is of vital importance that we stick to values of relying on open dialogue, reason, and facts. If these values only apply when they are convenient and comfortable for you then they aren't your values, but instead a rhetorical tool you abuse.

As a community of above-average intelligence and reason, I am disappointed to see hacker news commenters abuse their power to silence requests for evidence. If you approach things objectively you must always seek evidence. Given the libel risks, there must be some evidence. Perhaps it's not getting released at this stage to strengthen her legal position. In this case the evidence shared thus far is character-based. That doesn't obviate the need or prevent the ability to have a rational, logical discussion about evidence.

Please, go ahead and silence this post as well. Show me how badly you deserve your current political situation and fractured nation. If this community behaves this way, I don't have much hope for the world.

Our democracy and the world needs people committed to reason, evidence, and open dialogue. The choice is yours.
The courts, the laws, and the judicial system have decided what is and isn't legal. Should they filter results by country? Sure! and I'm not saying they shouldn't.

The government has made its decisions on this many times. They're largely following the patterns laid out in those lawsuits cases laws etc.

Can't imagine anyone disagreeing the sites they are banning don't distribute illegal content as a primary reason why people visit them in the first place.

I'd say thats a good (and strong) litmus test for this sort of thing.
Given the risks, her lawyer would advise her to avoid making the details of the case public. You're not Sherlock Holmes. Unless you have years of experience in law, you have no business scrutinizing evidence.
I had one glued to the brake fluid canister on a motorcycle for a few years :)
I'm trying to follow the events in the U.S.A, I'm not american, it feels like that the "deep state" or "establishment" or whatever you want to call it, is laying the groundwork to kick Donald Trump out of the white house. Good luck to you guys anyway.
This is awful. Was just reading how Rust is all shiny and special and much better than awful, naughty C++, and now I read how the print method is magic goo because "developers don't want to type & in front of ints". Back in my day, bah, grumble...
Is it really important to distinguish your web application with another font - looks like he spent $500 on Web fonts, which is a lot for a startup ?
I don't have the link but I can recommend "The Measurement Problem" by the World Science Festival on YouTube. Really good introduction to the subject and the discussion is among distinguished theoretical physicists -- not journalists.
So I am wondering about heroku: you say that it's quite expensive, but $25/mo doesn't seem that much. How many users can one $25/mo server actually power?
That's quite possible. It might be worthwhile pointing to the revision and file in git :-)

Appreciate the work you have done!
Sailing into a new decade of discussions
I'm very interested in fasting. I have been doing IF for 4 months and it works out great. Has anyone experience with prolonged fasting (3 days+) and auto immune diseases, specifically Alopecia?
>But by the same strict reading of the Constitution, it is also not treason for intelligence officers to leak information to the press.

It's not treasonous, but in most cases it is illegal. They are committing crimes and they should be punished for doing so.
There was a presentation at UKNOF34 from B4RN: https://youtu.be/C4Xm_-gt6mw?list=PLjzK5ZtLlc91r5YZVNiebhcq0...
The CEO should have access to the mentioned metrics.

+ average stay of an employee

+ percentage female employees over time

It's not so hard to assume something is wrong in HR or company culture if these figures show anomalies.

I think if Uber was more data minded about their own progress and efficiency, the board would have catched it even if they are in some kind of ivory tower.
>The interpretation of the probability is the same as in frequentist statistics

Not at all. Frequentists cannot define a probability on whether it will rain in a location on a given day. They will respond that such a probability is meaningless. Bayesians can, however, give a meaning to it.
I've struggled with sharpening pencils. I enjoy a good pencil - but I've never found a sharpener that works consistently. Any advice?
What happens when you go to their offices?
The funny thing is, if you go back and look at the time he's referring to, most barns were white (painted with whitewash), not red. It was much easier to make whitewash; only people with access to lots of iron oxides can make red paint. Red paint being the most common color for barns is a relatively recent phenomenon.
Take your example of 'django, celery & workers'

What would you currently do if your celery workers couldn't keep up and you needed to add additional machines to handle the load?
The issue is a responsive design that hides most of the content on the phone.
Why it sucks to be a Security Researcher
Most cancer therapies have focused on making people with cancer live longer, not on "curing" cancer†. A cancer that kills you after 30 years instead of 3 is still technically "a fatality caused by cancer", but add up two or three of those and you've saved one whole person-lifetime.

† The HPV vaccine has somewhat "cured" cervical cancer, but that was effectively an accident!
None of these acts will amount to treason. That's because treason is rather strictly defined: not just in terms of the actions required (start a war against the US or aid&give comfort to the enemy). It also requires the specific motivation of "adhering to the enemy".

Even the actions of Edward Snowden fall far short of this requirement. You could publish the IP address and password[0] for that Windows 95 box running the nuclear launch infrastructure without committing treason, as long as you can make a reasonable case that you did it for any other reason than to help a current "enemy" of the US. "Enemy" was probably meant as the opposing party in an actual war originally, but Russia/China/IS should probably do.

[0]: fe80::1%lo0 / пароль
What do you guys think of my Handmade Wooden Watches
Hey guys,

I've recently started a handmade wooden watch business and was wondering if any of you guys would like one.
Here is a link to one of them:
https://www.omichronouswatches.com/collections/frontpage/products/bamboo-watch-w-green-backgroundmen