Monit lesson learned: use “as uid”, not sudo

15 Aug

Been setting up monit to auto-restart node if there's a problem.

Not wanting to run Node as root, I tried a sudo in the restart rule, but it failed. Log message:
?? Error: Could not execute sudo

Tried using "as uid" instead and it works. Here's the full working stanza:

?? check host appname with address 127.0.0.1
?? ?? start program = "/usr/local/bin/node /path/to/app.js"
?? ?? ?? as uid??theusername??and gid theusername
?? ?? stop program ??= "/usr/bin/pkill -f 'node /path/to/app.js'"
?? ?? if failed port 3000 protocol HTTP
?? ?? ?? ?? request /
?? ?? ?? ?? with timeout 10 seconds
?? ?? ?? ?? then restart

Ribbit (BT’s phone API) is closing down and directing people to Twilio with a discount offer

10 Aug

The Ribbit Developer Program is Closing

—-

Tuesday August 9th, 2011

??

Dear Ribbit Developers,

Thank you for your participation in the Ribbit Developer program over the past few years. ??We recently changed our business objectives to focus our efforts on voice technology for our parent company, BT Group, and have decided to discontinue support and external access to our voice platform, SDKs and APIs.

To give you time to make transition plans, Ribbit will be closing the Developer and Account Portals, disabling all Ribbit API Keys, and removing all Voicemail Boxes, Transcriptions and Sub Users, 60 days from the date of this notice (Tuesday August 9th, 2011). ??Please prepare accordingly and remove any dependencies on the Ribbit platform from your applications prior to the effective shut down date.

One alternative that might be of interest to you is??Twilio, a programmable voice platform with comparable features and pricing. ??We're pleased to confirm that the team at Twilio have agreed to offer you $100 of FREE credit??and in addition, a $100 discount to their upcoming Twilio Conference to get you started. ??Use coupon code??RIBBITDEVELOPER??to redeem these offers when you sign up for a Twilio account, or register for the conference. ??If you have any questions please contact Twilio at ribbit@twilio.com

Sign up for Twilio

IMPORTANT NOTES:

– All of your saved messages, transcriptions, and any contacts will be permanently deleted.

– All accounts, application API keys, and devices will be permanently disconnected and deleted.

– This notice only refers to Ribbit Developers and does NOT impact??Ribbit Mobile or Ribbit for Salesforce users.

– Twilio free credit offer expires on January 1, 2012.

Please contact us at support@ribbit.com??with any questions.

Sincerely,

??

The Ribbit Platform Product Team

Imran Ghory on ads at leancamp

24 Jul

He’s shard a lot of tips for non conventional tips

Facebook can be cheap esp if your ads are popular and with demographic data supports ab testing. Requires a lot of experiments though.

Linkedin can be great for b2b ads because of the targeting. I you’re a member of a group can reach people directly but don’t abuse it.

Plentyoffish IRS even more detailed demog targeting than fb, which is great for niches.

Stumbleupon you can get a site feaured easily but users tend to be checking the site out and not hang around.

Fb – image is much more important, people hardly look at the title. Amateur photos convert better than professional/stock photos.

Don’t just do first-touch conversions on fb…often people will visit more than once before buying, so need to check it. Upcast-great case studies on fb.

Sent from my iPad

Feedback from Xoogler post

13 Jul
Well, I could really get used to Google+'s comment system :). (And already did, via Buzz.)

But we don't have it for Twitter, so I used ListOfTweets to yoink the lovely feedback after I mentioned my moving on from Google.
See also??http://favstar.fm/users/mahemoff/status/91235289334431744

