Skip to content

Instantly share code, notes, and snippets.

View carlosdelfino's full-sized avatar
💭
De volta as origens, com o canal Basicão da Eletrônica

Carlos Delfino carlosdelfino

💭
De volta as origens, com o canal Basicão da Eletrônica
View GitHub Profile
@carlosdelfino
carlosdelfino / gem install wdm
Last active February 18, 2018 11:36
Enviroment: Windows 10, CygWin, Ruby 2.2.5p319, Gem 2.6.6
consu_000@SocialSLA ~
$ gem install wdm
Building native extensions. This could take a while...
ERROR: Error installing wdm:
ERROR: Failed to build gem native extension.
current directory: /cygdrive/c/Users/consu_000/.gem/ruby/gems/wdm-0.1.1/ext/wdm
/usr/bin/ruby.exe -r ./siteconf20160812-12032-1pdjkhp.rb extconf.rb
checking for main() in -lkernel32... yes
@carlosdelfino
carlosdelfino / other trace with files and path
Last active August 14, 2016 06:19
no implicit conversion of nil into String on jekyll-multiple-languages
'
Configuration file: /cygdrive/c/Users/consu_000/Documents/GitHub/micro-os-plus.github.io-source-test/_config.yml
Source: /cygdrive/c/Users/consu_000/Documents/GitHub/micro-os-plus.github.io-source-test
Destination: _siteuments/GitHub/micro-os-plus.github.io-source-test
Incremental build: enabledgems/jekyll-3.1.6/bin/jekyll serve --watch --increment
Generating...
/assets
manifest.json
/blog
index.html
source "https://rubygems.org"
gem 'jekyll', '3.2.1'
gem 'kramdown', '1.11.1'
group :jekyll_plugins do
gem 'jekyll-watch', '1.1'
gem 'jekyll-last-modified-at', '0.3.4'
# gem 'jekyll-multiple-languages'
gem 'jekyll-mentions', '1.1.3'
#include<opencv2/opencv.hpp>
#include<boost/format.hpp>
#include<algorithm>
#include<iostream>
#include<vector>
#include<map>
#include<getopt.h>
#include<unistd.h>
#include<fcntl.h>
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev
@carlosdelfino
carlosdelfino / cycloconfig.cpp
Created October 16, 2016 02:27
Classe CycloConfig
/*
* CycloConfig.cpp
*
* Created on: 5 de out de 2016
* Author: [email protected]
*/
#include "CycloConfig.hpp"
#include <opencv2/opencv.hpp>
cmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ -D CMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc -D CMAKE_BUILD_TYPE=RELEASE-NANOPI -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_IMAGEIO=ON -D WITH_GSTREAMER=ON -D ENABLE_NEON=ON -D ENABLE_FAST_MATH=ON -D BUILD_SHARED_LIBS=OFF -D BUILD_NEW_PYTHON_SUPPORT=OFF -D BUILD_EXAMPLES=ON -D BUILD_FAT_JAVA_LIB=OFF -D BUILD_TBB=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=OFF -D INSTALL_TO_MANGLED_PATHS=ON -D INSTALL_CREATE_DISTRIB=ON -D INSTALL_TESTS=ON -D CMAKE_C_FLAGS_RELEASE="-mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -march=armv8-a+crc" -D CMAKE_CXX_FLAGS_RELEASE="-mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -march=armv8-a+crc" -D CMAKE_VERBOSE=ON ..
-- The CXX compiler identification is GNU 4.9.2
-- The C compiler identification is GNU 4.9.2
-- Check for working CXX compiler: /usr/bin/arm-linux-gnueabihf-g++
-- Check for
@carlosdelfino
carlosdelfino / glib-prefer-constructors-over-DllMain.patch
Created November 18, 2016 00:36
From bc90511c1eb333e26e0bc0eaee62375d0e788db6 Mon Sep 17 00:00:00 2001 From: Erik van Pienbroek <[email protected]> Date: Tue, 16 Apr 2013 11:42:11 +0200 Subject: [PATCH] win32: Prefer the use of constructors over DllMain This prevents having to depend on DllMain in static libraries Constructors are available in both the GCC build (GCC …
---
glib/glib-init.c | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/glib/glib-init.c b/glib/glib-init.c
index 0032ee8..dd6ccbf 100644
--- a/glib/glib-init.c
+++ b/glib/glib-init.c
@@ -223,12 +223,14 @@ glib_init (void)
@carlosdelfino
carlosdelfino / dmesg 26 de Março de 2017 10:30 - problemas HD
Last active March 26, 2017 14:00
Mensagens do servidor de dados e aplicações 32bits
[ 727.031759] usb 1-1: USB disconnect, device number 2
[ 729.732216] usb 1-1: new high-speed USB device number 5 using ehci-pci
[ 729.865242] usb 1-1: New USB device found, idVendor=1058, idProduct=0740
[ 729.865256] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[ 729.865265] usb 1-1: Product: My Passport 0740
[ 729.865272] usb 1-1: Manufacturer: Western Digital
[ 729.865279] usb 1-1: SerialNumber: 575835314139313237393632
[ 729.866315] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 729.867408] scsi host3: usb-storage 1-1:1.0
[ 730.865067] scsi 3:0:0:0: Direct-Access WD My Passport 0740 1003 PQ: 0 ANSI: 6
@carlosdelfino
carlosdelfino / gist:417aa38090ae68ed94c3d91affc0797a
Last active June 6, 2017 21:50
mensagens e erros apresentadas ao tentar executar a aplicação em um Tablet Tectoy modelo TT2725
estudio-1:mobileecg_mobile_client carlosdelfino$ tns device run
I/RESPONSE(16600): pVZbb+I4FP4rFc9DHEBz60vFFnaF1E5HtDsvuyvrxHbhTJ04YzuQmar/fU4ubA0EaNUXiI997t+5/PPYA28xKbzpnfckeBhrrywIML13vRVoY4k+/MjiT2wwGozOB6M/5ne9p3dbfNp8B5NpzBQvrOb0UZQBO9O4ssb1JS7QAzp2cXk147PJv0Ucj+QjyqcjAnPlfhToYBgIrBiHH76Or8bf5uPbL4NWkFelN0/NJaawUMOobK7iLeLPlnjCjTVmb3MCswcukfgX3JnEqkDa0vv8nLH1eh05sIAriIRJo8R2CsmtkdVxm9+RgMYaHVXGgUXYFsamcwVS2VtlVygUqxxklans0dUk83Q8Bm/yX8iM1xFPK1EJuI4AYLo47sKu0CU6byxZTte5Bf7Dy9qwQPRol6dKpjTrTBuQlBCBJiNFhueek4I9m07EdFdA9AvzPddNdo82Ba5KoXmCiUbjlYBAmcN0l6sz7gFSXhYhSjhfGV2kVDsgHij+HDNHDmkVOsu+1W8cG0+mZ8MoZpPG7bOpRE8Ouop4NttwRvnD4hg2OcpA+MFyqIpZCeQpZkvgTtFvB6oPO8uEyrwFvfmPpNZMZSt6V8m68LmncsOsQWVNi5Y+7bTFFcBNjhmCeU289wpBKixVn6T1W2kHNcL3QsKbdDnABPopffZtXdpduqgmZCXJF6DxV6hw8H4PLblGUbV7DtoXVFCUGSragOfDMSYNdtHJ9WkYdwFTlUoUHlZKt6AEGQafjfNadA1ANpYmUWdduIwgz9mlyTyhwLFrEDe3B14faUqE3G3QEoF3ANdjqkzhyUet0XGqbVVuxTSO93x97nuhdzvteNL2JDa7/osd0v5KY4P+jbJwWyV/sCo3NdwOhZDl0JzwKs0NX6EETkhYKvrNTyCN0t+MxNbtjs7b3kRQ5bKqAZYXCatPm7as