skysight-inc/HackerNews huggingface dataset:
I’ve used Python’s decorators for similar pattern. Syntax and scope is bit different but same structure in general level.
I think there is such a thing as overpaid when you have the janitor working for $15 per hour and minimal benefits [1] and you have your engineers getting paid $200k with all sorts of benefits and perks.

This kind of income disparity is completely unfair, and we haven't seen such high income and wealth disparity in the USA since the 1920s.

[1] https://www.theguardian.com/technology/2017/sep/26/facebook-...
I feel that we have such a high standard for google search result quality that we can get frustrated by such highly specific search result edge cases. Google search is not perfect, but its the best search engine out there by a long margin for almost 20 years.

There will be a subset of users who will bemoan user privacy but expect highly specific personally tailored quality search result. You can't have both and there will always be edge cases in such a difficult domain. The fact that so many industry heavyweights can't compete with Google in search result quality, says a lot about how good Google is. Does it has problems? Yes, no one is denying it.
Third possibility:
Google is pushing this narrative because Step Two of their Duplex scheme is to automate the receiving end as well. No need for any human interaction that way.
Isn't keybase.io just a way of storing public keys? If they go down, and you still have the private key, you can just sign a message saying "No, really! It's me!"

The issue with distributed systems that rely on public keys is the lack of options to turn to if the keys are lost or compromised. And yes, people will lose keys. Systems that rely on keys for identity need to figure out what options people have at that point to re-establish their identity.
> seems to imply some dismissiveness

Well, yeah, I actually thought it was pretty devoid of content even on its own terms. It spends a significant amount of time showing a barrista making a panda face out of the foam in a latte. It was very pretty, and in a different context I might even have enjoyed watching the craftsmanship, but that was an awful lot of screen time to make the point that coffee gets expensive along with everything else when you have hyperinflation.
Right, but there's a very big difference between "I'd prefer if my system dropped all unauthenticated incoming messages", and what I thought OP might have meant "nobody should be able to communicate without their state-issued ID attached".
35 Innovators Under 35, 2018 edition
Car alarms (and the asshole bikers / ricers who intentionally set them off with over-loud revving) are a blight on (sub)urban life.
And I thought it was dangerous when I saw a Windows 10 lock screen on a kiosk at Burger King.
WooCommerce Store Brand Building
Which for some reasons isn't marked a dupe.... sigh
Let me just say this - both mastodon and activitypub are terrible names. I say that as a consumer not as an expert on anything. It's not a dealbreaker for me but platform popularity by the masses depends on color schemes and catchy names. I feel the same way about duckduckgo.

Great products though.
Orange County homeless student count tops 9,600
Djikstra's meaning was that gotos should be removed entirely. By replacing them with the high-level control-flow constructs them were being used to implement. If your language doesn't have a high-level equivalent of `goto fail`... well Djikstra would probably say you shouldn't use that language in the first place, but given that you are, it's no worse than using `jlt .forloop` in assembly.
Personally I am going to be rich... Plebs
How to build a PC: A step-by-step guide
Was hoping it would be in the area of Devil's Tower, WY so as to stoke the conspiracy theories.
This does not work quite the way you’ve stated:

https://articles.forensicfocus.com/2016/03/23/bitlocker-what...

The short version is there are multiple levels of BitLocker functionality and what options are available is dependent upon hardware, group policies, and the Windows Edition installed.
IEEE Computer Society Wins First Place in Los Angeles Press Club Awards
I'm not sure about this, because it's easy to mix up two arguments of the same type.

For example, you could mean

createFile(name, contents, /* temporary= */ true, /* overwrite= */ true)

but write

createFile(name, contents, /* overwrite= */ true, /* temporary= */ true)

by accident.
The Growth Handbook by Intercom
`switch boolValue` insists you do something with the false part, `if boolValue` does not. This is just looking at it from the most atomic level possible. If you have a group of booleans you get pretty complex lines of code. Switching on a tuple of three boolean where you can have cases like "if the first two are true ignore the third one" is super powerful. It becomes even better if you return an enum that indicates what it really means. Like CONNECTED, CONNECTING, DISCONNECTING, DISCONNECTED. Now every possible meaningful value of those three booleans has a word attached to it.

