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 Canina
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #292162 |
For this usage, rather than simply styling `<p>` elements, you should probably instead use either [`<s>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s) or [`<ins>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins)/[`<del>`](https://developer.mozilla.org/en-US/docs/Web/HTM... (more) |
— | 4 months ago |
Comment | Post #290780 |
The question title asks "why doesn't?", which requires knowledge on the reasoning of the designers to be answered.
The question body appears to ask "how to?", postulating an issue and asking how to overcome that specific issue.
Which are you interested in? (more) |
— | 9 months ago |
Edit | Post #289893 | Initial revision | — | about 1 year ago |
Answer | — |
A: How to provide meaningful names for emails in Maildir? This is pretty much exactly what `formail` is good at. Specifically useful for this case, `formail` lets you extract headers, given an email message on RFC 822-esque format. In bash, if you have the name of a Maildir message file in `$FILE`, you can do something like this: $ FROM="$(form... (more) |
— | about 1 year ago |
Comment | Post #288257 |
There is very likely no need for (explicit) temporary files if you are using bash. Instead, you might try:
comm <(grep -r . -e 'foo') <(grep -r . -e 'bar') -12
which should have the same effect. (more) |
— | over 1 year ago |
Edit | Post #288256 | Initial revision | — | over 1 year ago |
Answer | — |
A: grep AND search for multiple words in files Your `grep` invocation will first search for files which contain `foo` and print a list of the lines from each which contain the word `foo`; the second `grep` invocation will take this list and filter it down to only those lines of output which also contain `bar`. A complicating factor is that XML... (more) |
— | over 1 year ago |
Edit | Post #287552 |
Post edited: |
— | almost 2 years ago |
Edit | Post #287552 | Initial revision | — | almost 2 years ago |
Answer | — |
A: How to proportionally convert a number in the range of -1 and 1 to a number in the range of 0 and 319 My initial approach would be to increase `n` by 1 (thus shifting the original range from -1..+1 to 0..+2), turn that range into 0..+1, and then simply map from that to your 0..+319 output range. float result = (n+1)/2 319; This will map -1 to 0; 0 to 159.5; +1 to 319; and your example +0.1... (more) |
— | almost 2 years ago |
Comment | Post #287009 |
@#53177 `.local` is reserved for mDNS (RFC 6762) which is restricted-scope.
@#56971 If you aren't actually running mDNS on your network, I recommend migrating to `.home.arpa` instead of `.local`. See RFC 8375. Using `.local` outside of a mDNS-only context can lead to name resolution issues. (more) |
— | about 2 years ago |
Comment | Post #286974 |
@#53320 C and C++ are two distinct languages that happen to use partly similar syntax, in no small part due to a shared history. My firm opinion is that, despite the common usage of "C/C++" and that the two sometimes have very similar semantics, they should not be casually lumped together any more th... (more) |
— | about 2 years ago |
Comment | Post #286504 |
I agree that eight decimal places is silly and, really, excessive.
I also think that this is one of those things that hasn't bothered anyone enough to make them fix it.
I also want to point out (hint, hint) that Qpixel, which is the software that runs Codidcat (and which is named that way for h... (more) |
— | about 2 years ago |
Comment | Post #286863 |
@#8046 In this case I would say no, not really. You can have a GNU userland with or without Linux, and you can have Linux with or without a GNU userland. I would expect that you can also have a GNU kernel (Hurd) with or without the GNU userland. In terms of abstraction hierarchies, GNU, Linux and Hur... (more) |
— | over 2 years ago |
Comment | Post #286852 |
@#56342 Good point. Edited. (more) |
— | over 2 years ago |
Edit | Post #286852 |
Post edited: |
— | over 2 years ago |
Edit | Post #286863 | Initial revision | — | over 2 years ago |
Answer | — |
A: Renaming GNU/Linux tag to gnu All three obvious current possibilities are problematic, but for different reasons. Ignoring the matter of how to format the tag name for a moment... GNU/Linux focuses on one (admittedly very important) part of the userland, plus the kernel, while ignoring other (also important) parts of the ... (more) |
— | over 2 years ago |
Edit | Post #286852 | Initial revision | — | over 2 years ago |
Answer | — |
A: How to manage user-specific application data on Linux? The traditional approach is to create either a single dotfile, or a single dot-directory, directly under the user's home directory, named for your application. Thus `/.thromblemeisteradmin` (which could be a plain file or a directory containing any number of files). Sometimes a directory has a name s... (more) |
— | over 2 years ago |
Comment | Post #286207 |
@#56594 Certainly fair enough. I was trying to otherwise stay as close as possible to OP's code, for ease of comparison. (more) |
— | over 2 years ago |
Edit | Post #286207 | Initial revision | — | over 2 years ago |
Answer | — |
A: How to delete contents of a specific field, if it matches a pattern and there is nothing else in the field The awk `gsub` function takes as its first argument a regular expression indicating the substring to be replaced, and replaces a matching substring with the value of the second argument, which is the replacement string. Since your regular expression, `/-/`, is not anchored, it will match anywhere ... (more) |
— | over 2 years ago |
Edit | Post #286163 |
Post edited: |
— | over 2 years ago |
Comment | Post #286163 |
To say that something "didn't work" isn't very specific nor particularly helpful. What exactly did happen? The code you include doesn't seem to call any method named `password_verify`.
Can you trim this down to a minimal, working (or in your case non-working) example that illustrates the difficult... (more) |
— | over 2 years ago |
Suggested Edit | Post #286163 |
Suggested edit: (more) |
helpful | over 2 years ago |
Edit | Post #286139 | Initial revision | — | over 2 years ago |
Answer | — |
A: C++ exit code -1073740940 Nothing. Or anything. Or whatever you want it to mean. As a general rule of thumb: If you explicitly exit from a program with a specific exit status, then you know the meaning, or set of meanings, of that exit status value. This knowledge will inform your answer. If you don't exit fr... (more) |
— | over 2 years ago |
Comment | Post #285942 |
The developer tools in Firefox also work as you describe for Chrome for these purposes, except that the tooltip for the button is "Pick an element from the page". (more) |
— | almost 3 years ago |
Comment | Post #285899 |
@#8196 I agree with that reasoning. I simply wanted to provide the addendum that `void*` *was* supported in (at least one) pre-C89 implementation(s). (more) |
— | almost 3 years ago |
Comment | Post #285899 |
My copy of the Borland Turbo C 2.0 Reference Guide lists malloc as `void *malloc(size_t size)` and specifies "malloc is available on UNIX systems and is compatible with ANSI C". The book carries a copyright year of 1988, while Wikipedia [indicates](https://en.wikipedia.org/wiki/ANSI_C#C89) that the C... (more) |
— | almost 3 years ago |
Comment | Post #285865 |
The question has been reposted on [Power Users Codidact](https://powerusers.codidact.com/posts/285868). (more) |
— | almost 3 years ago |
Edit | Post #285807 |
Post edited: |
— | almost 3 years ago |
Suggested Edit | Post #285807 |
Suggested edit: (more) |
helpful | almost 3 years ago |
Comment | Post #285735 |
Could this be split by separating the question ("what should be our take on UI/UX questions?") and your specific proposal ("this is what I feel should be our take on such questions")? That would make it much clearer what votes mean, especially if other proposed policies emerge. (more) |
— | almost 3 years ago |
Edit | Post #285728 |
Post edited: |
— | almost 3 years ago |
Suggested Edit | Post #285728 |
Suggested edit: (more) |
helpful | almost 3 years ago |
Comment | Post #285620 |
For testing, have you tried splitting the `if` statement in two? So instead of
if (event.ctrlKey && event.altKey && event.key === 'l' || event.ctrlKey && event.altKey && event.key === 'ך') {
/* ...code... */
}
you might have
if (event.ctrlKey && event.altKey && event.key ... (more) |
— | almost 3 years ago |
Edit | Post #285563 | Initial revision | — | almost 3 years ago |
Answer | — |
A: Appropriate HTTP status code for "user confirmation required" I doubt that there is an actual standard HTTP response code to indicate exactly what you're looking for. `202` (Accepted) is close, but doesn't really seem to me to be about a situation where the client should resubmit the request; by the definition in the RFCs, it's more of a "the request has been a... (more) |
— | almost 3 years ago |
Edit | Post #285489 |
Post edited: |
— | almost 3 years ago |
Suggested Edit | Post #285489 |
Suggested edit: (more) |
helpful | almost 3 years ago |
Comment | Post #285472 |
Just something you might want to consider: If, as a developer, you're annoyed by the popup, consider whether visitors/users might also be annoyed by it, especially if (as would seem to be the case based on your problem statement) there is no easy way to dismiss it. (more) |
— | almost 3 years ago |
Comment | Post #285259 |
Code Golf Codidact was launched about three months after this question was posted. https://meta.codidact.com/posts/41993/history (more) |
— | almost 3 years ago |
Edit | Post #285148 |
Post edited: revert to content from revision 4 |
— | almost 3 years ago |
Comment | Post #285183 |
As it stands, this question is rather broad. We're not here to write your code (do your homework) for you. However, if you can name one SPECIFIC issue that you are having difficulties with, that's a different matter. Can you edit your question to narrow it down to something specific, rather than a br... (more) |
— | almost 3 years ago |
Edit | Post #285176 |
Post edited: minor Markdown edits |
— | almost 3 years ago |
Comment | Post #285148 |
Please don't delete your question just because you've been able to solve the problem. Doing so invalidates the work by others in providing answers. (more) |
— | almost 3 years ago |
Suggested Edit | Post #285148 |
Suggested edit: revert to content from revision 4 (more) |
helpful | almost 3 years ago |
Suggested Edit | Post #285176 |
Suggested edit: minor Markdown edits (more) |
helpful | almost 3 years ago |