skysight-inc/HackerNews huggingface dataset:
The confusion is entirely mine. Your clarity is appreciated.
Depending on the language and values, the latter does not mean the same thing.

<?php
$x = 1;$y = 2;

function test1($x, $y) {
if ($x) {
return $y;
} else {
return false;
}
}

function test2($x, $y) {
return $x && $y;
}

var_dump(test1($x,$y));
echo "\n";
var_dump(test2($x,$y));
> In the US it would be considered fair use if you print a website's content for personal use.

I don't think that's true.

But...

What's interesting about web sites is that visiting them makes a digital copy for personal use. That copying (in your browser and on your monitor) might be covered by the site's EULA, or it might not. If the site's permissions aren't granted explicitly, or they don't differentiate between visiting and printing, the bounds would seem to be gray and a suit against someone printing something from a website they visited might be hard to win.
sel4 is also absolutely tiny on purpose. Imagine the man hours needed to verify Firefox.
From my perspective, he is not completely wrong on China for sure.

But I'm honestly not sure why his administration seems to also be targeting allies such as the EU, Canada, and Mexico. I'm sure there are "quibbles" with trade on trade with these countries, but my impression was there were no major problems there.

The other problem with Trump's tariffs IMHO is what you point out: there is a lack of coordination with allies, and a general chaotic nature.

Overall, uncertainty on this front probably isn't the best for business planning, given that the tariffs have more of a whiff of generic isolationism than punishing any misdeed.
i've spent most of my career contracting. my attitude is: i care exactly as much as i'm contractually obligated to. i don't accept contracts with these kinds of conditions.

i have a permanent position atm and my no-nonsense professional attitude works fine. its not like i'm anti-social, but i prefer to keep things light with people i don't have intimate relationships with.
The ordering of the questions [0] strikes me as lending to a priming [1] effect, the first two questions evoke memories of media reports of violence on both sides, which makes the leap to civil war seem more likely by the third question.

[0] http://www.rasmussenreports.com/public_content/politics/ques...

[1] https://en.wikipedia.org/wiki/Priming_(psychology)
What Is Serverless Architecture? What Are Its Pros and Cons? – Hackernoon
or they will talk to it like many people talk to "computers". They won't use grammar, they will speak louder, they will slow down, and they will try to keep the conversation as simple as possible fearing that the system can't handle anything else

So, pretty much how we've trained ourselves to use Google, the search engine.

Nobody types "I'd like to know what the best way is to braise pork with white wine" into Google. They type "pork recipe braise wine" because we've been trained by Google that this will produce better results.

If Google's current search worked as well as it claims Duplex will, then we'd finally be getting somewhere. But Google's taken its eye off the ball.

Right now, at least for the things I search for, searching on Google is like playing an Infocom game.
Oh man, those tilt-shift 3d visualisations...drool
I dislike articles that do this, but this post explains what it is at the very beginning:

> To get you up to speed on Peril, Peril is a tool that takes GitHub webhooks, and makes it easy to build one-off actions. It does this by having a per-account settings JSON, that connects JavaScript files to events from webhooks. So, for example, you can write a rule which runs when closing an issue in GitHub that looks for associated Jira tickets and resolves them. Peril provides no implicit actions like that, it instead offers a JavaScript runtime environment optimised to this domain so you can make actions to fit your needs. Like a collection of single-file probots.
Chances are they wouldn't have been able to make the cross reference anyway, different departments etc.
As much as I love media-rich reporting, sometimes I just want to scroll and read. Currently on crappy hotel WiFi and this article is to hard to read (watch?) on this connection.
> The report notes that Fort Lauderdale Fire and Rescue Department found the Tesla "fully engulfed in flames" at the crash scene and extinguished it with 200 to 300 gallons of water and foam.

Water + lithium fire, smart. I'm surprised it was put out successfully to begin with. Probably it died on its own, and got restarted with the water.
Ltu, lambda the ultimate
Is there a text version? The "multimedia" presentation is pretty annoying.
Yes, Slack is down, but it will be ok
Because talking to robocall like that is annoying as hell. Not to mention fail rate is high (at least for my voice).
We use Slack for everyday company wide communication/ announcements and Riot for encrypted secure communications (you can host Riot yourself): https://about.riot.im/
While I didn't agree with Gruber, I could understand and see there are many reasons / incentives. Two possibilities

1) Getting excitement about a product before it's fully baked and ready

