wget https://github.com/nginx/nginx/archive/branches/stable-1.16.zip
git clone https://github.com/arut/nginx-rtmp-module.git
unzip stable-1.16.zip
cd nginx-branches-stable-1.16/
sudo apt-get install zlib-devel libssl-dev
./auto/configure --with-http_ssl_module --without-http_rewrite_module --add-module=../nginx-rtmp-module
make
sudo make install
import matplotlib.pyplot as plt | |
import sys | |
''' | |
#!/bin/bash | |
while sleep 1; do | |
sudo netstat -anp | grep "80 " | wc -l | |
top -n 1 -b | grep -E "Cpu|Mem" | |
done |
#!/bin/bash | |
set -x | |
set -e | |
GEMODEL_P=8.8235 | |
GEMODEL_R=50 | |
INPUT_INF="enp2s0" | |
OUTPUT_INF="enp3s0" |
I find the scale of UIPinchGestureRecognizer is confusing, so I did two experiments below, two ways to do the same thing.
gestureRecognizer.scale
start with 1.0 at the beginning of pinch (gestureRecognizer.state == .began), and gestureRecognizer.scale
in later state (.changed or .end) is always based on that, for example, if the view size is view_size
at the beginning of pinch (might not be the same with the original size orig_view_size
), gestureRecognizer.scale
always starts with 1.0, and if it becomes 2.0 later, it's size will be 2 * view_size
, so the scale always based on that when the pinch starts. And we can get the scale at the beginning of pinch (gestureRecognizer.state == .began) lastScale = self.imageView.frame.width/self.imageView.bounds.size.width
, so the scale of the original image now should be lastScale * gestureRecognizer.scale
lastScale
: The scale of last round of Pinch, a round of Pinch is from state.start to state.end, and the scale is based on the o
There are two feature requests relate to bigbluebutton video UI.
This is used for guiding the user to adjust the header and shoulder place before camera, by showing an outline in selfview video.
To do this we can simply add a foreground image, and put that image in the center of selfview window.
Verifying my Blockstack ID is secured with the address 12eBN1w3qKPKJNk9hRrtYuyZYh2A6LkWBA https://explorer.blockstack.org/address/12eBN1w3qKPKJNk9hRrtYuyZYh2A6LkWBA |
#!/bin/bash | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <[email protected]> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |
#!/bin/bash | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <[email protected]> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |