sudo: sorry, you must have a tty to run sudo

sudo: sorry, you must have a tty to run sudo

We’re using an old version of Upstart, on Centos, to manage stopping and starting our Node.js daemons, and one of the things the script does, like any good deamon, is change the user of the deamon process from root to something more applicable, security and all that The scripts look a little like this !upstart […]

Read full story Comments { 0 }
Pipe Viewer

pv – Pipe Viewer – My New Favourite Command Line Tool

I’ve got a rather large dataset that I need to do a lot of processing on, over several iterations, it’s a 20gb zip file, flat text, and I’m impatient and don’t like not knowing things! My new favourite Linux command line tool, pv (pipe viewer) is totally awesome. Check this out:         […]

Read full story Comments { 0 }
Enable Linux Core Dumps

Enable Linux Core Dump

One of our applications (Freeswitch) just randomly crashed for no apparent reason and didn’t write anything to it’s log files. The service we’re trialling is currently in Beta so there’s room to muck about and do some diagnostics. I want to make the kernel dump a core file whenever Freeswitch dies, in case it happens […]

Read full story Comments { 0 }
couchdb

CouchDB {“error”:”insecure_rewrite_rule”,”reason”:”too many ../.. segments”}

Whilst working an AMAZING NPM repository mirror yesterday (which totally works, despite not really offering the performance benefit I’d hoped, because NPM is rubbish) I came across this error whilst doing things                     16 http GET http://localhost:5984/registry/_design/app/_rewrite/-/all/since?stale=update_after&startkey=1371737164294 17 http 500 http://localhost:5984/registry/_design/app/_rewrite/-/all/since?stale=update_after&startkey=1371737164294 18 error Error: insecure_rewrite_rule too […]

Read full story Comments { 1 }
Niche Site Duel 2

Niche Site Duel 2 Participation

Pat Flynn over at Smart Passive Income has just announced the launch of his Niche Site Duel 2 project, and as I kind of called him out a few month ago in my first (stalled) Income Report causing a WordPress ‘ping back’ and his mate Blake to pop in and say hi Rather than be […]

Read full story Comments { 0 }

How To Create An NPM Repository Mirror

We use Node.js a LOT, which means we do npm install a LOT. And npm is pretty terrible, with horrible dependency handling so we can end up requesting hundreds of dependent modules with it’s recursive patten e.g. for just one of our projects we can end up with paths like ./node_modules/bcrypt/node_modules/nodeunit/node_modules/should/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/sigmund/node_modules/tap/node_modules [root@hmon workspace]# find . […]

Read full story Comments { 17 }
Volusion Review

Volusion Review

Whether you are looking to open your first e-commerce store, or a better deal on your existing one, the e-commerce arena is a minefield that needs to be navigated carefully. Businesses usually always end up paying much more for hosted e-commerce solutions than they originally expected because most e-commerce platforms are not completely upfront about […]

Read full story Comments { 1 }

18th June 2013 Tumilson WOD

Today we did a hero WOD called the Tumilson. The RX is 8 rounds for time of: Run 200 meters 11 Dumbbell burpee deadlifts, 60 pound dumbbells But I scaled it with 25kg dumbells ~55lbs.

Read full story Comments { 0 }
collectd

collectd illegal attempt to update using time when last update time is (minimum one second step)

Whilst debugging our CollectD and Graphite setup, I found that CollectD was generating hundreds of repeated errors. Jun 13 17:11:14 hmon collectd[15336]: rrdtool plugin: rrd_update_r (/var/lib/collectd/rrd/hmon/processes/ps_state-running.rrd) failed: /var/lib/collectd/rrd/hmon/processes/ps_state-running.rrd: illegal attempt to update using time 1371136272 when last update time is 1371136272 (minimum one second step) Jun 13 17:11:14 hmon collectd[15336]: rrdtool plugin: rrd_update_r (/var/lib/collectd/rrd/hmon/processes/ps_state-sleeping.rrd) failed: […]

Read full story Comments { 0 }
Bing The Most Altruistic Search Engine

Bing The Most Altruistic Search Engine

I needed to access Bing’s Webmaster Tools to have a look at the configuration for this site. I couldn’t remember the URL off hand so I decided to ‘Google’ the search term using Bing! That’s very nice of them … I guess part of Bing’s preference engine might rank pages higher depending on where the […]

Read full story Comments { 0 }
banner