skysight-inc/HackerNews huggingface dataset:
You should not be using anything other than UUIDs or integers for file names. Maintain your own mapping in a database or file.

Using a network value or a value returned by an API is just asking for trouble.

If a user names a file that will be hidden behind a URL the same advice applies. If not then the user can use any sequence of bytes they want and you shouldn't care.
Uber Group’s Visit to Seoul Escort Bar Sparked HR Complaint
Alternatives outside the US / Euro centric HN perspective: Alibaba et al.
The location is Winnipeg Canada. I think I know what happened. There are hardly any jobs out there and even fewer good jobs. . .

In fact, Canada doesn't pay it's developers well at all, (I assume this lady was applying as a coder and not as delivery girl) it's so bad that many end up going South to get better jobs.
I know one computer science major in Toronto who quit the field altogether and is working in a warehouse because the 16 dollars an hour he makes there is more than he could make coding. And Toronto is one of the better cities for tech in Canada.
Those is Silocon Valley are lucky enough to be outraged but in Canada this is the norm unfortunately, especially in Winnipeg which is one of our poorer cities with high unemployment.
I agree with the non zero-sum point, however...

China is facing a demographic catastrophe.

Strongly disagree. The view on the ground in China is great. Almost everyone has their material needs exceeded, many sectors of infrastructure are second to none, education and internationalization of tastes is increasing, and the society is generally very safe. E-vehicles and e-commerce are everywhere. Rent a bicycle for nothing. Visit the tropics, Himalayas, desert or snow with a cheap domestic flight. Cuisine is arguably the most extensive in the world. Mobile payments are ubiquitous. Internet is cheap to free and literally you can get a signal anywhere. Yes, of course like anywhere it's not perfect, but it's really a far cry from America's stagnant and elitist education system, crumbling or monopolistically privatized infrastructure (eg. transport, medicine), and widespread opiate, gun and race problems.

(FYI: minimum wage in most Chinese cities for an unskilled foreigner with any kind of get up and go is 200CNY/hr (~USD$28/hr) these days... a great many western workers are on less than half of that, and would do very well to migrate.)

so many fundamentals count in Americas favor

I would like to hear what these are supposed to be. Having elite universities doesn't count if you rent them out to all comers, default English doesn't count if more people speak it overseas, VC doesn't count if it's easier to get elsewhere, and land isn't needed if your population is already happy to urbanize with extreme density. China owns the world's supply chain and manufacturing, has a highly efficient centralized form of government that can get huge or long term projects done without recourse to political terms, and leads the world in output and deployment scale of renewable energy systems (hydro, solar), modern transport infrastructure, robotics, internet, mobile payment and e-vehicles. Those are some pretty big fundamentals, too. From my perspective all the US really has are systemic global financial and communications surveillance capabilities and a big fat army. Their diplomatic trajectory is nothing to write home about, either.
Django Unchained was meant to make the viewer enjoy violence against certain people. To do this, they needed to make those people as awful and unsympathetic as possible.
Facebook Messenger used to be an egregious offender here and chewed through battery life. I uninstalled it two years ago and that helped my phone's battery life noticeably.
Side note: the 'persistent stare' tech mentioned in the article used to go under the evocative aegis: 'gorgon stare'.
I wish people wouldn't consider Steve Jobs as an authority. He was a great salesman, but his "reality distortion field" could as well be called "creative lying". He was so good at bending the truth that he even managed to convince himself that "alternative medicine" would offer effective cancer treatment, which got him killed.
Eventually you need to get rid of old things for whatever reason and embrace new things, Apple just does this a lot faster than others, and it's definitely a good thing.
The VTOL version of the F-35 is insanely complicated.[1] Here's a Harrier doing the same thing.[2] VTOL runs the cost way up, and VTOL with stealth is even more expensive. (Can't do both at the same time, not with all that stuff sticking out.)

The justification, though, is not unreasonable. If you want to project air power, and don't have VTOL, you need a full sized air base or carrier within range. With VTOL, you can operate from a smaller firebase or a small carrier.

