skysight-inc/HackerNews huggingface dataset:
"But all the comments in response to the question are saying there's no point in checking the return code of print"

That's not quite what I said, and the difference is important. I said there's no point catching an error when you have nothing useful to do with it.

It so happens that the basic "print to standard out" is the extreme outlier of a function where you have nothing very useful to do with it in the general case. What are you going to do, print an error? Are you going to log it? Probably not, because if you have a log in the first place you probably aren't seriously using printing.

There are exceptions where you might care, such as a command-line program where printing is the major case you care about, but it so happens that the printing functions often have nothing useful to do with errors.

It is not the only case. I often don't log things terribly strongly during the time a socket is being shut down at some point in a protocol where both sides have agreed to shut the connection down, for instance. Or if I have a socket connection and the underlying connection fails, I don't need an individual log message for every concrete manifestation of that fact necessarily. If logging fails... uhh... what exactly is one supposed to do with that information in the general case?

So even though I use errcheck like I said on all my code, there are places where I throw the error away on purpose. It's clearly indicated in the code, though, rather than being implicit, since errcheck requires a "_ = erroringThing()" line of code. Except for printing to stdout, because as a special case, that's just too common a case to worry about, even when one is careful enough to use a linter for everything else.
Usually I am loathe to mention them by name because it brings the spammers in like crazy but I use and have liked AllPCB. I found them on PCBshopper.com, which is a good way to comparison shop for the type and size of boards you'll need: https://pcbshopper.com/

I don't know who owns that site, but I think they have found a great little niche for advertising.
From outside of the US, it baffles me ( and I'm sure others ) why the US doesn't embrace governement based healthcare. We pay the same kinds of tax rates etc and don't have to pay for health insurance on top of that(though you can get extra health insurance for pretty cheap if you want). It's kind of like governement education which the US does pay for up to a certain point. Not only is it worth educating your population, it's worth looking after their health as well.

The amount of misery and unpayable debt it seems to cause people who live in the US seems really unecessary. Not to mention nearly everyone in good heealth has a certain level of anxiety about whether their insurance is good enough and will cover them.

Mind you guns also seem unecessary yet the general response to that seems to be, It's ok, we will live with our fear and everyone should be carrying guns and make it so everyone needs to be prepared to kill other people in gun fights. If you get wounded of course, then prepare for living the rest of your life in medical debt.. :I
The page doesn't tell me anything on how to contribute code.
An open source object storage server compatible with Amazon S3 APIs
I tried using DuckDuckGo many times over the past few years, but the results never enticed me to stay.

But for the past 3-4 months, it's been my default. Haven't felt the need to use Google Search even once!

Big props to Gabriel Weinberg and team!
Equivalent sales is a nonsensical metric between the two. I doubt their profit margin is 5x per device compared to the rift.
Energy Efficiency Across Programming Languages (2017)
nah, making stuff is easy, keeping it running and scaling it is hard. Most people just delay the hard stuff perpetually or abandon it all together in looking for something else.
maybe biking adds to the fact that not much obesity in NL compared to the US?
President Trump Accuses Google of Rigging Search Results Against Him
What about parents comments about the bots deficits? It doesn't really matter if the bots win if they can only win due to mechanical advantage imo.
Could we consider Pandoc a rough replacement for leanpub publishing tools?
Show HN: DressCode – A tiny Kotlin Android Library to change theme at runtime
I'd be very interested to hear more about your 2nd house experience as I'm currently considering building a similar-sized house using SIPs in rural Washington state. Ideally, I'd use a GC (if I can find a good one!) to get the building dried-in and then do the bulk of the finishing work myself. Do you have a recommendation for a SIP vendor?
That doesn't sound right at all, it's almost the opposite of the current situation. Only a small part of the Los Angeles sprawl is officially in the city of Los Angeles. Another hundred communities aren't officially called Los Angeles, but might as well be.
One thing that consistently blows my mind is how readily an external search engine creates a better index, with more relevant recall, by scraping the published static pages of Wikipedia, such that it outperforms Wikipedia's own search,

Wikipedia should be able to search itself better than any external entity, but cannot. Wikipedia, in effect, is blind to its own data, and can deliver less insight into it's own content than multiple external Search entities.

If I use https://en.wikipedia.org/wiki/Special:Search for anything, I get weaker results, than if I use search engines to locate wikipedia articles according to the same input string.

There's something wrong with that.
DressCode

Started playing with making a library to change Android theme at runtime. Still some work to do so its early days but works pretty well in my apps.

Most of the libraries I have seen use a lot of inheritance or provide some base class to override. This is pure Kotlin so it just uses extension functions to apply themes. It also persists themes and listens to Activity lifecycle to automatically recreate and apply a new theme to all activities if changed.

The library is tiny so not much to look at in terms of code but may be really helpful for anyone who offers themes in their apps.

Have a play, just wanted to see if there was an appetite for this kind of thing :).

