After install ROS Kinetic, cannot import OpenCV

It looks like this problem is caused by ROS adding /opt/ros/kinetic/lib/python2.7/dist-packages to the python path. This actually happens when you activate ROS with the command source /opt/ros/kinetic/setup.bash. This line is often added at the end of your bashrc file, in /home/username/.bashrc. A workaround is to remove this line from the bashrc file. This way the … Read more

What does (void *)1 mean?

This is an old trick to avoid problems with implicit conversions to bool from before explicit contextual conversions were introduced in C++11. It’s intended to be used to check validity: Subscriber my_subscriber = someFunction(); if (!my_subscriber) { // error case } The important point is that no built-in conversion exists from void* to integer types, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)