skysight-inc/HackerNews huggingface dataset:
You are probably referring to the non-habitual residence scheme.

As far as I know, the 20% tax rate only applies to domestically sourced income. Income from Ireland would be exempt from taxation in Portugal if it is taxed in Ireland.

I'm not sure if and how this scheme affects your social security contributions and eligibility for health care and pensions.

If you don't speak Portuguese well enough to really dig into this yourself, I would suggest you get professional advice.
Look at this for example: https://www.devexpress.com/Products/NET/Controls/WPF/Grid/
Seconding the impression of SO. More than once I saw a question where it was kinda obvious that it was a beginner who was facing a very specific issue. Let's say it's a question that's not very difficult to solve for a seasoned programmer because even if you don't know it right off the batch, your experience can guide you pretty quickly to a solution. So, I spend the five to ten minutes to come up with a solution that works reasonably well -- in parts because I'd like to help out someone but in parts also because it's informative for me as well to learn something I didn't know before -- but just as I'm typing up my findings, the question gets closed. And it's not possible to answer closed questions (the rationale for which does not reveal itself to me immediately).

I mean, I get that SO wants to be a programming resource (as in "archive") where people with a problem should find a solution - not by asking but through googling. And so they want question/answer pairs that have a sort of general value, not an individual answer to just one person.

But then again: why? What's the big deal? Someone has a very specific question, and maybe nobody in the universe will ever have the same question again, but I'm willing to help that person out -- why shouldn't I be allowed to do it? Are they really worried about too much noise on the site? Please, come on.

In the situation I sketched above, I will still walk away having learned something new, but the person who posed the original question is left with a very negative user experience AND is none the wiser regarding their specific problem. At the same time, I was never allowed to help that person which I wanted to do not for the potential credit points but rather for altruistic reasons. Way to go.
short and long are both "buy low, sell high"

with long you buy, then sell.

with short you sell, then buy.
This is not cool

There is no place for gRPC in NGINX.

This is Google trying to thin end of the wedge their own proprietary protocols into web standards yet again.

My idea of a good time is not a future where the internet is built using Google technologies dressed as "open technologies".. that.. uh-huh just happen to be the exact same as infrastructure protocols that span the internal Googleverse.

Besides that, protobuf and its ilk aren't even good or modern.

People who say, yay look at it growing are very naive imho
> A research paper? Even those can be nonsense.

An absense of research papers is far more frequently evidence of nonsense
Why are these particular harnesses so user hostile? Boat harnesses are usually double action caribeners so there is no need for a knife.
I will love to see if you have created something.
Fair enough, as with most things in life, it's context dependent. I'm speaking from an American perspective, and even in an endearing manner I would never use `babe` because that's something you'd call your significant other. Not a professional colleague.
I can second this. I wanted to write a simple provisioning tool a while ago that sets up HTTP endpoint on API Gateway and forwards the call to Lambda and the process was extremely complicated.
China is not just single block. Chinese education is evolving and experimenting with new things.

Example: Shanghai (25 million people) decided to do something new. They learned from other countries with good PISA results and adopted it to their system. Less tests and more long term projects. Little more autonomy for theaters and better rewards. Their experiment was a success and they reached the same level in PISA studies as Finland and Singapore.
Top VCs' Most-Recommended Books
Finally! Up until now, when people ask how they are supposed to proxy grpc traffic, we could only recommend Envoy. Pretty much no one wants to hear that they have to change their stack to use new technology. Since a large part of the world is already on nginx, this was a a real barrier for adoption.

Next up, browser support?
Quora suffers from an extreme cult of personality where answers are primarily upvoted these days based on the popularity of the writer and rarely on the quality of the answer.
But the article is actually making a case against the pet peeve.
Your career trajectory can be amplified with each job stepping stone, so the higher you start the better. Finishing a masters can help you land a better job.

