skysight-inc/HackerNews huggingface dataset:
Interesting take. Thanks for that.

I think what also contributes is the idea that the brain will twist and contort reality to protect foundational beliefs (beyond my own observation of human behavior, there are a number of studies backing this up). We make decisions based on what we believe to be true, and the more decisions based on and built on a belief, the more foundational that belief is to our life. The more foundational a belief, the harder the brain will work to protect you from facing something that contradicts the belief head on (because directly facing the fact, without being prepared for it, that a significant number of decisions in your life have been based on false information could cause real system damage). Changing foundational beliefs must occur in steps, as you can only move so far from the current belief at once. And in the other direction, we much more readily accept anything that reinforces our foundational beliefs, even more so when being bombarded with ideas that may challenge those beliefs at the same time.

Religion and politics are extremely foundational things for most people, thus people are much more likely to overlook facts contradicting their beliefs and accept irrational ideas that happen to reinforce the belief.

> Since I've learned this...It doesn't make things easier though...

Same.

EDIT: Another complex/interesting idea to think through is that Us vs. Them is baked into human nature. You can change who "us" and "them" are, but I don't think you can change that there is always an Us vs. Them, and that "us" is always the good guys and "them" is always the bad guys.
There is actually work going into 2.4 that should further rectify the situation.

pfSenseHelpers.js (https://github.com/pfsense/pfsense/commit/f0136b178022cf3b04...) now contains code that intercepts clicks on anchor tags with the attribute "usepost" set. The target URL and the GET arguments are extracted from the event href attribute, and these are used to compose a new, temporary form with the previous arguments inserted as POST parameters.

Here is a simple example:

Before:

<?php
$id = $_GET['id'];

if ($_POST) {
if (!save_config($id)) {
$input_errors[] = "Something broke";
}
}
?>

<a type="button" href="system_something.php?id=<?=$id?>&user=<?=$pconfig['user']?> >
<i class="fa fa-save></i>
<?=gettext("Save")?>
</a>

After:
<?php
$id = $_POST['id']; // $_GET was changed to $_POST

if ($_POST['save']) { // The generic if ($_POST) is now if ($_POST['save'] to detect when the form is being saved
if (!save_config($id)) {
$input_errors[] = "Something broke";
}
}
?>

<!-- The "usepost" attribute is added to the anchor -->
<a type="button" href="system_something.php?id=<?=$id?>&user=<?=$pconfig['user']?> usepost>
<i class="fa fa-save></i>
<?=gettext("Save")?>
</a>

Most of the GUI is being converted to use these, and the result should be in pfSense software release 2.4.
Soon, write hooks. Not the greatest solution though.
Ask HN: Evaluating joining a startup
There are 2 cofounders.

They do not have external funding, not sure if they have clients yet.

They are paying 20% less than I make in industry, and I would get 0.1-1.0% equity - is this common for the "first employee" essentially non-founder?
GHC Generics Explained
And Perl5. Here are two examples of grammar engines built out of perl regex...

* Regexp::Grammars - https://metacpan.org/pod/Regexp::Grammars

* Parse::RecDescent - https://metacpan.org/pod/Parse::RecDescent
I prefer "source-to-source compiler": https://en.wikipedia.org/wiki/Source-to-source_compiler
citation: https://web.archive.org/web/20110724151936/http://publishing...

it's been a heavily discussed subject amongst economists. it has not fully passed into mainstream conversation. I'm not an economist but I first encountered the term about 10 years ago while reading economists.
Show HN: A React components library for building interactive maps
It was a badly designed app written by a couple of over-eager developers who didn't have any security plan in place. If you blamed the language every time a website got hacked, there wouldn't be any languages left.
If he doesn't create the 10 jobs within 5-10 years his visa is revoked and he goes home. That seems reasonable, no?

It is similar to the entrepreneur visa DHS just finalized. If you have a certain amount of funding you can stay for a while, with the option to renew as long as you meet certain objectives (creating X jobs and raising $x more funding).

Immigration is not a zero-sum game. Immigrants need houses to live in (they must be built). They buy various goods and services. Presumably their children become productive members of society just like many generations of previous immigrants.

In fact we should allow immigrants to bring their entire extended family. If we did that remittances to $country would drop dramatically and that money would stay here in the US, buying more US goods and services.
Your opinion about the validity of the work has nothing to do with the potential growth and success of the company/product.

Being a plumber may not be "meaningful" to some, but it's definitely possible to be successful and make a lot of money doing it.
"Beam’s book does not really belong to the Russian translation wars. It is better assigned to that burgeoning field in the humanities, affect or emotion studies (subsets: shame studies, insult studies, disappointment, and regret studies)..."

That is one way to put lipstick on the flamewar-as-entertainment pig.

As for the argument itself, I applaud Nabokov's contextual literalism, but if the result is rough and uneven where the original was lyrical, I don't know that the author would thank him.
Because they haven't tried to control it too much...

Was this true in '09? It doesn't seem like it has been true in a long time.
sorry for the quotes didn't intend to make it look like you said that.
Good question. I hope to create a backend that actually stores data in Postgres, too.

We don't really use Elasticsearch because of the fulltext support, although we do use that, too.

Our document store is split into two parts: (1) A highly transactional data store (which uses Postgres) which stores master data and where everything is strict; and (2) an eventually-consistent search index (which uses Elasticsearch) where everything is expendable and queries are less strict.

This has the benefit of allowing extreme horizontal scalability on the read path, without impacting the performance of the write path, but at the cost of less consistency. By dividing the two, we can control the flow of data into the write path; for example, some clients do batch imports that are indexed more slowly than real-time updates.

The challenge with layering the search index on top of Postgres is how to represent the data. The document store manages the schemas for you, so we know to some extent what the data is, but also supports either partially or completely open schemas (where the allowed fields are either partially validated or completely schemaless).

We could build tables dynamically from schemas, or we could denormalize the data into a less efficient [id, field, type, value] table, or we could index JSONB documents (GIN, not as efficient as B-trees on normal columns afaik, and limited in some ways). There are a bunch of options.
An extension to Baumol would be that not only have wages in non-productive industries had to keep up with wages in productive industries but capital spending rates in non-productive industries have kept up with capital spending rates in productive industries. At least in education and health care, you see buildings, equipment, administrators and so-forth taking more and more of the expenses relative to the salaries of service provider.

Admittedly that's automatic given cost increases without concomitant salary increases but I think one can this to standards of capitalization of productive industries bleeding over to non-productive industries. And there's a constant belief/hope/snake-oil that these increases in capital spending will make the industries productive. Indeed, the "captains" of these would never frame the industries as static, non-productive support industries.
IDK what calvin had in mind, but the client pull model you suggest can require a lot of round trips. Request a, parse a, execute a, request b, parse b, execute b, request c, parse c, execute c.

Of course, you could always do server push, but hey...that's pretty close to what a single bundled file is :)
Was thinking the exact same thing. Win-Win
>> If everybody can spend twice as much on rent

> False presumption

It wasn't a presumption about BI, but a hypothetical framing of an example situation. Please give opposing viewpoints their due interpretation rather than looking for phrases to pick on out of context.

> Unfounded

Once again, this is what we're arguing about. You can't simply quote my conclusion without my supporting arguments and say it's unfounded.

> That doesn't remotely address the issue that BI attempts to solve, lack of available jobs for people due to the effects of automation.

I didn't expand on it, but my view actually does address this. If working people had been able to save money, then they would have had more economic bargaining power to demand higher wages and fewer working hours, gradually over the past few decades. As it stands, we could fix much of the employment issue by redefining "full time" to be 15 hours per week, getting rid of the exempt loophole, and changing overtime to double or triple pay. But this is such a drastic change (because the issue has been building so long), it seems quite ridiculous. But it's important to understand how we got to this point in order to know how to proceed, lest we choose another "quick fix" that actually just makes the situation even worse.
props to you for creating this library. 12 is really young -- especially young to have such a valiant focus like developer tooling.

remember though- writing good developer tools is something that requires a lot of experience and expertise. learning to program by writing developer tools is kind of like learning to build a house by making a hammer.

the best advice i have would be to remember that you don't know what you don't know. when you're creating a new tool- make sure to ask yourself some questions- does this tool exist already? if not, why not? what differentiates mine?

keep it up! you will only get better with time!
Would you please suggest a good overview of this? I've been on Twitter for years and sometimes use 3rd party clients, and my UX still sucks. I can follow Twitter conversations but find it virtually impossible to initiate one. I limit the time I spend using it because it makes me feel autistic, whereas I find other social media liberating.
Well, college is "different" (to put it mildly).

My theory is colleges are, in effect, selling a positional good[1], one whose value depends on its ranking relative to other goods. People go there to prove that they are in the nth percentile by some desirable quality.

Positional goods providers behave like monopolists when (the perception of) that ranking can't easily change, and buyers place extreme importance on being in the nth percentile.

To compare back to the rebar example, if a buyer had to get rebar from a top 3 provider (rather than simply "rebar above X psi strength etc"), and the top 3 never changed, you'd probably see the same effect, and they would simply raise prices with every subsidy.

[1] https://en.wikipedia.org/wiki/Positional_good
> I presume from your tone that you are childless. "Cozy" gets really old, really quick when you have kids. And when they get larger, you really don't want them living right on top of you.

I have a child and big houses still disgust me. They really aren't necessary, and, at least for me, is not where I want to allocate more of my money to. Instead, I value living two blocks from where I work. To each their own.

> SV companies may not be losing employees now (other than to rampant poaching and job-hopping), but they certainly aren't attracting certain classes of employees for their on-site work.

We heard this 10 years ago and 20 years ago. Yes, and it is all intentional.

> They can't get the parents from middle America that think many SV tech employers are literally insane.

I have a nice 40 hour work week, it isn't anywhere near as you described. Also, I'm in LA, not SV.

> Even a five-bedroom house is not "big" if you have four kids in it, or plan to put that many in it.

If I ever plan to have four kids, then maybe a big house is reasonable. I have one kid, and anyways, we just moved from China, where the thought of a 5 bedroom house is considered very...American. In much of the world, people have much less than that, and everything goes along quite well.

> If companies followed my advice, they would reduce their recruitment, labor, and facilities costs during their expansions.

The employees they want aren't going to move to nowhere middle america. The problem is that, if their job falls through, they will have to move again to find another. Being in an area of critical mass, even if the cost of living is higher, has a big advantage that the next job will be in the same place also. You could argue that the critical mass could exist elsewhere, but the negative externalities would follow.

I've lived in many places in the USA: Tri-cities (middle of nowhere Washington State), Toledo, Vicksburg (nowhere Mississippi), Seattle, Salt Lake City, Austin, Boca Raton, Bay Area, now LA (not to mention Lausanne and Beijing outside of the USA). I prefer the urban to the the suburban, I understand why others might prefer suburban, but I don't think they are an overwhelming majority, especially in our industry.
Opensourcing could be an option in future. For now, we would like to see how people adapt it to their needs. Because it's quite untraditional tool.
Interesting, can you elaborate a bit more on this? Especially on the "due diligence" part: Do you mean depending on what happened on the network a few hours ago it's often wise to change stories or content?
Is "async loader" the thing where a page comes up as nothing but a list of URLs, unless you turn on Javascript? I see that with Instagram links - it's not even blank, it's just a plain list of URLs.
Repeatedly following through with a second batch of orders just right after cancelling a large batch of offers in the opposite direction will do wonders to put the sincerity of the first batches into question.

I think it's safe to assume that this is not a "one daring bet" kind of manipulation, like e.g. badly disguised insider trading could be, it is rather wealth by a thousand papercuts. The pattern is very unlikely to be worthwhile without excessive repetition and there are only so many million times where you can believable claim that you wanted, then you didn't, and than you wanted the opposite, all in carefully timed lockstep.
It's hard to say the worldwide apex predator isn't good at it
Intel Atom C2000 Series Server Chips May Stop Working
0 cups
> It's not like Nadella fired every one and started afresh.
I am also a Ruby/Rails developer. It is a great framework but I wanted to try something new for my side project so I started learning Elixir/Phoenix.

I have now deployed two applications using Elixir. One is a simple blog and the other is the side-project that I am currently working on called Email This [1]. Overall, I've been very happy with Elixir. The learning curve is not too steep and the docs are very exhaustive.

For my next project, I am planning on trying Go. There were many great resources shared in this post on HN today [2].

[1] https://www.emailthis.me

[2] https://news.ycombinator.com/item?id=13612941
I can try. Firstly, worth mentioning the quote is a bit facetious, witty, jocose...Jolly old Warren Buffett can often be a bit playful and sort of sarcastic when talking about investing in public but it seems few people pick up on it.

Also maybe worth mentioning the quote is based on a well known "2 Rules" phrase format. For example:

“There are 2 rules of life. Rule number 1 is ‘Never quit.’ And rule number 2 is ‘Don’t forget rule number 1.’” - Duke Ellington

and

"There are 2 rules for success. Rule 1: Never tell everything you know. Rule 2:.. ;)"

OK with that said, I wouldn't overthink the quote. Obviously you can't really guarantee you will "never lose money" and so it's not really a rule and even Buffett loses money sometimes.

If I had to guess what he means: I would say use the quote as fun/serious reminder to think about risk ahead of reward and remember concepts like margin of safety that help protect you from loses even if a stock doesn't go up like you expect and hope.
Holy shit! This is me. Now everything makes sense.
Subscribers and dollars per subscriber.
Same reason markup/markdown is better for docs than Microsoft Word.

WYSIWYG development just sucks. It's not diffable nor mergeable. Quick setup is simple, but complex refactorings are plain impossible. Also there's always at least this one thing the editor fights you on.
Twitter is useful, but needs to be smaller as a business. If they focus on their core business, tweets, and get rid of at least half the employees, they'll be profitable. They just have to accept that they're no longer a growth company.
Only the last of those three things is a conspiracy theory. I would be very happy to see evidence disproving it, but for now it seems implausible, but worth discussing.
'sub' is the business shorthand for 'subscriber'.

$/sub is revenue per subscriber.

$/sub, sub growth, 'cost of acquisition' of each sub, (and assumptions about margins) is what 95% of the valuation is based on.

Now that they are 'going IPO' they're not going to be judged so much on 'lofty ambitions' and 'intangible market opportunities' - they are going to be judged mostly on 'how much free cash flow' they can generate over time.

So, $/sub (minus the cost to acquire each sub) and some assumptions about operating margins gives you the how much free cash flow per customer they can expect. This is widely different on different platforms.

Sub growth tells you how many customers investors can expect over time.

Hence profits.

Obviously it's very crude, and there's a lot more to it - but that is the most essential, basic economic equation that investors will look at to determine a valuation.

Snaps $/sub right now is negative at the 'net' level - i.e. after R&D, etc. - but the key metric people will be interested in is the 'gross' revenue (and profits) per subscriber. The idea being - one day, 'R&D' costs will stop growing so much, and customer base will still grow quite a lot. R&D and Operational costs are spread over an ever increasing user base, which will put the per-subscriber net margins into the positive.
How much code can a coder code?
author of SSC is an M.D. (psychiatry resident), not specifically a math or tech guy.

I agree with you, however, that too much faith in dubious metrics is a serious problem. I don't particularly think the main thesis of today's post is based on dubious metrics though, but perhaps some specific claims in it (about education outcomes, for example) are not well supported.

that's beside the point though. he wasn't examining whether or not we got our money's worth on all this increased education spending. he was pointing out that the cost of education, on a per student basis, has risen massively over the last several decades, and there is not particularly a good reason why this should have occurred.
This is the first I've heard of them...
That's likely true for any language old enough to have supported the old CGI model. Inertia...
I think they're there, you just need to find them. For example, here's a pretty good one: http://h5mag.com/
You're right, it's not inherent to nor exclusive of PHP developers. It's entirely possible to write good code following good design patterns in PHP. But regardless of reason, that's not encouraged in the PHP community. A person who starts out writing PHP and stays in PHP development is, in my experience, far less likely to follow good design patterns.
I did say use a bundler :)
>I use twitter to get instant updates on current news

