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 H_H
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #290786 |
> what guarantees does Bash make about order of :- Parameter Expansion when it is not in POSIX mode?
Keine. Es steht nichts in der Dokumentation.
Frag am besten bei GNU selber nach: help-bash@gnu.org
Diese könnten die offizielle Dokumentation erweitern was zukünftige Änderungen unwahrscheinl... (more) |
— | 3 months ago |
Comment | Post #281551 |
Doesn't answer the question: Why do you want to prevent zalgo text?
Do you restrict other characters? Which one? Or do you have a whitelist? Why do you prevent other characters?
The answer can vary a lot depending on the why and what you already do. (more) |
— | 5 months ago |
Comment | Post #281551 |
Why do you want to prevent your users from using it? I mean, you already accept unicode, with support for many many languages (including different text directions, emoji, ...), why stop this form of text? (more) |
— | 5 months ago |
Comment | Post #290032 |
Try:
```
$ cd "$(mktemp -d)"
$ git init
Leeres Git-Repository in /tmp/tmp.pBN57TpCk0/.git/ initialisiert
$ echo -e "test-123\nline 2\nline 3" > foo.txt
$ git add --patch foo.txt
No changes.
```
git just ignores the `add` command.
Makes no difference if the repository already has commi... (more) |
— | 7 months ago |
Comment | Post #289928 |
> The problem is not the forced push
Iizuki asked to avoid the forced push. That is sometimes possible. That was the only thing i addressed. If it solves any problem or not is a different story. (more) |
— | 7 months ago |
Comment | Post #289928 |
You could also go to the server and do there the same, that would avoid the need for a forced push. (more) |
— | 7 months ago |
Comment | Post #289573 |
I don't see the benefit of exiting the python interpreter. He said
> The task can be a Python method
So for me it clearly seems to be a reasonable suggestion to do it all in python. Of course not the only way to solve it, but one that works independently of the OS or OS-agnostic.
As far as i ... (more) |
— | 9 months ago |
Comment | Post #289563 |
For a normal file system, the kernel nor the file system do care about the encoding (there is a exception for file systems that specify a encoding*). Only a tiny fraction of applications care, since even most applications handle them as a string of bytes. And applications that show it to the user als... (more) |
— | 9 months ago |
Comment | Post #289554 |
Why do you need to convert them? Do you access the same system? The same NAS? Do you have a software where you have projects and need to combine multiple files and you need to have a way to store the paths so the same project can be opened on different machines? .... (more) |
— | 9 months ago |
Comment | Post #289554 |
Well, there are special filenames in Windows such as `CON`, `COM`, and `NUL`. If you have such a filename you need a bit more logic to convert them. For example `CON2` would be something like `/dev/ttyS1`, `/dev/ttyUSB0`, `/dev/ttyAMA0` .... You probably shouldn't use this filenames anyway. (more) |
— | 9 months ago |
Comment | Post #289554 |
Posix accepts any character (means any byte value) in filenames except `'/'` and `NULL`. The escaping of spaces are only needed for things like shell scripts, so the shell doesn't split the path at the `' '`.
AFAIK winepath from the Wine project, also doesn't escape spaces when converting a Window... (more) |
— | 9 months ago |
Comment | Post #278895 |
Add a newline before the `{` and you don't wast any lines.
For example:
```
while(arr[index] != 0)
{ index++; }
```
It is safer, uses less lines, easier to read than any of your mentioned examples.
(more) |
— | 9 months ago |
Comment | Post #289415 |
Then, please remove that claim. Saying that `goto` leads to spaghetti is not true. The by far most spaghetti code i ever came across didn't use a single `goto`. If a code is spaghetti has nothing to do with using `goto` or not.
By the way, you already can declare new variables after a `case`-lab... (more) |
— | 9 months ago |
Comment | Post #289415 |
> Arguably nobody should be writing labels (example:) to begin with, since the main use of labels is goto spaghetti programming.
Why is the use of `example:` wrong and why do you think it has to lead to spaghetti code? (more) |
— | 9 months ago |