skysight-inc/HackerNews huggingface dataset:
(I'm new to FP so excuse this beginner question) How could you ever (in a non-trivial case) avoid local state mutation? It seems like any function which takes a collection and returns a collection would have to maintain some local state.

For example, if you want to take a list of integers and return a list of those those integers plus one ([1,2,3] -> [2,3,4]), that new list needs to be built up in memory somehow before it is returned, no? Sure that process might be hidden behind a generic `map` function (something like `map(lambda x:x+1, [1,2,3])`), lambda, but then you just have the `map` function building up the new list. Or if `map` returns a generator (so you don't need to construct the whole return list first), you're still storing some local state to keep track of which element of the input list you're currently processing.

What am I missing or getting wrong here?
Exactly. I'm shocked at how many people are taking Trump's "recovery" at face value.
The CA story may have been massively over blown but given what they were claiming to be able to do and their political links they deserved public exposure.

Drawing attention to the wider issues around use of personal data was a public service no matter what the motivation (and the coverage has been meagre given the importance of the issue).
Why would they have cause think otherwise? Do many tech people have exposure to the entertainment industry?
Are you asserting that people with dark skin need photo ID more “infrequently” than others? That it “isn't even worth fixing”? Then that's how the bias in your thinking translates directly into bad and racist software.

You are arguing for the developer's convenience. Good software is about providing functionality to users, not developer's convenience.
Square, Inc. Invests $50M in Bitcoin
7,000 unique domains seems insane, what could they possibly need all of those for? Unless that includes subdomains, I guess.
You don't, so don't form a union that does that. Instead, form a union that does the things you and your coworkers need a union for.

The idea that unions should run the business is silly. Unions need to negotiate a good salary and healthy working conditions.
I think what might not be immediately obvious to people outside of the bug bounty scene is that Sam Curry, Brett Buerhaus, Ben Sadeghipour, Samuel Erb, and Tanner Barnes represent some of the best bug bounty hunters out there which is definitely one of the reasons they absolutely pwnd Apple here.

I would be genuinely shocked if Apple doesn't end up paying out much more for all the bugs found. Frankly, it would be genuinely concerning if they didn't acknowledge the severity of the bugs and the time invested by this particularly skilled team.

To Sam and the others involved. Fantastic job and amazing write up. 10/10
> And if you find someone "drunk" at 9am you bet he is drunk

People "gouching out on smack" do not look like they are drunk, so I think you're correct.
I'm pretty printing.

> You can also create reasonably 'generic' extension methods that will work on 'any' Enum

Can you post a link or something to this, I didn't know it was possible and it will prove useful (even if only as an exercise).

> Enums in C# are crap compared to Java.

yessss, interesting isn't it. Some features of C# seem to be held back so as to make the next release look more attractive, do you think?
Only if they wanted a fair balance, I think Facebook is just aiming to under advertise Conservatives. There is no secret that about 95% of all donations from Silicon Valley goes to Democrats. It won't take too long until the whole world is a mirror of California.
Will Tesla Monopolize Electric Cars?
Which xenophobe put up a wall, and why is it that the US is the only country not allowed to have borders all of a sudden?

Many Mexicans worked seasonally in the US and then returned to Mexico "back in the day". I'm not sure at what point that became a problem though. Although still to this day many people are here in the US undocumented. The extent of that being a problem I'm sure we could debate. It's certainly not fair for those who attempt to play by the rules though.

Is Canada xenophobic? They won't allow just anybody in. I'm not allowed to move to New Zealand without some legal work visa thing they made up. What about France? Can I move to Japan? Why do I have to sign papers to move to any of these countries?

I'm fine if you want to advocate for open boarders (and I think it actually would be great, but we need far fewer people on the planet to make it work) but I think you really should be consistent about it.
Have to plug Typer[1] here - it's built on top of click, but uses the info already there type annotations, optional keyword arguments, default arguments, etc., to create the most "common sense" CLI for a function. For all my internal tools, has saved me a ton of time and gruntwork.

[1] https://typer.tiangolo.com/
Voice Lessons: Allegra Bandy Interview
Better solution would be to clean up the argparse API. For example why is the explanatory text argument “description” when you call the parser constructor (argparse.ArgumentParser) but “help” when you call the argument constructor (parser.add_argument)? Also why are the docs for nargs (whose options I always forget) so buried in the argparse docs?
This is what REPL-based development looks like in practice:

https://vimeo.com/230220635

I agree, its pretty cool, and actually pretty fun.
Show HN: A tool that automatically creates infographics from webpages
It's effectively a screen for skills that are very, very difficult to validate with credentials.

Yes, it also is effectively a screen for people with the spare resources to invest in a career without getting paid for it.
It would be a start, I kept finding videos of how to make ‘Covid killing’ hand sanitizer on YouTube with incorrect dilution and there was no option to flag it as spreading dangerously false information in the review process.

The questions were just “is it hateful?” And “is it illegal” with no option for “demonstrably false and offering dangerous advice”.
Apple is requesting that Telegram shuts down channels used by Belarus activists
How RT skirts high-tech blockade to reach U.S. readers
FireWire actually predates USB, and was certainly seen as a competitor during the design process for USB. It was originally drawn up as a general-purpose serial bus, but with a particular eye at replacing external SCSI interfaces. Certainly it's designed to interface with all sorts of professional equipment, but even in this space that particular decision is a poor one because of the universality of 5V components. Early FireWire-equipped laptops varied wildly in actual voltage delivery capabilities, and even Apple's generally capped out at around 9V, and the standard is extremely awkward and expensive to implement on the device side for many classes of devices. The main issue is that devices have to be capable of handling unregulated voltage between 8V-30V. For high-end professional equipment this is obnoxious and expensive, but manageable, but it's a complete nonstarter for nearly all other equipment, and that meant that even as the price of implementing FireWire signaling went down, it couldn't expand into a bunch of spaces it was perfectly capable of working in (including lower-end versions of said professional equipment).

Even including an optional 5V power pin would have improved this situation, and could have put FireWire in a similar situation to Thunderbolt 3 now, capable of functioning with both high-end professional equipment and ordinary consumer devices.
Bug bounties are not generally considered a good source of income. It's a way to hone your skills, gain experience, develop a bit of industry cachet and get paid a little in the process.
It doesn't sound like they were working on this 8h a day of every day.
I saw something related to it in two outlets, the BBC and YLE (finnish news).

https://www.bbc.com/news/world-europe-52704836

https://www.wsj.com/articles/coronavirus-is-taking-a-high-to...

https://yle.fi/uutiset/3-11433976
People focus too much on swords, anyway. Pole weapons were the primary melee weapons for most combatants, including samurai, with swords being akin to sidearms.

But there are certainly trade-offs in design. Katanas are good at chopping unarmoured opponents and being sharp. The crossguard of a longsword can and was used to bludgeon an armored opponent, who would be basically immune to cuts. So if I abducted you and forced you to pick a sword from a lineup, then fight someone to the death, you'd want to know who you were fighting and what they had, and pick based on that.
I don't see why they wouldn't have more exposure to the existence of the Writers Guild of America than they would to the Brotherhood of Teamsters. Certainly in recent years there have been a few prominent WGA strikes that would have been hard to miss.
Trump literally denounced white supremacy multiple times throughout the past 4 years.

Perhaps you can point me to liberal groups who have a) denounced pedophilia and b) are reasonably science-driven?
That is a bit of a 1-sided reading.

