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.

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
 
66%
+2 −0
Q&A Redux Toolkit Issue with Managing States

I am all new with using Redux Toolkit, I followed the official documentation to setup the store: // store.ts import { configureStore, ThunkAction, Action, combineReducers } from '@reduxjs/toolkit...

0 answers  ·  posted 1y ago by boudagga.ma94‭

Question reactjs react-redux redux-toolkit
66%
+2 −0
Q&A Maven exec:exec fails to see executables

I am stumped at Maven exec plugin. Running mvn exec:exec -Dexec.executable="curl" (or "echo") works. But when running mvn exec:exec or mvn exec:exec@b (or @a) it fails saying The parameter 'exe...

1 answer  ·  posted 2y ago by LAFK‭  ·  last activity 12mo ago by mirabilos‭

Question maven maven-exec-plugin
66%
+2 −0
Code Reviews Writing a testable console program

Not using Rust myself I'll add to @InfiniteDissent's answer on: is there a better way to solve this problem altogether? Yes, there is, it's called a golden master test. Legacy code retreat t...

posted 2y ago by LAFK‭

Answer
66%
+2 −0
Q&A Does Snowflake NATURAL JOIN support outer-style join?

I like using NATURAL JOIN in Snowflake, because I find it more elegant than explicit join clauses. However, it appears that the natural join behaves similar to an inner join, in that null values o...

1 answer  ·  posted 2y ago by matthewsnyder‭  ·  edited 1y ago by matthewsnyder‭

Question sql join snowflake
66%
+2 −0
Q&A Problems with Google Apps Script API JavaScript "How to... Execute function"

TL;DR: Use the versioned deployment id instead of the script id. After repeating the procedures, step by step multiple times, I tried adding the resource.devMode property to the Apps Script REST...

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

Answer
66%
+2 −0
Q&A How do I find disjoint sets in a dataset

Your example is a bipartite graph in adjacency list format. The cars are nodes on the left, the people are nodes on the right. When a person "has" a car, there is an edge between the car and person...

posted 2y ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A Can I package a database other than SQLite with a Flutter app?

Flutter supports packaging a SQLite instance with a Flutter app using the Sqflite plugin. I do not like the speed of SQLite or the fact that it does not enforce column datatypes and want to use som...

0 answers  ·  posted 2y ago by tarhalda‭  ·  edited 2y ago by tarhalda‭

Question flutter database
66%
+2 −0
Meta Best practices for posting tabular data

For most purposes, the easiest approach is probably Markdown tables, as described in Wicket's answer. If you have requirements that Markdown tables do not support, such as merged cells, you can re...

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

Answer
66%
+2 −0
Q&A Generating nested repeating values with JSON Generator

Instead of nesting this in another loop, you could simply calculate the value of "code" from the value of index(). It's the remainder of the division by 25: [ '{{repeat(100)}}', { "id"...

posted 2y ago by __blackjack__‭

Answer
66%
+2 −0
Q&A For scripting what are the pros and cons of command line arguments versus capturing input at the start?

