skysight-inc/HackerNews huggingface dataset:
> 1) You move the adding logic to it's own file, with other adding-only responsibilities

The code snippet above says nothing about where the adding logic is, other than that one places it in a method while another uses a straight function. Said method/function can live anywhere, unless you have a specific language in mind that prevents you from moving functions to a file?

> 2) You allow injecting different implementations of Adder - maybe introducing a more efficient one in some cases but not others

The thing the code wants to do is add something, so if that can be made more efficient, it can be made more efficient by implementing a more efficient add function. Why is it that you need to introduce something that is not an add function, in order to inject a more efficient add function? Why can you inject an Adder but not add()? What language is that again?

> 3) You enable mocking Adder so that your logic that verifies that B and C are added can be tested without having to re-add B and C all the time.

This makes no sense to me. If you add B and C, you test it once, so what's the deal with this re-adding? And why can't you mock add()?
It's not very difficult if you've lived in either place...

(And they don't exactly have a mutual love for each other)
https://en.wikipedia.org/wiki/NeXTSTEP
> I'd love to see web browsers support this modified version of this

I hear you, but at the same time this relevant xkcd comes to mind:

https://xkcd.com/927/

Colorio looks great, thanks for the link! Also has Jzazbz support I see, neat!
The problem with a SIM PIN is that the phone can no longer get data service if rebooted unless the PIN is provided, so Find My iPhone stops working. I once lost a phone like that.
Do I really have to point out that it's an open source project and you're free to write it and open up a pull request instead of merely pointing out things in a comment thread? At least make the effort and open up an issue in the project itself - provide your motivation, link to resources, etc.
> Governments will not oblige their citizens to make steps on their consumption if it means reducing their comfort and their economic power.

Here is the catch - efforts to reduce overconsumption mean slowing economy and lower tax base. No goverment can afford that.

> Imagine riots because people want to keep using their cars and trade goods that have become illegal, or vendettas against people who emit co2.

I believe we are on a verge of Millenial movement of some sort that will make a matter of enviroment a quasi religion of sorts. That would change the attitudes.
I have my own "home server room" with a POWER6, but it's just a couple U in an extended tower. I can't imagine connecting this kind of a beast to household power, let alone getting it in the door. It takes a special kind of skill to maintain big iron like this and definitely the appropriate environment to house it.
> LZMA is better than gzip i think.

LZMA provides much better compression at much higher costs. Generally speaking it's pretty strictly better than bzip2, not necessarily gzip (DEFLATE, really).

In my experience, zstd can be considered better than gzip/deflate (almost every time I tried it, it provided as-good-or-better compression at much faster throughput).
There's a small, if somewhat contrarian move, especially in the *nix/free software communities, that goes along those lines. You'll find a lot of people fed up with hamburger menus and nondescript icons and widgets, poor API stability (and, therefore, lack of easy scriptability (is that a word?)) and other questionable developments of the more "modern" approach to building desktop systems.

Some of the folks in this camp are firmly in the traditional Unix "camp" and mock cat -v, but there's a pretty refreshing diversity of views there. Some swear by the Unix Haters' Handbook, others come from (what's left of) the Amiga community.

I don't know if there's a central gathering place, but if you look around the Fediverse, IRC, various tildeverse servers, you'll eventually run into someone :).
This may vary by person. For myself, I'm quite disappointed that my geneological tree runs dry just a few generations back. I'd love to see where it, it being me I suppose, began - but it's simply not possible. But today we're creating what may be a record that, at least ideally, people even thousands of years from now will be able to view. Imagine being able to see the thoughts and 'writings' (in a manner of speaking) of your ancestor from thousands of years past - see the lands that they knew as home (or at least what became of them), and ideally even see their final resting spot. Perhaps this does not appeal to you, but I find it extremely intriguing. I mean these people are quite literally a large part of you. I find it interesting to just ponder on such things.

It has little to do with grieving or even remembrance. In my case it's mostly curiosity. In a way it's akin to visiting a museum of you. And in the future people will be able to do this. This gets even more interesting once you consider that at some point, perhaps not far from now, there is an extremely high chance that your descendants will reside on another planet. I see no reason to believe that these descendants would have any less curiosity about their heritage.

That playground will eventually give way to some apartment complex, road, or place to buy crap and nobody will ever know or care that it was there. But the people of today are what will make up the people of thousands of years from now. And that lingering connection and curiosity of the past is something that I expect will probably remain with our species (and even the species we diverge onto in the future) indefinitely.
It is quite possible that to get burn damage to one's retinas which is why medical leave and evaluation by an ophthalmologist is routine. While I agree that it is not completely clear, I suspect that he did get at least mild damage or the choice of words would have been different.
Chinese and Fiipinos don't look much like Japanese if you're not totally alien to asians and consider them all the same. And even Koreans have some different characteristics, which one can tell for the most part.
As noted in the PEP, the uu codec itself is in `binascii` and not moving anywhere. `uu` is just a (pretty awful) high-level interface.
Just like I said then

"VB.NET is a new incompatible language, everyone invested in VB needed to retrain skills & rewrite existing software."
don't worry...this is just trump throwing a sop to his base...pretending to follow through on his campaign promises...this work ban will almost certainly never be implemented
"Amazingly well" has become 500MB node_modules directories in your source tree?
Using the emergency brake while the train is still at the platform makes sense. Once the train has left the station, it makes no sense to stop the train.

> the train rolled in to the station just before Amsterdam proper. I forget the name.

Amsterdam Sloterdijk.
I started from scratch with ableton and have worked my way up to make decent techno music. [0] I've watched a ton of YouTube channels on production and just fiddled around with every effect. It's best to start out with a basic loop you enjoy and then iterate on it [1], if you're not feeling it, put it aside and work on another loop and come back later. In my opinion the most important thing is to try and imitate the things you like because it reveals a lot about the music, which is a good learning experience, and additionally about your own way of hearing etc. It's also important to see theory as a sort of praxis, most of the stuff is empiric and after the fact, nothing really matters, but it's useful to know for when you're stuck.

[0]: https://m.soundcloud.com/someotherorder/of-necessity-absolut...

[1]: https://m.soundcloud.com/someotherorder/vile-break/s-e7EV6
> Yes, she is "all" Japanese. She grew up in Japan, with her Japanese mother, attending Japanese schools. This is the subtle bigotry toward people who are "half" (as they're called in Japan) rather than "dual". Many Japanese will always consider them "less Japanese" or outsiders.

Just because she qualifies as Japanese from your point of view doesn't mean that the Japanese have to view it like you. White savior complex much? I've spoken with Japanese friends about hafus and their point of view was that people do not materialize out of thin air, but rather are the genetic conglomerate of their ancestors (which is hard to argue against) and thus links in a chain -- which would make her less Japanese. And that seems fine to me, as long as she is not discriminated against for being viewed less Japanese.
>Yes, she is "all" Japanese. She grew up in Japan, with her Japanese mother, attending Japanese schools. This is the subtle bigotry toward people who are "half" (as they're called in Japan) rather than "dual". Many Japanese will always consider them "less Japanese" or outsiders.

That's her culture and nationality (and even the culture part could be dual). They refer to her ethnicity and ancestry.
I have a theory that the iPad Pro is the perfect college student device. I wish I could use one more for work but it doesn’t fit my use cases well. But as a “college student” device it’s perfect.

-it lasts all day
-it’s very light
-quick to pull out/put away
-no fan noise
-it’s cheaper than a MacBook
-it’s great for taking notes, recording your class
-it’s great for email and other simple tasks
-easy to take a picture of a whiteboard/assignment etc

unfortunately my day is spent switching between lots of tasks the iPad doesn’t do well. Like pulling multiple assets from different locations for a 1 minuet edit in photoshop, exporting and slotting into a landing page. The iPad Pro would be abysmal for stuff like that.
I heard that people live in the tunnels in New York - is that actually a thing?

If yes, could this be people brazenly deciding they need to get from A to B, climbing aboard at A and stopping the train wherever B is?
"just"? From where I'm sitting that's a pretty large chunk of IT.

This has knock-on effects: authors that want to deploy scripts/apps with the minimum fuss will avoid adding deps to whatever /opt-based repo RH ships Python 2.recent (and the hoops you have to jump through to install and activate that). So they remain compatible with 2.6.

All of the other applications and 3rd-party modules shipping with RH 6 are also chained to Py2.6.

Many conservative shops (industry verticals) will refuse to upgrade _anything_ until they absolutely have to. I suspect we live in slightly different IT worlds (lucky you!). This is a problem I see frequently and that's why I'm suggesting Python needs more strict impetus for timely upgrades, not more decade-long opportunities for balkanization and incompatibility.
Well, how else did the sensor come to be broken?

Aside from a bird strike the possibilities are just as unlikely. There could be sabotage. There could have been an impact with the passenger boarding equipment. Somebody cleaning or painting the plane could have smashed it.
>You could create the most amazing service in the world. And it’s still inferior to a Japanese business on the grounds that it’s not owned by the Japanese.

So like US people were proud for their "Made in America" stamps?
Anyone should be opposed to his works, he's a dog whistle artist and his brand of intellectual pablum really shouldn't be quoted in an intellectual forum.
Panasonic 'suspends transactions' with Huawei after US ban
Probably on stacks of money.

In capitalism system everything is equated to money: ethics, success, self-worth.

To be exact, it is tied to short term earnings.
How Awk one-liner works for removing duplicate lines from text files
> I believe we are on a verge of Millenial movement of some sort that will make a matter of enviroment a quasi religion of sorts. That would change the attitudes.

It's happening. And I'm really happy about it.
If you find it, let me know!

I have tried:

GarageBand - powerful, but hard to get into full flow. Frustrating lack of deep dive - you can tweak presets but not build patches from scratch.

Korg Gadget - full control over the synths. Pretty good piano-roll style editing, but hard to record live. Also, I think it’s something in the default reverb that gives everything a very contemporary sound... not great if you’re not a fan of that sound.
Last time I was in a tube when the emergency brake was pulled (not in NY or London), it was by a mom who had left her kid behind at the last station. All it did was stop the tube between two station, the driver had to go check what happened then go back and restart the tube.
> Idk, it never occurred to me the need for a library that does more than "for line in sys.stdin:"

Of course if you'd only used fileinput for that it would be worthless.

However what it does is way more useful, namely iterate on the lines of all files provided as parameter (or sys.argv[:1]), fallback to sys.stdin if no files were provided, and swap the special sentinel `-` by sys.stdin.
> These nations can't simply commit a bunch of crimes, get rich, change the rules, then expect to be protected from past actions.

They do it all the time. When will the Chinese Communist Party pay for the famine which killed 2-6% of the population (lower bound is based on official government figures)? Probably never is when.
Have you changed timezone storage and displayed dates wrong (even if it was a configuration issue) in many other countries/customers?
I totally agree and as a gamedev really want one. A decent handheld with development as easy if not easier than PICO-8 will be a lot of fun even if the community is niche.
China isn't thinking 40 years out. That's the greatest myth running about China's authoritarian system. There are few governments more obsessed with day to day sentiment and short-term thinking. That's why they have to control their people so tightly and they constantly watch everything going on socially for the slightest aberration. Everything about China is at risk of implosion at all times, that's why the authorities there behave as they do (from social credit, to wiping out other cultures, to aggressively limiting social variance, to extreme debt binging, to fear of basic human rights and expression, to perpetual economic stimulus, to their hyper universal surveillence).

China talks long-term, that's it. The USSR used to talk long-term in their propaganda too, it was a fraud. Watch their actions instead. There is a mountain of evidence that they aren't actually acting long-term. See: their taking on the greatest-fastest pile of debt in world history over the last 10-15 years. They did that to satisfy extremely short-term thinking about social instability. There can be no greater example of short-term thinking for such a system, than to trade extreme debt to fake faster growth for a bit longer, rather than plotting longer term in a financially healthy manner and accepting slower growth.

In terms of being unwise. The US doesn't need foreign countries, including on trade, nearly to the extent that China desperately needs foreign trade. When ranked globally, the US is among the least trade dependent major nations, and that provides an enormous bargaining position. China derives roughly 10x the growth impulse from each dollar of US economic growth, as compared to what the US derives from China.

It is in fact wise for the US to confront China right now, precisely because the US does not need China. There are dozens of countries that net can replace much of the manufacturing that China handles for the US today. China knows this, it's why they've responded very carefully to US tariffs, they recognize there is a vast imbalance.

China is in a precarious position today. They have all the debt of the US, with barely any social safety net (which will make their debt, tax and budget situation far worse), bad demographics, twin deficits (trade and budget), a smaller economy that is extremely rigid and one that is prone to frequent wrecks that must be constantly corrected by the central government with large stimulus programs. The system is clearly not working very well. There's zero proof thus far that Xi's new, highly regressive system will continue on the path of long-term economic expansion and success, now that Deng's system is formally dead. They may very well crash into a wall of stagnation under the new anti-Deng, anti-liberalization approach. It'll take many years yet to find out either way. I happen to not believe the new Xi system is compatible with furthering the success that the old system produced.
Goods were more expensive in general when a sales tax or VAT was brought in. Without riots or oppressive regime.

If taxes and regulation penalise meat, people will buy less meat - just as taxes and regulation have changed the town landscape from cigarette butts everywhere, to remarkably infrequent. When I was at school pretty much everyone smoked. Now it's really uncommon to see a smoker. Again, there were no riots or oppression.

Considering the clear majority on both sides of the political map in Europe are convinced by AGW, rich and poor alike, I don't think it as tough a sell as you make out. Inequitable solutions will, rightfully, be a tough sell among populations.
Munich has a separate visitors center, including a small hill between the runways nicely overlooking the airport.
Option A: Government regulation, sometimes fails(Article 7 and 11), sometimes get things right(GDPR).

Option B: Corporate entity self-regulates in favor of profit. consumer is screwed.

Corporations regulate not for public interest, but for profit, sometimes it happens that those two are aligned - but that is an exception - not a norm.
FastSpeech: Fast, Robust and Controllable Text to Speech
Time to go to Puppet Dag? :)
As a south indian who has travelled pretty much all over the world, I cant even describe how I feel reading this article. Because you see, in India, the trains don't even have doors. It is the travellers responsibility to not fall out :D. And then there is such an Emergency pulley in each car with the handle painted red. But since no one has ever used it or changed in multiple decades, it is completely rusted and sealed with dirt. So it is near impossible for any individual to completely pull that lever down. The levers are also directly connected to the trains brake system, meaning you are actually directly applying the brake. I have seen 4 people pulling and hanging on to that lever handle to actually stop the train. Sigh!
>* it is nothing more than a duct tape over what is happening: people no longer want to have kids.*

Yeah, and the idea is: "Let's replace them with other people, from other cultures".
I've lived in Finland for a few years and have some Finnish friends that I've debated this with. There are few relevant facts about Finland to be aware of that make this a very real threat for Finland.

1) Finland used to be under Swedish rule for many centuries until the Russians took over in 1807 after the Swedish Russian war. Towards the end of WW I Finland declared its independence and made use of the chaos during the Russian revolution.

2) During WW II, Finland was isolated from the allied forces and, with German logistical support, defeated some very determined Stalinist troops from reconquering the country. Twice. Finnish troops defeated and humiliated the Russian army. In fairness, they were a little distracted by battling the Germans. Lots of Fins found themselves on the wrong side of the border after WW II ended.

3) Finland is an EU member but not a NATO member. Whenever the topic of joining NATO comes up there is significant intimidation from Russia to prevent this from happening. This includes border closings, occasional incursions of their airspace, and the vague threat they could come back to re-occupy the country.

