skysight-inc/HackerNews huggingface dataset:
Guide to Adding Custom Attributes in Medusa.js
Hello everyone, I want to share with you a plugin that my team recently built.

In our journey to create custom stores using Medusa.js, we encountered a challenge with adding custom attributes to the products.

Medusa.js lacked a built-in custom attribute API, so we used the metadata field with key-value pairs to store our attributes. However, filtering these attributes proved to be a complex task, as they could be of various types, such as arrays, strings, or numbers.

To address these limitations, we developed a new plugin - medusa-custom-attributes.

Plugin features:

Diverse Attribute Types: The plugin supports multi, single, range and boolean attributes, enabling a wide range of attribute customizations.

Effortless Ranking: Easily rank attribute values via a drag-and-drop interface in the admin panel.

Efficient Product Filtering: Filter your products with ease by using these custom attributes.

Category-Based Attributes: You can get attributes specific to particular categories, ensuring attribute relevance.

Links:
Github repo: https://github.com/vholik/medusa-custom-attributes
NPM: https://www.npmjs.com/package/medusa-custom-attributes

Read more about the plugin on our website ↓
Part 1 - How to add attributes in admin panel: https://rigby.pl/en/blog/custom-attributes-in-medusa.js
Part 2 - How to handle attributes on storefront: https://rigbyjs.com/blog/medusa

Leave your opinions about the plugin. Maybe you have ideas for further development of the plugin?
> Here is what people have been saying about ctypes.sh:

"that's disgusting"

"this has got to stop"

"you've gone too far with this"

"is this a joke?"

"I never knew the c could stand for Cthulhu."
My brain immediately went to British Petrol
In switzerland, one has to take a course (with official binder but no longer homework) and pass practical and theoretical (written and oral) tests in order to call themselves a horseman. I used to say "in the Old Country, all you have to do is fall off 7 times", but the older I get the more I suspect an unreasonably effective way to filter for horsemen is to ask if they have a favourite wheelbarrow.

On that note, among my favourite anekdoty, "nasha" Natasha Ilyinichna is at a dance. (the following should be shaggy-dog extended when told, but I'll spare you all) First she dances with Andrei Nikolayevich, but when she notices a fleck on his shirt cuff he apologises profusely and begs pardon to leave so he can change. Then she dances with Pierre Kirillovich, but when she notices a crumb on his cheek he apologises profusely and begs pardon to leave so he can wash up. Then she starts dancing with a Hussar, Rzhevsky, but when she notices a large splotch of mud on his boot...

— Oh baby, don't you worry your pretty little head. That's not mud, it's shit, so when it dries up it'll fall off all by itself.
A 1/100th of a second is still an eternity for a modern computer. It's easy to forget just how insanely fast computers are when user-facing software still lags all the time. You really do need to go out of your way to make performance an issue here (or stack too many abstractions).
> For the author the answer is to never release them, which for the numbers of people involved is a horrifying idea

That's western medicine for you... lock them up, pump them full of drugs, and make sure they are a continuous drain of government resources. All to the benefit of pharma companies.

Most acute mental health patients aren't a lifetime problem, unless we make them that way. We barely know what 10 years of diet pills do to people, let alone the magical concoction of drugs we force on other patients.
Nice machine, was looking at something similar but never pulled the trigger because of (possible) long boot times. Any problems with that?
From a comment[1] on CNX:

The first batch of Radxa X4 are all sold out. And X4 is under FCC compliance and Aliexpress is not allowed to list the product without FCC ID if no stock.

[1]: https://www.cnx-software.com/2024/07/19/radxa-x4-low-cost-cr...
> If friends can't install another app to talk to you, maybe they don't really wanna keep in touch.

Interestingly, your assumption works the other way too : If you can't install another app (one you don't want), maybe you don't really wanna keep in touch.

I prefer to see it from the other side : I value my friend more than which app they want to use. I do encourage my friends to use Signal but I can't force them.

> When I moved to Telegram I told family and friends where I'd be and they all installed Telegram and actually liked it so they stayed.