Basically, unless you land a spot in a top company, you might be better off finishing. Otherwise you can quite possibly hop from one mediocre job to another with little growth.
Have you tried Sciter? https://sciter.com/

It's a lightweight HTML and CSS renderer for native desktop apps. Used heavily in the anti-virus industry. Not open-source, unfortunately.
Just out of curiosity, what's a modern alternative to protobufs?
This is really poor journalism. Just 23 days ago, we had In One Tweet, Kylie Jenner Wiped Out $1.3B of Snap's Market Value. Discussed here:

https://news.ycombinator.com/item?id=16439534

So can we safely create a model for writing stories?

If SNAP stock sinks
find (social media from $celebrity)
write $celebrity responsible for wiping $x in market value.
I read the entire article and didn't see anything about crucibles.
Why would you do it manually? Write a two-line script to do it. Downloading a framework to run an npm script that does the equivalent of running `zip` followed by `scp` (or `aws s3 cp` or whatever) seems crazy to me.
Connector[1] pins on a ground plane on an 8 layer board are difficult to solder, and the wetability of lead helps a bit.

[1] Or pvc insulated wire onto a piezo brass disc sounder.
The math behind the perfect free throw
At what price? According to google, market cap of Ford: 44.30B, GM: 53.14B, Tesla: 54.28B.
Tesla is the bitcoin of EVs :) or maybe it's the other way around.

I think Musk persona and SpaceX makes many want to bet on high risk but high gains project. I wonder how Tesla stock did after the dual rocket landing.
Some of the most spectacularly wrong predictions in history have been made by those who claim that overpopulation is going to swamp the planet. Thomas Malthus, a British economist writing in the late 1700s, is the most famous of these. Extrapolating past trends into the future, he predicted that population growth would inevitably swamp available food resources, leading to mass starvation. That didn’t happen - we continued to develop new technologies that let us stay ahead of the reaper.

Why are people so eager to point out that Malthus was wrong all the time? As far as I can tell he was not. He said if population growth continued as in the past, then we would starve, not that we necessarily will. I also think it is wrong to say we engineered us out of starvation, at best it bought us some time to get the fertility rate down. As the article admits, exponential population growth can never be finally solved by technology.
Downvoting answers costs you, downvoting questions does not. You can definitely see the difference in dynamic.
http://askakorean.blogspot.hk/2013/07/culturalism-gladwell-a... has a little bit of a different take on this - mainly aimed at Malcom Gladwell's _Outliers_ discussion of these incidents.

The article goes a bit broader and it's been a few years since I read it in depth, but you might be interested the counter-perspective.
Warning: This page will automatically blast audio without asking, potentially ruining whatever you were recording, damaging your ears, waking the baby, annoying the boss, etc.
Data scandal is huge blow for Facebook
The mechanics are that you loan shares, sell them at the price you think is too high, buy them at the lower price, then hand those cheaper shares back.

The argument for doing so is that humans err in favour of optimism -- ie, that prices will rise. But you can make money on the market moving either way.

Looking on it as a total outsider with limited knowledge, it seems like a fascinating niche in the financial world. But I imagine it is also even more stressful than betting on the price rise, because you're more often going to be outside the pack.
I much prefer the answers that explain why, if you really shouldn't do something in addition to an answer to the actual question. Usually there are perfectly valid reasons to do things you "shouldn't" and until you know that there isn't one you should just answer the question.
Google collects location data from WLAN networks in reach, triangulates from cell tower signal strength, GPS, GLONASS, geoip and if all that fails, sheer historical prediction.

And no one quite knows why, other than "because we can". There is Google Maps, but when I'm not using it, when exactly is this orwellian infrastructure to my benefit and not exclusively Googles?
People don't want to become unbuckled and fall out the aircraft. Falling out of a boat is far less scary (I've done it before and was able to easily swim to shore).
Terrible title. "Population bomb" is not defused, only "birth rate" is decreasing. There are already too many people on Earth. It's big problem in developing countries.
Do you mean that in addition to the discounted taxation I should pay an extra for the Social Security?
3. 1 month passes. The stock goes up.

