skysight-inc/HackerNews huggingface dataset:
Manadatory Harry G. Frankfurt "On Bullshit" reference => https://www.amazon.com/Bullshit-Harry-G-Frankfurt/dp/0691122...

It's a personal amusement of mine that the singnal-to-noise ratio on the internet is so terrible. Sorry, Tim Berners-Lee. The abysmal state of facts on the internet also seems a failure of capitalism of sorts: a low-distortion news channel doesn't seem an impossible business model, but here we are.
You asked it to do something with "the video on youtube" but what does "the video" refer to? It seems the most likely url associated with the phrase "the video on youtube" is, well, that.

So basically it failed at anaphora resolution.

Seen another way, you asked it for "the video" and so it gave you the video.
It's a joke - the point behind it is that most of programming around specs is refining the spec until it is sufficiently well defined as a program.
05:39 https://youtu.be/tNcBQBTeyf4

You can see how OpenAI Codex misses some details about HN scraping. What's impressive that you might notice is the variable names it chooses which seems to show the nature of HN scraping codes on the internet
Adtly. Signed,

a Firefox user since the time it was called pheonix
I was surprised to see this. I wonder if the rubric for acceptances and denials would be made public. Once this door is opened, it seems hard to allow any mix of acceptances/denials other than 0/100 or 100/0 without opening up a whole different set of conflicts.
How to Get Your Own RStudio Server and Shiny Server with DigitalOcean
So part of my job is maintaining a complex webpack build system, and I do get that it's not a small amount of work. However, the changes I see aren't wonton. They're typically aimed toward a world that's more interoperable and more standards-compliant.

For instance, Webpack 5 deprecated worker-loader in favor of a construction using new URL() and import.meta.url. Adopting this was a huge pain, but what we get in exchange is a system that can load workers using standard syntactic constructions that work under e.g. our test runner or in a NodeJS microservice. Something like that is worth the hassle to me.

As for minor and patch versions causing breaking changes, this has happened to me a few times. Terser Webpack Plugin 3.0.6 exposed flaws in a custom Webpack plugin we'd written for internal use, which I cannot fairly blame on anybody but ourselves. Babel 7.5 broke CommonJS targets in a way that wasn't fixed until 7.6, which was truly unpleasant and something I hope to never deal with again. TypeScript doesn't use Semver and usually has breaking changes in every point release. For the most part, however, semver has proven trustworthy.

The Darwinian foment that characterizes the front-end ecosystem has created the best tools I've ever used. When I look at the quality of tooling available on stacks that prioritize stability, I am not jealous.
If business was the main motivator, why would restaurants be operating any differently?
Yup, innerHTML just returns a string, so of course you can .toUpperCase() on it even if it is unsafe.

innerHTML's history is fascinating. It was not part of the original DOM Level 1 API but was added in IE5. It is not semantically correct (you should be using Element.textContent or examining the inner text nodes), but because it was so easy and the rest of the DOM API so verbose, it caught on and became one of the primary ways used to manipulate content in JS.

FWIW Chrome recently proposed a Trusted Type mechanism for preventing XSS (which also has the side effect of blocking this sort of unsafe manipulation) - https://web.dev/trusted-types/, https://developer.mozilla.org/en-US/docs/Web/API/TrustedHTML
Completely agree. It currently tends to write unsafe, error-prone code. The next step is to figure out how to rein it in, either with new techniques or rejection sampling from a large set of possible outputs.
Oh, "startups" you say? So no actual newsroom experience.

Well, when I want to know what it's like to fuck around with Wordpress, I'll ask for your input.

Bullshit indeed.
Programming is about clearly communicating theory.

Mariners use "port" and "starboard" for vehicle relative directions not because it's "cool" but because it's clear and unambiguous. Problem decomposition works the same way: some problems decompose better with FP (I would argue databases do) some with OOP, some with EF etc. The more you know the clearer code you can write and the faster you can extract the theory from other people's code.
I think what the author is trying to say is that if a technology is sufficiently advanced it seems like it can’t be real, meaning it’s something only possible with CGI. So we see these dancing robots, think “just more CGI”, then are astounded when we find out it’s real
From yesterday:

