Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Posts by ShadowsRanger‭

21 posts
83%
+13 −1
Meta What’s the point of Q&A sites anymore?

Lately, whenever I consider asking a question on a site like Software Codidact, I end up just asking an LLM chatbot instead. Just thinking of the effort of distilling a minimal working example, for...

5 answers  ·  posted 6mo ago by ShadowsRanger‭  ·  last activity 2mo ago by dode‭

Question discussion
81%
+7 −0
Q&A What is the purpose of grouping the tests in a tests module and is it possible to split them?

What is the purpose of grouping the tests in a tests module like this #[cfg(test)] mod tests { use super::*; #[test] fn test_function_1() { // test code for function 1 g...

3 answers  ·  posted 3y ago by ShadowsRanger‭  ·  last activity 3y ago by Moshi‭

Question rust testing
81%
+7 −0
Meta Can I repost here the answers to questions I get answered elsewhere?

I've thought that since I sometimes ask questions on chats and they are like black holes for information, whenever I get an answer I should post the question and answer here so that other people ha...

2 answers  ·  posted 4y ago by ShadowsRanger‭  ·  last activity 1y ago by einpoklum‭

Question discussion
80%
+6 −0
Q&A How to add a percent_jitter strategy to backoff Python package and pass extra args in the decorator?

I'm trying to add a percent-based jitter function to the backoff package and use that modified package in my project instead of the PyPI release. Current jitter algorithm I want to implement (from...

1 answer  ·  posted 11mo ago by ShadowsRanger‭  ·  last activity 10mo ago by Alexei‭

Question python
71%
+3 −0
Q&A How to get the community of a post from Lemmy API?

I'm building a script for Lemmy that, given a user returns a list of communities sorted by engagement based on total votes and upvote percentage per community, to have an idea of other communities ...

0 answers  ·  posted 11mo ago by ShadowsRanger‭  ·  edited 11mo ago by ShadowsRanger‭

Question python lemmy
71%
+3 −0
Q&A How to resolve the mypy error "Returning Any from function declared to return 'Dict[str, Any]'" in Python?

I have a function that loads JSON data and is declared to return a dictionary with string keys and values of any type (Dict[str, Any]). However, mypy is raising an error stating that I am returning...

1 answer  ·  posted 3y ago by ShadowsRanger‭  ·  last activity 3y ago by Moshi‭

Question python mypy
66%
+2 −0
Q&A How to link an existing Odysee web wallet to the local lbrynet daemon for automated video publishing?

I'm building an automated content pipeline that publishes daily video briefings from a headless Arch Linux server. The pipeline already works for other platforms (Bluesky, Mastodon, PieFed, Telegra...

0 answers  ·  posted 2mo ago by ShadowsRanger‭

Question automation odysee lbry api cli
66%
+2 −0
Q&A How do I add tags to a PieFed post via the API?

I'm automating posts to PieFed and I can't get tags/labels to actually show up on the created post. What I'm doing I'm POSTing to create a post with a body that includes hash-style tags, somethin...

0 answers  ·  posted 3mo ago by ShadowsRanger‭

Question automation lemmy piefed webapi tags
66%
+2 −0
Q&A ffmpeg script outputs video with unexpected resolution and frame rate despite scaling and fps filtering

I'm having trouble with an ffmpeg script that's supposed to convert videos to a specific resolution and frame rate, but the output video has unexpected dimensions and frame rate. Here's my script a...

2 answers  ·  posted 2y ago by ShadowsRanger‭  ·  last activity 2y ago by harmony‭

Question bash ffmpeg
60%
+1 −0
Q&A How to automatically get the release date of the latest Magic: The Gathering Standard set?

This code uses the What's in Standard API to fetch all Standard-legal sets, filters to those already released, finds the most recent, and updates a local timestamp to track the latest Standard set....

posted 11mo ago by ShadowsRanger‭

Answer
60%
+1 −0
Q&A How can I export a full Scryfall search to a CSV compatible with Moxfield collections?

✅ This will create a fully Moxfield-compatible CSV with all cards from a Scryfall search. import requests import csv import time QUERY = "f:standard f:penny usd<=1" BASE_URL = "https://ap...

