CoderSupreme

joined 2 years ago
[–] CoderSupreme@programming.dev 10 points 4 months ago (1 children)

Wouldn't the chinese or whoever doesn't chose to do that gain market share?

[–] CoderSupreme@programming.dev 1 points 4 months ago* (last edited 4 months ago)

I recently learned about abogen and audiblez and what I want to do is blog to adiobook but I'm still stuck in getting the book from the blog.

I'm now thinking maybe c/linux would have been a better place to ask since I'm not trying to program anything. Let me know if I should move it there.

 

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 11 points 5 months ago (1 children)

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

 

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?

[–] CoderSupreme@programming.dev 1 points 5 months ago (1 children)

You are the second person who mentions it but I don't know what you mean. Got any links for compose key?

 

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?

[–] CoderSupreme@programming.dev 5 points 5 months ago* (last edited 5 months ago) (7 children)

Honestly, I believe that, except for Russians or anyone whose language isn’t derived from Latin, using a US keyboard for programming is best, because you won’t be missing many keys. Maybe the French will miss the ç, but you can learn the Unicode just like I did with the em dash and quotation marks:

  • Em Dash (—): U+2014
  • En Dash (–): U+2013

Quotation marks:

  • Left double quote (“): U+201C
  • Right double quote (”): U+201D
  • Left single quote (‘): U+2018
  • Right single quote (’): U+2019
 

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?
 

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?

[–] CoderSupreme@programming.dev 0 points 5 months ago* (last edited 5 months ago)

Or use systems timers

systemd timers? Isn't that dependent on whether or not there is systemd? I thought there were Linux distros that don't use it.

 

Use ln -sf to update a symlink after each cron run:

0 */8 * * * TIMESTAMP=$(date +\%Y-\%m-\%dT\%H;\%M;\%S) && LOG="$HOME/logs/${TIMESTAMP}_job.log" && /path/to/script.sh >> "$LOG" 2>&1 && ln -sf "$LOG" "$HOME/logs/latest_job.log"

Any active communities where I can learn more cool things like this?

 

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?

 

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?

 

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!

 

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!

[–] CoderSupreme@programming.dev 0 points 8 months ago

Mine too but I don't want to spend the time adapting it for every thing I use so I'm willing to compromise.

[–] CoderSupreme@programming.dev 6 points 8 months ago

This is the kind of thing I'm looking for, not ufos disappearing people.

[–] CoderSupreme@programming.dev 6 points 8 months ago (2 children)

I may have my mind made up, but I could change it if people said something more easily verified, like the kind of police brutality that happens in US, instead of people disappearing like the chinese has ufos contracted, that just sounds like conspiracy theories made up by the americans.

[–] CoderSupreme@programming.dev 5 points 8 months ago* (last edited 8 months ago) (6 children)

And of course you send me the article from a paper that's the mouthpiece of some US billionaire. Would you take it seriously if a chinese paper said the US 'secret police' is disappearing people? They are going to paint the worse possible picture since they are rivals.

[–] CoderSupreme@programming.dev 13 points 8 months ago* (last edited 8 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 6 points 8 months ago (1 children)

All states are authoritarian according to this answer.

view more: next ›