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 John C‭

Type On... Excerpt Status Date
Comment Post #296220 Did I say "use functions"? I did not. The question says: > ...none of the answers are showing a way to perform actual _rounding_ - rather, they are doing _flooring_ to the nearest integer. And the point that, if a programmer can find the floor, then they can round, doesn't change.
(more)
4 months ago
Comment Post #296206 Oh, sorry! Too long in the space, I guess. I strongly recommend [Simple English Wikipedia's article](https://simple.wikipedia.org/wiki/Halting_problem) on the topic, straightforward while still giving a pretty good overview of Turing's proof that it's impossible to solve in the general case. (...
(more)
4 months ago
Edit Post #296220 Initial revision 4 months ago
Answer A: Compile-time rounding with the pre-processor
If you can truncate (get the `floor()` of a number), then you can round the number by adding 0.5 first. Or, I suppose that, for the sake of completeness, you add "the equivalent of 0.5," since a given program might not represent the values in decimal or you might want to round to a non-ones posi...
(more)
4 months ago
Comment Post #296206 The superficial answer (because the full answer probably fills thousands of research papers) is that security problems almost all come from interactions, so you'd need to trace through all possible paths through code, which runs afoul of the Halting Problem (that you can't know in advance if a pr...
(more)
4 months ago
Edit Post #296206 Initial revision 4 months ago
Answer A: How do websites built by website builders defend security threats or follow secure coding?
My understanding (from sometimes working on the older form) is that your instinct hits pretty close to the mark. It often depends on what you need and (increasingly importantly) how rigid a system you have. For a "what you need" example, consider Stripe. You have an account with them, and yo...
(more)
4 months ago
Edit Post #295207 Initial revision 9 months ago
Answer A: Link to Markdown line on Bitbucket
It looks like they do have...something. From : > URI Template for src > > `{+bitbucket}{/owner, repositoryname}/src{/commitish}{/filepath}{?fileviewer}{#fileline}` Despite the flakiest syntax for describing a URL that I have ever seen, up to the query string represents a normal URL to a ...
(more)
9 months ago
Edit Post #295106 Initial revision 10 months ago
Answer A: Creating PDF from HTML on Debian Bookworm; tools?
I originally didn't bother to mention it because I have typically used it from Pandoc, making it equivalent to LaTeX. However, Weasyprint both works as Pandoc's alternative HTML-to-PDF path and runs standalone, as `weasyprint input.html output.pdf`, plus assorted options if you need something mo...
(more)
10 months ago
Comment Post #293984 Typo fixed. Thanks! On the calculus, I agree that it's not needed in the strictest sense, but I - maybe because of a background coming from and teaching at an engineering school - have found it easier to lead students through, that way. Assuming that they've taken calculus, they've already e...
(more)
over 1 year ago
Edit Post #293984 Post edited:
Fixed variable
over 1 year ago
Edit Post #293984 Initial revision over 1 year ago
Answer A: What is the correct cost formula for the average case in insertion sort algorithm?
The difference (and the page that you cite actually does mention it, even if broadly) is that algorithmic analysis has interests and (arguably) traditions that most people find counter-intuitive. Specifically, an algorithm's complexity represents the asymptotic nature of how the resource usage (...
(more)
over 1 year ago
Comment Post #293932 Ah, thanks! That was the missing piece. For those coming into this with a similar problem, I grabbed one of the [Snappy implementations](https://google.github.io/snappy/) (the C version, since I didn't see Rust until later) and hacked together a program to read from `stdin` and... Actually, no. ...
(more)
over 1 year ago
Edit Post #293929 Post edited:
Fix typos and clarify
over 1 year ago
Edit Post #293929 Initial revision over 1 year ago
Question Extracting Firefox Local Data
How does one parse/decode/extract information stored by a web page in Firefox's browser local storage without the browser? So far, I've worked out that the data lives at `/.mozilla/firefox/${profile}/storage/default/${site}/ls/data.sqlite`, where the site looks something like `https+++software...
(more)
over 1 year ago
Edit Post #293680 Initial revision over 1 year ago
Answer A: Why is SQL usually written in CAPS?
Since the tradition doesn't have any enforcement anywhere, we can't necessarily pinpoint a single reason, but it probably has a lot to do with the available technology of the early 1970s when Chamberlain and Boyce put together the original SEQUEL. Specifically, punch cards and teletype machines ...
(more)
over 1 year ago
Edit Post #291708 Initial revision over 2 years ago
Answer A: Where to place digit separators in C23?
This probably makes for a thoroughly unsatisfying answer, but there's probably far stronger cultural pressure than technical pressure. In European-derived cultures, we mostly group numbers by powers of one thousand as you suggest, and anybody doing something else should either have an extremely ...
(more)
over 2 years ago
Comment Post #291557 Exactly, and I apologize for the imprecise term. By "private," I only mean some space where it's not quickly discoverable by the general community. You're absolutely right that it shouldn't ever be *unavailable* to the public, or else that directly invites abuse.
(more)
over 2 years ago
Edit Post #291557 Initial revision over 2 years ago
Answer A: Don't close questions for lack of detail/confusion
As a newcomer here, I'd like to suggest two additional issues that weigh in favor of closing unworkable questions. First, a site that wants to grow its community needs to moderate its content. If not, prospective users will get one look at a pile of garbage questions with no activity and turn...
(more)
over 2 years ago
Edit Post #291470 Initial revision over 2 years ago
Answer A: Testing an opaque type's internals
I'd propose (and have generally used, back when I worked on C projects) a fourth option that I don't think gets too far out of line. If I understand the situation correctly, that you want to test how an "object" reacts under a barrage of test conditions, independent of the rest of the software, ...
(more)
over 2 years ago
Edit Post #291459 Initial revision over 2 years ago
Answer A: How to sort the output of meta / slash commands in `psql`?
It's been a while, but the answer is "yes and no," I believe. No: The describe-schema command doesn't (last I heard) allow any modification. Yes: The describe-schema command also doesn't do anything that a `SELECT` statement from `informationschema` doesn't do, so something like this shou...
(more)
over 2 years ago