This video inspired us during our different brainstorming sessions.

#dc comics#batman#dc#bruce wayne#dc fanart#tim drake#dick grayson#batfamily#batfam



#iwtv#interview with the vampire#the vampire armand#assad zaman

seen from Türkiye
seen from Canada
seen from China
seen from United States
seen from China
seen from United States
seen from United States
seen from United States
seen from Saudi Arabia

seen from France

seen from Türkiye
seen from United States
seen from Spain
seen from Japan

seen from United States
seen from Belarus

seen from Germany
seen from Netherlands
seen from United States

seen from Canada
This video inspired us during our different brainstorming sessions.
Vows.js with Everyauth
Everyauth is a node module that provides "authentication and authorization (password, facebook, & more) for your node.js Connect and Express apps."
We wrote some code to manage logins using it, but ran into some difficulty when testing the controller. Everyauth allows to specify, as parameters, the route, view, and even controller actions that it should use1. Because of this, any calls to the controller action are coming in under the context of everyauth.
Normally this wouldn't be an issue, except that everyauth uses promises. The code that we had trouble testing used "this.Promise()" which in dev pointed to everyauth, but in test points to the test runner (which does not have a promise method).
The solution was to provide a closure around the controller call. Here's the pseudo code for vows.js tests:
var promiseLib = require("path/to/everyauth/lib/promise.js"); // ... // other test setup // ... vows.describe('Playing with a controller').addBatch({ topic: function() { var topic = this; var user= { data: "test" }; var registerClosure = function(){ this.Promise = function (values) { var prom = new promiseLib(this, values); prom.callback(function(values){ topic.callback('success',values); },this) .errback(function(err){ topic.callback('error',err); },this) .timeback(function(){ topic.callback('timeout'); },this); return prom; }; controller.actionToTest.call(this,user); }; registerClosure(); }, 'it should return true': function(type,value){ assert.strictEqual(type, "success"); assert.strictEqual(value.data, "test"); } });
Links:
1. https://github.com/bnoguchi/everyauth#password-authentication
Migrii - status 1
As you know (or not), I am currently looking for a new challenge in Europe. Having some free time helps me to focus on an application called Migrii. I created this app with my fellow friends and ex-colleagues (Alex.js and our mobile hacker).
Migrii (http://angel.co/migrii) is a social platform helping you to share, create and attract members to social projects. I won't be too specific for now about it as we are always in discussion about core features.
We have developed about 30% of the application and if you have already built an application alone or founded a startup, you should know that coding is the smallest part of the journey (creating mockups, writing contents, think about a marketing strategy,...).
Currently, our focus is set on providing a nice demo for potential investors. As soon as we will have something working on a production environment, I think we will open the application in private beta.
So, not too much to say about it, stay tuned for further information...