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

Type On... Excerpt Status Date
Comment Post #291034 You need at least three backticks for more than one line of code. ``` lines of code ``` Single backticks are used for `inline` code sections.
(more)
about 2 months ago
Comment Post #290317 I assume you're talking about the "Keep my email addresses private" setting. I was under the impression that it only affects "web based Git operations"; i.e. anything you do on GitHub itself. It will just block you from pushing commits with your private email (if you check that option), it won't rewr...
(more)
5 months ago
Comment Post #289896 Are you running it as a module?
(more)
7 months ago
Comment Post #289694 I don't really see how it "leaves out the software part entirely". It's a problem that can arise during software development, and has practical and generally implementable solutions. Sure, it doesn't mention a particular language, but we've had [[language-agnostic]](https://software.codidact.com/cate...
(more)
8 months ago
Comment Post #289231 Small correction: declarations aren't statements in C. (Source: https://en.cppreference.com/w/c/language/statements)
(more)
9 months ago
Comment Post #289172 There's actually been quite a bit of work put into getting LLMs to "synthesize laterally related information" and also work with data that wasn't in its training data; for instance "autonomous LLMs" that, given a prompt, can generate further prompts and can look up information via the web in a feedba...
(more)
9 months ago
Comment Post #289104 There's a widget in the sidebar that says "Join us in chat" - that's a discord invite. We eventually want to have on-site chat, but it is currently not a priority.
(more)
9 months ago
Comment Post #288859 There are a few different formatter extensions for Java. Whichever you use probably lets you configure it in the extensions settings, or documents configuration somewhere. For instance, the recommended Extension Pack for Java formatter can be modified through `Java: Open Java Formatter Settings wi...
(more)
10 months ago
Comment Post #288567 See https://meta.codidact.com/posts/278607
(more)
11 months ago
Comment Post #288142 Any particular reason you're writing your own IO trait? Rust provides the `Write` trait which `Stdout` implements, so [you can just pass that in](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d5c663d2062269fbc0d261a5ba27b453)
(more)
12 months ago
Comment Post #287994 I thought that it wouldn't really matter since EF core would handle it for me (I was reading https://learn.microsoft.com/en-us/ef/core/saving/disconnected-entities which is similar to my use case)
(more)
about 1 year ago
Comment Post #287851 You should either just allocate the stuff on the stack, use a smart pointer, or delete your objects (in order of preference).
(more)
about 1 year ago
Comment Post #287682 Try setting a `console.log` and seeing what the value of `secondHand` is Also, `getSeconds` etc. is a function.
(more)
over 1 year ago
Comment Post #287632 Fair enough. In most cases however, it doesn't *really* matter what scope something is in since it's rather rare (and questionable to do) that you want two identically named variables in the same function in the first place. Is it bad? Depends on one's sensibilities. I just wanted to make the case...
(more)
over 1 year ago
Comment Post #287632 I wouldn't go so far as to say that Python's scoping rules are broken. For instance, let's take a simple "Find a value" example: ```py for value in my_list: if some_check(value): result = value # Use result here ``` In other languages, you would declare `result` outside the l...
(more)
over 1 year ago
Comment Post #287136 Does this work? ```zig .{ .{ Inner{.a = '1', .b = true} } ** D2 } ** D1 ``` Seems to work fine, but bear in mind that I don't use zig By the way, I got some compilation errors where I'm not sure what I'm doing wrong: `const Inner = struct { .a: u32, .b: bool };` (`error: expected test, com...
(more)
over 1 year ago
Comment Post #286727 I've updated my answer with some more information @#56802, i hope that it explains what's happening here.
(more)
almost 2 years ago
Comment Post #286433 Created a GitHub issue at https://github.com/codidact/qpixel/issues/795
(more)
almost 2 years ago
Comment Post #286151 Try going back a directory. I imagine that you have some top-level directory for your entire project, right? You should compile from there.
(more)
about 2 years ago
Comment Post #286151 See https://stackoverflow.com/a/3749272. Are you compiling from the source root directory?
(more)
about 2 years ago
Comment Post #285054 @#53177 The change event is not always dispatched when an input field's value it via code, so this is a valid question IMO.
(more)
over 2 years ago
Comment Post #284844 @#36363 Actually, "body" just goes on the body element, but child elements inherit their CSS from it unless overridden.
(more)
over 2 years ago
Comment Post #284415 `textContent` (like it's name implies) only does text. If you want to replace HTML, you'll have to use `innerHTML`
(more)
over 2 years ago
Comment Post #284414 If you scroll down to "Using the standard libraries.", you can click on `stdlib.jar` to download the jar file
(more)
over 2 years ago
Comment Post #283834 I updated the diagram to make it more clear.
(more)
over 2 years ago
Comment Post #283834 I regularly pull from the main branch, but I thought it would be the same regardless of which pattern I use, since I am pulling for updates basically every time I start working on the feature branch to make sure I'm on latest. So there would be a bunch of merges into the feature branch from main in b...
(more)
over 2 years ago
Comment Post #283671 @#8176 It doesn't do nothing, it puts the linked answer at the top *and then* sorts by score. It's only useless when there is only one other answer, but that's the same uselessness as when there is only one answer total in normal view.
(more)
over 2 years ago
Comment Post #283672 @#53242 Ah, merges do complicate things. I don't really think that there is a way around that though, at least with show-branch. The only workaround I can think of at the moment is using something like `git show-branch master topic^` to essentially undo the merge in the eyes of git-show-branch, but t...
(more)
over 2 years ago
Comment Post #283672 @#53242 What do you mean by that? Anything past the common ancestor, basically by definition, will not differ between the branches
(more)
over 2 years ago
Comment Post #283667 See also *[Answers order is changed when we access a specific answer by its direct link](https://meta.codidact.com/posts/283346)* This link you have is an answer link, which floats the linked answer to the top.
(more)
over 2 years ago
Comment Post #283667 @#8046 That is intended. See *[Randomize order of answers with same score](https://meta.codidact.com/posts/277855)*
(more)
over 2 years ago
Comment Post #283669 and that would show up as <pre><code><span class="hljs-keyword">import</span> std.stdio; <span class="hljs-keyword">void</span> main(<span class="hljs-built_in">string</span>[] args) { <span class="hljs-built_in">string</span> greeting1 = <span class="hljs-string">&quot;Good&quot;</spa...
(more)
over 2 years ago
Comment Post #283669 E.g. you could do (code taken from https://software.codidact.com/posts/283059/283196#answer-283196) ``` <pre><code><span class="hljs-keyword">import</span> std.stdio; <span class="hljs-keyword">void</span> main(<span class="hljs-built_in">string</span>[] args) { <span class="hljs-buil...
(more)
over 2 years ago
Comment Post #283669 This is an absolutely terrible idea, but you could theoretically do it manually (or install highlight.js locally) I.e. 1 Take your code 2 Add in the `span`s either manually or by running highlight.js locally 3 Copy paste the result 4 ??? 5 Profit.
(more)
over 2 years ago
Comment Post #283052 @#36356 Sure, I've added a section for that
(more)
over 2 years ago
Comment Post #283050 Your dark callback is setting the attribute to "light".
(more)
over 2 years ago
Comment Post #283015 @#8049 The headers are applied independently; default-src is the fallback *within the header*. So for an inline style, we check the first header: ``` Content-Security-Policy: style-src 'self' 'unsafe-inline' https://fonts.googleapis.com/; ``` All good here, we have 'unsafe-inline'. We then ...
(more)
over 2 years ago
Comment Post #283015 [Multiple Headers can only be more restrictive](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#multiple_content_security_policies) I assume that each `Content-Security-Policy:` line you have is a separate CSP header. If you send each separately, then the `default...
(more)
over 2 years ago
Comment Post #282673 That specific post was created by a now-deleted user, which might be the cause of the error.
(more)
almost 3 years ago
Comment Post #281511 The question begging to be asked is "how?" There isn't, afaik, a standard for "password cookies" (which is a terrible name to refer to the session cookies that I assume you mean).
(more)
about 3 years ago
Comment Post #281036 Increasing the height of the enclosing `p` element by setting `padding: 1px` fixes the issue, though I'm still not sure of the cause. Therefore, it seems that for whatever reason, the borders are getting clipped by the element below them.
(more)
about 3 years ago
Comment Post #280607 @Alexei I don't know if it's still the case, but cross-site duplicates weren't supported.
(more)
about 3 years ago
Comment Post #279834 @FractionalRadix That's odd, tag creation isn't currently ability-locked. Perhaps raise a bug report?
(more)
over 3 years ago
Comment Post #279834 @FractionalRadix For future reference, you can create the tag yourself if it doesn't already exist :) Just add it to the tag field when you submit your question and it'll be automatically created
(more)
over 3 years ago
Comment Post #279070 @Hyperlynx remove, reset, you're still making the extra effort to get rid of the date information on past commits; I just don't understand why you bother - if it's not useful, no one will look at it anyway, so it shouldn't matter if it's the true date or not.
(more)
over 3 years ago
Comment Post #279070 @Hyperlynx I'm not sure what you're asking - you asked how to remove that info right?
(more)
over 3 years ago
Comment Post #279070 Alternatively, the info is there and I don't believe it's getting in the way of anyone, so why bother removing it?
(more)
over 3 years ago
Comment Post #279013 @dmckee I've create an [[stl-format]](https://software.codidact.com/categories/38/tags/4219) tag and manually retagged the relevent questions.
(more)
over 3 years ago
Comment Post #279013 @dmckee Probably the title. I take no issue with the content, but I'd suggest [c++-stl] and [stl-format] to further disambiguate
(more)
over 3 years ago
Comment Post #278985 @Lundin "Does this mean that the site will force me to add the extra unrelated SQL tag?" No? It's the opposite, you *don't* have to add the tag, people searching for sql will come across the mysql question (Whether or not this is a *good* hierarchy as you mention is another thing that might be worth ...
(more)
over 3 years ago