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.

Posts by Canina‭

25 posts
92%
+24 −0
Q&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 accomplish...

posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
89%
+15 −0
Q&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 ha...

posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
88%
+13 −0
Q&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 quant...

posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
86%
+11 −0
Q&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 c...

posted 1y ago by Canina‭  ·  edited 1y ago by Canina‭

Answer
84%
+9 −0
Meta Using Software Codidact as a private community within a company

You can, in a sense, do I believe even better than using Stack Overflow's hosted, proprietary service. You can run your very own instance of the Codidact software (that is, QPixel) locally, on a s...

posted 3y ago by Canina‭

Answer
83%
+8 −0
Q&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...

posted 3y ago by Canina‭  ·  edited 2y ago by Canina‭

Answer
83%
+8 −0
Q&A Why does Firefox block based on a restrictive default-src directive, when more specific, more permissive *-src exist?

I am working on a website which unfortunately uses a mix of linked and inline CSS and Javascript (and, even more unfortunately, I can't do a lot about the use of inline CSS and Javascript), and am ...

1 answer  ·  posted 2y ago by Canina‭  ·  last activity 2y ago by Moshi‭

81%
+7 −0
Q&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 d...

posted 11mo ago by Canina‭

Answer
80%
+6 −0
Q&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...

posted 2y ago by Canina‭

Answer
77%
+5 −0
Q&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 ...

posted 7mo ago by Canina‭

Answer
77%
+5 −0
Q&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. flo...

posted 1y ago by Canina‭  ·  edited 1y ago by Canina‭

Answer
77%
+5 −0
Q&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 cli...

posted 2y ago by Canina‭

Answer
75%
+4 −0
Q&A Hash sum mismatch (only for openjdk-11-jdk)

"Hash Sum mismatch" printed by apt-get on Debian and derivatives means that the file as downloaded had a different cryptographic checksum (hash) than what's listed in the packages list. In this ca...

posted 2y ago by Canina‭

Answer
75%
+4 −0
Q&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 mean...

posted 2y ago by Canina‭

Answer
71%
+8 −2
Q&A How to align my content to the left?

Misconception This isn't so much an issue of left/right alignment, as the browser beginning the rendering of each consecutive block wherever the content of the preceding block ends, instead of pas...

posted 2y ago by Canina‭  ·  edited 8mo ago by meta user‭

Answer
71%
+3 −0
Q&A What is the difference between a decoupled, Headless and RESTful content management system?

Since you ask if a CMS necessarily must be implemented using all three, the answer clearly becomes a theoretical "no" if a CMS can be implemented with anything less than all three, and a practical ...

posted 2y ago by Canina‭  ·  edited 2y ago by Canina‭

Answer
71%
+3 −0
Q&A How to initialize variable assignment in a non-OOP interpreter?

I honestly have no idea why you feel that OOP would be necessary in order to keep track of variable assignments in a language interpreter. People wrote both interpreters and compilers long before o...

posted 2y ago by Canina‭

Answer
66%
+4 −1
Q&A 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...

3 answers  ·  posted 3y ago by Canina‭  ·  last activity 3y ago by hkotsubo‭

Question regex grep
66%
+2 −0
Meta 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...

posted 1y ago by Canina‭

Answer
66%
+2 −0
Meta 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-...

posted 3y ago by Canina‭

Answer
66%
+2 −0
Q&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,...

posted 3y ago by Canina‭

Answer
62%
+3 −1
Q&A How do I filter an array in C?

It looks like filter() effectively takes two arguments; the array to be filtered, and a predicate expression resulting in a boolean indicating whether the entry should be included in the output or ...

posted 2y ago by Canina‭

Answer
60%
+4 −2
Q&A Regarding the implementation of data structures.

Since this is pretty clearly a homework exercise, and the point of those is for you to learn, I'm going to be evil and not spoon-feed the answer to you. However, I will give you some pointers. Fi...

posted 2y ago by Canina‭  ·  edited 2y ago by Canina‭

Answer
50%
+0 −0
Q&A Why would a form value inserted with value property won't be effective?

It works fine for me. Here's a minimal working example: <!DOCTYPE html> <html> <body> <form> <input type="text" name="field" id="field" value="old value"> <i...

posted 2y ago by Canina‭  ·  edited 2y ago by Canina‭

Answer
50%
+0 −0
Q&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...

posted 3y ago by Canina‭

Answer