skysight-inc/HackerNews huggingface dataset:
Yes, a smart server (that does more than serve static image assets) can do the heavy lifting and alleviate some of the HTML markup complexity.

It has the `Accept` header as a guide to what image formats the client supports, and with Responsive Image Client Hints[1], it can opt into more info from the client (device pixel ratio, image layout width, viewport width).

Without relying on server features, `<picture>` with `<source type='…'>` is the way to serve images in newer formats without breaking in less capable browsers.

It’s interesting that `image-set()`, the CSS sort-of counterpart to `<picture>`, bakes in the media type along with the resolution in a single syntax [2]. Which you could potentially see happening in `srcset`, but it makes the descriptive/prescriptive boundary a bit blurry, so it would complicate things IMO.

[1]: https://wicg.github.io/responsive-image-client-hints/
[2]: https://developer.mozilla.org/en-US/docs/Web/CSS/image/image...
> How am I supposed to know that?

You’re not supposed to know that. You asked a question, and this is you being told the answer.

It’s very convenient that the author of the post is quite literally the world’s most prolific teacher on this topic. Makes it easy to find Karpathy. You shouldn’t be expected to otherwise know that (or else why ask if you knew).

> I didn't realize variables had to be so short in C. Glad I write C++ professionally where they've added support for longer variable names.

This feels like a joke but old C compilers did have variable length limits. This is part of why C historically had shorter variables than other more modern languages.

Sorry if it came off rude, the internet is hard to communicate over.

https://publications.gbdirect.co.uk/c_book/chapter2/keywords...
For Kafka, the page cache is indeed a double-edged sword.
Because the economics aren't "just bad".

The only shortcuts that might be worse on an alternative layout is hjkl, and you can argue that people way overuse them and it's better get into the habit of using other movement keys instead.

I've found that Vim ergonomics are way better on my own layout[0] than on qwerty, despite hjkl not being on the home-row.

[0]: https://www.jonashietala.se/series/t-34/
When you are editing some configuration, you are testing that the change works, so the typo should be spotted at some point, no?

You can make your program complain that the field is unknown too.

Personally I copy paste everything and type few things anyway, but a way to handle this is to provide an example config file with everything commented out from which you can start. I quite like this way of doing things.
> Using * on a sequence wouldn't get past code review

On a mutable sequence. Or anything mutable. [] being a sequence is not the issue here.

If you work with immutable stuff, * is really not an issue.
The Daily Journal had pictures. I go by the Burlingame station, which is a nice Spanish-revival station from the Southern Pacific days.[1] SP built good stations, and Caltrain maintains them mostly as decoration. I'm surprised they don't put a Starbucks in each one.

Google Street View coverage is so good that you can see the apartment.[2]

[1] https://flickr.com/photos/rajbhatnagar/5626838344

[2] https://earth.google.com/web/@37.57977486,-122.34480873,10.5...
TikTok staff face big US tax bills on shares they cannot sell
Taiwanese groups consider overseas headquarters to hedge against Chinese attack
whisper.cpp [1] has a karaoke example that uses ffmpeg's drawtext filter to display rudimentary karaoke-like captions. It also supports diarisation. Perhaps it could be a starting point to create a better script that does what you need.

--

1: https://github.com/ggerganov/whisper.cpp/blob/master/README....
Also, don't call women "females", wtf??
There's a nice spec for this by the UAPI group: https://uapi-group.org/specifications/specs/configuration_fi... , with the most common implementation called libeconf. The tl;dr is that an application / OS vendor can ship the default configuration in a path like /usr/etc, some dynamic runtime component can then override it in a path like /run, and a sysadmin can override that in a path like /etc. Each location is searched for a main config file or dropin patches under a `.d` directory or both (depending on the software's choice), and then considered in a defined order - later search directory roots have priority over earlier ones when the filename is the same, and dropins are considered in lexicographical order of filename regardless of which search directory they were found under.

