Skip to content

Instantly share code, notes, and snippets.

[Unknown]:
ticks total nonlib name
10 1.0%
[Shared libraries]:
ticks total nonlib name
530 52.8% 0.0% /usr/local/bin/node
96 9.6% 0.0% /lib/libc-2.11.2.so
78 7.8% 0.0% /lib/libpthread-2.11.2.so
6 0.6% 0.0% /usr/lib/libstdc++.so.6.0.13
@mape
mape / log
Created August 3, 2010 08:07
< tpryme> mape: Anyone ever have trouble running nodeprofile as sudo?
< mape> tpryme: just released it last night so haven't had a lot of people try it
< mape> what is the issue?
< tpryme> mape: I'm getting a "sudo: noprofile: command not found" despite "sudo whereis nodeprofile" returning "nodeprofile: /usr/local/bin/nodeprofile"
< mape> noprofile !== nodeprofile
< bradleymeck> noprofile != nodeprofile
< tpryme> mape: sorry typo. but yeah getting that error even with nodeprofile (not noprofile)
< mape> what about not sudo?
< tpryme> can't run as non-sudo since /usr/local/bin is root
< tpryme> Don't want to mess with privileges there.
mape@dunderklumpen:~$ npm ls npm
npm it worked if it ends with ok
npm configfile /home/mape/.npmrc
npm cli [ 'ls', 'npm' ]
npm version 0.1.21
npm GET /
[email protected] =isaacs remote
[email protected] =isaacs remote stable
[email protected] =isaacs latest remote
mape@dunderklumpen:~$ npm ls
npm it worked if it ends with ok
npm configfile /home/mape/.npmrc
npm cli [ 'ls' ]
npm version 0.1.21
npm GET /
[email protected] =marak remote
[email protected] =marak latest remote
[email protected] =isaacs latest remote
[email protected] =ry latest remote
mape@dunderklumpen:~$ npm ls installed | awk -F @ '{print $1}' | xargs sudo npm install
npm it worked if it ends with ok
npm configfile /home/mape/.npmrc
npm cli [ 'ls', 'installed' ]
npm version 0.1.21
npm GET /
npm ok
npm it worked if it ends with ok
npm configfile /home/mape/.npmrc
npm cli [ 'install', 'Nothing', 'found' ]
persistantCache.clear();
persistantCache.save('urlCache', urlCache);
persistantCache.save('pageCache', pageCache);
persistantCache.save('contentCache', contentCache);
{"http://www.apple.com/magictrackpad/":true} {"key":"urlCache"}
{} {"key":"pageCache"}
[] {"key":"contentCache"}
{"key":"urlCache"}
{"http://www.apple.com/magictrackpad/":"www.apple.com/magictrackpad/","http://tinyurl.com/28l33rg":true} {"key":"urlCache"}
{"key":"pageCache"}
{"www.apple.com/magictrackpad/":{"count":1,"tweet":{"text":"Apple launches Magic Trackpad http://www.apple.com/magictrackpad/","name":"M. Gong","screen_name":"yobosensei","profile_image_url":"http://a0.twimg.com/profile_images/307619236/profile_normal.jpg","created_at":"a min ago"},"added":1280247061000,"tweeters":["yobosensei"],"title":"Apple - Magic Trackpad - The Multi-Touch trackpad for your desktop."}} {"key":"pageCache"}
{"key":"contentCache"}
[] {"key":"contentCache"}
{"key":"urlCache"}
var app = module.exports = Express.createServer();
app.configure(function() {
app.set('view engine', 'ejs');
app.set('views', __dirname + '/views');
app.set('reload views', 1000);
});
app.configure(function() {
app.use(connect.conditionalGet());
npm it worked if it ends with ok
npm configfile /home/mape/.npmrc
npm cli [ 'ls', 'installed' ]
npm version 0.1.20
npm GET /
npm ok
npm it worked if it ends with ok
npm configfile /home/mape/.npmrc
npm cli [ 'install'
, '[email protected]'
// Find: id-127948013911961470649950206280740122937131673124230331368744372
// Array
{ id: 'id-127948013911961470649950206280740122937131673124230331368744372'
, name: 'mape-id-127948013911961470649950206280740122937131673124230331368744372'
}
// Fetch using array: 30ms
// Object
{ name: 'mape-id-127948013911961470649950206280740122937131673124230331368744372' }