You HAVE to buy the same amount of stock, but for $150.

You HAVE to return the stock to the person you borrowed it from.

You lost $50 per stock.
last i checked grpc could only technically support bidirectional streams. None of the libraries I looked at actually implemented it.
If we want to be complete, the alternate situation is that the stock went up. Maybe $1000, maybe $1000000, and now we have lost money. Maybe quite a lot of money, the sky's the limit.

Short selling is not for the faint of heart.
I'm not sure if this is what you meant, but yes the C compiler uses it for the entire expression syntax -- not just arithmetic. Because in C "declaration mimics use", it's used for type expressions too.

As for using it for the entire programming language, like for/while/switch, I see the discussion with vidarh below.

I haven't seen a parser written like this, so that's interesting.

However I consider the "opposite" sort of a mistake? Doug Crockford uses top-down operator precedence to parse ALL of JavaScript, not just the expression language.

Review of Pratt/TDOP Parsing Tutorials http://www.oilshell.org/blog/2016/11/02.html

I remember being confused by this, and I think it is still confusing. It seems to me that the statement language and expression language are separate things, and it makes sense to use recursive descent for the statement language and either top-down or bottom-up precedence for expressions. In other words, the architecture of the original C compiler is very clean, and no doubt influenced the language design. (On the other hand, it's probably also responsible for the fact that C has so many levels of precedence, some of which don't make sense!)

Also, the difference between "Pratt parsing" and "Precedence climbing" is sort of a code organization issue -- do you handle a[i] and x?a:b in the same place as a*b a+b etc.? I wondered if there is an analogous thing for bottom-up expression parsing. I like having each "form" in one function.

Pratt parsing is a nice complement to recursive descent; it's accurate to say that it's a variant of recursive descent with the additional input of numerical priorities.
We can't pretend that this is a political post. The ethical implications of this extend to the very structure of the modern Internet, which has become so entwined with targeted marketing. Democracy was not devised to withstand this.
Whenever I buy a new guitar, I deliberately damage it - a quick scrape against a belt buckle or a dent against the edge of a table. Even if you know that the guitar will have a hard working life, you can't help but handle it with kid gloves when it's still all shiny and new. The first ding always hurts, so you might as well get it over with.