https://www.whitehouse.gov/briefing-room/statements-releases...
I don't dislike the ui per se, but the tabs have clearly been designed by someone that does not use firefox. I challenge any person to look at firefox with other tabs open in a Container context and guess which tab is the active one.
Restaurants don't hold lectures? You're going to have to rephrase what you're saying.
You guys are awful, you know that? Discussing this URL without spoilers... it's because of people like you that that thing has so many views!

:P
The (still) relevant (best) practices from the past are all encapsulated into the standard libraries, that’s how CS pays its duties to the big minds of its past?
> most dangerous plane in the US military.

Only for the pilot.
Exactly. CGI is just movie magic. And now some real world tech demos are sufficiently advanced to be indistinguishable from CGI/magic.
It seems reasonable though? I cannot think of any major world religions against vaccination, yet can certainly understand medical exemption in specific cases.
Potentially, depending on the state... But in California and many other states, its not actually a crime to simply pass a check that you know will bounce. There's another essential element of the crime: Intent to defraud the recipient of the check.

So if he felt confident in demonstrating that he had financial backers who'd cover the $700k if Pepsi delivered the airplane, then he might be able to beat the check fraud charge. But yeah, it seems like a pretty dangerous gamble to me.
Yeah sure, this https://youtu.be/2_e8oSxQtSk is also laughable yet now a reality!
He recognizes exactly that in the last several sentences.
>> feels more reasonable than a private company mandating it for its employees.

Lol. As universities take money from students this more like the company requiring its customers to be vaccinated. Whatever gets needles in arms imho.
Wait, no, height h propto r^3/2, so dh/dr propto r^1/2. So the slope is well defined, I think. The derivative of the slope isn't, but that's fine.
Notcurses: Blingful TUIs and Character Graphics
Phrase borrowed from excellent uWSGI docs https://uwsgi-docs.readthedocs.io/en/latest/articles/Seriali...
Is there a version of this that doesn't require a FB account?
I did something at MIT where some place was offering free personal pizzas (delivered!), and it seems their logic was one pizza per /phone number/, that they would call upon arrival with the pizza, so I went around campus and set up several classroom phones (which nobody uses no receive calls anyway) to forward calls to my dorm room's analog phone line, which fortunately you could do just by dialing some codes on the phone.
I feel like companies like this should have to register a data breach like this in a national register, and then should someone become a victim of identity theft, the companies on that register associated with that person should bear the costs associated with that theft (importantly without the victim having to show that it was a direct result of that breach). E.g. John Smith ss#123-45-6789 (T-mobile, Experian) has a false refund filed in his name, $10k in legal costs associated with clearing his name, t-mobile and experian each owe him $5k…

Until companies are held accountable for the negative externalities they are causing, this won’t end.
Seem? Did you just judge a book by its cover?
Does this happen often? How do they mitigate this?
A 'healthy' lifestyle can be making you tired
"MEILI_NO_ANALYTICS=1"

Looks like it was designed with the user in mind. Telemetry by default.
It would take an absolutely apocalyptic event (or more likely, series of events) to make the human race go extinct but it wouldn't take much more than a prolonged, widespread power failure to push civil society to collapse.
I don't know. This is my first keyboard firmware.

Anyway, the EM85F684A is a really obscure MCU, so there was no other way than to start completely from scratch, to have FOSS development/flashing tooling and the firmware itself. There's nothing pre-existing available online. I've never heard about Elan before starting this project.

It would have certainly been easier to support a more common MCU. Certainly more than half of the effort went into reverse engineering and figuring out the unknowns.
Sure, so the power dynamic is in students' favor to push back on something unreasonable, unlike with employees.
>> Cornell already had a full school year last year without any breakout cases, proving that this isn't the real trade-off being made

