scrcpy: an open-source application to view and control your Android devices from your computer via USB

scrcpy is an open-source application that allows one to view and control their Android devices from their computer using adb via USB or over a local wireless network. It runs natively on Windows, macOS, and Linux, and does not require a rooted device (developer mode must be enabled to use adb).

error launching Qt6 applications: Cannot mix incompatible Qt library (6.5.2) with this library (6.5.3)

> qt6ct Cannot mix incompatible Qt library (6.5.2) with this library (6.5.3) [1] 26923 IOT instruction (core dumped) qt6ct In order to determine the problematic library, use the strace command: > sudo strace qt6ct mmap(NULL, 24912, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 9, 0) = 0x7f90a0382000 mmap(0x7f90a0385000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 9, 0x3000) = 0x7f90a0385000 mmap(0x7f90a0386000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 9,Continue reading error launching Qt6 applications: Cannot mix incompatible Qt library (6.5.2) with this library (6.5.3)

Linux, Plank Dock & Desktop Entries: Add an open ‘New Window’ action

Plank is a popular application launcher dock in Linux. By default, most application desktop entries do not provide any additional actions. Say we want to add an open ‘new window’ action to our desktop entry for pkgbrowser: Our desktop entry file looks as follows: Simply add the following to the end of the file. OfContinue reading Linux, Plank Dock & Desktop Entries: Add an open ‘New Window’ action

cmake: /usr/include/c++/10.1.0/type_traits(1396): “error: type name is not allowed” or “error: identifier “__is_same_as” is undefined”

If the gcc version being used is incompatible with cuda version, there will be errors such as: See discussion on GitHub: CUDA Build error on Arch Linux and CUDA Compilers – nvcc compatibility chart. This can be resolved by using an earlier version of GCC which is compatible with the CUDA version. In my exampleContinue reading cmake: /usr/include/c++/10.1.0/type_traits(1396): “error: type name is not allowed” or “error: identifier “__is_same_as” is undefined”

cmake: undefined reference to std::__cxx11::basic_string

The default version of gcc in the Arch Linux repositories is now gcc10: This can result in errors during linking while building packages, such as: This issue can be resolved by compiling with an earlier version of gcc: Setting these CMake variables will result in using the gcc9 version of gcc, g++, gcc-ar, and gcc-ranlib:

Setting Energy Saver Preferences on macOS Mojave/High Sierra

System preferences can be set on macOS using the defaults command. For example, say I wish set the Prevent sleep setting that can be set through the System Preferences interface, but instead via command line. If your settings match those in the screenshot above, running defaults read /Library/Preferences/com.apple.PowerManagement.plist in the terminal should output { “ACContinue reading Setting Energy Saver Preferences on macOS Mojave/High Sierra

BetterSnapTool: Windows-like window snapping for macOS

One thing that bothers me about macOS is the lack of the side-by-side “window snapping” functionality that is built into any modern version of Windows and in many Linux windows managers. I often see co-workers manually dragging and re-arranging windows on their screen. BetterSnapTool is a $2.99 app that does exactly this, and much more.

How to Install macOS High Sierra on VMware Player 14.0.0

Download a fresh copy of VMware Workstation Player for Windows or Linux from the official VMware site. The free trial of this product has no expiration if used for non-commercial purposes. You’ll need to unlock your installation of VMware to use Mac operating system as a guest following these instructions (external link). On a computerContinue reading How to Install macOS High Sierra on VMware Player 14.0.0