skysight-inc/HackerNews huggingface dataset:
There's nothing MORALLY wrong with defeating the system.

But it's LEGALLY wrong. That is what will get you into trouble.

In certain countries, it's not morally wrong to criticize The Dear Leader. But it is legally wrong and could get you beat to a bloody pulp and thrown in prison. Other countries have not yet implemented such policies.

Moral and Legal are different things.
Because the overall context here is China, the potential for war with China, and the devastation that would result. I want to be clear that our defenses would not prevent that.
Docker in Production: A History of Failure (2016)
Scribblenauts Unlimited Free Installation iOS iPhone iPad| No Jailbreak
Doesn't DMCA have specific exemptions around caching.
> Cities near water bodies like SFO, NYC, Miami or even Chicago can benefit from over water flying cars"

I don't agree. While there may be less impediments to putting that traffic over the waterways the challenges are still significant.

Just using NYC as an example:

A high density of bridges.

A High volume of existing commercial and passenger boat traffic.

A number of busy heliports are located along the waterways.

And although the rivers could help you navigate you up or downtown they provide no efficient means of going across town further limiting this as a viable option.
Genocide is an extreme condition and a poor reason to extend gun ownership.

There is a very long list of countries that are doing better than fine and severely restricting gun ownership.
Long before it becomes the case that you need guns to defend your space, you may want to take a long hard look at the politics of your community / country.
Please don't break the HN guidelines in your own right, even if you're right and the other person is wrong.
No. It's sad but I often have to teach younger JS and Python devs about Linux and Bash. And one aspect of Perl is as a better Bash.

I honestly have no idea why Python got so popular in that space. Those Python guys are always amazed when I show them a much more elegant Perl solution to their problem.
The docs make sense once you get used to them and understand what they're telling you, but it does take some getting used to. The general output of rustdoc could also be improved in my opinion.

A bit more summary of available methods/trait impls somewhere would be nice.

I'd appreciate a three scrollable pane setup, first pane similar to whats already there on the left, but always visible. Second pane type, usage, examples, methods, impls. Third pane in the middle, widest, actual information in long form. Inline examples of each method are incredibly helpful and the std library docs have quite a few of those but not always. Its sometimes hard to understand how to use a method or type or impl depending on its signature.

Panes should scroll+highlight currently viewed items in the actual doc (third) pane.
This is amazing. The Indus Valley Civilization is the most fascinating ancient society one could imagine. Not only did they appear to produce fountains and waterways while other civilizations were busy building temples and palaces, but they were also remarkably - perhaps uniquely- peaceful. Very little evidence of weaponry has been found throughout their ruins.

If we are lucky enough to decipher their writing system with machine learning (or perhaps some undiscovered Rosetta Stone), I would spend days on end reading everything I could about this incredible and mysterious culture.
Getting Started with Big Data: Hadoop, Apache Spark, NoSQL
There is nothing special about containers to really understand

Containers are a lightweight way of sandboxing a process. Think a level lower than a VM. You can run multiple containers on a single VM in the same way you can run multiple VMs on a single host.

Ideally a container should be stateless. If a container crashes, you should be able to bring it up again without anything actually caring that it is technically a different process.

A container doesn't solve a "real problem" it mostly makes it easier to manage applications and processes by abstracting out any dependencies from the host VM and keeping everything packaged into a single thing.

A container can run any application that it is configured to run on any VM regardless of the state of the VM (Assuming the VM has a kernel that supports containers)
> I still can't really figure out what a container is.

If you mean this in a general sense...

One use case at Unbounce (where I worked in infrastructure) was to encapsulate the runtime dependencies for different services that were on a machine.

Our monolith required Ruby 2.1 and a bunch of gems. Then we were using Scout for centralized monitoring, which required 1.8 with a separate set of gems. We only noticed the problem when our monolith moved from Ruby 1.8 to 2.1.

