MurphyA/hacker-news huggingface dataset:
by dredmorbius | 2025-04-18 06:53:11+00:00
There's an e-ink optimised Android app, Einkbro, which I've been using for several years now. It's mentioned in TFA, for what it's worth.

One of Einkbro's highly underappreciated features is "save page as ePub". This provides the "web as ebook" experience you're looking for.

But it gets better: You can save multiple pages to a single ePub, where the additional pages are appended to the end of the document. This provides a book (or multiple books) which can follow a theme: a set of pages on a topic, a time-oriented collection of pages, etc.

The UI/UX isn't as seamless as reading online, but the end result is really good.

Note that an ePub document is a compressed archive of HTML documents. You can pull apart the ePub to edit it: re-order contents, re-title them, edit the underlying documents themselves, etc., using shell tools. On an Android device itself directly if you've installed Termux. A bluetooth keyboard helps immensely here.

I've been raving about this feature for years now, see: <https://toot.cat/@dredmorbius/107958709435468728>.
by qwertox | 2025-04-18 06:54:12+00:00
> To help with quality and improve our products, human reviewers may read, annotate, and process your API input and output. Google takes steps to protect your privacy as part of this process. This includes disconnecting this data from your Google Account, API key, and Cloud project before reviewers see or annotate it. Do not submit sensitive, confidential, or personal information to the Unpaid Services.
by xnx | 2025-04-18 06:54:28+00:00
Computers were fun when single core performance was following Moore's Law.

"Single-core performance was improving by 52% per year in 1986–2003 and 23% per year in 2003–2011, but slowed to just seven percent per year in 2011–2018."

When you got a new system, everything was noticeably faster.

Nothing has been as impressively faster since the SSD.

https://en.m.wikipedia.org/wiki/Moore%27s_law

The current AI wave definitely captures that same feeling of progress (look at where video generation was 2 years ago), but is also mildly terrifying in a societal way.
by larusso | 2025-04-18 06:55:45+00:00
Let’s talk about Christmas then. They deliberately put it at a time where many northern folks had their own traditional end of the year / longest night (opposite to midd summer) festivals. In Germany we have Nikolaus on the 6.12 (goes back to a priest St Nikolaus who did good to people and I believe died on the 6th of December)

But the name is striking to Santa Claus which is just a Anglo version of that name. Interesting is also that half of Germany the Christ baby brings the presents or the Weihnachtsmann. The Weihnachtsmann is what we would refer as Santa. But Santa and Nikolaus are depicted the same. There some other festivals like Jule from Scandinavia etc. But compared to Christmas we at least know that the end of Jesus (or whoever it was) happened at that time due to too many religions and groups in the city. When he was born and how old he even was…

Edit: Also the fact that the holiday follows the moon calendar because it was the Sunday after the Paschal full moon. Which is celebrated by the Jewish as Passover.
by aitchnyu | 2025-04-18 06:56:13+00:00
I was also shopping around second class Pycharm (from Jetbrains) extensions till I found Aider+Openrouter (Gemini 2.0 Flash costs at least 4x cheaper than Sonnet 3.7). I keep a terminal in sight to see what its doing, and leave comments `//do this ai` and tell it to act. All other AI assisted workflows feel clunkly now.

https://aider.chat/docs/usage/watch.html
by timewizard | 2025-04-18 06:56:18+00:00
> 2 straight generations of porn addicts

Different types of pornography have different dangers and all of it has been broadly available since before the internet.

> And then you have shit like watchpeopledie.tv.

I think there's a broad gulf between these activities and I don't think they impact the brain in the same way as pornography. This type of violence can be found in movies and video games which also clearly predate the internet.

> Children should have been banned from the internet a decade ago

I'd rather pornography be banned.

> I'm completely willing to give up some privacy to make it happen.

Why? It should be incumbent on the people profiting from this activity to police it not on me to give up constitutional rights to protect their margins.
by casey2 | 2025-04-18 06:56:32+00:00
Geoguesser was already a solved problem. I guarantee you ChatGPT is much worse than current systems designed to play Geoguesser (NMPZ).

