[PHP] Unable to detect character encoding – how to detect it properly?

Last time I had a very strange case for simple XML file processing. the file was downloaded from the external server, there was no response header about content-encoding but the browser (Chrome) could display it correctly, the file was processed by file_get_contents function. The issue was that preg_match couldn’t find anything and str_replace was not…… Read more [PHP] Unable to detect character encoding – how to detect it properly?

JavaScript: don’t remove element before all events occurs

Sometimes really simple bug can be very hard to find – and expensive to have. In this case I’m talking about business costs – a lot of some specific events for a marketing campaign wasn’t tracked properly. The Problem Tracking of “clicked” events doesn’t work for some buttons (mostly responsible for closing modals/alerts). The Context… Read more JavaScript: don’t remove element before all events occurs

[FIXED] Sonar Scanner: No quality profiles have been found

Sometimes after running Sonar Scanner you could get error message like this: No quality profiles have been found, you probably don’t have any language plugin installed. This is because Sonar Scanner cannot find any quality profile for your project. Especially when you updated your SonarQube server lately. No worries – there are couple of things you… Read more [FIXED] Sonar Scanner: No quality profiles have been found