Because "current news" are so interesting/relevant/important to one's everyday life and/or politics?

It's mostly a bunch of noise -- with plenty of BS and lies on top.

If you want to know what's happening, better read a "not instant", more analysis/depth outlet.
If an aircraft carrier is needed around the world, there's a lot of time to fill while the ship steams into position. Even in the middle of the war, there's a lot of waiting.
I really like Douglas Crockford's Pratt parser which is similar. It doesn't compile down to JS but it's trivial to go from the AST to JS either manually or using something like escodegen.

Very elegant and easily extensible.

http://javascript.crockford.com/tdop/index.html
Public debt is just a way to account for spending publicly, instead of printing money. The national debt can grow indefinitely so long as the economy continues to grow. (Fun fact: the US Government does make money out of nothing by minting coins. The Treasury creates them and hands them to the Federal Reserve, who increases the US Government accounts by that amount - creating new money out of nothing).

China buys US debt because they are forced to do so. They print Yuan to buy it which depresses the value of their currency. Some of the Chinese leadership is well aware that the balance of trade with the US and Europe must equalize. They've been taking measures to encourage domestic consumption and a transition away from an export-heavy economy. I don't think they're moving quickly enough because they're scared of disrupting the economy - fearing the Communist government (and their power) won't survive.

If China stopped buying US debt they'd have to buy European debt. If they stopped buying both their currency would appreciate and their exports would not be so cheap.
Headline Detroit: A RoboCop statue update
>Give them a free threshold of say 10K followers, and then charge them a fee after that. Users clearly benefit, and often profit, from their large follower base. Twitter should profit from it too.

