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%
+2 −2
Q&A How can you modify your server code to make it accept any port numbers instead of just one which is the one you predefined?

Is there any way where I can modify the original server code so that it accepts any port number instead of the predefined one (i.e., port number 8989)? Port number will be entered in the command li...

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

Question c sockets port winsock2
50%
+1 −1
Q&A Data structure implementation with Linked lists.

struct listNode{ char data; struct listNode *nextPtr }; Computer, when I tell you that any region of memory is a struct called listNode, that means that the region of memory contains ...

posted 3y ago by r~~‭

Answer
50%
+0 −0
Q&A Why would a form value inserted with value property won't be effective?

It works fine for me. Here's a minimal working example: <!DOCTYPE html> <html> <body> <form> <input type="text" name="field" id="field" value="old value"> <i...

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

Answer
50%
+1 −1
Q&A How to fire the change event for an input field?

I have added some input to an input field element this way: const inputFiled = document.querySelector("#example"); inputField.value = "X"; I want to fire a change event for that field right af...

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

Question javascript event html-input
50%
+1 −1
Q&A Tracking what users are searching in a content management system

I have a website with a search box. Running search queries in that search box creates frontend/dynamic search result webpages in which search results based on a search query can appear. Let's ass...

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

Question search user-tracking google-analytics
50%
+2 −2
Q&A Manipulate a web browser to hide a certain HTML element in a certain website by a single action

Before I publish a new webpage in my website (in the content management system itself), I zoom in from say 100% zooming to 500% zooming and then re-read it, as a nice way to check for typos. The p...

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

Question javascript userscripts
50%
+0 −0
Q&A Manipulate a web browser to hide a certain HTML element in a certain website by a single action

An alternative to creating a userscript is to use a bookmarklet. This is a bookmark that contains an executable snippet of Javascript code. When you click on it, that code will get executed in th...

posted 3y ago by bta‭

Answer
50%
+0 −0
Q&A How to mock LazyCache when performing unit testing?