I wonder if this has any bearing on the popularity of reliced guitars. Aesthetics is undoubtedly a part, as with pre-distressed jeans, but I can't help thinking that some players are more comfortable with an instrument that has taken a beating before it left the factory.
Tesla is another "solution looking for a problem" type of company. They make nice cars but the electric engine concept has yet to provide a real benefit over combustion. (They say less solution but that's not really true is it?)

Another concept looking for a problem is crypto; as the only problems crypto really solves are the ones faced when doing illegal transactions or hiding money.
The Model 3 seems like it was premature. It gets mediocre reviews ( https://www.caranddriver.com/tesla/model-3 ), they have 180,000 orders, and they're fulfilling them at about 3200 a month, i.e. 4.6 years to satisfy the current backlog. For scale, Toyota sold about 32,000 Camrys a month last year just in the US. Heck, BMW sold about 34,000 3-series a month.

Tesla should have stuck to high-end markets. It looks like their foray into mass production will end badly.
Tend? Perhaps. I've lived, worked and traveled all over the U.S. The smallest town I lived in was Sherwood, Maryland (population 44 at the time), and I now live an hour outside NYC. It really totally depends on the person you're interacting with, their personality, the kind of day they're having, the days they had before that. Culture certainly determines a lot of it, but that is harder to reduce to small town/big town dynamics. In America some of our most densely populated places (i.e. New Jersey) have some of the lowest rates of depression and suicide. People may appear to be ruder to each other in those places, or not, but something about the proximity of so many other humans creates some sort of social behavioral order that allows them to get along. People are strange, is really the tl;dr.
>The thinking goes, if everyone is involved in the decision-making process, then when something inevitably goes wrong, there’s no individual person to blame! Problem solved.

This is _exactly_ how life in the US Govt. IT sectors go.
The last thing in the world we want is a bus driver getting out to argue with someone for 15 minutes about a fine
It is a lot more stressful because if you bet on the rise, the most you can lose is what you paid for the stock. Your loss potential with short selling is unbounded.
That's like asking, can you show me an immaterial soul? Yes, there are arguments to be made in favour of the existence of such things, but given all we've learnt about things like biology, computation and the brain, we can hardly just assume that such things literally exist, and there's many reasons to think they don't.
Unicode stored procedure parameter names
> Besides that, protobuf and its ilk aren't even good or modern.

What would you consider "good" or "modern"? JSON?
Only thing I fear from Chinese authoritarian AI surveillance system is that it turns out to be successful and efficient.

If it can control people efficiently but has less negative externalizes than traditional authoritarianism, it will eventually spread outside China.

Resilient, stable and productive authoritarian system would turn the tables between liberal democracies and the rest of the world. It would be a pivotal moment in human history.
I think the most interesting and relevant strand of philosophy of mind is the connectionism of Rumelhart, McClelland and the PDP Research Group (including "godfather of deep learning" Geoff Hinton), exemplified in the tome "Parallel Distributed Processing" released in 1986

It even has an accompanying manual on how to implement artificial neural networks.

http://www.cnbc.cmu.edu/~plaut/IntroPDP/index.html

More along this line is found in David Marr's Vision: A Computational Investigation into the Human Representation and Processing of Visual Information

https://www.youtube.com/watch?v=9WcIiSCDqhE

There is a spiritual successor to the PDP books called "Rethinking Innateness: A connectionist perspective on development" lead by Jeffery Elman who did some of the first research on Recurrent Neural Networks (RNNs). It makes heavy reference to Chomsky's work on language and innateness

https://crl.ucsd.edu/~elman/Papers/book/index.shtml

This line of work even has heavyweight ancestors in Donald Hebb's work on the neural basis of learning in "The Organization of Behavior" (1949) and the noted austrian economist(?)/classical liberal and anti-communist Frederick Hayek covered similar lines in his book "The Sensory Order" (1952)

I think this tradition is carried on in the work of Yann Lecun, who recently released a talk titled "Deep Learning, Structure and Innate Priors"

http://www.abigailsee.com/2018/02/21/deep-learning-structure...
That's my point, isn't it?

Ireland can't win a race to the bottom, and it will have to have higher taxes if others will lower theirs.

So all other countries have to do is lower taxes to force Ireland to raise its own, and reach a new higher taxes equilibrium, that is beneficial to all countries.

Isn't that what others are arguing for?
The "worst comes to worst" scenario will not likely be priced at 54.28B
ublock origin w/Safari on OS X blocked the video automatically
Nobody knows, the destruction of the entire planet most likely.

The earth is dying, you can see it everywhere you look if you open your eyes.
The standard thing everyone understands is you buy a stock S1 at time t1 and sell it later at t2 (let this be S2). The difference (S2 - S1) is your profit. You are hoping the stock price goes up. If it drops you lose money.

Time(t) : ---buy(S1)------------------sell(S2)----->

In short selling, the buy's and sells are reversed, so you are hoping the stock price drops.

Time(t) : ---sell(S1)-----------------buy(S2)------>

Notice that if the stock price drops S2 - S1 is positive. Conversely, if the price rises you lost money.

There are other technical details, but this is conceptually an easy and accurate enough way to think about it.
>dark matter was truly “discovered” in the 1970s by Vera Rubin

as a nit: dark matter was actually discovered in the 50's with the first direct detection of neutrinos, which is why-in the 70's- "maybe there's just a bunch of matter not interacting with photons" wasn't laughed out of the room.
I imagine if they went bankrupt, those numbers would change.
Exactly right. But, if the stock goes up to $150, then you have to buy it back at $150.

The thing about short sales: the most the stock can go down is to zero, but there’s no limit to how high it can rise. So, you have limited upside with unlimited downside.

It’s also a leveraged position, since borrowing the stock is typically free and selling it generates cash. In the example above, you start with $0 and end up with $100 per share in cash and a corresponding $100 per share in debt. In theory, you can short an infinite amount of stock. In practice, you are limited by both margin requirements (debt to equity ratio), and the fact that the market would start moving lower to account for the sudden influx of stock for sale. However, even small moves in price can have a huge influence on the profit or loss of a short sale, since you can turn a small amount of cash into a large short position.
GM’s ‘robo-taxi’ rollout is closer than you think
I'm not familiar with the particular model of aircraft that crashed. But I've ridden in a cozy two-seater. As someone with zero piloting experience it seemed like it would have been easy to change all kinds of important controls, especially if it was an excited, inattentive person of the selfie snapping variety.
I would also like to know why you don't consider it 'modern' and how you would define modern-ness in this context.
How to create unique passwords you won't have to memorize
I just heard this on the radio. I was appalled.

http://www.cbc.ca/radio/thesundayedition/how-to-create-unique-passwords-you-won-t-have-to-memorize-1.4579765
In the late 80's, I was interested enough in artificial intelligence to take several classes in philosophy of mind; then and since, I have never been able to distinguish Searle's Chinese room argument from plain dualism. (The apparently separate idea of "biologicalism" that I've heard from some about Searle and (sort-of) from Penrose don't make any sense to me.)
> The people...who thrive on pedantry and whose goal is to find any potential flaw in your question and feel smart for pointing it out.

And you don't feel the same thing when you comment on HN?

I honestly think every point you made about SO can also be said of HN, reddit and almost any other place where people congregate online.
I think the problem is, no one predicted that educated women, the accessibility of family planning aids, and economies developing [1] would be so effective at reducing fertility rates (with that said, it would've been convenient if this occurred earlier in the 20th century; we're going to hit 11 billion people before the population decline is in full swing, and that's going to challenge the carrying capacity of the planet).

Were these unintended consequences? In most countries, yes. Humanity keeps turning up lucky in this regard (the above mentioned outcome, solar and wind becoming cheap enough we might be able to go carbon neutral for energy consumption, etc).

[1] PDF: http://www.earth-policy.org/images/uploads/book_files/ecoch1...
Try autohotkey. One of the few scripting languages that doesn’t have a gc. Also good for lurker types in my opinion.
after looking at the monroe video on the 3, i'm waiting for the all EV camry that goes 400 mi on a charge
There might be some problems with it, it is not perfect, however it is already open, not bound to Google and we used in internal projects, and multiple very large projects also use it freely. I really like the strong typing and the ability to bi-directional streams and finally code generation for various languages make it very okay. Our main product was Go, but a part had to be Java and the integration was very easy because we used gRPC. Not that it cannot be achieved by other tools and frameworks, gRPC is already popular and well performing enough for most people.
I do wonder if Tesla's biggest problem around the Model 3 launch was starting by establishing very aggressive production targets. According to Bloomberg's Model 3 Tracker linked in that article, the Model 3 already is the top selling electric car in the country. It outsold the Chevy Bolt by over 2x in January and February. That should be a huge accomplishment, but it is viewed as a failure because it is a small fraction of what Tesla initially predicted.
It's purely an attack on symbolic (and possibly neural network-ish/statistical) artificial intelligence. I myself, however, don't think it's a particularly good attack.
Zip files cannot be unzipped without having the whole thing in memory.

Where/how did you come upon that piece of misinformation?

I can still remember using PKZIP to extract archives of over 100MB, on a machine with only 4MB of RAM, many years ago.