Chatbots appear to have some amount of fluid intellgence so they can do impressive tasks with this information, the impressiveness of these tasks will likely increase in the future. But for simply getting a good score on Geoguesser it's not even close to hobby projects let alone state of the art.
by ThePowerOfFuet | 2025-04-18 06:56:50+00:00
> If I have to pre-rinse dishes for the dishwasher, I might as well just rinse it fully then and there.

That's the point: you _don't_ have to. Scrape off the majority of the food, use the right amount of soap (and add some on the inside of the door for the prewash), and you'll be surprised at the results.
by Braxton1980 | 2025-04-18 06:56:52+00:00
I wasn't accusing you or the moderators of Hackernews of anything. Downvoting is a function for users (after certain initial conditions are met). Flagging is also a user function.

There's a recent post [2] where a reply to me in a political argument, I don't remember the specific words [1], was some generalization or BS to support Trump. I continued the discussion but later the comment was flagged.

I was fine with arguing the points. There were also many more comments with similar content that weren't flagged.

I was previously a user for years and a reader for more than 15. I even directly conversed with you when I wanted to deleted my account, you asked if I was sure [3] so I'm familiar with the gist of the rules. I've also seen comments from you similar to.

[Para]"This isn't directly related to tech but it's of great interest so it's allowed"

[1] I thought this was possible in the past but I can't seem to do it now, however if I'm just not seeing the option then that's my fault. [2] link upon request [3] I'm not implying any relationship or that I'm some special "old soul"
by pests | 2025-04-18 06:56:55+00:00
I witnessed the Better Off Ted water fountain skit play out in real life once, it was incredible awkward. I was helping my buddy and his black friend and his wife set up accounts on online casinos in Michigan for the promos/refer-a-friend rewards. Some of the sites require the live video facial verification and we were doing it in a darkly lit space at night. It worked instantly and without issue for my friend and me but oh man, many many attempts later and many additional lights needed to get it to work for his friends.
by rthnbgrredf | 2025-04-18 06:57:39+00:00
> Because it's actually fairly slow.

"We were reading data at 635 GiB/s. We broke 15 million 4k random read IOPS."

Source: https://ceph.io/en/news/blog/2024/ceph-a-journey-to-1tibps/

I don't know man, I think 15M random read IOPS is actually quite fast. I've built multi million IOPS clusters in enterprise settings all on nvme in the past.
by autoexec | 2025-04-18 06:58:55+00:00
I'm a chocolate fan myself and it was something I used to buy often, but just as I started getting into the hard stuff (80% or higher) I learned about all the problems with heavy metals in dark chocolate and specifically in Lindt, and then later learned about the use of child slaves which is an industry wide issue and not exclusive to Lindt/Russell Stover/Ghirardelli/Lindor although Lindt and Hershey are reportedly worse than other brands.

You can find brands that claim to be more ethical in terms of sourcing their cocoa, but the smaller brands that do are also less likely to have been tested for heavy metals.

While it's unclear how harmful the heavy metals would be to me specifically at the amounts I was eating, the whole thing kind of put me off chocolate in general and dark chocolate in particular. I rarely have it anymore.
by closewith | 2025-04-18 07:00:55+00:00
It's certainly not the same revulsion. In the world of men who have not lived their entire lives isolated from danger and conflict in a rules-based society, the Hollywood version of war isn't a consideration. It's no different to Marvel or Harry Potter movies.

It's an open secret many people who experience raw conflict in which actions and not regulations decide outcomes like it. It's the reason why they often go back and it's an age old story.

The GP most likely has led a comfortable life safely ensconced in the bubble of order provided by society and when they are a glimse of the reality of the world, they assume that everyone feels like them that it's a horror to be avoided. It's incomprehensible to them that some see that video and I think I could have done better. Some will have seen that video or others like it and set off for Ukraine to see if they can.

The videos that horrify this cohort are the combat videos where the soldier has no influence over their fate: drones, mines, and artillery.
by huimang | 2025-04-18 07:01:13+00:00
Using absolute chord analysis instead of relative chords (i.e. roman numeral analysis) doesn't make sense. As others have noted, the original dataset is flawed because the structure of a song is critical, you cannot omit repeating chords. Programmers/analysts should take more care to understand music theory or the underlying field at hand, before compiling datasets or doing analysis.

