skysight-inc/HackerNews huggingface dataset:
You have not adequately argued that a Depth-First Search is superior to a Breadth-First Search here (or that the balance here is wrong). The value you describe is the goal value which influences the search strategy not very much.
Using DotEnv with Jest for JavaScript Testing
Honestly, farming is probably the place where IoT makes the most sense. Especially for very environmentally sensitive processes like winemaking, large sensor networks and data analytics offer a lot of value to the farmer.
Always ask about the preference stack. You'll rarely discover anything interesting, but if you do, it'll completely change how you value your equity grant.

https://angel.co/blog/liquidation-preference-your-equity-cou...
Gah, my eyes! Why is the font so huge? And why doesn't zoom change it? I have to like step 5' back from my screen to read it....

Otherwise...

I have been writing Go for about 6 years... errors make so much sense to me. Why have some external codepath for "file not found"? Why is that different than "name == bob"? They're just data that is in one state or another. You check for them the same way, with an if statement. There's nothing magical.
Google has the same problem. I was searching for information about Apache Chainsaw the other day, and at one point forgot to put the word "apache" in as a search term. Ended up with adverts for actual chainsaws for like a week.
The total since research started is somewhere between $25bn and $50bn.

In the US alone, oil subsidies are >$400bn a year.

Here’s an article - about the same amount, annualised, is spent on Halloween costumes for pets.

http://www.fusionenergyleague.org/index.php/blog/article/hav...
Perhaps a better way to phrase it, is that the 3way handshake does not need to be completed before sending data.
It's worth noting that relocation expenses don't change too much depending on experience. They generally average around $10,000 from my experience, but it isn't paid out in advance, but usually as a reimbursement. Some companies will give you a card to do it on as a means of not having to be reimbursed, but even that's rare.
One has to wonder how much the lobbying arms of US telecom equipment manufacturers have a say in this decision. Companies like Cisco and Juniper must be loving this news. They effectively no longer have to compete with Huawei in numerous markets.
Ah that would be illegal. The NSA asks Australia to spy on Americans and report back and visa versa. Which is not against the spirit of the law at all /s.
The target attribute is a misfeature of HTML anyway. All it does is make it unpredictable what happens when you click a link.
The evil seller has a reputation to protect and the victim has an undeletable evidence of the "crime" on-chain for anyone to verify.
What? No, not weird at all, the spying on Americans is in behalf of America, e.g. the NSA never gonna help with intel about how to attack America itself but they do so for enemy countries, or maybe just report about it for allies territories -in case allies stop being so in the near future-
Purpose isn't something we find. It's something we create
3 Little Known but Useful Vim Tips
AWS Transfer for SFTP
If you care, you can't realistically forget. There are linters that will find your missed error checks.
I think maybe there is a common misunderstanding that Stack Overflow is a forum for discussing software dev. It's not, it's a programming Q and A site and it specifically spells out what that means. Questions have to be fairly specific either to a programming language, tool (make/git), library, or help figuring out a bug. Open discussion of broad CS topics is not what it's trying to be.

I agree I'd like such a site. I don't think any Stack Exchanged based site will ever be such a site. I think TPTB believe it's nearly impossible to run such a site and not have it turn into crap because of the large number of people asking bad questions of the "How do I make a website like facebook" or "How do I make a game like GTA5"
I would expect most to be disappointing too, and it's a good idea to avoid those.

Proper logging doesn't take more time, it just takes more discipline / giving a damn. People and companies that say:

we don't have time to do it right

Almost always mean:

we don't know how to do it right

Talent, not time, is the enemy of quality. (at some point that stops being true, but most companies (startups or not) are soooo far from that).

If we are talking about a really young/small startup and you're a senior person, then you need to have a discussion about it with whoever you answer to.

If we're talking about a really young/small startup and you're a jr person, you'll just learn a bunch of shitty habits.

If we're talking about an older/larger startup, then you have a problem.
>As for Gates, he had the drive and interest to spend his time learning how to program and explore business while he was a kid. While most of his peers were likely using that time to watch TV or party. That's an essential difference and no amount of privilege is going to bridge that.

Dude his drive and interest was solely determined by his physical appearance aka the fact that he considered himself ugly. If gates could choose he would have been a good looking tv watching party chad. But he was an uggo so he statusmaxxed instead.
++ for Amartya Sen. I think he first covered this in the book Poverty and Famines, where he drives home the point that famines can happen even if food is available and even if food prices have not been driven up sharply. Modern famine is a failure of government (war is an obvious cause, but not the only one.)

