skysight-inc/HackerNews huggingface dataset:
One thing i was thinking about yesterday: apply Netflix’s interactivity functionality from Bandersnatch to political debates and rallys such that viewers can make choices and answer polls and vote in real time as they watch a debate or townhall or anything like that.
How can US citizens fight this? It's not unconstitutional, since non-citizens aren't covered by the Bill of Rights. Do we just hope & pray that the next administration is gracious enough to revert a policy decision that has no negative impact on themselves or their constituents?
While your example reads a bit better, you’re now iterating through your list twice.
My family have a 5kw turbine (UK). About 12,000kw a year. £30,000, with the help of heavy government subsidies it makes about 7% return a year, including loss of capital, if it lasts twenty years. As soon as subsidies ended industry shut down. Without subsidies the servicing and repair costs wipe out most of the savings leaving with you with a few hundred a year if lucky. I don't think anyone is going to buy another small one any time soon... Low maintenance solar has won, the wind turbines firms all closed themselves or went bust.

What would transform it? If someone like Honda mass produced cheap turbines with Honda reliability with a proper eco system of servicing, parts and repair knowledge. That would make a big difference. Changing the adequate fibreglass blades for wood? Not really. I can't see getting a hand carved blade made being a cheap repair. Government caused boom and bust is not helpful.

And obviously cheap batteries but that would transform everything too...
They are, but not for an API wrapper.
News Source Has an Opinion. This Is the Way It Leans
Metaphors are an excellent way to reason about complex fenomena as they provide a simplified model. Naturally the entity that chooses the metahor dictates the tone, the direction and the likley outcome of the discussion as is the case here.

Here is another one: social media is like a livley party where people can mingle in large and not do large rooms with different degrees of interaction with the totality of the guests. One can see that this is not a metaphor that FB would choose to discuss.
Posturing by China.
TL;DR for folks without sales lingo:

Companies often think their business would be healthier if they got rid of their "bad customers," but a customer who is difficult with one provider (e.g. always asks for discounts, doesn't commit over time) can act much more nicely with providers who they consider critical to their business. This is evidenced through a merger where two distribution companies compare customer lists and realize that one's best customer is the other's worst — in other words, a customer isn't good or bad, they just behave differently with different suppliers. So the key to business is not to get rid of the bad customers, but to become your customers' favorite supplier so that they build a long-term partnership with you.
This is what they do in Mexico when entering the country from the perspective of flipping a coin. I took my vacation in Maya Riveria and upon entering the country they have a box with a button. You push the button and it lights up green or red. Green means you go, red means you have some additional security checks.
Let's do a little experiment:

>"As we've seen around the world in recent years, social media can be a major forum for terrorist sentiment and activity. This will be a vital tool to screen out terrorists, public safety threats, and other dangerous individuals from gaining immigration benefits and setting foot on US soil."

Now, we do some very simple replacement:

>"As we've seen around the world in recent years, social media can be a major forum for communist sentiment and activity. This will be a vital tool to screen out communists, public safety threats, and other dangerous individuals from gaining immigration benefits and setting foot on US soil."

If it's good enough for McCarthy, it's good enough for me.
Do NSA and CIA share this data with DHS?
Show HN: Swish – The missing gesture layer for macOS
You have to know both methods and the trade off for each.

The performance differences can be quite marked as well.

I wrote some code the other day that could have been done with forEach more readably but I just used regular for loops because I was working with what was effectively a 3D array (grid/cell/contents) and know that for can be nearly twice as fast as foreach.
Here's the most important part:

>Believe it or not, most sane buyers want their top vendors in a product category to be reasonably profitable...only a fool puts the core of their business on an unsustainable supplier.

The trick is becoming that "top" vendor. Developing and aiming for that relationship is the job of sales. The term "incomplete sale" is mentioned/introduced, signifying sales that get the order but do not lead to long-term profitability.
I think they are doing this to not loose money. They will lose market share but I guess they can always get it back.
Sounds promising. If authors are reading this: web demo ui is too small on mobile.
It clearly states that it's for TCP based attacks. TCP attacks eg. SYN floods is a real problem and this does help against most such attacks.

Just as real as anything else...
Neat! Gray is the person who first pointed me towards anarchism (back in 1999, wow) as a political philosophy, after reading about his Sudbury Valley School and following a link to the Anarchist FAQ.

https://theanarchistlibrary.org/library/the-anarchist-faq-ed...
Indeed, reduce is the swiss army knife since you can use it (sometimes when you shouldn't) to implement most of the other methods of map/filter etc.
Why should pornography actors not have responsibilities for what they do? I don’t agree with this part where people who 1) put their faces in pornography and 2) put their faces in social media should not expect the two things to be correlated. Especially since the technology has already existed for some time and it cannot be stopped. Are we looking for regulation here? Is that exactly what we want, going back to cryptography export laws?
Interesting, I never heard of them. Could you back this up with some market data or more context?
Berkeley has a ridiculous number of nonconforming buildings. Clearly they did not destroy the community.
Amazing someone could use so many words and say so little. I guess they need to cloak their racism.
Humans are actually special. We are smarter than any other animal on earth and have culture. Human brain is the most complex structure in the known universe, so even on that scale we are pretty special.