Same. And now I realize that Telegram is just a little less shitty than WhatsApp and that it doesn't even do E2E by default and I have no more willpower to migrate everyone on Signal.

> It's been 3 years now and I haven't touched WhatsApp.

Looks like you weren't as pure as me 3 years ago since I never touched WhatsApp until 3 months ago. And you know why ? I've been integrated into a new group of friends which was on WhatsApp. The thing is, making your current friends migrate to another app is difficult. But you can't know where your future friends will be and you will not be able to make them use your app and making new friendships is hard enough in life that I'm not going to filter them by the app they use.

Oh and I have the magic power to be able to use the 3 apps on my phone ! And with Beeper, it's now a superpower.

Anyway, FWIW, I find this messaging apps situation totally pathetic. If it was me, we should all be using an open and decentralized messaging protocol where everybody can own its own data. But since I can't convince all my friends to reach me via e-mail or Matrix, I will suffer the shitty apps and will do my best to use Signal as much as possible (but Signal is shitty in my eyes too since it's centralized).
While I agree with your overall point, it's also worth asking where the desire for a new belonging comes from.

There may be more obvious stimuli like established hobbies, or peer pressure, but ultimately a lot of the desire for a new belonging is likely driven by marketing from the companies selling it.
I'm not saying its evil or anything, but on demand TV is IMO not a good thing for kids. It can be a real battle to get my daughter away from Bluey. Back in my day, we had to wait at least a day for the next episode, or often a week, or more! TV was actually "seasonal", which it no longer is.

I firmly believe that humans need seasons, i.e. periods of time that are different from each other, either summer, winter etc, or periods where a TV show is simply not accessible.

What almost always works to get away from TV, though, is if _I_ start a project, and within minutes my daughter will have picked up her own project, and we'll be companionably working on something.
> We’re great at pretending to understand, masters at nodding wisely.

People have even convinced themselves that when they pretend to understand and nod along like a master that they themselves have obtained mastery level understanding of the subject.
Isn't the local version just running ffmpeg as a command line?
I often think that a lot of people are depressed and/or in a burn out because they don't give themselves a moment to do nothing. A moment were the brain can get up to speed with all the bombardments of information.

In the past we had moments we were bored. Now, we always have a phone or other screen were we can indulge on dopamine.
echo 1*; echo 2*; ...

Break it into tenths (ninths, maybe, with no leading zeroes?), or finer granularity if necessary.

The argument list isn't nearly as constrained as it was a decade ago. "echo {00000001..10000000}" works in bash on most modern distros where shells on earlier systems would have choked on a tiny ARG_MAX.
Imagine the peformance we could reach. With enough SQLite layers anything would be possible.
We could stop normalising "on-call" instead.
> Self reflection will reduce stress and fear.

People will say things like this, and then miss how many people immediately become uncomfortable with sitting quietly lest they face the risk of self-reflection, and how many social tools for avoiding it we have.
9950X Cinebench Benchmark
Appreciate the info! Thank you
Dispatching is actually heavily used. Image/video codecs, cryptography, and ML libraries routinely use it, because the lowest common denominator is very low indeed.
I feel the destructive behaviour of bored kids is forgotten a bit.
Growing up in the late 70s early 80s we were kicked out of the house until dinner.
We did a lot of really dangerous things exploring.
Among these,

-Playing in storm drains. Inside the narrow tunnels I might add.

-Abandoned construction sites.

-Railway tracks. Putting things o the rails waiting for the train to see what happened. Everything from rocks to toys to coins.

-Dumpster diving in large dumpsters. There was a soap factory near us and wed dive for schampoo or hairgel.

-Jumping in the biohazard pond looking for frogs eggs.

-Throwing things off bridges.

-Climbing various constructions, houses and dubios trees.

-Competing in who could jump from the highest roof.

Kids not only could get hurt. We did. Legs were broken.
No one died fortunately.

Bored kids outside is not really as romantic as many would have it.
Not arguing against boredom, constant stimuli is not healthy.

