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 #289027 |
I have experience working with ngrx (an Angular similar approach) and I have noticed that your reducer functions mutate de state. AFAIK, the reducer functions should be pure and one typically returns the new state (clone initial state + make changes + return).
For example `
const authPending = (... (more) |
— | 9 months ago |
Comment | Post #289016 |
Transferring such content is a great idea. I am wondering if it makes sense to split in Q&As for each specific error/case.
Pros:
- an answer is more to the point and does not mix somewhat unrelated errors/issues
- easier to link to the answer in case of duplicate questions
Cons:
- requires... (more) |
— | 10 months ago |
Comment | Post #289009 |
[This article](https://lizrush.gitbooks.io/algorithms-for-webdevs-ebook/content/chapters/nudity-detection.html) provides a high-level explanation related to nudity detection in an efficient way. (more) |
— | 10 months ago |
Comment | Post #288993 |
Is it possible to debug step by step? `post_comment_to_lemmy` is doing quite a lot of stuff and it would be a quick way to find out where the program "hangs". (more) |
— | 10 months ago |
Comment | Post #288920 |
Not used yet, but Sugar ORM might help when interacting with the SQLLite by automatically creating tables and query generation. (more) |
— | 10 months ago |
Comment | Post #288764 |
Under normal circumstances, simply defining a branch would do the job (I am using a different branch anyway).
It is the actual switch time between the branches that's killing me. Switching from the upgrade branch to the "business as usual" branch means running `npm install` and `npm start` which ... (more) |
— | 10 months ago |
Comment | Post #288735 |
According to [this thread](https://discuss.python.org/t/how-to-specify-extra-index-in-a-pyproject-toml-for-pip-and-pip-tools/23592), `pip config set global.extra-index-url` seems to be the way to globally set extra sources for the packages.
While the option exists in [the docs](https://pip.pypa.i... (more) |
— | 10 months ago |
Comment | Post #288728 |
Until you asked this question, I did not pay attention to this aspect. After reading [this question](https://meta.codidact.com/posts/280043/280056) and its answers, the bottom line seems to be along the following: "Reputation is nice feedback because it goes up when you do nice things and it goes dow... (more) |
— | 10 months ago |
Comment | Post #277930 |
@#61308 It can be considered a racial slur according to [Wikipedia](https://en.wikipedia.org/wiki/Fuzzy-Wuzzy#Legacy). (more) |
— | 10 months ago |
Comment | Post #288572 |
@Wicket I am glad that you joined the tag editing party.
From time to time I have noticed that tags behave strangely (I am putting the blame on some aggressive caching) by not being consistent between views after some additions/editing/merges are being made and sometimes being rolled back. It is ... (more) |
— | 10 months ago |
Comment | Post #288576 |
I also agree with the idea of VBA-related questions being on-topic and the formula-related or other Excel usage ones as off-topic, unless they are linked to the usage of certain Excel generation libraries (e.g. ClosedXML, EPPlus) which might have affected formulas and/or other features. (more) |
— | 10 months ago |
Comment | Post #285399 |
@#8046 I have written a post on my LinkedIn profile which received little reaction from my network. That post is a simplified version of this one. (more) |
— | 11 months ago |
Comment | Post #288464 |
[This video](https://www.youtube.com/watch?v=wRep_S7oVIA&ab_channel=RawCoding) shows how hard it can be for a good programmer to understand another framework. (more) |
— | 11 months ago |
Comment | Post #288438 |
I have very little experience with Java, but the error messages sound like there might be some missing dependencies in the pom.xml file:
https://mvnrepository.com/artifact/org.glassfish.jersey.media/jersey-media-multipart
https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-dat... (more) |
— | 11 months ago |
Comment | Post #288299 |
Ref. to "The test data is created ad-hoc and not managed." - this can be improved
- test data scripts should be part of your project (i.e. in Git)
- any breaking change in models (add/remove column) should also involve changing the test data.
- aim for automatic running of scripts as part of you... (more) |
— | 11 months ago |
Comment | Post #288299 |
From your post, it is not clear how the test data is being stored and managed. Normally, it is expected for test data to be adjusted (not completely regenerated) when the models / tables schema is changed.
For example, when a column is dropped adjust the data seed / SQL scripts to not include tha... (more) |
— | 11 months ago |
Comment | Post #288302 |
I have just tried this in Windows 10 (version 20H2, build 19042) -> cmd -> pick some directory -> `code .` and a single VS Code is opening. The VS Code version is 1.79.0 in my case.
This is working regardless of whether VS Code is already opened or not.
What OS are you using? (more) |
— | 11 months ago |
Comment | Post #288059 |
Can you print out (echo?) your queries and include them in the post, so that it is clear what is being executed? This should help with identifying the issue.
Security tip: Try using [parameterized queries](https://www.php.net/manual/en/mysqli.prepare.php) to avoid SQL Injection. (more) |
— | about 1 year ago |
Comment | Post #288042 |
I think this paragraph requires some clarification:
"Unfortunately, the presence of this file will automatically kick off an npm install in Digital Ocean App Platform. This is causing some issues because I intentionally am not building that kind of app."
If I understand correctly, you are using... (more) |
— | about 1 year ago |
Comment | Post #285937 |
This is an interesting approach. I can't tell for Java, but for .NET (ASP.NET Core mostly) using an in-memory provider is not fashionable anymore due to various limitations and quirks. References include a [Jimmy Bogard's article](https://jimmybogard.com/avoid-in-memory-databases-for-tests/) and the ... (more) |
— | about 1 year ago |
Comment | Post #287994 |
I cannot check right now what happens by generating data in the database and actually run the code, but the fact that you are using entities across "database context boundaries" (e.g. blog is obtained as an entity from a disposed context and then used in other database contexts) is a red flag for me.... (more) |
— | about 1 year ago |
Comment | Post #287931 |
I have updated the [on-topic list](https://software.codidact.com/help/on-topic) based on your suggestions. (more) |
— | about 1 year ago |
Comment | Post #287918 |
Oh, sorry. Somehow I forgot to mention the SE ecosystem which has a dedicated community for Webmasters and the SEO-related questions are split (the programming ones can be asked on SO while the others on the Webmasters community). I have fixed my post. (more) |
— | about 1 year ago |
Comment | Post #287818 |
Thanks for the code review. My initial code was a complete mess. I have applied your second suggestion. Indeed I also favor composition over inheritance (which is also favored due to using DI basically everywhere except for some infrastructure code). (more) |
— | about 1 year ago |
Comment | Post #287783 |
@#53549 I am wondering if it wouldn't be easier to read the registry key using [winreg](https://docs.python.org/3/library/winreg.html) instead of doing it indirectly using Powershell. (more) |
— | about 1 year ago |
Comment | Post #287785 |
Did you check the EventViewer? I expect for IIS to log something there when a worker is crashing. (more) |
— | about 1 year ago |
Comment | Post #287783 |
@ghost-in-the-zsh Sorry about that. I didn't notice the Python tag. I have rolled back to your last version until we found a way to make it work when calling it from Python. (more) |
— | about 1 year ago |
Comment | Post #287783 |
@#53549 AFAIK, all Windows versions after Windows 7 include a PS installed. This is confirmed by [this article](https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/01-getting-started?view=powershell-7.3). No need for enterprise, I have mentioned it because it was the OS I was using for... (more) |
— | about 1 year ago |
Comment | Post #287682 |
I have closed this question because it is basically a typo. (more) |
— | over 1 year ago |
Comment | Post #287616 |
Indeed, my solution is a poor man's solution to configuration management, and using a dedicated solution such as Consul is better. I have chosen this following my more ops-inclined colleagues' advice, but it is not set in stone and we can transition to the modern way of doing it. Thanks. (more) |
— | over 1 year ago |
Comment | Post #287607 |
@#53410 As referenced in my post, the (language agnostic) concept of interface is quite heavily used on SO. It is also an important concept used for most applications developed in C# or Java. (more) |
— | over 1 year ago |
Comment | Post #287607 |
AFAIK, "interface" is virtually the same thing in C# and Java. Not sure about other languages that seem to use the concept (e.g. ADA - https://www.adaic.org/resources/add_content/standards/05rat/html/Rat-2-4.html ). I guess that multiple languages that do not support multiple inheritance needs the co... (more) |
— | over 1 year ago |
Comment | Post #287606 |
I do not have a MAC to check this and could not find the docs about this difference, but it seems to refer to the same thing. Taking a look at the debugging settings from [here](https://github.com/MicrosoftDocs/visualstudio-docs/blob/main/docs/debugger/map-methods-on-the-call-stack-while-debugging-in... (more) |
— | over 1 year ago |
Comment | Post #287598 |
What is the context of " I don't know what to do with the movies_scenes relation"? Why did you create this table in the first place? (more) |
— | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year 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 1 year ago |
Comment | Post #287512 |
Can you include the relevant details instead of providing links to repositories? This would make the question clearer. (more) |
— | over 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year ago |