The US's small carriers are the USMC's amphibious assault ships, the Wasp and America classes. The US currently has 9 of these, and is building more of the America class. Each is a self contained package of military power - about 1700 Marines and their gear, helicopters, VTOL fighters, Osprey VTOLs, landing craft, and missiles. Everything you need for a small war. That's where the F-35 was supposed to be useful.

[1] https://www.youtube.com/watch?v=zW28Mb1YvwY
[2] https://www.youtube.com/watch?v=2pweY5y5eRI
The same phrase "survival of the fittest", which was so much misinterpreted, could be fixed by adding one extra word: group, family, clan, team, company or country. "Survival of the fittest family" or "fittest group" implies both competition and cooperation to an equal measure. But I love the shock value in "Survival of the friendliest". Good title, and good to drive this point again and again through the mind of the public.
That's totally wild. I hadn't heard about this before.
Except we still do have many different standards for the phone system. As an example the main codecs used for encoding voice today are μ-law (North America), A-law (Europe), GSM (2G/3G), AMR (3G/4G), iLBC (VoIP), G.729 (VoIP).

That is just for voice, now imagine you are a phone company and want to send a call to another phone company. There must be so many different things you need to cooperate on to make it happen - billing, switching, physical connections, numbering, codecs, etc. Yes the actual protocols may be standardised, but the main part is cooperation.

It's not standards we need, it's companies that are willing to cooperate and work together. None of the big tech companies want to do that now though. Everyone wants their own walled garden so they can say they have more users that X competitor.

(I'd argue that XMPP is good enough, or with a few extensions could be made good enough, for a company who really wants to push open IM)
No different, if you conflate taxes with slavery. That's preposterous though, for obvious reasons. If you don't like paying taxes, you can always quit your job: no income, no taxes. If you're a slave, on the other hand, quitting means torture and/or death.

So yeah, the desire to have others provide for your needs through tax dollars is worlds away from the desire to own slaves.
If the capitalist does not offer compensation at a profit, then there is no reason for the capital. If you take it by force, he no longer has any reason to operate it.

Why should the capitalist suffer for free, and the worker destroy the capitalist's work for no gain?
I'm glad to hear that there are some mature options out there.
> See, before opioid prohibition, deaths from opioid use were quite rare. You ever heard a pothead drone on about "it's nearly impossible to overdose from smoking marijuana"? The s

I'm not an expert. Can you please link to studies to verify this?

We're talking about overdosing and I don't think marijuana falls into that category.
To be clear, I don't eschew JavaScript. Of course you need that for applications. JS stuff goes into a Mako template where I import and call the JS when I need it.

This has the added benefit of extremely small page sizes. Nothing gets loaded globally. Every page has only and exactly what it needs to function properly.

I'm just wondering if I am that much of a dinosaur and I need to invest the time into learning some of these frameworks to be competitive on the market in the future.

What I do works well. It's fast, it's scalable, and I'm very fast at developing with that toolchain. The code is clean, clear, well-organized, and modular. Anyone who knows Python, SQL(Alchemy), and JavaScript can pick it up and work with it.

I can work on any different part of an application without worrying about if it might break something elsewhere. I feel like the patterns I've gotten comfortable with are kind of a sweet spot between micro-services and monolithic. My apps are technically monoliths, but the various modules are clearly isolated.

I'm in my late 30s now, and I want to keep up and not turn into one of those old guys who refuses to stay current. I'm genuinely curious what the value proposition is, outside of learning a new paradigm for its own sake. There's always value in learning new ways to solve problems you already have a good handle on.

But outside of those things, is there some secret magic I'm missing out on?
> dog eat dog

Or "law of the jungle". https://en.wikipedia.org/wiki/Law_of_the_jungle
It seems like the real problem causing the overdoses is that fentanyl and carfentinal are getting mixed into the heroin. At the minimum, the US should provide a program where heroin addicts can get heroin from government clinics, which is what they offer in the Netherlands[1] where addicts can get heroin three times a day and apparently rarely overdose presumably because the heroin is pure. But at this point, I'd rather see most drugs legalized and the tax money poured into addiction recovery programs, government clinics for supervised drug use, and drug use prevention.

[1] https://news.vice.com/article/only-in-the-netherlands-do-add...
It's good but wrong because it's based on a false assumption about how the read operation works. I explained it in the comments.
The idea that the responsibilities of a salaried role are typically well-defined, largely fixed, and presented upfront yet compensation is obfuscated, negotiatiable, and settled virtually last is just maddeningly absurd.

Just thinking about the psychology of it... the manipulative nature of it all: haggling for your income; the hidden inequality between coworkers of roughly equivalent skillsets and effectiveness; the idea that you & your potential employer are going to start your professional relationship in such a way.

Sadly, it's far too similar an experience to traditional (American) car buying, another demoralizing dinosaur of a process whose extinction is long overdue.
Ask HN: Is it economically possible to clone Google Search on the public cloud?
By this I mean, is it possible to build an economically independent ( revenues outweigh costs ) clone of Google Search, replicating basic functionality with a clone of PageRank and keyword indexing for relevance, a clone of AdWords for revenue , atop a public cloud like GCP or AWS ( or some other also public cloud option )?

For this question to focus on the economic feasibility alone, assume that such a clone: 1) could achieve some semblance of providing relevant search results without infringing any proprietary tech, and 2) either would have sufficient adoption that keywords would be in demand and generate revenue ( but don't assume there's necessarily enough to cover costs, since that is the point we're trying to answer ), or that there would be some other way of funding ( subscription, PaYG ), that would generate revenue, and 3) that there would be enough of a market for this ( just assume that, even tho it seems unlikely that a less-amazing clone would have any market against a monopoly search provider ).
My family's $5k deductible plan was $400/month. Then Obamacare came along. $1,100 a month first year, then second year goes to $1,400 so I cancel and get short term coverage for $200/month, same deductible! But now I owe over $1k more in taxes.

This year cheapest plan in my state is $1,800 a month. Obamacare is a disaster.
When I was preparing for my oral exam, I was given something like 1,200 pages of material to read by my committee. I read it.

During the exam, in addition to the expected technical questions, I was asked things like, "What lab did this work come out of? Who runs that lab?"

In other words, "Do you understand the political and funding environment in which you're going to be operating if you continue working in this field?" Fortunately, I had been to a few conferences and met some of these people (also not an accident on the part of my professors), so I knew the answers to these questions. But the lesson stuck.
I should have clarified -- I meant mostly for things like OLTP databases.

I see why Google built Megastore, Spanner, etc. And sure, ZooKeeper or etcd makes sense for putting small amounts of configuration data.

But most of us aren't Google, and synchronously replicating the entire OLTP database, 3 or 5 nodes times the number of shards, seems kind of absurdly expensive for most people.
440 awesome icons
I guess I'm looking for a simple yes or no in terms of yes, the costs of the public cloud would not preclude such a service from being ( even marginally ) profitable. Or no, the public cloud is priced in such a way that a business alike to Google Search could never exist atop it without heavy losses.

But I realize the reality may not be so simple. Hopefully I've constrained this enough with assumptions that the question is answerable and clear. And I don't know enough about the economics or infrastructure, or usage, to be able to even begin to calculate this reasonably myself, nor to have a feel for it. My feeling is "it would be close." which could be totally off the mark.

I guess my intention from asking this question is to expand my intuition for the "lay of the land" of cloud computing economics in 2017, so that I can better judge the type of and feasibility of businesses based on this model.

Finally, I'm not sure if this is the best place to ask and apologize if I've annoyed anyone here by asking such a ( possibly construed as ) bold question. It's not a super important question, it just popped into my head. I checked out reddit but didn't see any cloud forums that were active. And this place is probably better than asking on SE, because the answers, even if a bit irate or confrontational sometimes, are probably more diverse and have a chance of being more informed and in depth, in my experience.
> Is there any indication whether backdoors are added to sophisticated weapons systems like this sold to other countries?

Yes, and they've been inadvertently revealed at least once. On mobile so I can't find a source atm but it was concerning some french equipment.

It's not as big an issue as you might imagine, largely because nations tend to only sell military equipment to other nations that have aligned interests.
What do you presume Tarantino's motive would be for such a thing?
Very little. The Swiss discovered that they actually saved nearly enough money to cover the cost of the entire program by opening heroin clinics, as they dramatically reduced the amount of crime committed by heroin users (as they no longer needed to obtain large amounts of money to pay for their supply) [0]

>*Cost Issues: 48 dollars/day: Patient costs are covered by national health insurance agency. Patients pay 700 dollars/year for the compulsory insurance. Note: The Swiss save about 38 dollars per day per patient mostly in lowered costs for court and police time, due to less crime committed by the patients.

[0] http://www.citizensopposingprohibition.org/resources/swiss-h...
Why? This came across as quite reasonable.
> What I found is that advocates for these new technologies tended to confuse the productivity benefits of working on a small code base (small N essential complexity due to fewer feature interactions and small N cost for features that scale with size of codebase) with the benefits of the new technology itself — efforts using a new technology inherently start small so the benefits get conflated.

I see this a lot. It's exciting to work on shiny new $x app, and productive, but it's most likely productive because it's new, not because it's $x. The old code base has accumulated complexity that the new one doesn't have.
The problem isn't opiates. It's larger doses than necessary combined with synthetic drugs that are much more powerful than the natural poppy alkaloids.

Quick rundown: The poppy plant has two main alkaloids that make up the majority of its analgesic activity: codeine and morphine. Codeine works following being broken down by the liver into morphine. It's essentially the same drug but requires larger doses due to the inefficient pathway.

I have had a chronic pain condition for many years now and take 30mg morphine sulfate tablets twice daily. Instant release taken often works far better than extended release drugs because the total dose is much less, which keeps tolerance levels low, thereby lower dependence.

Oxycodone is 1.5 to 2x as strong as morphine. [1]

Oxymorphone is 7-8x times as strong as morphine. [1]

Fentanyl is 50-100x times as strong as morphine. [1]

Of course this is referring to gram for gram, and these substances do have different molecular weights. But even so, the potency has much to do with bonding length between the drug and the body's receptors. Bonding length is correlated with bonding strength, also correlated with addictive qualities.

For low to moderate pain, Tramadol[2] is the best analgestic.
For moderate to severe pain, Tapentadol[3] (Nucynta) is by far, the most therapeutic and least addictive. I used to take it until I lost my insurance. Unfortunately it costs $1500 a bottle. It's a newer drug. The same company Depomed that created Tramadol kept going and made a better and stronger version. Having tried gabapentin, muscle relaxers, all kinds of stuff, pretty much everything out there, I will say, Tapentadol is really an amazing drug. It's unfortunate its so expensive and not covered by many insurances though.

So in summary, if a person has the insurance, the doctor should prescribe them Tapentadol or Tramadol. As a last resort, prescribe Codeine and/or Morphine. Not these crazy synthetics with ridiculous addiction profiles and bonding strengths.

Hope this helps anyone who ever has a pain condition.

[1] https://en.wikipedia.org/wiki/Equianalgesic

[2] https://en.wikipedia.org/wiki/Tramadol

[3] https://en.wikipedia.org/wiki/Tapentadol
Gtalk was a great product like Google Reader.

Google is just proving how unreliable it is as a company. I have ditched by Gmail account before they ditch me.

Same with Chrome too.
This seems specific to Microsoft R or can I install the MicrosoftML package in regular R and/or use it under Linux? I really wonder what MS's investment in R means for the future of R.
Well, it's a Tarantino movie! That's what he does!

But it doesn't mean that slavery isn't evil.
Spinach leaves can carry blood to grow human tissues
LRB is not a credible source of journalism. Remember the Craig Wright fiasco?
The email the interviewee sent was very unprofessional.

Even without the passive aggressive 'Benefits will be included, right?' it was very unprofessional.

To me it would be a big warning flag.

But the reply was also a warning sign, you never call out why you reject the person on specifics it never benefits you.

If you want to be nice do it verbally and be broad.

And the company turn out right, as the interviewee went out and burned the company on twitter because they didn't get the job.

And I'd point out, since the article is making this a women's issue, she was rejected by a women.
Good riddance indeed! A big thank you from me and my blood pressure to the developers who finally pushed through the removal of that godforsaken nightmare of a human interface feature :)
Ticket Servers: Distributed Unique Primary Keys on the Cheap (2010)
I don't know TLA+ yet but I'll assist anybody with an explanation on how Gryadka works.
The proof is so trivial that it is pretty much given once you discover the theorem.
> The root of the problem is doctor prescribed opiates.

