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
 
77%
+5 −0
Q&A How to proportionally convert a number in the range of -1 and 1 to a number in the range of 0 and 319

My initial approach would be to increase n by 1 (thus shifting the original range from -1..+1 to 0..+2), turn that range into 0..+1, and then simply map from that to your 0..+319 output range. flo...

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

Answer
77%
+5 −0
Q&A How to distinguish between single and multiple file media?

You could trivially create a view that wraps the media table and includes a column that indicates if the media entry has more than one file associated with it. CREATE VIEW IF NOT EXISTS "media_rea...

posted 2y ago by r~~‭

Answer
77%
+5 −0
Meta Are questions about language design on-topic?

This is a good question. It depends on how much this site is about getting language X to do Y versus the higher level concepts of software design and computer science that should largely transcend...

posted 2y ago by Olin Lathrop‭

Answer
77%
+5 −0
Q&A How to generate random objects at different locations on x, y, z axis

Since the Vector3 constructor accepts separate X, Y and Z coordinates, if you want to randomise each one individually, you would need to call the Random.Range for each coordinate, e.g. Vector3 spa...

posted 2y ago by deleted user

Answer
77%
+5 −0
Q&A Terms for types of functions with respect to side effects

Mathematically, the purpose of a function is to return an output. However, in a programming context functions often have side effects. It is even common to call functions for the side effects alone...

2 answers  ·  posted 2y ago by matthewsnyder‭  ·  last activity 2y ago by Lundin‭

Question terminology language-agnostic functional-programming computer-science
77%
+5 −0
Q&A What are statements and expressions?

To add to the excellent explanation by FractionalRadix, it's worth mentioning that sometimes the line between expressions and statements can seem a little blurry (at least to the observer — the lan...

posted 2y ago by deleted user  ·  edited 2y ago by deleted user

Answer
77%
+5 −0
Q&A Readable syntax for executing many callables with useful side effects

The map operation is a typical concept from the functional programming paradigm. However, side-effects are a typical example of something that does not fit functional programming well. As a resul...

posted 2y ago by mr Tsjolder‭

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

I think the framing of this question (and the prior discussion) is wrong, and I think that conditions have evolved since it was originally asked - in particular, we can now see how articles have tu...

posted 2y ago by Karl Knechtel‭  ·  edited 2y ago by Karl Knechtel‭

Answer
77%
+5 −0
Q&A grep AND search for multiple words in files

From your description ... I have text (xml actually) files. Some files contain 'foo', some contain 'bar', some contain neither and some contain both. It's the both I'm interested in. ... I co...

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

Answer
77%
+5 −0
Meta Should I delete my trivial, lack-of-research question?

I asked this trivial question recently: DocuSign eSignature API SDK: java.lang.NoClassDefFoundError errors. It turns out, my problem was because I did not do enough research before asking a quest...

3 answers  ·  posted 2y ago by Vanity Slug ❤️‭  ·  last activity 2y ago by Wicket‭

Question discussion
77%
+5 −0
Q&A Automatically install all packages needed

The best approach is probably to just check the script beforehand, something like the following grep import script.py should list all imports and you can then evaluate and install them. If you...

posted 2y ago by cafce25‭

Answer
77%
+5 −0
Q&A What is the purpose of grouping the tests in a `tests` module and is it possible to split them?

The reason to put tests in a separate module is so they are grouped. Another advantage is that you can put helper functions that are only needed for tests, but are not themselves tests in the modu...

posted 2y ago by cafce25‭

Answer
77%
+5 −0
Q&A Possible drawbacks for having duplicate local sources of the project tracking the same Git remote

Context I have started working on an Angular upgrade for a medium-sized project (from v. 10 to v. 15) and this is a rather long activity that is interrupted by other changes that need to be perfor...

2 answers  ·  posted 2y ago by Alexei‭  ·  last activity 2y ago by Andrew‭

