I need to run in Debug and release mode PCLS point cloud processing code, but there is no problem in the Debug mode, the release mode
these problems 
through inspection found that is in release mode configuration project properties in addition to the problem, the problem below
release mode, the preprocessing command should not be adding _DEBUG
Author Archives: Robins
Boot / etc/ rc.local What about invalidity? resolvent
Linux boot /etc/rc.local failure problem to provide three ways to solve the boot can not start the rc.local file problem, need friends refer to the following.
/etc/rc.local = /etc/rc.local
1, echo /etc/rc.local>
1, echo /etc/rc.local>; > /etc/profile & & Source /etc/profile
2>eboot
br>
2, reboot
echo /etc/rc.local>
echo /etc/rc.local> > ~/.bash_profile & & The source/etc/profile
Third:
in the/etc/rc3. D increase a startup scripts directory, and then restart the test, the content is as follows:
cat /etc/rc3.d/StartDefautRoute.sh
#! /bin/bash
# [email protected]
route add default gateway 192.168.1.1 dev xenbr0
Some commands cannot be executed in /etc/rc.local
To add a service that automatically runs when the system is started, simply add it to the /etc/rc.local script file. When the command or program is running without a path, for example:
#! /bin/bash
Distccd –user nobody –allow 10.10.98.0/24 –log-file=/var/log/distcc.log –verbose –daemon
loadavg-s 10.10.98.20>; /dev/null 2> & 1
Note that the distccd, loadavg commands are stored in /usr/local/bin/
When the system executes these commands, it will report an error and cannot execute properly!
Because the PATH environment variable was not fully initialized when the rc.local script was executed, the directory /usr/local/bin/ was added to the PATH environment variable only after /etc/profile was executed.
Executing commands in /usr/local/bin/directory in /etc/rc.local requires absolute path.
Centos7 via / etc/ rc.local File configurator boot
Sh
[root@localhost ~]# vi start.sh
start exe
c>usr /dragon/tedr
./ ser>
Local
[root@localhost ~]# vi rc.local
uch /var/lock/subsys/local
nohup sh /usr/dragon/tedr/start.sh > /dev/null 2& > 1 &
Note: & amp; : Represents background execution
Local
[root@localhost ~]# chmod +x /etc/rc.d/rc.local
root@localhost ~]# ll /etc/rc.d/rc.local
[root@localhost ~]# ll /etc/rc.d/rc.local
[root@localhost ~]# reboot
root@localhost ~]# ps-a
[root@localhost ~]# reboot
[root@localhost ~]# ps-a
Using DOS command to run Java program
Run Java programs using the DOS command
First find the location of the program and compile the program with javac
Open the DOS window at the location of the class


A file with the same name but with the suffix.class is generated in the current directory
You need to jump the pointer back to the root directory (SRC) and run it
Note: The runtime needs to be prefixed with the package name
F:\ViC_GymSystem\src> java com.aaa.ViC_GymSystem.Test
If you need to pass an argument, you can just add the argument and separate it with a space
Encoding – unicod utf-8
Ffmpeg (libx264) compiling for IOS
MacOS: 10.13.5 f77 (17)
FFmpeg: 2.7.7
1. The x264 compilation
The source code download: https://github.com/mstorsjo/fdk-aac
Compile script: https://github.com/kewlbear/x264-ios
Brew install NASM
$ nasm -v
NasM version 2.13.03 Compiled on Feb 8 2018
Compile scripts in X264 source code equivalent directory. Execute the compile script.
To fit the project requirements, modify the compiled script as follows:
CONFIGURE_FLAGS=”–enable-static –enable-pic”
ARCHS=”arm64 armv7 armv7s”
I’m just going to leave the ARM64, the ARMv7, the ARMv7s and I’m going to get rid of the i386 x86_64 of the simulator and the idea here is to reduce the size of the library.
Flags are as simple as possible to avoid the hassle of having fewer compilations, so just keep –enable-static –enable-pic
The modified compiled script: https://download.csdn.net/download/wangyubin2010n/10486377
2. Compile FFmpeg
To download the script: https://github.com/kewlbear/FFmpeg-iOS-build-script
Modify the script:
A. Remove i386, x86_64 architecture support,
B. Modify FFMPEG version to 2.7.7;
C. Streamline FFMPEG to remove unnecessary compilation such as binary compilation and DOCS, save time, and simplify the size of the library.
Because the script downloads the FFMPEG source code automatically, the script is executed directly after the modification is completed.
The modified script: https://download.csdn.net/download/wangyubin2010n/10486405
3. Complete
X264 -iOS: Static library containing x264
FFMPEG-IOS: Holds FFMPEG libraries.
Library download address: https://download.csdn.net/download/wangyubin2010n/10486418
Methods of compiling and installing ffmpeg and libx264 in Linux
Compiling FFMPEG was smooth but integrating with Libx264 was tedious
It took me a long time to find it online
It is hereby sorted here
Operating system: CentOS 6.4 64-bit kernel 2.6.32
Compiling environment: GCC 4.4.7
FFMPEG version: 2.4
X264 version: X264 0.142.2479 DD79A61
YASM version: 1.3
Prepare documents:
Ffmpeg source
https://www.ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
x264
Git clone git://git.videolan.org/x264.git
yasm
http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
Compile and install procedure:
1. Install YASM
tar zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make
make install
yasm --version
2. Compile and install X264
cd x264
./configure --enable-shared --enable-pthread --enable-pic
make
make install
3. Compile FFMPEG
cd ffmpeg
./configure --enable-libx264 --enable-gpl --enable-shared --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-pic
make
make install
Install well at FFMPEG runtime if prompted
ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory
You will need to modify the file: /etc/ld.so.conf
Add a line at the end of the file:
/usr/local/lib
Then execute the command:
ldconfig
Rerun the ffmpeg – encoders | grep x264 will find successful installation
Solve the problem that CEPH dashboard cannot be accessed
Fixed Ceph Dashboard not accessible
Check which node the Dashboard is currently in.
[root@ceph02 ~]# ceph mgr services
{
"dashboard": "https://ceph02:8443/"
}
Restart Dashboard in Ceph02 (restart on that node and restart on that node)
[root@ceph02 ~]# ceph mgr module disable dashboard
[root@ceph02 ~]# ceph mgr module enable dashboard
At this point the browser accesses
again
Python error: importerror: DLL load failed: unable to find the specified module solution
The following error is reported while using Python for a dataset:

The reason for the error
The error occurs because the corresponding module’s file is incomplete or there is no corresponding module.
The solution
The solution is as follows:
The main steps are as follows:
1. Locate the module and uninstall it with PIP. Take the example I came across:
pip uninstall numpy
2. Reinstall the module again.
pip install numpy
The point is which module is causing this problem?
We read the wrong picture:

Find the most recent import package code that reported the error, regardless of importing packages from ‘. ‘:

We found out it was NumPy and reinstalled the module.
NPM err! Code enotfound (2020-07-03)
VUE project install dependency package, error as follows:
$ npm install
npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/vue-router/-/vue-router-3.3.4.tgz failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/luminal/.npm/_logs/2020-07-03T04_12_04_809Z-debug.log
Solution:
$ npm config get proxy
null
$ npm config get https-proxy
null
$ npm config set proxy null
$ npm config set https-proxy null
$ npm config set registry http://registry.cnpmjs.org/
$ npm install -g cnpm --registry=https://registry.npm.taobao.org
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
/Users/luminal/.nvm/versions/node/v10.16.0/bin/cnpm -> /Users/luminal/.nvm/versions/node/v10.16.0/lib/node_modules/cnpm/bin/cnpm
+ [email protected]
updated 5 packages in 12.316s
$ cnpm i
bash: cnpm: command not found
$ cnpm install
bash: cnpm: command not found
$ nvm use v10.16.0
Now using node v10.16.0 (npm v6.9.0)
$ cnpm i
⠧ [6/23] Installing uniqs@^2.0.0
WARN node unsupported "[email protected]" is incompatible with [email protected] › [email protected] › [email protected] › watchpack-chokidar2@^2.0.0, expected node@<8.10.0
✔ Installed 23 packages
✔ Linked 750 latest versions
Having previously managed the Node version using NVM, you need to specify the following version: NVM USE v10.16.0
Then use CNPM I or CNPM install
Reference link:
NPM installs an error solution for any package
Raspberry pie upgrade to Python 3.7.3
Install dependency packages
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev
sudo apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
sudo apt-get install -y libncurses5-dev libncursesw5-dev xz-utils tk-dev
Find the corresponding version from the Python web page and click to download it.
sudo wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
Third, extract the
sudo tar -zxvf Python-3.7.3.tgz
Unzip it and enter the generated directory python-3.7.3
cd Python-3.7.3
Install and compile Python
sudo ./configure && sudo make && sudo make install
6. After installation, create/modify the existing soft connection.
create soft connection (first time)
sudo ln -f /usr/local/bin/python3.7 /usr/bin/python
sudo ln -f /usr/local/bin/pip3.7 /usr/bin/pip
Modify the soft connection (more than once)
sudo ln -sf /usr/local/bin/python3.7 /usr/bin/python
sudo ln -sf /usr/local/bin/pip3.7 /usr/bin/pip
Seven, print version test
python3 -V
pip3 -V
success
Implementation of screen cleaning in Python idle
screen things too much, need clear screen, window screen clearing command in Windows is CLS, in Python IDLE is the shortcut Ctrl + L
but this shortcut is not the default, need to do some operation
> Copy and save the following code into your new ClearWindow.py
"""
Clear Window Extension
Version: 0.2
Author: Roger D. Serwy
[email protected]
Date: 2009-06-14
It provides "Clear Shell Window" under "Options"
with ability to undo.
Add these lines to config-extensions.def
[ClearWindow]
enable=1
enable_editor=0
enable_shell=1
[ClearWindow_cfgBindings]
clear-window=<Control-Key-l>
"""
class ClearWindow:
menudefs = [
('options', [None,
('Clear Shell Window', '<<clear-window>>'),
]),]
def __init__(self, editwin):
self.editwin = editwin
self.text = self.editwin.text
self.text.bind("<<clear-window>>", self.clear_window2)
self.text.bind("<<undo>>", self.undo_event) # add="+" doesn't work
def undo_event(self, event):
text = self.text
text.mark_set("iomark2", "iomark")
text.mark_set("insert2", "insert")
self.editwin.undo.undo_event(event)
# fix iomark and insert
text.mark_set("iomark", "iomark2")
text.mark_set("insert", "insert2")
text.mark_unset("iomark2")
text.mark_unset("insert2")
def clear_window2(self, event): # Alternative method
# work around the ModifiedUndoDelegator
text = self.text
text.undo_block_start()
text.mark_set("iomark2", "iomark")
text.mark_set("iomark", 1.0)
text.delete(1.0, "iomark2 linestart")
text.mark_set("iomark", "iomark2")
text.mark_unset("iomark2")
text.undo_block_stop()
if self.text.compare('insert', '<', 'iomark'):
self.text.mark_set('insert', 'end-1c')
self.editwin.set_line_and_column()
def clear_window(self, event):
# remove undo delegator
undo = self.editwin.undo
self.editwin.per.removefilter(undo)
# clear the window, but preserve current command
self.text.delete(1.0, "iomark linestart")
if self.text.compare('insert', '<', 'iomark'):
self.text.mark_set('insert', 'end-1c')
self.editwin.set_line_and_column()
# restore undo delegator
self.editwin.per.insertfilter(undo)
3, then find the config in this directory – extensions. Def this file (idle configuration file extensions), open it in notepad
[ClearWindow]
enable=1
enable_editor=0
enable_shell=1
[ClearWindow_cfgBindings]
clear-window=<Control-Key-l>
Clear shell window Ctrl +L
br>
Python idle add configuration shortcut (Ctrl + L)
Copy the following source file ClearWindow.py into the idlelib directory.
Add configuration items to the config-extensions.def file:
The filename must be: clearwindow.py beware case! Save to directory \Python39\Lib\idlelib\.
Locate the configuration file in the \Python39\Lib\idlelib directory: config-extensions.def
Add at the end:
[ClearWindow]
enable=1
enable_editor=0
enable_shell=1
[ClearWindow_cfgBindings]
clear-window=< Control-Key-l>
"""
file name must be:
ClearWindow.py
Clear Window Extension
Version: 0.2
Author: Roger D. Serwy
[email protected]
Date: 2009-06-14
It provides "Clear Shell Window" under "Options"
with ability to undo.
Add these lines to config-extensions.def
[ClearWindow]
enable=1
enable_editor=0
enable_shell=1
[ClearWindow_cfgBindings]
clear-window=<Control-Key-l>
"""
class ClearWindow:
menudefs = [
('options', [None,
('Clear Shell Window', '<<clear-window>>'),
]),]
def __init__(self, editwin):
self.editwin = editwin
self.text = self.editwin.text
self.text.bind("<<clear-window>>", self.clear_window2)
self.text.bind("<<undo>>", self.undo_event) # add="+" doesn't work
def undo_event(self, event):
text = self.text
text.mark_set("iomark2", "iomark")
text.mark_set("insert2", "insert")
self.editwin.undo.undo_event(event)
# fix iomark and insert
text.mark_set("iomark", "iomark2")
text.mark_set("insert", "insert2")
text.mark_unset("iomark2")
text.mark_unset("insert2")
def clear_window2(self, event): # Alternative method
# work around the ModifiedUndoDelegator
text = self.text
text.undo_block_start()
text.mark_set("iomark2", "iomark")
text.mark_set("iomark", 1.0)
text.delete(1.0, "iomark2 linestart")
text.mark_set("iomark", "iomark2")
text.mark_unset("iomark2")
text.undo_block_stop()
if self.text.compare('insert', '<', 'iomark'):
self.text.mark_set('insert', 'end-1c')
self.editwin.set_line_and_column()
def clear_window(self, event):
# remove undo delegator
undo = self.editwin.undo
self.editwin.per.removefilter(undo)
# clear the window, but preserve current command
self.text.delete(1.0, "iomark linestart")
if self.text.compare('insert', '<', 'iomark'):
self.text.mark_set('insert', 'end-1c')
self.editwin.set_line_and_column()
# restore undo delegator
self.editwin.per.insertfilter(undo)
The filename must be: clearwindow.py beware case!