This file contains 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
#include "ofApp.h" | |
int main() { | |
ofSetupOpenGL(640, 480, OF_WINDOW); | |
ofRunApp(new ofApp()); | |
} |
This file contains 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
#include "ofApp.h" | |
int main() { | |
ofSetupOpenGL(640, 480, OF_WINDOW); | |
ofRunApp(new ofApp()); | |
} |
This file contains 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
kinder:apothecary stephan$ /Applications/openFrameworks-0.9.3-master/scripts/apothecary/apothecary update ofxOpencv | |
----- opencv ----- | |
Downloading "opencv" | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 120 0 120 0 0 151 0 --:--:-- --:--:-- --:--:-- 151 | |
100 72.6M 0 72.6M 0 0 1508k 0 --:--:-- 0:00:49 --:--:-- 1660k |
This file contains 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
// | |
// videoRecorder.h | |
// ofxVideoRecorderExample_ROI | |
// | |
// Created by Stephan Schulz on 2016-04-15. | |
// | |
// | |
/* | |
install homebrew via http://brew.sh |
This file contains 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
char myScript[255]; | |
sprintf(myScript, "osascript -e 'try' -e 'mount volume \"smb://10.111.222.5/admin/Desktop\" as user name \"admin\" with password \"hemmer\"' -e 'end try'"); | |
std::system(myScript); | |
ofFile file; | |
string toPath = "/Volumes/Desktop"; | |
string fromPath = ofToDataPath("2016.mov"); | |
ofLog()<<"from: "<<fromPath; | |
ofLog()<<"to: "<<toPath; |
This file contains 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
[notice ] ofxVideoRecorder: setupCustomOutput | |
[notice ] videoRecorder: start | |
ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers | |
built with Apple LLVM version 7.0.2 (clang-700.1.81) | |
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-vda | |
WARNING: library configuration mismatch | |
avutil configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-vda | |
avcodec configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clan |
This file contains 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
[notice ] ofxVideoRecorder: setupCustomOutput | |
[notice ] videoRecorder: start | |
[ error ] ofxVideoDataWriterThread: 12:02:37:528 - write to PIPE failed with error -> 32 - Broken pipe. | |
[ error ] ofxVideoDataWriterThread: 12:02:37:572 - write to PIPE failed with error -> 32 - Broken pipe. | |
[ error ] ofxVideoDataWriterThread: 12:02:37:636 - write to PIPE failed with error -> 32 - Broken pipe. | |
ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers | |
built with Apple LLVM version 7.0.2 (clang-700.1.81) | |
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-vda | |
WARNING: library configuration mismatch | |
avutil configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample -- |
This file contains 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
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
string path = "/Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist"; | |
ofFile file; | |
file.open(path); // open a file | |
ofBuffer buffer = file.readToBuffer(); // read to a buffer | |
// ofXml XML; | |
// XML.loadFromBuffer( buffer.getText() ); // now get the buffer as a string and make XML |
This file contains 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
char myScript[255]; | |
sprintf(myScript, "osascript -e 'try' -e 'mount volume \"smb://192.168.1.237/admin/Desktop\" as user name \"HERE_ADD_YOUR_USERNAME\" with password \"HERE_ADD_YOUR_PASSWORD\"' -e 'end try'"); | |
std::system(myScript); |
This file contains 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
# save-webpage.py | |
# http://programminghistorian.org/lessons/code-reuse-and-modularity | |
# modifications needed to run on raspberry pi with python 3 | |
# http://stackoverflow.com/questions/2792650/python3-error-import-error-no-module-name-urllib | |
import urllib | |
from urllib.request import urlopen | |
import time |
OlderNewer