"Most common chord" is mildly interesting, but not really that useful. The most common key, and the most commonly used chords relative to that key (i.e. with roman numeral analysis) would be much more useful and interesting. This would help paint a clearer distinction between e.g. country and jazz, not that "jazz uses Bb major more". Also, anyone with general instrument knowledge would surmise that since Bb and Eb instruments are much more prevalent.

"If you’re sitting down to write a song, throw a 7th chord in. The ghost of a jazz great will smile on you."

7ths don't belong to jazz only, and the average songwriter isn't making data-driven decisions on how to settle on the chord structure for their song.
by bubblyworld | 2025-04-18 07:01:44+00:00
That's not a decision problem either. You need to cast it in the form of determining membership in some set of strings (the "language"). In this case the natural choice of language is the set of all strings of the form "{encoding of n}{1111....1 n times}", which is decidable in O(log(n)+n) steps, i.e. linear time.
by nikitoci | 2025-04-18 07:02:41+00:00
It’s dangerous, since hyperventilating removes co2 from your blood, and raised co2 level is primary trigger for the urge to breathe reflex. It may feel better to hyperventilate and dive longer but you’re risking suddenly blacking out. I’m a free diver and this is one of the first things you are trained not to do, as well as never to dive alone, for safety reasons.
by knome | 2025-04-18 07:03:36+00:00
The Catholic Church. The fourth century.

https://www.history.com/articles/history-of-christmas

>In the fourth century, church officials decided to institute the birth of Jesus as a holiday. Unfortunately, the Bible does not mention date for his birth (a fact Puritans later pointed out in order to deny the legitimacy of the celebration).

>Although some evidence suggests that Jesus' birth may have occurred in the spring (why would shepherds be herding in the middle of winter?), Pope Julius I chose December 25. It is commonly believed that the church chose this date in an effort to adopt and absorb the traditions of the pagan Saturnalia festival
by toast0 | 2025-04-18 07:04:52+00:00
Oh I see. If you need to isolate your native code from your BEAM, then you've got several options.

a) run the native code as a separate process; either a port program, a c-node, or just a regular program that you interact with via some interprocess communication (sockets, pipes, signals, a shared filesystem, shared memory segments if you're brave)

b) some sort of sandybox thing; like compile to wasm and then jit back to (hopefully) safe native.

c) just run the native code, it's probably fine, hopefully. My experience with NIFs is that they are usually very short code that should be easy to review, so this isn't as bad as it sounds...

If your native code is short, option c is probably fine; if your native code is long, option a makes more sense. If you want to make things harder without real justification, b sounds good :P
by BlueTemplar | 2025-04-18 07:05:33+00:00
Ah, but would you also include NH, Stack Overflow, LinkedIn, GitHub, Quora... too ?

(Speaking of, this was important, but I still spent too much time on it on HN... EDIT : heh, as immediately proved by the "posting too fast" rate limiter...)

P.S.: Platforms are also a very related but not identical evil.
by mkj | 2025-04-18 07:06:14+00:00
The Linux kernel integer hash uses something similar, so not totally forgotten.

\* These are the negative, (1 - phi) = phi\*2 = (3 - sqrt(5))/2, \* which is very slightly easier to multiply by and makes no \* difference to the hash distribution.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
Show HN: I built an AI-powered packaged food ingredients list vegetarian scanner
by gashmod-rey | 2025-04-18 07:06:25+00:00
Hey HN.

I have been a vegetarian for the past ten years. At the grocery store, I often find myself manually scanning the ingredient lists on packaged foods, relying on my own knowledge and eyesight to identify non-vegetarian or unfamiliar ingredients that might affect my diet.

That's why I built Veri.fy, a go-to vegetarian food scanner powered by Google Vision API and Gemini AI. It helps scan ingredient lists on packaged foods and classifies each ingredient as vegetarian or not.

Have a quick look and let me know your thoughts.

