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 |
---|---|---|---|---|
Edit | Post #290280 | Initial revision | — | 5 months 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) |
— | 5 months ago |
Edit | Post #290164 | Initial revision | — | 6 months 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) |
— | 6 months 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) |
— | 6 months ago |
Edit | Post #290124 |
Post edited: Fixed grammar. Applied markdown. |
— | 6 months ago |
Edit | Post #290125 |
Post edited: |
— | 6 months ago |
Edit | Post #290125 | Initial revision | — | 6 months 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) |
— | 6 months ago |
Suggested Edit | Post #290124 |
Suggested edit: Fixed grammar. Applied markdown. (more) |
helpful | 6 months ago |
Edit | Post #290093 |
Post edited: Fixed typos and grammar. Added paragraph headings for (hopefully) easier reading. |
— | 6 months ago |
Edit | Post #290093 | Initial revision | — | 6 months 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) |
— | 6 months ago |
Edit | Post #289521 |
Post edited: |
— | 8 months ago |
Edit | Post #289522 |
Post edited: Added the image and its alt text. |
— | 8 months ago |
Edit | Post #289522 | Initial revision | — | 8 months 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) |
— | 8 months ago |
Edit | Post #289521 | Initial revision | — | 8 months 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) |
— | 8 months 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) |
— | 9 months ago |
Edit | Post #289229 | Initial revision | — | 9 months 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) |
— | 9 months 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) |
— | 9 months ago |
Edit | Post #288987 |
Post edited: |
— | 9 months ago |
Edit | Post #288987 |
Post edited: Updated answer in the light of cafce25's comment. |
— | 9 months ago |
Comment | Post #288987 |
I have updated my answer. (more) |
— | 9 months ago |
Edit | Post #288987 |
Post edited: |
— | 9 months ago |
Edit | Post #288987 |
Post edited: |
— | 9 months ago |
Edit | Post #288987 | Initial revision | — | 9 months 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) |
— | 9 months ago |
Edit | Post #288980 |
Post edited: |
— | 9 months ago |
Edit | Post #288980 | Initial revision | — | 9 months 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) |
— | 9 months 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) |
— | 9 months 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) |
— | 10 months ago |
Comment | Post #287697 |
Have you tried reaching the endpoint using cURL, or a browser? Did that also give a 404? (more) |
— | over 1 year ago |
Comment | Post #287493 |
`mark > 40 = name` returns a String. But the function definition says it should return a list of String. (more) |
— | over 1 year ago |
Edit | Post #286065 |
Post edited: Fix formatting and grammar. |
— | about 2 years ago |
Suggested Edit | Post #286065 |
Suggested edit: Fix formatting and grammar. (more) |
helpful | about 2 years ago |
Comment | Post #283705 |
Thanks, this makes sense! I'll look into it more closely later. Meanwhile you've got my vote. Good point about the naming of `ListOfPoints`, too. (more) |
— | over 2 years ago |
Edit | Post #281149 | Initial revision | — | about 3 years ago |
Answer | — |
A: How to read lines into an array in Bash Your code adds all three elements to the list. You can see this if you add a line inside the `while` loop: echo "$line" However, if you give the command `echo $myarray`, it will only show you the first element. (I'm not yet sure why, because I don't do a lot of shell scripting. I'll edit... (more) |
— | about 3 years ago |
Comment | Post #278897 |
Haven't voted on this (yet)... but I consider the "extra effort" to read and write braces negligible. In fact, I feel the extra braces make it _easier_ to read, because they help to show which code belongs together.
(more) |
— | about 3 years ago |
Comment | Post #279834 |
@ghost-in-the-zsh If I find the solution, I'll post it. This was always a hobby project, and I've been busy with other ones. (more) |
— | about 3 years ago |
Comment | Post #280795 |
I feel this question is too broad. HTTP is a protocol, strictly meant for the web. It has a formal specification. REST is an architecture - it's a set of design principles, and if any application follows these principles, it can call itself RESTful. But unlike HTTP, there's nothing formal about it - ... (more) |
— | about 3 years ago |
Comment | Post #280778 |
@Alexei At the current stage of CoDidact, I don't think this is too broad. Even "that other Q&A site" had a canonical Q&A about building a login page. I hope questions like these will attract more users to our community. As an alternative to a question, we could have an article on the subject of doin... (more) |
— | about 3 years ago |
Edit | Post #280778 |
Post edited: Made title more specific. Fixed capitalization. Added a comma in text for easier reading. |
— | about 3 years ago |
Comment | Post #280778 |
The backend should create a salted hash of the password, it should not store the password itself. For calculating the salted hash, use existing software or what is built-in in the available Java API's. Writing cryptographic code is notoriously difficult and error-prone. (more) |
— | about 3 years ago |
Suggested Edit | Post #280778 |
Suggested edit: Made title more specific. Fixed capitalization. Added a comma in text for easier reading. (more) |
helpful | about 3 years ago |
Edit | Post #280649 |
Post edited: |
— | about 3 years ago |