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.
Search
[Disclaimer: This is an alternative workaround, and not really answering your question.] When blaming files in a git repository in which I am working at the moment, I usually blame from the master...
In init.vim, I have a Vimscript function that calls a Lua function and returns its value: function! CallLuaFunction() return luaeval("require('functions').say_hello()") endfunction The Lua ...
I use Gemini via CLI via Google Vertex AI. I keep getting google.auth.exceptions.RefreshError: Reauthentication is needed. Please run gcloud auth application-default login to reauthenticate. ...
I use Azure OpenAI RAG-QA (aka "bring our data"): which I call via e.g.: import os import pprint from openai import AzureOpenAI #from azure.identity import DefaultAzureCredential, get_bear...
Poorly asked questions should be closed. Why they are poorly asked (with confusing being only one instance of that) should have no bearing on closure. Whether a question has answers or not should...
As the error message indicates, the assignment is to the variable row. The for loop will repeatedly assign to row. But why is there a problem? Because Python's scoping rules are bad/broken. There ...
I have float noise values, between -1 and 1, for every x,y coordinate in a 2D area and I am trying to convert that to a whole number between 0 and 319 which represents a vertical z coordinate to re...
From the PHP mail manual mail ( string $to , string $subject , string $message , array|string $additional_headers = [] , string $additional_params = "" ) : bool PHP manual syntax (typical for...
This is called a shallow clone and it's supported by a git-clone argument: git clone --depth 5
eclipse has a built-in compiler. When developping in eclipse (or any other Java IDE), you can run from eclipse, you can package as a JAR file from eclipse, and even run a full fledged maven / gradl...
I am trying to submit a form with Ajax from a well-configured shared hosting environment. Emails don't arrive to my email client although I have already sent emails without Ajax from this environm...
#include<stdio.h> #include<stdlib.h> int main (void){ FILE *cfPtr; char name[15]; int ID; if ((cfPtr = fopen("draft.txt","w")) == NULL){ printf("File could n...
First off, all the things @meriton said, I think overall you would be better in a single repository as your docs and code should be changing at the same rate (or should be). Having said that if you...
Overall feedback: To better understand what is on-topic and what is offtopic, please read the following sections. followed by a total of 16 bullet points ... folks, no first time visitor will car...
I do a lot of rebasing and amending of my topic branches. I don't think it's especially useful for me or my colleagues to see in the logs what date it was when I first started working on the partic...
I am not categorically opposed, but I currently don't see a use case for articles. For one, wikis already exist. What would be the benefit of hosting our own rather than participating on Wikipedia?...
Providing feedback can be done using comments. However, these comments are supposed to add constructive criticism and/or links to relevant resources. Your first comment does exactly this and it is ...
git pull is dangerous, but not a security problem. The only danger is that it's difficult or inconvenient (but not impossible) to recover to the state prior to the pull, if it would be necessary. ...
Emphasize and expand content that competitors fail at or deliberately exclude. This section of What type of questions can I ask here? is already a big deal, but it could be bigger: Best practic...
Every URL is a URI but not every URI is a URL is a saying I know from long ago, but what is an example for a URI which is not a URL (whatever the user agent would be - a web browser, a *nix utility...
I'm using Java code as an example, but this can be answered if you don't know Java. class Bird{ public void sing(){ System.out.println("Testing"); } } class anClass ex...
My oppion is that they should NOT be allowed if they are not checked by a human for correctness and/or 100% copy pasted without a single thing changed. If they (the poster) checks for correctness a...
Hello all, I was taking a look at proposed communities and saw the discussion about code reviews that lead to the creation of the category. In the process I remembered of Software Recommendations ...
I managed to do it with lambda. Something like this: Set<U> ulist = new LinkedHashSet<>(); @Test void test() { doAnswer(i -> { U arg = i.getArgument(0); ...
You mean, aside from giving the team that made B a stern talking to? ;-) You could introduce another layer of indirection, and mock that. For instance like this: interface MockFriendlyB { pu...