Dai
> The original constitution was a very principled document

I know that's an article of faith in the American civic cult, but it's not at all grounded in fact. The original Constitution is a pile of pragmatic compromises between competing factions faced with an immediate practical crisis, which they approached from radically different viewpoints and sets of principles.
Have you been following the quality of people running our government?

I mean, I know this seems like just a snarky political comment. But it's just the honest answer. Our federal government is simply completely dysfunctional right now, incapable of solving anything.

For what it's worth, "Medicare for All" has been polling increasingly higher recently, due to more Americans being basically ready to give up on the current private system entirely.
Supersymmetry at a 28 TeV hadron collider: HE-LHC
TypeScript is really just JavaScript with intuitive type checking.
I suspect that you mean to say "trivial things like names".

But damn, SocialCops smacks of centralized social control. And then there's the biometrics-based national ID system. It's not unlike China. And perhaps for similar reasons. That is, extreme diversity, and intense divisiveness. Maybe that's the only viable option, but if so, it's sad.
I noticed that bots developed this strategy of using salve while being hit by the tower. Humans used this while tower diving in several games to kill a enemy with low HP. Casters mentioned that - it was first used by OpenAI but I have no way of confirming that.
Was the full list of heroes supported in theses showmatches? Or was this also restricted to a subset of, say, 15 out of 150 (or whatever that number is)?

The announcers/casters were a bit ambiguous about this, AFAIK they said something like : "the teams agreed on a predefined, balanced list of heroes before the game...", and there was no drafting.

(I'm not native speaker, and I don't know much about Dota2 rules)
> bitcoin is a currency on top of which you can build paypal-like product

I can't, I don't have time. No, I understand you mean "somebody might build" - but so far, nobody did. When it changes, the evaluation changes too. So far, we aren't there by no means.

> there are many things trivially done in bitcoin that are absolutely impossible in bare usd

Sure. How many of them are necessary to a typical credit card/cash user?

> one can use multisig escrow accounts to implement paypal-like dispute resolution

You seem to be under impression dispute resolution is a technical problem in search of suitable algorithm. It's not - it is a social/service problem which needs careful balance between trust to various parties and careful calculation of how expensive each tweak to trust levels would be and how to keep fraud in check without pissing off too many people. It's not an algorithmic problem (at least not until we have strong AI).

> can't run away with your money

Which also means no possibility to curtail fraud - if the middle-man can't reverse transaction, what prevents me from selling you an iphone, sending a brick instead and leaving with the money? Or, alternatively, what prevents me from buying an iphone and claiming I got a brick instead, and getting my money back and a free iphone?

> can't block the transaction against will of both participants