LazyCache provides CachingService as a concrete implementation of the IAppCache. When unit testing simply instantiate the tested service using CachingService: var testInstance = new FooService(ne...

posted 3y ago by Alexei‭

Answer
50%
+1 −1
Meta The way I tried to mark up code did not work. What is the right way to do it?

The way I tried to mark up code did not work. What is the right way to do it? The line break after the first signal is ignored. Some languages use a hash as a comment. Here, it bolds the line, ac...

1 answer  ·  posted 1y ago by TecBrat‭  ·  last activity 1y ago by TecBrat‭

Question support code-formatting
50%
+0 −0
Q&A Escape both reserved characters and curly braces in a URI in Spring Boot

We ended up using the old java.net.URLEncoder . More specifically, we used URLEncoder.encode(string, Charsets.UTF_8). We use it to encode the values for the query parameter, and then build a URL ...

posted 1y ago by FractionalRadix‭  ·  edited 1y ago by FractionalRadix‭

Answer
50%
+1 −1
Q&A Angular Testing fails with Service.method is not a function

I'm trying to write a spec test for a (correctly working) Angular component, but it errors when calling a service method with: TypeError: _this.myService.getSomeData is not a function The service...

0 answers  ·  posted 1y ago by mcalex‭

Question angular this testing
50%
+1 −1
Q&A Running a bash command with a Key Combination in Gnome [closed]

Is there a way in Ubuntu to run a given bash command for a given Key combination in Gnome (42.9)? I run an Ubuntu in Hyper-V and after a while the normal Keyboard layout change doesn't work (maybe...

0 answers  ·  posted 1y ago by Arpad Horvath‭  ·  closed 1y ago by Alexei‭

Question linux gnome
50%
+0 −0
Q&A Which .NET project can programmatically validate a cell's value out of the box based on Excel data validation constraints?

Here's a list of popular Excel .NET projects that don't have this functionality: Has built-in cell validation? Open XML SDK no* NPOI no* EPPlus no? (see section 3. be...

posted 1y ago by toraritte‭  ·  edited 1y ago by toraritte‭

Answer
50%
+0 −0
Q&A Drop-down values in Excel cells are not specified in Data Validation rules and global search didn't find them in workbook, so where do they come from?

It took a day and a half, but found it: 1. LEFT column's valid values, Assessed and Pending Started with the left column, because if it is not set, then the right column is "inactive", so it clea...

posted 1y ago by toraritte‭  ·  edited 1y ago by toraritte‭

Answer
50%
+0 −0
Q&A How do I get the min/max axis values in Chart.js?

I'd like to get the minimum and maximum values of the axes on a Chart.js 4.4.0 plot. When the plot is created, these values must be calculated somewhere. However, reading through the Chart.js doc...

1 answer  ·  posted 1y ago by CavanWright‭  ·  last activity 1y ago by Ullallulloo‭

Question chart.js
50%
+0 −0
Q&A What is a Crossfilter group?

From reading about the Crossfilter data manipulation library for JavaScript, I take it that "groups" are an important concept in its operation. However, the Crossfilter documentation does not ever...

0 answers  ·  posted 1y ago by CavanWright‭

Question crossfilter
50%
+1 −1
Q&A Best practices to write functions for both execution modes in Tensorflow, eager and graph mode

Tensorflow functions should typically work on both eager and graph tensors. This means that you can just use the following implementation: def lin_to_db(x: float | tf.Tensor) -> tf.Tensor: ...

posted 1y ago by mr Tsjolder‭

Answer
50%
+0 −0
Q&A Best practices to write functions for both execution modes in Tensorflow, eager and graph mode

I regularly run into the problem that I have a Python function that I want to use in both, eager and graph execution mode. I therefore have to adjust the code so that it can handle both situations....

1 answer  ·  posted 1y ago by daniel_s‭  ·  edited 1y ago by daniel_s‭

Question python tensorflow tensorflow-eager-mode tensorflow-graph-mode tensorflow-function
50%
+0 −0
Q&A What is the point of pipx?

Dependency conflicts are the problem pipx aims to solve, in the context of installing CLI programs. When you install a Python package, by default pip will also install their dependent packages so ...

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

Answer
50%
+0 −0
Q&A How can I schedule a later task in Python?

While the other answers rely on external programs, you can do the same inside python. Using time.sleep() If you don't need to do any other tasks during this 10 min. #!/usr/bin/env python3 impo...

posted 1y ago by H_H‭

Answer
50%
+0 −0
Q&A Embedding other controller-action with Phalcon

I'm trying to revive an old project of mine. It was built with Phalcon PHP 2 or 3 (I don't even remember which version, but quite old). There I could include a call to the loop inside the controll...

0 answers  ·  posted 1y ago by posthy‭  ·  edited 1y ago by Alexei‭

Question php phalcon
50%
+0 −0
Q&A OpenGL: Pass a double vector from vertex shader to fragment shader

Found a workaround: Instead of doing the calculating in the vertex shader, do it in the fragment shader. The precision error only occurs because the different vertexes have a uv value that is clos...

posted 1y ago by H_H‭  ·  edited 1y ago by H_H‭

Answer
50%
+0 −0
Q&A How to implement `map` using the fish (>=>, Kleisli composition) operator in F#?

I'm learning monadic composition through Scott Wlaschin's Railway-oriented Programming post. Oncebind, switch, and >=> functions are defined, he introduces map to show how to "turn a one-trac...

1 answer  ·  posted 12mo ago by toraritte‭  ·  last activity 12mo ago by r~~‭

Question f# monads monadic-composition
50%
+0 −0
Q&A Kubectl exec: "Error from server (BadRequest): Upgrade request required"

I'm getting an error when trying to open a shell to a pod. This used to work. $ kubectl exec --tty --stdin --namespace my-ns my-pod -- sh Error from server (BadRequest): Upgrade request required ...

1 answer  ·  posted 12mo ago by Iizuki‭  ·  last activity 12mo ago by Iizuki‭

Question kubernetes kubectl
50%
+2 −2
Q&A How to write a bash function to sanitize filenames for Linux and Windows

I'm trying to write a bash function that can sanitize filenames to make them compatible with both Linux and Windows file systems. The function should perform the following operations: Replace in...

0 answers  ·  posted 12mo ago by ShadowsRanger‭

Question bash