http://www.worldcat.org/title/poverty-and-famines-an-essay-o...
Properly handling things is about reverting all side effects to get to initial predictable state from where you can start over. Context doesn't help here. What helps is isolation or rather structuring your program around lightweight isolated processes. Where you can be sure that anything within process boundaries doesn't affect any other process and so you can just restart it if something blows up in it.
Nobody knows if it's easier to build a commercial fusion power plant with the tokamak design or with the stellarator design or with another of less known competing designs or with another design that nobody has imagined yet.

Moreover, perhaps some of these design (including thetokamak and stellarator) perhaps are nice for a lab demo or a model plant that doesn't break even or a tiny scale plant, but they may not scale to a full power plant that can produce energy at a useful level. (That's why this is called "research", you don't know if it will work.)

So they are following the usual path that is allocating some money to a few competing groups with different ideas and hope that one of them will get something useful. The problem is how to distribute the money between the alternative approach, and the method is a mix of analysis of the proposals, the intermediate results, grantbaits, and politics.
If you're still having problems with the lead-acid battery, you might want to try swapping it out for NiCads at some point. The battery packs from cordless drills often contain these; they're just a bunch of 1.2v cells in series so you can always adjust the voltage manually.
That is a good point.

On-chain, the solution is to have an oracle provide a third vote somehow. Off-chain, the solution is for the seller to report the buyer and its address to the authorities.
If you are buying cars less than 2 years old from a dealer affiliated with specific manufacturers, and financing the purchase, you might be buying cars wrong. It depends on how rich you are. You only buy those cars if you could pay cash (if you wanted to), and eat the instant depreciation.

The cost of those fancy showrooms, flag-and-tinsel-bedecked lots, television and radio ads, and well-dressed sales staff is baked into the sticker prices of the cars. If you instead buy from someone that gets their stock from auctions and trades, and has to get a small-business loan to even offer dealer financing, you don't have to pay those costs. With those dealers, you can always get better financing on your own than they could offer you, because they have to make money on the financing side as well as the sales side in order to stay in business. And they might also include shady clauses like requiring tracking devices in the car for possible repossessions, which might happen after a single missed or partial payment.

I actually forgot that people can get repair service and financing from a manufacturer-affiliated dealer. They do advertise 0% financing on television sometimes. They still have to make money through another part of the deal in order to do that. No dealer is sitting on a pile of cash large enough to self-finance all their sales. Where is that money coming from? It's still you, the customer. If you somehow avoid paying it now in cash, you will pay with the value of your time and personal information.

In the financing application, you have to tell them the information they need to assess your default risk, which is also the information they need to figure out how much car you can afford now, and how much you can likely afford in the future. If they can't leverage that on the current sale, you have still given them everything they need to advertise to you, and then upsell you next time you come back. That's my whole point. The bank doesn't care what car you drive, so long as it gets you to your job, and you make the payments on the loan until it's paid off. The dealer wants you to make payments on more car than you can afford, of their brand, continually, until you die. The money you "save" on the sweet financing deal is (on average) getting sucked out of your pocket from a different vector. You may be able to beat the average individually, but as a broad generalization over the whole market, I stand behind my previous statement. Don't take dealer financing, ever.

If you can't buy a car without dealer financing, you should be buying a cheaper car. Buying the best car you can afford with cash on hand, minus the projected cost of several months of maintenance that you set aside for it, is ideal. Otherwise, finance through a lending institution that does little more than place a lien on your title, and would have to sue to foreclose in order to take possession of the vehicle. The bank or credit union has no reason to hide the true cost of the loan from you, or to recover it by other means. Their business is loans, and the way they make their money from loans is clear to everyone.
For Intel: https://www.intel.com/content/www/us/en/programmable/documen...
I bet on the order of tens of dollars. I know that when I do my demo of amazon machine learning (another ML service they offer) it costs about $0.50/demo, which processes about 25k records.
Congrats on posting! I like how simple it is, but still gets the job done.
I keep saying this but personally I see bitcoin as a good way to transfer value, nothing else. As soon as you consider it that way, it does solve every issue you got with it.

You buy bitcoin > You send bitcoin > He get bitcoin > He sell bitcoin, all that hopefully happens in less than a few hours, to avoid market fluctuation the most.

The only wallet is at the exchange, hopefully for them, it's moving quickly too.

> I am supposed to lay out my entire financial history in a public wallet

Don't hold bitcoin, you make a wallet, you buy, you send, you scrap the wallet.

> trade with people who I don't know

Cryptocurrencies doesn't solve that, HTTPS solve that, you solve that by trust. Sure the old ways to transfer money require less trust from you because you can always revert it by calling your bank, but then it's the other side that need to trust you (and he has much less to works with).
I wrote a bit about how to inter types here: http://jeremymikkola.com/posts/2018_03_25_understanding_algo...

Two things I see missing from your code: A current substitution and a unification function.

This paper might also be helpful to read: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.65....
You mean in a manner similar to the united states at the moment? :^)