Which also means feds close it after a month because it is being used to trade drugs. And seize all the funds there (if you're adventurous, you can sue the federal government for the return of the funds - maybe in 10 years you'll even succeed!)
There is no mechanical advantage, they have their response time capped at 200ms which is around an elite player's reaction. They can definitely strategize for ganks and the future reward function anticipates high reward roaming/ganking plays.
Get Linux (2004)
This is a big business for hedge funds too, not just advertisers. Every Uber receipt, every Amazon purchase, every receipt that hits your email inbox. Aggregated and tracked at the product SKU level. That is pure gold for investment research. Few sources of data can match what email inboxes provide.

E.g. Superfly Insights [1], Return Path [2]

[1] https://alternativedata.org/data_provider/superfly-insights/

[2] https://returnpath.com/downloads/know-email-data/
Russian PR Stunt Proved How Stupid Western Media Is at Defense Reporting
What Is the Future of Smart Home Technology
Oh... that's not even their piece de resistance. Watch this one:

https://www.youtube.com/watch?v=LM0T6hLH15k

These folks lied straight on face of everyone like there was no tomorrow.
Does this mean the average American is shortsighted and stupid then?

“But the average American has less than $4,000 in savings, while 57% of U.S. adults have less than $1,000 to their names.”

https://www.usatoday.com/story/money/personalfinance/budget-...
this article isn't about antibiotics, it is about a specific class of antibiotics called fluoroquinolones. This overly broad simplification, it's like saying all cars are bad because one manufacturer's specific line of cars is prone to a failure. That doesn't mean we stop driving all cars. We address that specific manufacture and specific line of cars.
Also the didn't the human team have full control over what characters were used? Doesn't say much that the bots weren't able to strategize late game when they weren't allowed to pick their optimal lineup. The bots should have got to pick not the other way around.
How good is symbolic math in comparison to Mathematica?
Social network analysis of the 2017 “Summer of Hate”
A year ago I would have made this exact same comment. But here we are. All depends on who you're exposed to, I guess.

Could you be a little more specific about what my thoughts are on privilege as an abstract concept? I've been wanting someone to tell me about that.
Personally, for your use case, I'd just use Patreon. All the best aspects of donation and subscriptions with none of the downsides. Well, you do need to advertise, but that's inherent in any donation scheme.

Donation isn't the answer I have in mind. In the first place, there's no social onus placed on users of the software to provide compensation. I love the Free Software Foundation, and I agree with its goals. But I believe in the need for two ecosystems, three I guess if you include proprietary software. Free software and open source.

The main reason is I don't think the likes of SourceForge should be allowed to sully FLOSS with adware / malware and redistribute useful pieces of software. The business value of software needs to be accommodated. If you really do have a pure altruistic motive, coupled with the willingness to accept donations, then sure, knock yourself out.

But as an individual software developer with an economic motive, intellectual property is not a hostile concept, it's one that pays the bills. Idealism in this space isn't all it's cracked up to be when you're all by yourself.

If you have a profit motive, if you want to and are willing to treat your development activities as a service you're providing to the public, rather than artwork you release purely for public benefit, then you should use a standard dual-licensing scheme.

Note that my argument here concerns software tools. Tools aren't libraries. Tools are complicated, feature-rich graphical applications that can have business value as products all of their own. Tools may use dozens of libraries. Libraries generally don't depend on other libraries other than the standard one and if they do they typically vendor them in or statically link them.
'Bakfiets'. Bike with a 'bak', which would be a container?

They are mostly rentals. I think IKEA rents out bakfietsen too.
Some tips to minimize a/c usage with zero loss of comfort:

1. You only need you to be cool, not the entire room or building. Find solutions that cool you - including wearing cool, loose-fitting clothing. It's absurd to warm yourself up by trapping body heat and then to use an a/c unit to cool the entire room / suite / building in order to cool yourself down again.

2. Use fans; enjoy the pleasures of a gentle breeze. Convection is a powerful thing, and unless the ambient air is warmer than your body temperature, the breeze probably will cool you off. The new tower fans are especially effective and user-friendly - they aren't ugly, you don't need to attach them to anything and they don't need much clearance, and the breeze is well-attenuated. Their effect is surprisingly powerful.