Question git angular upgrade npm
77%
+5 −0
Q&A How to configure Python pip to look for packages in a private index first?

When I run pip install foo, pip looks for foo in PyPi. I want it to look for it first in a private repo, let's say pypi.bar.com. Only if foo cannot be found in pypi.bar.com, should pip then look f...

1 answer  ·  posted 2y ago by matthewsnyder‭  ·  last activity 2y ago by tripleee‭

Question python-3 pip
77%
+5 −0
Q&A When would one not want to return an interface?

I think the main reason to do this is when the interfaces fail to account for some subtlety of the contract between caller and implementation. For example, let's pretend for a moment that your use...

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

Answer
77%
+5 −0
Q&A Using DBUS and GTK in one perl program

Perl is by far the language I have the most experience with, and I have (big) parts of the functionality I want in the new program in existing programs. So I'm looking for a way to do this in perl,...

1 answer  ·  posted 2y ago by Grove‭  ·  last activity 2y ago by deleted user

Question perl dbus gtk gtk3
77%
+5 −0
Meta Server error 500 when clicking on suggested edit details

I get an error page with server error 500 when clicking the link to view my suggested edit activity on my activity page. The suggested edit has the status helpful. Error ID 6ca4f8c8-4a0d-425d-8e09...

0 answers  ·  posted 2y ago by riQQ‭  ·  edited 2y ago by Monica Cellio‭

Question bug status-completed suggested-edit
77%
+5 −0
Q&A Is it worth using the Java Platform Module System in application code?

If you are planning to share the application with individual users (rather than deploying it to a server), declaring your module dependencies explicitly allows jlink to create a stripped-down Java ...

posted 2y ago by VGR‭

Answer
77%
+5 −0
Q&A Lemmy API: how to get list of followed/subscribed communities.

Context Using the lemmy API, I'm trying to get a list of sublemmies (lemmy communities) that a user is following. Reading the documentation, I using the /site endpoint, I should be able to get a ...

1 answer  ·  posted 2y ago by elvis_depresley‭  ·  last activity 2y ago by tgxn‭

Question rest lemmy curl
77%
+5 −0
Q&A Programmatically import, edit and export DBC files

I am looking for a way to programmatically edit and save .dbc files that are meant for J1939 CAN communication. I have a few large files that need to be compared/edited. Being able to import, edit...

1 answer  ·  posted 2y ago by HinkyDinky‭  ·  last activity 2y ago by HinkyDinky‭

Question dbc can-bus
77%
+5 −0
Meta To transfer, or not to, that is the question: whether 'tis nobler to let it stay or to take arms against Stack Overflow's dominance of FAQ canonicals

You are a thoughtful person, aren't you? /me bows in thanks I for one think it would be valuable, even if you were to port it as is. In other words: it's valuable. Period. I like what Stephen s...

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

Answer
77%
+5 −0
Meta Self answered questions about an unclear quickstart

Yes Quick starting with an API is definitely ontopic and especially helpful for newbies who struggle to understand the "spirit" of that API. Even if nobody else from the community is into Google ...

posted 2y ago by Alexei‭

Answer
77%
+5 −0
Q&A Programmatically import, edit and export DBC files

Credit go to @Lundin‭ for pointing me in the right direction. Kvaser has a CAN SDK free of charge. I added this to my VS22 C# project by adding "...\Kvaser\Canlib\dotnet\x64\netstandard2.0\Kvaser...

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

Answer
77%
+5 −0
Q&A How to move a tag in git?

I have created a tag in my project, using git tag v2023 However, I forgot to commit a few changes. Now I would like to move this tag to the current point (after having committed the changes I had...

1 answer  ·  posted 2y ago by mr Tsjolder‭  ·  edited 2y ago by meta user‭

Question git version-control
77%
+5 −0
Q&A How to move a tag in git?

You can (forcibly) replace a tag with the -f, --force flag: git tag -f v2023 (assuming the current HEAD is where you want the tag to end up)

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

Answer