HNHacker News
TopNewBestAskShowJobs

ericra

413 karma · joined December 14, 2020

Personal site: ericra.com Contact info: eric @ my domain
submissionscomments
ericra··on How web bloat impacts users with slow devices
This is trolling, right?

Lemme just give my grandma a list of instructions for doing this so she can get to Facebook. I'll let you know how it works out.

ericra··on How web bloat impacts users with slow devices
As someone with recent experience using a relatively slow Android phone, it can be absolutely brutal to load some web pages, even ones that only appear to be serving text and images (and a load of trackers/ads presumably). The network is never the bottleneck here.

This problem is compounded by several factors. One is that older/slower phones cannot always use fully-featured browsers such as Firefox for mobile. The app is takes too many resources on its own before even opening up a website. That means turning to a pared-down browser like Firefox Focus, which is ok except for not being able to have extensions. That means no ublock origin, which of course makes the web an even worse experience.

Another issue is that some sites will complain if you are not using a "standard" browser and the site will become unusable for that reason alone.

In these situations, companies frequently try to force an app down your throat instead. And who knows how much space that will take up on a space-limited device or how poorly it will run.

Many companies/sites used to have simplified versions to account for slower devices/connections, but in my experience these are becoming phased out and harder to find. I imagine it's much harder to serve ads and operate a full tracking network to/from every social media company without all the javascript bloat.

ericra··on Stop Eating Sugar (2020)
I can tell you from experience that most overweight people know a lot about nutrition and proper ways to eat. Lack of knowledge and education is not the primary issue. Many people who struggle with food issues do so because they are self-medicating for various levels of depression/anxiety/other psychological issues. It is quite difficult to break these bad eating habits without having a replacement for the temporary positive effects they create.

Articles like this are extremely annoying. Nearly every educated person knows everything this article says. It just comes across as condescending in a "I can do this, so anyone can" sort of way.

ericra··on More than 2M research papers have disappeared from the Internet
Think of how trivial it would be, from a storage perspective, to have a central repo of every (publicly-funded, at a minimum) research paper ever written if copyright issues were not present.

It could be run by an international non-profit or as a collaboration between governments. It wouldn't be particularly expensive to run when weighed against the huge long-term benefits.

It's really a failure of the U.S. and EU governments to not clamp down on the Elseviers of the world who bring very few benefits at a high cost to open science and society at large.

ericra··on Getting Help [in Python]
I agree with some of the things you argue, but I do think it is more a matter of how Python is typically used rather than the language itself. There are quite a lot of optimizations that can be done for speed and other metrics in both web and local applications, but people will migrate toward frameworks that instead focus on ease of management and maintenance (like Django).

I agree there is a lot of bloat in some cases. All I'm saying is that one has the option use Python in a more "responsible"/efficient way, and there are plenty of projects which do so.

ericra··on Getting Help [in Python]
I'm not sure it's a big mystery. It's pleasant to write and allows devs to get things done quickly. Many of your criticisms are strange..

For instance, I don't see how it's necessarily a memory hog. I wrote a (relatively simple) Windows/Linux GUI application in Python that I use regularly, and it uses around 20MB of RAM.

I'm not familiar with how many breaking changes have been made in Python 3, but I suspect there haven't been many major ones in the last 10 years (since 3.4). It would be interesting to see a list, though.

ericra··on Getting Help [in Python]
I think that help() is great too, but I'm not a fan of the interactive nature of it. I'd rather the raw text just get dumped to a file so I can browse it more easily, so I do something like this[1] to print the output of both the help() and dir() functions on any Python object to a text file in the current directory. That way it's a bit easier to search through if it's a lot of info.

[1] https://github.com/EricRa/python-scripts/blob/main/modules/p...

ericra··on Why jalapeño peppers are less spicy (2023)
I love jalapenos/chipotles but there are so many great pepper varieties out there, and I sometimes wonder why they are not mass produced as much.

For instance, I love hatch (Nex Mexico) chiles, but they seem quite difficult to get fresh outside of the region or at least during a very particular time of year. They are so much more flavorful than jalepenos imo, and have a similar amount of spice (not much). At least they are typically available canned, and they are still great.