And it simply makes no sense to just throw away millions of years of evolution. Your nihilistic worldview is very naive.
NP-Complete Problems and Physics: A 2019 View
This is something so many people do not seem to understand: if you ban something, you only prevent law abiding citizens from using it, it won't stop the law breakers who were going to use it regardless of what the law says. There are people who DDOS video game servers in the US as to not lose the game, even though it's a felony.
That's not quite right, the bill of rights applies to everyone with a foot on American soil, not just citizens.
So... this is a bad policy, but let's not hyperbolize.

The fourth amendment is still a thing, and it protects non-citizens and citizens alike.

The demand here isn't for your social media history, it's for your account IDs. If they want your (non-public) posts, they still have to get a warrant from a judge and show cause, just like they do now.

The feature they're demanding is to know who you are, so they know where to target that warrant request. And that's arguably bad, and a slippery slope.

BUT IT IS ABSOLUTELY NOT LIKE THE PRC'S SOCIAL CREDIT SYSTEM. Stop it.
https://daniel.haxx.se/blog/2017/06/28/denied-entry/
That could be dangerous, though, as social mores change and the things which are "ethically good" become different. I'm already not a big fan of "deplatforming", and this seems like basically the same thing.
Why can't they match your passport to your Facebook profile?
> since non-citizens aren't covered by the Bill of Rights

That is a common misperception. Most of the Bill of Rights applies to "persons", which includes non-citizens and even undocumented aliens. However, it doesn't apply to people not under the jurisdiction of the US, such as foreign nationals overseas. When someone applies for a visa from overseas they don't have these rights. Likewise those still outside US territory who are presenting themselves at a border seeking entrance.

Once on US soil, Constitutional protections generally apply.
In last version of Safari uBlock shows warning that it is not supported anymore and slow down your browsing experience. Adblockers from App Store are limited by number of allowed rules the same way as in promised Chrome API changes. If we should start to worry about browser shift then Safari should be first in the list.
Digital Privacy Is a Class Issue
Apple Card expected to earn Apple $1B annually with minimal risk to Apple
This actually makes me wonder - what makes them unable to sell outside of Europe/USA? I heard of them being kicked out of SD/WiFi associations, but how does this affect them in China?
The author has one start out by implementing sysctl changes which have no relation to the subject matter at hand (printk, sysrq, panic, etc.). A number of comments on the article point out flaws and misconfigurations in the rulesets presented.
>Tiling WM+HDPI doesn't quite exist. Most use gtkrc, xresources, and the WM config to play with sizes. But that doesn't translate across different monitors. So it's a flawed system.

What you're describing does exist, but as with most things GNU/Linux it's not user friendly in the slightest. What you need to do is to set your Xft DPI to a level that is comfortable for your HDPI monitor, then you need to 'upscale' your second non-HDPI by an equivalent amount. For example I have a 28" 4k monitor, and a 24" 1080p monitor, and I typically prefer a scaling factor of about 150%, so in my .Xresources I have 'Xft.dpi: 144' and I need to upscale the 1080p monitor with the following command:

xrandr --output DisplayPort-0 --auto --pos 0x0 --primary --output HDMI-A-0 --auto --pos 3840x540 --scale 1.5x1.5

Where HDMI-A-0 is the 1080p monitor. I've had a bug in the past where I would need to use the --panning option (e.g., --panning 2880x1620+3840+540) with the correct geometry to get everything working, but it seems to work fine now without that. If you do need to mess with the --panning option though may god help you.
Are you arguing about data representation in Perl vs OCaml? Of course there will be differences in data representation, and that would make your pattern matching also look slightly different.

However, the examples in the article do fit very well familiar ML-style (SML, OCaml, Haskell, Rust, etc.) pattern matching.
I’d agree if it didn’t keep happening .
Hey, I was against all of it from Day 1. I was not cowed by 9/11 like most of you seem to have been. You let this happen by being too afraid and letting .gov be your mommy and daddy. I told you it was a terrible idea. I've been on message now for well over 20 years. Nobody listens, though. And nobody listens when I say corporations need to be reined in or we've had it.