Our industry does have an (on average) well compensated and younger workforce than many other, that are both passionate and entrepreneurial.

Not being a native speaker I'm probably not sure which 'twang' I would sound like, but over the years I have met orders of magnitude more people in our line of work that had a side project that they were going to turn into a real business in the future, and that is a great thing, but sadly very few ever did.

The autism spectrum reference isn't at all meant derogatory, but has been observed and documented and also seems intuitively not entirely unreasonable in an industry were we have entire divisions that are expected to be passionate about manipulating abstractions in a meticulously precise symbol system for most of their waking hours.

To me it is normal that people that do not find themselves in a precarious position in terms of the the bottom rungs of Marlow's hierarchy of needs, and on top of that in a position that they see as transitory, will feel less compelled to organize.

I'm not saying unionization is some nirvana, nor am I saying it is to be demonized. I don't see why 'stifling innovation' is dragged in as countries with more worker rights, often the result of collective bargaining, do not seem less innovative. And as observed before, collective bargaining for companies do not seem to be vilified by those same people.
Most TVs don't support next-gen Xbox and Playstation high-end graphics
A Comprehensive Guide to Mailing Approaches: Zip Code, EDDM, Automation
Apple is requesting Telegram shut down 3 channels used by the people of Belarus
I don't think it falls within the bounds of the crime of impersonating a Federal agent [1]

> Whoever falsely assumes or pretends to be an officer or employee acting under the authority of the United States or any department, agency or officer thereof, and acts as such, or in such pretended character demands or obtains any money, paper, document, or thing of value, shall be fined under this title or imprisoned not more than three years, or both.

[1] https://www.law.cornell.edu/uscode/text/18/912
Sales Interview Questions Template
I wonder if there are some differences in how people pick up languages in places where learning a new language is a casual thing (example, India) vs a significant achievement (example, the US).

