skysight-inc/HackerNews huggingface dataset:
Basic syntax for re-encoding a video file did take me some time to memorize, but isn't in fact too hard:

ffmpeg <Input file(s)> <Codec(s)> <MAPping of streams> <Video Filters> output_file

- input file: -i, can be repeated for multiple input files, like so:

ffmpeg -i file1.mp4 -i file2.mkv

If there is more than one input file then some mapping is needed to decide what goes out in the output file.

- codec: -c:x where x is the type of codec (v: video, a: audio or s:subtitles), followed by its name, like so:

-c:v libx265

I usually never set the audio codec as the guesses made by ffmpeg, based on output file type, are always right (in my experience), but deciding the video codec is useful, and so is the subtitles codec, as not all containers (file formats) support all codecs; mkv is the most flexible for subtitles codecs.

- mapping of streams: -map <input_file>:<stream_type>:<order>, like so:

-map 0:v:0 -map 1:a:1 -map 1:a:0 -map 1:s:4

Map tells ffmpeg what stream from the input files to put in the output file. The first number is the position of the input file in the command, so if we're following the same example as above, '0' would be 'file1.mp4' and '1' would be 'file2.mkv'. The parameter in the middle is the stream type (v for video, a for audio, s for subtitles). The last number is the position of the stream IN THE INPUT FILE (NOT in the output file).

The position of the stream in the output file is determined by the position of the map command in the command line, so for example in the command above we are inverting the position of the audio streams (taken from 'file2.mkv'), as audio stream 1 will be in first position in the output file, and audio stream 0 (the first in the second input file) will be in second position in the output file.

This map thing is for me the most counter-intuitive because it's unusual for a CLI to be order-dependent. But, well, it is.

- video filters: -vf

Video filters can be extremely complex and I don't pretend to know how to use them by heart. But one simple video filter that I use often is 'scale', for resizing a video:

-vf scale=<width>:<height>

width and height can be exact values in pixels, or one of them can be '-1' and then ffmpeg computes it based on the current aspect ratio and the other provided value, like this for example:

-vf scale=320:-1

This doesn't always work because the computed value should be an even integer; if it's not, ffmpeg will raise an error and tell you why; then you can replace the -1 with the nearest even integer (I wonder why it can't do that by itself, but apparently, it can't).

And that's about it! ffmpeg options are immense, but this gets me through 90% of my video encoding needs, without looking at a manual or ask an LLM. (The only other options I use often are -ss and -t for start time and duration, to time-crop a video.)
The relationship between homeschooling and college attendance
Well, it is not just "can" be done, but we at IPinfo actively measure the internet and produce IP geolocation data. Sure, there are some limitations with satellite, microwave, and certain WAN-based connections, but it is the best solution for IP geolocation available right now, and we are seriously committed to it. Currently, we operate nearly 900 servers running ping, traceroute, and network measurement activity. Literally yesterday, we hit a milestone of having a server across 300 ASNs. We base our servers across diverse locations and networks. I think at this moment we have very few ASN where we do not have sub 10MS ping times.

If you have a question let me know.
This question is also applicable to the plain vanilla LLM service (ChatGPT, Claude, Gemini, etc)

I guess in the future I can add some kind of references. But when integrating with better data source (primary & secondary), those may not be "referencable" either

So I guess the real answer is I'm not sure. Any advice?
I haven't played with that much! This isn't really a problem in general for my approach to writing this sort of code - when I use multiprocessing, I use a Process class or a worker task function with a setup step followed by a while loop that pulls from a work/control queue. But in the Pyper functional programming world, it would be a concern.

