Skip to content

Instantly share code, notes, and snippets.

@thebadger412
thebadger412 / gist:4436162
Created January 2, 2013 17:07
meteor error.. (I have added the "hi from meteor file" as I wanted to check where the arch errors were coming from, it turned out it came from the main "meteor" file so I removed the "exit 1" and just added hi.. I have removed all the exits from the build dependences file
pi@raspberrypi ~/meteor-test $ cd meteor/
pi@raspberrypi ~/meteor-test/meteor $ ls
admin dev_bundle.xxx examples install.sh meteor packages
app docs History.md LICENSE.txt node_modules README.md
pi@raspberrypi ~/meteor-test/meteor $ ./meteor --help
Unsupported architecture: armv6l
Meteor only supports i686 and x86_64 for now.
hi from meteor file
It's the first time you've run Meteor from a git checkout.
sudo npm install express -g
sudo npm update npm
sudo npm update npm
sudo npm install express -g
sudo ./configure
sudo make
sudo make install
sudo tar xvzf node-v0.8.16.tar.gz
cd node-v0.8.16
sudo wget http://nodejs.org/dist/v0.8.16/node-v0.8.16.tar.gz
@thebadger412
thebadger412 / gist:4413121
Created December 30, 2012 14:53
Router for node serial example
/*
* GET home page.
*/
var fs = require('fs')
exports.index = function(req, res){
res.writeHead(200, {'Content-Type': 'text/html'});
var contents = fs.readFileSync("./public/index.html", "UTF-8");
res.end(contents);
// res.render('index');
@thebadger412
thebadger412 / gist:4413118
Created December 30, 2012 14:51
App.js for node-serial example
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, http = require('http')
, path = require('path')
, serialport = require("serialport").SerialPort;
<html>
<head>
<script src="/socket.io/socket.io.js"></script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
var socket = io.connect('http://YOUR IP HERE');
socket.on('connected', function(data) {
console.log('Connected, this is what I received : ', data);
});