It does seem possible that just believing that language is easy might change the process in which it is learned, although my impression about studies on the effects of beliefs is that is hard to make high quality studies for this.
The Dutch saying is 'good tools are half the work' and there is another saying 'A good plan is half the work', so with a good plan and good tools, you're already done...
Trump started the interview by questioning the notion of the alt-right before pivoting to argue that the 'alt-left' started the violence and falsely claiming the counterprotestors didn't have permits, before adding his endorsement of the Robert E Lee statue cause. He pointedly hasn't taken a similar tack of emphasising the involvement of fine people as well as bad people with other protests involving some degree of violence, such as BLM. That's the context a person someone with some objectivity is putting it in, and it's difficult to argue with a straight face that there is no degree of truth to the media reporting it as Trump endorsing the march.
Could you or someone else explain how QUIC as a transport protocol prevents the ability for things like browser extensions to do ad blocking? How did the research project you described support that assertion? That wasn't clear to me.
In the discussion of space junk, and kessler syndrome, there is a large bias that needs to be addressed. Most commentators operate under the impression that most of the stuff up there is "junk" from human activities, that space was essentially clean until we got there. It wasn't. It isn't. There are literally tons of natural rock falling onto earth every day. By some measurements over 100 metric tons per day. That is only the stuff actually landing on earth. Exponentially more of it passes by without striking the planet but nevertheless still passes through the orbits of our satellites and space stations. Worse yet, because we have a large moon, much of that will have itself entered into some form of orbit around earth. Any discussion of the dangers associated with human-created space junk must occur in that context.

Why hasn't the kessler syndrome started already? Why has the ISS not been sandblasted after 20+ years in orbit? Those are great questions.
I used to think Javascript was a great prototyping language. In fact I specifically practiced prototyping with it -- my github is littered with repo's for each of my prototypes -- I call them the Laundromat Demos. I would use the 70-80 minutes I had at the laundromat to write a prototype for a game in JS.

However I've tried something similar with Haskell. I think I prefer Haskell for prototyping these days. It turns out you can get a long way playing with the types. Often I spend more time prototyping the types and they guide me to the implementation which is often quite small.

It takes some training and work to get there but I think Haskell, for me, is a better prototyping language -- I don't have to deal with undefined, accidental prototype overloading, etc.
If a landfill is leaking into the water supply, micro plastic particles are the very least of your concerns.
You don't need fresh water in the sea, you need it on shore.
The cost of maintaining anything in the sea is orders of magnitude above that on shore.

A cubic meter of fresh water costs about 3-4 kWh, desal plants are rather compact unlike the solar to power them and land tends to be expensive near shores so it makes no sense to combine solar and desal on the same site.
DataCamp | London UK / Leuven BE / Remote | Full-time | https://www.datacamp.com/jobs

DataCamp is building the best platform to learn and teach data skills. We create technology for personalized learning experiences and bring the power of data fluency to millions of people around the world. Our learners get real hands-on experience by completing self-paced, interactive data science courses, practice, and projects from the best instructors in the world, right in the browser.

We are an international team with backgrounds in education, data science, design, psychology, biology, linguistics, engineering, and more. We are united by our passion for impacting the future of education.

Currently, we have multiple open positions in our Engineering department.

---

## Engineering Manager

More information & applications: https://boards.greenhouse.io/datacamp/jobs/2356366

---

## Senior Full Stack software engineer (JS/Typescript)

More information & applications: https://boards.greenhouse.io/datacamp/jobs/1402346

---

## Senior Front-end software engineer (React/Typescript)

More information & applications: https://boards.greenhouse.io/datacamp/jobs/2366084
Go build something to dream about!

My job is part of my dream, but not all of it. I am currently building the other part, where I have equity in something that is growing everyday.

I hear people talk about how great high school was, or how much they loved college or their 20's. For me, each decade is better than the last as long as I'm still learning, growing, and building.
I find I "tune out" because I'm concentrating on something else.

Same way I stop noticing sometimes that someone is trying to talk to me, or that I have a deadline that's drifting past, or that I haven't eaten or moved from my chair all day.

The sound doesn't go away, but I stop noticing.

I'll start noticing again if I'm trying to listen to something quiet, and realise the tinnitus is louder and slightly masking what I'm trying to hear.

Or any time I pay attention to what I can hear in the background.

I don't tend to notice the tinnitus if music is playing, or I'm talking with someone.

I agree with you that it's never gone. Though I've noticed the volume varies a lot. From quiet like the background sounds from outside where I live on a quiet day, or even quieter than the sound of breathing and my heart beating, to as loud as someone talking to me. The tones vary too. Fortunately they are usually higher frequency than what I'm listening too which reduces masking.