A Swift-enum allows you to have methods inside enums:

enum ConnectionStatus {
case connected
case connecting
case disconnecting
case disconnected

func `for`(isConnected: Bool, isConnecting: Bool, isDisconnecting: Bool) -> ConnectionStatus {
switch (isConnected, isConnecting, isDisconnecting) {
case (true, _, false): return .connected
case (false, true, _): return .connecting
case (true, _, false): return .disconnecting
case (false, false, _): return .disconnected
}
}

Then somewhere inside your code:

public func connect() {
switch ConnectionStatus.for(isConnected: self.isConnected, isConnecting: self.isConnecting, isDisconnecting: self.isDisconnecting {
case .connected, .connecting: return // We're already good
case .disconnecting: reconnectWhenDisconnected()
case .disconnected: startConnection()
}

The amount of if's that have to be juggled to do the same and the resulting code that is hard to parse when you're maintaining it definitely is more problematic.
CS50's Web Programming with Python and JavaScript
You don't need an Apple Mac laptop: Chromebooks are ready
No it is not easy at all. I have had a very bad experience with trying to support https on my simple golang server that just needs to serve a couple of jsons. I gave up and switched the whole thing back to http (because mixed is apparently worse than no https for some reason known only to Google and Mozilla).
What's the point of a wired mouse today? Unless you're a gamer, you should use a wireless mouse. The freedom of movement is really important, and the mouse cord always gets in the way.

To Microsoft: please make a good ergonomic wireless mouse. The Sculpt Ergonomic mouse is OK, but it's kind of old now, and it's too bulky. There is a lot to improve.
libertarian edition of "we've never achieved true communism"
There seems to be a middle ground where someone posts a link to the older thread, and people upvote the current one depending on how interesting it is. Dupes aren't against site policy unless they are spam; however they do seem to offend a small minority.
> Problem: Any time you see this you actually have two methods bundled into one. That boolean represents an opportunity to name a concept in your code.

I like this statement. After 30 years of coding, I've found that trying to do something quick/clever without naming it explicitly, for fear of letting the code get bigger, is what often leads me to write confusing code and harder to understand ifs.

I think maybe it's that naming in new code is easy, but adding new concept names to existing code as it grows gets a lot harder. I'm automatically naming when I create a new class, but when I fix bugs or touch existing files, I'm actively trying to avoid naming things and I'm trying to touch the least possible code, so over time it trends toward having unnamed concepts.

I usually try to apply naming to Pattern 4. So maybe instead of:

return foo && bar || baz;

I might:

bool bad = foo && bar;
bool worse = baz;
bool isHorrible = bad || worse;
return isHorrible;
For you. Right now. But when I did the search about a year ago, the results were as described above.
Okay, it sounds plausible that it could be a good thing. But it seems that everything good on the Internet eventually gets weaponized by the bad guys, and these days it seems to happen faster than ever.

So maybe we should talk about the downsides of ActivityPub?
The value of (X2000)/1000 will always depend on type. For example, this could result in overflows if it were a fixed point integral or loss of precision if it were a floating point type. X could be a non associative type with overloaded operators like a digest/summary type.

IMO the wierdist thing to read in C++ though is X / A A. Its roughly the same as X -= X % A. They values may differ if X or A are negative.
I got bit by SteelSeries Sai when right button switch wore out (classic double click disease) and I was unable to source a replacement switch.

Plus the thing failed to initialize in a few EFI because it takes way too many seconds to start and show up on USB bus.

The replacement Logitech G905 works much better, though it has one fewer usable button.
Microservices in Adopt?
I certainly wouldn't call C++ a good programming language (rather, I would call it the only viable option for most of its usecases, badly designed though it is). However, I will stick by the "letting the programmer fully control every knob" phrase I used. I never claimed it makes it easy and you can make a lot of good arguments regarding better defaults, but it absolutely eschews restricting programmer freedom, at a not inconsiderable price.
True communism is impossible without perfect (i.e. morally incorruptible) people.

People who hate on "capitalism" are often (I think) troubled by the behavior of rich/powerful people. I am too. But the solution isn't to remove property rights.
The interstellar space rock that mystified astronomers is actually a comet
I cant watch this at work unless I put on earbuds.
The physics of better batteries
Disclaimer: I work at Backblaze.

> If you use the large_file API (needed for multithreaded uploads)

We recommend for small files that you use multi-threaded where each thread sends a totally separate file. So if you have to upload both cat.jpg and dog.jpg, you upload cat.jpg in one thread and dog.jpg in another thread.

Based on the Backblaze architecture, that means cat.jpg will be sent to one "vault" in the Backblaze datacenter with one thread, and dog.jpg will be sent to a totally different "vault" in the Backblaze datacenter with another thread. This scales incredibly well, in that it should be twice as fast for two files, and 20 times as fast for 20 files if you do it correctly.

Source: I wrote a lot of the Backblaze Personal Backup client, which uses this philosophy.
It’s back up now
Please. They are hiding behind their children whom they are using to circumvent the laws by triggering your all too predictable emotional response.
Actually it does happen elsewhere in the world. See https://en.wikipedia.org/wiki/Folk_memory for a few examples.

However there is an odd problem. There is evidence that literacy is in direct conflict with memorizing complex oral traditions. Oral traditions can be surprisingly long - for a well-known example consider that Homer's works were preserved as an oral tradition. People who can read and write are unable to memorize works of this length. And anthropologists learned the hard way that teaching someone who has already memorized things of this length causes them to forget what they previously knew.
we can get frustrated by such highly specific search result edge cases

Every case is an edge case.

"Edge case" has become the tech industry's excuse for everything.
I had this issue while trying to watch a World Cup match in bed. I tried to troubleshoot it myself - restarting, rebooting, resetting every connection possible.

I didn't know Chromecast could go down on a large-scale like this because I would imagine it would just be something functional within my own network. Now I know.
An easy solution for embedding Unity WebGL builds in your React application
Well I mean honestly I couldn't even watch it. It kept repeating and freezing. Classic case of pushing a browser where it shouldn't go. I don't even see an option for text only.
This is a very good explanation, specifically in regard to "creates an environment" although I'd make a few distinctions.

Democracy and dictatorship are systems of government. Capitalism and socialism/communism are economic systems, intertwined with the former political systems.

The formers are normally decentralized and driven by markets, the latters are centralized and driven by a few politicians.

Venezuela has failed because the government consolidated its power over economics which is fundamental to the application of socio-communist policies, which created the ability to monopolize state control in almost every aspect of its citizens life.

The exception here are countries like Singapore. Singapore and other examples illustrate that at the end of the day, the most efficient economic system is the best to have. Centralized control of small countries may work, but applied to larger populations, land mass, and economy, actual humanitarian crises from real dictators (Stalin, Castro, etc) come about.
> I have a small program which uses an undefined behavior. How would you rewrite this so as to not do so, but maintain all existing defined behaviors?

in this precise case, (in C++ because I can't be arsed to search the modifier for int64), fairly easily :

#include <fmt.h>
#include <cstdio>

int main() {
int a{}, b{};
int64_t c{};
fmt::print("Please enter two numbers: ");
scanf("%d %d", &a, &b);
c = a + b;
fmt::printf("The sum of the numbers you entered is {}\n", c);
return 0;
}

in the case where a, b, were also of the largest int type available, you could do :

#include <stdio.h>

int main() {
int a, b, c;
printf("Please enter two numbers: ");
scanf("%d %d", &a, &b);
if(__builtin_add_overflow(a, b, &c))
{
printf("The sum of the numbers you entered is %d\n", c);
}
else
{
printf("You are in a twisty maze of compiler features, all different");
exec("/usr/bin/0ad");
}
return 0;
}

but you could also use the more portable macros provided in emacs (100 % independent of any other code) : https://github.com/jwiegley/emacs-release/blob/adfd5933358fd...
The funniest responses to today’s global Slack outage
Very useful but nothing UNIX about it
Intel Core i7-8086K Review: 40 Years of x86
consider what happens if the input numbers are INT_MAX and 1
Can you walk through your logic please?
Civil war in America could only happen(IMHO), if it dems/reps came together to fight the central government, and police forces. I think the more authoritarian the country becomes (just look at the atrocities of ICE, and the major issues with NSA, and all the police brutality in the news), the more likely it could push us over the edge in that regards.

However, for that to happen we'd have to give up our politics, which has polarized the country. The two party system has successfully divided and conquered us, it puts us in two separate camps, so we don't organize against the real threat which is the rise of income inequality/elitism and the marginalization of the worker class.

However, the rise of the machines replacing workers could push the pain point enough for (if not a civil, a revolutionary) war to be inevitable, unless the government puts things in place like GBI/Universal Healthcare to quell the masses who are no-longer able to work.

5 years is a bit of a stretch though, 15 is probably when the real pain from automation is going to be felt.
"U.S. Papers Hail Venezuelan Coup as Pro-Democracy Move" - June 2002 - https://fair.org/extra/u-s-papers-hail-venezuelan-coup-as-pr...
3b1b featured creators #1
Are people there still using the Bolivar? Why haven't they switched to some alternative currency? Wouldn't that solve many of the current problems?
Problem 6 can also be handled using worktrees, which have been available since git 2.5 (July 2015).
So... the country needs help. How do we help?
Algorithm Archive
Microsoft explains why it brought back a 15-year-old mouse
Thanks for this. I read it years ago and was unable to find it since.
I'm happy to help out with styling the project. Open a ticket and I'll jump on
How to survive when the NY Times is Worthless.
What on Earth are you talking about? The point was not that anything humans can do within 90 seconds is non-revolutionary when implemented in machines. An artist can create something unique and beautiful in 90 seconds, and a mathematician can explain a short yet difficult proof in 90 seconds. Those things would absolutely be revolutionary if implemented in machines. Who cares about the quantity of computation? As if that matters for how "revolutionary" a software technology is.

It is entirely unclear to me that a bot that might make simple reservations at small group of establishments that include only restaurants and hair salons is in any way revolutionary. Even if it worked 100% of the time, who is making daily hair and restaurant reservations that would benefit from the extra 90 seconds? It's silly the amount of hype this is eliciting. You have a very strange definition of "revolutionary".
The main error was to be the economy on heavily exporting oil, only for the oil price to tank (Thanks, Saudis).

While being able to heavily export oil, they could heavily import stuff that could help the poorest of the population.

But when the oil price dropped, they were loath to cut back on the support systems. Thus a massive trade deficit developed, and the exchange rate tanked.

While the reasons are different, it is the same "death spiral" as one could witness in Germany between the wars, or in Zimbabwe.
The hydraulic analogy helped me out a lot when I was first getting into electronics. It quickly becomes less useful as you develop your own conceptual model, but it's worth taking a look at.

https://en.wikipedia.org/wiki/Hydraulic_analogy
You have to be able to watch it to be able to comment on it. I couldn't watch it, even on a decent connection. It stutters, the sound goes out, video freezes..
Disclaimer: I work at Backblaze.

> From Europe it is way too slow.

We are opening a European datacenter in 2018, so stay tuned!

For now, we recommend you use multiple threads and you should be able to saturate any network connection, including yours in Europe. However, we do realize not all programmers or applications are capable of using threads and it would be more convenient to have lower latencies, thus the European datacenter in 2018. :-)
It's still one year.
Show HN: Topico – Temporary Test Environments for Each Pull Request or Branch
I agree. This wouldn't expose hyperbole and bias, but merely be able to advocate for whether the event is being widely reported to protect against completely false news (think celebrity death as an example)
Sorry to be the negative one but, as someone who lived through the 2001 economic crisis, I have no idea what this guy is talking about.

He seems to write a lot of survivalist tips, so I would keep that in mind - from a survivalist perspective, all society is at the point of collapse.
You are now showing your values though. They are not the values of the hunter. The hunter does not understand your separation. You will never understand each other because there is a fundamental difference.
One question: Does being put on a PIP disqualify you from unemployment benefits if you get fired for not passing the PIP?
QuotaPath raises $1.5M seed round to chase the sales software market
Disclaimer: I work at Backblaze.

> B2 location is a non-starter.

We are opening a European datacenter in 2018, so stay tuned!
Can you give me an example? Is intelligent design your example of legitimate scientific pursuits?
You say

> We have had this kind of technology for years.

and

> For these simple use case, I still think a binary algorithm would be, on average, more efficient for both the caller and the business.

The fact that we have had this technology for years, and nobody has been able to make it work as you describe, suggests that it's not as simple as you think.

My take: sometimes you can persuade users to learn a new UI, but consider the stereotypical grandparent that still can barely use email; teaching a new UI is hard, normal non-tech people don't like it, and it will take more than a generation to reach 100% penetration.

The existing UI of using a telephone and conversing like a human is probably not at 100% penetration either (e.g. considering deaf individuals), but I'd wager it's as close as any one UI is going to get.
Socialism is simply the union of industry and state. We know that church and state is bad, but for some reason industry and state is good? Power corrupts. Thats why you want to limit the power of government, not ALSO give government power over all goods and services and everything that gets made and everyones job. What a recipe for disaster. You never see it coming because they hide behind the rhetoric of universal sufferage, but it instead it all goes to shit. Always, without fail. Every. Single. Time. And yet you people come out of the woodwork in the middle of capitalist prosperity to criticize? Please leave.
Psychoinformatics... I think it just goes to show that computer science is less of a science and more of a tool / method for other disciplines. Yes, you can be scientific about the tool that you're building (and measure it, test it). You can even have scientific theories about the tool that you're using (theory of computation) but to call this psychoinformatics would imply that the informatics part is scientific [1].

In my opinion it isn't. Collecting data through the use of big data methods (or whatever you want to call it) has nothing to do with science and everything to do with tool use. We never called psychology something like surveypsychology or fMRIpsychology. Why should psychoinformatics be different? Moreover, merging psychology with informatics could probably already be subsumed under artificial intelligence.

I am in favor of computational methods if applied ethically but I don't think it justifies something with a new name. Especially not if it is one of tool use since tools can change, then this field will either be stuck in old tools or have a nomenclature issue.

[1] Not to mention that computer science researchers are even debating among themselves whether the discipline is scientific.

Full disclosure: bachelor in psychology, bachelor in information science, master in computer science and master in game studies. I'd love to work at an intersection of psychology + computer science (+ games perhaps as well).
Well, looks like your problem is fixed then.
Why when with Windows you can leverage all your banks existing technology and security (including update) policies? CE was(is?) on an enormous amount of systems that you might expect to be an rtos. Windows might not be my first choice now, but in the context of "industrial computer" 15 years ago I would hardly call it a poor choice. Also who is doing the long term maintenance/security auditing on a bunch of custom hardware and os in a bunch of atms all over the world.
FreeBSD 11.2-RELEASE now available
Sounds like a violation of labor law under Electromation.
No it wont be as Galaxy X foldable phone is also coming out
There are probably heavy controls on the import of foreign currencies.
Opened page. Scrolled down and nothing happened. Please don't submit broken web pages in the future. Please, let's not encourage this sort of web design by linking to it. It's user hostile.
ASLR Protection for Statically Linked Executables
How are you supposed to tell whether a human is intelligent or not?

Why wouldn't the same process hold here?
People were fooled by hype, a usual occurrence with new "AI" technology. That says nothing about how "revolutionary" it is.
"Revolutionary Cornflakes"... these people are pure evil.
Announcing cross-browser visual testing with Percy