I would like to add further options to the set of possibilities, namely environment variables and GUI input. Moreover, I would like to distinguish reading information from stdin and from other (na...

posted 2y ago by Dirk Herrmann‭  ·  edited 2y ago by Dirk Herrmann‭

Answer
66%
+2 −0
Q&A Load site based on cookie value in PHP

The problem is that you are using an undefined variable $cookie. This will cause setcookie() to "set" a cookie with name "cookie" and value null. Obviously PHP deletes the cookie in that case, as y...

posted 2y ago by keyang‭

Answer
66%
+2 −0
Q&A Count the number of occurrences in a text string

@elgonzo mentioned correctly that the nice trick from @pnuts can not be applied if you are interested in the number of occurrences including overlapping ones. So, just in case someone is in need o...

posted 2y ago by Dirk Herrmann‭

Answer
66%
+2 −0
Meta Do we want a wiki (or similar) alongside Q&A?

There are a few ways to understand "wiki". Like wikipedia - an interlinked web of articles in a standardized format. Like SO's documentation project or Github wikis - a stripped down wiki that ...

posted 2y ago by matthewsnyder‭  ·  edited 1y ago by matthewsnyder‭

Answer
66%
+2 −0
Meta Spreadsheets apps as end user development tool / spreadsheet formulas as a form of funtional programming

While I personally agree (take my upvote) I'd note that programming spreadsheet has multiple levels. Level 0: I use spreadsheet, sometimes with some functions, like count or sum of something condi...

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

Answer
66%
+2 −0
Q&A Storing more bytes than a union member has, but less than the union size, with memcpy(3)

memcpy(&y.t, &x, sizeof(x)); is a bit fishy since it would have made more sense to copy into &y or &y.s. None of this is necessarily UB however. Regarding strict aliasing, it doesn...

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

Answer
66%
+2 −0
Q&A Generating nested repeating values with JSON Generator

Hi, I'm trying to use the JSON Generator to create data with nested repeating values. I want to create 100 objects with an ID, Name, and Code. The Id is incremented from 0 to 99, but the Code (pr...

1 answer  ·  posted 2y ago by mcalex‭  ·  last activity 2y ago by __blackjack__‭

Question json loop
66%
+2 −0
Q&A How to prevent Visual Studio Code from opening an extra blank window?

I was able to fix this by deleting the ~/.config/VSCode/Workspaces folder. To figure this out, I: Backed up my VSCode folder to /var/tmp Deleted ~/.config/VSCode, after this VS Code stopped ...

posted 2y ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A How can I return XML from BeforeSendRequest and AfterReceiveReply to the calling method in a thread-safe way?

We have a console application using the Azure WebJob SDK. The WebJob relies on a WCF service using SOAP, which it accesses through a DLL we wrote that wraps the auto-generated WCF types in somethin...

1 answer  ·  posted 2y ago by Celarix‭  ·  edited 2y ago by Alexei‭

Question c# wcf thread-safety azure-webjobs
66%
+2 −0
Q&A Are there other reasons why useEffect might not be defined apart from not importing it?

You need import all functions from the React library that you use. Add import {useEffect, useState} from 'react' to your file.

posted 2y ago by jmathew‭

Answer
66%
+2 −0
Meta Should I post a link to the Github repo for code reviews?

If it's so large that you must link the repo rather than reposting code, I think it is too large to reasonably expect anyone to review. Bored people will read a couple dozen lines, and point out a ...

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

Answer
66%
+2 −0
Q&A Built-in way to compute coefficient of variation in pandas

There's very little information to go off of here but to me the built-in function you need is division which is already built in to any language. Unless you are unable to use df.std() / df.mean() f...

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

Answer
66%
+2 −0
Q&A How do I (compactly) initialize a 2-d array of structs with the same value?

I learned about the ** operator for array-repeat, and I love it. I have a struct that contains a 2-d array of inner structs, like const D1 = 30; const D2 = 40; const Inner = struct { .a: u32, ....

0 answers  ·  posted 2y ago by aghast‭

Question array initialization zig
66%
+2 −0
Q&A Using Lua's `os.rename` to rename a file from a hard drive to a new location on a USB flash drive

I'm using the os.rename function in a lua script. It works perfectly fine for renaming files on my hard drive, e.g. os.rename("test.txt","/Users/username/Desktop/test2.txt") will rename the fil...

1 answer  ·  posted 2y ago by samcarter‭  ·  last activity 2y ago by Peter Taylor‭

Question file-handling macos lua
66%
+2 −0
Q&A Using Lua's `os.rename` to rename a file from a hard drive to a new location on a USB flash drive

Your diagnosis appears to be correct. Per https://www.lua.org/pil/22.html Because Lua is written in ANSI C, it uses only the functions that the ANSI standard defines. POSIX rename extends the...

posted 2y ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A How would I avoid textures being blurred when mapped to a TriangleMesh?

I am making a game using JavaFX and the Fxyz library. I have chunks which are made of Point3D's, these points are then passed to a ScatterMesh and that is used to generate a TriangleMesh so I can m...

0 answers  ·  posted 2y ago by cuzzo‭  ·  edited 2y ago by Alexei‭

Question java 3d javafx fxyz3d