China has some serious issues, but people acting like this is out of the norm is ridiculous. The US is afraid of Chinas rising influence/power and these sorts of articles attacking it are a common tactic.

Like, great - there's no explicit social credit system in the US on an app where you're barred from leaving the country because of who you're friends with. Instead, there's an implicit one where the NSA gets to spy on all your shit (similar to what happens in China), where you're arbitrarily put on a watch list or no-fly list (similar to China), and depending on your ethnicity and/or family you may get unjustly targeted by the state with no real way of defending yourself (again, similar to China).

I'd almost prefer it be done the Chinese way, because at least then the problem is obvious. As it is in the states, like half the country can't even fucking agree that maybe there might be a problem with women & minority rights, immigration, police brutality, etc.
Yeah obviously, but I find it strange that this would be a big issue when you're doing something like going round changing all your TRVs. Drain the system, do the replacements, re-pressurise. It is a weird way of approaching the job from the perspective of how TRVs are sold where I come from.
Does anyone else flat out refuse to read The Register articles? I feel like I’m being gaslighted or slow trolled every time I do.
Enterprises will love this. There are so many legacy app flows kicked off via sftp/scp file drops. Being able to hook into those via lambda events on the associated S3 bucket will create a whole ecosystem of enterprise spaghetti for years to come.
TenFourFox dev here. I certainly agree that security through obscurity (especially on less common architectures) is underestimated in terms of the protection it offers, though it should never be the only security means, of course. However, I think the biggest practical risk to unusual arches is through cross-platform-capable code. If you'll pardon a minor shameless plug, for the security advice I give Power Mac owners using TenFourFox, see

https://tenfourfox.blogspot.com/2017/11/the-security-blanket...

As you'll see from the article, aside from the OS X-specific exploits on Power Macs, components capable of running platform-independent code such as Java, Flash and Office macros are probably where the biggest risk is. And, of course, web browsers. Unfortunately these are some of the most common types of applications for people to run and very few are maintained on Power Macs anymore.

The good news with Talos and other P9 systems is that they're now running supported and maintained software and most of the applications people want to use "just work," so that problem goes away.
It is more than just the budget.

F# isn't properly part of the .NET team, hence only VB.NET and C# get all the goodies.

They didn't even took F# requirements into consideration when doing .NET Native and the whole VS refactorings, leaving the F# team to play catch up on their own.
My guess is that they are really bad at de-duping products. Product ids vs skus and all that jazz is historically not handled well in recommender systems, and those product not recognized as variants of already purchased products end up being the closest in the "graph" to be recommended so shoot to the top.
the precedence
> Facebook played fast and loose with privacy for over a decade.

It is their only business model, what else they can do?
I do not fully understand your point. If you have free software on your phone you can do anything, including protect yourself from a neighbour/partner. All it takes is to find the software and install it. If your phone supports GNU/Linux, it's surely a solved problem.

Apple creates a walled garden, where they decide what you can and cannot run on "your" device. Even if such devices are useful in specific circumstances, the problem of freedom is still there.
I see this advice bandied about, and I have to assume that I've just never hit on one of those companies, or there are somehow two classes of interview candidates. Because I'm 0-3. And, when I think about it, hell no I'm not handing a cap table to some senior dev candidate. Higher up the chain, maybe, but not some NCO[0] with a fancy title.

Taken another way, when companies refuse to give you the numbers to properly evaluate the potential value of equity, then you properly value it at zero and ask that salary be bumped up. And, yes, that works and much better than asking for numbers you'll never get.

[0] https://en.wikipedia.org/wiki/Non-commissioned_officer
Am I the only one, or does it sound like someone tipped them off? How would one know that this guy had these documents, and be keeping a close enough eye on his travel?
All the 10,000 arguments about "the US does this". Yeah but the US is a democracy, and criticize it all you like but that means something. It means that Trump is there because the average American (accounting for the broken electoral college, voter suppression etc) wanted him to be. And that there are real limits on his power, and a term limit.

Feels like the critics of western democracies who rightfully want to improve them have forgotten that there is a worse level and a distinction between a capitalistic system that is very rigged and one in which the average guy has absolutely no power and no recourse to injustice. Random NSA people knowing stuff they shouldn't isn't the same as 1984 on machine-learning steroids tracking your every thought.
A dilution event is always bad for the current stockholders. Of course getting investor money is a positive, but it can be a bad deal or the money can’t be wasted just leaving you with less overall ownership.

Don’t also forget you can have down rounds that can lower both your ownership and your share price.
There are a handful of services out there that do this, I know because I've needed it on multiple occasions. It's nice that Amazon is providing it in house now, but it just reminds of me the last time I went to re:invent and walked through the vendor area and thought about how many of these companies are four dev cycles away from Amazon producing a baked in competitor.

