Video stream url for VLC/DVR:
- rtsp://192.168.1.93:554/user=admin&password=&channel=&stream=.sdp?real_stream--rtp-caching=100
Telnet access
- telnet 192.168.1.10 23
- Localhost login: root
- Password: xmhdipc
| struct Treap{ | |
| typedef struct _Node { | |
| int x,y,c; | |
| _Node *l, *r; | |
| _Node(int _x): x(_x), y(rand()), c(1), l(NULL), r(NULL) {} | |
| ~_Node() { delete l; delete r; } | |
| void recalc() { c = 1 + (l?l->c:0) + (r?r->c:0); } | |
| } *Node; | |
| int count(Node v) { return v?v->c:0; } |
| var express = require('express'); | |
| var passport = require('passport'); | |
| var CasStrategy = require('passport-cas2').Strategy; | |
| var session = require('express-session'); | |
| var app = express(); | |
| var port = process.env.PORT || 3000; | |
| app.use(session({secret: 'supersecretkey'})); |
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin <branch-name> |
| $(function(){ | |
| var formUrl = '/* ex: https://docs.google.com/a/developmentseed.org/spreadsheet/formResponse?formkey=... */'; | |
| // Set up map | |
| var m = mapbox.map('map').addLayer(mapbox.layer().id(' /* mapbox-account.id */ ')); | |
| // Set up map ui features with point selector | |
| var ui = mapbox.ui().map(m).auto().pointselector(function(d) { | |
| // Remove all points except the most recent |
| haiku = -> | |
| adjs = [ | |
| "autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark", | |
| "summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter", | |
| "patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue", | |
| "billowing", "broken", "cold", "damp", "falling", "frosty", "green", | |
| "long", "late", "lingering", "bold", "little", "morning", "muddy", "old", | |
| "red", "rough", "still", "small", "sparkling", "throbbing", "shy", | |
| "wandering", "withered", "wild", "black", "young", "holy", "solitary", | |
| "fragrant", "aged", "snowy", "proud", "floral", "restless", "divine", |