skysight-inc/HackerNews huggingface dataset:
Using PeerTube for hosting VODs from my past Twitch streams, gaming videos and programming videos. Can't really speak much for running it at scale, since for now I just link the occasional video to friends, but I have to say that overall it's a great project!

It's especially nice that the videos are optimized when you upload them and thus seeking them is way better versus just uploading an .mp4 to Nextcloud and linking that. You can even configure how many videos and threads you'd like to allot to processing videos, so even my old box with a 200GE CPU in it runs great (even if slowly), without the actual front end breaking or anything.

Though of course I assume that all of the federation features and whatnot are great, too. Here's hoping that the project has a bright future ahead of it!

My personal pet peeve in regards to dealing with video production would have to be how WebM-VP8/Vorbis (libre) feels worse than MP4-H264/AAC for encoding, at least based on the speed and file sizes. Maybe using kdenlive isn't the best integration of these, but I think it uses ffmpeg under the hood and therefore should be a vaguely accurate representation of both of them.

Examples of config (quality settings for video/audio, kdenlive options output, though I'm not sure about the full command it uses internally):

H264/AAC with 30/192: f=mp4 movflags=+faststart vcodec=libx264 progressive=1 g=15 bf=2 crf=%quality acodec=aac ab=%audiobitrate+'k'
WebM-VP8/Vorbis with 30/6: f=webm vcodec=libvpx acodec=libvorbis crf=%quality vb=0 quality=good aq=%audioquality max-intra-rate=1000

Though that's not related to PeerTube in particular but rather the formats/encoders themselves, somehow the libre one doesn't hold up as well. But hey, it's nice to at least have options.
The GBDH1000 is worth looking into as well, packing not only the MIP display but a suite of sensors as well as being powered by a solar element.
“Crypto” “coin” “NFT” “Elon”
What’s "absurd" about it?
We can only confidently dismiss this hypothesis if we would expect that lives saved due to a decrease in pollution would be noticeable over a two and a half year span. This seems unrealistic because air pollution tends to cause injury over a longer period of time (for example, contributing to heart disease or various cancers in adult life if the individual was exposed to pollutants as a child).

By contrast, COVID can kill within weeks.
He's definately old
The naming of the most recent bill is also another sneaky way of manoeuvring around - online safety bill. It's hard for an MP to vote against it and then try to justify it to their constituents who, let's face it, aren't that knowledgeable or interested even in the subject. When you have the cost of living crisis (which is now used to justify a host of other things...) and an upcoming winter where heating/electricity costs could keep on rising, something like messaging encryption isn't the first thing on your list. Hell, most people are juggling 3-4 social media apps hoovering up their data, this is the LEAST of their concerns.

And I can't blame them. So they will use whatever argument gets Joe Average to vote for an MP that will then enact these measures.
I bet you could rig a water cooling pump to run off a 12v power tool battery, and completely remove the need for dangerous wall AC power from the equation.
I Duck Duck Go’d “child sink” “running water” and found both small water-recycling ones (like I’ve seen) and real portable ones which use separate input/output jugs. But you could of course dump back into input. Hopefully a good starting point, best of luck. You are a great parent, your child is lucky to have you.
If a change has ever been committed or stashed (which is basically also committing, just not on a branch), it can always be recovered, at least until garbage collection is run - check out the reflog. Of course, if it hasn't been, then you can lose it.
s/not desperately needed/desperately needed in the world's 2nd biggest carbon emitter
I think it's worthwhile to highlight the psychical activity paradox in this discussion.

This paradox describes the contrast between the damaging impact that occupational exercise has on health against the beneficial impact that leisure exercise has on health. This difference is very well documented [1][2][3] (you can easily find dozens more studies with a quick google search).

There's a diversity of opinion about what causes the paradox, but I think it's reasonable to be concerned that spending significant amounts of time on DIY/Gardening/Chores could replicate the hazards of occupational exercise. Unfortunately I haven't been able to find a study which looks at these directly.

[1] https://academic.oup.com/eurheartj/article/42/15/1499/621377...
[2] https://pubmed.ncbi.nlm.nih.gov/28798040/
[3] https://www.thelancet.com/journals/lanwpc/article/PIIS2666-6...
Generate realistic Test Data, with interactive examples
My workplace MacBook has zero issues with working on AD-based network...
Related: fakebuddhaquotes.com
Modded Wii Mini Turns It into a Wi-Fi Capable Homebrew Machine
>You did save the NHS. Barely.

I have a very different opinion. I believe that, like many other aspects of life and culture, our response to Covid ripped open any cracks and accelerated ongoing problems. I think we are currently seeing an accelerated and terminal decline of fully-public healthcare in the UK.

It's hard to call it "saved", when people going into cardiac arrest are literally dying waiting hours for ambulances, and routine care is largely unavailable.
https://lukesmith.xyz/index.xml
but if there is not, why force the schools and kids to go through a set of tools that really isn't helping? It is a disservice to our community. We should be thinking how can we still use the best tool for the job but with the necessary layer of security and privacy. I privately use Protonmail and Protonvpn, but that's not about me but the educational system in Germany, having to support 10 million children. This rhetoric, IMO should go away.
And... we just got rid of ours, as neither of our cats would use it, instead preferring an upstairs water dish. We'd used it for years, and knew they weren't using it "much", but after watching more closely for a while, we realized they basically never used it. Replaced it with a regular water dish and they're drinking all the time now. Note - they were drinking before, just had to trudge upstairs each time.

But... earlier generation of cats used the fountain. Seems very cat-dependent. I suspect had we only had that option, they may have used it, but didn't want to test that level of harshness.
The unsolved mystery attack on internet cables in Paris
“I never said half the crap people said I did.”
— Albert Einstein
It'd not be a surprise chicane. It'd be an obviously visible one. If you're driving in a way where that'd cause accidents you should have your license revoked.
Well I'm just a support for that, but yeah I guess you could say that's what's being done around here (huge amount of managed assets and properties).
Title doesn't quite cover the content. At least 'to slow down' is not meant in the normally self-help way.

FTA

Isolation sets from you friends and family and other colleagues sets in quickly. Your experience becomes extremely focussed on what happens on Mars.
I'm actually most interested to hear where you're making 7% on such a liquid asset.
Design Tokens as Your DNA
Design systems are fascinating because they question a brand at its roots. Even if Brad Frost opened the design system path with his Atomic Design approach, design tokens are not at the atomic stage; they're what truly define a brand: it is pure DNA.
The third major strategy being Promise.any():

- as soon as any of them resolve (any)

- when all of them resolve (all)

- resolve each in order (for)
I would talk to a plumber and see if there is some sort of solenoid you could install on the pipes. I know Grainger sells them for industrial uses. But this may run up against housing codes 12 different ways. shrug

Do you have room outside for something like a splash pad or kid pool? Maybe if they're functional enough they can learn that the kid pool is for indulging their fascination but inside water is not?
Sounds like I-66 near Washington D.C. It used to just be regular congested highway, now it's EZ-pass only, every GPS navigation app sends you through it, and there are only a few non-conspicuous signs warning you. If you're in the area it's fine you just know, but I imagine at least hundreds of tourists get bamboozled every day there.

edit: Correcting myself here, it's EZ-Pass-only at certain times of day: http://66expresslanes.org/e-zpass/default.asp which I find even more confusing.
I take it that here "technology landscape" means something like "the gui portion of the software stack", right?
A bird that’s breaking the tree of life
I think I know, but is there anything special about how to properly use a paperclip I might have missed?
being down voted because.. ?
> they break lots of otherwise-functioning code.

There is no otherwise! POSIX has symbolic links: if your software does not function with symbolic links, it does not function on POSIX.
Struct of arrays (also called MultiArrayList in Zig), instead of storing big structs in an array you store each field in a separate array and if you need to fetch the full struct you reconstruct it from the arrays.

The benefit is that the arrays items memory size is smaller and has no padding, it also increases cache locality.
Borrowing, in a way, looks a bit like the anchored pointers suggested by Henry Baker in [1]. I recall reading someone did a static analysis to detect what pointers could be anchored, but forgot which someone. However the "deferral" suggested is very different to the Deutsch-Bobrow deferral; what makes me think it is more like borrowing is that anchoring avoids destruction due to linear types, like borrowing avoids moving or copying. (Regions in Cyclone would be somewhere in between, too.)

[1] https://plover.com/~mjd/misc/hbaker-archive/LRefCounts.html
Yeah it’s 2+ here too. I’m pretty sure it was purely a cut off based on quantity of vehicles of each mode.

I’m more speaking to the above good-faith idea.
Rich Chinese Worth $48B Want to Leave – But Will Xi Let Them?
A mile driven is not a positive impact. A trip taken, an amenity experienced, a commute completed would be a positive impact. But every mile driven is a negative impact.

If the amount driven is increasing, it's likely because the system is failing more.
Storage shouldn't be counted in SI units in the first place. Throughput is arguably semi-legitimate to count in SI, but for storage? There is literally no reason other than marketing.
Just call 1024 bytes a "K", 1024 Ks an "M", and 1024 Ms a "G" :)
Hardlinks exist, so you already have this problem. Tar has to keep track of inode numbers to recreate hard links for example.
I use https://www.monarchmoney.com/ and I review my transactions weekly. I like that it lets you roll budgets over month to month. I don't like that changing a forecast item changes all the following months.
I was experimenting a while ago with something that I think is related to this.

