skysight-inc/HackerNews huggingface dataset:
>> state passed around as props

Context provides a way to pass data through the component tree without having to pass props down manually at every level.
https://reactjs.org/docs/context.html

>> single source of truth

Often, several components need to reflect the same changing data. We recommend lifting the shared state up to their closest common ancestor.
https://reactjs.org/docs/lifting-state-up.html
Now if we can get Larry Sharpe elected this year we may actually be able to have some pride in how our state is being administered.
> At the moment, the Democratic coalition in California is — relatively speaking — a smooth running machine.

I'm not so sure about that. If that were true, we wouldn't see so many vetoes by the Democratic Governor of the laws passed by the Democratic legislature, nor we would we see so many failed bills in the Legislature.

There is definitely a split in the party between those that are "almost Republicans" and those that are "liberal Democrats". The Democrats have a supermajority in both houses -- they should be able to pass anything with ease.

But for example, they couldn't pass a new zoning law that would allow for a ton of new housing, something we desperately need. If the party were running smoothly, they would have been able to work out a new zoning bill that everyone was happy with.
You’re completely discounting that PHP has qualities that may have helped early Facebook grow. In fact one the engineers did a talk about exactly that.
"Technically" of course it's just as much of a programming language, but "practically" it's normally used to kick off other programs, and is just glue meant to pass input and output between programs. FWIW, when people use Python for small automation tasks, I usually hear them referred to as scripts instead of programs. Program seems to imply that it's useful on its own, script implies that it doesn't serve a purpose besides running other programs that are generally useful.
> (meaning the owner cares a lot about external opinions).

I actually like this about FBOS. I’ve found that I appreciate their vision and direction on the projects I use (React particularly, I love their stewardship there, but also Relay, where yeah issues and suggestions are ignored but that’s fine because I like what the team does and the slow pace). I appreciate that they’re not pulled this way and that way by the community and its whims. That’s why I don’t dig Apollo for example, which seems to be one of these community projects that almost exists more for the community than for the product and tries to be everything to everyone and in the end is not something I appreciate technically or even as a community. Of course Relay docs suck but hey it’s open source! I’d rather use a really strong product like Relay than a weaker product like Apollo, even if it means having to learn some internals.
Since we're doing an aside, what advantages do those "monorepo" things have over git submodules?
Sorta but not really.

You can write a single piece of code that's valid C, C++, C#, and Java but that doesn't make them the same language or subsets of one another.

VBScript started out using the same conventions as VB and a subset of the syntax but it was never really related to it beyond that. There are different flavors of VBScript as well. CScript is a console variant, WScript for window environments, and ASP for IIS Web Development. They're mostly compatible but not entirely. When classes were introduced, they weren't immediately available across all the variations and still aren't IIRC.

It's all very confusing though ultimately I don't think that it contributed to the negative connotations about it. Being associated with VB was ultimately what tainted it.
considering how popular "webapps" (monstrosities with 5M+ of compressed javascript) are, you need a powerful CPU even if all you're doing is browsing.
Half the DNA was plagiarized.
Just be more vigilant.

Sadiq Khan has said he believes the threat of terror attacks are “part and parcel of living in a big city” and encouraged Londoners to be vigilant to combat dangers.
Top Private Companies in Cloud Computing
Rotationplasty creates knee, preserves young ballerina's dreams post amputation
> The vision was to stretch this tube system, arced hundreds of feet in the air, from a ground-level entry point on Google’s Mountain View campus to an exit 35 miles north, in San Francisco, so Google’s rainbow-colored beach cruisers might one day be seen flying over U.S. Highway 101. Yes, it sounds like a Hyperloop for bikes.

And you're telling me this ran into problems!?
why do people care so much about mass shootings when they make up a tiny share of total homicides? it's not the body count, but the symbolic implications.

3000 deaths is not that many in the grand scheme of things. we expect thousands to die every year to disease, accidents, regional conflicts in unstable areas and are not shocked when it continues to happen. but it is a severe violation of what we expect for foreign actors to kill that many in the financial center of the most powerful country in the world. I would argue that anyone living in the west should be shocked by this sort of event. like it or not, the US is a key part of the west's defensive posture. it wouldn't take too many of those events to destabilize our half of the world.
One can only hope. Unfortunately the NYC mentality is more excited to throw money at the dumpster fire and complain endlessly than accept that it needs to be starved and restructured.
Unicorn Color Changing Mug
I do have to say that any exploit that requires physical access to a machine is not going to get the same attention from one that can be performed remotely.
The other side of the abstinence issue is that it's difficult to find good information about the relative risks of different smoking behavior. Nearly all smoking advice and all smoking regulations are based on the notion that literally no amount of exposure is acceptable -- full stop, end of story, do not inquire further.

Even the CDC uses that kind of hysterical, unscientific language to describe the risks of secondhand smoke: "There is no risk-free level of secondhand smoke exposure." [0] That's a religious claim, not a scientific one.

[0] https://www.cdc.gov/tobacco/data_statistics/fact_sheets/seco...
If UK court decisions are anything like the ones from the US Supreme Court, it's a fairly safe bet that the actual judgment is a lengthy document that explains those criteria. I wouldn't judge the thoroughness of the decision itself from a few out-of-context snippets.
I had a Windows phone. The UI sucked, of course, but they all did because of the tiny form factor. They had to, right? Then my buddy and I went to lunch one day, and he showed me his new "I-phone".

The heavens opened up and the truth was shown to me. I immediately realized, they didn't have to suck, after all. What a revelation.
> It makes sense to get the person at the top. They are ultimately responsible/accountable for things. They are well prepared in advance so why not go for them?

What's the point? Is anyone actually responsible/accountable? Did anything change at Wells Fargo? Equifax?

Wells Fargo blackballed employees who make $35k a year. The CEO testified in Congress and took his golden parachute.

I am trying to understand what responsibility and accountability mean.

https://www.c-span.org/video/?415547-1/ceo-john-stumpf-testi...

Previously on HN: https://news.ycombinator.com/item?id=12696494
Thank you! Thanks for repoting the typo ;)
The L0pht Legacy
How recyclable are these batteries? I haven't seen much info on how they will be handled at end of life.
One downside to using Redshift's Python UDFs is that they don't parallelize; instead, they process on a single node. So while technically possible, it's only really feasible to use them for purposes like JSON flattening as part of your ETL load, rather than on the fly. And since they only allow scalar outputs, you either have to run a bunch (one per flattened value) or use a hacky solution where you leverage some nested CTEs to try to output all of the flattened records as a single value with a custom delimiter, then leverage built in functions to further split that scalar into multiple rows. I've heavily used Python UDFs in Redshift, and they're fantastic to fall back on when you're backed into a corner. But they're such a second-class citizen within Redshift[1] that I wouldn't consider it a viable alternative to the lack of unnesting and flattening support.

[1] I've used Python UDFs extensively since they came out, but haven't evaluated their performance characteristics in about 6 months. Please let me know if my analysis is out of date.
The Senate Intelligence Committee hearings are usually pretty facts-first unlike the other random hearings and sessions. I watch them on C-SPAN whenever they happen (which isn't that frequent).

Edit: I strongly recommend watching these directly from C-SPAN rather than the summarized spin-version from random news companies. You might be surprised how little of their time is wasted on grandstanding. Yeah, some politicians will throw in their jabs, but that's not the purpose of those committees and it's a fractionally tiny amount of the dialog. But that's what the news focuses on because it's the most sensational.
Compression time is heavily mentioned, but how about the output file size?

Over the years there've been wildly different PNG file sizes And a good encoder can secure something like 50% file size against a naïve implementation.
Noted. Would "This attitude is part of the problem" have been acceptable?
You absolutely do not need to use a state management library to build a React app, and, in fact, you need them even less now than you did a couple years back, because the Context API got so much better.

For a lot of straightforward React applications, state management libraries probably make things worse.
that's a cool idea
I disagree. Cutting away from, and taking an adversarial stance toward, Google is probably the only thing that would keep Firefox relevant in the future. If Mozilla Corp didn't exist as-is, I believe that Firefox, SeaMonkey, Thunderbird, and other related programs would honestly be stronger and have more market share among users who are not the lowest common denominator, because they would be supported by a strong community making democratic decisions, not clamped down by whatever choices some marketing suit makes about a "brand" which is now almost meaningless.

Pale Moon is proof enough of that - the platform is viable, and people care about it. If Firefox were to discard the wrongheaded choices, I'm pretty sure sure that the PM community would fold back in. Rather than saying, "oh maybe there's a reason Mozilla Corp's not using the money for real advertising", users would still be going out like we did in the early '00s and building word-of-mouth to support a product worth supporting.

Corporations do not exist to "play nice". They exist to overtake, consume, and ultimately to destroy. Google has almost fully overtaken the Web for corp backers. Mozilla needs to develop the guts to take it back for the users.
>> "I’m a dude but I wanted the phone so bad that I didn’t mind the colour."

That's such a strange qualification. Guys who aren't afraid of pink ("rose gold") are about 10x more attractive. It's a strong signal that they might not be a toxic jerk.
I think that's supposed to read as "Someone who votes differently than I do"
The point is, "100 miles inland" isn't an answer. It's a separate issue from the problem of impoverished people living in low-lying coastal areas who can't afford cars or other means of leaving at all (there are hundreds of thousands in the path of Florence).

If you're gonna leave the North Carolina coast for the hurricane and you can afford to leave at all, there's little financial difference to whether it's winding up in inland rural areas, or simply heading to a major city anywhere else in the country. Drive to Nashville, or fly to Chicago.
Even if you don’t like what Google does vis a vis privacy (and I don’t) I think you’d have to completely agree with your assessment. Public congressional hearings are almost always political circuses, and you’re not going to “win” one of them. Congress needs to legislate the issue of privacy (something like GDPR would be nice) not do a piece of meaningless and self-serving theater.
> Imagine the variety of bikes people would come up with, lacking alternatives: Personal transport, of course, but also cargo, long-haul, rough terrain, tandem/triple/etc when more power is needed, rickshaws, etc.; with bikes already being the established 'first mover',

This did happen: Bicycles used to be the primary mode of transport for many many people even in Europe. It certainly was in China and other parts of Asia. Long John Style Cargo bikes - the type that Bullit for example builds - were conceived in the early 1920ies. Butchers/Barkes Bicycles were common until the 1950ies in Europe. Cars were a luxury back then, common people used bicycles, walked or used public transport.

I think that electric assistance is what will drive a renaissance of cycling as a mode of transport if infrastructure can be provided that makes cycling in cities safe and enjoyable. It allows sufficiently high speeds to achieve reasonable transport times even on medium distances for most people.
Loved it! Related discussion: https://news.ycombinator.com/item?id=17785162
I didn't take it as a personal attack (and didn't downvote you) but I don't agree. There was an actual rule in place that Rosa Parks had to stand up against, not just terminology she was uncomfortable with.

