Algorithm Puzzles: Number of Islands
Algorithm Puzzles everyday every week sometimes: Number of Islands
Algorithm Puzzles everyday every week sometimes: Number of Islands
Last week when I was trying to run tshark in a Docker container to capture http packets, tshark reported following error even with root user:
1 | tshark: Couldn't run /usr/bin/dumpcap in child process: Operation not permitted |
After searching, to access dumcap, we need to add --cap-add
options when start container, then add user into wireshark group:
1 | docker run --cap-add=NET_RAW --cap-add=NET_ADMIN $IMAGE |
Jenkins is running on port 8080 by default, thus user need to manually add :8080 when access Jenkins. If we make it running on port 80(default http port), user will no longer need to type port number manually.
CMake will try to check compiler is working or not if project language was set to C/CXX. However, sometimes we just want to skip this test…
1 | curl -H "Authorization: token <OAUTH-TOKEN>" https://api.github.com |
1 | # Create a new release and get upload url |
Yesterday successfully cross compiled curl with mbedTLS, but there was an error when trying to access a https link:
1 | SSL certificate problem: unable to get local issuer certificate |
To fix it, download CA certificate to local machine and export environment variable CURL_CA_BUNDLE
:
1 | wget https://curl.haxx.se/ca/cacert.pem |
This post records some errors I have met during set up an Android build pipeline with Travis CI.
When I was in university, I had developed a BLE based UAV controller based on an open source Android BLE library. The library itself is quite easy to use but I decided to develop an Android BLE app with native Android BLE API, which can connect and communicate with BLE GATT devices.