If you have a quadratic algorithm where you need to compare each pair of objects in a large array of objects, you might use a loop in a loop like this:

for (int i = 0; i < size; i++) { for (int j = 0; j < size; j++) { do_something(arr[i], arr[j]); } }

When this algorithm runs, it will access every cache line or memory page in the array for each item, because j goes through the whole array for each i.

I thought that a better algorithm might do all possible comparisons inside the first block of memory before accessing any other memory. I wanted this to work independently of the size of cache lines or pages, so the solution would be that for each power of 2, we access all items in a position lower than that power of 2 before moving to the second half of the next power of 2.

This means that we need to first compare indexes (0,0) and then (1,0),(1,1),(0,1) and then all pairs of {0,1,2,3} that haven't yet been compared and so on.

It turns out that the sequence (0,0),(1,0),(1,1),(0,1) that we went through (bottom-left, bottom-right, top-right, top-left in a coordinate system) can be recursively repeated by assuming that the whole sequence that we have done so far is the first item in the next iteration of the same sequence. So the next step is to do (0,0),(1,0),(1,1),(0,1) again (but backwards this time) starting on the (2,0) block so it becomes (2,1),(3,1),(3,0),(2,0) and then we do it again starting on the (2,2) block and then on the (0,2) block. Now we have done a new complete block that we can repeat again starting on the (4,0) block and then (4,4) and then (0,4). Then we continue like this through the whole array.

