Since I like using AngularJS and the current client project and the last few client projects I’ve been on use AngularJS, I realized there may be others out there who want to start learning AngularJS or enhancing their current AngularJS web apps. So I started a newsletter where we post the newest books, tutorials, articles, modules and code libraries that AngularJS developers should check out.
I’m very excited. After starting a fork of node-oauth-libre a month ago, I have implemented a feature that many people have wanted for months: Promises instead of callbacks.
Promises are a way of escaping from Node’s callback hell.
node-oauth-libre now has support for promises thanks to the bluebird library. This support is optional and does not break compatibility with existing uses of node-oauth. To use it, you must explicitly import it.
Click here to check out the release notes for node-oauth-libre 0.9.15 ALPHA. The install and usage instructions are there and a link to some examples.
Here’s an example of using OAuth 1.0 promises:
In the last month I was looking for a Node.js library for authenticating with APIs that use OAuth 1.0a or OAuth 2.0, and found a pretty good library: node-oauth. It was great but it would have been nicer if it had promises instead of callbacks, and maybe if the OAuth 2 class implemented more methods. I started to worry that the library didn’t seem maintained, there were lots of issues and pull requests that are still waiting for a response or to be merged into the code.
I’ve also been reading Free as in Freedom and The Cathedral and The Bazaar and the hackers of each book, Richard M. Stallman and Eric S. Raymond, both took other projects and improved them and contributed back their changes and improvements to the community. With their maintenance, the projects (Emacs and fetchmail) had vibrant developer and user communities.
So I have decided to basically adopt the node-oauth project under the new name node-oauth-libre. This blog post is the announcement that I’m doing this and yes that means I’ve really forked the code. The node-oauth-libre project uses the GPL version 3, with the original code and patches to the original project licensed under the MIT license.
There’s some fixes in there and I spent some of the weekend improving the linter to catch the case where custom tasks are being loaded using loadTasks.
Remember if you’re reporting an issue, please include your Gruntfile and any messages displayed by the program such as an error or stack trace. This makes it much faster for me to track down the issue.
The free book, Producing OSS, is one I’ve referred to now and again when thinking about how free/open source projects should be run and lately I’ve been thinking about how a big company like Red Hat works when they’re based around free/open source projects.
Here are some choice quotes that I think can serve as useful lessons for open organizations.
Great quote from “Permission Marketing: Turning Strangers Into Friends And Friends Into Customers” by Seth Godin –
“At last count ZDNet had more than 250,000 pages of data on their site, with another 500 being added daily. Yet the average visitor to their site looks at a grand total of four pages! Rather than investing in new pages, ZDNet needs to figure out how to have people look at the ones they’ve already got.”
Start reading this book for free: http://amzn.to/1oErewt
Some ideas on growing food in small spaces. As food prices go up in Canada even for basics like tomatoes and lettuce, it could be time to start growing food on the balcony, backyard or anywhere else there’s space and sufficient sunlight!
“Ryerson student’s green roof farming company looking up” https://www.metronews.ca/news/toronto/2016/02/18/student-to-revolutionize-urban-farming.html
Wonder how efficient it is, some things really are more efficient and environmentally friendly to grow elsewhere.
Not everything has to be local but at the same time it sure would be nice to have a way to grow food in a condo or house that didn’t require much space when food prices are set to increase by 18%.