Interesting idea, in theory. In reality, the "thought leaders" will simply move to another platform that is "free". Is Twitter markedly different than Facebook/G+/Instagram/Snapchat/email?
I've been working on my Electron-powered desktop launcher (Alfred alternative) for the past year or so on and off. The idea is to eventually enable compatibility with existing Alfred workflows and also provide a rich DX for creating themes/plugins via the CLI tool that comes along with it.

Dext: https://github.com/vutran/dext
Dext CLI: https://github.com/vutran/dext-cli
http://blog.app.net/2017/01/12/app-net-is-shutting-down/
There is a lot you didn't know about Washington:

https://www.youtube.com/watch?v=sbRom1Rz8OA
Rails Basic API Authentication with Sorcery and JWT
Show HN: Kog, a simple kotlin server inspired by clojure's ring (just for fun)
this is explicitly wrong. monetary inflation is about the size of the money supply over time. "correcting for inflation" means multiplying the prices of things out by an adjustment factor that accounts for changes in the size of the money supply relative to an index (a specific starting point).

when the price of something in particular (home prices, college tuition, etc.) changes at a rate vastly different than the rate of monetary inflation you're looking at a price phenomenon in that specific thing.
The purpose of blackjack tables is taking risks. The purpose of markets is to determine a price that is fair to both sellers and buyers. Risk-taking intermediates are just a possible building block for coming up with a solution to that goal.