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 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
Edit Post #290279 Post edited:
The unit symbol for second is s not sec . Please use s or write the complete word: second. Thank you. https://www.bipm.org/en/publications/si-brochure
6 months ago
Suggested Edit Post #290279 Suggested edit:
The unit symbol for second is s not sec . Please use s or write the complete word: second. Thank you. https://www.bipm.org/en/publications/si-brochure
(more)
helpful 6 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
Edit Post #289563 Post edited:
7 months ago
Edit Post #289563 Post edited:
8 months ago
Edit Post #289563 Post edited:
8 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)
8 months ago
Edit Post #289573 Initial revision 8 months ago
Answer A: How can I schedule a later task in Python?
While the other answers rely on external programs, you can do the same inside python. Using `time.sleep()` If you don't need to do any other tasks during this 10 min. ``` #!/usr/bin/env python3 import time def doThisIn10min(): # Replace this with the function you need to do in 10min...
(more)
8 months ago
Edit Post #289563 Post edited:
8 months ago
Edit Post #289563 Post edited:
8 months ago
Edit Post #289563 Post edited:
8 months ago
Edit Post #289563 Post edited:
8 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)
8 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)
8 months ago
Edit Post #289563 Initial revision 8 months ago
Answer A: How to convert Dos paths to Posix paths in Powershell
TL;DR: Use `wslpath` and hope for the best. You can use it like this in Powershell: `wsl wslpath -u 'C:\\some\\path\\to\\folder\\or\\file.txt' ` Long answer Converting them is hard. There is windows tool `wslpath` for Windows with WSL, but that may not work in every case. There is also `wi...
(more)
8 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)
8 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)
8 months ago
Edit Post #289502 Post edited:
9 months ago
Edit Post #289502 Initial revision 9 months ago
Answer A: OpenGL: Pass a double vector from vertex shader to fragment shader
Found a workaround: Instead of doing the calculating in the vertex shader, do it in the fragment shader. The precision error only occurs because the different vertexes have a `uv` value that is close together relative to the absolute value of `uv`. Which causes multiple fragments to have the same ...
(more)
9 months ago
Edit Post #289501 Post edited:
Add description and image to explain why `float` isn't precise enough.
9 months ago
Edit Post #289501 Initial revision 9 months ago
Question OpenGL: Pass a double vector from vertex shader to fragment shader
TL;DR: How to pass a interpolated `double` vector, such as a `dvec2`, from the vertex shader to the fragment shader? I have a vertex shader. In this the output variable `out vec2 uv;` is set. And i have a fragment shader, in this the (intperpolated) input variable `in vec2 uv;` is expected. This w...
(more)
9 months ago
Edit Post #289480 Post edited:
9 months ago
Edit Post #289480 Initial revision 9 months ago
Answer A: Is omitting braces for single statements bad practice?
While there are already good answers, i want to give yet another reason to always use `{}`: Macros. Lets consider this code: ``` #include #define FOO(n) puts(n[1]); puts(n[0]); int main(int argc, char argv) { if(argc>1) FOO(argv); } ``` You may expect that the code insid...
(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