This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.
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
from flask import Flask | |
def configure_uwsgi(app): | |
# Setup debugging, logging for uwsgi. | |
try: | |
import uwsgi | |
except ImportError: | |
return | |
from time import strftime |
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
""" | |
SQLAlchemy, PostgreSQL (psycopg2), and autocommit | |
See blog post: http://oddbird.net/2014/06/14/sqlalchemy-postgres-autocommit/ | |
""" | |
from contextlib import contextmanager | |
from sqlalchemy import create_engine, event | |
from sqlalchemy.orm import sessionmaker, Session as BaseSession |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
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
[ZeroVM talk proposals to OpenStack Summit Paris 2014](https://www.openstack.org/vote-paris/SearchForm?Search=ZeroVM) | |
[2014-08-05] "ZeroVM Architecture and ZVM Runtime (ZRT)" by Ryan McKinney at University of Texas San Antonio Cloud & Big Data Laboratory | |
[slides (work in progress)](http://www.slideshare.net/sgt_mac/zero-vm-architecture) | |
[2014-08-01] "Changing the world with ZeroVM and Swift" Jakub Krajcovic at PyConAU OpenStack Miniconf |
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
CREATE TABLE document_store (key CHAR(100) PRIMARY KEY, bucket CHAR(100), value JSON); |
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
use std::comm::Sender; | |
use std::io::net::tcp::TcpStream; | |
use std::io::{Listener, Acceptor}; | |
use std::io::net::tcp::TcpListener; | |
use std::io::timer; | |
use std::time::duration::Duration; | |
// A sketch of the architecture for an IRC BNC that supports multiple client connections. | |
// I am curious if this is the optimal way to architect this kind of program. |
- compile ffmpeg for arm https://github.com/fiorix/ffmpeg-arm
- create youtube 'live event'. get rtmp url + session id
- run this:
raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/<SESSION>
you can tweak -b
and -fps
to your liking. the settings above work well for 1080p. by not specifying width or height we get the full 1920x1080 resolution from the raspi camera