IIRC multiprocessing.shared_memory is a much more low-level of abstraction than most python stuff, so I think I'd need to figure out how to make the client use the shared memory and I'm not sure if I could.
What happens to the parts that are cut down and used is what matters. If you build long-lasting houses from them, then it's probably good for the climate, as long as new tree is planted in its place. If you use the wood to make toilet paper, then it's not so good for climate since that carbon will return to the atmosphere faster.
When top officials and other generally influential people transparently behave like self-centered sociopaths or psychopaths, it is difficult to see them too worried about survival and prosperity of citizens. Themselves those people are not going to have trouble surviving a nuclear winter (a thought experiment is needed to determine whether they will even suffer from it all that much on a personal level, compared to ordinary people many of whom would just perish).

Especially with MAD, but with modern technology in general, caring about survival and prosperity of your own citizens means caring about peaceful coexistence with other countries.

In this context, a degree of nationalism is not bad and may in fact be important (if another country is being hostile and you do nothing, that is not a peaceful coexistence); it’s isolationism that is actually worrying: having every mature participant depend on each other is a great way to make them usually not want to eliminate each other.
Show HN: GoodReadsLunatics – I turned 16,000 book reviews into a game
I decided to give Blazor a try and created a small project called GoodreadsLunatics. It’s a game where you guess which book a review comes from based on some of the funniest Goodreads reviews I filtered out.

To build it, I started with a list of the 100 most-read books and scraped multiple reviews for each book. Then, I used a large language model (via Semantic Kernel) to evaluate and score the reviews for humor. Afterward, I manually approved the funniest ones since many reviews were either genuine, not funny, or in a different language.

I'm currently still manually approving reviews for the game.

The project is hosted on a Hetzner server, and I’m happy to answer any questions about it!
Jugglernaut: your comment is dead so I can't respond, but yes I'm extremely happy with it. I don't feel a need to change anything.
What company was it, who was the CEO, and what's one specific thing one of the departments did?

Or are you just copy/pasting LinkedIn drivel?
In theory yes, in practice good luck maintaining that if you are just a solo blogger.

I doubt your blog would last a single month without some breaking change of some sort in one of the packages.
Are you Swedish? Just wondering because I've never seen the gender neutral pronoun "hen" in English.
Thanks so much for what you did here! I love that site so much, because yes it had good music! And playlists and curators. I remember exactly where I was when I found out it would be shutting down.

Agreed it's all lead gen but they haven't ruined it too much yet at least and its still on
Til https://en.m.wikipedia.org/wiki/Hen_(pronoun)
I tend to agree with the author. But then, look around: a lot of stuff works really really well.
The irony is the same could be said about the PG article; why didn't he just quietly distance himself, instead of having to make a big public spectacle? Writing an entire blog post on "woke" is the definition of virtue signaling.

And wrt to the neo-Nazi accusation, you know what they say: what do they call nine people sitting at a table with a Nazi? Ten Nazis.
I believe theyre mirrored there now. Browsing and discovery is much nicer on FMA in my opinion
Not starting to learn programming earlier.
I care. It's frustrating sometimes, but I still can't help myself.

Working with people that also care (and are empowered to do something about it) is the greatest thing. I've worked in several such teams over the years and it's absolutely awesome.

On the opposite side, working on a team that doesn't is the worst.

I've actually been reprimanded by middle managers for caring, because caring sometimes takes more time than planned, and an arbitrary internal deadline wasn't met. I've come to realize they do in fact care, just not about the software but only about their own promotion. And the core issue is that they don't actually know why their own deadlines and feature requirements exist, they just get them handed to them.

This is different when you work closer to and with a customer directly. They know exactly what's important and why they need X or Y. When someone actually has to deliver results and deal with the users, they are more invested in having a working system. Here, caring involves finding the "right" person (usually not the one in charge), talking to them and figuring out what they really need (not want) and how they're using the system.

In such a setting, caring and building stuff that truly works is also reflected in performance reviews as everyone including the customer is happy.