Most of you are in favor of strict gun control. As soon as that can be enacted on a broader scale, your rights are going to disappear even faster. With zero ability to fight back, do you think anyone is going to listen to you anymore? Haha, no!

Oh yes, and lest I forget, you want to be kind to "immigrants" but you have allowed the media to confuse and blur the concept between the legal kind and the illegal kind. One kind can help strengthen our nation and its citizens (although big-tech is abusing the ever-loving shit out of the H1B system in order to kill your earning power, a super-negative downside). The other kind is being used as a sort of bio-weapon to flood localities, especially conservative ones, and destroy infrastructure and overwhelm the legal system until it, too, collapses.

Your voting patterns and your apathy bring America closer and closer to a 3rd World nation each year.
Consider making tutorials for publications that you're interested in, but are nontrivial to read through and understand. Building a tutorial will give yourself a deeper understanding of a problem, help you communicate that understanding, and benefit the larger community.
Exactly my thinking. What would they like to validate my identity then? Log into my GMail? Smaller communities like, say, HN?
It really does help. Most SYN floods can easily be handled with proper tuning and iptables. Most DDoS attacks are small.
Saying that Wyzecam was 'all over this' reminds me of Chris Rock: https://www.youtube.com/watch?v=jkxB15nXRvM
> who all have their own cultural stories why they are brave as well

Like who? None of the countries I've lived in is anywhere near to calling themselves the "home of the brave" or something similar.
Show HN: Visualizing US Electric Vehicle Sales from 2012-2019
This article is short on details. What does "social media details" mean? Is that username and password, or just username? The former is much worse than the latter.

I'm very wary of what I share publicly, so if you only see my public posts then I'm not too worried. But I sure as hell wouldn't be compromising my security and privacy and giving out my passwords. I would sooner choose a new random password, write it down, and then travel, and simply not use (or even be able to log in to, or disclose the passwords of) my social media accounts while traveling. What would they do then?
From a purely practical standpoint, I don't think a die-off will help very much. Say we had a 85% die off, we would be back to around the population level of 1800, the time that Malthus published his prophecy. And along the way we would have had the most collossal wars imaginable and would be ekeing out a living on a much reduced habitable area.

Basically, although it is an unpopular vision these days, I suspect that for the amount of effort involved in having a mass die-off, we could stabilise the population somewhat and start building floating cities and space habitats. People regard this kind of thing as unrealistic, but I think it will rapidly become realistic should we even halt population growth temporarily through environmental disaster and it would be preferable to start doing it before that signal to action.

To sit on our hands and hope for our own actions to kill us off in order to save some remainder is the most fatalistic and least imaginative approach going. We might as well be deer.
Hyperbole is politically useful when you are sliding down a slippery slope. It anticipates a worse future, which is a useful brake for myopic people in the present who can't see what we are sliding into.
> non-citizens aren't covered by the Bill of Rights.

That's not correct, and two centuries of case law agrees with the plain language of the constitution: no State shall "deny to any person within its jurisdiction the equal protection of the laws".
Headline potentially misleading as I believe this policy applies only to people applying for visas, and not to all visitors to the US.

https://www.apnews.com/c96a215355b242e58107c2125c18fc4a
> fatal even to fit and healthy people, unclothed in the shade next to a fan;

This is scary, what's a good way to survive for someone that doesn't have access to a bunker or AC? Immersing oneself in water in a bathtub?
I have a number of terminals mapped to hyper+[letter] in i3, five are empty with just a shell. Two are Python repls, and the rest are actually various outputs for programs I run where I want to see a log of whats happening
The Lobbying Against One Bill Cost All of Us $60B in Climate Damages
> The fourth amendment is still a thing, and it protects non-citizens and citizens alike.

Even in airports?

> BUT IT IS ABSOLUTELY NOT LIKE THE PRC'S SOCIAL CREDIT SYSTEM. Stop it.

Agreed, not yet.
Any of the CDN providers (eg Akamai) offer this. Cloud providers as well
> It also supports ad blocking.

It supports the same crippled ad blocking that this article complains about. It is also years behind the competitors in standards support, and the standards it claims to support are implemented buggily. Finally, it crashes more often than its competitors, but I suppose making a browser unusable is one way to save battery.
Why is Palantir sponsoring a conference at Berkeley on privacy?
I'm gladly surprised that "lookalike revenge porn" isn't already a thing (that I know of)
BBK Electronics owns OnePlus, Oppo, Vivo and Realme.

These brands are super popular in China, India, Vietnam and rest of South East Asia.
If you want to make Perl 6 'cool' just create an alternate syntax that maps to Perl 6.

