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 Canina‭

Type On... Excerpt Status Date
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)
3 months 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)
11 months 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)
over 1 year 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)
over 1 year 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)
over 1 year 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)
almost 2 years ago
Comment Post #286852 @#56342 Good point. Edited.
(more)
almost 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)
about 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)
about 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)
over 2 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)
over 2 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)
over 2 years ago
Comment Post #285865 The question has been reposted on [Power Users Codidact](https://powerusers.codidact.com/posts/285868).
(more)
over 2 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)
over 2 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)
over 2 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)
over 2 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)
over 2 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)
over 2 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)
over 2 years ago
Comment Post #285105 It's probably worth noting that *as used here*, function pointers don't really bring any benefit and do introduce potentially significant complexity; but there are some tasks that are made significantly easier by using them. As one example of the latter, consider something like a dynamic `switch()` w...
(more)
over 2 years ago
Comment Post #284778 I'm not sure what the question actually is. What part, exactly, are you having difficulties with? Accessing the data returned by the database query? Deciding where to split the list in the display output? Etc. Please edit your question to describe more precisely what you need help with.
(more)
over 2 years ago
Comment Post #284357 > If I have to install only 37.2 MB in 264 MB than this package should take only 37.2 MB 100 MB in average or in higher 264 MB. But it is taking 413 MB. What?! Really!? It's completely mind-blowing to me. That's not what apt-get is telling you. It's saying that out of the total of 264 MB of archiv...
(more)
over 2 years ago
Comment Post #284357 I haven't looked at the list of files in each respective package, but I somehow doubt that `/usr/lib/jvm/java-16-openjdk-amd64/lib/libawt_xawt.so` would be provided by `openjdk-11-jdk`. "16" vs "11" is the giveaway here.
(more)
over 2 years ago
Comment Post #284232 You say that "since it was deprecated then there must be another alternative", but something can be deprecated without being replaced by anything else. While it's generally better if a thingamajic that is deprecated can be replaced by a different thromblemeister to accomplish the same goal, sometimes...
(more)
over 2 years ago
Comment Post #284078 @#8176 GPG would almost certainly refer to GnuPG, which is the GNU Privacy Guard, which is the GNU implementation of the OpenPGP standard, which in turn is based on the venerable Pretty Good Privacy originally by Zimmermann, the first versions of which date back to the early 1990s. https://www.gnupg....
(more)
over 2 years ago
Comment Post #283615 You say that you want a "vanilla Javascript" solution, but *why?* You say that you are already working with PHP; is there some particular reason why you want to use Javascript, when PHP can do what you're after server-side at minimal additional cost? Also, is the intention for the Javascript in quest...
(more)
over 2 years ago
Comment Post #283177 Unrelated to the question you're asking, but I do suggest keeping in mind that while Drupal minor upgrades are usually painless, major version upgrades can *intentionally* be a real pain, especially if you use plugins. You may want to give some consideration to this before you commit to Drupal, *espe...
(more)
almost 3 years ago
Comment Post #283015 @#53305 Which motivated me to suggest [Allow comment thread owner to delete comment threads when only comments from the comment thread owner remain undeleted](https://meta.codidact.com/posts/283054).
(more)
almost 3 years ago
Comment Post #283015 @#53305 No, that wasn't the case at all. There is now an answer.
(more)
almost 3 years ago
Comment Post #283052 You write in the beginning of the answer that you "assume that each Content-Security-Policy: line you have is a separate CSP header". **You assume correctly.** I also updated the question to hopefully make that more clear.
(more)
almost 3 years ago
Comment Post #283015 @#53196 **Finally!** That really was the problem. Would you be so kind as to post that as an answer, ideally even with a reference to a standard explicitly backing up the claim that default-src applies only within the single Content-Security-Policy HTTP header where it appears and not across CSP HTTP...
(more)
almost 3 years ago
Comment Post #283015 @#53196 On what do you base the statement (as I interpret it, at least) that the `default-src` would further restrict a `style-src`? That would make `default-src` not a *fallback* for when a more appropriate CSP directive isn't provided (which MDN seems to me to say), but a *maximum ever possible* pe...
(more)
almost 3 years ago
Comment Post #282670 This looks like a homework exercise. A large part of what those are about is to familiarize you with various concepts. In this case, you have a problem, so aside from simply implementing the specified functionality, you also need to debug your code to figure out what's wrong with it. Therefore: pleas...
(more)
almost 3 years ago
Comment Post #282599 You have edited the question to include the answer. Please add the answer as an answer instead of having it in the question.
(more)
almost 3 years ago
Comment Post #282566 https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html even specifies for `-ansi` that "In C mode, this is equivalent to `-std=c90`. In C++ mode, it is equivalent to `-std=c++98`." Unless you're compiling code that is 20-30 years old by now, that's almost certainly not what you want. And in the un...
(more)
almost 3 years ago
Comment Post #278907 More to the point regarding aviation safety, look at just about any accident report; it'll list some number of recommendations that would have served to prevent the accident had they been in place, and are made as recommendations because the accident investigators believe that having them in place wi...
(more)
over 3 years ago
Comment Post #278907 @Lundin I very strongly suspect that even the "experts ... agreeing on how things should be done" is based on experience regarding what has worked historically to reduce failures. I also don't know about DO-178 specifically, but a lot of at least aviation safety standards is more about *what* to acco...
(more)
over 3 years ago
Comment Post #278907 @MartinBonner Since Python to my knowledge doesn't use braces at all to delimit block/compound statements, I think it's a somewhat irrelevant example to a question about brace styles. Note that the question was originally (and still was when I originally posted this answer) tagged c, c++, java, so cl...
(more)
over 3 years ago
Comment Post #279715 @hkotsubo Maybe https://meta.codidact.com/q/279654? Be sure to check out the posts linked in the comments from that question, too.
(more)
over 3 years ago
Comment Post #279021 The problem with the `someClearlyNamedCondition()`/`takeClearlyNamedAction()` approach is when, to take that action, you need access to a variety of variables that are in scope for the `while` statement, but won't be in scope in a different function. It gets even worse if `takeClearlyNamedAction()` n...
(more)
over 3 years ago
Comment Post #279102 @ghost-in-the-zsh Considering that OP said in a comment to my answer that the point is to not "lock up the DB for a while", I doubt doing it in a transaction would meet the (originally unstated) requirement.
(more)
over 3 years ago
Comment Post #278468 For what it's worth, while it looks reasonable at first glance, my experience is that at least Somewhere Else, using tags to segregate *types* of content (specifically in the case I have in mind, different requirements placed on answers) has worked poorly in practice. A separate category seems likely...
(more)
over 3 years ago
Comment Post #278606 You do give a specific purpose, but I'm still struggling to see how what you're asking for would really help. Usually the only consumers of the objects defined by DDL (tables, views, etc.) are going to be other developers working within the same database; quite often, the external interface to the da...
(more)
over 3 years ago
Comment Post #278405 @cobertos I'm glad it helped.
(more)
over 3 years ago
Comment Post #278395 It seems to me that you might be having IPv4 connectivity issues. Please edit the question to include the output of running `ip -4 route` which will show your IPv4 routing table. Something like `traceroute -4n 8.8.8.8` might also be illustrative. Both should run fine as an ordinary user; no sudo invo...
(more)
over 3 years ago
Comment Post #278061 @luap42 Maybe I simply read too much into it, but OP's examples seem to state the actual *value* of the property in the name of the style for that property. I know that relative dimensions is fairly common in CSS style names, where a "width-8" class makes something twice as wide as a "width-4" class ...
(more)
over 3 years ago
Comment Post #278061 Do note one major difference between what you're describing here and what OP describes in the question: **your example class names are *semantic*, while OP's isn't.** The example in the question is for class names that directly describe the property applied ("has-padding-4" gives a 4 px padding); you...
(more)
over 3 years ago
Comment Post #277184 Besides, at least SQL is decidedly a programming language. It's a declarative rather than an imperative language (say what you want done, not how to get it done -- or, at least, that's the *idea*), but it's not the only declarative programming language in use, although probably one of the most widely...
(more)
almost 4 years ago
Comment Post #277149 You may want to check out [How does Codidact avoid repeating SE's mistakes?](https://meta.codidact.com/questions/39450) on Codidact Meta.
(more)
almost 4 years ago