C++Guns – RoboBlog

30.09.2015

c++11 move semantics - force it

Filed under: Allgemein — Tags: — Thomas @ 11:09

// $ g++ --std=c++11 -Wall -Wextra focemove.cpp // $ ./a.out // Yes using rvalue, move semantics // Yes using rvalue, move semantics // Oh no you forgot std::move somewhere. Deep copy occurs // // After delete unwanted ctor // focemove.cpp: In function ‘void helper(std::vector< int >&&)’: // focemove.cpp:44:20: error: use of deleted function ‘TestClass::TestClass(std::vector< int […]

21.09.2015

Depends: but it is not going to be installed - resolve apt dependencies

Filed under: Allgemein — Tags: — Thomas @ 17:09

Edit file /var/lib/dpkg/status Search for packet with dependency problem. Edit dependency list and fix version numbering to a version, that is installed.

ganglia lm-sensors

Filed under: Allgemein — Tags: — Thomas @ 14:09

thomas@H8QGL:~$ cat gmetric-cpu-temp #!/bin/bash # this script read the core(s) temperature using lm sensors then calculate the average # and send it to the ganglia using gmetric # assumes that the lines reported by lm sensors are formated like this # Core 0: +46.0 C (high = +80.0 C, crit = +100.0 C) SENSORS=/usr/bin/sensors GMETRIC=/usr/bin/gmetric […]

Powered by WordPress