The most often occurred use case is: user opens a webpage; the webpage reads data from database and displays it to the user; the user modifies some of the data […]

Some web pages need authentication to access. Only authorized users are allowed to read those pages. For example, wordpress back-end pages are prohibited from accessing by unauthorized visitors(you can refer […]

Since space is not allowed in a url, the following html is illegal in syntax: <a href=”http://myprogrammingnotes.com/test.php?p=var1 + var2″>click me</a> However, if you open that html in firefox, you will […]

If you use QTextStream to read and write files, sooner or later, you will encounter the codec problem. Interestingly, Qt uses utf-8 string almost anywhere but QTextStream does not use […]

You may often hear the sentence: a file is UTF-8 encoded. Occasionally, you may want to check if a file is UFT-8 encoded or not. In a UTF-8 encoded text […]

Simply speaking, responsive webpage design is laying elements on a web page in different manners for different browser’s sizes using the same piece of html code. For example, on large […]

Qt project file(.pro file) is used to control the build of projects. I seldom use that because I’m scared by so many mysterious macros. But if you do not want […]