admin

html ::before ::after pseudo-elements

Sometimes, when I inspect an element on a webpage by right-clicking the element and choosing the “Inspect Element” menu item, I can find an interesting element “::before” or “::after” inside […]

What is WordPress shortcode? WP shortcode is what you put in [] in your post. For example, if you write [dateoftoday] in your post, the dateoftoday is a shortcode. Why […]

The usual way to use QNetworkAccessManager and QNetworkReply is: QNetworkAccessManager nam; voif fun() { QNetworkRequest request; request.setUrl(QUrl(“https://myprogrammingnotes.com”)); connect(&nam,SIGNAL(finished(QNetworkReply*)),this,SLOT(replyFinished(QNetworkReply*))); QNetworkReply *reply=nam.get(request); } void replyFinished(QNetworkReply* reply) { reply->readAll(); } According to https://doc.qt.io/qt-5/qnetworkaccessmanager.html, you […]

Bash function looks strange for people who are familiar with other programming languages such as C++, JAVA, etc. First, you seem to never see a bash function that has (formal) […]

How to build a shared library using gcc/g++? Building a shared library with gcc is easy but it takes 2 steps: gcc -c -fpic mytools.c gcc -shared -o libmytools.so mytools.o […]

Why need to define macros in Qt project file? I have a tool source library. The library contains several header files and source files. I used conditional compilation in both […]