A brain dump of ideas for potential nodecopter projects
Watch a flying nodecopter using a kinect, allowing for a much more precise positioning system and tighter feedback loop.
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'chef' | |
Chef::Config.from_file(File.join(File.dirname(__FILE__), '.chef', 'knife.rb')) | |
vms = { | |
"testbox" => { | |
:box => "precise64", | |
:ipaddress => "192.168.33.10", |
var serialport = require('node-serialport') | |
var sp = new serialport.SerialPort("/dev/ttyO3", { | |
parser: serialport.parsers.raw, | |
baud: 9600 | |
}) | |
sp.on('data', function(chunk) { | |
console.log(chunk.toString('hex'), chunk.toString(), chunk) | |
}) |
# 1. Put this file to /etc/pf.conf | |
# 2. Install init boot scripts using IceFloor then - http://www.hanynet.com/icefloor/ | |
# I tried to use IceFloor to configure everything but it didn't work very well. | |
# 3. Once done, you can confirm the rules were loaded with 'sudo pfctl -sr' | |
# 4. At System Preferences -> Security -> Firewall -> Firewall Options, | |
# check 'Block all incoming connections' to prevent annoying per-app dialogs. | |
set skip on lo0 | |
set block-policy drop |
class Attachment < ActiveRecord::Base | |
belongs_to :attachable, :polymorphic => true | |
mount_uploader :item, AttachmentUploader | |
# background the storage of files to AWS and processing | |
# makes for fast uploads! | |
store_in_background :item | |
attr_accessible :item | |
before_save :update_attachment_attributes |
import ddf.minim.*; | |
import ddf.minim.signals.*; | |
import ddf.minim.analysis.*; | |
import ddf.minim.effects.*; | |
Minim minim; | |
AudioPlayer player; | |
AudioInput input; | |
FFT fft; |
# Provide varbinary columns in a Migration. | |
# Probably a better way to do this? | |
# | |
# Usage: | |
# => t.varbinary :column, :limit => 20, ....[options] | |
# | |
ActiveRecord::ConnectionAdapters::SchemaStatements.module_eval do | |
def type_to_sql_with_varbinary(type, limit = nil, precision = nil, scale = nil) | |
return type_to_sql_without_varbinary(type, limit, precision, scale) unless :varbinary == type.to_sym |
I want to get off Gmail for two reasons:
*@mislav.net
addressI've asked on Twitter what software should I use.
Here are the aggregated suggestions.
input { | |
stdin { type => "stdin-type"} | |
generator { type => "generator-type" message => "generated event" } | |
} | |
output { | |
librato { | |
type => "generator-type" | |
account_id => "[email protected]" | |
api_token => "1231231231231231231231" | |
gauge => ["value", "%{sequence}","source","%{@source_host}", "name", "bar_bytes"] |
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |