skysight-inc/HackerNews huggingface dataset:
Correct, React is essentially a tree diffing & reconciliation library tailored for the DOM. As such its foremost concern is to provide a declarative API for manipulating the UI tree.

How data flows into that tree is not its concern. This is why there's a wide variety of state management libraries available. Empirically I agree teams often get state management wrong, because it requires a different skillset than developing reusable UI components.

Frameworks like Angular make a lot of hard choices outside the view layer for you.
It should be noted that such a slick class has had the priviledge of being granted the kind of institutional suport which is extremely rare across higher education today, at least in the West. Being allocated the same module for 13 years? Having it be the only module you teach? Having an entire production team at the ready?

It's a mistake to think this is one man's achievement, and a model to universities everywhere of the kinds of quality that can be achieved if they give their staff a break from the endless restructurings, precarity, admin, overwork and burnouts that characterises the vast majority of their situations.
> the tool isn't really set up to accommodate a momentarily-invalid state.

I've struggled to explain to students, teachers and others my frustrations with anything that isn't plaintext code. This is it - thank you!

I think it's also a neat learning concept about why it's important one is _able_ to make mistakes when writing code. So many are overwhelmed by the flexibility or fragility of syntaxes but there's actually a lot of power in that.
Bug Bounty Programs – commercial and free platforms
you can measure how risky it was using something like Sharpe Ratio. Then you can assess how likely you are able to repeat it again. Also, kelly criterion allows you to measure risk of ruin for every bet. "making consistent returns in 4 years" does not really mean anything without additional information.
Stories like this one remind me how flying was diffrent when I was a kid in the 70-80's.

It was better, except for the cigarettes smoke which was supposed to miracously dissapea between rows 15 and 16.

And the price, it was way more expensive.

Beside that: light to no security, real food, a sense of excitement. A flight was something a kud remembered for a long time (I still do, after 40 years).

My teenage children, after 50 flights, treat this as an extended and cumbersome bus ride.
1. There’s a companion C book for the course 2. The labs go into much more detail compared to lectures 3. The psets can be Nintendo-hard; you’ll be doing devilish pointer stuff by week 3 or 4.

The happy-go-lucky, flashy tone of the course is completely misleading. It is a challenging course, so much so that it’s been the subject of numerous cheating scandals from students caving under the pressure over the years.

As for depth, this is a first intro to CS meant not only for CS majors but for people from other domains (Econ, humanities, hard sciences, what have you). The style is meant to cater to people who might not be a priori fascinated by flipping bits. Still quite a bit of people decide to concentrate on CS after taking the class, so it must be doing something right in that sense...

The course is not mandatory for CS concentrators, so if you already know your fundamentals you can jump right into CS51 (functional programming) or CS61 (intro to systems), which are outstanding courses but much more terse in style.
A Comprehensive Guide to JavaScript Regular Expressions
Why Do We Have Dev Rels Now?
Capa: Automatically Identify Malware Capabilities
Yes, if you're a stone cold killer, but otherwise, we have a separate set of rules for minors.
This is the "Gaia hypothesis" on a smaller scale.
Ask HN: Framework or App for building API documentation site?
I'm working on a small API-based SaaS and am starting to build out the developer-facing documentation. Can anyone recommend some tools to make this a little easier? Especially on the front-end/design side.
Actually from the article
"Just to be clear, AMD specified OEM and not system integrators (SIs). On our call, AMD clarified that the market for its APUs is skewed very heavily towards the big mass-market prebuilt customers like HP and Dell, rather than custom home builds. The numbers quoted were around 80% of all APU sales end up in these systems, and by working with OEMs only, AMD can also help manage stock levels of the Renoir silicon coming out of the fabs between desktops and notebooks."
By this I mean /stating my opinion/ or more precisely, revealing various unconscious biases I may have towards a subject.

Sometimes stating an opinion is making the unconscious, conscious, and then learning the truth about a subject by the insights and replies of others.

In other words, I'm shooting in the dark most of the time on HN and waiting to hit a target, or some truth I can salvage from the replies of others.
just being jaded , all the money is in shareholders and investors pockets. Because once you have a disruptive AI-based startup, you have become englightened and now are on the course to change the future of human race with your amazing AI. (AI? i meant series of if statements and linear regression).
Exemples would be welcome here as I've a strong belief that hooks made react components cleaner / shorter
Unnecessarily bashing PHP is soo 2005. Like javascript, it can be written poorly due to its loose roots. Also just like javascript, it is a very different language now.

That said, DocuWiki is pretty decent to get up and running quickly.
The site is throwing a security error for me: PR_CONNECT_RESET_ERROR
Anybody else have the same issue? Or is the site just being hugged to death.
Are you doing things like bankroll management? measuring your risk of ruin? Sharpe ratio? if you are not tracking how legit your upswing/downswing is then I think are doing a disservice to yourself.
>Who doesn't do due diligence before investing?

Theranos managed to suck in billionaires like Rupert Murdoch, Tim Draper and Larry Ellison, executives at Safeway, the Walton Family and others. All without working technology or a single peer-reviewed paper regarding their work.

It happens all the time, and is happening as we type this. How?
> Malan sees it differently: it is wasteful, he said, to have thousands of teachers, in computer science or other fields, all doing the work of devising similar curricula. Good programmers spend much of their time “refactoring” software—editing it to reduce inefficiencies, or “code bloat.” Malan’s teaching method pursues a similar objective. “I don’t think we want just one introduction to computer science and one introduction to psychology or any such field,” he said. “But there’s probably a number around dozens—hundreds—that makes more sense?” Rather than threaten the livelihoods of professors or the independence of institutions, such consolidation would, Malan believes, free teachers to do their best work. And holding online courses to the same standards as in-person ones would allow students beyond the small, predominantly privileged groups who enroll in places like Harvard to access the highest-quality instruction.

100% agreed with this, and this is something I've often thought about. An unbelievable amount of work is spent replicating the same curricula, lectures, and course materials over and over and over again. Think of how many calculus textbooks there are for example: there's thousands in English alone, as math professors are incentivized to spend years of their lives writing a textbook they can then have their students buy every semester, and thus create a second revenue stream for themselves.

There aren't a million encyclopedias anymore; Wikipedia has pretty much dominated that space. We need something in the education space to fill that niche as well. Imagine how much better an experience most students will have if, instead of watching a random teacher out of millions teach a subject, and using one out of thousands of textbooks, they are instead watching the absolute best lectures and using the single best amazing compendium textbook of knowledge for the subject material. There are some projects that are trying this (e.g. the Wikimedia Foundation has Wikibooks), but none are that successful yet. I can think of a variety of reasons why, mostly having to do with inertia, but the reasons why it should succeed are far more compelling.
I loaded it on Firefox on macOS without any problem. Maybe you block the use of WebGL by Firefox?
The Unreasonable Effectivenssof Mathematics in the Naturalsciences (1960)
You're answering to a guy who's been in 2 computer science labs focused on robotics! It is true that a lot of people have an EE/ME background, but I think you'd be surprised at the amount of CS people in robotics. Especially in SLAM which I mentioned, given that this is a probabilistic inference problem.
also the restore/recover process has to be laid out step by step and be as simple as possible. No one is doing a restore in a relaxed, easy going state of mind. Restores are done in full panic mode with the team thinking about how they're going to break the news to their families that they've lost their job.
I'm OK (on mobile, android and chrome).
I think the origin of this is with Global Warming. The Republican party became devoted to contesting this, which over time has meant consistently opposing the scientific consensus. Once you spend a couple decades saying/being told that the experts are all wrong, they are conspiring against you, telling you lies etc. then what do you think is going to happen?
Python 3.8.5 released as a security hotfix. 3.9.0b5 also available
dang - can you change the title on this? It's less about "building a developer cult" and more about "How Stripe builds for Developers".
> I'm not bashing the lecture style, but if I were a student, I'd prefer a good textbook to those lectures.

I suspect you're in the minority here. The majority of students are more engaged by a good professor lecturing on material than by reading a textbook. This is especially true for introductory classes which CS50 is, because a lot of the students are from other majors and are being introduced to the entire field for the first time. It's hard to enter a new field just by reading a textbook.
1.1B Taxi Rides Using OmniSciDB (Formerly MapD) and a MacBook Pro
While this article is about OpenBSD's floppy support, if you already had OpenBSD on the machine and working networking, upgrading it without any external devices is as easy as:

ftp -o /bsd.rd https://cdn.openbsd.org/pub/OpenBSD/6.7/i386/bsd.rd

Then reboot and at the boot> prompt, just type "bsd.rd".

On 6.6 and newer, just type sysupgrade and that's it.
I have a bit of a love/hate relationship with Prometheus. At home I really like it; it was simple to set up for my needs and most of my configuration is on my server which then scrapes other machines for the data. However I find it quite frustrating at scale for work, both in its concepts (it's hard to describe but it's sort of...backwards?) and in its query performance, although that might be a side-effect of using it with Grafana and me attempting to misuse it. By contrast I think the concepts of something like TimescaleDB are easier to understand when it comes to scaling and optimising that service.

In my previous job I had a very clear use-case for not using Prometheus and did for a while use InfluxDB (it involved devices sending data from behind firewalls across many sites). I found it pretty expensive to scale and it fell over when it ran out of storage, which feels like something that should have been handled automatically considering it was a PaaS offering.
That makes a surprising bit of sense. Damn.
True, but cutting is what we're talking about here, and since the material they've invented in this article is made of aluminum foam, it'll bend even easier than steel of the same thickness.
While I know there are people who argue in bad faith on the internet, I am genuinely curious and am not looking for a fight. I would have reached out to you privately but you don't have an email or contact listed on your profile.

I'm mostly curious about which part of devops you're skeptical about, if it's tooling, or process, or the mentalities or something else.
The first one just feels like a premature optimization. Yes calling setCount forces a rerender of that component, but unless there's lots of subcomponents inside that component, I wouldn't bother. Chances are later you'll need that state in the view, and if you have "unexpected side effects" from rerendering then that is the problem.

The other tips are fine; effects should have a single responsibility and links and buttons should be accessible.
Really like the prose/Adventure-like writing style of this "tutorial"!
The question is how to do long term storage though. Something I've had a bit of trouble rationing about.

Right now all of my metrics are sitting in a PVC with a 30d retention period, so we're probably fine but for longer term cold storage the options aren't great unless you want to run a custom Postgres instance with the Timescale plugin or something else more managed.
I think this is pretty significant. I would have guessed this to be among the very last things to be automated.
Can you link any evidence of federal agents pulling occupy protestors off the streets into unmarked cars? I cannot find any and the linked article does not discuss them.
I remember being very concerned that the fact checkers wouldn't be operating in a vacuum and we'd have a bunch of facebook execs being arbiters of truth.

And that appears to be exactly what has happened. This is terrifying. A handful of mainstream publications and a bunch of basically unknown facebook folks are now the censors. We've already seen well known EFF activists rated untrue for their arguments against warrantless surveillance, and now the censors already can't agree on climate change. I've seen arguments about Confederate generals rated as false because of modern news events - in ways that disagree with well tenured academic historians.

We seem doomed in this regard.
You can quickly do this on Windows:

cinst influxdb1 /Service
cinst grafana
start $Env:ChocolateyInstall\lib\grafana\tools\grafana-*\bin\grafana-server.exe
git clone https://github.com/majkinetor/psinflux
import-module ./psinflux
1..10 | % { $x = 10*$_ + (Get-Random 10); Send-Data "test1 value=$x"; sleep 1 }
>> but React is not a framework

It's a framework which advertises itself as a library.

In reality, there is nothing library-like about bypassing the DOM for rendering and making developers use a custom programming language (JSX)... and please don't give me this tired old argument that JSX is not compulsory! Has anyone ever seen a real React application which does not use JSX? Exactly.

If 99.9999% of developers are using React as a framework, then for all general communication purposes, React is a framework.
Oppose the tyranny of colour as well?

Your creation reminds of the work of M. C. Escher

http://mediad.publicbroadcasting.net/p/nhpr/files/201409/5-E...

https://playingcardcollector.files.wordpress.com/2014/11/rel...
Presumably a business can request them from a bank?

I would expect 50¢ and $1 coins to be especially popular with people running vending machines or other machines giving change. 50¢ coins means refilling it less frequently, and encouraging $1 coins means less trouble recognizing paper money.

I wondered how the coin mechanisms on pool tables work in the USA, since nowadays it's probably not unusual for the price to be more than $1 or $1.50 (depending whether the mechanism has 4 or 6 slots). In Europe they just take whatever mixture of coins is appropriate, an image search suggests in the USA one must buy metal tokens to feed the machine.

I remember trying to feed about $6 in quarters into a payphone in the USA, when there was some issue with travel insurance and we had to make a call to Britain. We couldn't put them in fast enough. Eventually, the cheap motel let us use their normal phone.

(The first two are still in widespread use in the UK, although I haven't seen them much in Denmark or Sweden. Here, they're more likely to have replaced the coin slot with a contactless card reader.)
One point of note for SourceHut's Prometheus use is that we generally don't make dashboards. I don't really like Grafana. I will sometimes use gnuplot with styx to plot graphs on an as-needed basis:

https://github.com/go-pluto/styx

This is how I made the plots in that blog post.
At work and in my personal projects I use a Prometheus + Grafana setup and it's very easy to set up. Not sure what you mean with the complex and setup costs for a Grafana stack?

Alerting with the Prometheus AlertManager is also pretty straight forward and I'm looking at dashboards every day to see if everything is running smoothly or tracking down what's not working well if there are any issues. Grafana dashboards are always the second thing I look at after an alert fires somewhere and it has been invaluable.
In physics it just recently became mainstream to try experimenting with/incorporating ML into thesis projects. Most stuff ive seen it used for is signal processing related. An example might be particle track reconstruction in a time projection chamber with ML instead of a hough transform. I think it's inevitable that these methods will grow in application, but the two biggest problems right now in my opinion are reproducability and quantification of uncertainties. It's much easier to believe someone's stated uncertainties when you can see the analytic functions they were propagated through. There are ways to kindof work around this, but in my mind those two points are the main things holding back ML from broader applications in science. The article talks about ML tools closer to proof assistants / tools for experimentally driven mathematics. Less of a problem in that domain since the ML model only need make an interesting conjecture which can then be examined the traditional way.
They said they're going to be doing something for retail consumers soon.

Their standard desktop CPUs are flying off the shelves.

I imagine there's only so much capacity for chip building.
What sar+rsync doesn't provide:

- app-specific metrics

- quick and easy way to build a number of graphs searching for correlation (how to slice the data to get results that explain issues)

- log/metrics correlation

- unified way to build alerts

- ad-hoc changes - while you're in the middle of an incident and want to get information that's just slightly different from existing, or filter out some values, or overlay a trend - how long would it take in your custom solution vs grafana?

And finally - grafana exists. Why would I write a custom graph generator from a custom data store if I can setup a collector + influx + grafana in a fraction of that time and get back more?
"I'm now consumed with curiosity why this plant has evolved to have this feature."

Grapefruit didn't evolve naturally. In fact, it's only a couple of hundred years old. It's the way it is because of human intervention.
i like the keyboard support :) +1
I don't exactly know how to explain why I like this writing style, but I really do. I even subscribed to the New Yorker for several years but ended up canceling when I realized how far behind I was falling in reading it. The dang thing comes every week and is at a high enough average quality level that each issue is worth reading cover to cover.

