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 Alexei‭

Type On... Excerpt Status Date
Comment Post #281385 Possible interesting reading: https://cybersecurity.ieee.org/blog/2016/06/02/design-best-practices-for-an-authentication-system/
(more)
about 3 years ago
Comment Post #281365 Unfortunately, this question is offtopic here as well, since it is not related to software development. Please, read [this help page](https://software.codidact.com/help/on-topic) for more details about what is on-topic and offtopic in this community.
(more)
about 3 years ago
Comment Post #281315 Ideally, always knowing created by and created on behalf of might be useful, but the whole impersonation thing is kind of an edge case. It is a necessary evil to quicker reproduce issues coming from the users and very few are able to activate it. All other flows should be executed with impersonation ...
(more)
about 3 years ago
Comment Post #281308 As currently written, I also think this belongs more to meta than the main site. I will try to figure out a way to migrate it there and reopen it (have an issue with migration due to meta tags).
(more)
about 3 years ago
Comment Post #281304 "As we do it: with logging" - this indeed seems to be the best approach. Just had a conversation with my boss and confirmed that such a solution was used for an important product that was externally audited. The audit said it is fine to allow users to fully impersonate someone else as long everything...
(more)
about 3 years ago
Comment Post #281192 @DerekElkins Yes, this can also happen and a smoke is complementary to the deployment using migrations. Also, production has a health monitoring in place which also checks that SELECTs can be performed against the database.
(more)
about 3 years ago
Comment Post #281288 Besides the nice lexicographic order you get by default with YYYY-mm-dd, the timestamps are often extended with hour, minute, seconds, milliseconds. By starting with the year , adding them is done in a consistent way (see [this](https://www.w3.org/TR/NOTE-datetime)).
(more)
about 3 years ago
Comment Post #281253 That playground is awesome. Also, I think that grouping the affected controls in a FormGroup makes perfect sense. Thanks.
(more)
about 3 years ago
Comment Post #281200 Storing function names in string and dynamically invoking those functions is not actually a nice thing (the linter and the transpiler cannot check if these functions actually exist). That's why I am asking if by chance I have missed something and had to rely on such a solution.
(more)
about 3 years ago
Comment Post #281202 @JohnDoea The first example (using fetch API) should replace your code using xhr. The example hardcodes the method (POST), but you can replace it if your own.
(more)
about 3 years ago
Comment Post #281199 What is contactForm.method containing? If it is 'POST', I do not see the request body to be sent to the server: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send
(more)
about 3 years ago
Comment Post #281193 Have you tried using a heredoc string? https://stackoverflow.com/a/1848974
(more)
about 3 years ago
Comment Post #281180 @JohnDoea Yes, I think that is the way to define the message content type.
(more)
about 3 years ago
Comment Post #281168 A quick "frame challenge": Why not always insert a [UTC timestamp in the table](https://stackoverflow.com/questions/16609724/using-current-time-in-utc-as-default-value-in-postgresql) and [display the local time](https://stackoverflow.com/questions/36341060/convert-a-utc-timezone-in-postgresql-to-est-...
(more)
about 3 years ago
Comment Post #281158 I am a fan of keeping things simple. If there is no strong reason to rely on something else, why not have everything provided by the same provider: the client accesses the form hosted on example.com (your provider), fills the form and your script running on example.com sends an e-mail to your contact...
(more)
about 3 years ago
Comment Post #281158 I would go with "buying an email box from my domain registrar" because it seems to be the easiest + safest solution. As long as the contact form is not abused, I do not think you will ever run into trouble with the spam filters. You did not mention, but is the destination an e-mail address on your do...
(more)
about 3 years ago
Comment Post #281159 It is not clear what the exact problem is here. [This](https://logging.apache.org/log4net/release/manual/configuration.html) shows that it is possible to read the configuration from a file. Indeed this is a structured file (XML), not an "arbitrary data structure". Do you mean something like an YAML c...
(more)
about 3 years ago
Comment Post #281058 Do you receive a response from the server? Typically servers provide a response, except for the case when the connection cannot be made (timeout, explicit connection reset from the server). I think there is no exception, but an HTTP code that should be available if you read the response from the line...
(more)
about 3 years ago
Comment Post #281049 I think "traditional" is more appropriate than "standard" (see [International email](https://en.wikipedia.org/wiki/International_email) ).
(more)
about 3 years ago
Comment Post #281043 @JohnDoea‭ Ok, so they are handling authentication behind the scene. `mail` seems to return only true or false (success), so I think the only option is to check (or ask your provider to) the e-mail logs which should contain the cause of the error.
(more)
about 3 years ago
Comment Post #281043 [This] might (https://stackoverflow.com/a/32413860/2780791) be relevant if my guess is right.
(more)
about 3 years ago
Comment Post #281043 There are many years since I have sent an e-mail using PHP, but I remember that e-mails required some kind of authentication to be treated correctly by the e-mail providers (they need to be sure that they come from the domain they seem to use). Failing to provide this, most of them reached the Spam ...
(more)
about 3 years ago
Comment Post #281025 I think you will get better search results using "contact form service" instead. Results indicate headlines like "custom forms with no server code", "simple contact form service" and others. All the solutions seem to allow the client to construct the form and use it as a third-party service.
(more)
about 3 years ago
Comment Post #281001 Indeed my post lacked important information about the usage. I edited the post, but your answer is very useful anyway. Thanks.
(more)
about 3 years ago
Comment Post #280970 @meriton Yes, it does not seem to cover your case. Since we can safely assume that the time between the order SELECT and shipment INSERT is very short, is it acceptable to fix such issues (which will be very rare) using an async job or similar?
(more)
about 3 years ago
Comment Post #280975 Relevant Q&A to provide some insight about how hashes are used in picture comparison: https://stackoverflow.com/questions/4853185/how-does-comparing-images-through-md5-work
(more)
about 3 years ago
Comment Post #280974 Currently, the question lacks quite a deal of information to be able to help you. What programming language/framework are you using? Should this be done programmatically or you only need a piece of software to do this?
(more)
about 3 years ago
Comment Post #280965 I was the one that missed including this point in the on-topic section. Sorry about that. I have updated the section and provided an answer with more details.
(more)
about 3 years ago
Comment Post #280970 What you are describing seems to be a concurrency management control issue. I am not sure what ORM you are using, but it might have support for concurrency. I have experience mainly with EF which can take care of these cases through [concurrency checks](https://www.learnentityframeworkcore5.com/handl...
(more)
about 3 years ago
Comment Post #280933 I have closed this question because the issue is a simple typographical error (format is an argument for the print, not a function to be applied to the print result). Also, check [this help page](https://software.codidact.com/help/on-topic).
(more)
about 3 years ago
Comment Post #280795 I also think this question is too general as it is right now and I agree with the reasons stated in the other comments.
(more)
about 3 years ago
Comment Post #280778 @FractionalRadix I agree to keep this type of question at the current stage. However, one non-technical reason (e.g. too broad) IMO is that for a developer it is far more useful to try and error and ask focused questions than having a general question with some answer(s). It involves much more effort...
(more)
about 3 years ago
Comment Post #280778 This is an interesting question, but it is quite broad. We encourage people to search a bit for possible solutions and ask more specific questions in our community. Please take a look at [How to ask a great question](https://software.codidact.com/help/how-to-ask).
(more)
about 3 years ago
Comment Post #280662 Your question from Software Engineering SE is no longer available (I guess it was removed in the meantime).
(more)
about 3 years ago
Comment Post #280666 For non-relational databases (I have little experience with them) I would use a repository for each of them. Never used a TransactionScope like this, but I guess I would have the transaction outside of the Application (in some repository or service). Is it recommended to work like this? I thought tha...
(more)
about 3 years ago
Comment Post #280662 Check [this article](https://www.thereformedprogrammer.net/is-the-repository-pattern-useful-with-entity-framework-core/) for a good insight about your issue.
(more)
about 3 years ago
Comment Post #280223 @TechnologicallyIlliterate‭ No, it does not confirm. By "cloud technologies" we mean the part that is related to software development. E.g. how to configure some authentication service, user and access rights or a load balancer when using a cloud provider. As written, your question is more related to...
(more)
about 3 years ago
Comment Post #280607 @Moshi It is the case, but I noticed this only after luap42 asked me to provide the URL. However, the closing as the duplicate process is a little bit confusing since it does not mention that the URL should be from the same community (or even better validate it on client side).
(more)
about 3 years ago
Comment Post #280607 Just noticed that I have entered the URL (https://meta.codidact.com/posts/277177), but the placeholder says that it also accepts the ID. I think the issue is that I pointing to a duplicate from another site (community).
(more)
about 3 years ago
Comment Post #280512 Ref. to "PHP 7 PHP object is faster and lighter than array", can you please provide a reference to at least one benchmark? It is nice to provide references, so that future readers are able to find more.
(more)
over 3 years ago
Comment Post #280397 I added "Do not use" because currently there is no option to remove the tag. I could use a tag merge to get rid of it though.
(more)
over 3 years ago
Comment Post #280223 Unfortunately, this question is not [about Software Development](https://software.codidact.com/help/on-topic).
(more)
over 3 years ago
Comment Post #280169 In most cases, the canonical way to fetch data from an external application is though its API. Reddit seems [to expose one](https://www.reddit.com/wiki/api).
(more)
over 3 years ago
Comment Post #280112 I also suspect this reason. Unfortunately, where I work it sometimes happens that folks to just copy-paste old projects configuration (in this case Jenkins job configuration) without wondering why a step is there. Thanks.
(more)
over 3 years ago
Comment Post #280089 Questions about programming resources are currently off-topic, as indicated [here](https://software.codidact.com/help/on-topic). However, asking questions about specific programming issues when working in Julia is on-topic.
(more)
over 3 years ago
Comment Post #279853 Not sure if this was mentioned, but we can have a "sandbox" or similar category just like they have on World Building SE: https://worldbuilding.meta.stackexchange.com/questions/639/how-does-the-sandbox-work-how-do-i-use-it . However, the flow is quite tedious (ask in the Sandbox, get feedback. post o...
(more)
over 3 years ago
Comment Post #279853 This is an interesting idea, but there are some drawbacks as shown on SO: https://meta.stackoverflow.com/questions/252781/would-it-be-a-terrible-idea-to-split-so-up-into-a-tiered-platform .
(more)
over 3 years ago
Comment Post #279744 Also, it is not clear why I need more classes. Indeed I might need more code in the tests since each test class defines its own mocks as opposed to the in-memory provider which might have a single place to define all mock data. The setup is actually simpler because it consists of defining mocks for D...
(more)
over 3 years ago
Comment Post #279744 That's an interesting perspective as I failed to realize that indeed the tests have to know something about the infrastructure (the DbSets actually). However, some aspects of your answer are not clear. In my case unit tests require the class to be tested + mocking. The alternative requires the class ...
(more)
over 3 years ago
Comment Post #279712 To be more precise, it is not saying that the questions are posted by luap42, but that the last change was made by luap42. In fact, this is true, but the issue is that that change is invisible for regular users (e.g. who cannot remove answers).
(more)
over 3 years ago