As you can see, every time we move, only one bit in one index number is changed. What we have here is actually two halves of a gray code that is counting up, half of it in the x coordinate and the other half in y. This means that we can iterate through the whole array in the described way by making only one loop that goes up to the square of the size and then we get the two indexes (x and y) by calculating the gray code of i and then de-interleaving the result so that bits 0,2,4... make the x coordinate and bits 1,3,5... make y. Then we compare indexes x and y:

for (int i = 0; i < size * size; i++) { get_gray_xy(i, &x, &y); do_something(arr[x], arr[y]); }

The result of all this was that the number of cache line/page switches went down by orders of magnitude but the algorithm didn't get faster. This is probably for two reasons: incremental linear memory access is very fast on modern hardware and calculating the gray code and all that added an overhead.
Joint account for everything that relates to family, e.g. rent, food, utilities etc. 1/3 of each our income goes into that account every month.

We try to keep within that budget, but if needed we pad out for extra expenses. Those times there is excess we go on a trip or have a nice dinner.
Or maybe an outdoor water wall with tubes and funnels and buckets:

https://www.google.com/search?q=early+education+water+wall&r...
How to reflect hook state across islands
https://archive.is/4hmAI
Puzzling out the structure of a molecular giant – EMBL
> As a German person

It's not about anybody's nationality. If one does good work, one does good work.