Also, a decent chunk of the content in the magazine is actual fiction by actual accomplished fiction writers (not "failed" ones). You don't tend to see it linked from HN obviously, but that's very much the vibe they're going for. Think of it as part commentary on the times and part literary fiction magazine. That may not be your cup of tea but it is appealing to lots of people.
I think that's what https://thanos.io/ is for.
Since it uses an aluminum matrix, abrasive cutting may not work, but plasma or gas cutting certainly will. A propane tank and a torch aren’t too difficult to get if someone knew they would need them.
Use mineral oil. Cooking oil goes rancid.
I think React is both and when you describe it as either will depend on how you're using it. If you have a website with a couple of React components here and there, then you have React the library. If you have your app setup as a SPA, with react router, redux, react forms, maybe you started the app with createReactApp, etc, then you are using React the framework. I don't see how you can argue it's not a framework when every single piece of your app is a react specific piece. It's no longer just a view layer, it's an ecosystem of modules whose common ground is to turn React into a framework.
What is difference between a front-end library and a front-end framework?
Amazon's Jeff Bezos adds $13B to his net worth in a single day
Might be related to ”Manage Facebook contact sync” service: https://docs.microsoft.com/en-us/exchange/recipients-in-exch...
Any type of preditive analysis in high dimensional data (medical imaging, surveillance, remote sensing, machine translation, speech recognition/synthesis, music information retrieval). Other important work being done on causality, AI ethics/safety, and explainability (XAI) but little industry impact yet.
Well.. for starters with machine learning, we can automatically make anyone naked by just applying a few algorithms and an ML model to a picture of a clothed person. Depending on who you are talking to that’s quite a break through for some people.
I came here to note the same thing, from an aerospace perspective.

In a formal development following something like ARP4754A even before one works on the requirements that a system has to meet, the high level system functions are considered and a Functional Hazard Assessment is done to look at the criticality of those functions failing. Then one can add requirements and architectural mitigations as the system and Safety Assessment is developed.
Digia hasn't been involved with Qt for years now. The Qt Company is an independent company.
The phrase "and bad patterns on the ψ-wheels" should have read "and bad patterns on the μ-wheels". Sorry if there was any confusion; I caught that too late for editing.
Preact CLI v3
Yeah I felt the same way about the first one.

Yeah we're preventing re-renders there but what are we really preventing / saving, nothing significant?

Anytime I run into a situation where I didn't like how / when a component was re-rendering, it absolutely was not because there was a random bit of state like a counter was in state that didn't need to be... usually it was just a more complex situation unfolding.

It's a good illustrative example, but not a 'common mistake' IMO.
"Nostalgia is the combination of a good imagination and a bad memory."
That's some top notch developing to not be able to display anything for non-JS enabled viewers.
I mapped my entire apartment’s Wi-Fi signal
I go to pub with some facebook "censors". We are not doomed, but facebook as a platform is.
Facts are a pesky thing, they end up being correct even when you disagree.
I am just amazed that NASA turned around a shuttle in 54 days, I don't even recall it. Apparently these were the first two missions flown[0]. However I also read almost suffered Columbia's fate on one of its flight due to a large loss of tiles

[0]https://en.wikipedia.org/wiki/Space_Shuttle_Atlantis#Flights...
I mentioned lamp as an example of an acronym and stack that would be more common to ask why it wasn't chosen. In retrospect that probably wasn't the ideal way of getting to my point that tick isn't a common stack so asking why not it because it's common seems weird.

> If not, you wouldn't run into TICK. It's not common overall, because few environments need to go that far.

That's my point though. The post I replied to acted as though everyone knows of and uses it, but provided no information on what makes it a better choice for such usecases.
I guess the https://github.com/prometheus/pushgateway could help with that? As for the query performance there's a lot of things you can do with recording rules, that might help a lot with speeding up dashboards or queries.