Skip to content

Instantly share code, notes, and snippets.

View gist:1063135
!SESSION 2011-07-04 02:27:06.256 -----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.osgi 4 0 2011-07-04 02:27:07.496
!MESSAGE Startup error
View gist:1276055
npm ERR! error installing express@3.0.0alpha1 Error: Unsupported
npm ERR! error installing express@3.0.0alpha1 at checkEngine (/usr/local/lib/node_modules/npm/lib/install.js:493:14)
npm ERR! error installing express@3.0.0alpha1 at Array.0 (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
npm ERR! error installing express@3.0.0alpha1 at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:13)
npm ERR! error installing express@3.0.0alpha1 at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:4)
npm ERR! error installing express@3.0.0alpha1 at installOne_ (/usr/local/lib/node_modules/npm/lib/install.js:471:3)
npm ERR! error installing express@3.0.0alpha1 at installOne (/usr/local/lib/node_modules/npm/lib/install.js:411:3)
npm ERR! error installing express@3.0.0alpha1 at /usr/local/lib/node_modules/npm/lib/install.js:347:9
npm ERR! error installing express@3.0.0alpha1 at /usr/local/lib/node_modules/npm/node_modul
View gist:1276190
root@night:/chatter# node app.js
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'express'
at Function._resolveFilename (module.js:326:11)
at Function._load (module.js:271:25)
at require (module.js:355:19)
at Object.<anonymous> (/chatter/app.js:6:15)
View gist:1276199
root@night:/chatter# node app.js
Express server listening on port 8137 in development mode
Error: Cannot find module 'jade'
at Function._resolveFilename (module.js:326:11)
at Function._load (module.js:271:25)
at require (module.js:355:19)
at View.templateEngine (/chatter/node_modules/express/lib/view/view.js:134:38)
at Function.compile (/chatter/node_modules/express/lib/view.js:65:17)
at ServerResponse._render (/chatter/node_modules/express/lib/view.js:414:18)
at ServerResponse.render (/chatter/node_modules/express/lib/view.js:315:17)
View gist:1282251
var app = require('http').createServer(handler)
, io = require('socket.io').listen(app)
, fs = require('fs')
app.listen(8137);
function handler (req, res) {
fs.readFile(__dirname + '/template.html',
function (err, data) {
if (err) {
View gist:1283332
var express = require('express');
var fs = require('fs');
var app = module.exports = express.createServer();
// Configuration
app.configure(function(){
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
View gist:1288697
The version of iOS on “iPhone” does not match any of the versions of iOS supported
for development with this installation of the iOS SDK. Please restore the device to
a version of the OS listed below, or update to the latest version of the iOS SDK;
which is available here.
OS Installed on iPhone
5.0 (9A334)
Xcode Supported iOS Versions
Latest
View gist:1321974
Before opportunity crowns you with great success, it usually tests your mettle through adversity.
Adversity provides the resistance necessary to develop the strength to overcome great obstacles.
This strength consists of self-confidence, perseverance, and, very importantly, self-knowledge.
For if you do encounter a setback, it is a clue to a personal weakness. You may have been hasty
in judging a competitor, or you may have been too timid in your vision of what needed to be done.
Let adversity be your guide to understanding where you mis-stepped and which qualities you need
to cultivate. No one rejoices in disappointment, but if you are success-conscious, you can turn
the situation into a chance for improving your character, an opportunity you otherwise would
have missed.
View gist:1322066
NSString *path = [self filePath];
if (sqlite3_open([path UTF8String], &db) == SQLITE_OK) {
NSString *sql = [NSString stringWithFormat:
@"INSERT INTO tripfees (tripFeeID, fromAirportID, toAirportID, classID, airlineID, dateOfFlight) VALUES (NULL, %d, %d, %d, %d, '%@')",
fromAirportID, toAirportID, classID, airlineID, dateOfFlight];
NSLog(@"sql: %@", sql);
// now execute sql statement
if (sqlite3_exec(db, [sql UTF8String], NULL, NULL, NULL) != SQLITE_DONE) {
NSAssert1(0, @"Error updating tripfees: %s", sqlite3_errmsg(db));
View gist:1322073
NSString *path = [self filePath];
if (sqlite3_open([path UTF8String], &db) == SQLITE_OK) {
NSString *sql = [NSString stringWithFormat:
@"INSERT INTO tripfees (fromAirportID, toAirportID, classID, airlineID, dateOfFlight) VALUES (%d, %d, %d, %d, '%@')",
fromAirportID, toAirportID, classID, airlineID, dateOfFlight];
NSLog(@"sql: %@", sql);
// now execute sql statement
if (sqlite3_exec(db, [sql UTF8String], NULL, NULL, NULL) != SQLITE_DONE) {
NSAssert1(0, @"Error updating tripfees: %s", sqlite3_errmsg(db));