That being said, unsupervised bored kids can lead to some very dangerous outcomes.
The ancient Greek word for "Slave" is δοῦλος, pronounced "doulos". I'm struggling to see how that comes from "Slav". The sources I've looked up say the derivation is uncertain, but noone mentions "Slav" as a possible origin[1]

[1] https://en.wiktionary.org/wiki/%CE%B4%CE%BF%E1%BF%A6%CE%BB%C... and https://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:1... for example
Respect in Buddhist Thought and Practice
An interesting post on the role of respect and skill building - in this case, the skill to end suffering. One paragraph near the end wraps it up somewhat:

----
Perhaps the most delicate skill with regard to respect is learning how to balance all three aspects of respect: for yourself, for the truth of causality, and for the insight of others. This balance is essential to any skill. If you want to become a potter, for example, you have to learn not only from your teacher, but also from your own actions and powers of observation, and from the clay itself. Then you have to weigh all of these factors together to achieve mastery on your own. If, in your pursuit of the Buddhist path, your self-respect outweighs your respect for the truth of causality or the insights of others, you’ll find it hard to take criticism or to laugh at your own foolishness. This will make it impossible for you to learn. If, on the other hand, your respect for your teachers outweighs your self-respect or your respect for the truth, you can open yourself to charlatans and close yourself to the truth that the canon says “is to be seen by the wise for themselves.”
----
This is actually what popped out of my head as I read the article. Did you observe other trade-offs with this approach?
Just pasting a % on your directories to list files is naive. At the very least you need to block/escape % characters in the path.
In case the author reads this:

I would suggest editing your Venn diagram a bit so that it makes more sense. Something like this

<circle class="property stylable" cx="190" cy="145" r="70"></circle>
<text class="stylable" x="150" y="140" fill="black">stylable</text>

<circle class="property cacheable" cx="310" cy="145" r="70"></circle>
<text class="cacheable" x="300" y="140" fill="black">cacheable</text>

<circle class="property dimensional" cx="250" cy="260" r="70"></circle>
<text class="dimensional" x="210" y="280" fill="black">dimensional</text>

This way, the region where your three circles overlap actually disappears, signifying that you can't indeed get all three at the same time.
His take on text interpolation is very right. I'm a SWE turned SRE because as a developer I really enjoyed using K8s. But as a full-time SRE where I work just means YAML juggling. It's mind numbing that everybody is okay with this, this really is our domain's assembly era, albeit with whitespace, colons, dashes and brackets.

I've found solace in CUE which I just run locally to catch all the small errors everybody makes on a daily basis. Putting the CUE validation in our pipeline is too confronting for others, yet they're constantly making up best practices adhoc during reviews which could've easily been codified with CUE (or some other serious config language).
Right. But if we interpret parent charitably they probably agree with you. The device itself isn’t evil, and the internet isn’t either. However, 7 second videos tailor made to hijack our reward systems could very well cause developmental issues simply by taking attention from one place and moving it elsewhere.

There are adults that can’t handle slot machines. Many more seem to be unable to handle social media. I’m very seriously recommending friends and family to limit it. With children it’s more hands-on, so as a parent it wouldn’t just be recommendations.
Unfortunately those SWAR optimizations are only useful for strings that are aligned on 8 bytes address.

If your SWAR algorithm is applied on a non-aligned string, it is often slower than the original algorithm.

And splitting the algorith in 3 parts (handling the beginning up to an aligned address, then the aligned part, and then the less-than-8-bytes tail) takes even more instructions.

Here is a similar case on a false claim of a faster utf8.IsValid in Go, with benchmarks: https://github.com/sugawarayuuta/charcoal/pull/1
Robby Fischer – an autonomous robot arm you can play chess against
Esker (Wikipedia)
Excerpt:

An esker, eskar, eschar, or os, sometimes called an asar, osar, or serpent kame,[1][2] is a long, winding ridge of stratified sand and gravel, examples of which occur in glaciated and formerly glaciated regions of Europe and North America. Eskers are frequently several kilometres long and, because of their uniform shape, look like railway embankments.[3]