4) Finland has a relatively large army to be able to defend it's border with Russia. They value their independence and are fiercely nationalistic. All Finnish men serve 9-12 months in the army and there are hundreds of thousands of reserve troupes on a population of less than 5 million.

5) Finland is only a few miles away from Tallinn (Estonia) and you can get from Helsinki to Saint Petersburg by train in just a few hours. Access to the Baltic for the Russians passes through that narrow straight. That makes the Finnish coast strategically very significant for the Russians.

In short, Russia has plenty of reasons to want to influence local politics in Finland and this is nothing new for Finland. The Fake news campaigns in Finland have followed the same pattern as elsewhere. Online trolling, intimidation of politicians, playing sentiments around issues with migrants, etc. On top of that there's a Russian mafia presence in the country and Russian intelligence has long used Helsinki as a base of operations. Recently, there have been some scandals around secret bases in Finland in and around some islands off the coast of Turku in the Baltic on properties owned by russians.

So during the recent elections, Russian influence and fake news were big topics that most Finnish take very seriously. As the populists actually won a lot of seats, I wouldn't call this a great victory just yet.
That is obviously false, nobody tried to censor the creator. People have just pointed out that the title is inappropriate, which it obviously is.

It implicitly conveys the message that women don't belong in Finance. I don't see how anyone could attempt at denying that or try to defend it.