2) Evaluating consumer response to a potentially "scary" project (recall that a lot of opinion pieces came out after I/O mentioning how unnerved some folks were to the idea of an AI voice mimicking human speech "ticks," like "umm"'s or "ahh"'s.
I have heard this called early-returns. I like to write code this way too. Proponents of one-return-per-function probably write code in languages like C which does not have GC or RAII so having only one exit point makes it easy to ensure all resources allocated by the function have been released.

There are ways to do early returns in C without duplicating resource releasing code though, using gotos (it's one of the few cases where gotos make sense, IMHO). Code looks like this:

int aFunctionWhichMightFail() {
int result = FAIL;
Foo* foo = allocateSomething();
if (!someFunction(foo)) {
goto fail;
}
moreWork(foo);
result = SUCCESS;
fail:
releaseFoo(foo);
return result;
}

The Linux kernel makes heavy use of this.
I don't get why people get so upset about C++ optimizations. They are by nature optional. If you think an optimization is dangerous, just disable it. That's why compilers have optimization levels, so you can select what you're comfortable with.
Well the advice pretty much boils down to "HTTPS is Easy (when you pay someone else to manage it for you)!" And maybe that's good advice but at least be upfront about the actual statement.

"Web development is easy! (when you pay Squarespace)"

"Payment processing is easy! (when you pay Stripe)"

"Email is easy! (when you pay FastMail)"
None of those are mutually exclusive. The US has a great deal of heavily-automated manufacturing facilities. That's not expected to change. But nor does anybody expect the US to try and recreate the electronics supply chain domestically.

The parent comment's phrase "higher value stuff" is referring to higher-value Chinese exports. Focusing on electronics, for example, the majority of hard drives are produced in China and Thailand. And while Foxconn is building a $10bn display panel factory in Wisconsin, that's basically a drop in the bucket compared to electronics components manufactured in China and other Asian nations. More importantly, that display facility relies on a supply chain that's heavily dependent on Chinese (and Asian in general) components and raw materials. As are many of the components in the robots and hardware used by automated American factories.

It'd take a truly mind-boggling level of investment to recreate the industry supporting that supply chain in the United States with very little hope of being competitive if that's what someone is hoping for. And while protectionist policy could be used to help shift that analysis, it'd need to be draconian enough that the Smoot-Hawley Tariff Act of 1930 would look positively minor. Because building new factories (and the factories to support those factories) can take years, you wind up with a multi-year transition period at best (more realistically, decades). That's a multi-year period where electronic component costs skyrocket and affect every single aspect of the American economy. All so that, in the end, we can pay significantly higher prices for those components. In terms of economic policy, it'd be less damaging to take the equivalent investment, printing it out as cash, and using it for the world's largest bonfire.

As for the clothing industry, that's a transition that economists fully expected. The thing about developing countries is that--at first--you've got lots of cheap, unskilled labor. Clothing and textiles are two of the industries that are all but tailor-made for a comparative advantage in that scenario. You use that cheap labor and foreign investment to industrialize, build up infrastructure, and pour every dollar you can into education programs. Eventually, that means you're going to lose your comparative advantage in certain industries. This is a bit of a simplistic overview, but the point is that losing certain clothing exports isn't necessarily a bad thing in itself for China.
What is the threshold these days for flagging something a dupe? I clicked that expecting to see a post from, say, 5 days ago; I found one from 78 days ago.
Does Windows have an equivalent to Cathode?

https://itunes.apple.com/ie/app/cathode/id499233976?mt=12
e.g. using a Carl Sagan quote, rather than addressing the authors argument.
No, just have some basic knowledge about how your compiler works and make decisions accordingly. Every major compiler lets the programmer specify exactly the tradeoffs you want. C/C++ simply don't hold your hand by default and let you get the best (reasonably possible) performance if you so desire. That's exactly the way it should be.
The dark truth is I suspect we're moving in the opposite direction. Abstraction layers designed with that "chill, it's just a %s app" mindset are making their way into safety critical applications.

Eventually somebody is going to die because their pacemaker decided to throw cycles at mining monero.
i'm not sure how "not sharing my emotions" and "being non-social" are connected. i socialize with co-workers, but we are acquaintances for the most part. i reserve sharing my emotions for intimate friends and significant others.
Cellular cybernetics is about to become very interesting.

https://en.m.wikipedia.org/wiki/Symbiogenesis
Haven’t you heard everything needs picture stories now, if not video? Text is so outmoded.
But software preference is a very subjective thing - it's better not to venture into analyzing it if you've mostly been working with a single OS.

As a Linux user (who also owns a Macbook), I find OSX to be a weak substitute. Many features (that we take for granted in Linux-land) require downloading binaries from unknown sources, vastly inferior package management, can use 32 gigs of RAM, relative lack of server-side packages, installs and updates take longer, poor support for NVidia etc. But this is all just my opinion - I'm quite used to running Linux.

Windows is actually a fine OS too - just different. In fact, running on an uncountable number of hardware configurations is a feat of engineering. Not to mention backward compatibility.
Omidyar backed company receives two patents for smarter microwave oven tech
IIRC Foxconn built the Wisconsin factory was symbolic and kind of built almost as a favor. They even changed the ground-breaking date to accommodate Trump being there.

Point being that no, I don't think one $10 billion plant is indicative of any real kind of economic shift, any more than $5 billion spent by Apple on factories is turning the tide of manufacturing offshoring.

The Pearl River Delta has an enormous ecosystem of factories, companies and deeply interconnected supply chains valued in the trillions and both this factory and anything Apple build will be heavily reliant upon it for components, whereas vice versa is not the case.
The snark is well deserved. The article's title is condescending and wrong, setting up TLS isn't "easy," and claiming otherwise is unproductive.

This is nothing but a glorified ad for CloudFlare, and doesn't prove that HTTPS is "easy" but rather using CloudFlare's package offering is easier.

I like Troy Hunt, but this isn't one of his best.
Object stores unfortunately innovate on their APIs instead of their implementations. I wrote S3Proxy to bridge the gap between S3 applications and a variety of object stores including B2:

https://github.com/gaul/s3proxy
I don't really agree. I don't think there is much difference between reading code you wrote a few weeks ago and code someone else wrote - at least not in this context.
This was like all the negatives of a slide show mixed with video and some text. I struggled to make it through.
They recently pushed out an iOS update for Messenger that crashed to springboard any time you tried to resume it from background. It took a couple of hours to get a new build up, plus however long for affected users to all install the new version.

I'd love to hear the story of how that made it through testing.
Justinmind’s free Mobile Wireframing UI kit is now available
Zeroing In: Zcash Sets 2-Year Course for Better Crypto Privacy
Your comment resonates with Maslow's hierarchy of needs on a digital level. Society's primary benefit is safety and decentralization creates the internet's base offering of security
"Let's Encrypt doesn't help people redirect to HTTPS, add HSTS, configure the versions of TLS they support or fix HTTP references in otherwise secure pages."

So, this is only true if you squint at the problem. In one sense Let's Encrypt is ISRG's Certificate Authority project, and it doesn't dice vegetables OR pick up dog hair. But the wider Let's Encrypt ecosystem does help you with lots of this:

* If you use Certbot (the hugely popular EFF maintained "reference" client for Let's Encrypt) with popular servers like Apache you get options to switch on HSTS and CSP: upgrade-insecure-requests

* If you use a bulk host, as a great many of Troy's target audience do, they either already have a single button push (easier than Cloudflare) "Get me free SSL" or they could but they've chosen for commercial reasons not to enable it (in the very popular CPanel a hosting company has to go out of their way to ensure this is disabled if they want to instead upsell customers to paid certs and squeeze a little more cash out). "Go to Cloudflare" and thereby centralise things even further is definitely the wrong choice in this scenario.
I agree. There is some priming in the cadence of the questions.

It's also likely that given the state of civic knowledge and education in the country that respondents conflated something like "violence" or "minor fighting with a political tinge" to "civil war" without really understanding how immense of a thing a US civil war actually would be.

But still, to me, even the idea that a much smaller percentage of Americans (let's say 15%) could imagine a civil war happening in the next 5 years was shocking on its face, and worthy of awareness and discussion.
I don't follow -- but I'm curious what you mean?
My layman understanding is that the WTO is not an executive organisation, but an independant arbitor that decides on basically who’s right and who’s wrong.

From the decision, each party can discuss a settlement, and if no agreement is reached the wronged party is free to apply whatever retaliation it judges fair to the wrongdoing party.

The WTO’s decision would serve as a backing of the retaliation, to prove they are not just arbitrary.

In that sense China breaking the rules is a issue with the “victim” country who needs to retaliate if no other means is available, with eventually help from ally countries if they want to make an example.
sel4 is also the work of a very small handful of people, with a lot of the verification code hand built. A huge chunk of the work needn't be redone, just like you wouldn't need to rewrite a c compiler for every c project.

So yes, they kept the verified code small, so that they could focus on all of the tooling. I'm unconvinced that formal methods intrinsically can't scale.
>But people reading you should understand that companies don't locate production in China for low cost reasons, they do it as to gain access to the consumer market.

"the share of Nike shoes made in China fell off a cliff, going from 32 percent in 2012 to 19 percent in 2017."
Plenty of Unix tools work in WSL (and plenty worked through Cygwin before that).
Exactly. It's become fashionable to decry the lengths to which C/C++ compilers are able to go in the pursuit of performance because of "safety" issues, but the advantage of letting the programmer fully control every knob in the chain is immense.
While I'm glad that they're increasing their donation (and donating at all), I'm surprised it's only to $0.5 million per year for a company as big, profitable, and Linux-dependent as Google is. Though I suppose they also donate labor, which might not be quantified publicly.
EevBLAB #48 – The End of Tech Journalism on YouTube?
Unfortunately, it's out there, but you can't associate those previous messages with your new account.
Polychain Becomes First $1B Crypto Fund: What Happens Now?
> So your point is that a screenshot (one frame) of a movie that is copyright protected would be equivalent to reproducing the movie...?

No, my point is that "personal use" is not an exception to copyright law. Where did you read something about equating screenshots of movies with full movies?

You are not allowed to copy entire movies and claim it's legal because it's only for "personal use".

Screenshots are sometimes legal under fair use, mostly as long as you are making a parody or commentary.

Screenshots of movies are sometimes illegal. If you somehow had access to the next Avengers movie, and you leaked a screenshot by posting it to reddit, you might well get sued under copyright law.

Copying images from a web site falls into the same restrictions. It is not automatically legal to reproduce images from a website without permission, even for personal use.
Name a search engine that's better than Google. Nobody type "I'd like to know what the best way is to braise pork with white wine", doesn't mean Google can't give you good search result if you typed like that, you will get just as good result if you type "pork recipe braise wine", but its fewer words and more efficient to type.

It's less of "google trained us to type like that" and more or "We opted to use the more efficient way of doing that same thing". If Google didn't give us good results if we typed "pork recipe braise wine", it would be a pretty shitty search engine in my book.
there are a few UI issues with the website itself, but these maps are quite beautiful.
...because technology should adapt to humans, not the other way around.

These voice systems are annoying as hell, as shown by the fact that they have become a comedy trope similar to airline food.

It's bad enough to deal with them when you're initiating the call. Imagine being a business forced to interact with such a system because it brings in too much revenue to ignore.

I'd definitely spit in every soup served to a guest willing to annoy me just to save himself the hassle of a phone call.
Another Cmder user here - I actually find it to be superior to any terminal I've used on MacOS.
It is a fairly well-known fact that -- most of the time -- fewer lines of code translates to fewer bugs and decreased maintainability costs.

Moving from 11 lines to 1 line is, for me, vastly superior readability. And anyone who has been programming for a couple years at least would have no problem parsing the order of operations and precedence between && and || (logical 'and' is always higher precedence than logical 'or' in every language I've seen), but parenthesis are a trivial addition if desired.
"Print is dead"

-- Egon Spengler
Got about 15 seconds into this before deciding life was too short
Slack is text, channels, images, video, sound, search, audio calls, video calls, screen share (and interface share), bots, myriad integrations, and more. Calling it just "send text from one computer to another" is wrong.
Don't forget he still mostly recommends the configuration where you send your traffic unencrypted across the public internet from Cloudflare to you, breaking all your security guarantees and rendering the whole exercise pointless.
And those SRE's?

They use IRC.
Happiness is not something you find, it's something you make when you recognize what is missing in your life and you make that thing part of your life. It sounds like you're halfway there if you've identified what did make you happy.

If you enjoy your job, you're still well ahead of most people there too, even if it doesn't make you happy. Use your spare time to do the things you miss about working in the park, get outside, help people, etc. Maybe you could start a meetup.com group to give hiking tours of local trails/parks. Talk to a park ranger and find out if there's anything you can do with your group while in the park that would help the park.
Move Over Banks, We Have a New Singularity in Our Lives
Plastic recycling is a problem consumers can't solve
GDPR does not imply end-to-end encryption. Instance administrators on each and every service that isn't E2EE have the technical possibilities to read users' messages simply because they are not encrypted, and that behavior is GDPR-compliant.
Back in the Windows 7 days I used Cygwin with MinTTY. It was much better than what cmd.exe offered at the time.
I think only the very first version of the IntelliMouse was ambidextrous, all the rest were right handed, including the Explorer 3.0 that this appears to be based off of.

https://en.wikipedia.org/wiki/IntelliMouse
A Chevrolet Volt battery from a car used in crash testing caught fire while in storage [1]

I know many are quick to dismiss battery fires "because petrol cars do it all the time" but that is not the issue. One key difference is a lithium battery fire produces toxic gases that are more dangerous [2] which are more dangerous to bystanders and first responders.

A key reason these stories are noteworthy is because the technology is new and exciting. Plus many don't associate fires with batteries though Hollywood will likely provide an abundance of such excitement. So expect more stories of battery fires, especially surrounding AP accidents which are even more noteworthy but don't dismiss the issue because of petrol cars

Now in that previously mentioned Volt fire there is mentioning of powering down a battery as one solution. Is that possible with the Tesla system, actually is that truly a solution? I suppose the real solution is special holding areas created to store battery packs and cars from wrecks. Probably will require manufacturer's to take ownership of them

[1] https://www.popularmechanics.com/cars/hybrid-electric/a11865...

[2] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5577247/
I've disagreed with many of Martin Fowler's opinions. He assumes future changes will mirror current variations. That's often false. It's over-extrapolation of what's known as a pattern for handling a future that may not fit the current pattern.
I don't think there is anything virtuous about a single return in languages that have catch, finally, and garbage collection.