Skip to content

Instantly share code, notes, and snippets.

View daparic's full-sized avatar

daparic

View GitHub Profile

Check version of GCC C/C++ compiler and find closest compiler family match

$ gcc --version
gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

nuc ~
$ cpptestcli -list-compilers | grep 'GNU GCC'
@daparic
daparic / settings.json
Created March 26, 2025 11:55 — forked from vchirikov/settings.json
Windows Terminal config
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": true,
"confirmCloseAllTabs": true,
"showTabsInTitlebar": true,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"initialCols": 170,
"initialRows": 60,
The situation described indicates a mismatch between the expected number of 
fields and the actual number provided, likely due to a bug or oversight in the 
software. Here are potential reasons this can happen:

1. Hardcoded Limit: The software might have a hardcoded limit of 20 fields. 
If the input format changes to include more fields without updating the code, 
this mismatch occurs.

2. Incomplete Update: The software might have been updated to handle more 

Comparing a helium balloon drone design to a fixed-wing drone design involves evaluating their respective strengths and weaknesses across various factors:

1. **Stability and Hovering Capability**:
   - Helium balloon drone: Offers excellent stability and hovering capability due to the buoyant force provided by the helium. It can remain stationary or move slowly with minimal energy consumption, making it suitable for tasks requiring steady observation or data collection.
   - Fixed-wing drone: Typically lacks hovering capability and may require constant forward motion to maintain lift. However, some fixed-wing drones may incorporate VTOL (Vertical Takeoff and Landing) capabilities, allowing for vertical takeoff and landing like a helicopter while still benefiting from fixed-wing flight characteristics during forward motion.

2. **Maneuverability and Speed**:
   - Helium balloon drone: Generally less maneuverable and slower compared to fixed-wing drones. Its movement is limited to vertical ascent, desce
13-Feb-2024 06:35:10.384 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with JAR file [/usr/local/parasoft/data/lib/thirdparty/mysql-connector-java-8.0.30.jar], exists: [false], canRead: [false]
Starting "Run Unit Tests" (Execution) for /src ...
Collecting tests to be executed...
...done.
Preparing execution flow...
Finding test cases...
...done.
[helper.c] Precompiling source: /src/src/helper.c ...
[main.cpp] Precompiling source: /src/src/main.cpp ...
Starting "Run Unit Tests" (Execution) for bladerunner\bladerunner ...
Collecting tests to be executed...
...done.
Preparing execution flow...
Finding test cases...
...done.
[main.cpp] Precompiling source: bladerunner\bladerunner\Source Files\main.cpp ...
[helper.c] Precompiling source: bladerunner\bladerunner\Source Files\helper.c ...
Solution Details
1. Make sure that the network card is configured properly. Once that has been determined and the behavior still persists please proceed to #2
2. The Machine ID algorithm scans for ethernet configuration names of eth0-eth9. If the ethernet configuration is named with a numeric value with greater than 2 digits, then the Machine ID algorithm will fail, which will produce LINUX2-0. Administrator privilege will be required for the following.
a. Back up the file /etc/udev/rules.d/70-persistent-net.rules
b. Edit the file mentioned in (a) and look for the PCI device that is discovered when the command "ifconfig -a" is executed.
c. Change the "NAME" of the attribute, such that, there will only be 1 digit in the name (e.g. change <NAME="eth10"> to <NAME="eth0">).
d. Be sure to assign the ethernet configuration to the proper IP using "Network Preferences".
e. Restart the machine and try to get the Machine ID from the License Page in the Preferences dialog again.
Parasoft C/C++test Professional 2023.2.0 (10.6.3.20231205B2318) -- Copyright (C) 2023 Parasoft Corporation
Using default workspace "/home/dx/parasoft/workspace".
Machine id: LINUX2-6db5ee26 (Default)
[INTERFACE]
NAME: lo
QUALITY: 17
CUSTOM: false
#!/bin/sh
#
P=~/Install/C_Linux_parasoft/cpptest
$P/bin/jre/bin/java \
-cp $P/ide/eclipse/plugins/org.eclipse.equinox.launcher_1.5.600.v20191014-2022.jar \
-verbose:class \
-Dcpptestcli.vendor=Parasoft \
-Dcpptestcli.name=C/C++test \