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.
ShadowsRanger
A quiet enigma. We don't know anything about ShadowsRanger yet.
Posts
See all 17 »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 2y ago by Moshi
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 3y ago by ShadowsRanger · last activity 5mo ago by einpoklum
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 3mo ago by ShadowsRanger · last activity 2mo ago by Alexei
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 2y ago by ShadowsRanger · last activity 2y ago by Moshi
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 3mo ago by ShadowsRanger · edited 3mo ago by ShadowsRanger
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 1y ago by ShadowsRanger · last activity 1y ago by harmony
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 1y ago by ShadowsRanger · edited 1y ago by ShadowsRanger
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 2y ago by ShadowsRanger · last activity 2y ago by Michael
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 3mo ago by ShadowsRanger · last activity 3mo ago by Alexei
✅ 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 3mo ago by ShadowsRanger
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 3mo ago by ShadowsRanger
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...
0 answers · posted 2y ago by ShadowsRanger
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 3mo ago by ShadowsRanger · edited 3mo ago by ShadowsRanger
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 2y ago by ShadowsRanger · last activity 2y ago by __blackjack__
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 3mo ago by ShadowsRanger · closed 3mo ago by Karl Knechtel
| Reputation | 184 | |
| Number of top-level posts | 14 | |
| Number of answers | 3 | |
| Sum of received votes (up minus down) | 4 | |
| Number of edits made | 58 | |
Earned Abilities
Statistics
| Posts | ||
|---|---|---|
| Count | 17 | |
| Questions | 14 | |
| Answers | 3 | |
| Articles | 0 | |
| Votes cast | ||
|---|---|---|
| Count | 14 | |
| Flags raised | ||
|---|---|---|
| Count | 0 | |