I think it's not safe to assume people who are from minority groups or people from underprivileged backgrounds have a problem with this (source, myself).

When you experience actual racism, something like this looks pretty silly. I'm in agreement with antirez. I wouldn't use these terms in a new project, but their use for the past half a century should be pretty uncontroversial and definitely not cause for mass mobbing/shaming...
The “One Africa” Fiber Network from Cape Town to Cairo Is Live
Fake it til you make it. The only way to become senior is to do the work. If you have the opportunity, take it.
Just FYI, electrek is consider very bullish on Tesla. A lot of their articles lean. Just like a lot of the short sellers sites lean the other way.
But the fact remains that the iPhone is used as the example, and so the myth of Jobs as a lone-wolf who did it remains. Had to have that hook to focus the article, but still feeds into that narrative for all the people who read the title but not the article.
It's a common dog whistle from the right about college campuses suppressing the free speech of Conservatives. Their complaints stem from Conservative commentators being rejected from speaking gigs on college campuses, sometimes because of protests.
> VERY high taxes (that are supposed to stop inequality, but it doesn't. Surprise)

This isn't justified. There's a lot of inequality in California, but given the makeup of the state, it seems reasonably likely that it would be even worse if the state were more hands-off.

> Allows illegal citizens to vote

This is not even a little bit true. You should really vet your sources of information more carefully.
Still, the article is weak. Based on the same argument, very few people invented anything. The article missed electricity, cables, wires, electronic components... see? The article is rubbish.
My previous car had paddle shifters (DSG system) and I did not find it to be a great shifting experience at times, especially under 20mph between first and second. I saw it most pronounced when approaching a stop.

There were other times during fast up or down shifting that the car would get confused and pause before figuring out what to do.

Also, these newer automatic transmissions still do not give you anywhere near the level of control you get over the car, which I found to be really annoying whenever it snowed.

I'm sure these systems have improved, but last year I sold that car and bought a manual instead. It was hard to find, but I'm glad I switched back.
US F-22 fighter jets intercept Russian bombers near Alaska
That... actually makes sense - hah!

The rendering began to slow down so I stopped doing anything and let it run. My 3 year mark: https://vgy.me/xgjxkO.png with about 250k/day increase. Most of my branches look like this: https://vgy.me/FAnavY.png with a range of projects: https://vgy.me/j8zcHS.png

Without any experimentation for metagaming, I think hiring senior marketers at a 10:1 ratio with any other position would probably rake in money as most revenue is based on how many projects you can get - while having "just enough talent" that the projects are profitable.

E: Tested my theory and was right. 500k/day but the UI had become too unresponsive to continue hiring. As predicted, was a fun way to spend 20 minutes. :) https://vgy.me/e1pSZJ.png
Are you sure you don't have fears "imposter syndrome"? A few things: "Senior" as a term has been pushed down in the actual experience required (eg: I've seen director postings with 5-7 years experience... when truthfully it is at least 10). Additionally, if anything, companies generally "push down" an applicant to the lower rung, especially in consulting. So the fact that they are suggesting "Senior" I'd say is probably right. Also, think about it as a way to "up your game". The moment you onboard, take every Senior, Junior, and Principal out to lunch/coffee, etc and say "what is expected of this role - genuinely"? Then ask each of those whom is the best person to watch in your role - and try to gauge where they are.

