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 r~~
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #285303 | Initial revision | — | about 3 years ago |
Answer | — |
A: How can I modify the code above to accept string as user input and use strcmp to compare with the contents of the text file & then delete that line? Assuming you're actually looking for a substring of a line in the file and not a word (which would require, as @elgonzo indicated, figuring out how to deal with spacing and word boundaries in general), you should look up information about the function `strstr`. But also, `strstr` wants to accept a... (more) |
— | about 3 years ago |
Edit | Post #285223 | Initial revision | — | about 3 years ago |
Answer | — |
A: Problems with data structures and filestreams. My advice to you is to break this down into smaller problems and try to solve them one at a time, making sure you have a program that can compile and run at each step. First: figure out how to successfully read and write a single book. Write a function that reads book information from stdin and re... (more) |
— | about 3 years ago |
Comment | Post #285169 |
I'm, uh, not sure why I or anyone should take the opinions of unnamed, unlinked SO users more seriously than those of the authors of the very widely used software that I linked. But I think I'm going to check out of this argument now. Reader, make up your own mind how credible this claim is. (more) |
— | about 3 years ago |
Edit | Post #285204 |
Post edited: |
— | about 3 years ago |
Suggested Edit | Post #285204 |
Suggested edit: (more) |
helpful | about 3 years ago |
Edit | Post #285205 | Initial revision | — | about 3 years ago |
Answer | — |
A: How to clear the contents of a file? Simply opening a file for writing (using `fopen`) will clear it (‘truncate to zero length’, per the standard). Only opening a file in read or append mode will preserve its contents. See section 7.21.5.3 of a recent C standard (like this draft) to get it straight from the horse's mouth, or any of t... (more) |
— | about 3 years ago |
Comment | Post #285191 |
It's a badly worded question—the intent is clearly not ‘send an email with Ajax’; it's ‘use Ajax to submit data to the server’. Which is still confused, since ‘Ajax’ is nothing more than a somewhat obsolete name for a collection of web development patterns which includes techniques for submitting dat... (more) |
— | about 3 years ago |
Comment | Post #285169 |
@#8176 The C programmers of libxml [seem to be fine with it](http://www.xmlsoft.org/html/libxml-parser.html).
[As do](https://freetype.org/freetype2/docs/reference/ft2-basic_types.html) the C programmers of the FreeType library.
[And also](https://github.com/python/cpython/blob/f4c03484da59049eb62a... (more) |
— | about 3 years ago |
Comment | Post #285190 |
@#53177, not true; that documentation page has examples of doing so, as does the [`FormData` constructor documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData).
@#36363, what *is* the value of `formToWorkOn`, if not an `HTMLFormElement`? Have you made sure it's not `nul... (more) |
— | about 3 years ago |
Comment | Post #285169 |
Considered *by many* very bad practice, sure. This is a popular, [but not universally-held](https://stackoverflow.com/questions/750178/is-it-a-good-idea-to-typedef-pointers) opinion. (Whether you're more of a C person or a C++ person seems to be somewhat correlated to whether you think typedef'd poin... (more) |
— | about 3 years ago |
Edit | Post #285174 | Initial revision | — | about 3 years ago |
Answer | — |
A: Data structure implementation with Linked lists. ```c struct listNode{ char data; struct listNode nextPtr }; ``` Computer, when I tell you that any region of memory is a struct called `listNode`, that means that the region of memory contains a `char`, which I will read from and write to using the name `data`. The region of memory also... (more) |
— | about 3 years ago |
Edit | Post #285172 |
Post edited: |
— | about 3 years ago |
Edit | Post #285172 | Initial revision | — | about 3 years ago |
Answer | — |
A: How to submit form data with Ajax? See the first example in this section: ```js const form = new FormData(document.getElementById('login-form')); fetch('/login', { method: 'POST', body: form }); ``` To adapt this example to your code, you'll need to change the URL being provided to `fetch` from `'/login'` to the URL of... (more) |
— | about 3 years ago |
Comment | Post #285116 |
Ah, single sign-on: when Facebook is down, every other web app should be too!
(Yes, yes, crotchety farts like me can use site-local passwords for ourselves and let the kids twiddle their thumbs when single points of failure fail. Don't mind me; I'm just raving against the relentless degradation of... (more) |
— | about 3 years ago |
Comment | Post #284962 |
I wouldn't recommend using `display: table-row` to achieve this. It might have the desired effect, but it's more likely to impede understanding of your CSS in the future if you have to change it. `table-row` is one of the [layout-internal display types](https://drafts.csswg.org/css-display/#layout-sp... (more) |
— | about 3 years ago |
Edit | Post #284563 | Initial revision | — | about 3 years ago |
Answer | — |
A: Are there any downsides related to using Maybe or Optional monads instead of nulls? In my opinion, all of the downsides boil down to two objections: It isn't idiomatic (in C# and VB.NET) It's slightly less performant The fact that it isn't idiomatic means that, as you noted, it'll often need to be translated at API boundaries. It also means that your coding style might vary ... (more) |
— | about 3 years ago |
Comment | Post #284260 |
From context, I assume OP means [content management system](https://en.wikipedia.org/wiki/Content_management_system), and I wouldn't have thought to clarify that either. It's not exactly central to understanding the question. (more) |
— | over 3 years ago |
Edit | Post #284264 | Initial revision | — | over 3 years ago |
Answer | — |
A: How to append HTML to the DOM with JavaScript? Use `fetch()` to request the HTML file from the server. Call `.text()` on the `Response` object you get from the `fetch` in order to get the HTML contents as a string. You can then insert the string into a DOM node with `.insertAdjacentHTML()` (which is recommended over anything involving `.innerHTML... (more) |
— | over 3 years ago |
Comment | Post #284184 |
The last sentence in this post (‘Now please differentiate these two deployments like when to use what.’) reads to me as if you're issuing a command, which is a pretty disrespectful way to ask a question here. (more) |
— | over 3 years ago |
Comment | Post #281596 |
Did you try checking `__context__`? (more) |
— | over 3 years ago |
Edit | Post #281589 |
Post edited: |
— | over 3 years ago |
Suggested Edit | Post #281589 |
Suggested edit: (more) |
helpful | over 3 years ago |
Comment | Post #281539 |
@Lundin, I'm not sure I understand you. ‘The way SO does it:’ Are you making the argument that the dog-piling happens regardless of whether the comments are public, and that making them private can't make that worse? I don't see how anything on SE is evidence of the second part of that claim, if so. ... (more) |
— | over 3 years ago |
Edit | Post #281539 |
Post edited: |
— | over 3 years ago |
Edit | Post #281539 | Initial revision | — | over 3 years ago |
Answer | — |
A: How are we supposed to give feedback for poor questions if such comments are deleted? I remember reading @meriton's comments on that question and thinking they were good feedback; if I hadn't seen them there, I would have written something similar. This is also an argument against making question feedback private: which is more likely to make people feel defensive, receiving public... (more) |
— | over 3 years ago |
Edit | Post #281485 |
Post edited: |
— | over 3 years ago |
Comment | Post #281486 |
@Istiak, you are either trolling or profoundly confused about what is on topic for software development. Either way, please ease up. (more) |
— | over 3 years ago |
Edit | Post #281485 |
Post edited: |
— | over 3 years ago |
Edit | Post #281485 |
Post edited: |
— | over 3 years ago |
Edit | Post #281485 | Initial revision | — | over 3 years ago |
Answer | — |
A: What is a typeless programming language? ‘This language doesn't have types’ and ‘This language only has one type’ are English sentences that communicate the same underlying concept: a typeless language doesn't have a way to distinguish categories of values from each other, either statically (before running the program) or dynamically (while... (more) |
— | over 3 years ago |
Edit | Post #281465 | Initial revision | — | over 3 years ago |
Answer | — |
A: Warn of implicit cast in a function's arguments with GCC? From the page you linked: > `-Wconversion` > > Warn for implicit conversions that may alter a value. This includes conversions between real and integer, like `abs (x)` when `x` is `double`; conversions between signed and unsigned, like `unsigned ui = -1`; and conversions to smaller types, like `sq... (more) |
— | over 3 years ago |
Comment | Post #281385 |
On reread, my previous comment maybe comes off like I'm trying to provoke. What I'm trying to do is suggest that you improve this question by sharing more of what you've looked at and why that doesn't satisfy you, or, if you haven't looked at much, by doing that and then coming back with a more speci... (more) |
— | over 3 years ago |
Comment | Post #281385 |
Have you tried answering this question yourself? Maybe looked up the word ‘authentication’ on Wikipedia? Possibly followed a link from that article to a publication from NIST (not international, but it's not clear why you specifically want an international organization's take—and at any rate, that pu... (more) |
— | over 3 years ago |
Edit | Post #281343 | Initial revision | — | over 3 years ago |
Answer | — |
A: How can I find git branches where all branch-local commits are from specific people? From the command line, the following command will give you a list of all authors who have made local-only commits to a branch `some-branch`: git log some-branch --not --remotes --format="%an" And to get a clean list of branches suitable for scripting: git branch --format="%(refname:s... (more) |
— | over 3 years ago |
Edit | Post #281318 | Initial revision | — | over 3 years ago |
Answer | — |
A: Is *nix a formal term? The term is cultural, not technical. From Wikipedia: > There is no standard for defining the term, and some difference of opinion is possible as to the degree to which a given operating system or application is "Unix-like". There do exist standards, most notably the various POSIX standards and... (more) |
— | over 3 years ago |
Edit | Post #281150 |
Post edited: |
— | almost 4 years ago |
Edit | Post #281150 |
Post edited: |
— | almost 4 years ago |
Edit | Post #281150 |
Post edited: |
— | almost 4 years ago |