Found eskers interesting. Didn't know about them before. Seen via:

https://news.ycombinator.com/item?id=41093732

and then:

https://en.m.wikipedia.org/wiki/Esker_Riada
Why rejecting invalid XML in the browser is a bad idea
Great to see gopher holes still online! Who needs ads?!
If you hit the edge of the highway at 130kmh you'll likely bounce back onto incoming traffic that's also going 130kmh.

Highways are less dangerous in general simply because of the way you drive on them because there are no crossroads or roundabouts or stop lights and the traffic is a lot more predictable.

But I'd not call other roads "dangerous".
one thing from this whole fiasco that i wished bring to conversation was the fact that (crucial/market-dominant) digital/IT services don't have the same level of liability as mundane, physical goods.

a simple plastic covering of your new dyson has more legal scrutiny and action (see the "children may choke" warnings they all need to come with) than software that we otherwise block in the name of "national security".

given how much overvalued tech companies are in this region, i believe it is high time to start legally recognizing the real-life impact of digital tech. to hell with the "but muh innovation" argument.
I quit my 10h/week tech job
The Four Theories of Truth as a Method for Critical Thinking
This is literally my childhood / teenage years, and I was born in the 90s.
Seems like everything changed when our dopamine systems were highjacked by handheld screens.
Started to see the first glimpses of this, everyone crowding around my IPod in shop class to watch a crazy Aphex Twin music video I put on it, or even watching a movie on the Ipod, hooked up to my car speakers with my gf sitting in the school parking lot
But that's exactly the point. The point is not because boredom is good per-se. The point is that our natural instinct to avoid boredom is what drives us to do stuff, to go places, to invent things, to dream.

The problem is not that eventually kids/people will find a way to not be bored. The problem is how easy and effortless it is to find entertainment these days.

The situation is similar to food. It's not that eating and enjoying food is bad, but the way modern society makes food available (and the quality of it) enables some quote suboptimal behaviours (to put it mildly)
That we need an expert to understand that (and other trivial things) is a failure of common sense
Better strategy: Make sure to have no meetings with a judge.

More seriously: I do the opposite, makes sure people don't deviate (due to hunger) and doesn't split my morning in two discontinuous blocks.
Some packages are no longer installable after test command is removed
Most of the things you describe are part of a good childhood and learning boundaries and limits, and testing yourself, and growing harder, and having fun.

Sorry, but we had been living like that for ages before helicopter parents became the norm. Kids didn't die in the streets by the truckload, or jump off of roofs to their doom any any number to statistically matter, as this alarmist comment implies.
A push over a websocket is still fundamentally a polling behaviour; it’s just happening further down the stack, below the awareness of application code on the client and implemented internally on the server. This does save you an explicit round-trip in your own code though.

Ultimately the only element that isn’t polling in a classical machine architecture is the interrupt handler in the top half of the kernel (or system equivalent).
gaming consoles were pro-social when you had split screens, a thing of the past
Speed limit is 90kmh on most European roads.

But that's not the important factor. On the motorway you just turn on cruise control, set it to 120/130kmh, and the car essentially drives itself. There are no crossings, curves are gentle, and everyone is driving more or less at the same speed.

On the roads you do have to watch out for a lot of things, there might be traffic lights, roundabouts, zebra crossings, the speed limit constantly changes from when you cross a town or crossroads, slow vehicles like tractors or even cyclists... So you have to pay constant attention for longer, it is tiring and a tired driver means the chances for an accident are higher.
> The market has repeatedly and thoroughly rejected dispatching to different code paths based on CPU