This is an extremely simplistic view that elides...most of what is going on, such as:

1) How poisoning/overdose deaths are reported by medical examiners -- something that varies a lot by region and over time

2) The increased introduction of fentanyl (and fent analogues) into the heroin supply

3) It doesn't factor crackdowns on pill mills and crackdowns (both from DEA and also self-directed) on opioids prescribing in general

Opioid use is not inherently dangerous. Indeed, long-term use of pharmaceutical-grade opioids is remarkably safe (especially compared to other painkillers or other drugs such as alcohol) -- opioids don't tend to cause organ damage.

There are several actual circumstances where opioid use gets dangerous to life and they are:

1) Dosage/concentration uncertainty

2) Contamination of a lower strength opioid (say, morphine or heroin) with a much higher strength one (fentanyl or fentanyl analogues)

3) Poly-drug use: combining opioids with benzos or alcohol to exploit synergistic effects

When it comes to pharmaceutical-grade opioids, the doses are known and measured and there's no risk of contamination with unknown amounts of fentanyl analogues. Indeed, the mechanisms of drug prohibition actually incentivize the use of extremely high potency/volume opioids such as fentanyl.

The third issue, poly-drug use, also is a consequence of prohibition -- the prices of opioids in the black market are artificially inflated (if you don't have the requisite permission slip for the drugs, you need to invest in all sorts of countermeasures to avoid being put in a cage and your product seized), so users need to economize, and this sadly happens by combining benzos with opioids, which can lead to fatal respiratory depression. This is also a symptom of prohibition and is not inherent to opioid use. Indeed, an overwhelming majority of so-called "opioid overdoses" involve other drugs (and most often it's either alcohol or a benzodiazepine).