* @mahemoff Wow, just read your post – all the best with the new ventures!
Wed Jul 13 22:35:13 +0000 2011
(http://twitter.com/statuses/91274509893636100??http://twitter.com/tim_iles)
??
* @mahemoff that's good, see you around hopefully 😉
Wed Jul 13 22:00:34 +0000 2011
(http://twitter.com/statuses/91265788987703300??http://twitter.com/twitrnick)
??
* @mahemoff Congrats. Looking forward to what comes next. Best wishes. 🙂
Wed Jul 13 21:50:06 +0000 2011
(http://twitter.com/statuses/91263154448900100??http://twitter.com/micrypt)
??
* @mahemoff Best of luck with your new adventure!
Wed Jul 13 21:49:45 +0000 2011
(http://twitter.com/statuses/91263067370950660??http://twitter.com/ariyahidayat)
??
* @mahemoff Thought you'd gone a bit quiet (and yr G+ profile says "osmosoft"!) – hope to bump into you again sometime to talk tech stuff..
Wed Jul 13 21:36:37 +0000 2011
(

??http://twitter.com/schmerg)
??
* been a fan/friend of mike's for along time. great guy. RT @mahemoff Hello, I've left Google. I blogged about it.??http://bit.ly/nUreSx
Wed Jul 13 21:26:12 +0000 2011
(http://twitter.com/statuses/91257140592910340??http://twitter.com/jasonsalas)
??
* @mahemoff Good luck with what you decide to work on next. Look forward to seeing it 🙂
Wed Jul 13 21:24:38 +0000 2011
(http://twitter.com/statuses/91256746693234690??http://twitter.com/alex_gibson)
??
* @mahemoff Really enjoyed reading your article about google. Nice stuff!
Wed Jul 13 21:22:53 +0000 2011
(http://twitter.com/statuses/91256307276976130??http://twitter.com/sarahleighbrich)
??
* @mahemoff sad to see you go mike, they've lost a real pro. no doubt you've got good stuff ahead. 🙂
Wed Jul 13 21:18:47 +0000 2011
(

??http://twitter.com/jasonsalas)
??
* @mahemoff All the best, hope to see you in London some time!
Wed Jul 13 21:15:48 +0000 2011
(

??http://twitter.com/evilhackerdude)
??
* @mahemoff All the very best for your next venture! Cant wait to see what new boundaries you will be pushing on the open web 🙂
Wed Jul 13 21:14:47 +0000 2011
(http://twitter.com/statuses/91254268694245380??http://twitter.com/divya)
??
* @mahemoff rock on mate, all the best!
Wed Jul 13 21:14:00 +0000 2011
(http://twitter.com/statuses/91254070861508600??http://twitter.com/Orangecoding)
??
* Cool post from the coolest developer relations guy I ever met:??http://t.co/Z8HAmCq??/cc @mahemoff #google
Wed Jul 13 21:09:42 +0000 2011
(http://twitter.com/statuses/91252988072558600??http://twitter.com/twitrnick)
??
* @mahemoff good luck. Sounds like the start of a new exciting adventure.
Wed Jul 13 21:04:46 +0000 2011
(http://twitter.com/statuses/91251747313549310??http://twitter.com/StephenTallamy)
??
* @mahemoff Wow, didn't expect that. Your plans sound exciting! 🙂
Wed Jul 13 21:00:06 +0000 2011
(http://twitter.com/statuses/91250572761632770??http://twitter.com/aerotwist)
??
* @mahemoff can't wait to play with your apps!
Wed Jul 13 20:58:47 +0000 2011
(http://twitter.com/statuses/91250241357090820??http://twitter.com/sparrk)
??
* @mahemoff Curious to know what you think is a "logical" career move from Google?
Wed Jul 13 20:55:40 +0000 2011
(http://twitter.com/statuses/91249454765715460??http://twitter.com/KushalP)
??
* @mahemoff wish you developer successful app, and also talk about it to us 🙂 and i hope you'll continue attending conferences with new talks
Wed Jul 13 20:42:48 +0000 2011
(http://twitter.com/statuses/91246220827308030??http://twitter.com/alex_s_v)
??
* @mahemoff fascinating. Always the free food that made me respect Google. Glad you are staying on with the London collective.
Wed Jul 13 20:42:08 +0000 2011
(http://twitter.com/statuses/91246052203700220??http://twitter.com/Eastmad)
??
* @mahemoff You've got balls : ) I wish you all the best for your next venture Mike!
Wed Jul 13 20:39:31 +0000 2011
(

??http://twitter.com/fredboya)
??
* @mahemoff – Very jealous about your dedicated hacking time. Enjoy!
Wed Jul 13 20:31:52 +0000 2011
(

??http://twitter.com/simonmcmanus)
??
* @mahemoff Good luck with your new goals!
Wed Jul 13 20:27:08 +0000 2011
(http://twitter.com/statuses/91242277279764480??http://twitter.com/jLix)
??
* @steakeye @mahemoff yup it sure does, third monday of every month you get London JS
Wed Jul 13 20:25:44 +0000 2011
(

??http://twitter.com/arranrp)
??
* @arranrp @mahemoff this London js night clashes with LWS right? #gutted
Wed Jul 13 20:24:07 +0000 2011
(http://twitter.com/statuses/91241516223307780??http://twitter.com/steakeye)
??
* @mahemoff best of luck mate. Have no doubt I'll see you again, probably as some squillionaire [you, not me]
Wed Jul 13 20:22:23 +0000 2011
(http://twitter.com/statuses/91241079873089540??http://twitter.com/brucel)
??
* @KushalP @mahemoff you can visit the boat, but it's not going any wear any time soon
Wed Jul 13 20:20:37 +0000 2011
(http://twitter.com/statuses/91240634161176580??http://twitter.com/arranrp)
??
* @arranrp Can we go on the boat afterwards? Shotgun driving! /cc @mahemoff
Wed Jul 13 20:19:28 +0000 2011
(http://twitter.com/statuses/91240348466167800??http://twitter.com/KushalP)
??
* @mahemoff good luck and congrats. coffee and catch up soon?
Wed Jul 13 20:19:22 +0000 2011
(http://twitter.com/statuses/91240323283554300??http://twitter.com/jaggeree)
??
* @mahemoff welcome to the outside!
Wed Jul 13 20:18:26 +0000 2011
(http://twitter.com/statuses/91240084837367800??http://twitter.com/tirsen)
??
* @mahemoff Does this mean more time to work on the ControlFreak extension? 🙂
Wed Jul 13 20:18:23 +0000 2011
(

??http://twitter.com/Thurloat)
??
* @mahemoff good luck mate!
Wed Jul 13 20:18:15 +0000 2011
(http://twitter.com/statuses/91240039333367800??http://twitter.com/adamjodlowski)
??
* @mahemoff all the best for whatever comes next
Wed Jul 13 20:17:47 +0000 2011
(http://twitter.com/statuses/91239923167924220??http://twitter.com/autowired)
??
* @mahemoff I may have to stock up for monday cc/ @kushalp
Wed Jul 13 20:17:01 +0000 2011
(http://twitter.com/statuses/91239731387568130??http://twitter.com/arranrp)
??
* @mahemoff talking at Asyncjs in Brighton on the 28th, but could do beer before that.
Wed Jul 13 20:16:44 +0000 2011
(

??http://twitter.com/richmarr)
??
* @mahemoff ooh – good luck!
Wed Jul 13 20:16:04 +0000 2011
(http://twitter.com/statuses/91239489183297540??http://twitter.com/boonych)
??
* @mahemoff Good luck with whatever you get up to! Just don't drink too much of the Kool Aid!
Wed Jul 13 20:14:14 +0000 2011
(http://twitter.com/statuses/91239031219818500??http://twitter.com/KushalP)
??
* @mahemoff I'm quite excited
Wed Jul 13 20:13:58 +0000 2011
(http://twitter.com/statuses/91238961225281540??http://twitter.com/arranrp)
??
* @mahemoff see you monday 😉
Wed Jul 13 20:12:58 +0000 2011
(http://twitter.com/statuses/91238712209444860??http://twitter.com/arranrp)
??
* @mahemoff I hope to still see you around conferences…have fun with your future developments.
Wed Jul 13 20:07:12 +0000 2011
(

??http://twitter.com/VinylFox)
??
* @mahemoff Great read. I look forward to hearing about the new adventures.
Wed Jul 13 20:06:43 +0000 2011
(

??http://twitter.com/dmitrigrabov)
??
* @mahemoff haha! you didn't say no??? enjoy your app making time, you've earned it.
Wed Jul 13 20:05:05 +0000 2011
(http://twitter.com/statuses/91236727615782910??http://twitter.com/jake74)
??
* @mahemoff good luck with all your new ventures
Wed Jul 13 20:04:26 +0000 2011
(http://twitter.com/statuses/91236563236818940??http://twitter.com/arranrp)
??
* @mahemoff congrats dude, looking forward to seeing what comes next. Inclined to suggest beer.
Wed Jul 13 20:03:45 +0000 2011
(http://twitter.com/statuses/91236390959988740??http://twitter.com/richmarr)
??
* @mahemoff good luck, look forward to seeing some of your new projects.
Wed Jul 13 20:03:23 +0000 2011
(http://twitter.com/statuses/91236297305358340??http://twitter.com/danielknell)
??
* @mahemoff Wish you all the best for your future.
Wed Jul 13 20:01:59 +0000 2011
(

??http://twitter.com/sebastianroming)
??
* :(((((( RT @mahemoff: I've left Google. Blogged reflections on Google, Developer Relations, and what's next:??http://softwareas.com/i-xoogler
Wed Jul 13 20:01:33 +0000 2011
(http://twitter.com/statuses/91235839899738110??http://twitter.com/aygul)
??
* @mahemoff crikey! we have a programmer job vacancy open if you wanna come up north!
Wed Jul 13 20:00:24 +0000 2011
(http://twitter.com/statuses/91235550236901380??http://twitter.com/jake74)
??
* @mahemoff Noooooo!!!!
Wed Jul 13 19:59:57 +0000 2011
(http://twitter.com/statuses/91235434402820100??http://twitter.com/russenreaktor)

Best known predictor of bug count is LOC. higher level->less bugs #podcast

25 Jun

At around 17:00

Feed:
Blog – Stack Exchange ?? Podcast Feed

URL:
http://blog.stackoverflow.com/index.php?feed=podcast

Description:
free, community powered Q&A

sent from my android nexus s

#podcast Ray Kurzweil – Ray Kurzweil and Tim O’Reilly on the future of ebooks and other tech http://bit.ly/jAmcMh

13 Jun

#podcast
Ray Kurzweil – Ray Kurzweil and Tim O'Reilly on the future of ebooks and other tech

http://bit.ly/jAmcMh

Ray Kurzweil has spent most of his life imagining what the future might be like, and then inventing it. In this keynote from 2010, Kurzweil shares his vision of the future with Tim O'Reilly, founder and CEO of O'Reilly Media. The interview begins with a discussion about the Blio, the future of digital publishing, and finally the Singularity. This interview precedes the September 2010 release of the Blio, a TTS-enabled, full-color, web-enabled eReader.

sent from my android nexus s

Post wdx chai (video)

28 May