Edit: Why do firms "push down"? Each is different; some may be needed a very particular role filled at a client, some believe in "give candy quickly" and promote 1-2 years after hiring (when possibly that person was already operating at the promoted level).
Isn't native interoperability the entire point of Node.js though?

Filesystem access etc. has to, at some point, cross the barrier from VM to native code. Sure Node.js has file-system access (and other stuff) built in, but willingly moving in a direction that's non-extensible seems odd.

I know you've since said you'll just pull native modules out of the cache, and I'm perfectly happy with that. However, please don't overlook the importance of native interoperability because the code you tend to write abstracts this away from you. Native interoperability is what makes Node.js.
I love my SE but as an iOS developer I'm ready for an upgrade. I went into this year sure I'd be upgrading to something new, but they've offered me nothing.

The March and June events came and went without anything interesting, and now everything is a variant of the same phone with no headphone jack, oversized and overpriced.
Looking for a mature tool, but thanks for posting. I'll give it a try and let you know what we think.
I think you have to separate whether California is a good social and cultural role model from whether it is a good economic role model.

Social liberals will naturally see inclusive (relative to the rest of the country), majority-minority California as a success story. Cultural conservatives will continue to regard it with distrust.

But the questions raised in this article are primarily economic, and I think the point about inequality is particularly salient given which party holds power.
,,I ended up not using the fancy iterator systems (yet?) but the ThreadPool is perfect.''

Please give Rayon iterators another try instead of using thread pool + message passing, it's one of the best features of Rust.
That observatory is near a couple of bases. They likely want to fly some experimental aircraft and minimize the amount of specialized recording equipment in the area.
I expect better from Scientific American, yes technology these days stands on the shoulders of many smaller innovations, but it is the sum of all these small components and the software that makes a tech product innovative.

Also, the article refers to lithium-ion/lithium polymer batteries as lithium batteries. This is wrong, as lithium batteries are what you call primary cells with lithium anodes (e.g. button cells), not secondary cells like are used in a cellphone.
I guess then I have no idea why Redux is so widely used, given now the Context API exists.
Apparently it has “excellent views of Holloman AFB and White Sands Missile Range” (https://reddit.com/r/SpecialAccess/comments/9f91sm/_/e5uy1fd...) . Further down, someone says that someone claims that the Chinese were using the antenna array at the observatory to spy on missile tests at WSMR.

If the place was truly low on staff then this theory may not be so far fetched.
> Plus, even if the Peach State somehow could get enough paper ballots, it doesn't have enough optical scanners to read them.

I think they are mistaken. Georgia has approximately 20 million optical scanners capable of reading ballots (population of 10.5 million, each averaging a bit less than two working eyeballs).
Completely disagree. I don’t know how you could say that. Business leaders have to answer for their companies actions, and senate hearings is one way we have of them doing that. And as wybiral said, it was a Senate Intelligence Committee hearing.

Maybe I’m jaded, but your response reminds me of those from Theranos employees on this very forum when it was criticised.
Visual Basic for Applications (VBA) was what is used in Office Products and that is modeled after Visual Basic 6, not VBScript. VBScript was used mostly for Classic ASP development (both front end and backend).
In all seriousness he probably didn't show because he was offended they'd make him. He has been a large proponent of perfect data preventing crime and maintaining society and is very cooperative with the IC.
To be fair to Congress, their job is really to shape events in the public interest. Considering these hearings to be pure fact-finding is a category error. If they browbeat a celebrity, this shapes events in multiple ways: it affects fundraising, it affects the behavior of the individual browbeaten and those in this individual's orbit, it affects the public narrative, and if affects actions at the voting booth. And that is only the beginning. It is an extremely complicated game with numerous players and feedback loops. You can call it "grandstanding", as though it's purposeless and ineffectual, but obviously it isn't, and really this is their job. They want to speak to certain people because they calculate that this will give them leverage to shape events in a certain way.

This is how the sausage is made.
That is funny :) Your profile is very interesting and I'd take you up on your offer. Sadly though, because I speak my mind politically with this account (often questioning the left-wing status quo) I must stay anonymous otherwise I risk real career damage.

Back on topic, it's great to see people who can be on opposite sides of the major areas of debate in our industry have a common underlying love of tech that's bigger than business (and politics).
Not showing up here was the opposite of keeping a low profile though.
It is, but ad hominem arguments are not always fallacious; in fact, they're probably valid as often as they're not. A list of experts vouching, with their credentials, for a concern is about as far from "fallacious" a setting you can get for an ad hominem argument.
Which works on a totally different level and doesn't help at all in terms of sharing dependency snapshots between different projects.
Well, for one, intersectionality is about how one describes reality, it is by no means normative and a cursory glance at the wikipedia page indicates as much, with citations if one is so inclined to put any effort at all in thinking critically.

But are you?