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.

Activity for Iizuki‭

Type On... Excerpt Status Date
Comment Post #295092 This would be better suited to https://linux.codidact.com
(more)
10 months ago
Edit Post #294403 Post edited:
Accuracy
about 1 year ago
Edit Post #294403 Initial revision about 1 year ago
Answer A: How to change tab size in VSCodium?
1. Change the tabbing to your desired value from the window footer. 2. Execute the `Format Code` action. This will apply the setting to the project. - `ctr + shift + p` to open the runner, and search for `Format Code` - Directly with `ctr + shit + i`
(more)
about 1 year ago
Edit Post #294402 Initial revision about 1 year ago
Question How to change tab size in VSCodium?
Say I have some code written with 2 space tabbing, and I wish to upstream it to a codebase with 4 space tabbing. I should make my tabbing match with that of the upstream project, but how to do that in VSCodium? (vscode) It's easy enough to change the setting from the editor window footer, but ...
(more)
about 1 year ago
Edit Post #293918 Post edited:
Missing word
over 1 year ago
Edit Post #293918 Initial revision over 1 year ago
Question Is it possible to query all known domains from a DNS server?
Normally you ask a DNS server to resolve a domain like `example.org` to the corresponding IP address. The server either knows the answer right off the bat (cached or authoritative), or where it might be found. Ignoring the latter option, would it be possible to query a DNS server for all the ...
(more)
over 1 year ago
Edit Post #293677 Initial revision over 1 year ago
Question Why is SQL usually written in CAPS?
Why are keywords in SQL usually written in capital letters? For example: ```sql SELECT FROM person WHERE mood = 'happy'; ``` My understanding is that SQL is case insensitive, so the case doesn't actually make a difference?
(more)
over 1 year ago
Edit Post #293544 Initial revision over 1 year ago
Answer A: Best practices for designing a central gateway/hub for microservices communication
GraphQL instead of gRPC Assuming you do decide to implement a gateway, I'd consider implementing it as a GraphQL API instead of plain gRPC. I feel like your usecase is almost exactly what it's intended for. It too suports streaming, plus it's just a pleasure to work with in general. Easy to do...
(more)
over 1 year ago
Edit Post #293542 Initial revision over 1 year ago
Answer A: Best practices for designing a central gateway/hub for microservices communication
How about a library instead? The traditional way of reducing code duplication among separate software packages is to wrap the common bits in a library and use it where ever the functionality is needed. Each microservice would still be talking directly to the external service, but most of th...
(more)
over 1 year ago
Edit Post #293462 Initial revision over 1 year ago
Answer A: How to disable jobs in GitLab CI after they are successfully executed
I don't think there exists a straightforward solution. Likely you can achieve this with `rules` but you'll have to define and finetune them on each of the jobs. (template jobs may help a bit here.) I.e. configure some jobs to only run on merges and others only on commits etc. The last resor...
(more)
over 1 year ago
Comment Post #293412 Right so you mean following situation? 1. A commit is pushed to branch A and a pipeline is triggered. 2. The branch gets merged to `main` and the pipeline is triggered again. 3. (optionally) a tag gets pushed to the repository, triggering yet another pipeline.
(more)
over 1 year ago
Edit Post #293452 Post edited:
Added one more example
over 1 year ago
Edit Post #293452 Initial revision over 1 year ago
Question Are email addresses case-sensitive?
Does the case of an email address make a difference? I.e. would sending emails to these addresses all lead to the same inbox? `[email protected]`, `[email protected]`, `[email protected]`, `[email protected]` ...
(more)
over 1 year ago
Comment Post #293412 In what situation you find that your jobs are rerun needlessly? I can think of several possibilities: commit, retrying failed pipeline, manually triggered pipeline...
(more)
over 1 year ago
Edit Post #293353 Initial revision over 1 year ago
Answer A: Keep failed CronJob Pods around in Kubernetes
There are a few fields that play into this, but the gist of it is to set the Pod's `restartPolicy` to `Never`. This doesn't mean that the Job only tries once. Rather, instead of restarting the container inside the Pod on failure, a new Pod will get scheduled until the Job's `backoffLimit` is reac...
(more)
over 1 year ago
Edit Post #293352 Initial revision over 1 year ago
Question Keep failed CronJob Pods around in Kubernetes
It seems like pods created by a Kubernetes CronJob (or rather Job) are deleted as soon as they fail. This makes it difficult to figure out what went wrong (unless you have Prometheus or some other log aggregator in use). Is there a way to keep the pods of the failed Jobs around for a while to ...
(more)
over 1 year ago
Edit Post #293248 Post edited:
Revision is the correct term
over 1 year ago
Edit Post #293249 Initial revision over 1 year ago
Answer A: Helm delete old release revisions
You don't need to do anything. Helm prunes old release secrets once their number exceeds 10. More specifically, `helm upgrade` command has an integer option `--history-max`, that allows you to specify the max amount of revisions to keep around. It defaults to 10.
(more)
over 1 year ago
Edit Post #293248 Initial revision over 1 year ago
Question Helm delete old release revisions
Helm keeps track of releases and their revisions by creating a kubernetes `Secret` each time a chart is installed, upgraded etc. These are of course useful in case you want to rollback, but they do pile up. How to prune old helm chart revisions from a cluster, when you're confident you no long...
(more)
over 1 year ago
Edit Post #293242 Initial revision over 1 year ago
Answer A: List charts in a helm repository
You have to search the repo without any filters: ```commandline $ helm search repo myrepo NAME CHART VERSION APP VERSION DESCRIPTION myrepo/mychart 1.0.0 1.0.0 Example helm chart ``` Also remember to update the repositories first: `...
(more)
over 1 year ago
Edit Post #293241 Initial revision over 1 year ago
Question List charts in a helm repository
How to list all available helm charts in a helm repository, preferrably using the native `helm` CLI tool? This command lists the repos themselves, but I've yet to discover how to list their contents. ```commandline $ helm repo list ```
(more)
over 1 year ago
Edit Post #292748 Post edited:
Comment suggestions
almost 2 years ago
Comment Post #292748 You seem to know way more about this than I do. Go ahead and edit this answer (or just post another one)
(more)
almost 2 years ago
Edit Post #292748 Initial revision almost 2 years ago
Answer A: Why not call nullptr NULL?
Probably just backwards compatibility with past C++ versions, where `NULL = 0`.
(more)
almost 2 years ago
Edit Post #292680 Initial revision almost 2 years ago
Answer 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 field in query responses (or return an error if it cannot be done). Official docs.
(more)
almost 2 years ago
Edit Post #292679 Initial revision almost 2 years ago
Question What does an exclamation mark mean in a GraphQL schema?
Types are often followed by exclamation marks in GraphQL schemas. What do they mean? ```graphql type User { id: Int! email: String! name: String! updatedAt: String! createdAt: String! } ```
(more)
almost 2 years ago
Edit Post #292678 Initial revision almost 2 years ago
Question 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?
(more)
almost 2 years ago
Edit Post #291580 Initial revision over 2 years ago
Answer A: UID of nonroot user in distroless container images
You don't actually need the UID in that particular example. A more elegant solution would be to use the `--chown` option of the COPY directive. ```containerfile FROM bash:latest as builder RUN adduser adduser \ --disabled-password \ --gecos "" \ --home "/nonexistent" \ --she...
(more)
over 2 years ago
Edit Post #291575 Initial revision over 2 years ago
Answer A: UID of nonroot user in distroless container images
The UID of `nonroot` user is 65532. This is by convention. I failed to find a reputable source for this, but looking around image internals, it seems to hold.
(more)
over 2 years ago
Edit Post #291574 Initial revision over 2 years ago