ericra··on Why jalapeño peppers are less spicy (2023)
It's common when talking about peppers since there are so many varieties of the same species. I guess cultivar, variety, and breed are mostly synonymous except that cultivar (to me) implies that human intervention was involved in the selecting. Variety can be used to mean the same thing but naturally without human intervention. And breed seems to be a more colloquial term that encompasses both of these.

I'm not entirely sure this is always accurate, but that is the distinction afaik.

ericra··on Why jalapeño peppers are less spicy (2023)
As mentioned in another comment, you are correct that by far the highest concentration is in the pith/placenta (~90% typically). The seeds have a relatively low capsaicin concentration, but their surface gets spicy from being in direct contact with the pith.

But practically speaking, you're right. You can just cut away the outsides and get most of the flavor without much spice at all.

ericra··on Sora: Creating video from text
It's been said a thousand times, but the "open" in openai becomes more comical every day. I can't imagine how much money they will generate from such a tool, and I'm sure they will do everything possible to keep a tight lid on all the implementation details.

This product looks incredible...

ericra··on Uv: Python packaging in Rust
While I don't see the immediate need to switch from using pip, I am such a fan of ruff that I'm always happy to check out what you guys come out with.

Please keep doing what you're doing!

ericra··on Ask HN: Why is it so hard to download podcasts?
Despite there being many good solutions and suggestions from people here, I ended up creating my own podcast downloader as a learning experience:

https://github.com/EricRa/python-scripts/tree/main/modules/p...

Appreciate everyone's suggestions and time!

ericra··on Ask HN: Why is it so hard to download podcasts?
Thanks for all your suggestions! You and others have provided a lot of solutions in this thread, and I appreciate it.

I was looking at feedparser last night, and it definitely seems like the go-to for rolling my own as a learning exercise.

Cheers.

ericra··on Ask HN: Why is it so hard to download podcasts?
The title should really be "Ask HN: Why is it so hard to download podcasts from their websites". Oops.
ericra··on Ask HN: Why is it so hard to download podcasts?
Fantastic. I appreciate it very much!
ericra··on Ask HN: Why is it so hard to download podcasts?
For reference, I made this post after trying to download episodes from this site:

https://www.pushkin.fm/podcasts/hot-money/episode-1-murder-b...

I am given the option to either listen to the embedded podcast on the site (with no easy way to right-click/save as the actual mp3. Or I can get directed to one of the following:

Apple podcasts Spotify Stitcher (I don't think this even exists anymore?) IHeart RSS

So if I'm attempting to get the podcast using a browser, my options are to:

1) Click the RSS feed, search the feed for the episode, find the direct sound file link, and download it that way

2) View the page source and search the source for the link to the MP3 (this is possible here, but sometimes it is obscured depending on the site).

Just adding a simple "download" link among these which directly downloads the mp3 file without addition clicks would be great here imo.

ericra··on Ask HN: Why is it so hard to download podcasts?
This really addresses my question directly. Thank you. It makes a lot of sense.

I wonder if this ad insertion happens for downloading directly from RSS feeds as well. Typically, there is a link in the RSS feed directly to an .mp3 file, and I don't know if it would be possible to set the RSS link to a URL which would custom "build" a new mp3 for each download with dynamic ads injected. Is it just the case that some podcasts do not have "public" RSS feeds? I don't know if i've come across any...

ericra··on Ask HN: Why is it so hard to download podcasts?
I appreciate the suggestion. I can see the appeal of using a specific app for podcasts, but it is not my preference.

A lot of this question is really just motivated by trying to understand the reasoning for not having a simple download option on (many) podcast websites.

