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 Alexeiâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #287568 | Initial revision | — | almost 2 years ago |
Question | — |
Should we allow answers generated by ChatGPT? We got our first (mostly) ChatGPT answer in our community. Also, a question includes an adapted ChatGPT code that does not seem to do the job. StackOverflow has already banned ChatGPT answers and I am wondering how we should proceed in this case. From my perspective, we should also ban ChatGPT... (more) |
— | almost 2 years ago |
Comment | Post #287565 |
The cited answer suggests `is_single_file` flag. This should not be specified by the user, but based on media type (1 for movies, 0 for applications etc.).
As a side note, I am not confident that the answer covers the entire question. (more) |
— | almost 2 years ago |
Comment | Post #287560 |
It would be useful to provide an example to better understand what are looking for. Just a couple of record values for each table would be enough.
If `media` contains a lot of NULL values for some columns, one solution is to define another 1:1 table (uuid + those columns) and add a row there only ... (more) |
— | almost 2 years ago |
Comment | Post #287551 |
A few/several thousand should be computed fast enough by "normal" (not involving more specialized hardware) math (i.e. using the CPU), that is solving those two equations mentioned in the other thread: computing a and b from your linear function f(x) = a*x + b. (more) |
— | almost 2 years ago |
Comment | Post #287551 |
How many such points do you have? I guess the answer depends a lot if we are talking about thousands vs. millions. (more) |
— | almost 2 years ago |
Comment | Post #287551 |
Not sure if I understood entirely your question, but it seems to boil down to a simple set of equations with two variables:
The function is f(x) = a*x + b
f(-1) = 0 => -a + b = 0
f(1) = 319 => a + b = 319
=> b = 319 / 2, a = 319 / 2
Of course, this can be generalized to solve the equations... (more) |
— | almost 2 years ago |
Edit | Post #287506 | Nominated for promotion | — | almost 2 years ago |
Comment | Post #287509 |
Any reason to avoid defining an "utility" function for it? It is something normal in virtually all programming languages because frameworks and libraries will miss some specific functionality we need. (more) |
— | almost 2 years ago |
Comment | Post #287512 |
Can you include the relevant details instead of providing links to repositories? This would make the question clearer. (more) |
— | almost 2 years ago |
Edit | Post #287512 | Question closed | — | almost 2 years ago |
Comment | Post #287506 |
Never worked with Qt, but I am wondering if `setStyleSheet` sets the entire styling for the element instead of merging existing styling (maybe inherited from some global styling). Possible relevant discussion [here](https://forum.qt.io/topic/135223/is-it-possible-to-append-stylesheet-into-existing-st... (more) |
— | almost 2 years ago |
Comment | Post #287498 |
I am not into 3d development, but I am wondering about the following:
- how src/main/resources/textures.png actually looks?
- shouldn't the picture file be in some vectorial format to properly be displayed? (more) |
— | almost 2 years ago |
Edit | Post #287498 |
Post edited: added relevant tags |
— | almost 2 years ago |
Comment | Post #287493 |
Ref. to "there is something wrong with the expression of the first guard of this function below" - it is not clear what is the problem here. (more) |
— | almost 2 years ago |
Edit | Post #287493 | Question closed | — | almost 2 years ago |
Edit | Post #287432 | Nominated for promotion | — | almost 2 years ago |
Comment | Post #287443 |
The post includes several topics which cannot be handled in a single answer:
- "I am not able to upload it on Netlify or Vercel" - what is the exact issue you are encountering here?
- "on Firebase as it may require some changes in my backend code and I don't how to do it" - what database are you ... (more) |
— | almost 2 years ago |
Edit | Post #287443 | Question closed | — | almost 2 years ago |
Comment | Post #287432 |
I am unfamiliar with Flutter, but I guess there must be some code to push the mutation (it seems like a JSON payload to me, is it a GraphQL query?). Not sure if that's relevant to the question, but it might be. (more) |
— | about 2 years ago |
Edit | Post #287407 | Initial revision | — | about 2 years ago |
Question | — |
Implement translatable UI in a Single Page Application when working with ngRx I am currently working on an Angular SPA that supports multiple languages and relies on ngRx for state management. Although the application state is handled by ngRx, the current language is stored in the database. The translated resources come from outside the store (resource files read using the... (more) |
— | about 2 years ago |
Edit | Post #287384 |
Post edited: added relevant tag |
— | about 2 years ago |
Edit | Post #287374 | Nominated for promotion | — | about 2 years ago |
Comment | Post #287364 |
Mod note: removed the previous comment, as it was not OK (see [Code of Conduct](https://software.codidact.com/policy/code-of-conduct)). (more) |
— | about 2 years ago |
Edit | Post #286575 | Nominated for promotion | — | about 2 years ago |
Edit | Post #287335 | Nominated for promotion | — | about 2 years ago |
Comment | Post #287357 |
Not sure why your latest information was added as an answer, but I have noticed that you have edited your post in the meantime included the relevant information (the new error messages) and removed the answer. (more) |
— | about 2 years ago |
Edit | Post #287356 |
Post edited: added relevant tag |
— | about 2 years ago |
Edit | Post #287349 |
Post edited: added relevant tag |
— | about 2 years ago |
Edit | Post #284596 | Nominated for promotion | — | about 2 years ago |
Edit | Post #287307 |
Post edited: removed tag |
— | about 2 years ago |
Edit | Post #287313 |
Post edited: Fixed the code and minor spelling error fix |
— | about 2 years ago |
Edit | Post #287313 |
Post edited: fixed the tags |
— | about 2 years ago |
Edit | Post #287314 | Initial revision | — | about 2 years ago |
Answer | — |
A: How can I provide additional information when raising an exception? Python documentation suggests that you can simply add other parameters when raising the Exception and retrieve them using args: Code ```python try: raise Exception('spam', 'eggs') except Exception as inst: print(inst.args) # arguments stored in .args x, y = inst.args # unpack ar... (more) |
— | about 2 years ago |
Edit | Post #287307 | Question closed | — | about 2 years ago |
Comment | Post #287300 |
EF is designed to track list changes (additions or removals) in DbSets only. It cannot know (or at least not in a predictable/performant way) that someone constructed some kind of list using dbset dereferenced values and then added/removed from that list. (more) |
— | about 2 years ago |
Edit | Post #287122 | Nominated for promotion | — | about 2 years ago |
Edit | Post #287298 | Nominated for promotion | — | about 2 years ago |
Edit | Post #287300 |
Post edited: added a note related to not working directly with EF models |
— | about 2 years ago |
Edit | Post #287300 | Initial revision | — | about 2 years ago |
Answer | — |
A: Datagrid in MVVM saves edits but not inserts Entity Framework is able to save the changes by using a tracking mechanism (i.e. what is added, deleted, removed). I guess `repository.GetAllGoals()` implementation is something like `context.Goals` or `context.Set()`, so when you are constructing the `ObservableCollection` you actually get a lis... (more) |
— | about 2 years ago |
Edit | Post #287288 | Initial revision | — | about 2 years ago |
Answer | — |
A: How to define Polly policies when working with Refit library in ASP.NET Core? Refit allows such configuration out of the box bt using `AddRefitClient` (which resembles the well-known AddHttpClient). This indeed requires explicit configuration for the HttpClient, but the configuration and usage will be simpler: Refit and resilience configuration ```c# private static ISer... (more) |
— | about 2 years ago |
Edit | Post #287287 | Initial revision | — | about 2 years ago |
Question | — |
How to define Polly policies when working with Refit library in ASP.NET Core? Note: this is based on my question on SO and subsequent activity there I am trying to add resilience using Polly to HTTP calls that are performed using Refit library. I am using the Refit factory method `RestService.For<>` and I have a working code, but I feel it is way more complex than it sho... (more) |
— | about 2 years ago |
Comment | Post #287272 |
I guess one way to understand what happens is to get your hands on the application (crash) logs and let us know if there is some relevant information there. [This](https://developer.android.com/games/optimize/crash) might be a good start. (more) |
— | about 2 years ago |
Edit | Post #287272 |
Post edited: added relevant tag + improved the formatting |
— | about 2 years ago |
Edit | Post #287235 | Nominated for promotion | — | about 2 years ago |