Skip to content

Instantly share code, notes, and snippets.

View ngw's full-sized avatar

Nicholas Wieland ngw

View GitHub Profile
chienandalusialocal:EngagementConsole ngw$ bundle exec puma
Puma starting in single mode...
* Version 2.8.1 (ruby 2.1.1-p76), codename: Sir Edmund Percival Hillary
* Min threads: 0, max threads: 16
* Environment: development
2014-04-08T10:51:31Z 61971 TID-znnu9k INFO: Sidekiq client with redis options {:url=>"redis://localhost:6379", :namespace=>"conversationflow:sidekiq"}
! Unable to load application
Terminating 4 actors...
/Users/ngw/EngagementConsole/config/initializers/sidekiq.rb:13:in `<top (required)>': uninitialized constant SidekiqUniqueJobs::Config (NameError)
from /Users/ngw/.rvm/gems/ruby-2.1.1@conversation_flow_v2_0/gems/railties-3.2.17/lib/rails/engine.rb:593:in `block (2 levels) in <class:Engine>'
2.1.1 :020 > p = DisqusApi.v3.posts.list(forum: 'thingyyy').all.last
=> {"points"=>0, "forum"=>"thingyyy", "parent"=>nil, "isApproved"=>true, "author"=>{"username"=>"nwieh", "about"=>"", "name"=>"nwieh", "disable3rdPartyTrackers"=>false, "url"=>"", "isAnonymous"=>false, "rep"=>1.2324929999999998, "isFollowing"=>false, "isFollowedBy"=>false, "profileUrl"=>"http://disqus.com/nwieh/", "reputation"=>1.2324929999999998, "location"=>"", "isPrivate"=>false, "isPrimary"=>true, "joinedAt"=>"2014-09-15T15:36:31", "id"=>"122051799", "avatar"=>{"small"=>{"permalink"=>"https://disqus.com/api/users/avatars/nwieh.jpg", "cache"=>"//a.disquscdn.com/uploads/users/12205/1799/avatar32.jpg?1410966241"}, "isCustom"=>true, "permalink"=>"https://disqus.com/api/users/avatars/nwieh.jpg", "cache"=>"//a.disquscdn.com/uploads/users/12205/1799/avatar92.jpg?1410966241", "large"=>{"permalink"=>"https://disqus.com/api/users/avatars/nwieh.jpg", "cache"=>"//a.disquscdn.com/uploads/users/12205/1799/avatar92.jpg?1410966241"}}}, "media"=>[], "is
--- Active Support Version: 2.3.8 ---
Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
> db.followings.find()
{ "_id" : ObjectId("4c2be9944fcb0625aa00002d"), "followed_id" : ObjectId("4c2be9944fcb0625aa00002c"), "follower_id" : ObjectId("4c2be9944fcb0625aa00002b"), "active" : true }
{ "_id" : ObjectId("4c2be9954fcb0625aa000030"), "followed_id" : ObjectId("4c2be9954fcb0625aa00002f"), "follower_id" : ObjectId("4c2be9954fcb0625aa00002e"), "active" : true }
map = function( ) {
emit( followed.permalink, followed );
};
reduce = function( k, vals ) { return 1; }
var user = User.find( { first_name : 'Nicholas' } ).exec( );
user.first( function(result) {
sys.puts( result.__doc.first_name );
});
user.first( function(result) {
sys.puts( result.__doc.last_name );
});
app.configure( function ( ) {
app.use( connect.staticProvider( __dirname + '/public' ) );
app.use( connect.logger( { format: ':method :uri' } ) );
app.set( 'view engine', 'jade' );
} );
[ngw@slicingupeyeballs:~]$ curl http://npmjs.org/install.sh | sh (08-05 16:46)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 194 100 194 0 0 221 0 --:--:-- --:--:-- --:--:-- 460
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2339k 100 2339k 0 0 203k 0 0:00:11 0:00:11 --:--:-- 506k
./cli.js --auto-activate always install npm@stable
npm it worked if it ends with ok
npm cli [ '--auto-activate', 'always', 'install', 'npm@stable' ]
require.paths.unshift( __dirname + '..' );
var sys = require( 'sys' ),
vows = require( 'vows' ),
assert = require( 'assert' );
var app = require( __dirname + '/..' + '/app.js' );
vows.describe( 'The Kenji app' ).addBatch( {
'The application configuration': {
require.paths.unshift( __dirname + '..' );
var sys = require( 'sys' ),
vows = require( 'vows' ),
assert = require( 'assert' );
var app = require( __dirname + '/..' + '/app.js' );
vows.describe( 'The Kenji app' ).addBatch( {
'The application configuration': {
// code
require.paths.unshift( __dirname + '/lib' );
require.paths.unshift( __dirname + '/vendor/mongoose' );
var sys = require( 'sys' ),
fs = require( 'fs' ),
connect = require( 'connect' ),
express = require( 'express' );