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.

Activity for FractionalRadix‭

Type On... Excerpt Status Date
Comment Post #292128 Ah, serialization! That makes sense. One should still wonder, if the subclass is anonymous, why one would need to serialize it in the first place. It's likely an X/Y problem, as you suggest in your comment. Still, I could imagine someone running into this situation.
(more)
5 months ago
Comment Post #292128 Out of curiosity, is there a use case for this? Your answer is clever, but I don't think a parent class should care if subclasses are anonymous.
(more)
5 months ago
Edit Post #291678 Post edited:
Fixed capitalization.
6 months ago
Edit Post #291677 Post edited:
Fixed capitalization.
6 months ago
Suggested Edit Post #291678 Suggested edit:
Fixed capitalization.
(more)
helpful 6 months ago
Suggested Edit Post #291677 Suggested edit:
Fixed capitalization.
(more)
helpful 6 months ago
Comment Post #291539 Looks like my situation was included in this answer as well. Nice! Also, welcome to Codidact!
(more)
7 months ago
Edit Post #291469 Post edited:
7 months ago
Edit Post #291469 Initial revision 7 months ago
Answer A: Docker push fails with message "denied: requested access to the resource is denied"
There are many reasons why this error may occur. In my case, my new token had the `readregistry` scope but not the `writeregistry` scope. I created a new token that had the `readregistry` and `writeregistry` scopes. I then logged out of Docker, and logged in again using the new token. After ...
(more)
7 months ago
Edit Post #291468 Initial revision 7 months ago
Question Docker push fails with message "denied: requested access to the resource is denied"
Recently I had to push a new Docker image to our GitLab registry. I have the Maintainer role on that project. I had created a new token and used it to log in to Docker. However, when trying to build and push the image, I got the error message > denied: requested access to the resourc...
(more)
7 months ago
Edit Post #290280 Initial revision about 1 year ago
Question Allow tagging answers with tools and version numbers
TL;DR If we allow answers to be tagged with technologies and version numbers, people can more easily check if an answer is applicable to their technology stack. A few days ago, I had a problem in Java Spring Boot. The error message was a pretty common one: "expected at least 1 bean which qualifies...
(more)
about 1 year ago
Edit Post #290164 Initial revision about 1 year ago
Question How to declaratively enable RabbitMQ feature flags in Kubernetes
We use Kubernetes on a cloud (GKE, to be precise). We use RabbitMQ for messaging and we need to upgrade it from 3.10 to 3.12 . FWIW RabbitMQ has been added to our system using a chart from Bitnami. The problem is that we need to enable RabbitMQ's feature flags. More specifically, the probl...
(more)
about 1 year ago
Comment Post #290124 Welcome to Codidact! Have you tried reaching the endpoint using a separate client, like cURL or Postman? Judging by the error message, you are trying to reach an endpoint on your own machine? I note that although the message is "ERR_BAD_REQUEST", the code is not 400 but 404 - "Not Found". Are you ...
(more)
about 1 year ago
Edit Post #290124 Post edited:
Fixed grammar. Applied markdown.
about 1 year ago
Edit Post #290125 Post edited:
about 1 year ago
Edit Post #290125 Initial revision about 1 year ago
Answer 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.UTF8)`. We use it to encode the values for the query parameter, and then build a URL from it using String concatenation. This solves most of the problems, if you're willing to ...
(more)
about 1 year ago
Suggested Edit Post #290124 Suggested edit:
Fixed grammar. Applied markdown.
(more)
helpful about 1 year ago
Edit Post #290093 Post edited:
Fixed typos and grammar. Added paragraph headings for (hopefully) easier reading.
about 1 year ago
Edit Post #290093 Initial revision about 1 year ago
Question Escape both reserved characters and curly braces in a URI in Spring Boot
I need to pass URI's that contain special characters, using Spring Boot. The characters include spaces, curly braces (`{` and `}`), square brackets (`[` and `]`), and hash signs (`#`). The problem is that Spring Boot wants to expand strings between curly braces. Let's say the URI is: ...
(more)
about 1 year ago
Edit Post #289521 Post edited:
over 1 year ago
Edit Post #289522 Post edited:
Added the image and its alt text.
over 1 year ago
Edit Post #289522 Initial revision over 1 year ago
Answer A: Android Studio "not showing null elements" in unit tests.
This is a default setting in Android Studio. You can change it in the Settings. In the File menu, select Settings, then choose "Build, Execution, Deployment". Here, you select the submenu "Debugger", under that "Data Views", and under that "Java". (Note that you select "Java" even when you'...
(more)
over 1 year ago
Edit Post #289521 Initial revision over 1 year ago
Question Android Studio "not showing null elements" in unit tests.
My Android app needs to process lists that contain nullable elements. I am using JUnit 4.13.2 for unit testing. I am using Android Studio Flamingo | 2022.2.1 Patch 2 . I have a failing test, but I cannot see the null values in my list. In the Debug window, I can see the variable that holds my...
(more)
over 1 year ago
Comment Post #289229 I'm thinking that a statement that returns a value, is both an expression and a statement. I need to do a little more thinking before I'll update my answer.
(more)
over 1 year ago
Edit Post #289229 Initial revision over 1 year ago
Answer A: What are statements and expressions?
In computer programming, an expression is something that yields a value. A statement performs an action. For example, let us look at some pseudocode. Let's assume that we want to calculate the sum of 3 variables: sum = a + b + c; print(sum); `print(sum);` is a statement: it perf...
(more)
over 1 year ago
Comment Post #288987 Hm, yes, I think you're right. I've updated my answer. It's getting late over here; I'll check tomorrow if I need to update it futher. Thanks for pointing out the mistake!
(more)
over 1 year ago
Edit Post #288987 Post edited:
over 1 year ago
Edit Post #288987 Post edited:
Updated answer in the light of cafce25's comment.
over 1 year ago
Comment Post #288987 I have updated my answer.
(more)
over 1 year ago
Edit Post #288987 Post edited:
over 1 year ago
Edit Post #288987 Post edited:
over 1 year ago
Edit Post #288987 Initial revision over 1 year ago
Answer A: How to use function composition for applying a function to first elements of a list?
The quick fix is: `map (subtract 1) . take n $ l` When I put your function in my own Haskell compiler, I get: > Possible cause: ‘take’ is applied to too many arguments Remember that in Haskell, we don't have functions with multiple parameters. We have functions with a single parameter, that...
(more)
over 1 year ago
Edit Post #288980 Post edited:
over 1 year ago
Edit Post #288980 Initial revision over 1 year ago
Answer A: How do I add functionality to the back button?
TL;DR : end your callback with a call to `finish()`. According to this article, `addCallback` really does add a callback. However, the way Android handles these callbacks is this: Iterator iterator = mOnBackPressedCallbacks.descendingIterator(); while (iterator.hasNex...
(more)
over 1 year ago
Comment Post #288946 [This article](https://proandroiddev.com/handling-back-press-in-android-13-the-correct-way-be43e0ad877a) suggests using `onBackInvokedDispatcher` instead of `onBackPressedDispatcher` for a related situation. I'll have a closer look later, but maybe this can help you in the mean time. (Been at this...
(more)
over 1 year ago
Comment Post #288438 I'm not familiar with the DocuSign API. But the `jakarta/ws/rs/` seems to be part of the [Jakarta RESTful WS API](https://mvnrepository.com/artifact/jakarta.ws.rs/jakarta.ws.rs-api) . It seems the system tries to start the ApiClient, but can't find the prerequisites - such as the Jakarta RESTful W...
(more)
over 1 year ago
Comment Post #287697 Have you tried reaching the endpoint using cURL, or a browser? Did that also give a 404?
(more)
almost 2 years ago
Comment Post #287493 `mark > 40 = name` returns a String. But the function definition says it should return a list of String.
(more)
about 2 years ago
Edit Post #286065 Post edited:
Fix formatting and grammar.
almost 3 years ago