posted 11mo ago by ShadowsRanger‭

Answer
60%
+1 −0
Q&A How can I export a full Scryfall search to a CSV compatible with Moxfield collections?

I’m trying to export cards from a Scryfall search so I can import them into a Moxfield collection. I’ve tried a simple script that dumps card names: Query Scryfall + dump card names for Moxfield ...

2 answers  ·  posted 11mo ago by ShadowsRanger‭  ·  last activity 11mo ago by Alexei‭

Question python
60%
+1 −0
Q&A ffmpeg script outputs video with unexpected resolution and frame rate despite scaling and fps filtering

This script applies filters dynamically based on the video's dimensions and frame rate. The audio handling is more sophisticated, checking and adjusting the bitrate separately. It's more flexible i...

posted 2y ago by ShadowsRanger‭  ·  edited 2y ago by ShadowsRanger‭

Answer
60%
+1 −0
Q&A Command to format code from repo into single markdown file

I'm trying to flatten a repository of Python code into a Markdown file where each file is formatted like: relative/path/to/file1.py # contents of file1.py I'm using this command: find . -name...

2 answers  ·  posted 3y ago by ShadowsRanger‭  ·  last activity 2y ago by Michael‭

Question bash
50%
+0 −0
Q&A How to automatically get the release date of the latest Magic: The Gathering Standard set?

I’m building a tool to check Magic: The Gathering deck legality in custom formats and want to update my formats with the same frequency as the Penny Dreadful format. Penny Dreadful updates when a n...

1 answer  ·  posted 11mo ago by ShadowsRanger‭  ·  edited 11mo ago by ShadowsRanger‭

Question python
42%
+1 −2
Q&A How to scrape all thread links from a XenForo forum board? [closed]

I'm trying to extract all thread links from a specific board on a XenForo forum (similar to this one: Creative Writing, specifically this one: NSFW Creative Writing), but a simple script I tried st...

0 answers  ·  posted 7mo ago by ShadowsRanger‭  ·  closed 7mo ago by Karl Knechtel‭

Question javascript web-scraping
42%
+1 −2
Q&A Python script using gitignore_parser doesn't respect .gitignore rules [closed]

I'm using a Python script to merge code files: python codemerge.py --filters "*.py" --output merged_code.txt . The script uses gitignore_parser to skip files in .gitignore. My .gitignore exclud...

0 answers  ·  posted 11mo ago by ShadowsRanger‭  ·  closed 11mo ago by Karl Knechtel‭

Question python gitignore
42%
+1 −2
Q&A How to implement automatic text-to-link conversion in TypeScript?

I'm trying to create an automatic text-to-link conversion feature in a TypeScript application. The desired workflow is: Copy a URL to the clipboard Select some text Paste the URL - this should...

0 answers  ·  posted 3y ago by ShadowsRanger‭  ·  edited 3y ago by ShadowsRanger‭

Question typescript mocking markdown hyperlink
42%
+1 −2
Q&A Program freezing in post_comments_to_lemmy function due to potential infinite loop

I'm experiencing an issue where my program appears to freeze when executing the post_comments_to_lemmy function. This function fetches comments from the GitHub API and posts them to a Lemmy instanc...

1 answer  ·  posted 3y ago by ShadowsRanger‭  ·  last activity 3y ago by __blackjack__‭

Question python
40%
+2 −4
Q&A How to write a bash function to sanitize filenames for Linux and Windows

I'm trying to write a bash function that can sanitize filenames to make them compatible with both Linux and Windows file systems. The function should perform the following operations: Replace in...

1 answer  ·  posted 2y ago by ShadowsRanger‭  ·  last activity 6mo ago by ArtOfCode‭

Question bash
37%
+1 −3
Meta Closed Question Too Generic, Reason Unhelpful

The reason for closing the question as too generic was that it contained multiple questions, had many possible indistinguishable correct answers, or required extraordinarily long answers. However,...

2 answers  ·  posted 3y ago by ShadowsRanger‭  ·  edited 3y ago by ShadowsRanger‭

Question discussion on-topic