maven supports parent-child relationship, where the configuration of the parent project is inherited by the child project. This relationship is specified using the <parent> element as below: <parent> <groupId>com.mygroup</groupId> <artifactId>artifactId</artifactId> <version>1.1</version> </parent> The pom file of the parent project will… Read More
fix ‘could not connect to display’ issue
Today I tried to run foxit reader installer in my Ubuntu Linux as root account. I got the below error message: QXcbConnection: Could not connect to display After struggling for a while, I found the below solution that fix this… Read More
disable password prompt for sudo in ubuntu
After using ubuntu Linux in my xiaomi laptop for months, I find the password prompt really annoying when I try to switch to root account by running the command ‘sudo su -‘. After checking the manual page of ‘sudoers’, I… Read More
disable test in junit5
To disable a test in junit5, using @Disabled annotation in the class or method definition. For example, @Disabled class SortTest { @Test void sortAscTest() { xxxx } } or class SortTest { @Disabled @Test void sortAscTest() { xxxx } }… Read More
recommend a website for SQL railroad generation
Recently I am reading the book “SQL The Complete Reference” to refresh the SQL language of the RDMS. I find that the SQL syntax diagram, sometimes also called SQL railroad, helps a lot in understanding the structure of the SQL… Read More
find package owning a specific file in ubuntu
I am familiar with the rpm package management system, because the products in our company are running in the RHEL Linux OS and the development in my daily work sometimes involves manipulating rpm packages, for example, installing, uninstall, searching rpm… Read More
nginx proxy_request_buffering
Yesterday, I was assigned a bug, in which uploading a file caused a ‘401 unauthorized’ error response. After analyzing this issue, I found that it took about 10 minutes to upload a file. The long time was caused by network… Read More
Nodejs JavaScript heap out of memory
Yesterday when I tried to build my react application, I got the below error message in the console: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory 1: 0x8dc510 node::Abort() [node] 2: 0x8dc55c [node]… Read More