Spyke

Posts

How can I do blog to epub on Manjaro Linux or Firefox?

I’m trying to convert a blog into an EPUB and keep running into issues with existing tools.

I first tried blog2epub, but it fails during parsing with:

lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: meta line 10 and head, line 17, column 8

I then tried WebToEpub on Firefox, providing:

  • Content selector: .article-content
  • Chapter title selector: .title

It generated an EPUB, but the file wouldn’t open in any reader.

What I’m looking for is a tool where I can point to a blog’s base URL, define CSS selectors for the article title and body, and have it automatically fetch all entries and create one chapter per post. Or something similar.

Does anyone know of a reliable tool, script, or workflow that does this well on Linux?

View original on programming.dev

Do you actually read documentation, or just search it when you’re stuck?

I’ve been switching from Vim to Helix recently. I did the built-in tutor, and whenever I need to configure something, I look it up in the docs. The problem is, I only find what I already know to look for. Without reading the documentation more broadly, I don’t really know what I can configure in the first place.

So I’m curious, do you sit down and read documentation to understand a tool, or do you just search it when you hit a specific problem?

View original on programming.dev

How to get a list of all subscribed communities for a Lemmy user using Pythorhead?

Hi everyone,

I’m trying to write a Python script to fetch all the communities a specific Lemmy user is subscribed to, with one community per line.

I’ve seen examples using raw requests (like this post), but I’d like to do it using Pythorhead instead.

Has anyone done this before or can provide a simple example of how to list a user’s subscriptions using Pythorhead?

Similarly, I'd also like to get the list of communities that the user has blocked.

Thanks!

View original on programming.dev

Seeking recommendations for federated Q&A forums on Linux and software issues

I'm looking for federated Q&A forums specifically focused on Linux and software-related issues. I'm not referring to platforms like NodeBB, Discourse, Lemmy, Kbin, PieFed, etc. I'm asking for specific instances that focus on Q&A about Linux and other software related issues. I know of some popular non-federated platforms like Stack Exchange, AskUbuntu, Arch Linux Forum, etc. But I'm particularly interested in federated sites.

If you have any recommendations for such forums, please share them! Thank you!

View original on programming.dev

Are the UK and China Authoritarian?

I've often heard that China is authoritarian, particularly due to events like the suppression of student protests in Hong Kong. However, I'm curious about more recent examples. Conversely, I've been hearing about the UK's Online Safety Act being used to target Wikipedia editors and silence protests, which raises questions about authoritarian tendencies there as well. What specific examples do you have that demonstrate whether these countries are authoritarian or not?

View original on programming.dev
nostupidquestions·No Stupid QuestionsbyCoderSupreme

Are there any free services that actually let you use an LLM’s full large context window?

For example, I know that sites like duck.ai let you use LLMs for free, but they limit input to 16,000 characters, so you can't actually leverage models like Llama 4 Scout, which supposedly has a 10 million token context window. Are there any platforms or tools (preferably without a paywall or input cap) where I could use models with context windows in the millions, as advertised? Or are all the free tools similarly restricted by much smaller limits?

https://eqbench.com/creative_writing.html

View original on programming.dev

If you had an AI that could instantly create any media, what would you make?

Imagine having access to an AI system like the "What-If Machine" from Futurama that could instantly generate any type of media content. What would you create with such power at your fingertips?

Personally, I'd be tempted to remake the Star Wars sequel trilogy. With AI, we could explore some of the unused ideas from George Lucas' original vision, like Darth Maul returning as a crime lord or Luke rebuilding the Jedi Order.

What about you? Would you recreate existing franchises, generate entirely new content, or use it for more practical applications? Share your ideas below!

Some potential uses to consider:

  • Reimagining your favorite books as TV series or movies
  • Creating personalized music in any genre
  • Generating realistic virtual worlds for gaming or VR experiences
  • Producing educational content on complex topics
View original on programming.dev

The Sun, Resurrection, and Religion: A Shared Story Across Cultures

Have you ever wondered why so many religions share themes of death, resurrection, and renewal? One fascinating connection lies in the Sun and its behavior during the winter solstice.

Around December 21, the Sun reaches its lowest point in the sky (in the Northern Hemisphere) and appears to "stand still" for three days. Then, on December 25, it begins to rise higher again, marking its "rebirth." Ancient cultures noticed this phenomenon and interpreted it as the death and resurrection of the Sun—a powerful symbol of hope and renewal.

This solar cycle influenced many religious traditions. For example:

  • Pagan Religions: Sun worship was central to many pre-Christian belief systems. Festivals like Saturnalia celebrated the return of light after the darkest days of winter.
  • Mithraism: Followers of Mithras, a god associated with the Sun, celebrated his birth on December 25, symbolizing light's triumph over darkness.
  • Christianity: Early Christians adopted similar themes. Jesus' resurrection after three days mirrors this solar pattern. He is even referred to as the "Sun of Righteousness" (Malachi 4:2) and "the light of the world." Coincidence? Maybe not.

The symbolic "three days" is also worth noting. Across cultures, three days often represent transformation or renewal—whether it's Jesus in the tomb or the Sun's pause before its upward journey.

It’s fascinating (and a bit ironic) how much modern religions owe to ancient astronomical observations. The Sun’s predictable cycles became a powerful metaphor for life, death, and rebirth—one that still resonates today, even if its origins are rooted in natural phenomena rather than divine intervention.

What do you think? Are these parallels just coincidence, or do they reveal how human beings have always looked to the cosmos for meaning? Let’s discuss!

View original on programming.dev

How will the Dead Internet Theory affect society, and what does it mean for the future of social media?

Hey, I've been pondering the Dead Internet Theory (DIT) lately and how it might impact society. For those unfamiliar, the DIT suggests that the internet has been mostly abandoned and that the content we see today is generated by AI and curated by large corporations. While this theory might sound far-fetched, I've noticed a significant portion of the content in my feeds appears to be AI-generated, making it difficult to distinguish between human-generated and AI-generated content.

As someone who was initially excited about the prospect of having an AI assistant, I'm now concerned about the potential for AI to be used to brainwash people and extract money from them. I can't help but wonder if most people will even notice or care, as they continue to use social media and other online platforms, oblivious to the fact that they're being gaslighted into believing what the companies that own the AI want them to believe.

With this in mind, I'd love to hear your thoughts on the DIT and how it might affect society. Do you think it's a real possibility, or is it just a conspiracy theory? How do you think it will impact the way we use the internet, and what can we do to protect ourselves from the potential negative effects of AI-generated content?

Thanks in advance for sharing your thoughts on this topic!

View original on programming.dev