Hard to make a B To B Amazon tool these days.
You missed the relevant part where the deck is not available
You should never spend $825K on a domain – but here’s why I’m glad I did
it's hungry.. very hungry
That's actually really useful but I'm just gonna say it:

#1. use emacs
The machines are still learning...
At least in the US you have constitutional rights and somewhat efficient check & balances to limit abuses.

On the other hand, I still agree that the phenomenon of rating people based on data is something that happens in the West too. Whenever you buy insurance, be assured that your whole life is scanned before you get a price.
The US being "afraid of China's rising influence/power" is the perfect cocktail for war. All it needs is a 3rd party to ignite it... Let's hope we can work together.
Even outside of US, 40h is standard, some places have 35 hour work week. 30 is less than 4 days a week, or 5x6h. I actually think that _might_ be more efficient _and_ healthier, but it's unusually little, I think it's a typo.
Ask HN: Should an arrow function be used as a pure function?
Do you consider an arrow function to have side effects since they don't have their own 'this'?

"In computer programming, a pure function is a function that has the following properties:
- Its return value is the same for the same arguments (no variation with local static variables, non-local variables, mutable reference arguments or input streams from I/O devices).
- Its evaluation has no side effects (no mutation of local static variables, non-local variables, mutable reference arguments or I/O streams)." [1]

"An arrow function does not have its own this; the this value of the enclosing lexical context is used i.e. Arrow functions follow the normal variable lookup rules. So while searching for this which is not present in current scope they end up finding this from its enclosing scope." [2]

[1] https://en.wikipedia.org/wiki/Pure_function
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
The code that runs on your bank and "legal system" was written by people who make mistakes as well.

Writing smart-contracts isn't easy (and I author and audit them for a living...) but it's doable.

Your trust on a new technology grows as you get used to it. Anecdotally, I remember how hard it was to get OS virtualisation accepted in corporate environments just a decade ago and my last enterprise customers where already using all form of virtualisation (net, storage, os, etc)..
UNIX / C won, and, like the Smalltalk vendors, Lisp Machine companies believed their own hype and thought the superior product (with a high price) would win them the day. Turbo Pascal and C were good enough, followed by good enough from Microsoft, followed by good enough Linux / BSD open source.

I do wish someone would revisit these machines in the modern era, but it looks like the more conventional RISC-V will be the Linux of chips. It seems like you could build a Connection Machine on a chip these days.
I also think this downplays the liquidation preferences that come with taking venture money that also brings dilution.

A "billion dollar company" that raised $500M with a 2x liquidation preference will put many fewer dollars into an individual employee's pocket than a $100 million company that only raised $10m.
Entailment: The Logic of Relevance and Necessity suggested in the article as further reading on relevance logics is on the expensive side. If you can't get hold of it, the Standford Encyclopedia of Philosophy goes on at some length into the subject of relevance (or relevant) logics:

https://plato.stanford.edu/entries/logic-relevance/

And also the related subject of necessity and sufficiency:

https://plato.stanford.edu/entries/necessary-sufficient/

Btw, all these are issues with material implication in propositional logics. I'm not sure, but I think, in first-order (and, I guess, higher order) logics you can determine the relevance of premises to conclusions more easily, thanks to quantifiers.

For example, if I say that ∀x,y P(x) → Q(y), or even P(x) → P(y), it's easy to see that the premises are irrelevant to the conclusions (and if not, I can always add that x ≠ y and, in higher order logics, that P ≠ Q).

But, I don't know, there may be something I'm missing. Am I wrong about this?
Though, the data remains unauthenticated.

At least we get a private connection to a known entity though.
> If you have a suspicion that a company is breaking the law, you ask a judge for permission to inspect them.

Uh, no. The only person the UK Parliament asks for permission for anything is the monarch, and that's almost entirely a formality.

And, absent a US-style Constitution, what is there to ask a court about? Whether the action sought by Parliament comports with the law, which is the expressed will of Parliament?
Well cryptocurrencies do solve those specific issues, i.e. the ones inherent to centralised, government-backed financial systems. Of course, as you say, they introduce a raft of their own issues to deal with, but this would be a separate set that I imagine (in a reasonable economic system) would be hedged against by using our pre-existing financial system, and vice versa.
You are making a distinction that doesn't really exist in the UK. Parliament is the legislative body. The executive are members of Parliament. Until fairly recently, one of the houses of parliament was the highest court in the UK too. In systems with Parliamentary Sovereignty, Parliament is the highest body in the nation: it "outranks" the executive and the judiciary, at least in theory. The UK now has a Supreme Court, but it's much less powerful than the US version.
To be fair GitHub should be nationalised. This way people could be given accounts as future mean of production and also use them to participate in the Democratic process. It is a no brainer if you ask me.