That said, it unfortunately doesn't go on to specify local-user overridability via $XDG_CONFIG_HOME etc, which might limit its adoption.
Notion is taking 4+ years to remove redirect from notion.com to notion.so
I don't understand your comment, its relation with the article and how it solves the issue at hand.

Maybe you gatekept your comment from mediocre HN visitors?
> The core problem is you're having people modify files that you will also change, for example when you release a new version of your software that has new options that you want people to be able to change or configure.

That's a solved problem. You have an "example-config.xyz" file in the distribution that the user must rename to "config.xyz" and customize.

The new version of the software clobbers example-config.xyz, not touching config.xyz.

If the user also retains the original example-config.xyz in a copy called ORIG-config.xyz, then after the upgrade, they can do a three-way diff.
I really wonder what "more sane" languages you mean. Because a single [] does give you an empty list value in Python: one list, and not four different empty lists. Why would it give your four? That'd need to somehow bring in the surrounding context and in "sane" languages, (closed) expressions generally don't change the meaning because the context around them is changing.

Actually, if you really want to have re-evaluting (sub)expressions, then Python does give you an option: comprehensions.
https://classiebit.com/eventmie-pro
If you looking to host your events but you don't have any platform to host, then once visit Eventmie Pro Platform, Which is the best event management platform in 2024.
Honestly, I think the future is a combination of geoengineering and carbon reduction policies.

The earlier we realize this the better. Geo-engineering needs a lot of research to minimize risk and find effective/feasible solutions. I don't think we would have the time when we decide it is suddenly too hot and need a solution now. I'm not sure if it is that the populace at large dose not like geoengineering, or if its just a combination of fear of the unknown and a vocal minority of naturalists, but I think it is for the best we start the conversation now so at least many people can warm up to the idea.

Carbon policy can't be the only solution simply because, not every nation is on board with carbon neutral policies, either because of naivete, arrogance, pressure from public and or private interest groups. Even if we we get every nation onboard with carbon neutrality, what is to say they will stay that way on the next N centuries of election cycles?
see also https://www.youtube.com/watch?v=NaC8nuso92c for 1980s hairspray theology.

I guess almost all (including Hindus, Buddhists, etc.; what about Taoists or Confucians?) would agree, with the exception of christian and muslim believers in predestination?
When I read the headline, I thought this was going to be specifically attacking suckless.
It does make sense because Vim by default is forward looking, so `w` moves forward a word and the secondary effect is to move backward with `W`.

As another example `diw` reads "Delete Inner Word", or `dap` reads "Delete Around Paragraph".

It's way easier to just learn the new new keys and rely on the mnemonics IMO.
> My bigger question is how does a professor of machine learning does not know about one of the oldest Python footguns to exist

Because there's a lot of them. And as soon as you touch a sane language that fits your intuitive model of how things should work, going back to Python means that you'll start doing intuitive things that Python will happily and silently transform into unintuitive operations.
I only use the [x] * n form of array initialization for primitive types (int,float,bool,string).
So

#good
a = [True] * 8 # bool is primitive
b = [[True] * 8 for i in range(8)] # range creates new lists each time

#bad
a = [{}] * 8 # dict is not a primitive
b = [[True] * 8] * 8 # list is not a primitive
So shift + F10 and OOBE\BYPASSNRO no longer works to skip network setup (and therefore be unable to use a Microsoft account, forcing it to allow a local account)?

What about computers with no network connection available until you install a driver, can you just not use Windows on such computers anymore?
> castrated cowardice

You lose credibility right there. No need for such bullshit it you actually have a point. Performative machismo is completely useless.

> Thieves should be afraid of both law enforcement and vigilante response. Better society when both are on the table.

lol no. Actually, what the hell are you thinking? Mob justice is not justice at all. What happens when someone decides you are a thief (or rapist, or murderer) just because they don’t like the look of you or would like to have your car very much?

