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 |
---|---|---|---|---|
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) |
— | over 2 years ago |
Edit | Post #287506 | Nominated for promotion | — | over 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) |
— | over 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) |
— | over 2 years ago |
Edit | Post #287512 | Question closed | — | over 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) |
— | over 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) |
— | over 2 years ago |
Edit | Post #287498 |
Post edited: added relevant tags |
— | over 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) |
— | over 2 years ago |
Edit | Post #287493 | Question closed | — | over 2 years ago |
Edit | Post #287432 | Nominated for promotion | — | over 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) |
— | over 2 years ago |
Edit | Post #287443 | Question closed | — | over 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) |
— | over 2 years ago |
Edit | Post #287407 | Initial revision | — | over 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) |
— | over 2 years ago |
Edit | Post #287384 |
Post edited: added relevant tag |
— | over 2 years ago |
Edit | Post #287374 | Nominated for promotion | — | over 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) |
— | over 2 years ago |
Edit | Post #286575 | Nominated for promotion | — | over 2 years ago |
Edit | Post #287335 | Nominated for promotion | — | over 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) |
— | over 2 years ago |
Edit | Post #287356 |
Post edited: added relevant tag |
— | over 2 years ago |
Edit | Post #287349 |
Post edited: added relevant tag |
— | over 2 years ago |
Edit | Post #284596 | Nominated for promotion | — | over 2 years ago |
Edit | Post #287307 |
Post edited: removed tag |
— | over 2 years ago |
Edit | Post #287313 |
Post edited: Fixed the code and minor spelling error fix |
— | over 2 years ago |
Edit | Post #287313 |
Post edited: fixed the tags |
— | over 2 years ago |
Edit | Post #287314 | Initial revision | — | over 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) |
— | over 2 years ago |
Edit | Post #287307 | Question closed | — | over 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) |
— | over 2 years ago |
Edit | Post #287122 | Nominated for promotion | — | over 2 years ago |
Edit | Post #287298 | Nominated for promotion | — | over 2 years ago |
Edit | Post #287300 |
Post edited: added a note related to not working directly with EF models |
— | over 2 years ago |
Edit | Post #287300 | Initial revision | — | over 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) |
— | over 2 years ago |
Edit | Post #287288 | Initial revision | — | over 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) |
— | over 2 years ago |
Edit | Post #287287 | Initial revision | — | over 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) |
— | over 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) |
— | over 2 years ago |
Edit | Post #287272 |
Post edited: added relevant tag + improved the formatting |
— | over 2 years ago |
Edit | Post #287235 | Nominated for promotion | — | over 2 years ago |
Edit | Post #287255 | Question closed | — | over 2 years ago |
Comment | Post #287255 |
I have edited your question to include the error message (which should be added in the question, not an answer). Can you provide more details such as the application type, relevant package versions, etc.? Without it, it is hard to receive an answer and the question will be closed. (more) |
— | over 2 years ago |
Edit | Post #287255 |
Post edited: added details from answer |
— | over 2 years ago |
Edit | Post #287235 |
Post edited: added relevant tag |
— | over 2 years ago |
Edit | Post #287242 |
Post edited: added a side note |
— | over 2 years ago |
Edit | Post #287242 | Initial revision | — | over 2 years ago |