7

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?

[-] CoderSupreme@programming.dev 10 points 4 months ago

If you are going to use a modal editor like vim you should probably learn touch typing with the US layout.

28
57

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?

19

I’d like to be able to navigate text in a pager with Vim-style modal editing (moving with hjkl and yank/paste with y/p). Is there a way to enable this in the default pager, or is there an alternative pager that supports this kind of modal behavior?

34

I want to improve my touch typing skills on Linux. I’m curious:

  1. What tool or program would you recommend for learning touch typing on Linux?
  2. For someone whose native language isn’t English, would you recommend learning on their native keyboard layout or switching to the US QWERTY layout for programming purposes?
13

I'm looking for a way to generate a single Markdown (.md) file that includes all the file names, function definitions, and docstrings from my Python files. Ideally, this should traverse a directory recursively while respecting the .gitignore rules.

Does anyone know of a package that accomplishes this?

9

Does the NewPipe YouTube client expose RSS feeds for my subscribed feed, individual channels or playlists? If so, where can I find the RSS URLs (or how do I generate it) for a given YouTube channel or playlist?

7
submitted 4 months ago* (last edited 4 months ago) by CoderSupreme@programming.dev to c/python@programming.dev

I have a list of communities, each with total votes, upvote percentage, and the community name. I want to sort the list by 'engagement,' which would be some combination of total votes and upvote percentage. What is the best way to do this? What would be the best measure of 'engagement' with each community given this data?

11
submitted 4 months ago* (last edited 4 months ago) by CoderSupreme@programming.dev to c/python@programming.dev

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!

3

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!

2
submitted 5 months ago* (last edited 5 months ago) by CoderSupreme@programming.dev to c/todayilearned@lemmy.ml

edit: nevermind this, it's just a subset of what a dictionary extension could do. I'm just stupid.

29

If those became popular it would be a privacy nightmare, specially if the company share all gathered data with the government and other companies.

[-] CoderSupreme@programming.dev 13 points 7 months ago* (last edited 7 months ago)

Democracy broadly refers to a system of government where ultimate power rests with the people. I don’t believe it’s solely about voting; rather, it’s about whether people perceive that they are being represented by the government.

[-] CoderSupreme@programming.dev 10 points 7 months ago* (last edited 7 months ago)

But I'm asking about real examples not made up ones. And if you are referring to secret services all countries have those.

[-] CoderSupreme@programming.dev 12 points 7 months ago

Is it really a democracy when people want something, sign a petition and get dismissed?

[-] CoderSupreme@programming.dev 12 points 11 months ago

The Jedi are nothing more than the lapdogs of the Senate, serving as the enforcers of a corrupt and decadent Republic. They reside in a literal ivory tower within the heart of the capital, Coruscant, a city consumed by greed and political intrigue. Their supposed wisdom and connection to the Force are mere facades, masking their complicity in maintaining the status quo of a failing system. They mouth platitudes about peace and justice while being manipulated by the very politicians they are supposed to protect. Their arrogance and detachment from the common people make them oblivious to the true nature of the galaxy they claim to safeguard. In reality, they are more concerned with preserving their own power and prestige than with genuinely serving the greater good.

view more: next ›

CoderSupreme

joined 2 years ago