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 #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) |
— | over 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) |
— | over 3 years ago |
Edit | Post #281663 |
Post edited: Question appears specific to MySQL |
— | over 3 years ago |
Suggested Edit | Post #281663 |
Suggested edit: Question appears specific to MySQL (more) |
helpful | over 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 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) |
— | about 4 years ago |
Question | — |
How can I write an egrep (grep -E) regexp that matches lines containing two stanzas in arbitrary order? I have line-based data on the form ```` x1=y2; a3=b4; c5=d6; ... ```` Matching this with a extended regular expression is fairly straightforward; for example, one can do something not entirely dissimilar from ```` ^([^;]+; )x1=y2; ([^;]+; )c5=d6; ```` to match the `x1=y2` stanza anywh... (more) |
— | about 4 years ago |
Edit | Post #278112 |
Post edited: |
— | about 4 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) |
— | about 4 years ago |
Edit | Post #279113 | Initial revision | — | about 4 years ago |
Answer | — |
A: In MySQL is there a limit to the number of keys in a IN() clause? I'll readily admit I'm not too familiar with MySQL specifically, but personally, I would try to avoid listing all the primary key values in an ad-hoc query. What I would rather do personally is to run a separate query to select the rows to update, and then include a condition that the rows to be u... (more) |
— | about 4 years ago |
Edit | Post #278907 |
Post edited: |
— | about 4 years ago |
Edit | Post #278907 | Initial revision | — | about 4 years ago |
Answer | — |
A: Is omitting braces for single statements bad practice? > While \[the Apple "goto fail bug"\] is pretty interesting, it's anecdotal evidence. I understand that it's still possible to produce bugs like this. One could also reasonably argue that it could have been avoided if they used `else if` instead of `if` or didn't use `goto`. Aviation safety is bui... (more) |
— | about 4 years ago |
Edit | Post #278794 | Initial revision | — | about 4 years ago |
Answer | — |
A: What is our policy on tags? > 1\. What type of tags will we allow? (Should specific tags like UrlRewrite be allowed?) I would argue that urlrewrite (or perhaps more appropriately since Microsoft renders it as URL Rewrite, url-rewrite) is actually a specific case of the more general concept of url-rewriting. So is, say, mod-r... (more) |
— | about 4 years ago |
Edit | Post #278768 |
Post edited: |
— | about 4 years ago |
Edit | Post #278768 | Initial revision | — | about 4 years ago |
Answer | — |
A: Is an ORDER BY required when looping through MySQL records with LIMIT? Any time an SQL `SELECT` query does not have any explicit ORDER BY clause, I personally find it useful to mentally read it as saying "I don't care about ordering of the output of this query". If you make the decision that you don't care about ordering, then nothing will be affected if the ordering... (more) |
— | about 4 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) |
— | about 4 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) |
— | about 4 years ago |
Comment | Post #278405 |
@cobertos I'm glad it helped. (more) |
— | about 4 years ago |
Edit | Post #278405 | Initial revision | — | about 4 years ago |
Answer | — |
A: dig -6 works but dig -4 does not From the further details you added, it does indeed sound like you have some stale connection state on your system. The fact that you can get DNS replies when you query a DNS server by IPv4 address, but not by host name, strongly suggests a resolver configuration issue, and from what you say, your /et... (more) |
— | about 4 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) |
— | about 4 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 4 years ago |
Edit | Post #278112 |
Post edited: |
— | over 4 years ago |
Edit | Post #278112 | Initial revision | — | over 4 years ago |
Answer | — |
A: Should a salt be stored in the same database as the hash? The purpose of a cryptographic salt is to make the same input (password) hash to different values in different instances, yet retain the hash function's deterministic properties. Salting accomplishes that by concatenating a random value with the password itself before hashing, and storing the value o... (more) |
— | over 4 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 4 years ago |
Edit | Post #277517 |
Post edited: |
— | over 4 years ago |
Edit | Post #277517 |
Post edited: |
— | over 4 years ago |
Edit | Post #277517 | Initial revision | — | over 4 years ago |
Answer | — |
A: Is it unsecure to use a password on the command line to run a MySQL script on Windows? As with every other security-related question, the first step toward answering this is that you'll need to answer for yourself: what are you trying to protect against? Security isn't a binary quantity, it's a continuum; or rather, a set of continuums, one for each potential threat. You aren't eith... (more) |
— | over 4 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) |
— | over 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) |
— | over 4 years ago |
- ← Previous
- 1
- 2
- 3
- Next →