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
2.6k posts
 
70%
+5 −1
Q&A Queries to count points lying on arbitrary line

Suppose we have N points on XY plane, ie. (x, y) and x, y are integers and multiple queries where each query is of the form y = mx + c and m, c are integers. Is it possible to count number of poin...

2 answers  ·  posted 1y ago by theabbie‭  ·  last activity 1y ago by matthewsnyder‭

70%
+5 −1
Q&A C naming convention, module trigrams?

For my company, I'm writing naming conventions for embedded code in C language. Function names must be named in lowerCamelCase() and start with a verb. Global variables are in Maj_started_lowe...

3 answers  ·  posted 2y ago by AdriZ‭  ·  last activity 2y ago by Dirk Herrmann‭

70%
+5 −1
Q&A Is omitting braces for single statements bad practice?

Advantages of Mandatory Braces When in Rome, do as the Romans do. Since every popular coding standard for java mandates the use of braces, and every popular code style checking tool enforces their...

posted 4y ago by meriton‭

Answer
70%
+5 −1
Q&A What do the number entries mean in the sympy poly.diff(...) tuple syntax?

I am looking to take a partial derivative of a sympy polynomial with respect to a symbol in the polynomial. In the sympy documentation for poly.diff(...) it gives sample code like this: from sympy ...

2 answers  ·  posted 4y ago by jrh‭  ·  last activity 4y ago by Derek Elkins‭

Question python sympy
70%
+5 −1
Q&A Can regex be used to check if input conforms to a very strict subset of HTML?

I mostly agree with the upshot of hkotsubo's answer, but I want to both tailor the answer more specifically to your question and give some more general advice. First, the restricted subset you desc...

posted 4y ago by Derek Elkins‭

Answer
70%
+5 −1
Q&A How and where does Python code start running? How can I control that?

Starting up Python There are several key ways to use the python command from the command line: python by itself starts a REPL that allows typing in and running Python code on the fly, one sta...

posted 8mo ago by Karl Knechtel‭  ·  edited 6mo ago by Karl Knechtel‭

Answer
70%
+5 −1
Q&A Use cases for raising a 'NotImplementedError' in Python

This is in the docs. To paraphrase: Used for abstract methods that must be overridden in subclasses When the implementation is still WIP, but you want to leave a placeholder for the method name...

posted 5mo ago by matthewsnyder‭  ·  edited 5mo ago by matthewsnyder‭

Answer
70%
+5 −1
Q&A A keydown event succeeds for an English letter but not for an Hebrew one, sharing the same key

I am trying to listen to the event in which the keyboard key containing the Hebrew final-letter ך is pressed. This key stands for both the English letter L and the Hebrew final letter ך. If my op...

0 answers  ·  posted 3y ago by deleted user  ·  edited 3y ago by deleted user

70%
+5 −1
Code Reviews stpecpy(): Design a better string copy function that truncates

I was directed a few days ago to a post about a string copy function, which IMO improves the commonly known string copy functions, including strlcpy(3BSD), strlcat(3BSD), and strscpy(9). It define...

2 answers  ·  posted 3y ago by alx‭  ·  last activity 2y ago by alx‭

70%
+5 −1
Q&A Delete all occurrences of a character in a webpage with vanilla JavaScript

Primarily for learning, I would like to try to delete a specific character (letter or number or special character), wherever it is in a webpage, with vanilla JavaScript. The webpage won't change a...

3 answers  ·  posted 2y ago by deleted user  ·  last activity 2y ago by hkotsubo‭

Question javascript replace
70%
+5 −1
Q&A What does a variable followed by parentheses ("ptr()") mean?

What does ptr() mean in this code? #include<stdio.h> #include<stdlib.h> void PrintHello() { printf("Hello\n"); } int Add(int a, int b) { return a+b; } int main...

2 answers  ·  posted 3y ago by dumplings‭  ·  last activity 2y ago by Martin Bonner‭

Question c pointers
70%
+5 −1
Q&A Where did my proper divisor sum program went wrong?