You really have to pick your battles. I've had to make some concessions myself: some stuff turns out to be more complicated or unclear than it is at first glance, and sometimes you really don't have and can't make time for it. And in really large companies, there are sometimes so many people involved that you often can't get the answers you need or access to the person you need. Or you end up at legal which is more often than not a dead end.
I took a similar approach, but I still have a dynamic site generator that reads my HTML content and outputs it to a template. I write all of my pages as stand-alone HTML, and each page can render on its own without any of the template being present. For example:

https://parkscomputing.com/page/conways-game-of-life

Is supported underneath by the raw HTML:

https://parkscomputing.com/content/conways-game-of-life.html

The menu and main page are controlled by a JSON configuration.

The site is slow right now because I'm being stingy on the Azure storage performance.
It's amazing how the presumption of innocence – one of the pillars of a fair justice system – has eroded away in the popular consciousness in the last few decades. I'm not sure what inspires takes like this beyond sheer callousness, to simply not wonder what happens to those wrongfully convicted/affected by prejudice. Thinking they did it isn't knowing, and it certainly isn't enough to justify ruining (or taking) someone's life.
I mean how long does it take to radicalise 20 odd people.
The assumption is that upper class kids are more likely to have the types of behaviors and attitudes that you'd like your kids to adopt (e.g. getting a C or even a B is embarrassing/shameful, AP classes are table stakes, drug use bad, video games/tv limited, more likely to have intact households, expected to be polite/treat others respectfully) while lower class kids are more likely to have the types of behaviors and attitudes you'd like your kids to avoid (e.g. no point in applying yourself, parents have no idea what you're up to or how you're doing in school anyway, drug use normal or cool, kids raised by tv/computer/phone, family tree is more of a chain with random links sticking out, family yells at each other so loud the neighbors hear it). It's an attempt to manipulate the Overton window that your kid will encounter interacting with peers.
>Society is really fine!

Any healthy, long-term viable society has to prioritize one task above all others... making the replacement people that will be society once the current people die. Your society (if you choose to claim it) doesn't do this. Sub-replacement fertility. It's dying because of this. If you think that's fine, go for it.

>I live among millions of people every day

Sure. And each generation is about half the size of the previous. It will look fine, even crowded for awhile yet.

>I understand you're coming from a very American-specific point of view,

This is global. China has sub-replacement fertility. Korea and Japan have sub-replacement fertility. Europe has it, South America has it, India may have finally crept below replacement, but if it hasn't yet it will next year or the year after. This is everywhere. There's not a hidden corner of the world where it's not happening.
Traditional word embeddings (like word2vec) were trained using logistic regression. So probably the closest would be σ(u.v), which is of course nicely bounded.

(The catch is that during training logistic regression is done on the word and context vectors, but they have a high degree of similarity. People would even sum the context vectors and word vectors or train with word and context vectors being the same vectors without much loss.)
The linked article begins with "[Blinkenlights] Probably the only German word I know"
9 Simple Tips to Escaping Social Media
That's one way to trash your professional reputation. When you hire a lawyer, you expect them to defend you to the best of their ability regardless of your personal beliefs; if you are a lawyer, you discard your personal political and religious associations to focus on the job at hand. If you are unable to do this, you simply lack the mental fortitude necessary to be a good lawyer.

If I knew my lawyer was so affected by political or religious association that they would drop me in the middle of a case if my views simply disagreed with theirs - I would immediately fire them.

People really need to learn to separate their Xitter personality from their professional life. All that said, this reads more like "lawyer gets fired, attempts to re-phrase as 'I fired my client.'"
Information in an electric circuit travels along that circuit at ~0.9c. The physical light pulses that are running through the optical waveguides are more or less traveling at around ~c/n, where n is the refractive index of the material (in this case silicon, so n ~ 3.5).

the actual optical "packet" of information is traveling slower than the electric "packet". The key here is that the electric packet can a few bits, while the photonic packet in theory has a much larger bandwidth.
Just build your own custom blog!
But good teachers can make a huge difference, it's a shame identifying them is a black art and so few people get that access.
> We've now taught both of our kids to bike by starting with a balance bike,