This does not frighten thieves; this frightens people other people don’t like. I mean, we’ve had plenty of examples in recent history. I would take the risk of losing my bike every now and then instead of the risk of being lynched any day.
Blogs strip off for CSS Naked Day (2020)
This is the easiest way to go but it's only obscuring the GUID.
Format preserving encryption (FPE) would be another possibility if it's not simply a byte string.
“Some of you may OOM, but it’s a sacrifice I am willing to make.”
Never heard of such notation.

For me ≈1180 would mean that it's not exactly 1180.

But a better title would be something like “Over a thousand plant root system drawings”.
> I don’t see why Google should have exclusive rights to use content that others have made

Two perspectives: (1) because google is paying for the storage, processing and delivery of these videos, so it makes sense that they could do something with them that others can. And (2) because maybe you uploaded those video to YouTube specifically because you find Sundar Pichai vision extremely interesting so you definitely want to be on his platform and you find Sam Altman so obnoxious so you don't want him to use your content.
F# does this nicely with the mutable keyword and the <- assignment operator.
Teams is slow for a reason. /s, but only slightly.
> The other issue is that most of these alternate layouts are optimized for writing prose, and sometimes make other things, code, for example, more difficult.

Why would it make writing code more difficult? Code is mostly just English plus punctuation, which most layouts don't change.
A survival guide for Catalan [0] people that want to understand Mallorquí [1].

https://diccionari.icarns.xyz

[0]: https://en.m.wikipedia.org/wiki/Catalan_language
[1]: https://ca.m.wikipedia.org/wiki/Mallorqu%C3%AD (no English entry, use translator)
Yep, just tried it. Less pretty but all worked for my main site!
London also has them.

