CAUTION: When powering it via the VCC line on the internal serial connector, it probably needs 3.3V rather than 5V!
x96 2GB/16GB
brew options ffmpeg | |
brew install ffmpeg \ | |
--with-chromaprint \ | |
--with-fdk-aac \ | |
--with-fontconfig \ | |
--with-freetype \ | |
--with-frei0r \ | |
--with-game-music-emu \ | |
--with-libass \ |
/** | |
So you want to use the QGraphicsView Drag Mode but with another mouse button than the default left click? | |
You can of course reimplement the mouse_move_event in a subclass but did you notice how ugly it is to implement | |
all the dragging functionality by yourself? | |
All you want to do is use another mouse_button with the existing dragging functionality | |
but there is no such thing as a setDraggingButton function. | |
Here we use a little hack which enables the dragging mode only temporarly when clicking a button of your choice and then | |
sends a left-click event which will trigger the standard dragging functionality of the QGraphicsView. |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='UTF-8'> | |
<title>title</title> | |
<style> | |
body, html { | |
margin: 0; | |
padding: 0; | |
background: #000; |
git clone https://github.com/juj/emsdk.git | |
cd emsdk | |
rd /s /q clang | |
rd /s /q emscripten | |
rd /s /q java | |
rd /s /q node | |
rd /s /q python | |
rd /s /q zips | |
git reset --hard HEAD | |
git checkout master |
#!/bin/sh | |
# Wrapper script around yay to try to ignore errors | |
# Copyright © 2019 Ashkan Kiani | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, |
Note
If you want to use pure WSLg, you can try the new WSLg (XWayland) tutorial or the WSLg (Wayland) tutorial.
In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).
The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc) and tigervnc-standalone-server
.
For this setup, I will use Ubuntu (20.04, 22.04 and 24.04 are working), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample
import datetime | |
import json | |
import os | |
import subprocess | |
import sys | |
############# | |
### USAGE ### | |
############# |