UHR Notları

node server.js : port 80
websocket server: port 9090
lighttpd server (CGI için) : port 7070

lighttpd.conf:

server.modules = (
        "mod_access",
        "mod_alias",
        "mod_compress",
        "mod_redirect",
        "mod_cgi",
#       "mod_rewrite",
)
server.document-root        = "/var/lib/cloud9"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 7070
index-file.names            = ( "index.php", "index.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

/etc/lighttpd/conf-enabled/10-cgi.conf

# /usr/share/doc/lighttpd/cgi.txt
server.modules += ( "mod_cgi" )
$HTTP["url"] =~ "/uhr-ng/cgi-bin/" {
        cgi.assign = ( ".sh" => "/bin/bash" )
}

Debian Beagle Disable X

echo “#Disable GUI\noptargs=text” >> /boot/uboot/uEnv.txt
 

Beaglebone black i/f circuits

  • PinMuxing : http://bbbadventures.blogspot.ca/2013/06/pinmuxing.html
  • beaglebone-universal-io : https://github.com/cdsteinkuehler/beaglebone-universal-io

—————————————————- Selection_054 Selection_055 Selection_056

Simple Pull Up-Down

pull-up-down

GPIO Interrupts

https://github.com/fivdi/onoff
Beaglebone how-to – Click a Breadboard button and change status on a web page using node.js
http://beaglebone.cameon.net/home/reading-the-analog-inputs-adc
PWM with BBB http://digital-drive.com/?p=155
BBB GPIO thru /dev/mem http://chiragnagpal.com/examples.html
[nodejs] SPI bit bang with node, process.binding and mmap bindings http://grokbase.com/t/gg/nodejs/137hgenmcr/spi-bit-bang-with-node-process-binding-and-mmap-bindings
BoneScript pin reference https://github.com/jadonk/bonescript/blob/master/src/bone.js
Device Tree Background: https://learn.adafruit.com/introduction-to-the-beaglebone-black-device-tree/device-tree-background

CSS GUI elemanları

RADIO/CHECKBOX

http://html-generator.weebly.com/css-radio-button-checkbox.html GÜZEL 20,55 numara
SLIDER
http://cssdeck.com/labs/css3-range-slider-functional
http://loopj.com/jquery-simple-slider/

websockets

http://socket.io/docs/
Creating Your Own Node.js WebSocket Echo Server: http://cjihrig.com/blog/creating-your-own-node-js-websocket-echo-server/
Starting with Node and Web Sockets: http://codular.com/node-web-sockets
Raspberry Pi — Getting interactive using Node.js WebSockets: http://www.jaredwolff.com/blog/raspberry-pi-getting-interactive-with-your-server-using-websockets/

Animated SVG

http://www.pencilscoop.com/2013/11/animate-svg-icons-with-css3-jquery/
Cool: http://codepen.io/sethabbott/pen/FtuLz
Play button: http://cssdeck.com/labs/amazing-play-button-in-css3
Cool on/off button: http://hongki.at/images/css3-on-off-button/demo/index2.html#