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 #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)
over 3 years ago
Edit Post #281200 Initial revision over 3 years ago
Question How to enable or disable a bunch of reactive form controls?
I want to conditionally disabled or not (enabled) a bunch of reactive form controls. However, I have noticed that neither `enable` or `disable` function has a boolean parameter to nicely conditionally disable a control (this is the solution I have seen in other frameworks to allow this, despite being...
(more)
over 3 years ago
Comment Post #281193 Have you tried using a heredoc string? https://stackoverflow.com/a/1848974
(more)
over 3 years ago
Edit Post #281192 Post edited:
fixed migrations table name
over 3 years ago
Edit Post #281192 Initial revision over 3 years ago
Question How to tackle database migrations failure during application initialization on production systems?
Context My ASP.NET Core application got stuck in Production with a 5xx error. By inspecting the logs, I have noticed that a database error occurred during application initialization, namely a SQL Server access error. This happened because the application restarted and at that very moment, it t...
(more)
over 3 years ago
Edit Post #281188 Initial revision over 3 years ago
Answer A: Are JavaScriptless forms accessible?
As indicated by your source using (or not) JS is mostly independent of accessibility since the latter is obtained mainly through HTML and CSS. As a side note, while not using JavaScript is an option, you must also consider the performance and UX implications of this: - client-side validations p...
(more)
over 3 years ago
Comment Post #281180 @JohnDoea Yes, I think that is the way to define the message content type.
(more)
over 3 years ago
Edit Post #281180 Initial revision over 3 years ago
Answer A: PHP emails are sent when $message is a string, but not when its an array
As explained by manassehkatz, the message (aka the body) is a text in PHP (and many other programming languages). If your e-mails have a certain structure, you should create a function that takes that structure (i.e. your array) and generate a string from it. This is a good idea also from an arch...
(more)
over 3 years ago
Edit Post #281171 Post edited:
removed rude acronym
over 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)
over 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)
over 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)
over 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)
over 3 years ago
Edit Post #281148 Post edited:
added relevant tag
over 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)
over 3 years ago
Edit Post #281058 Post edited:
added relevant tags
over 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)
over 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)
over 3 years ago
Comment Post #281043 [This] might (https://stackoverflow.com/a/32413860/2780791) be relevant if my guess is right.
(more)
over 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)
over 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)
over 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)
over 3 years ago
Edit Post #280998 Post edited:
added further details for the question
over 3 years ago
Edit Post #280998 Initial revision over 3 years ago
Question What should healthcheck of an Web API application actually check?
I have to add health checks to a rather new application (Web API, not a microservice) and I and a colleague are not agreeing about what other systems I should include in the check. This application is the beginning of the writing of a legacy one (will work side by side for a long transition period). ...
(more)
over 3 years ago
Edit Post #280985 Initial revision over 3 years ago
Answer A: How to reason about transaction isolation during development
One way to go is probably to use some kind of transaction scope to include everything (SELECT from order and INSERT into shipment) with a high enough transaction isolation (e.g. SERIALIZABLE for SQL Server). However, this might prove very expensive if you need a high transaction throughput. In pr...
(more)
over 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)
over 3 years ago
Edit Post #280977 Question closed over 3 years ago
Edit Post #280975 Question closed over 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)
over 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)
over 3 years ago
Edit Post #280974 Question closed over 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)
over 3 years ago
Edit Post #280978 Initial revision over 3 years ago
Answer A: Are code troubleshooting posts allowed?
Yes Questions about troubleshooting your non-working code are on-topic, provided that you include enough information for the community to understand the context (SO names this minimal reproducible example) and at least one attempt / debugging information. I have also updated the What type of qu...
(more)
over 3 years ago
Edit Post #278625 Post edited:
added missing on-topic type about troubleshooting
over 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)
over 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)
over 3 years ago
Edit Post #280933 Question closed over 3 years ago
Edit Post #280852 Post edited:
almost 4 years ago
Edit Post #280852 Initial revision almost 4 years ago
Answer A: Is it possible to disable the "mysql: [Warning] Using a password on the command line interface can be insecure" warning?
There are multiple ways to do this. Just picked two that I find more usable (not very insecure or hard to do). 1. Use a configuration file to store the credentials mysql --defaults-extra-file=/full/path/to/config.cnf and the configuration file should contain the login data: [cl...
(more)
almost 4 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)
almost 4 years ago
Edit Post #280795 Question closed almost 4 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)
almost 4 years ago