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 Trevor‭

12 posts
85%
+10 −0
Q&A Vim: how to search for all instances of a string, except for those that are between two specific strings

Using Vim, I am trying to search for all instances of a specific string, except for those that fall somewhere in between two other specific strings. For example, I want to determine all instances ...

2 answers  ·  posted 3y ago by Trevor‭  ·  last activity 3y ago by Dirk Herrmann‭

Question regex string-search vim
83%
+8 −0
Q&A How to define an object with different subclasses in an if-statement?

Note: I asked this question on TopAnswers a couple weeks ago, but didn't get any response, so I figured I'd ask it here. I am currently learning C++. I have a parent class (Vehicle) and two subc...

1 answer  ·  posted 2y ago by Trevor‭  ·  edited 2y ago by Alexei‭

Question c++ oop inheritance class
80%
+6 −0
Q&A how to apply ANSI escape codes when a backslash precedes the escape code

I am using ANSI escape codes in a shell script to colorize some parts of a string. For example, here I add the text NOTE with a red background color at the end of $var: $ var='test' $ echo $var'...

2 answers  ·  posted 13d ago by Trevor‭  ·  edited 10d ago by Alexei‭

Question escaping terminal
77%
+5 −0
Q&A ffmpeg: apply a filter from a start time to the end of the video

I think I found a solution myself. Instead of using the between() function, you can use the gte() (greater than or equal to) function. So the command above would be: ffmpeg -i video.mp4 -vf "yadif...

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

Answer
77%
+5 −0
Q&A zsh - autocomplete with braces in the middle of a directory

Suppose I have the following directory structure: folder/ aaa/ f.txt bbb/ f.txt I want to compare the file f.txt as it is common to both directories. So in zsh I type this: % d...

1 answer  ·  posted 3mo ago by Trevor‭  ·  last activity 28d ago by Trevor‭

Question autocomplete zsh
75%
+7 −1
Q&A how do I get markdown to render # as a shell prompt and not a comment?

Note: This is a general question about Markdown formatting for any Markdown renderer (e.g., Gitlab, Github, Codidact). So this is not just a question about Codidact's renderer. When displaying she...

2 answers  ·  posted 5mo ago by Trevor‭  ·  last activity 3mo ago by bignose‭

Question markdown syntax-highlighting
75%
+4 −0
Q&A how to apply ANSI escape codes when a backslash precedes the escape code

I figured out a solution myself. You can use two echo commands to print the two strings separately, where the -n option is used for the first string to prevent the insertion of a trailing newline ...

posted 13d ago by Trevor‭  ·  edited 12d ago by Trevor‭

Answer
71%
+3 −0
Q&A ffmpeg - concatenating identical audio-only files results in "non-montonic DTS" warning

I am trying to join some video files and have an issue. I have boiled down the problem to the following minimal working example. I create a 2-second mp4 with a silent audio stream: $ ffmpeg -f l...

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

Question ffmpeg
66%
+2 −0
Q&A zsh - autocomplete with braces in the middle of a directory

I figured out a solution myself. I'm not a zsh expert so this may be improved, but it works. 1) make a custom completion file for the diff command The completion file that zsh uses for the diff ...

posted 29d ago by Trevor‭  ·  edited 28d ago by Trevor‭

Answer
60%
+1 −0
Q&A empty line in table cell in reStructuredText (rst)

I would like to have an empty line in the cell of a table in reStructuredText. Consider the following example: .. list-table:: :header-rows: 1 * - aaa - bbb * - ccc - ddd ...

0 answers  ·  posted 6mo ago by Trevor‭  ·  edited 6mo ago by Trevor‭

Question reStructuredText
60%
+1 −0
Q&A how to save the line number of a double-clicked line in tmux

In tmux I have the following command in my .tmux.conf, which will save a double-clicked line to the file /tmp/tmux_line.txt: bind-key -n DoubleClick1Pane select-pane \; copy-mode -M \; send-keys -...

0 answers  ·  posted 5mo ago by Trevor‭

Question tmux
57%
+2 −1
Q&A ffmpeg: apply a filter from a start time to the end of the video

I'm using ffmpeg to apply a filter in between two time points. I am using the between() operator to specify the times. For example, to apply the yadif filter between 30 and 90 seconds I run: ffmpe...

1 answer  ·  posted 2y ago by Trevor‭  ·  last activity 2y ago by Trevor‭

Question ffmpeg