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.
Activity for ShadowsRangerâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #292684 |
Post edited: |
— | 3 months ago |
Edit | Post #292684 |
Post edited: |
— | 3 months ago |
Edit | Post #292684 | Initial revision | — | 3 months ago |
Answer | — |
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 in codec selection, only converting when truly necessary. It uses glob patterns for file matching, potent... (more) |
— | 3 months ago |
Edit | Post #292683 |
Post edited: |
— | 3 months ago |
Edit | Post #292683 |
Post edited: |
— | 3 months ago |
Edit | Post #292683 | Initial revision | — | 3 months ago |
Question | — |
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 and the issue: ```bash #!/usr/bin/env bash Constants MAXRESOLUTION=540 MAXFPS=15 MAXBITRATE="50... (more) |
— | 3 months ago |
Edit | Post #291265 | Initial revision | — | 8 months ago |
Question | — |
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: 1. Replace invalid characters with similar valid ones (e.g., replace `` or `+` with `-` or ``, `?` with `Âż`, etc).... (more) |
— | 8 months ago |
Edit | Post #290087 |
Post edited: |
— | about 1 year ago |
Suggested Edit | Post #290087 |
Suggested edit: (more) |
helpful | about 1 year ago |
Edit | Post #290084 |
Post edited: |
— | about 1 year ago |
Edit | Post #290084 | Initial revision | — | about 1 year ago |
Question | — |
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` ```python contents of file1.py ``` I'm using this command: ```bash find . -name ".py" -print0 | while read -d $'\0' file; do echo "`" echo "$file" ... (more) |
— | about 1 year ago |
Edit | Post #289584 |
Post edited: |
— | over 1 year ago |
Edit | Post #289584 |
Post edited: |
— | over 1 year ago |
Edit | Post #289584 |
Post edited: |
— | over 1 year ago |
Edit | Post #289584 |
Post edited: |
— | over 1 year ago |
Edit | Post #289584 |
Post edited: |
— | over 1 year ago |
Edit | Post #289584 |
Post edited: |
— | over 1 year ago |
Edit | Post #289584 |
Post edited: |
— | over 1 year ago |
Edit | Post #289584 |
Post edited: |
— | over 1 year ago |
Edit | Post #289584 |
Post edited: |
— | over 1 year ago |
Edit | Post #289584 | Initial revision | — | over 1 year ago |
Question | — |
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: 1. Copy a URL to the clipboard 2. Select some text 3. Paste the URL - this should convert the selected text into a link pointing to the pasted URL For example: ``` Sele... (more) |
— | over 1 year ago |
Edit | Post #289150 | Initial revision | — | over 1 year ago |
Question | — |
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 Any instead of a dictionary. I found a suggestion to create a new variable and assign the result of jso... (more) |
— | over 1 year ago |
Edit | Post #288993 |
Post edited: |
— | over 1 year ago |
Edit | Post #288993 |
Post edited: |
— | over 1 year ago |
Edit | Post #288993 |
Post edited: |
— | over 1 year ago |
Edit | Post #288993 | Initial revision | — | over 1 year ago |
Question | — |
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 `postcommentstolemmy` function. This function fetches comments from the GitHub API and posts them to a Lemmy instance. However, it seems that there might be a potential infinite loop within the function that causes the pr... (more) |
— | over 1 year ago |
Edit | Post #287594 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287594 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287594 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287594 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287594 | Initial revision | — | almost 2 years ago |
Question | — |
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, this reason does not provide any guidance on how to improve the question. If questions of this natur... (more) |
— | almost 2 years ago |
Comment | Post #287586 |
Can the module be split in the same file like this?
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_function_1() {
// test code for function 1 goes here
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_function_2() {
/... (more) |
— | almost 2 years ago |
Edit | Post #287585 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287585 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287585 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287585 | Initial revision | — | almost 2 years ago |
Question | — |
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 testfunction1() { // test code for function 1 goes here } #[test] fn testfunction2() { // test code for function 2 goes... (more) |
— | almost 2 years ago |
Edit | Post #287574 | Initial revision | — | about 2 years ago |
Question | — |
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 have more chances of finding an answer to the same question. Would that be fine? And what about simple ... (more) |
— | about 2 years ago |