https://en.wikipedia.org/wiki/Moquette
(Referring to https://www.gnu.org/software/stow/manual/stow.html#Other-FSF...)

They serve two different purposes. DESTDIR places files in a staging directory, e.g. to be packaged into a tarball.

In your example, you will end up with the program at /usr/local/stow/whatever/usr/local/bin, which I'm guessing Stow is trying to avoid, because it's ugly and the extra directories are unnecessary. Not wrong, though. With their approach, it ends up at /usr/local/stow/whatever/bin.
Super cool!

I do wish there were much better algorithms for ascii art. The best manual ascii/ansi art humans produced during the peak of that scene is extremely far ahead of any algorithm I've seen.
You want Python to be how much slower now?
Wouldn't the soil density affect the root system?
> What's everyone's experience? Was it worth it for you learning another layout?

I designed my own layout to fix my RSI, which was very worth it. But I don't think it's worth it if you're after speed, the effort is better spent practicing typing IMO.

I wrote big lost about my experience here: https://www.jonashietala.se/blog/2023/11/02/i_designed_my_ow...
Very practical approach! I'm curious about its scalability with high data volumes. Are there potential trade-offs or limitations?
Thank you! The note there:

> NOTE:Opus doesn't support 44.1kHz sample rates, so encodes to 48kHz sample rate. As this causes browser playback issues, it has been resampled back to 44.1kHz. This may affect the sound quality, so this test should be taken with caution.

Is very surprising to me, in two ways.

Firstly I knew 44100 is a relic due to historical reasons, but it's still a quite widely used sample rate in audio world. I have no idea Opus does not support it.

Secondly, it seems to imply browser can't playback 48kHz audio properly. I didn't dig the details, but this sounds weird. Just like 44100, 48k is a very common sample rate, I can't imagine browser would have trouble with it (or any arbitrary sample rate, to be honest).
I thought most software authors have this particular stance, which of course they are in their right to have, that they are offering free software and thus have no obligation to help anyone with anything, and they can always do it by themselves.

In the past I've seen links here on HN where certain OSS authors were pressured into helping, fixing, adding features by users who 'demanded' it and the authors were feeling very bad about all this. It wasn't just one post.
If they are iffy players they'll use 4 memorised sequences then enter the mid-game with a losing position. Playing out memorised sequences without considering the interactions the corners have on each other is one of the weights keeping amateurs from moving up to higher ranks.

If you are playing someone who is worse at fighting then playing good-enough joseki and making up any theoretical difference in the middle game is a fine strategy. But even choosing good-enough joseki requires thought (or instinct) that does beyond what can reasonably be called memorising. It is critical to recognise when a framework is getting too big and invade before the opportune moment passes.

As thomasahle notes, pretty much every game is unique and a memorised sequence unbacked by an algorithm cannot hope to be optimal.
Pokémon prism was DMCA’d right when it was about to release because there was a bunch of press about it coming out soon so Nintendo DMCA’d it. Although it mostly survived unscathed because a late beta leaked and another dev team took over it
Yes, extremely impressive. "Mary Poppins" rightfully received an Oscar for best visual effects.

I am continuously amazed at the level of innovation done at the Disney studios back when Walt Disney was still alive. Rewatching Snow White with my daughter a few months ago, I was flabbergasted by the animation quality, even when compared to animation movies made decades later. Just look at these water scenes:

https://youtu.be/54QeNL5ih6A?si=dOdrRrISu8f4I96G&t=95

https://youtu.be/khmrr7-W6BA?si=whn5mvuL9x95JP1l&t=70

This was in 1937! Compare these scenes to this Paramount animation clip (also featuring Snow White), which was finished just 4 years earlier: https://www.youtube.com/watch?v=cKOSJ5AAwfc

The multiplane camera [0] is also ingenious and is imho the single biggest reason why Disney could produce animation movies that looked "cinematic". I read somewhere that they re-used it for "The Little Mermaid" in the 80ies, and nobody really remembered how it worked anymore.

Disney also developed Xerox animation [1], which is cheaper than traditional animation, but which gave 101 Dalmatians a very nice "sketchy", artsy look .

[0] https://en.wikipedia.org/wiki/Multiplane_camera

[1] https://www.smithsonianmag.com/innovation/how-one-hundred-an...
Different behavior would be very easy to program.
Apart from what others have said, you'll run into problems with chromatic lens aberrations the further your "key" wavelength is outside of the visible spectrum so your two images might start to mismatch too much.

I know in IR still photography you're supposed to add a focus offset marked on your lens to adjust for that. A regular achromatic lens quickly fails outside of the wavelength range it was designed for[1].

[1] https://en.wikipedia.org/wiki/Chromatic_aberration#Minimizat...
Two years ago, on the height of Wordle's popularity I wanted to play a custom word against my colleague and ended up sending the emojis manually in the chat to each of their guesses.

That was a Friday and the same evening I had the idea to make it into one of the many derivatives and finished the same night around 3am.

Things went a bit popular from there and it wasn't long before I was contacted by companies that wanted their own branded version. That meant I had a potential product on my hand and started selling subscriptions to managed branded puzzle sites.

Fast-forward a year and I sold the weekend project for a nice sum. :)
It's not great though. I do use it to repeat strings but it should have been a method and not weirdly overloading *. This type of misuse of operator overloading is why people from a C++ background think operator overloading is evil. In python it's mostly ok, due to a more restrained culture, but this is a good example of when it's bad.
> I also needed to pay my bills and so I thought: why not help others getting access to this time saver app? That's how I decided to make it becomes a Saas and to share it with you today!

this probably answers your qtn
I'm 40, and I've done things down to the level of wiring discrete transistors into logic gates, as well as C64 BASIC, C, […], ObjC, and Swift. Even did a module on OSes at university (20 years ago, so they were simpler).

I just… wrote my previous comment so badly everyone legitimately missed the point that was in my head.

Consider that part framing.

My problem with modern abstractions is the wheel keeps getting reinvented by people who don't know the lessons from the previous times it was invented, even when they're making their wheel out of other wheels — which is how I feel when I notice a website using javascript to implement <img> and <a href> tags or scroll regions whose contents can't be fully selected because it loads/unloads content dynamically 'for performance' because someone just assumed 10,000 lines of text in a browser would be slow without bothering to test it, or that I see HTTP servers returning status 200 while the body is JSON {"error": "server error"} or equivalent.