Reynard
by user777777 | 2025-04-18 07:07:51+00:00
This is spot on. To add, it won’t even matter the outcome of upending our entire society and economy this way (tariffs) if the wealth distribution remains unequal. Nor will these types of jobs equalize wealth distribution (which is never mentioned because that probably sounds like communism) Look at the poor factory workers in china! You want to bring that here? Insanity.
What Shopify got wrong- and how we are unbundling it
by ovief72 | 2025-04-18 07:08:00+00:00
I’ve been obsessed with how traditional businesses in Africa and beyond are still stuck on Instagram, WhatsApp, and walk-ins — not because they don’t want to grow, but because today’s platforms don’t speak their language. Platforms like Shopify, Wix, and Bubble are too horizontal. They require too much thinking, design, configuration. The next wave? Hyper-vertical platforms that "think" for the user.

Imagine:

A platform just for spare part dealers — with inventory categories built-in.

A platform just for mobile barbers — with preloaded service menus and booking calendars.

A platform just for tailors — with customer measurement tracking and fitting reminders.

That’s what we’re building: the unbundling of Shopify, into verticalized, plug-and-play platforms for real businesses around the world.

We’re starting in Africa — where this leap can have a generational impact.

I'd love feedback on:

Best vertical to start with

How to balance UX simplicity with extensibility

Building a scalable engine for multiple verticals

AMA — and brutally honest feedback welcome.
by greatgib | 2025-04-18 07:08:06+00:00
I don't use the Kagi assistant yet, just the kind of AI response in search results. But regarding perplexity, I'm a little bit disappointed.

I started to use Perplexity like 1 or 1.5 years ago when it was really good in term of efficiency to find good results with an efficient interface, compared to chatgpt and co. But nowadays I find the assistant response to be not that good at all, with a lot of the links provided or the suggested follow up questions on the same quality as Google SEO top results or ads.

Despite having the paid plan or Perplexity, most of the time I try a request there and then still go to chatgpt or mistral to ask the question again.

For Kagi, when I use the in search ai response, it is mostly good directly.
by gloosx | 2025-04-18 07:09:04+00:00
1. Computers cannot self-rewire like neurons, which means human can pretty much adapt for doing any specific mental task (an "unknown", new task) without explicit retraining, which current computers need to learn something new

2. Computers can't do continuous and unsupervised learning, which means computers require structured input, labeled data, and predefined objectives to learn anything. Humans learn passively all the time just by existing in the environment
by maronato | 2025-04-18 07:10:02+00:00
It’s the exact opposite. They are incurring a huge amount of risk with this.

6 hours ago most users didn’t have access to this feature at all. Now we have $4-8 of raw token credits a month to use on a well-built feature.

I’m paying $9 a month with the annual subscription, and it was worth it just for Search. Now they’re giving me $17 worth of value for the same price.

Their margins must be razor thin, and they’re only able to offer this much value because they’re counting on most people not using all credits. If everyone did, or if they gave rebates, they’d go out of business.
by mufasachan | 2025-04-18 07:10:38+00:00
I appreciate the motivation of the author but the examples of this blog do not convince me at all. For every situation, there would be an alternative (with init or not) that addresses the design issues. The first example is solved with namedtuple[1] which is not a recent feature. Then the rest of article is about IO. Although, the special methods for the context managment interface and the std lib for context managment (which do a great job at async btw) are not mentioned.

__init__ in Python already has a lot of alternatives. IMO a situation encountered similar to the example is when you do not take advantages of the alternatives or your code design is bad.

Also, specifically for this case, if I need an object for this IO operation, I __would not__ uses dataclass. The first solution would be to create a context manager[2] and a NamedTuple (or dataclass if needs some mutations). If it's not a fit, the classmethod and the dunders __enter__, __exit __ are good if this fd implementation is important for the design of my object. Alternatively, I would just make a builder function outside my object if the implementation of the fd capability should be considered as extra and not a builtin for the object. The dataclass decorator could be added to save 1 line of code but would confuse the intent of the object which is a content manager with some state management.

