I followed: https://etiennemueller.github.io/razer-blade-data-science/
Basically to fix the suspend loop with:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash button.lid_init_state=open"
I followed: https://etiennemueller.github.io/razer-blade-data-science/
Basically to fix the suspend loop with:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash button.lid_init_state=open"
| #!/usr/bin/env python | |
| # To make Python 2.7 print an actual function | |
| from __future__ import print_function | |
| import subprocess | |
| # shlex takes care of splitting a string representing a command in words for subprocess | |
| import shlex | |
| import os | |
| class RealTimeProgramOutputParser(object): |
Just next, next, next filling up your data.
I needed to shutdown the machine on a screen that seemed stuck forever. After starting again it all worked normally and got into Windows.
I found the Dell update application and installed all available updates (as I will probably never boot into Windows again).
rosrun topic_tools transform /h5/thruster_manager/put_stamped /h5/thruster_manager/input_stamped_base_link geometry_msgs/WrenchStamped 'geometry_msgs.msg.WrenchStamped(header=std_msgs.msg.Header(seq=0,stamp=rospy.Time.now(),frame_id="base_link"), wrench=m.wrench)' --import std_msgs geometry_msgs rospyHere I'll describe some ipython tricks to make developing or exploring bugs easier.
First: What is ipython? It's an interactive Python terminal with colours, autocompletion and some additional magic.
Install it with: sudo pip install --upgrade ipython
Just press TAB to autocomplete almost anything, imports, functions, methods...
| def get_window_id_by_pid(pid): | |
| """ | |
| Get the window ID based on the PID of the process, None if not found. | |
| Uses wmctrl and parses it output to find it | |
| """ | |
| from subprocess import check_output | |
| # Looks like: | |
| # 0x03c00041 0 3498 skipper Mozilla Firefox | |
| # WindowID ? PID USER Window Name | |
| # Needs sudo apt-get install wmctrl -lp |
| #!/usr/bin/env bash | |
| # Template from https://betterdev.blog/minimal-safe-bash-script-template/ | |
| set -Eeuo pipefail | |
| cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 | |
| trap cleanup SIGINT SIGTERM ERR EXIT |
To avoid the following error: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled when doing
X forwarding via SSH one needs to install the following (in the remote machine where you are sshing into). This also solves black screen
for me.
# This is needed in the remote machine
sudo apt-get install libegl-mesa0 libglx-mesa0I was trying to compile a Qt project that uses the Qt serialbus module and it was not configuring when using qmake, the error was:
Unknown module(s) in QT: serialbus. So I needed to build qtserialbus myself.
While trying to build it I ran into: fatal error: private/qobject_p.h: No such file or directory.
# Overkill: get all qt-stuff
sudo apt install qml-module-qt-labs-folderlistmodel qml-module-qtquick-extras qml-module-qtquick-controls2 qt5-default libqt5quickcontrols2-5 qtquickcontrols2-5-dev qtcreator qtcreator-doc libqt5serialport5-dev build-essential qml-module-qt3d qt3d5-dev qtdeclarative5-dev qtconnectivity5-dev qtmultimedia5-dev