I could go on (also don't like VIPER) but this would turn a comment into a long blog post.

While I also don't like that web browsers are inner-OSes, can see how it happened from the second half of Zawinski's Law: Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can. - https://softwareengineering.stackexchange.com/questions/1502...
The problem with GNOME "researched and thought-out opinions" is that they often require all apps to follow it to work well. They ignore use cases involving non-GNOME apps (case in point - systray), but using only GNOME apps is extremely limited.

I used GNOME as my main IDE since v2.4 (2003), but slowly grew frustrated with the changes until the v40 was a bit too much and finally gave KDE a chance (after several previous tries which did not convince me). KDE was finally mature and stable, it took maybe 30 minutes to configure it to my liking - I don't think I had to change the config since then.
don't be such a debbie downer! celebrate it, and we'll find a use for that some day
I dont think topic thst can be explained in one blogpost is the most complicated thing in webdev.

People often just dont understand srcset/sizes and try to do too much and make some kind of media queries logic instead of leaving all to browser.
Is it possible to serve one image file of progressive encoding and display different size on different media conditions?

As a hack I would just put the blob offset in the URL as part of file name, and use js to load those images.

For example:

filename.1000-120w.3000-240w.5000-360w.jpg

means the 0-1000 bytes will get you 120w image, 0-3000 bytes will get you the 240w image, 0-5000 bytes will get you the 360w image, and load full will get you the original image. Make an http request with a Content-Range header and render the result with canvas or something.
No Datadome Javascript:

https://cc.bingj.com/cache.aspx?d=2294511459295&w=-rArdAEMoP...
Oh yeah, definitely something I’ve witnessed and been frustrated by before. Some of it stems from improper use of CSS units [1], and the only real recommendation I have is for people to _test_ for basic things like zooming in and out of the page, while keeping close in mind _the reasons_ people might want to zoom in and out of the page.

[1] https://ashleemboyer.com/blog/why-you-should-use-px-units-fo...
Something like this might be useful to put into hardware, e.g. with custom silicon or FPGAs. Maybe then the processing power won't be a big issue?

Edit: Ok I just saw the thing is over 200 MB, might not be feasible for a while.
Happens in sports. Roger Bannister broke the 4-minute mile in 1954. Before this it was thought to be impossible. Within 3 years, 16 other runners also broke the 4-minute barrier. Their equipment was the same as before; it was a mental thing. Arnold Schwarzenegger tells about a similar thing in weightlifting. Pat Casey broke the 500 lbs bench press record in 1956. Bench press records have since doubled, now exceeding 1,000 lbs in some categories.
Now you just need to know at which size your image will be displayed at in a flex container and you're done :))
Not saying it isn't, and I wasn't trying to make a comparison between the two conflicts. Only pointing out the inaccuracy of the quoted Ukrainian numbers.
> There's a black art into estimating what angles to test and how deep to avoid calcification.

There may be a black art to recognizing what you overlooked, but otherwise it is pretty straightforward. Tests are your documentation. The angles needed to be covered are exactly what the user needs to know to use your software – how to use it and, when using it, what happens both in the expected case and when failure occurs (especially what happens when failure occurs!).

Calcification is of little concern as the inverse is breaking changes, and the user does not want to deal with your breaking changes. You can put your mind at ease knowing that once you commit to a documented feature, it should remain there until the end of time.
> While SQLite is a really amazing database, most teams will benefit from avoiding it and going the PostgreSQL way instead.

> Bazillions of engineering hours have been spent to make Postgres the best backend database and choosing SQLite will inevitably force you to reinvent what Postgres already had for many years, in a fragile and buggy way.

Could the same not also be said for MS SQL Server, Oracle, Sybase, MySQL, or MariaDB? The author offers no supporting evidence for this statement.

Rewrite that: "Bazillions of engineering hours have been spent to make XYZ the best backend database..."