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
Edit Post #292748 Post edited:
Comment suggestions
2 months 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)
2 months ago
Edit Post #292748 Initial revision 2 months ago
Answer A: Why not call nullptr NULL?
Probably just backwards compatibility with past C++ versions, where `NULL = 0`.
(more)
2 months ago
Edit Post #292680 Initial revision 3 months 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)
3 months ago
Edit Post #292679 Initial revision 3 months 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)
3 months ago
Edit Post #292678 Initial revision 3 months 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)
3 months ago
Edit Post #291580 Initial revision 7 months 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" \ --shell "...
(more)
7 months ago
Edit Post #291575 Initial revision 7 months 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)
7 months ago
Edit Post #291574 Initial revision 7 months ago
Question UID of nonroot user in distroless container images
Distroless images use a user called `nonroot` by convention. What's the UID (User ID) of this user? This is relevant in multi-stage image builds: ```containerfile FROM bash:latest as builder RUN adduser adduser \ --disabled-password \ --gecos "" \ --home "/nonexistent" \ --shell...
(more)
7 months ago
Comment Post #285050 This is a prime example of creating confusion with keyword overloading. Hopefully newer languages keep this in mind.
(more)
7 months ago
Comment Post #291267 I'm indeed using rancher, but it's really more a part of the answer than the question. This is mostly a question about understanding what can cause such an error message. There could be other non-rancher-related causes too.
(more)
8 months ago
Edit Post #291268 Initial revision 8 months ago
Answer A: Kubectl exec: "Error from server (BadRequest): Upgrade request required"
Ok I got it working again. The issue was that I had updated my kubeconfig file, and the `current-context` setting had changed. This setting essentially selects which cluster kubectl targets. Now the cluster wasn't a wrong one per se, it just wasn't a direct route. This is a `rancher` managed cl...
(more)
8 months ago
Edit Post #291267 Initial revision 8 months ago
Question Kubectl exec: "Error from server (BadRequest): Upgrade request required"
I'm getting an error when trying to open a shell to a pod. This used to work. ```shell $ kubectl exec --tty --stdin --namespace my-ns my-pod -- sh Error from server (BadRequest): Upgrade request required ``` What does it mean?
(more)
8 months ago
Edit Post #291234 Post edited:
missing word
9 months ago
Edit Post #291237 Initial revision 9 months ago
Answer A: Simplest way of getting failure notification emails from kubernetes
The simplest solution I managed to find is robusta. It still has a bunch of unnecessary features, but with the correct configuration it's possible to disable these. As a bonus, it nicely adds some extra info to the notifications (called enrichments). It's intended to run alongside prometheus, b...
(more)
9 months ago
Edit Post #291235 Post edited:
9 months ago
Edit Post #291235 Post edited:
9 months ago
Edit Post #291235 Initial revision 9 months ago
Answer 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 file — conventionally named `.gitkeep` — will make git recognize the directory. Oftentimes people do...
(more)
9 months ago
Edit Post #291234 Initial revision 9 months ago
Question What is a .gitkeep file?
Sometimes there are empty files named `.gitkeep` sprinkled around a repository. What are these files?
(more)
9 months ago
Edit Post #291198 Initial revision 9 months ago
Answer 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, but not who last modified the global variables it might have read. They could have been modified lite...
(more)
9 months ago
Edit Post #291081 Post edited:
9 months ago
Edit Post #291081 Initial revision 9 months ago
Question 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 types would be sufficient. This really shouldn't need an additional database like prometheus). Id...
(more)
9 months ago
Edit Post #290995 Initial revision 10 months ago
Answer A: What are the prefixes like "md:" and "ds:" in SAML metadata?
The prefixes are explained in saml-metadata-2.0-os spec in section 1.1: "Notation" | Prefix | Explanation |--------|------------| | saml: | This is the SAML V2.0 assertion namespace [SAMLCore]. The prefix is generally elided in mentions of SAML assertion-related elements in text. | samlp: | Thi...
(more)
10 months ago
Edit Post #290994 Initial revision 10 months ago
Question What are the prefixes like "md:" and "ds:" in SAML metadata?
SAML service provider (and other types as well) metadata XMLs are full of prefixes like `md:` and `ds:`. What do these mean? To illustrate my point, here's a sample metadata file from Wikipedia (CC-BY-SA 4.0): ```xml https://registrar...
(more)
10 months ago
Edit Post #290949 Initial revision 10 months ago
Answer A: How to delete a remote branch in git?
With the `--delete` option of git-push: ```bash $ git push --delete ``` For example: ```bash $ git push origin --delete my-branch ```
(more)
10 months ago
Edit Post #290948 Initial revision 10 months ago
Question 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 branch too.
(more)
10 months ago
Edit Post #290905 Post edited:
The final ``` was left visible
10 months ago
Suggested Edit Post #290905 Suggested edit:
The final ``` was left visible
(more)
helpful 10 months ago
Comment Post #290907 Is this just a convention, or will it actually break the other way around?
(more)
10 months ago
Edit Post #290889 Initial revision 10 months ago
Answer 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` implements it if `A` implements it.[^result] And here `A = std::Vec`. `std::Vec` implements ...
(more)
10 months ago
Edit Post #290683 Post edited:
11 months ago