I hereby claim:
- I am therewasaguy on github.
- I am talkscheap (https://keybase.io/talkscheap) on keybase.
- I have a public key whose fingerprint is D1F6 F4A0 D954 967A 4473 4163 B383 D3A8 E434 0151
To claim this, I am signing this object:
/* | |
Documentation Watcher | |
This assumes a directory structure like... | |
./docwatch.js | |
./p5.js/ <repo> | |
./p5.js-sound/ <repo> | |
Usage: | |
- Run `node docwatch.js` in the root directory. |
/* | |
This script watches p5.js-sound/src for changes, | |
then moves the built library to p5.js to generate documentation, | |
then moves the documentation and p5.sound library files to the p5.js-website repo. | |
Assumes a directory structure like... | |
./docwatch-website.js | |
./p5.js/ | |
./p5.js-sound/ | |
./p5.js-website/ |
/* | |
Place this in the same directory as your p5.js, p5.js-sound, and p5.js-website repos. | |
Tested on nodejs version 6+ | |
Usage: | |
- Run `node docwatch.js` in the root directory. | |
- Run `grunt watch` in p5.js-sound directory. | |
- Run `grunt run` in p5.js-website directory. |
I hereby claim:
To claim this, I am signing this object:
User sessions in J2EE and LAMP stacks have traditionally been handled in memory by the application server handling the user request. Because of that, load balancers have been configured to use sticky sessions. By sticky sessions we mean that once the user has visited the site, they will be assigned an app server and will return to that server for subsequent requests. The load balancers typically handle that by referencing the users session cookie.
Elastic cloud environments differ from traditional server configurations in that they have a variable number of servers based on traffic loads whereas traditional configurations had a fixed number of servers. When traffic volumes decline it is necessary to vaporize servers. In doing so, we would lose user sessions (essentially forcing a logout) unless we come up with a new strategy for session management.
After much research, it is clear that the best
var request = require('request'); | |
var fs = require('fs'); | |
var sox = require('sox'); | |
var spawn = require('child_process').spawn; | |
var WATSON_USER = ''; | |
var WATSON_PASS = ''; | |
var url = 'https://stream.watsonplatform.net/speech-to-text/api/v1/recognize'; | |
https://docs.google.com/presentation/d/1ZVga8B_Mg_uEYL352FyVzo0E96MVnh_5OgWf44tDGbs/edit?usp=sharing
TO DO:
<!doctype html> | |
<html> | |
<head> | |
<script language="javascript" src="p5.js"></script> | |
<script language="javascript" src="p5.sound.js"></script> | |
<script language="javascript" src="p5.dom.js"></script> | |
<script language="javascript" src="sketch.js"></script> |
// shims | |
var requestAnimationFrame = window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.mozRequestAnimationFrame || | |
window.oRequestAnimationFrame || | |
window.msRequestAnimationFrame; | |
var cancelAnimationFrame = window.cancelAnimationFrame || | |
window.webkitCancelRequestAnimationFrame || | |
window.webkitCancelAnimationFrame || | |
window.mozCancelRequestAnimationFrame || window.mozCancelAnimationFrame || |
<!doctype html> | |
<html> | |
<head> | |
<script language="javascript" src="p5.js"></script> | |
<script language="javascript" src="p5.sound.js"></script> | |
<script language="javascript" src="p5.dom.js"></script> | |
<script language="javascript" src="sketch.js"></script> |