I should be happy for free speech, what does that even mean LOL?
What about UIO?
Please don't post shallow dismissals or be snarky on HN. This is in the site guidelines: https://news.ycombinator.com/newsguidelines.html
Funny thing, human scrambling is not actually random (it's a shuffle not a randomization) and neither is a coin toss.
When asked to produce a random password, people gravitate towards nonrepetition and that dependent on medium they use to type the password in. This results in a highly skewed blue noise statistics.

People aren't random even when they try to be.
>fake eggs

I haven't seen any evidence that these were ever sold to the general public. It seems very unlikely to me, because eggs are cheap, and the alleged manufacturing process is labor intensive. If you're willing to take the risk making fakes there are many other more profitable options. See:

https://web.archive.org/web/20070518092606/http://www.tian.c...

https://www.hoax-slayer.net/fake-eggs-from-china/
People often complain about HCL being very limiting, that they are sick of templating HCL, etc.

Has anyone tried the approach of writing some go code that imports terraform, rather than using the terraform CLI? This would give you the full power of golang to set up your resources.
Bonus points for good sarcasm!
Right. I understand that as "H-1B holders can't be offered an inferior health plan/401k plan/commuter benefits/bonus plan/FSA than US employees". But none of those things count toward the prevailing wage calculation. Only base pay is considered when determining whether the employee is paid more than prevailing wage.
1700 watts, all the time. Yikes.
Strictly yes, but we can't come close to reading all the comments here. If you think we missed something egregious, the likeliest explanation is that we didn't see it. You're welcome to let us know. In general, though, it's like getting a speeding ticket even if some other guy was going faster and didn't get a ticket.
Check what happens when you multiply odds. That will mean the odds for any married person to get an H1B take a nosedive or essentially never happens if there is real competition.
A TechCrunch article[0] suggests that all of this information was just scraped from the Instagram site/API, so is it fair to call this "sensitive" data if it's available to the public anyway?

[0]: https://techcrunch.com/2019/05/20/instagram-influencer-celeb...
It's not illegal, AFAIK, just suspicious, at least to some people.
Google faces first investigation by its European lead authority over GDPR