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

41 posts
84%
+9 −0
Q&A How to delete a remote branch in git?

With the --delete option of git-push: $ git push <remote-name> --delete <branch-name> For example: $ git push origin --delete my-branch

posted 2mo ago by Iizuki‭

Answer
84%
+9 −0
Q&A What is the point of triggering CI/CD with an empty git commit?

There's no point. It just causes unnecessary clutter and confusion. The correct way is to configure a manual way for triggering the CI/CD pipeline. In most systems there should be an API endpoint ...

posted 6mo ago by Iizuki‭

Answer
83%
+8 −0
Q&A Git add/stage only part of a file's changes

Git's interactive mode has a patch action. This is the shortcut for it: git add --patch <file> It will split the file into hunks and interactively ask which one's to add. It has a plethor...

posted 7mo ago by Iizuki‭  ·  edited 7mo ago by Iizuki‭

Answer
81%
+7 −0
Q&A How to revert main branch to an earlier commit in git?

How to move the main branch back to an earlier commit in git?

2 answers  ·  posted 7mo ago by Iizuki‭  ·  last activity 6mo ago by Michael‭

Question git
81%
+7 −0
Q&A How to revert main branch to an earlier commit in git?

With git reset, but first, you may want to save the current state in another branch: $ git switch main $ git branch backup-of-main Now the (perhaps messed up) state is safely stored in branch ...

posted 7mo ago by Iizuki‭  ·  edited 7mo ago by Alexei‭

Answer
81%
+7 −0
Q&A Git add/stage only part of a file's changes

Say I've made a bunch of changes to a file and would like to split those changes into two or more commits. Normal git add however stages the whole file in one go. So how to add only some of the ch...

1 answer  ·  posted 7mo ago by Iizuki‭  ·  last activity 7mo ago by Iizuki‭

Question git
80%
+6 −0
Q&A Why is global evil?

Global variables make the code hard to reason about This is especially visible when debugging. Say you have a function which errors. The stacktrace tells you where the function got it's arguments,...

posted 1mo ago by Iizuki‭

Answer
80%
+6 −0
Q&A How to compare a git stash to the current working tree?

In git you can put your current changes aside for a moment with git stash. This is really neat but what often ends up happening is that you forget what was in there, and what was the state of the b...

1 answer  ·  posted 6mo ago by Iizuki‭  ·  edited 6mo ago by Iizuki‭

80%
+6 −0
Q&A Git apply vs git am

What are the differences between git apply and git am commands? Both seem to be used for applying patches to repositories. When should one be used over the other?

1 answer  ·  posted 4mo ago by Iizuki‭  ·  last activity 3mo ago by Michael‭

Question git
77%
+5 −0
Q&A How to delete a local branch in git?

The safe way: [1] git branch --delete <branch-name> It will fail if the branch isn't merged. If this is ok then you can delete it anyway like this: [2] git branch --delete --force <br...

posted 7mo ago by Iizuki‭

Answer
77%
+5 −0
Q&A How to delete a remote branch in git?

How to delete a branch from a remote in git? E.g. maybe you had this branch locally too, but you deleted it already according to this question. Now you want to get rid of the corresponding remote ...

2 answers  ·  posted 2mo ago by Iizuki‭  ·  last activity 2mo ago by hkotsubo‭

Question git
77%
+5 −0
Q&A How to compare a git stash to the current working tree?

Well it was easier than I thought: git diff stash A note about the direction: This will show things which are present in the working directory but not present in the stash as added +. And vice ...

posted 6mo ago by Iizuki‭

Answer
75%
+4 −0
Q&A What is a .gitkeep file?

They are not a part of git the way .gitignore files are. It's just a convention to add empty directories to git repositories. Normally git ignores empty directories altogether. Adding an empty fil...

posted 1mo ago by Iizuki‭  ·  edited 1mo ago by Iizuki‭

Answer
75%
+4 −0
Q&A Simplest way of getting failure notification emails from kubernetes