In any country, there's always going to be lots of smart people and lots of not-so-smart people.

Big screw ups happen everywhere, even in Germany [1].

> Don't you Americans value written contracts?

Americans value written contacts. A lot of things do go according to plan in America (as well as Germany I hope).

[1] https://news.ycombinator.com/item?id=9935980
Yeah, that was valuable, and obviously could be distributed among more people.
This is only feasible for applications where latency is not a concern. The overhead of just the HTTP call to an s3 bucket (not to mention all the other bucket access overhead) is much higher than the overhead of a disk read request. Try performing 1000 random file accesses to a bucket, and 1000 random accesses to a disk. The performance won’t even be close.
LOL. Was your whinging to dang about the thread (twice) some sort of attempt to get it or me cancelled because the comments hurt your feelings?? Awesome. Here's a hint: The only way someone could be insulted by pure hypotheticals is if it actually applies to themselves.

You've called me a nutball and whackjob (directly or by innuendo), which as I'm sure you are well aware, is against HN rules of civility. I actually accidentally break this rule all the time, but in this instance I really don't need to worry, as I'm sure you already know exactly what I think of you, so I don't need to elaborate.
You can add a tag to the change you want to keep. Whatever you do, you can recover it (git reset --hard tag). Once you are done, remove the tag. Otherwise, there is the reflog, like mentioned in a sister comment.
Last time I had to use Hg on a client project, disposable topic branches didn't seem to be something really supported. Broke our usual workflow and made a small mess for the client. Is this still the case?
Litetree – SQLite with Branches
Supposedly started with this study from 1978: https://www.semanticscholar.org/paper/Kinetics-of-the-parall...
I have, but when people argue in bad faith like the "Sweden" comment or other hyperbolic ones in this thread, I only have so much patience. I'm not going to go read 15 news articles and wiki pages to find out the most charitable interpretation of namedropping Sweden. If the person wanted to make an argument they should actually provide one. Instead I think it's perfectly reasonable to call out their bad faith argument, because it's not like they're gonna provide a serious response if I make one anyway.

Edit: I want to add something here. Had they replied to my sarcasm with a more cogent reply, I would thank them for it and reply accordingly. I may have a bit of a temper and impulsivity at times, leading to snark. But if you look at most of my comments I'm here to share interesting ideas and conversations with people, and I try my best to discuss in good faith and to be humble when I make mistakes. But at some point arguing like that with someone who is never gonna reciprocate is just being a doormat, and a waste of time.
Is there a new version of the book? All the links I find lead to the 2020 edition.
Because code formatters cannot work on whitespace languages like Python. They can't adjust the indentation for you because they have to assume that the given indentation is intended.

It also makes a lot of other automatic tools for dealing with source code harder to write, if not impossible.
I'm pretty sure if you find someone experienced with Shopify they can make something pretty damn nice for 7k.

It's a better bet than paying $40,000 for a basic website, what about maintenance. What happens when he needs to update the site ,?
The simple thing that I think is missing here is that you can squat in an upright position with your knees in front of your toes or with your torso forwards with your shins vertical (or anywhere in between). And both are okay! What you can't do is vertical shins and vertical torso! As you sit more upright, your knees have to go forwards (past your toes) for balance.

Kelly Starrett: https://m.youtube.com/watch?v=4QJ36zMt5bc
I once shipped a crud app a few weeks earlier than I wanted to because of pressure from managers. I warned them that I hadn't done any optimizations, and it would quickly become unusable with real world use. So naturally, as soon as it was deployed I was reassigned to another project. 3 weeks later the users were complaining it was slow, in 6 weeks it was taking 20 minutes to load. They finally agreed to let me optimize it, in an hour I had it to 5 minutes, in a week I had it loading in 10 seconds. I could get it faster, but I was reassigned again, and at this point it is plenty fast for the users in question.

If I had done the easy change to get it to 5 minute before deploying, it would likely still be that way today annoying my users, but not enough to justify changing.
That's a very modern advancement, was not the case in 2014 (ask me how I know).

