Just some FYI, to get started:
- I'm using a 16 GB Sandisk SD card.
- I have a model B Pi, 512 MB RAM (not really relevant, thought I'd mention it).
- Monitor and keyboard connected to the Pi itself, for now.
- Network working, internet access.
int ledPin = 13; | |
//led for visualization (use 13 for built-in led) | |
int speakerPin = 11; | |
//speaker connected to one of the PWM ports | |
#define c 261 | |
#define d 294 | |
#define e 329 | |
#define f 349 |
// This Arduino example demonstrates bidirectional operation of a | |
// 28BYJ-48, which is readily available on eBay for $4.25 inc shipping, | |
// using a ULN2003 interface board to drive the stepper. The 28BYJ-48 | |
// motor is a 4-phase, 8-beat motor, geared down by a factor of 64. One | |
// bipolar winding is on motor pins 1,3 and the other on motor pins 2,4. | |
// Refer to the manufacturer's documentation of Changzhou Fulling | |
// Motor Co., Ltd., among others. The step angle is 5.625/64 and the | |
// operating Frequency is 100pps. Current draw is 92mA. | |
// Vin w USB power is 4.5v too slow for testing use 5v pin. | |
//#include <Narcoleptic.h> |
#!/bin/bash | |
modprobe gpio-sunxi | |
echo 3 > /sys/class/gpio/export | |
pindir=`ls -d /sys/class/gpio/gpio3*` | |
directionfile="${pindir}/direction" | |
valuefile="${pindir}/value" | |
echo "Direction file is ${directionfile}" | |
echo "Value file is ${valuefile}" |
Encrypting text fields in Mongoose is easy using Node's built-in crypto module. You might want to do this if you're using MongoDB as a service (see the recent MongoHQ security breach); or, if you're storing OAuth tokens that could, in the wrong hands, screw with somebody's account on a 3rd party service. (Of course, you should never encrypt passwords: those should be hashed.)
Imagine you have a Mongoose model like that shown below, which is modified only slighly from the example on the MongooseJS homepage.
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var User = mongoose.model('User', {
name: String,
# | |
# Makefile for the USB serial device drivers. | |
# | |
# Object file lists. | |
obj-$(CONFIG_USB_SERIAL) += usbserial.o | |
usbserial-y := usb-serial.o generic.o bus.o |