I've had tinnitus since I was a child, so I doubt it's due to age-related hearing loss. I don't know a cause, but back then I noticed it was louder when I was ill and stuck in bed, and actually I found it comforting then, like it sounded like my body processing as it should.
Is there a similar study that considers things like pension when it comes to compensation. A lot of teachers in the US have fairly amazing pensions, and a lower base salary is where that money comes from. I honestly don't know if it makes up the difference; just that the linked article didn't seem to discuss it at all (though I skimmed).
Great stuff. Would be awesome for you to share this with the community over at https://collective.energy if you're willing OP
That's only true if you have no way to be put in (financial) risk by the vulnerability you're not disclosing to Apple.
> Do those numbers justify draconian shutdowns and bankrupting half of humanity?

These are the numbers with "draconian" counter measures. We can only imagine the numbers without them. And that is what should be compared with the numbers from flu and pneumonia. Luckily, we don't have these numbers.
For one they did not only get the money but also the exposure that comes with anything Apple. A lot of people will probably want to hire these researchers.
Legal problems change over time. For example, same-sex divorce child custody disputes were not a thing only a few years ago. In the transition from not being a thing to being a thing, that problem went through several phases of being a distinctly different sort of problem.
> I would think it's just impossible to secure all that

You can make sure your village have no spies, you cannot ensure the same for a city. I bet every large enough network is compromised to some degree.
OP stated that Zero Hedge has not been found credible by some fact checking organization. I'm asking what makes them credible to make those judgment calls. It's not incumbent on me to assume their competence and/or objectivity and expand effort to prove otherwise.
Heck, why not just go one (several?) steps further and just use macros to create a DSL for <insert your favourite language here>?

https://aphyr.com/posts/353-rewriting-the-technical-intervie...
AKA a Japanese "Unit Bathroom" https://www.google.com/search?q=japanese+unit+bathroom&clien...
A solution to what?
Ah that's awesome to hear!
> In any case, the creepiness of fb just keeps rising. Maybe they'll end up exploding the whole thing.

Somehow, I doubt it. They’ve established themselves as a major tech stock, largely through the “money at all costs” ethic you describe above, they have billions of users that derive significant amounts of self-worth from the platform, and a world-class marketing arm to keep reminding us how much good they’re doing for the world.

Barring some major fraud scandal, I don’t think the market would be interested in moving away from them at all.
This is the weird thing. Americans love to complain about how stupid their unions are, and according to some anecdotes, some American unions are indeed pretty stupid. But these are the unions created by Americans.

I don't quite understand the underlying cultural issue that leads Americans to create unions they hate. It's got to be something cultural. Or is it something in US law? It seems so easy to fix, but somehow they end up creating something they hate. Why? What causes this, and why is it so hard to fix?
Chance to get $750 to your Cash App Account
But we need rules for the benefits of the society as whole not just for teens.
For things that don't require the complexity/features of argparse, I use sys.argv. Doesn't require any extra packages and other programmers have no trouble understanding the code.

Also it avoids a pallets package, which is good because I prefer to avoid any unnecessary exposure to its maintainer.
> (1)A Supreme Court decision is made moot by legislation, as per any law

Minor nitpick: Not all decisions can be overridden by law. Cases dealing with constitutionality particularly. If the Supreme Court says something is a Constitutional right, only two things can overturn it: (1) a Constitutional Amendment, and (2) another Supreme Court decision[a].

[a] Brown v. Board, for example, overturned Plessy v. Ferguson[b]

[b] Well, not exactly. They didn’t say they were overturning that decision, but it made the old one moot by saying the opposite of it (leading to the same result).
Ask HN: Advanced Course for Matplotlib
Hi,

I am looking for a matplotlib course for advanced users. I am a PHD student in visual data analysis and I have plenty of experience using matplotlib. I have seen a lot of possibilities developing with matplotlib (object oriented or state-driven) but still, I would like to know if there is a well organized course teaching all fancy concepts and features like subplotting, grids, interactivity and so on.

Can someone recommend such a course ? I would be very thankful!
How not to be boring for candidates
I work in tech and most certainly do not despise tech workers. I don't see what political leaning would have to do with this issue. I am in favor of some form of collective bargaining, but at the same time aware of some of the potential abuses that sometimes come with that as well.
Cost of living is radically different in some places. That and software engineers are significantly underpaid in NZ (and Australia) relative to their economic output.
Reading too much political news is bad for your well-being
I like this write-up! This could be easily turned into a guide for internal teams on ways to look at your own infrastructure and apps and secure them, as no security team is going to do it all for you.
It comes down to intent. If you falsify a government document and use it to defraud someone then that would be a criminal act. But if you show a fake tax return form for "Donald Trump" as a joke then that would be protected free speech.
Here's the president, leader of the conservative party, in his own words denouncing white supremacy, as covered a year ago by CBS https://youtu.be/DUdRS98R6B8
This isn't a zero-sum situation, paying the workers more can increase overall profits for a company.