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 #290684 | Initial revision | — | 11 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) |
— | 11 months ago |
Edit | Post #290683 | Initial revision | — | 11 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) |
— | 11 months ago |
Edit | Post #290593 |
Post edited: markdown |
— | 11 months ago |
Edit | Post #290593 |
Post edited: Wording |
— | 11 months ago |
Edit | Post #290592 |
Post edited: |
— | 11 months ago |
Edit | Post #290593 |
Post edited: |
— | 11 months ago |
Edit | Post #290593 |
Post edited: |
— | 11 months ago |
Edit | Post #290593 | Initial revision | — | 11 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) |
— | 11 months ago |
Edit | Post #290592 | Initial revision | — | 11 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) |
— | 11 months ago |
Edit | Post #290584 | Initial revision | — | 11 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) |
— | 11 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) |
— | 12 months ago |
Comment | Post #290300 |
@#53526 What would you suggest instead? (more) |
— | about 1 year ago |
Edit | Post #290301 | Initial revision | — | about 1 year ago |
Answer | — |
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. (more) |
— | about 1 year ago |
Edit | Post #290300 | Initial revision | — | about 1 year ago |
Question | — |
What is the default port number of MariaDB? What is the default port number of MariaDB database server? (Remembering defaults is surprisingly hard since usually you don't need to specify them..) (more) |
— | about 1 year ago |
Edit | Post #290240 | Initial revision | — | about 1 year ago |
Answer | — |
A: How to run Gitlab CI jobs only in specific branches? Compare `$CICOMMITBRANCH` to your desired branch name in `rules`: ```yaml .gitlab-ci.yml stages: - test - deploy This job will run always. test-job: stage: test image: bash script: - echo Test successful! deploy-job: stage: deploy rules: # Run only in main... (more) |
— | about 1 year ago |
Edit | Post #290239 | Initial revision | — | about 1 year ago |
Question | — |
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`? (more) |
— | about 1 year ago |
Edit | Post #290189 | Initial revision | — | about 1 year ago |
Answer | — |
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 for this. Or e.g. in Gitlab you can just navigate to Project > Pipelines and click `Run pipeline`. (more) |
— | about 1 year ago |
Comment | Post #290188 |
Thanks for the response! Force pushing with lease is a good addition. It can be done from the cli also: `git push --force-with-lease` (more) |
— | about 1 year ago |
Edit | Post #290176 |
Post edited: Tags and title |
— | about 1 year ago |
Edit | Post #290177 | Initial revision | — | about 1 year ago |
Answer | — |
A: How to compare a git stash to the current working tree? Well it was easier than I thought: ```bash 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 versa with removed things. If this sounds counterintuitive, you can reverse it with th... (more) |
— | about 1 year ago |
Edit | Post #290176 | Initial revision | — | about 1 year ago |
Question | — |
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 branch at the time of stashing. There's `git stash show`, but it only displays the differences to th... (more) |
— | about 1 year ago |
Comment | Post #290099 |
Yes, I wouldn't recommend writing a general purpose web server yourself, as there are good open source options to choose from. It's more of a question of how to implement the web application: As a separate process or baked into the server itself? (more) |
— | about 1 year ago |
Edit | Post #290076 |
Post edited: Forgot a word.. |
— | about 1 year ago |
Comment | Post #290066 |
So you hold that there's no point in working with gateway protocols (CGI etc.), if you anyway have a reverse proxy in front (and your tooling doesn't force you to do so)? (more) |
— | about 1 year ago |
Edit | Post #290076 |
Post edited: Added link |
— | about 1 year ago |
Edit | Post #290076 | Initial revision | — | about 1 year ago |
Answer | — |
A: How to use docker hub with podman? Add the following to `/etc/containers/registries.conf`: ```toml unqualified-search-registries = ["docker.io"] [[registry]] location = "docker.io" ``` Now you can pull just like you would in docker: ```bash podman pull dshanley/vacuum ``` Just note that podman defines a bunch of al... (more) |
— | about 1 year ago |
Edit | Post #290075 | Initial revision | — | about 1 year ago |
Question | — |
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) ```bash podman pull docker.io/dshanley/vacuum ``` But how to do it without the `docker.io` prefix? (more) |
— | about 1 year ago |
Comment | Post #290066 |
Yes, a reverse proxy is a good idea, but this doesn't really address the architectural dilemma of the service behind it.
An interesting thought: A reverse proxy can be remarkably similar to the web server in path 1. You could say that it's just a difference of protocol (HTTP or e.g. CGI). But as ... (more) |
— | about 1 year ago |
Edit | Post #290060 |
Post edited: Grammar |
— | about 1 year ago |
Edit | Post #290060 |
Post edited: Grammar |
— | about 1 year ago |
Edit | Post #290060 | Initial revision | — | about 1 year ago |
Question | — |
Using an existing web server vs writing your own When writing a dynamic web service, you broadly speaking have two paths: 1. Use an existing web server (e.g. Apache, Nginx or Lighttpd) to handle the "raw" web requests and implement your own code as a separate process that communicates with the server using a gateway protocol (e.g. FastCGI). A ty... (more) |
— | about 1 year ago |
Comment | Post #290032 |
Good mnemonic still! (more) |
— | about 1 year ago |
Edit | Post #290032 |
Post edited: Don't highlight the output of git patch, as it looked silly. |
— | about 1 year ago |
Edit | Post #290032 | Initial revision | — | about 1 year ago |
Answer | — |
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: ```bash git add --patch ``` It will split the file into hunks and interactively ask which one's to add. It has a plethora of options but selecting `?` explains them nicely: ```txt (1/2) Stage this hunk [y,n,q,a,d,j... (more) |
— | about 1 year ago |
- ← Previous
- 1
- 2
- 3
- Next →