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
 
50%
+0 −0
Q&A What is the difference between operator precedence and order of evaluation?

When parsing a program, a compiler creates a tree of nodes. The operator precedence plays a role in how those nodes get organized. Once the tree is complete and considered valid, it walks the tree ...

posted 4mo ago by Alexis Wilke‭  ·  edited 4mo ago by Alexis Wilke‭

Answer
50%
+1 −1
Q&A How to Suppress System Sound for Keyboard Shortcuts in C++ Desktop Application [closed]

In my desktop application developed in C++, I am encountering an issue where pressing the Ctrl + X, Ctrl + Shift + X, and Ctrl + D shortcut keys triggers a system sound. I would like to suppress o...

0 answers  ·  posted 5mo ago by Junior_Dev‭  ·  edited 5mo ago by Alexei‭

Question c++ windows winapi
50%
+0 −0
Q&A Mocking methods with arguments

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); ...

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

Answer
50%
+0 −0
Q&A Mocking methods with arguments

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...

posted 3y ago by meriton‭

Answer
50%
+0 −0
Q&A Mocking methods with arguments

Based on your answer, I guess you just wanted to have a list of unique arguments that were passed to B::add. In that case, you could use a Set instead of a List: // "Type" is whatever type B:add r...

posted 3y ago by hkotsubo‭

Answer
50%
+0 −0
Q&A How to get rid of HTML tags and convert entities in SQL Server?

I have to migrate a bunch of text from an old application into a new one. Some of these texts contain HTML tags and entities (HTML editor was used) and now they do not want to support this in the n...

2 answers  ·  posted 3y ago by Alexei‭  ·  last activity 3y ago by gbjbaanb‭

Question html sql-server
50%
+0 −0
Q&A How to get rid of HTML tags and convert entities in SQL Server?

One way is to create a scalar function that takes an NVARCHAR(MAX) input and performs the following operations: replaces frequent tags with they plain text equivalent (e.g. <br> with chars...

posted 3y ago by Alexei‭

Answer
50%
+1 −1
Q&A How to grant privileges to a user on a database specifically (i.e. not globally) in PHPMyAdmin?

In PHPMyAdmin 5.1.1 I have created a user account and a database with the same name and granted all privileges to the user on that database. I have exported the database to a backup file, deleted ...

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

Question database
50%
+1 −1
Q&A Separate digits of a number in groups with different sizes

I found a way how to fix it after I debug. It was only using the last used row because there was nothing to check that I want to edit only the current row. That's why I decide to use at for index,...

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

Answer
50%
+0 −0
Q&A Add single element for multiple keys to map

(merge m1 (zipmap ks (repeat itm))) Demonstration: $ clj Clojure 1.10.3 user=> (def m1 {:a 1 :b 2}) #'user/m1 user=> (def itm 3) #'user/itm user=> (def ks [:c :d :e]) #'user/ks u...

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

Answer
50%
+0 −0
Q&A Add single element for multiple keys to map

(apply assoc m1 (interleave ks (repeat itm))) Demonstration: $ clj Clojure 1.10.3 user=> (def m1 {:a 1 :b 2}) #'user/m1 user=> (def itm 3) #'user/itm user=> (def ks [:c :d :e]) #'...

posted 3y ago by NoahTheDuke‭

Answer
50%
+0 −0
Q&A How to to make a store tree view cart

I am building an MVC cart system. I have the MERCHANTS table and the PRODUCTS table. A merchant (store) can have one or more products, everything works fine but what I want is to display products b...

0 answers  ·  posted 3y ago by Fyoni‭  ·  edited 3y ago by Alexei‭

Question php mysql pdo treeview
50%
+0 −0
Q&A How to solve missing JAR files error from Ant

So In case anyone else is stuck on similar Missing JAR error, Here is the solution- download and try to install ant-optional package (I said "try" because its not available for some platforms) If...

posted 3y ago by Megan‭

Answer
50%
+0 −0
Q&A How to set update-crypto-policies to LEGACY in Dockerfile

Also to do this automatically do this in your dockerfile- RUN sed -i 's/SECLEVEL=2/SECLEVEL=0/g' /etc/crypto-policies/back-ends/opensslcnf.config just replace the file name for the rest of the fi...

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

Answer
50%
+0 −0
Q&A Migrating HTML strings to a more secure alternative

Our team will have to migrate an old application to use a new tech stack. One of the features involves the usage of HTML editors which serialized the content as HTML and I am able to see valid HTML...

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

Question html markdown
50%
+2 −2
Q&A Alternative to Google Adsense [closed]

I'm starting a small site with some online tools. Tried to include Google Adsense but I initially got rejected because the site was still on construction. Yet I've seen in the forums that they are...

0 answers  ·  posted 3y ago by nelson777‭  ·  closed 3y ago by Alexei‭

Question web software-recommendation
50%
+0 −0
Q&A Console scripts in virtual environment do not output to terminal in git bash

A summary of the comment thread with jmathew: The simplest workaround is to use winpty, i.e. write: $ winpty black version.py The reason this works is that the Python build that I am using and...

posted 3y ago by boudewijn21‭

Answer
50%
+1 −1
Q&A Recursion without a procedure ("function") in JavaScript

Credit for User:Meriton for developing the following code (first published here): function replaceIn(e) { if (e.nodeType == Node.TEXT_NODE) { e.nodeValue = e.nodeValue.replaceAll("a", "");...

3 answers  ·  posted 3y ago by deleted user  ·  edited 3y ago by Alexei‭

Question javascript recursion non-recursive
50%
+0 −0
Q&A In angular-imask how do I get the IMask class?

Using Angular-IMask, I'm programatically updating the field that has IMask. So I'm getting the error: "Element value was changed outside of mask. Syncronize mask using mask.updateValue() to work p...

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

Question javascript angular binding imaskjs
50%
+0 −0
Q&A How to uncollapse an entire link tree with JavaScript?

This data tree is comprised of clickable buttons and I want to expose all branches, in a single action, instead of clicking each vertical arrow button anew. I have tried the following code which d...

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

Question javascript html
50%
+0 −0
Q&A Using single xml file two activities in android

I want use single layout xml file for two different activities in android. Is it possible? How can I do it?

0 answers  ·  posted 3y ago by akshayshelke‭

Question android android-studio xml android-layout
50%
+1 −1
Q&A Why does a keydown event is listened only once?

The following code (credit for user:hkotsubo) moves the user to another page if Alt+Shift+E are pressed together. window.addEventListener('DOMContentLoaded', () => { let domain = window.loca...

0 answers  ·  posted 3y ago by deleted user

Question javascript keyboard-events
50%
+0 −0
Q&A MediaWiki JavaScript way to view the history of a page

I wish to view the revision-history-webpage of a webpage in MediaWiki without the conventional button to do so (I've disabled that button for aesthetic reasons). Please disable the MediaWiki View ...

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

Question javascript mediawiki
50%
+1 −1
Q&A iframe tag is vertically scrollable although I would expect it to vertically stretch 100%

I have an iframe tag to which I didn't set height so it has a default height which is 150px (at least in Google Chrome). As a consequence, the iframe appears partially in such a way that constant ...

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

Question javascript css iframe
50%
+3 −3
Meta Questions easily answered by studying a beginner-level book

I would have a separation between what is on-topic / offtopic and what is worth upvoting or downvoting. Thus for the specific case of questions showing no research, but are on-topic, I would consi...

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

Answer