What do you mean? At least numpy and pytorch (the only numeric libraries I'm familiar with) both use runtime dispatching.
Surely not with GPUs? Could you direct me to them please?
Unfortunately because of the way the SD card - computer interface works, storing everything twice on the same card doesn't actually get you much more reliability.

The card is unaware of which bits of data are duplicates, and therefore can easily end up storing both copies of some data on areas of the physical flash that are weak - and this is even more likely considering they will probably be written around the same timestamp.
Good observations.
There are many possible mechanisms for resistance, and with this involving bacteria I expect pretty much all are sooner or later used.
Some ways are more specific to the substance, such as changing the target to fit worse or be less sensitive to the effect. Some can be quite general, such as actively pumping the molecules out of the cell.

In these cases there won't probably won't be that much wiggle room for altering the targets. Ribosomes and DNA-associated enzymes tend to be very very busy doing critical work against a lot of substrates and products, and are already heavily optimized for their normal tasks. I'd say it's no coincidence these mechanisms were chosen for a novel antibiotic attempting to mitigate resistance development.

Degrading the antibiotic, throwing it out, etc are still viable options, but it's still very nice to see someone finally trying to do this more right, even if basing it on elements of existing classes adds some risk that there are strong initialization states for resistance development out there.
This post has a sensationalized title. The real title is "Serious Mental Illness is an Optimization Problem"
Boredom can be filled with... books! I think that going for a "personal computing device" first is in general a bad idea and I'm really glad for the first ~14 years of my life I also didn't have any because I'm not sure I would have had the self control to avoid just getting suckered in, and I feel lucky I developed a reading habit instead.
only HTTPS

(last time I checked was last year though)
Typewise (YC S22) Is Hiring a DevOps Engineer (Europe Timezone)
There's always therapy
What's so special about it? Golden rule - make granular components/updates, just it.
>I'm just old enough to have spent the first ~14 years of my life without any personal computing devices, and I remember the boredom being agonizing.

If you lived in a farm 200 miles from any kid in rural Nebraska maybe. And even there there would be tons of adventures to have on one's own.
I went the rabbit hole of exploring SVG "decimal precision-related" glitches in browser implementations and to my grief I must confirm that there really are blatant cross-browser issues. It's fact that my tests went a bit over-the-top with dimensions -- who would make 1e9 or 1e-9 wide viewBox in real world anyway? -- but since refraining from doing so is not discouraged in the specs, one would expect it would scale (pun intended) at least few orders of magnitude. The results for my particular testcase showed that "safe" range was only between 2e3 and 2e5: [1].

https://myfonj.github.io/tst/SVG-decimal-precision-results.h...
Ehem - sounds like a normal childhood?

Compare that to the sheltered, all-wishes-granted and no minute spent w/o distractions like social media, kids. Started with Gen Z who get all angsty, with panic attacks, when they have to start performing, i.e., during final exams and the like. And never learned to deal with emotions and free-floating thoughts, handling themself, keeping calm.

(all observed from multiple coworkers being parents, some had to bring their offspring to psychiatric therapy - of course, driven, as taking public transport on their own would be too much!)

Due to our normal childhood, we could handle situations later in life where today's offspring inevitably fails.
The Lost Art of Roasting Eggs in Ash
having been through this stuff recently, i find that "speculative application" is a wasted opportunity for all this "AI" bs.

if both sides are going to blindly spam with llm, why not only send one application and let the likes of workday match the profile with internal personnel requirements?

being without a job during my search and getting little to no replies to hundreds of applications, often tens in the same company, drained the life out of me and i wish this to nobody.

it seems like this will have a similar fate as filing for taxes in the states. the job platforms benefit from the on-paper engagement this situation produces.
Let's release Rust-based fish
Servers doing polling internally and sending you periodic status updates over WebSocket is relatively common. I don't think polling over WebSocket is a good idea in this situation though (as in sending periodic requests to the server asking for a reply).
Yes, exactly. One exception can be Infiniband, since it can put the received data to RAM directly, without CPU intervention.
But would the US go after a country that wanted to trade in another currency? I don’t see that happening tbh.
That's hilarious considering that it was a frequent CrowdStrike update that resulted in this chaos.
To be fair, Italy is about 7 times the size of Switzerland. Italy has the Alps too, although that doesn't explain the ridiculous prices of using the motorway in the Po valley... the only place that I know of which is more expensive is Portugal, which doesn't even have that many motorways, but for the average salary driving there is a luxury.