Could you elaborate on "full school year"? Honestly curious as a Cornell alum.

The Cornell Daily Sun mentions that many classes were fully virtual for those opting on-campus and that many students did school remotely for the year.

https://cornellsun.com/2020/10/14/remote-students-reflect-on...

The Academic Year notice was vague about open/shut:
https://finaid.cornell.edu/academic-year-2020-2021-statement...
The Day of the Jackal is a phenomenal thriller
Sometimes I think winning is secondary, and the main objective is to keep the war machine going. A prolonged period of peace (mutual or by sheer intimidation) would be disastrous for the sector.
This page states that in 2020 wind provided more than 11% of consumed energy in Netherlands.

https://en.m.wikipedia.org/wiki/Wind_power_in_the_Netherland...
> You do realize it returns 1 for an empty string right? I mean it doesn't have any digits in it...

Yes, and that was deliberate on my part, as it meets my expectation of what such a function should do in this edge case.

The problem statement was "Set boolean b to true if string s contains only characters in range '0'..'9', false otherwise."

To my mind, the question "is every character in the string a digit" should be equivalent to "are there any non-digits in the string" (with the answer inverted, of course).

Returning 0 (false) for the empty string makes those questions not equivalent. It makes the empty string a special case.

Of course the real problem is that the problem is under-specified. It should call out specifically what should happen for an empty string, because as illustrated here, this is something where reasonable people may disagree.

> Also giving char str[] will make it char* str. Which can be null. This may cause reading a random memory location (possibly segfault or use-after-free)

Well yes, of course. The point of my comment wasn't to write bullet-proof library-ready code, it was only to illustrate two things: code like this should always go in a function, and the entire task can be accomplished in a single pass through the string.

Thanks for keeping me on my toes!
I don't know anything about urban fire fighting. It seems like the primary block to rescuing the civilians is that the power is still on, and they had to wait for the power to be off. That makes me think that firefighters, if they can't already, should be able to either 1) turn off power on site, or 2) easily contact someone who can do so remotely.
There is an explanation of this kind of thundering herd about 3/4 down this article https://httpd.apache.org/docs/trunk/misc/perf-scaling.html

The short version is that when you have multiple processes waiting on listening sockets and a connection arrives, they all get woken up and scheduled to run, but only one will pick up the connection, and the rest have to go back to sleep. These futile wakeups can be a huge waste of CPU, so on systems without accept() scalability fixes, or with more tricky server configurations, the web server puts a lock around accept() to ensure only one process is woken up at a time.

The term (and the fix) dates back to the performance improvement work on Apache 1.3 in the mid-1990s.
The article says:

> Today, structured programming appears remarkably simplistic, great for writing tiny programs (it has an academic pedigree), but not for anything larger than a thousand lines.

Curious. I rather think that structured programming became so ultra-pervasive in any high level programming language younger than 50 years old or so[1], that we've lost the extra name for it. Practically every programming language that isn't either pure functional (rarer than it seems), low level (i.e. assembly), or very very domain specific (e.g. SQL[2]) is a structural programming language.

Examples for "structural programming languages" are C, C++, C#, Java, JavaScript, python, Go, Swift, Scala, PHP, perl, Rust, D, ... You get the idea. If a general purpose language does not follow it, it's something notable, like Haskell.

So rather, I think this is an example of something that was so utterly successful that it became absorbed into the general fabric of mainstream programming. It's true that we don't draw as many flowcharts as we used to, because we got more comfortable with everyday programming, but they are still how we think about code a lot, and for complex processes that we want to visualize we still do draw them.

[1] Not a scientific estimate. Substitute "not very very old" if you like.

[2] Funnily that stands for "Structured Query Language", but not necessarily for significant reason: https://en.wikipedia.org/wiki/SQL#History
> Shaharazad was the first to tell the story of Aladdin in 1001 Arabian nights.

Aladdin’s tale wasn’t part of the original text[1]:

> Known along with Ali Baba as one of the "orphan tales", the story was not part of the original Nights collection and has no authentic Arabic textual source, but was incorporated into the book Les mille et une nuits by its French translator, Antoine Galland.

[1]: https://en.wikipedia.org/wiki/Aladdin
> and the emphasis is more on academics, rather than partying.

[citation needed] My impression has always been that the Greek scene at Cornell is pretty… well, I'll go with "active"
Lots of development practices come back again. E.g. techniques for optimizing code for computers sometimes make a resurgence for mobile phones a decade later.
I use cozy.systems
>But I've observed from decades ago that when we look at progress in science and technology, the future looks unimaginably bright, but when we look at politics and governance, it is incredibly dark.

I don't really see these as particularly different things. Our era has seen value financialized at almost every level of society by the deployment of transnational technology and institutions, resulting in the inability of national governments to hamper the global flow of anti-social or otherwise criminal resources and money. Some social ills and some policy adjustments simply aren't possible for governments to deal with, either as a result of the ambit of their power, the need for transnational alignment, or the time-sensitive nature for precise solutions to complex problems.

Governments are in an arms race against increasing complexity in social problems. The development of additional command and control technologies, the deployment of extensive surveillance, and the weaponization of that surveillance against populations is directly tied to the intersection between power and technology.

Technology enables power. We can design some technology to specifically disrupt current power structures, but overall technological development creates larger and larger capabilities on the part of those with power; better weapons, better intelligence, more resources, etc.

So we have technology working at both ends, pulling at both sides. It isn't enough that technology allows us to do more; it's the balance between whether or not research tips the scale between the haves and have nots.
lol, that's cause it's mostly for mail coming from your server. You probably don't see any of it
For completeness, what was your solution? I promise not to judge it if you don't want me to :) but it seems like it would be a valuable discussion for others who might be on the fence.

My solution (from another conversation on this very page) is:

fib 0 a b = b
fib n a b = fib (n - 1) b (a + b)

It might (or might not) look simple, but this solution arises from an understanding of computation as reduction, which is very much not how imperative languages go about things. So it's really not shameful or even problematic to have arrived at a different solution first.
So Django is an "astronomically inefficient technology"? I would just stop if I were you.
The number of vaccine breakthrough cases leading to deaths is rather low, but not zero. There have been hundreds of them in the US:

https://www.nytimes.com/interactive/2021/08/10/us/covid-brea...
I don't think gameswithgo's post, as written, presents any position on this specific judgment. (I read it as a more general statement that one can agree with a legal ruling while disagreeing with the underlying law(s)/precedent.)
Only a Top 100 internet property with billions of monthly impressions and hundreds of writers, but yeah sure no experience.
I disagree entirely.

I understand recursion just fine. I can look at a problem and think "this problem space is correctly represented by a tree/graph" and can meaningfully translate that into a program that shoves the data into a tree/graph-like data structure, and my natural inclination when computing on a tree/graph-like data structure is to use recursion.

On the other hand, I understand that not all problems lend themselves to recursive solutions. I can look at a problem and think "this problem space is correctly represented by a matrix" and the reality is that linear algebra problems are often iterative, not recursive, in nature. It is certainly possible to do the simplex algorithm recursively with immutable data, but it's just so much straightforward to do it iteratively on a mutable matrix.

The other thing is that most of my day job is just hooking one API up to another API to achieve my business's desired outcome. I don't need "interesting" algorithmic solutions for 95% of what I do. I just... extract data from one API and plug the data into another. You don't need recursion for that, and the "list of steps to do in order and (possibly) loop over that" paradigm with whichever seasonings you wish to add to it is just fine. (OOP is the flavor of the ~~day~~century at my company)

edit: I forgot the bit that ties it all together. I am absolutely no good at functional programming. I've tried to sit down and learn Haskell or Lisp a dozen times and always failed. I've bought books. I'm still no good. It just takes me ten times as much code that's completely unreadable to do something that would be simple and straightforward in C++.
Worked at a company which did this (dating back to when they probably figured they’d never need to connect to the net).

