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‭

48 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 9mo 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 1y 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 1y ago by Iizuki‭  ·  edited 1y 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 1y ago by Iizuki‭  ·  last activity 1y 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 1y ago by Iizuki‭  ·  edited 1y 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 1y ago by Iizuki‭  ·  last activity 1y ago by Iizuki‭

Question git
81%
+7 −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 10mo ago by Iizuki‭  ·  last activity 4mo ago by Michael‭

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 8mo 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 1y ago by Iizuki‭  ·  edited 1y ago by Iizuki‭

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 1y 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 9mo ago by Iizuki‭  ·  last activity 9mo ago by hkotsubo‭

Question git
77%
+5 −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 12mo ago by Iizuki‭  ·  edited 12mo ago by manassehkatz‭

Answer
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 1y ago by Iizuki‭

Answer
77%
+5 −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 1y ago by Iizuki‭  ·  last activity 1y ago by Iizuki‭

Question gitlab-ci
77%
+5 −0
Q&A Differences between Haskell tools Stack and Cabal?

Haskell tooling can be confusing. Both Stack and Cabal appear to be build tools with similar goals. How do they differ? Why should you pick one over the other?

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

75%
+4 −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 1y 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 8mo ago by Iizuki‭  ·  edited 8mo ago by Iizuki‭

Answer
75%
+4 −0
Q&A What does an exclamation mark mean in a GraphQL schema?

Types are often followed by exclamation marks in GraphQL schemas. What do they mean? type User { id: Int! email: String! name: String! updatedAt: String! createdAt: String...

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

Question syntax graphql
75%
+4 −0
Q&A What does an exclamation mark mean in a GraphQL schema?

It's a type modifier that means that the field is non-nullable. That is, when uploading these types you must provide values for these fields, and in turn the server promises to always populate the...

posted 2mo 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 8mo ago by Iizuki‭  ·  last activity 8mo ago by Iizuki‭

75%
+4 −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 10mo ago by Iizuki‭

Answer
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 1y ago by Iizuki‭  ·  edited 1y 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 1y ago by Iizuki‭  ·  edited 9mo ago by Alexei‭

Question rust rust-cargo
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 9mo 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 1y ago by Iizuki‭  ·  edited 1y ago by Iizuki‭

Answer