This is a simple example of the MQTT protocol with Node.js. The client code has also been tested with a combination of C++ servers and clients.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Replace first character in each line with another | |
(Useful for annotatin label replaceing stuff) | |
inp_file.txt | |
1 chrX_73833098_73834098 | |
1 chrX_73889652_73890652 | |
1 chrX_91194501_91195501 | |
1 chrX_92000157_92001157 | |
1 chrX_92106500_92107500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --recursive https://github.com/opencv/opencv_contrib.git | |
git clone --recursive https://github.com/opencv/opencv.git | |
Make sure the CmakeCache params are loaded (refer the one in gist), in cmake-gui | |
make -j8 install | |
sudo ldconfig | |
Note: This might not setup python opencv version correctly. It initially showed me 3.2 when I did |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the CMakeCache file. | |
# For build in directory: /home/preeti/softwares/opencv/opencv/build | |
# It was generated by CMake: /usr/bin/cmake | |
# You can edit this file to change values found and used by cmake. | |
# If you do not want to change any of the values, simply exit the editor. | |
# If you do want to change a value, simply edit, save, and exit the editor. | |
# The syntax for the file is as follows: | |
# KEY:TYPE=VALUE | |
# KEY is the name of a variable in the cache. | |
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Package Information for pkg-config | |
prefix=/usr/local | |
exec_prefix=${prefix} | |
libdir=${exec_prefix}/lib | |
includedir_old=${prefix}/include/opencv4/opencv | |
includedir_new=${prefix}/include/opencv4 | |
Name: OpenCV | |
Description: Open Source Computer Vision Library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ================= Removing all gcc/g++ and clean build | |
sudo apt-get remove gcc-7 | |
sudo apt-get remove g++-7 | |
sudo apt-get purge gcc-7* g++-7* | |
sudo apt autoremove | |
# ======================================= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problem occurs with anaconda's Qt installation conflicting with the default Qt5 installation (installed via .run) | |
sudo ln -sf /home/ppillai/anaconda2/envs/tensorflow/plugins/platforms /usr/bin/platforms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS: Ubuntu 18.04 | |
Others: Opencv, NCCL, CUDA 9.2, CUDNN | |
NOTE: For Ubuntu 17.04/ 18.04, there's an alternate way to directly install Caffe via apt-get install caffe-cpu and caffe-cuda | |
I am installing from source so that I can with other caffe algorithms that demand the existence of a CAFFE_ROOT directory | |
Modify Makefile.config file | |
-------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.pcsuggest.com/nvidia-optimus-ubuntu/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download NVIDIA and CUDA drivers from here (.run files) | |
https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=runfilelocal | |
http://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/XFree86/Linux-x86_64/390.25/NVIDIA-Linux-x86_64-390.25.run&lang=us&type=TITAN | |
disable nouveau | |
disable XServer | |
rm /tmp .X* filesuname -r | |
sudo update-initramfs -u [update initramfs] |
NewerOlder