I looked at the balance bike, thought "what a waste of money" and told my kid "just scoot up and down this level pathway while I fix the pool pump. don't worry about pedaling." and 5 minutes into the pump repair he was balancing just fine.

I'm not buying a toy that gets used for 5 minutes only. Whether I can afford it or not is irrelevant.
Ain't no one gonna take this advice seriously on here. hn is the most NIMBY place on the internet especially when it comes to their own kids. MMW pearl clutching is imminent.
One reason why it might be a good idea to use higher quality drives when using ZFS is because it seems like in some scenarios ZFS can result in more writes being done to the drive than when other file systems are used. This can be a problem for some QLC and TLC drives that have low endurance.

I'm in the process of setting up a server at home and was testing a few different file systems. I was doing a test where I had a program continuously synchronously writing just a single byte every second (like might happen for some programs that are writing logs fairly continuously). For most of my tests I was just using the default settings for each file system. When using ext4 this resulted in 28 KB/s of actual writes being done to the drive which seems reasonable due to 4 KB blocks needing to be written, journaling, writing metadata, etc... BTRFS generated 68 KB/s of actual writes which still isn't too bad. When using ZFS about the best I could get it to do after trying various settings for volblocksize, ashift, logbias, atime, and compression settings still resulted in 312 KB/s of actual writes being done to the drive which I was not pleased with. At the rate ZFS was writing data, over a 10 year span that same program running continuously would result in about 100 TB of writes being done to the drive which is about a quarter of what my SSD is rated for.
Release the clutches linearly in half a second with the engine at 1k rpm and bunny hop away lol

But you’re totally right. You can pull away quickly by letting your rpm build up and choosing an aggressive clutch position while applying enough throttle to keep the rpm constant, alternatively in most cars you can pull away on a fairly steep hill with no throttle if you just barely let the clutch engage and hold it at that point until the car is moving steadily
> abundance of science to support it

A few citations would be helpful.
How would a better solution to the bike lane cost more tax or worsen situation for drivers?
https://www.self-directed.org/resources/research
We (IPinfo) run active measurements through our 900 servers and produce a standard IP geolocation data product. However, to my knowledge, we haven’t partnered with any organizations or institutes to support a project like this, although we certainly have the potential capacity to do so.
Maybe I'll retire to one. Will I be welcome as a transgender person? How far do I need to drive for tofu? I've been eating a lot the last few weeks and I don't want to give it up
Mass Timber (engineered wood), https://en.wikipedia.org/wiki/Engineered_wood, is being used to build large buildings and meets building code's fire resistance standards.

Is Mass Timber Fire-resistant? https://www.youtube.com/watch?v=I9Y35Zsga1Q

How to build a wood skyscraper: https://www.youtube.com/watch?v=2qry7AmdIn8

Google's first mass timber building in Sunnyvale, CA https://www.youtube.com/watch?v=JHnR-HdvTAA
This or get a balance bike (in Germany, Laufrad) for your kids and let them learn to balance.

The switch to a full bike is then flawless.
The police should not be financially incentivized to enforce any aspect of the law, because it leads directly to corruption. CMV?
Exactly. And the appropriate "safeguard" is conviction of a crime. At sentencing, it would be appropriate for a court to consider whether some amount of money constitutes the proceeds of a crime, and what the appropriate disposition of that money would be to best provided restitution to those harmed by the crime. And if there is some belief that something might happen to the assets before then, we have processes like preliminary injunctions, which have a high burden of proof. Until one of those things happens, there are no grounds to justify seizure of any assets.
Try scrolling with the arrow keys.
Reading the original article I reflected: "I can totally see how this can happen, but for some reason it doesn't happen where I live"

I moved to Switzerland 9y ago. People care. I believe this is due to high trust society which evolved not that long ago from small, poor, tightly woven communities.
How roles are perceived, becomes how people perceive themselves, becomes how people act out those roles.

