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 #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)
about 1 month ago
Edit Post #291268 Initial revision about 1 month 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)
about 1 month ago
Edit Post #291267 Initial revision about 1 month 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)
about 1 month ago
Edit Post #291234 Post edited:
missing word
about 1 month ago
Edit Post #291237 Initial revision about 1 month 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)
about 1 month ago
Edit Post #291235 Post edited:
about 1 month ago
Edit Post #291235 Post edited:
about 1 month ago
Edit Post #291235 Initial revision about 1 month 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)
about 1 month ago
Edit Post #291234 Initial revision about 1 month ago
Question What is a .gitkeep file?
Sometimes there are empty files named `.gitkeep` sprinkled around a repository. What are these files?
(more)
about 1 month ago
Edit Post #291198 Initial revision about 1 month 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)
about 1 month ago
Edit Post #291081 Post edited:
about 2 months ago
Edit Post #291081 Initial revision about 2 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)
about 2 months ago
Edit Post #290995 Initial revision 2 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)
2 months ago
Edit Post #290994 Initial revision 2 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)
2 months ago
Edit Post #290949 Initial revision 2 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)
2 months ago
Edit Post #290948 Initial revision 2 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)
2 months ago
Edit Post #290905 Post edited:
The final ``` was left visible
3 months ago
Suggested Edit Post #290905 Suggested edit:
The final ``` was left visible
(more)
helpful 3 months ago
Comment Post #290907 Is this just a convention, or will it actually break the other way around?
(more)
3 months ago
Edit Post #290889 Initial revision 3 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)
3 months ago
Edit Post #290683 Post edited:
3 months ago
Edit Post #290684 Initial revision 3 months ago
Answer A: How to surround jinja expression with curly brackets?
You can separate the curly brackets with spaces, and instruct jinja to remove them afterwards: `{ {{- jinjaexpression -}} }`. That way the outer curly brackets are left untouched. The minus signs strip whitespace from their respective sides of the template. It's briefly mentioned in the documentat...
(more)
3 months ago
Edit Post #290683 Initial revision 3 months ago
Question How to surround jinja expression with curly brackets?
A jinja template expression starts and ends with double curly brackets, which the templating engine consumes. But what if you need a single pair of curly brackets left in the output? Something like this: `{{{ jinjaexpression }}}` --> `{jinjaoutput}` Of course the above doesn't work because jinj...
(more)
3 months ago
Edit Post #290593 Post edited:
markdown
4 months ago
Edit Post #290593 Post edited:
Wording
4 months ago
Edit Post #290592 Post edited:
4 months ago
Edit Post #290593 Post edited:
4 months ago
Edit Post #290593 Post edited:
4 months ago
Edit Post #290593 Initial revision 4 months ago
Answer A: Do the elements of 'required' array need to be defined in 'properties' dictionary in JSON schema?
According to my reading of the JSON Schema Spec, the answer is no. `required` array can contain elements which are not in the properties `dictionary`. The example schema in question seems to be valid. Semantically it means that the `cookies` property must exist for the JSON to pass validation, ...
(more)
4 months ago
Edit Post #290592 Initial revision 4 months ago
Question Do the elements of 'required' array need to be defined in 'properties' dictionary in JSON schema?
In a JSON schema, do the `required` properties need to be a subset of `properties`? E.g. is this a valid schema, even though `cookies` isn't mentioned in `properties`? ```json { "type": "object", "properties": { "tea": { "type": "string" } }, "required": [ "...
(more)
4 months ago
Edit Post #290584 Initial revision 4 months ago
Question 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?
(more)
4 months ago
Comment Post #290488 I'm guessing Software Development just acts as a "default tech community" when there's not a precise match available in Codidact. Given the options available, posting here seems reasonable to me.
(more)
4 months ago
Comment Post #290300 @#53526 What would you suggest instead?
(more)
5 months ago