Here in Python, I created a program for this challenge and I'm having trouble debugging it. I already fixed most errors I have on my program but here's what I have left: x=y=z=[];i=0.0;a=int(input...

1 answer  ·  posted 3y ago by General Sebast1an‭  ·  last activity 3y ago by hkotsubo‭

Question python debugging
70%
+5 −1
Q&A Freeing sub-process resources?

I'm using Python to invoke another program in a sub-process. I've noticed my memory sometimes gets so large as to crash the system, and I'm wondering if I'm not correctly cleaning up the memory som...

0 answers  ·  posted 3y ago by Hyperlynx‭  ·  edited 3y ago by Patol75‭

70%
+5 −1
Q&A How allocated memory is calculated?

int arr[] = {10,123,14,14,15,16}; cout<<sizeof(arr)/sizeof(arr[0]); I was reading the article. When sizeof() is used with the data types such as int, float, char… etc it simply ret...

1 answer  ·  posted 3y ago by Anonymous‭  ·  last activity 3y ago by Canina‭

Question c++ memory
70%
+5 −1
Q&A How do I get the error message out of a requests exception?

I'm trying to log error messages from Requests exceptions. Example: try: make_web_request() except RequestException as ex: logging.error(ex) Example output: ERROR : ('Connection abo...

2 answers  ·  posted 3y ago by ajv‭  ·  last activity 3y ago by hoverhell‭

Question python http-request
66%
+2 −0
Q&A How to manage decibel meter?

I was reading the Wiki of Decibel. Unfortunately, I "forgot" there's different between amplitude ratio and dB level. After reading the wiki. When I looked at my source code, I saw sounddB was unuse...

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

Answer
66%
+2 −0
Q&A Changing the font of an entire JTable column.

I know I can change the font of each cell individually by overriding getCellRenderer(row, col) in JTable but I want to be able to change the font of an entire column at once and, ideally, have the ...

0 answers  ·  posted 3y ago by cuzzo‭  ·  edited 3y ago by cuzzo‭

Question java swing JTable
66%
+2 −0
Code Reviews Shared hosting Apache PCRE .htaccess file for personal MediaWiki websites

A shared hosting based Apache PCRE public_html/.htaccess file for a website with the common features: MediaWiki based (most of the website interaction is backendish --- there barely are any fron...

0 answers  ·  posted 3y ago by deleted user  ·  edited 3y ago by deleted user

66%
+2 −0
Q&A Difference between puts and print for Array

I have an array friends = Array.new friends[0] = "Mad man" friends[1] = "hey" There's two ways to print it (using print or puts). At first I tried print print friends which gave: ["Mad...

1 answer  ·  posted 3y ago by deleted user  ·  edited 3y ago by Trilarion‭

Question ruby array output
66%
+2 −0
Q&A How do I get the error message out of a requests exception?

but I don't think I can count on that working There really doesn't seem to be a ready-to-use way to get that message (which feels like a good feature-request). While ex.args[0].args[-1] is in...

posted 3y ago by hoverhell‭

Answer
66%
+2 −0
Q&A How to manage decibel meter?

I had build an application using following source code (following the steps). package com.decibal.level; import androidx.appcompat.app.AppCompatActivity; import android.media.MediaRecorder; ...

1 answer  ·  posted 3y ago by deleted user  ·  last activity 3y ago by deleted user

Question java android physics
66%
+2 −0
Q&A Save migration info in separate DB schema

If you want to use a custom entity framework migration table, you can set it when configuring the database context as shown here: // this code belong to the database context class protected overr...

posted 3y ago by Alexei‭  ·  edited 3y ago by Alexei‭

Answer
66%
+2 −0
Q&A Save migration info in separate DB schema

When creating a code-first solution in dot net core using Visual Studio, you manipulate the database by changing model classes and migrating the changes. I can set the schema for tables that I cre...

1 answer  ·  posted 3y ago by mcalex‭  ·  last activity 3y ago by Alexei‭

66%
+2 −0
Q&A How to start mysql in Manjaro from terminal?

I had installed mysql using the following command sudo pacman -Sy mysql Earlier, I was using Lampp(Xampp for Linux) where I could start using the command /opt/lampp/start start I am not sur...

1 answer  ·  posted 3y ago by deleted user  ·  last activity 3y ago by deleted user

66%
+2 −0
Meta highlighting code

In this answer, I wrote those line using code system (```). But, in first line it bold sudo. But, in second line it didn't. Why one is highlighting another isn't? I am using Chrome. A relate...

1 answer  ·  posted 3y ago by deleted user  ·  last activity 3y ago by ArtOfCode‭