Or more to the point: Its easier to be what people expect you to be.

In my experience the US is especially susceptible to this 'roleplaying', probably because all (entertrainment) media comes from the same overarching culture.
why would I do that? :p
Did you really have to hijack the up and down keys? I can't scroll.
I don’t understand—the language itself is completely contained and separate from the derivation. Evaluation could be done in any language and the derivation will remain the output. You can absolutely have a better language generate derivations, surely? Hell, you could use Python typescript or go if you wanted to. They’d even be completely compatible with the unholy mess of cursed bash that is stdenv.

What you can’t port over to another language as neatly are the modules. Good riddance, id say. Undebuggable spaghetti from hell.

> from the inside, there's not much of a desire to switch to something better, because the language isn't the thing that gives people trouble after the initial learning period (which would exist with any host language).

Unfortunately I have wasted enough of my life to call myself “on the inside” and IMHO the language itself is close to the number one threat to wider adoption of nix.
>prevents any nation from violating the sovereignty of a nuclear power.

Is Ukraine still sitting on a bunch of russian land?
Classically underspecified, you are right. The care has to be about others and respecting them, not about oneself. Like in a good partnership. Care about giving, not taking.

But as the article frustratedly states, it usually goes the other way. Like Jethro Tull progressing into desillusion from

https://m.youtube.com/watch?v=luDfuZkeqKU

to

https://m.youtube.com/watch?v=f7SGq7jMdSU

This planet is such a beautiful marble and all we do is trample it with our feet. Guys, make a random somebody smile today, will ya?
I find Thiel's chronicle disturbing, and I believe everyone should read it. To cite Norway's largest business newspaper, Dagens Næringsliv: His vision of the internet as the destroyer of the liberal "ancien régime" and thus the true savior of the people is fundamentally totalitarian. It assumes that once the outdated liberal hegemony is annihilated, there will no longer be any conflicts of interest. The masses can finally cast off the oppressive yoke, and from the depths of the people, pure truth will emerge. Such is the essence of Peter Thiel's message.
Maybe the lighter materials and looser tolerances played a role, but it’s still impressive
Metaculus - this is the median prediction.
Is the Apple Photos feature mentioned actually implemented using Wally, or is that just speculation?

From a cursory glance, the computation of centroids done on the client device seems to obviate the need for sending embedded vectors of potentially sensitive photo details — is that incorrect?

I’d be curious to read a report of how on-device-only search (using latest hardware and software) is impacted by disabling the feature and/or network access…
Nix has been a godsend at dealing with different dev environments and (cross-)compiling complicated software stacks. When you write a proper nix derivation that runs inside a nix sandbox it does not matter where you run it, you'll have high guarantee it replicates the result for you anywhere.
It is a hard job if you and your partner both have full-time jobs and other part-time or side-hustles just to barely pay the rent.
It's all very interesting but those pictures look pretty bad. Clear visible artifacts, awful shapes.
"Print a text file to STDOUT using ffmpeg"
ffmpeg -v quiet -f data -i input.txt -map 0:0 -c text -f data -
I tried this in a directory with input.txt with some random text
Nothing.

So changed the verbosity to trace
ffmpeg -v trace -f data -i input.txt -map 0:0 -c text -f data -

---snip--
[dost#0:0 @ 0x625775f0ba80] Encoder 'text' specified, but only '-codec copy' supported for data streams
[dost#0:0 @ 0x625775f0ba80] Error selecting an encoder
Error opening output file -.
Error opening output files: Function not implemented
[AVIOContext @ 0x625775f09cc0] Statistics: 10 bytes read, 0 seeks

I was expecting text to be written to stdout?
What did I miss?
I noticed that almost none of the kids around me, mine included, have training wheels. They all learn on push bikes with no pedals and then straight to bikes.

I had training wheels but I live in the Czech republic and grew up in England.