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 How is this code "dividing" by a string?

Python allows for operators to be overloaded (the subject of a separate future Q&A). The / operator doesn't strictly mean division in a mathematical sense; it means whatever the operands define...

posted 1y ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A How can I start my Python code, from the code itself?

Mac/Linux In this environment, Python scripts can be given a shebang line that tells the operating system that the file is a script, and what interpreter (i.e., Python) to use for it. Because # st...

posted 1y ago by Karl Knechtel‭  ·  edited 12mo ago by Karl Knechtel‭

Answer
66%
+4 −1
Q&A Where to place digit separators in C23?

This probably makes for a thoroughly unsatisfying answer, but there's probably far stronger cultural pressure than technical pressure. In European-derived cultures, we mostly group numbers by powe...

posted 1y ago by John C‭

Answer
66%
+2 −0
Q&A What input functions can I use in TIO's PHP?

You could use fgets to read from STDIN. And to print the message, just use the short tag (<?= whatever, which is a shorthand to <?php echo whatever; ?>): <?='Hello, '.fgets(STDIN).'!'...

posted 4y ago by hkotsubo‭  ·  edited 4y ago by hkotsubo‭

Answer
66%
+2 −0
Q&A Is it a good idea to have a permanent branch for a feature?

I wouldn't. Not unless you intend to keep developing on every branch independently! Presumably you're not doing that. In that case, I think it makes your intent clearer to just use a tag to mark t...

posted 4y ago by Hyperlynx‭

Answer
66%
+2 −0
Q&A How to run a remote JavaScript file from GitHub?

As you're using userscripts, I'm assuming this code is supposed to run in a browser. Hence, you could download the scripts and add its contents to the page's DOM (by using a script element). For t...

posted 4y ago by hkotsubo‭  ·  edited 4y ago by hkotsubo‭

Answer
66%
+2 −0
Meta Is there a workaround to highlight code blocks if the language doesn't have syntax highlight enabled?

I've seen that recently two requests to add syntax highlight to some languages were deferred (this and this). According to the status-deferred tag description: "the requested feature will not be i...

0 answers  ·  posted 4y ago by hkotsubo‭  ·  edited 1y ago by hkotsubo‭

Question discussion code-formatting syntax-highlighting
66%
+2 −0
Meta console.readline tag does not look good to me

While I tend to agree with @Alexei that reading from the standard input is quite a common issue I also think that console.readline tag is too narrow and therefore it shouldn't exists. On the other...

posted 4y ago by FoggyFinder‭

Answer
66%
+2 −0
Meta Etiquette for posting comments

Proposal: Can Include A link to a chat room related to the question or answer. Even if tangentially. I've always found SO to be too dry. Sure, pleasantries are as helpful in a question o...

posted 4y ago by Estela‭

Answer
66%
+2 −0
Q&A How can I emulate regular expression's branch reset in Java?

Currently, Java 16 is the latest version, and there's no support to branch reset yet. But one - still far from ideal - alternative is to use lookarounds: Pattern pattern = Pattern.compile("([aeiou...

posted 4y ago by hkotsubo‭

Answer
66%
+2 −0
Code Reviews Detecting balanced parentheses in Python

You've got an inefficiency in your code, as you always do replacements 3/2 times the length of the string. That is unnecessarily expensive. By instead testing in each iteration whether the length ...

posted 3y ago by celtschk‭

Answer
66%
+2 −0
Q&A What's the better way to store base64 in SQLite Database?

What's the better way to store base64 in SQLite Database? I was thinking to put base64 as TEXT since base64 has lots of chars. CREATE TABLE name (id INTEGER PRIMARY KEY AUTO_INCREMENT, image TEXT)...

1 answer  ·  posted 3y ago by Anonymous‭  ·  edited 3y ago by Anonymous‭

Question sql base64 sqlite
66%
+2 −0
Q&A Submitting a form via XHR/AJAX causes partial data arrival to email inbox (only HTML without input)

I am guessing a little here. By not preventingdefault, the form will POST the data to the server. If you switch to AJAX you have to provide the body as per documentation. However, I do not rememb...

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

Answer
66%
+2 −0
Meta Editing tags failed?

This is weird: I tried to edit the tags on your post to see if I could reproduce it, and the editor showed the C++ tag there even though the post did not show it. I deleted and re-added it and sav...

posted 4y ago by Monica Cellio‭

Answer
66%
+2 −0
Meta Editing tags failed?

I edited the tags of my very first Codidact question: https://software.codidact.com/posts/281486 Someone proposed the "python" tag. Since I am working with C++, I removed the "multithreading" tag...

1 answer  ·  posted 4y ago by Silicomancer‭  ·  last activity 4y ago by Monica Cellio‭

Question bug feature-request
66%
+2 −0
Q&A How to work with current entity changes when working with @ngrx/store and @ngrx/entity?

I am fairly new to working with @ngrx pattern in Angular which is a state management pattern relying on Reactive Extensions. One of the convenient structures is @ngrx/entity which helps with manag...

0 answers  ·  posted 4y ago by Alexei‭

Question ngrx ngrx-store ngrx-entity state-management angular-state-managmement
66%
+2 −0
Q&A How to enable or disable a bunch of reactive form controls?

Actually, TypeScript is perfectly able to type check the code you posted. Here's what the compiler thinks: const functionName = disable ? "disable" : "enable"; // inferred type: "disable" | "enabl...

posted 4y ago by meriton‭

Answer
66%
+2 −0
Q&A How to break infinite loop in CTE

Estela's answer provides great insight about how to do it also in SQL Server. Unfortunately, there does not seem to be a build-in array functionality, so one way is to rely on strings as shown here...

posted 4y ago by Alexei‭  ·  last activity 4y ago by Alexei‭

Answer
66%
+2 −0
Q&A How to break infinite loop in CTE

For small tables you can bound the recursion depth: WITH my_cte(childId, parentId, depth, max_depth) AS ( SELECT r.childId, r.parentId, 1, (SELECT COUNT(*) FROM My_Table) FROM My_Table ...

posted 4y ago by Peter Taylor‭

Answer
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 4y ago by deleted user  ·  edited 4y 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 4y ago by cuzzo‭  ·  edited 4y 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 4y ago by deleted user  ·  edited 4y ago by deleted user

Question mediawiki apache .htaccess pcre webserver
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 4y 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 4y 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 4y ago by deleted user  ·  last activity 4y ago by deleted user

Question java android physics