3. Imagine what temperature would be comfortable for sitting outside, in the shade, with a breeze (see #2). 26-27C (~79-81F)? A little lower? A little higher? Maybe even experiment a little, and set your thermostat to that temperature.

4. Never turn on the a/c if it's cool enough outside (see #3). If you need more air exchange with the outside, get an exhaust fan.

5. Open the windows when it's cool outside, then as soon as it starts warming up - probably at sunrise - close them. (I wish there was a home automation system that would do it for me). Even on ~30C+ (86F+) days, that's been enough to keep the place cool until mid-afternoon.

6. If none of that is enough, turn on the a/c. I'll bet you won't want it nearly as often.

I'd guess that we've cut our a/c usage by ~80% with zero impact on our comfort.
What is the language lineage? Is it functional or imperative? Dynamic or statically typed? Garbage collected or not? I wish every introduction to a new language would contain that kind of info, it'd be so much more informative.

Edit: missed one, natively compiled or VM based.
It's not just image recognition though. Gathering relevant information requires making non-trivial decisions about what units to click and how to move the camera around in an useful way. Those are definitely interesting problems.
I'm interested in similar but in BigCo's, aka internships or mini-sabbaticals for experienced/mid-career devs.
I love FreeBSD. But I wish more hardware vendors support for FreeBSD.
Not intentionally but this happened to me. I have bad adult asthma and spent 6hr in an my in network ER (on the advice of my pcp) a couple of years ago. Got some meds a chest X-ray (turns out I had pneumonia!) and got sent home stablized. my bill for the 6h (with BCBS insurance) was ~$3k. Last year I was in Japan for 2 weeks and again got sick. After avoiding it for a few days I again went to the ER and got the same treatments/test (this time it was only the flu). Bill (no insurance at all) $200. Round trip direct flight to Japan from my house is $1300 and takes less then a day. Makes me think what I might want to do next time...
>In Fortran 90, user-defined procedures can be placed in generic interface blocks. This allows the procedures to be referenced using the generic name of the block.

I don't know Fortran, but I'm fairly sure that you just googled "fortran generics" and pasted the first result without checking it :)
AG Platfrom Free AngPow in iBET
It's more of an ignorance tax. And I for one am glad there are laws, regulations, and other non-market tools protecting me from hazards like sloppy construction, poisoned water, and preventable diseases.
Articles on LWN are publicly available the week after publishing.
I think I was a bit too terse, but I really feel like it's on them to explain themselves better. They link to this video. https://www.youtube.com/watch?feature=player_embedded&v=glW_...

That does not describe anything related to a mesh network. It appears that the people running it are joining nodes in a mesh network, but they don't seem to be encouraging you to join in a mesh network.
I'm fond of 1 sq mile ~= 256 hectares.
Thanks! We've updated the link so users can get there right away.
The caster team played against the iteration of the bot that was trained on a different version of the game that's very unlike the normal game (multi-invincible couriers).

Multiple invincible couriers makes the game very similar to the 1v1 show match last year where the strategy of just out-live the opponent wins. The casters have never played that version of the game before, and wouldn't know to use that strategy.

The more interesting part was, the bots attempted to use that very same strategy in the single-vulnerable normal version of the game which was drastically less effective; you could only ferry out consumables at 1/5th the rate as before and the courier could be killed so it wasn't a riskless strategy like it was before.
When I'm in a bad mood and want to piss off random people I just drive the speed limit.
You completely ignored all the other costs of owning a car: insurance, parking, maintenance.

You're paying much, much more than $0.35/mile my friend.
I'd like to take a moment to draw your attention to a short excerpt from the HN Guidelines:

"That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."

https://news.ycombinator.com/newsguidelines.html
> I think it's because now identity politics are being used in a way that they feel threatened by.