cough Elixir cough
Design for non-designers: Part 2
Just Write Code: Improving Developer Experience for Cloudflare Workers
Obviously, being granted a visa to visit a country as a foreign person is a privilege under law; this is totally different from restrictions placed on citizens (or persons legally present in the country). This would be terrible if applied to citizens in a LE/IC context.

For visas, there are some serious potential negatives to this (it might be used to target those critical of the US Government or specific Presidents, it might be used as a proxy for religion or sexual orientation or some other protected status).

It also has positives: aside from catching incredibly stupid terrorists or other undesirable aliens who post a lot of clearly indicative content and then report, it also allows an easy rejection for a person who fails to report a known bad account already connected to him. It's a mistake to assume all terrorists or undesirable aliens have perfect OPSEC.

The one corner case where it's probably exceptionally useful is if there's someone like circa-2015 Anjem Choudary who hasn't yet been convicted of a crime, but is recruiting for IS using various social media handles. He's a known individual and more effective as a recruiter due to his public status. He then has to choose either to not report (and thus be banned), to report (and thus be banned), or to delegate US recruiting to someone else (who will be less effective).

I'd prefer we collect all this data and then ALSO have a more transparent process for processing visas. It should be clear why one is being rejected, and an opportunity to appeal. There should be reporting of aggregate statistics. The thing I'm most worried about would be a covert policy, of, say, "no redheaded people" which was actually enforced by marking every redhead as an IRA member and rejecting as a terrorist, but that is something which could be addressed. There are probably also explicit policies which people find objectionable and could be addressed through public pressure/voting/etc. (right now I think the ESTA bars for people who visit specific countries might be bad, although I don't know how much worse non-ESTA visa process is if you're from an ESTA country.)

USG (and commercial sources) already have increasingly-complete name/passport/etc. to social media identifier and activity databases, so the main point here is to go from xx% to a higher level, and then to set up a "you lied on the form" opportunity for rejection or deportation.

On balance, I think this is a good policy change.
Maybe so, but traditionally HN has been not very accomodating of shameless spin like that. If you want to make the case for that slope and how policy will evolve, then make it. But spinning "who are you on facebook" into "we'll track everything you do online" is just wrong.
While false-positives are definitely a problem, why do you think they are a bigger problem? Do you feel the participants in pornography are "fair game" but the others are innocent? In some ways, the current level of inaccuracy could be considered an advantage, because it makes it more likely that there will be resistance. A 100% accurate system strikes me as more dangerous, as it's less likely for politicians or lawmakers to stand up for the victims.
A while ago I suggested that engineers could have an ethics code just like lawyers or doctors and the opinion wasn’t very popular (although with no explicitly stated reason). I still don’t see a reason not to have one. If your company is selling your code and software to abusive states and it’s used to persecute journalists (for example) continuing to do that work there is no different than any unethical work from a doctor or lawyer. And software developers have a huge impact on our life these days With their work. It’s reasonable to hold them to higher standards than in the past.
One of the managers at work swears that JIRA is the next great thing to happen to us. From all the negatives I have heard I get the feeling that the request to adopt it getting stuck somewhere in our parent company is a good thing.
Maybe this is overly cynical, but I think they can. Otherwise everyone could just claim they don’t have an account. But this kind of policy deters people from wanting to visit or immigrate to the US, which is this administrations real goal.
Laws are often difficult to enforce, but that is not a reason to not have the laws.
function splitLineReducer(acc, line) {
return acc.concat(line.split(/,/g));
}
const investigators = fileLines.reduce(splitLineReducer, []);

That’s unnecessarily quadratic. So yes, definitely use the more readable `flatMap` (with appropriate polyfill):

const investigators = fileLines.flatMap(line => line.split(','));

(The `flatMap` in the article is not an appropriate polyfill)

The object spread example has the same problem, like c-smile mentioned. Use a Map for lookups instead.

> Some readers might point out that we could get a performance gain by mutating the accumulator. That is, we could change the object, instead of using the spread operator to create a new object every time. I code it this way because I want to keep in the habit of avoiding mutation. If it proved to be an actual bottleneck in production code, then I would change it. ↩

Avoiding (very local) mutation because it’s an FP bad word in a language like JavaScript is just a terrible way to go about things. Also, this turns out to be an actual bottleneck way more often than people notice.
Java is abstraction over JVM which is abstraction over machine code. But I don't need to know anything about JVM bytecode or machine code to write typical Java code. Good abstraction does not require decompression. You're not going down to assembly to understand some Java code. You think on Java code level. That is good abstraction. If you need to decompress what you're reading, then it's a leaky abstraction. It's okay to use leaky abstractions to reduce repetitions, for example. But ideally your abstractions should not require one to learn its implementations in typical cases. For example if your function name is good enough, reader could trust you to do the proper thing and not read its implementation.