ericra··on Ask HN: Why is it so hard to download podcasts?
I tried to address this in my question. Of all the examples I can think of, the ads are embedded in the downloadable episode MP3. Is there additional advertisement revenue going to the podcast creators from the third-party sites?
ericra··on Ask HN: Why is it so hard to download podcasts?
This requires using a third-party app for no reason. Unless you meant viewing the episode list from the Spotify site, in which case I certainly can't find a download button anywhere (when not logged in).
ericra··on “Wherever you get your podcasts” is a radical statement
I have the same feeling as the author about podcasts, and i'm particularly interested in the podcast ad model. While i despise exposure to advertising, I find myself not minding podcast adverts quite as much. There is also a much greater chance that the podcaster will only accept ads that their audience would be plausibly interested in and that are not outright scams (contrasting greatly with big tech-controlled ads). On top of this, you can still simply just skip the ads if you want by fast-forwarding.

I think that the key to this model working is that the podcasters are not (necessarily) reliant on big tech. On twitch and youtube streams for instance, algorithmic ads are used mainly to reimburse amazon/google for their hosting services (+ a significant profit). Since a podcast is small in size and does not need to be streamed on-demand, hosting costs are negligible. It seems like this model could also be effective for websites, but it requires an actual human to find and vet advertisers. I'm not sure what the solution could be for sites like youtube where self-hosting content is a much higher barrier to most content creators.

ericra··on Stop KOSA (Kids Online Safety Act)
It's becoming so hard to constantly keep up the fight against a new bill like this year after year. I guess it is part of the point to try and wear people down over time until they eventually run out of the energy to care.

I had not previously heard about this one, but they all sort of run together. Some vague stuff about protecting children which would undoubtedly result in 1) not doing much at all to protect children and 2) actively making the internet worse for everyone.

The fact that this is a bipartisan-introduced bill is even worse news.

ericra··on 'Scalene' offers efficiency suggestions for Python coders
Nice. I was not aware of this project, and it seems quite useful. Appreciate you sharing.
ericra··on 'Scalene' offers efficiency suggestions for Python coders
I was able to get through, but it still took forever.
ericra··on The invention of a new pasta shape (2021)
The new pasta shape is pretty cool and all, but $45 for 6 1-lb. boxes of dry pasta is criminal!
ericra··on Religious 'Nones' are now the largest single group in the U.S.
Here is a link to the report that the article gets info from (but does not link to for some reason, unless I missed it):

https://www.pewresearch.org/religion/2024/01/24/religious-no...

ericra··on Test Yourself: Which Faces Were Made by A.I.?
https://archive.is/Fw5Y7

The archive.is capture does not allow scrolling through the faces, so made an imgur post with the images in sequence:

https://imgur.com/a/XXmUoNs

ericra··on Mark Zuckerberg’s new goal is creating artificial general intelligence
They really are attempting to dilute the term "open source" until it loses all meaning. You can already see it with nearly every LLM license that claims to be open source but is nothing close to how that term is commonly understood.

While it's true that Facebook creates some valuable "true" open source projects (like React), I anticipate seeing a lot more complicated (and restrictive) open source licensing from them and other big tech for upcoming projects.

ericra··on Fairytale Fables
Aside from being a player, I have no affiliation with this game. I just wanted to bring it to peoples' attention because it's fun, free, and has an interesting backstory.

(details below from memory, so don't consider this authoritative)

The game was released recently, and it's an auto-battler akin to Teamfight Tactics but with a fairytale theme. It is essentially a complete remake of the game Storybook Brawl which was created in part by Magic the Gathering veteran pros like Luis Scott-Vargas. Storybook Brawl was reported to be a favorite game of Sam Bankman-Fried, and FTX ended up purchasing the game from the original creators (in 2022, I believe). Right after this happened, the devs started to introduce some ideas about incorporating some kind of crypto nonsense into the game, and most of the community was turned off immediately. It was also already abundantly clear at this point what a fraud this guy was, and most of the community soured and turned away from the game. When FTX collapsed after the scandal, the servers were abruptly turned off, and the game was dead.

This "remake" is being developed by a single dev. There are still a lot of placeholder AI-generated type of assets, but they are doing a great job with balance and listening to the community. The community around the game is quite friendly and active on the game's Discord.

In any case, I know there is a large community of strategy-game players lurking here, so I wanted to bring this little-known game some attention. I've been having a lot of fun with it.

← PreviousPage 2 of 4Next →