As a satellite office and an acquisition, we played all kinds of games to try to figure out whether we should send a given IP address out to the Internet or to corporate. Apple’s IP range was entirely overlapping and of course the corporate networking group just threw up their hands and said “send it to us; the internet is not a business critical function.”

This was in the early 2000s, not the early 90s.
Originally Fortran only had arithmetic if's

And I agree by the 70's spaghetti code with goto's was on the way out - though some early GWBASIC code had some gnarly practices.
The state will simply invest more to bore water down from Northern California. But that won't be enough to satisfy agricultural needs, and farmers will have no access to the water that is brought down. Heck, for urban users, even desalinization is economical, but not for agricultural users.
>> advocacy from cancer patients and parents whose children have epilepsy, lawmakers who see this as a states’ rights issue, a search for alternative pain relief amid the opioid epidemic and a push from industries seeking economic gains.

>> a recently formed advocacy group called NC Families for Medical Cannabis.

And what about the countless veterans who are currently incarcerated on marijuana charges? What about all those soldiers who have had careers damaged by petty pot charges? They are veterans too.
I highly doubt that. I think in most Americans' minds Afghanistan has been an abject failure for years. It has not been among the main talking points of this administration or the one before it. I believe most Americans will just be relieved it's done, and won't care what happens there next.
Since heat pumps are over 100% efficient it still might be (is) better to burn natural gas to produce the electricity to power heat pump than to just burn gas for heat.
> Democrats have looked at rigorous issue polling that presents pro and con arguments on both sides of various topics, I’m told.

The article also states this information is hearsay. I would want to see a more comprehensive and open look at voter preferences before drawing conclusions.
Leaving a job is easier than leaving a University IMO. Most don't accept transfers (especially when you've gotten to the 300/400 level classes.)
Does every single network client on your network use your DNS server for name resolution? No DNS-over-HTTPS? No widgets configured to talk to public DNS servers?

Also, does your DNS server correctly filter "out"-of-bailiwick responses for .lan etc. zones that are actually perfectly well in-bailiwick because they're from the actual delegated-by-the-real-root-servers nameservers, they're just not from your private server that you've configured? If not, I can execute a cache-poisoning attack against you.
I'm a long-time NYC resident and there have been numerous controversies over the years regarding religious vaccination exemptions. Some seemed legitimate (from the other person's viewpoint) while other cases I personally know were anti-Vaxxers trying to get religious exemptions (without actually being religious.)

Except, in the second case, how do you decide if someone is being truthful or not w/r/t their rationale?

After a recent Measles outbreak, there was a major push: https://apnews.com/article/ap-top-news-us-news-health-religi...
if you listen carefully you can hear the music...
Let's say you have a child under 12 and an elderly immune-suppressed person in your house, the first of which can't be vaccinated and the second doesn't have much of a reaction to the vaccine. You, vaccinated, return to normal, and catch Delta. You are asymptomatic. You go home, and infect the child and the elderly person.
Presumably the buses still have to pass the "tilt test", even with the batteries. (Are there more batteries underneath?)

[2] says single deck buses in Hong Kong must be able to tilt 35° without tipping.

[1] https://www.millbrook.co.uk/services/vehicle-and-component/d...

[2] https://en.wikipedia.org/wiki/Tilt_test_(vehicle_safety_test...
I used my 16-bit 192 kHz sound card to determine how much data can fit on a cassette by "prolonging" the length of each bit until I got an acceptable error rate. I found that the absolute best you can do with a decent old Technics tape deck is 8-bit at 12kHz which means for a 90-min Tape you can fit about 60 MB on one tape.

I noticed however that switching between bits produced a "ringing artifact" oscillating at about 60 kHz. If this is caused by my particular setup I don't know. With a better modulation than just PCM this could be compensated and you could pull probably more data out of the stream.
At first, I enjoyed reading it for the different perspective. But it got boring and repetitive after a while.
Same! Man, what a blast from the past.