On the contrary, white people are so not okay with white identity politics that the mere accusation of racism is a stain which will taint a public figure for the rest of their life. And actual, documented racism is usually a career ending event.
why would i go through all this effort just to let some stranger torrent iron man on my internet account
State-Sponsored Trolling: How Governments Are Deploying Disinformation
I don't remember the details but I remember some people were surprised by some of Zuckerberg's comments and thought it could open them up to regulation. Maybe it wasn't the comment about publishing.
The GP poster is saying that cell position tracing is available, universally, because of a requirement for it by law-enforcement.

That data is just not exposed through the particular API needed for 911 operators to access it.
Github pages supports TLS even for custom domains now, via Let's Encrypt. At this point, I don't think there's any excuse anymore for having a static website without TLS. Either use Github pages, or just use your favorite hosting provider and put a CDN in front of it.

Note: I'm not affiliated to Github, but I've used them multiple times, and just recently discovered they now support TLS. If you want to see an example: https://solokeys.com is hosted on Github pages.
As far as we've seen the bot only knows a single strategy. In the mid game, group, push lanes, push lanes, push lanes. The games vs the caster team had multiple differences from standard dota that allowed this strategy to be effective, such as the multiple invincible couriers (no need to stop your push if you have infinite heals) and a lack of split push ("rat") heroes allowed that would force the ai to abandon their pushes.

The games they won weren't actual dota games - they were a simplified subset of dota that overweights teamfights and mechanical skill - exactly the subset that we'd expect an AI to be best at.
It's not a symbolic math program, although there is a symbolic math package for it, that I haven't tried.
Biggest problem with this solution is to trust VGS capability to secure our sensitive data. Which is a hardest thing to do in the first place. All it takes for a disgruntled employee(given company's practices cited in the posts below) siphoning out the data. They are really tiny enough to pay for the damage, making their liability claim render useless. However, given the trivial nature of this problem and interest, I decided to open source a solution which avoids liability concern.
> From outside of the US, it baffles me ( and I'm sure others ) why the US doesn't embrace governement based healthcare.

The US has had majority public support for fully-public healthcare for at least ~30 years.

What it has lacked—even among politicians championing “healthcare reform” like Bill Clinton and Barack Obama—is politicians willing to challenge the insurance industry even with the backing of majority public support.
They reversed the characters used for the 2nd game. The pros considered the matchup to be fair (no draft advantage to either side).

It's argued that drafting is one of the major components of competitive play and more often than not, draft advantage wins games, but that wasn't a factor in this match.
Yay, more tech churn...
Go and OpenCV
I mean yeah, this version of the bot had drastically less time to train. Only 6 days compared to a few weeks for that version. I know how the game works, I mentioned the couriers already.

I 100% disagree that the invincible couriers make the game "very similar" to the 1v1. There's many more layers of engineering that went into that version. The bots had to learn drafting, cooperation, highground pushing, Roshan, vision, invisibility, etc.

I'm amazed you can trivialize all this as a 'joke'.
My point is that both executives and workers benefited from globalization, advances in telecommunications and transportation.

Unfortunately to American workers, it turns out that the workers who enjoyed the upside were some of the poorest in the world and not the very expensive American workers of the mid-1900s.

Fortunately to American executives, they started the race ahead of everyone else and with their multinationals corporations captured most of the upside from globalization.
Scary about .pfx on Desktop. Working with an IT vendor for a recent Windows software deployment, I noticed their techs kept saving .pfx, .pem/.crt etc. files to the Desktop directly from browser. Until I read this, I thought I was just being paranoid about deleting these files after the techs were done.
A Kindergartener’s Best Computer Is About to Die
The problem isn't that they're bought with $10k. They're approached and told "Take this money or we'll give your competitor $5 million to campaign and take your place". And they know they follow through with the threats, so they take the $10k.
FWIW, I live in Portland, OR and there are billboards up in town here with this text:

"Portland, is your white fragility showing?"

https://www.wweek.com/news/2018/04/24/in-true-portland-style...