What is the email subject length limit?

See RFC 2822, section 2.1.1 to start. There are two limits that this standard places on the number of characters in a line. Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF. As the RFC states later, you can work around this … Read more

MySQL JOIN with LIMIT 1 on joined table

I like more another approach described in a similar question: https://stackoverflow.com/a/11885521/2215679 This approach is better especially in case if you need to show more than one field in SELECT. To avoid Error Code: 1241. Operand should contain 1 column(s) or double sub-select for each column. For your situation the Query should looks like (this query … Read more

How to limit the number of dropzone.js files uploaded?

I achieved this a slightly different way. I just remove the old dropped file any time a new file is added. It acts as overwriting the file which was the user experience I was going for here. Dropzone.options.myAwesomeDropzone = { accept: function(file, done) { console.log(“uploaded”); done(); }, init: function() { this.on(“addedfile”, function() { if (this.files[1]!=null){ … Read more