The DEA (and other flavours of doorkickers) targeting doctors and deputising them as law-enforcement agents who have to decide between the evil undeserving addicts and the deserving patients in pain is what has created this affair.

Blame the prohibitionists, as this is a problem of their own making -- the crackdowns on "pill mills" and "overprescribing doctors" is what denies people a safe and legal source of pharmaceutical-grade opioids and forces them onto the black market of illegal, overpriced, and fentanyl-contaminated opioids (which leads, of course, to the deaths that are used to justify even more crackdowns).
> If you're really talking about bags (unordered sets), that would certainly make for an interesting filesystem since filename.txt, filemane.txt, and maletent.fix would all be the same...

I was thinking the same thing! Although if we're being pedantic, I think "bag" is an "unordered multiset". If it were just a plain unordered set, then "filename.txt" would also be the same as "filenam.txt".
The Soviet example is the state making lives on farms significantly worse, rather than city life better. Like, they're notorious for forcibly reorganizing peasant life in a way that made them easier to control and tax and incidentally more susceptible to famine.

Plus, not a hunter-gatherer example. Better would be interactions in America between settlers and natives. Kidnapped settlers would refuse later repatriation, or escape from being "rescued" back to the community that abducted them.
Wouldn't

xs.map((x int) int => x*x)

be simple desugaring without messing with the type system?
Me too. And I just got started.
They would make money by using open source tools to implement specific projects for companies and end users. The fact that Node and Mongo exist is of no use, if you don't know how they work together. It takes work and experience to use the open source tools at their fullest.