What would be the simplest (and most lightweight) way of getting email notifications of failures in kubernetes clusters. Mostly interested in failing pods, so notifying on certain kubernetes event ...

1 answer  ·  posted 2mo ago by Iizuki‭  ·  last activity 1mo ago by Iizuki‭

75%
+4 −0
Q&A What is the default port number of MariaDB?

The default port is 3306. MariaDB is a fork of MySQL, and this is the default port for MySQL as well. Source.

posted 5mo ago by Iizuki‭  ·  edited 5mo ago by manassehkatz‭

Answer
75%
+4 −0
Q&A How to run Gitlab CI jobs only in specific branches?

By default Gitlab CI jobs run on any commit. I would like to restrict some of them to run only on commits to specific branches. How to do this in .gitlab-ci.yml?

1 answer  ·  posted 6mo ago by Iizuki‭  ·  last activity 6mo ago by Iizuki‭

Question gitlab-ci
75%
+4 −0
Q&A How to pass command line arguments when using cargo run?

Specify your arguments after --: cargo run --offline -- --my-argument 42 --offline is just an example of cargo's own argument. They are passed before --. --my-argument and 42 will be passed to...

posted 7mo ago by Iizuki‭  ·  edited 7mo ago by Iizuki‭

Answer
75%
+4 −0
Q&A How to pass command line arguments when using cargo run?

When developing a rust program you build and run using cargo run. However you cannot just append arguments to that as they will be caught (and likely rejected) by cargo itself. So how to pass argum...

1 answer  ·  posted 7mo ago by Iizuki‭  ·  edited 3mo ago by Alexei‭

Question rust rust-cargo
71%
+3 −0
Q&A How to run Gitlab CI jobs only in specific branches?

Compare $CI_COMMIT_BRANCH to your desired branch name in rules: # .gitlab-ci.yml stages: - test - deploy # This job will run always. test-job: stage: test image: bash script:...

posted 6mo ago by Iizuki‭

Answer
71%
+3 −0
Q&A How to surround jinja expression with curly brackets?

You can separate the curly brackets with spaces, and instruct jinja to remove them afterwards: { {{- jinja_expression -}} }. That way the outer curly brackets are left untouched. The minus signs s...

posted 3mo ago by Iizuki‭

Answer
71%
+3 −0
Q&A Why does this work? .collect() automatic conversion to function return type

You're very much on the right track. std::iter::FromIterator trait This trait is indeed what makes it work. In particular, both functions' return types implement the trait: std::result::Result&l...

posted 3mo ago by Iizuki‭

Answer
71%
+3 −0
Q&A How to use docker hub with podman?

Add the following to /etc/containers/registries.conf: unqualified-search-registries = ["docker.io"] [[registry]] location = "docker.io" Now you can pull just like you would in docker: podm...

posted 7mo ago by Iizuki‭  ·  edited 7mo ago by Iizuki‭

Answer
71%
+3 −0
Q&A How to use docker hub with podman?

Unlike docker, Podman won't (understandably) use docker hub by default. You can use it explicitly like this: (just using a random example here, it's an OpenAPI linter) podman pull docker.io/dshanl...

1 answer  ·  posted 7mo ago by Iizuki‭  ·  last activity 7mo ago by Iizuki‭

71%
+3 −0
Q&A Using an existing web server vs writing your own

When writing a dynamic web service, you broadly speaking have two paths: Use an existing web server (e.g. Apache, Nginx or Lighttpd) to handle the "raw" web requests and implement your own cod...

4 answers  ·  posted 7mo ago by Iizuki‭  ·  last activity 7mo ago by Basile Starynkevitch‭

71%
+3 −0
Q&A What is a .gitkeep file?

Sometimes there are empty files named .gitkeep sprinkled around a repository. What are these files?

1 answer  ·  posted 1mo ago by Iizuki‭  ·  edited 1mo ago by Iizuki‭

Question git