I definitely wouldn't discount the amount of effort that Apple has put into that.

Try doing it with linux or with OSX Mountain Lion.
That's exactly what does not leave my mind! It would have been a question of honour for them to stomach it and deliver close to the original estimate.

Everything else leaves me with a sore feeling, that it, while eventually not a scam, at least a careless, profiteering way to handle this, on the back of the customer. I hate this agency :-)
HN likes to cry about lack of blogs but always tell to visit original source aka SV startup link.
You can skip every news like that was well and just go to "source".
Hmm... the quad keys end up looking very much like coordinates. In the regular coordinates, the most significant bit divides the space in half, then the next bit divides those spaces in halves etc...

You could get a single "key" by just having a sequence of bits with most significant bit of x coordinate, most significant bit if of y coordinate, second most significant bit of x coordinate, second most significant bit of y coordinate, third....
Wikipedia’s list of algorithms and data structures is pretty extensive:

https://en.m.wikipedia.org/wiki/List_of_algorithms

https://en.m.wikipedia.org/wiki/List_of_data_structures

__________________

As for a specific algorithm, this paper covers analysis of HyperLogLog (HLL):

http://algo.inria.fr/flajolet/Publications/FlFuGaMe07.pdf

TLDR: Calculating the exact cardinality of a multiset requires an amount of memory proportional to the cardinality, which is impractical for very large data sets. Probabilistic cardinality estimators, such as the HyperLogLog algorithm, use significantly less memory than this, at the cost of obtaining only an approximation of the cardinality. The HyperLogLog algorithm is able to estimate cardinalities of > 10^9 with a typical accuracy (standard error) of 2%, using 1.5 kB of memory.

Source:

https://en.wikipedia.org/wiki/HyperLogLog

Recent HN coverage of HyperLogLog:

https://news.ycombinator.com/item?id=32138790
Git-style branches are called bookmarks[1] in Mercurial and "rebase -i" is called histedit[2]. It works pretty much the same.

[1] https://www.mercurial-scm.org/wiki/Bookmarks

[2] https://www.mercurial-scm.org/wiki/HisteditExtension
what is/will be the state of deep learning in 2022 or next 3-5 years?
you hear/read so many news/articles in HN about decline of DL. Is that so?
Please correct me if I'm wrong. But you'd better avoid creating extra promises for performance reasons

const promiseMap<key, Promise<any>> = new Map();

async function keyedDebounce<R>(key: string, fn: () => R) {
const existingPromise = promiseMap.get(key);
if (existingPromise) return existingPromise;

const promise = fn().then(result => {
promiseMap.delete(key);

return result;
});

promiseMap.set(key, promise);

return promise;
}
Interactive Intro to Remix.run
Well, and 9% YoY, where the previous year was also up ~7% from its own previous year. The magic of compound interest and all.
Halt & Catch Fire seemed weird to me from the start; I couldn't figure out what kind of show it was trying to be and gave up after the second episode.
Is there a way that we can better balance the needs to surveil against the legitimate fears of the populace about chilling effects that broad law enforcement domination of electronic media could create?

Can we somehow effectively, assuredly, in a way that citizens can trust, limit the surveillance activities to legitimate national security and lifesaving actions?

Because the only alternative, to me, seems worse: a world in which our adversaries maintain the advantage in information asymmetry against us, knowing more about our own society than we do, and thereby maintaining an ability to act against our society in ways we cannot detect or attribute.
> Not worth the effort

Well, some members deal with completely different matters, have their time drained by job/family etc.: we cannot know everything (I myself have very little foundations on the topic). If we do not share (information), there is little purpose of presence.

(Although I fail to understand what exactly the poster was attacking, and on which basis.)
Yeah, I bet it's been a lot of work. But that just underlines my point - you can't expect people to reinstall their school computers if it requires changing their entire network to something nobody there understands and the users (teachers of subjects other than computers) don't want it.

The thing is, people (admin and users) are quite happy with the MS stuff - it's not perfect and costs a lot, but it mostly works without too much setup work.