To fix this problem of dual-Ruby runtimes, we encapsulated the Ruby 1.8 + gems into a Docker image for Scout, then ran the Scout container on the machine. It works perfectly and never conflicts with the monolith's Ruby runtime.
Well, it's kind of funny. I was joking about starting a political party. Now, as a business owner, I feel it's my duty.

Seriously, I've decided after reading this. I just want to vote for a party that supports abortion rights, gun rights, a open Internet, and a generally smaller government (focused more on research and education).

FYI Ill be moving to Champaign, IL if anyone is interested.
I wish there were. I would buy a Windows 10 phone at this very second if I could get it with CDMA. I am unaware of any Windows 10 CDMA phone, from a trustworthy source or otherwise.

The HP Elite x3 (http://www.gsmarena.com/hp_elite_x3-7954.php) was released 6 months ago and is exactly what I want, except that it is only available with GSM. This phone has AMAZING potential, but they are firmly focusing on the business market as well as AT&T's GSM networks (I assume).

I refuse to own an Apple product, for various reasons.

I am sick of the Android ecosystem; I can't get a timely update from Samsung, and if I put a custom ROM on it (with who-knows-what software bundled with it), some essential features just don't work. I would pay someone for a safe, functional, and timely Android update, but I don't see that as an option at all. I don't want to buy another $600-700 phone when I can't trust the OS will be patched in a timely manner. PERIOD.

GIVE ME A CDMA WINDOWS 10 PHONE, & I WILL BUY IT AND LOVE IT! ARE YOU LISTENING, MICROSOFT?!?
DocBlockr: package for Atom which makes writing documentation faster and easier
I think there exists both necessary complexity and unnecessary complexity. Necessary complexity is when the underlying system is genuinely hard and trying to simplify it causes nuance to be lost -- Rust and Haskell are good examples. Unnecessary complexity just stems from poor design and then perpetually trying to add features on top of the poor design and making it worse -- the classic example is PHP.

IMO, C++ has both a lot of necessary complexity (due to its lofty goals) and a lot of unnecessary complexity (mostly due to the C back-compat). I think this is the root of a lot of the "C++ sucks!"/"C++ is great!" arguments; when people only see one half or the other.

My bottom line with C++ is that it tries and mostly succeeds to do a lot of hard things, but has questionable design decisions that make these things even harder than they need to be. For a while we just had to live with that because if you wanted a language that was both fast and high-level, C++ was the only game in town. I think that's no longer true, which is why I'm such a cheerleader for Rust: I see it as trying to have all the good things (necessary complexity) of C++ without the baggage.
Please don't take HN threads into off-topic flamewars.
Yeah the new book looks much better (Although it's hard to evaluate onboarding since I'm past the beginner stage). Thank you for all your work! I don't mean to be critical, I'm just very much invested in Rust's mass adoption :)

Is there any discussion on the genesis of the new book I can find? I'm curious to see the thought process behind the rewrite.
An Introduction to Functional Programming in Java 8: Part 2 – Optionals
The way I saw it, the "build a wall" campaign was more about mobilizing the frustration many felt about cultural changes and (perceived) social costs of illegal immigration and less about "they're taking our jobs" (though I'm not saying that argument was never made).

I think it was about people becoming upset at seeing their communities change for the worse, seeing signs and publications coming up in spanish, seeing mexican names in headlines about high-profile crime, seeing mexicans use EBT (welfare) cards at the grocery, hearing anecdotal stories about traffic incidents where "a mexican hit me and had no insurance..", and seeing mexican gangs come to their town.

I think a lot of those voters felt unheard and tired of the politically correct excuses used to defend them. And when someone finally stood up and said "I'm going to fight this [ one precursor that enabled these changes] ", they were immediately sold.

(I'm not going to put an "I'm not a racist" disclaimer here, you all should be mature enough to interpret whether or not I actually endorse those stances or whether I am explaining the motivations of others who do)
I'm so pleased to hear this. Please, fellow American citizen hopefuls and potential American citizens tired of Trump, come on over to Vancouver or Toronto, we desperately need you to raise the decade old stagnation of tech worker's salaries.

All is not well. You are going to have to deal with a significant salary cut around 40~50% not factoring in exchange rates. You also have to deal with small supply, high rent and cost of living. Prepare to commute for hours packed into the Skytrain like sardines in a can and bus. that is provided you don't get "renovicted" where landlord kicks you out to accommodate their relatives. You also have to deal with the isolation, cliquey and outwardly friendly but internally unfriendly and flaky citizens and sleepy eyed nature of No Fun City. You also have to deal with the fact that this is essentially a socialist country with socialist values which means lot of your taxes are going to people who have nothing to do with you or care for.

But hey, our ruling party thinks that's a small price to pay for Living In the Best Place on Earth™
What about https://www.mollie.com/en/ ?
UBI won't solve anything. In fact, it will mostly just lead to inflation for basic goods and services with ultimate effect on the poor and working poor being a wash.

I liken UBI to easing credit for home mortgages. Easy credit doesn't make houses more affordable, it just makes it easier to borrow more money for a more expensive product.

Sam Altman does not understand or appreciate the above point.
Having trouble googling the articles I read on this years ago.

But here's a start: https://history.state.gov/milestones/1937-1945/bretton-woods

In that article, the United Kingdom agreed that in return for U.S. lend-lease assistance, it would cooperate with the United States in devising measures to expand “production, employment, and the exchange and consumption of goods,” to eliminate “all forms of discriminatory treatment in international commerce,” to reduce barriers to trade, and generally to achieve the goals laid out in the Atlantic Charter.

[...] That describes the Lend Lease Act, which was expanded in effect into Bretton Woods
This will change the way you write work emails forever
I don't know, I think you have to look at what is good for a certain area.

In Poland, ~1000EUR/4000PLN/month is more than what an accountant makes. Teachers never reach this salary, even with 30+ years of experience.

You can easily live very comfortably on that salary, if there's two of you making that money you can buy a house and pay it off within 10 years or build one.

Being paid that much as an intern is just unheard of, most people I know would trip over and faint if they heard this.
> I don't believe casinos are allowed to advertise that you will walk out with a lot of money either. Only that you might.

I never claimed otherwise. Did you read my post?

> Restaurants advertise in such a way that suggests you may have the absolute best night of your life and meet all sorts of new friends, that doesn't mean they are promising it.

I've never seen such an advertisement, nor have I heard of anyone putting up the deed to their house or the title of their car to pay for their restaurant habit.
> I honestly think that people gamble on things like slots because they don't have an educated sense of probability

I once became an investor on a BitCoin gambling site. The operator let you either gamble, the normal route, or invest and receive a share of the payout. He was extremely clear about the house edge.

I went into the chat room and asked people: why do you gamble if you know the odds are against you. The most canonical answer I received:

"Maybe I believe my luck has an edge on the house"
Pull that ladder up behind you, lest anyone should try to climb up there with you.
Yes, this is obviously from this article https://myopsblog.wordpress.com/2017/02/06/why-databases-is-... which is on the front page. But I would like to hear opinions on the claims in this blogpost from you guys.
OK: I found the old source and I'll try to outline it (trust me it's a bit one-off since it's not usued in the production so it's easier to explain in english).

The most important bit is the public transit API: it allows returning travel times between addresses or geographic coordinates. For stockholm there is the trafiklab api which is excellent, and free. https://www.trafiklab.se/api/

A naive implementation would just generate the map by taking each map pixel, figuring out the lat/lon on the map, and calling the transit API to get the color of the pixel. That however will be painfully slow (a year?) since the API will throttle/limit the number of calls.

So a better approach is to sample some subset of points and interpolate. Most of the larger city area is not populated so a lot of time would be wasted trying to query transport times from places in water or forrests. The best solution I could come up with was to use a list of addresses, because those say where people live. So I needed a list of addresses either with lat/lon coordinates, or a service that could give me lat/lon from the addresses (Such as openstreetmap). I found a real estate api at Booli that provided a large number of addresses including lat/lon. Perfect. I just made a simple script to dump a large list of many thousand addresses to a little db I had.

So I loop all the addresses in my address list, using a timer to throttle the transit API calls to the allowed rate. The results (coordinate, transit time) I insert into a QuadTree for perf - a list would work just as well but finding the nearest point later would be slow as hell.

After that is done, I generate map tiles. For each pixel of each tile I get the lat/lon, and then do a lookup in the QuadTree for the closest known point within some max_walking_distance (I chose 2km) for which I know public transit (Taking the shortest travel time if there are several). This can now run completely offline so will complete generating maps for all the zoom levels in not many minutes (I chose zoom levels 5..14 which covers the use case nicely).

The app itself is then just a static html with some google maps api calls to serve the overlay map from the static tile images.

Note the demo moved: https://andersforsgren.github.io/commutemap/
Why a grainy photograph and not a good quality one? I feel you're begging the question here by assuming your conclusion as your premise.

Maybe a better metaphor would be a laser pointed vs a flashlight - assuming they emit the name # of lumens, which one is more useful for exploring a dark room? This is why I think the pursuit of endless precision in calculating the value of irrational/transcendental numbers is an amusing hobby but ultimately a waste of time.
OpenTable Daily Algorithm Challenge
former H1B & like any red blooded liberal, a Trump critic. However, on this particular matter I agree with the man. H1B is basically indentured servitude for employer. Its not just that you get paid less salary & bonuses it also reduces the bargaining ability when looking for potential opportunities as there is a lengthy transfer process that requires new employer to spend money.

Another practice that I have seen happen lately is (atleast common in employers like amazon etc) is that the younglings that get hired on H1B get a fairly low level position like engineer-I. they are then told that they are ineligible for green card processing until they get to next level. so in effect they are either working 60+ hours a week eyeing for that promotion or just burning their early years out of scarce 6 years limit. Honestly I dont know how is this legal. then there is matter of green card processing and prio date regression which is a whole another can of worms. IMHO at the salaries most young indians are coming to valley and given the rise of startup ecosystem in india, its almost not worth it especially if you look at cost of living here.

One more thing, often immigrant managers who themselves have hone through the process or are aware of intricacies are the worst exploiters as they know when employees are most vulnerable. Lastly, Dont even get me started on the 'consulting' micro body shops that do shit thats clearly illegal & would land the employee is fair bit of trouble if detected.

I definitely have to applaud trump for doing something about this even if under the guise of xenofobia. that said 130k limit will definitely have effect on the small body shops that are exploitative as hell.

there is one positive thing that happened in last few years which should be preserved, its the ability for dependent spouse (H4) visa to find employment. the wifes that come over here are fairly well educated & have carriers of there own. they often fall into isolation and get depressed due to lack of social circle & opportunities. I wish that still remains viable.
Most places do have rules designed to remove trolls. Like everything else in life, a balance is needed; focusing solely on either end of the interaction is not productive. Both sides need to be addressed.

If aggressive trolling is occurring, the trolls should be punished appropriately, but in the meantime, the intended targets should do what they can to prevent escalation.
"The impact is nil" is impressive distillation of each side's philosophical endpoints :)

But, since we are talking about political ends, the words 'should be' probably belongs after 'impact'.
Back in '84 I was an undergrad at Boston University, doing an independent study with one of the business professors, Dr. Fedoritz, on a "next generation spreadsheet" that was to incorporate a cell-less freeform tree structure to represent Frames of Reference. Operating under the business school, we were working on advanced interfaces for financial professionals. The project was called a Frame Based Knowledge Representation System, with each node being a collection of data, with two special data types, one called a "frame" that contains logic and references to the other fields of the node, and one called a "reference" that pointed to a "frame" of some other node. All very basic, as the end-users were not programmers but financial analysts. Due to the freeform intended usage, the UI was on a vector monitor (like the old Asteroids arcade game), and end-users were trained to use the system as a collection of notes they can freeform write anywhere about their job, with little formulas to calculate things within a note and between other notes. It was explained to be like a combination notepad and spreadsheet. And it made a lot of sense to the end-users; they quickly got elaborate with their logic. The UI got zooming capabilities so actively edited or evaluated nodes would scale up while others shrank down, the end-users kept asking for more sophisticated features, and it really looked like we were on to something BIG. During an evaluation of the project with other professors, one of them asked "Once you've completed these requested features from your financial analysts, haven't you recreated just another programming language? The UI is unique, but I'm just seeing an interpreted language and a metaphor for programming that works with your finance end-users." ...And he was right.
Ok, we replaced the title with a representative phrase from the article and 'gig' rather than 'sharing'.
I am extremely suspicious of your sudden switch to calling out black single-parents as the doom of masculinity.

I'm further more extremely cautious of any approach that wants to talk solely about harm done to men, due to losing 'traditional' masculine hobbies, but not talk about the similar near total loss of 'feminine' hobbies and the cottage industry that widely drove revenue for stay-at-home mothers.
Perl 6: the Music-Less Musical
You don't always get to enjoy the value of the place you own, though.

Let's say you buy a house with the intent to live there the rest of your life, and you make good on that. You pay mortgage every month for X years, then you continue paying property tax. You never see a dime back.

Let's say you buy a house and then a few years later you take a job out of state, so you sell your house and buy a new one. Most of the money you made by selling your old house goes towards paying the rest of your mortgage, and most of the rest goes into the down payment of your new house. And if your property values plummeted since you bought it (e.g. thanks to an economic crash or a natural disaster), you may very well end up still owing money on your mortgage even after you sell the house.

If you actually want to keep your money, then your best hope is to wait until your mortgage is paid off, sell your house, then move into a house that's worth much less than your old one, and pocket the difference. But that takes decades; my mom had a 30-year mortgage on her house! She didn't get to stop making mortgage payments until she was 60!

> pay a bit more for quality stuff that doesn't break.

I live in Texas. Air conditioners here break down constantly because of the summer heat. When you have consecutive weeks of 100°F+ temps, that puts a lot of strain on the AC.
Just curious: in an ideal society, where there are no super large corporations that would abuse their advantage here, would this be a big deal?

Isn't this similar to the advantage that capitalists have when buying huge swathes of land? I imagine that if this passes companies would then start selling their "high priority" traffic to smaller companies.

I'm pretty ignorant to the history of Net Neutrality, but this seemed inevitable to me. Seems to me that every time there's a "constrained" resource (though internet access is arbitrarily constrained) large companies end up dominating it.

It sounds to me that the real problem is the existence of large companies that have the resources to exploit advantages to begin with.
> Practically every company I've worked with uses an HTTP reverse proxy.

Well, there are people who can say the same about Node.js or RoR. Not that it
makes a majority.

> When you use something like nginx, it's really not hard at all to get right.

It's not a matter of nginx. It's a matter of what assumptions are hardcoded in
the application.

> Edit: You can run multiple apps on separate ports, so that shouldn't be an issue.

Of course it is an issue. Such a deployment looks terrible at best.
All these discussions miss the point to me: React can be run natively on Android and iOS. Can Angular? Vue? Elm? It seems like there can't be any real competition when starting a large class of new projects until the answer is "yes."

So I'm asking: what are the best real alternatives that work natively on mobile?
That and they weren't exactly upfront about their collection.
In the US, this is already covered under civil law. Companies are successfully sued for liable as a result of their products' flaws all the time.