# install software
$ sudo apt-get install subversion libjpeg-dev imagemagick
$ svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer mjpg-streamer
# make mjpg-streamer
$ cd mjpg-streamer
$ make
to generate midi files with melody data
$ cd /magenta/magenta/models/melody_rnn
$ wget http://download.magenta.tensorflow.org/models/basic_rnn.mag
$ wget http://download.magenta.tensorflow.org/models/lookback_rnn.mag
$ melody_rnn_generate --config=basic_rnn --bundle_file=basic_rnn.mag --output_dir=./ --num_outputs=10 --num_steps=128 --primer_melody="[60]"
to generate midi files with polyphony data
Settings for security add a new user
$ sudo adduser ngems-koji
type password
add a new user to sudo group
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make a new user and add the new user to sudo group | |
$ sudo adduser username | |
$ sudo adduser username sudo | |
$ sudo vim /etc/sudoers | |
#pi ALL=(ALL) NOPASSWD: ALL | |
$ sudo awk -F: '($2 == "") {print}' /etc/shadow |
For installing a driver TP-Link Archer T2U I'm using Raspberry Pi3
$ sudo raspi-config
https://github.com/chenhaiq/mt7610u_wifi_sta_v3002_dpo_20130916
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.video.*; | |
Capture myCapture; | |
void setup() { | |
size(640, 480); | |
println(myCapture.list()); | |
} | |
void draw() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import peasy.*; | |
Flock flock; | |
int boundary = 500; | |
PeasyCam cam; | |
// GUI | |
import controlP5.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import peasy.*; | |
Flock flock; | |
int boundary = 500; | |
PeasyCam cam; | |
// GUI | |
import controlP5.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import peasy.*; | |
Flock flock; | |
int boundary = 500; | |
PeasyCam cam; | |
// GUI | |
import controlP5.*; |