skysight-inc/HackerNews huggingface dataset:
Nobody has mentioned Knuth’s corpus of work in Pascal-Web for the TeX ecosystem. This is code written for an era where there wasn’t an ecosystem of libraries for common tasks and even things like being able to access a file in random access order couldn’t be counted on. Even 7-bit ASCII couldn’t be counted on as a given (EBCDIC-based IBM mainframes were a significant element of the computing landscape still).

Against all that, Knuth wrote code that could be ported to other systems (I first used TeX on an IBM mainframe running VM/CMS, then later on a VAX minicomputer running VMS, then on a PC with DOS, PC with OS/2, PC with Windows and now a Mac with OS X/MacOS. His presentation of code and internal documentation intermingled is something which I could see still being useful now, although sadly, literate programming seems all but dead now. I still go back to Knuth’s code to understand how to solve some problems on occasion even though it’s about 30 years since I last wrote a line of Pascal.
tail -f considered harmful?
Filesystems do have timestamps, but they aren't propagated to the root for performance reasons - normally you want file IO to be fast more than you want to be able to quickly test if a large directory tree changed and propagation would make all writes contend on a single lock (for the root dir hash/ts).

Agreed about fs transactions. Not sure about cloning directory trees. I thought btrfs could do it but I never used that feature. You might well be right.
Ok, we've changed this title to shrink the scope of the interpreter.

Submitted title was "YouTube-dl has a JavaScript interpreter written in 870 lines of Python".
I switched to a split keyboard. Went from 8 wpm to 30 wpm in 9 days!!! It's doable. I can work at this speed. I had 70 WPM. But I believe I will gradually reach better speed.

However, the gains have been huge for me! I can finally type in relaxed position. The layers are amazing!! I don't have to reach shift for those symbols. Everything is within good reach. Let's see what happens down the line. But split keyboard layout sold me! Will definitely go deeper into making one with low profile choc!!!
Cool idea, but please get an HTTPS cert - they're free!
At 15+ years of coding, I feel the greatest issue jumping across projects I’ve done (of a recent vintage) is getting into the paradigm.

I have a differing framework to an SPA, to an API, and to personal utility scripts. Amplified by adding in co-workers and contributors.

The Golden Question becomes how to communicate philosophy to a broad and diverse audience, be it co-workers or open-source.
They use words. Explicitly.

Apple holds events several times a year, observable by the public. Many, many people tend to watch them. In those events, they tell stories, they show ads, and they talk about the past, present, and future of their products and how people use them. In those events, they use many, many, many words, and among those words are encouragements to go outside, to be more physically fit, etc.

It's a few hours every year, they just had a 90-minute event this week. You should watch one sometime, apparently.
When to use it: never
Decentralized protocols are the competition you are looking for.

The only alternative is regulatory intervention, which is unlikely to happen, however much you may want it to happen.
This is somewhat off-topic, but I am not going to look into this stuff because, frankly, there's no call for it. Two major problems with advanced anything in IT:

1) business goals basically never require sophisticated software (I am lamenting this; it's most decision-makers' lack of imagination or understanding of the possibilities) and, consequently,

2) engineers love introducing unneeded complexity, maybe to exercise the mastery that decision-makers stifle in us. (I'm lamenting this, too. It's irritating and wasteful; if we right-sized work to fully exploit our human resources, they wouldn't burn out or implement maladaptive coping strategies like overengineering.)
Fwiw there are python bindings for QuickJS and Duktape:

https://github.com/PetterS/quickjs

https://github.com/stefano/pyduktape

https://github.com/amol-/dukpy

I can't speak to the quality of those bindings, but they do seem maintained.
Government won't tell anyone what code they can write. But they can legislate on the usage of things.

If it's illegal to mine in the US, then miners won't set up mining businesses there. Job done.
Providing backwards compatibility for decades has some serious tradeoffs. Breaking apps that were using the most up-to-date APIs three months ago is simply amateurish.

It's clear that Apple has no respect for developers on their platform.
Because KeePassXC (or any other offline password manager) cannot lock you out as long as you remember your password, and you can completely avoid storing your passwords in plaintext.
Wifi-only iPads do not have a GPS receiver in them. At least not the last time I bought one. So this could still be handy in some cases.
sometimes I fantasize about forking jelly bean.
Emissions are so close to how much you spend. Don’t fly but spend the airfare money on Chinese toys: Same carbon emitted. So having the right to emit n teq = having the right to spend m money.

So emissions are a flux and emission permits are capital, you are right, but it’s just a philosophical argumenation, like photons are both a particle and a wave, and real estate is both capital and a currency.

Maybe your question was, how do we impose others to not emit carbon, how do we set up the first emission permits. Well that’s hard. But it doesn’t matter - They should have a price and change hands when someone can afford them.
I prefer Topre for extremely fast typing, but for "casual use" I prefer really heavy really tactile switches like Kailh Box Navy.

The 3.5mm travel bothers me when I'm typing extremely fast, but the heavy weight and strong tactility helps prevent misinputs otherwise.

Additionally, I can have Box Navy in an ergo layout.

I have a Model F reproduction (F77) but I prefer Topre over it.
As my name implies - I’m half-serious in my sentiment. I’ve found many-to-most projects I’ve come across have personally-inconsistent conventions at a function level not to mention strategic architecture.

There is good code from other - but I feel many lack discipline in their initial approach and long term maintenance. In things as banal as variables. Not as a nit-pick but as a way of life.

It seems… concerning.
>> Why unit tests are good?

Regression testing

In my experience in a heavily tested code base (unit and integration), this is more of the role of integration tests. However unit tests are ultra valuable for code that has few dependencies. The higher you go in the stack the muddier it seems to get.
But things are better when they’re from Apple.

A random example is Apple TV vs any Smart TV.

I just bought a flagship Sony A95K smart television. It has everything, it ticks every checkbox, but the software is basically trash. Low effort garbage that should have failed QA the second you see any part of it.

It is 1080p upscaled to 4K, so it’s blurry!!! Even with my worsening vision I can see the fuzzy edges and it makes my eyes hurt.

It’s too dark so that in a bright room it is borderline invisible.

It isn’t color managed, which means the better the TV panel, the more garish it looks. On this QD-OLED panel it looks stupid bad.

The second you switch to the Apple TV you instantly realise why they’re the biggest company on earth. It’s beautiful! It’s crisp, fluid 4K with correct colors and brightness. Such simple things to get right.

Google (Android TV) and Sony just… couldn’t be bothered to any of that properly.

They threw some features in the and called it a day.
And what's the news? Did anyone think that air polution is healthy? It's obvious that any kind of pollution is causing health issues and air pollution has been a major source of health issues. The sooner we get rid of the fossil fuels the better. Then we can focus on food poisoning/pollution.
> I don't like the whole algorithmically-driven race to the bottom...

Yup.

The consumer's challenge is finding what they want (or need).

Is it ironic that a search company mostly uses recommenders?

Why not better search? Why not better foraging and browsing?

--

Sole reliance on algorithmic recommenders, automated hate machines, has resulted in multiple negative outcomes. Existential threat to democracy, spike in teen suicides, accelerant for self radicalization, death of independent journalism, dominance of conspiratorial thinking, loss of public discourse, and probably a few more.

I'm sure search, foraging, and browsing strategies also have downsides. But I can't imagine how the outcomes could be worse.
The buy vs. build question is stupid
Scott Adams' Secret of Success: Failure (2013)
Can’t wait for Warpbleed to happen.
Russia and US Clash over Western Weapons for Ukraine
Today's sitcoms just jump straight to it. The Neighborhood, for example.
I think the title references its annual revenue.
CSAM is an extremely narrowly carved out exception by the Supreme Court (for good reasons imo) and there were arguments about even that at the time.

There are also some other restrictions too (mostly around targeted harassment of individuals). Few things rise to this level imo.
I first used a laser cutter ~eight years ago. Our printer's UX relied on sending designs with special colors to an attached usb driver. So you'd make something in Illustrator, open a regular print dialogue, and get out a precisely cut acrylic piece a minute later. It was pretty incredible.

This was back in college so we had a manufacturing lab that was chock full of them. They're a bit harder to find in the wide world - but highly recommend the experience if you can get your hands on one.
Related:

The Map Is Not the Territory (2015) - https://news.ycombinator.com/item?id=23487242 - June 2020 (35 comments)

The map is not the territory (2015) - https://news.ycombinator.com/item?id=19084102 - Feb 2019 (14 comments)
I do wonder why YouTube does not try harder to make it difficult to do this computation meant to prove you are a legit YouTube web client. Providing an easy-to-find, simple JS function interpretable with 900 lines of Python is like they don't try at all. They might as well do nothing.

Or is their goal just to make youtube-dl not 100% reliable? Or to be able to say "look, you are running our code in a way we did not intend, you can't do this because you are breaking the EULA"?
Shodan knew at least 600,000 PostgreSQLs listening on the open internet when I last looked. Presumably quite a few are mistakes, of course. But people do it and the sky doesn't fall. Same for SSH or many other types of server. Of course the web ecosystem has 30 years of accumulated work so yes, you'd be missing stuff like Cloudflare, reCAPTCHA etc. Better for more controlled contexts than something like HN.

Latency is easy to screw up whether you do web apps or direct SQL connections. You have to be conscious of what a request costs, and you can easily batch SQL queries. Yes, you have to watch out for frameworks that spam the DB but those are bad news anyway, and of course there are lots of web frameworks that generate inefficient code. Not sure it's so different.

Your app will have to deal with DB versioning whether it's a web app or not. Tools like Flyway help a lot with linking your DB to version control and CI.

Nonetheless, I totally understand where you're coming from. Thanks for the thoughts.
> Instead, only the fraction of population using more that their fair share is responsible for reducing emissions.

What is “fair”?

Again, it isn’t fair that a country can emit more, just by having more population.
Let's say: better readability. -- The first paragraph has already two typesetting flaws: A space between “ and Tomorrow and two ” at the end.
Yes, but iPads without the cellular option also lack a GPS receiver.
What is it worse than?
Not getting this. I understand you have to get it out fast because you need it for fuel tomorrow. Is it that you don't want your bred tritium floating in a sea of regular hydrogen, needing separation by physical rather than chemical means?

That seems like the least of our problems.
So rich people give a bunch of money to poor people, but that's regressive because the rich people don't notice it very much?

The poor don't have to sacrifice anything unless the average carbon emissions drop to below what the poor are currently consuming. Until that happens, the poor can continue to emit whatever they currently do and get paid for the fact that they don't consume more.
“The root of addict in latin is the word addicere, which means religious devotion. It was an attribute of beginning monks. There is an element in the book [Infinite Jest] in which various people are living out something that I think is true, which is that we all worship. We all have a religious impulse. We can choose, to an extent, what we worship, but the myth that we worship nothing and give ourselves away to nothing, simply sets ourselves up to give ourselves away to something different. For instance, pleasure or drugs or the idea of having a lot of money, being able to buy nice stuff.” -DFW

This article just reads as trying to sell more books about how an "addict, err normal distracted person" can be mindful and set boundaries. Strangely this is also the same tactics used with alcohol, gambling, and smoking. All which are "addictive" purely because there's a negative association with them. Why can't you be addicted to things like posting on Hacker News? I'm sure many of us would meet the definition.

I think you have to be careful with just dismissing myths and claiming technology addiction as just "distraction". If you've been on any sort of technology addiction journey / digital minimalism effort in your lifetime, you will probably have anecdotal evidence of many of these "myths" actually having some truth to them. If you're a parent you will probably have noticed by now how your kids act with and without technology.

Myth 1: ”Tech Use Alters the Brain”

Myth 2: ”We Get Shorter Memory and Shrinking Attention Spans”

Myth 3: ”Phones Are Addictive”

Myth 4: ”Phone Use Causes Mental Illness”

Myth 5: ”Screentime Is Bad for Kids”
i've always wanted to get my homeserver setup to really work for sabnzb/xbmc/kodi and all video files but it ALWAYS has never turned out quite right. Theres always some plugin or unzip that screws it up.

This looks good but still doesn't look proper home media server enabled.
After reading the comments and taking everyone's input, here are a couple of points:

* infinite scrolling turns webpages into web apps yet not everyone likes or expects web apps;

* infinite scrolling fails to tell people when they reached the end and this is frustrating;

* infinite scrolling fails to tell people how far along they have consumed the content, or how far back is the top bar;

* infinite scrolling breaks the basics of UI tools (no scrollbar, no end key, no home key)

* infinite scrolling should never be other than a gesture for more (scroll for more)

* infinite scrolling should still allow for going "back" e.g. either it scrolls back up and/or allows for going back to the beginning.

* infinite scrolling should have an "end" e.g. a bar at the bottom that phases away when scrolling further down and then appears at the next end.

* infinite scrolling is a bad habit for more, and may be should be discouraged e.g. electrocute the user every time he asks for more /s

I hope you agree.
I spend about 7 months/year in California (the rest of the time I'm in Tel Aviv) and I'm fortunate to have a store near me that stocks european, near east, and mid-east candy imports! And there are plenty of Asian import stores to get Japanese candy.

"Candy" elsewhere does seem more varied and daring. Would people in the United State care for sesame seed "halvah?" Or candy made from rosewater?

(I'm not completely negative on American candy. M&M's are wonderful.)
While theoretically possible, this doesn’t happen unless you’ve put effort into destabilizing the code on purpose.
Folks monkeypatch to fix problems, not create them.

You can explicitly mark a nonlocal or global as well.

Now if your project needs to be impervious to malicious actors, additional safeguards will be needed. But I’ve never encountered this situation in a long career.
That's what I initially followed, too. But there does seem to be a better way - I've just installed CHARL-E [0] (mentioned elsewhere in this thread) and it was trivial to set up. Literally download the dmg, drag into Applications, and run.

It's an electron app and you can either download it with the weights, or without and add them separately.

Using that it just took slightly over 5 minutes on my 8GB so it's a little bit quicker for me. Maybe the code has improved since I cloned stuff over a week ago, or maybe it's just different system resources when it is run. Either way, it looks like the easy way I've been waiting for.

[0] https://www.charl-e.com

Edit: It is however missing the CFG setting.
That is a good question. I would answer by avoiding it completely and just pointing out that I used to have to say to people:

"Hey, give up something you love to save the planet"

and now I can say:

"Hey, get solar panels and then you can blast your A/C this summer for free!"
For the sciences that depend on higher maths, a Calculus book worth mention is "Elementary Calculus: An Infinitesimal Approach", by Jerome Keisler. One thing that makes learning Calculus harder than necessary is the clumsy epsilon and delta formalism, that became sort of the COBOL of Calculus teaching. This formalism is not the intuitive approach Newton and Leibniz used to develop Calculus, based on infinitesimals, that was shunned later because it took time until Abraham Robinson made it rigorous in the 1960s. The book by Keisler showcases nicely a way to improve higher math education, if academia had less inertia. The author made the entire book available for free online: https://people.math.wisc.edu/~keisler/calc.html See also: https://en.wikipedia.org/wiki/Nonstandard_analysis
PRISM and FISA/FAA. 15 years ago every telecom and internet company was providing backdoor access to communications. What makes you think that somehow that has changed? US laws sure haven't and the technology has only improved.
Recent and related:

DIY mechanical keyboard switch lets you set its actuation point - https://news.ycombinator.com/item?id=32722411 - Sept 2022 (77 comments)

Also:

Detailed guide to mechanical keyboards (switch types, hysteresis graphs, etc) - https://news.ycombinator.com/item?id=1539197 - July 2010 (17 comments)
I wouldn't worry about it. The republicans can block it in the Senate for the foreseeable future, and I have zero doubt this would be an executive order that would be struck down by the SCOTUS the day after it was announced. I think it's safe to say that the SCOTUS is a rubberstamp for republican policies these days.
apparently yt-dlp is somehow calling out to a js engine if available
This is neat, but there should be a place to add in the parameter for the thickness of the material being used. I tend to default to 2.5mm hardboard, other people use 3mm or 4mm MDF, so it makes the fitting much better.

EDIT: Oh, it's the second set of parameters halfway down. I feel that should be one of the first things you should have to input.
Agree that bias is always a potential issue.

But hoaxes that last a decade are harmful. If something is not fixed in a lot of people's lifetime, it is little consolation to them if someone may fix it later ...

Moreover, even when hoaxes are discovered and deleted on Wikipedia, they last elsewhere. The toaster hoax for example has now entered over a dozen books. The BBC articles that featured it have not been corrected:

https://www.bbc.co.uk/programmes/articles/1D0xzxYf9ykH9gcYp9...

https://www.bbc.com/future/article/20130405-a-trim-toaster-f...

https://www.bbc.co.uk/newsround/56192812

The historical record has been permanently corrupted.
Is this now a trivial problem because of Deep Learning?
forever free by eric foner, history of reconstruction after the civil war in america
Apollo is a perfect example of a 10/10 iOS app.
His Lis.py is also wonderful.
Here's an install script if you need handholding :) https://github.com/JoshuaKimsey/Linux-StableDiffusion-Script...
> I was a newspaper layout designer in a previous life.

Such a cool-sounding job! Any fun stories to share from those days?

> Reading anything of length on this screen is decidedly uncomfortable when browsing HN.

Agreed. I always browse HN in a window that's half the width of my monitor.

There is something nice about the ultra-simplistic CSS that goes as wide as your window, though. Then, the user can just resize their window to find the sweet spot for themselves. The sites that force a fixed width for reading on everyone really miss the point, I think.
Any Chinese K40 Laser Engraver paired with K40 Whisperer works exactly this same way. Red for cutting, blue for engraving, black for raster-sweep printing. This is how I run my setup.
There aren't enough examples for this to be considered a meaningful progression. Even the wikipedia page is struggling to prove its worth.
There is even a list on GitHub: https://github.com/dbohdan/liveviews
How can you claim posix is dead when you will need some 10-100x better to get it adopted?
An interesting, related thing I’ve noticed is in many learn to program tutorials and exercises there’s a failure to be explicit about when we are creating a model, and that modeling is a skill, and that skilled model-builders first and foremost create a model to solve a problem. I’ve seen too many cases where students are left on their own to flounder about deciding if cars should be composed of four wheels and an engine, and what about the doors? etc.

Another flavor that traps experts in endless, pointless debate are taxonomies. Edit: See “The narcissism of small differences”, https://en.m.wikipedia.org/wiki/Narcissism_of_small_differen...
I don’t think it’s changed, but the claim was that people (“someone”) are paying Cloudflare for access to these logs.
> As a matter of policy (as well as legality), youtube-dl does not include support for services that specialize in infringing copyright. As a rule of thumb, if you cannot easily find a video that the service is quite obviously allowed to distribute (i.e. that has been uploaded by the creator, the creator's distributor, or is published under a free license), the service is probably unfit for inclusion to youtube-dl.

Does using a different User Agent instead of a typical browser amount to copyright infringement in any jurisdiction?
This is refreshingly old-school. Thank you!
They do make it harder from time to time. In fact yt-dlp's interpreter has been broken for a month or so now and the devs finally gave up and told users to just install PhantomJS (which itself hasn't been updated since 2016 and probably has bugs / vulns of its own, but whatever).

https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-12...
Should I pick DigitalOcean or AWS for my next project? (2019)
the one TC article I am actually yearning to read is behind a paywall!
Probably to keep people from asking that it be rewritten in Rust.
warp seems to stabilize my connection and 3x the download speed since I have 8% packet loss typically. I'm somewhat of an edge case though since this level of packet loss isn't normal.
> my guess is android people also use windows, and are used to constant blue screens, malware, and random crashes.

Have you just woken up from a coma you fell into back in the 90s?
ELI5: What does a homeserver allow me to do?

I am confused as what homeservers are. It seems this one is allowing me to run some apps. Does this mean I would otherwise not be able to use these apps if I did not have a homeserver? Also is there a difference between a homeserver and localhost?
https://tvtropes.org/pmwiki/pmwiki.php/Main/Flanderization
But would the channel owner be happy to enable download options if $0.09 per GB downloaded was subtracted from their ad revenue?
How can a foreign company get public funds in germany?