A side geniune question, why not a type[3] statement to alias the int as a fd? What is the difference with using NewType[3]? In which situation creating a NewType from a base type - here int - is useful?

[1]: https://docs.python.org/3/library/collections.html#collectio... [2]: https://docs.python.org/3/library/contextlib.html#contextlib... [3]: https://docs.python.org/3/reference/simple_stmts.html#type [4]: https://docs.python.org/3/library/typing.html#typing.NewType
by mlindner | 2025-04-18 07:11:15+00:00
> Perhaps currently. How long do you think we should wait until we can start doing that? At the current pace probably a year or two?

I think you should stop letting the propaganda get to you and take a step back and look at things from a rational perspective. I'd bet over 50% of the things that you think happened in this administration did not in fact happen.
by xattt | 2025-04-18 07:11:53+00:00
Many moons ago, I went to the Space Deck level on the CN tower, carrying an analog Hi8 Sony Handycam.

The amount of RF is (understandably) so intense at that level that it was able to induce visual static in the LCD viewfinder. The static came and went, depending on where you were standing, but did not record to tape.
by loehnsberg | 2025-04-18 07:14:36+00:00
I use both but cancelled my Perplexity subscription.

Kagi is the better version of Google search, especially if you learn how to use lenses, bangs, and all these features. Kagi Assistant is great if you‘re happy with basic no-frills chat, i.e. no usable voice input, no image gen, no canvas.

Perplexity is not bad, but somewhat stuck in the middle between ChatGPT/Gemini and search. They provide sources for search results which are somewhat more spot-on than what I‘ve seen elsewhere. For example it could find EV chargers with restaurants for a trip I made along a route, which ChatGPT, Gemini, Kagi Assist failed greatly).

I found refining searches with Perplexity terse and it kept forgetting context once you started to reply. They have an AI generated news feed which lured me into more doom scrolling.

Also, be aware that Perplexity free-tier may collect data about you, which Kagi does not.

Tldr; Kagi is a superior search engine worth paying for. Perplexity seems good at queries that require context but quite expensive.
by xlii | 2025-04-18 07:15:15+00:00
I’ve recently moved to the Neovim but even though I learned Lua enough to use it I never found it ergonomic.

Recently had some time to spare and moved to Fennel. It has some sharp edges but in the end I find it much easier to maintain. In fact, I think it’s good enough to replace any kind of Lua for me.
by larusso | 2025-04-18 07:15:37+00:00
Well the Bible was written some 300 years after all of this happened. Jesus didn’t own a birth certificate nor was it ever officially written down. As to who decides when what happened and wrote it down I don‘t know.

We have historical figures where we don‘t know exactly when their born. But we don‘t just write a data down.

Here is a link going in more detail and actually contradicts what I wrote. But points about the Santa Claus etc still stand. And I see no real hard evidence to the contrary either.

https://www.catholic.com/magazine/online-edition/why-decembe...
Ask HS: Looking for Korean-language resources on RFIM or temporal graph modeling
by sks38317 | 2025-04-18 07:16:08+00:00
Looking for Korean-language resources on RFIM or temporal graph modeling

I’ve recently started looking into system modeling and came across concepts like the Random Field Ising Model (RFIM) and temporal graph structures. I’m still new to this area, and while I’ve been going through English materials, I was wondering:

Are there any Korean-language resources, guides, or explanations on these topics? Even blog posts or translated papers would be helpful.
by globular-toast | 2025-04-18 07:16:21+00:00
Kettle fillers are bizarre but I think there's slightly more to it. Some people think they are being rude if they only prepare enough food for themselves. I think kettle fillers may believe they are doing a service for others when they fill. But that's really stretching the benefit of the doubt here. They may just be thick.

I can actually top this, though. In my student days I had a guy from a hot country move in. Apparently the water from the tap was too cold so he would warm it in the kettle. The trouble is the kettle is too hot... So I watched in utter disbelief as he boiled the kettle, poured boiling water into a pint glass, then carried said glass to the fridge to cool it back down to drinking temperature!

Later I came back and he'd forgotten about the water so it was now colder than tap water in the fridge.