Bcrypt vs PBKDF2

Bcrypt has the best kind of repute that can be achieved for a cryptographic algorithm: it has been around for quite some time, used quite widely, “attracted attention”, and yet remains unbroken to date. Why bcrypt is somewhat better than PBKDF2 If you look at the situation in details, you can actually see some points […]

Continue reading →

javascript tricks

Some useful tricks in javascript 1. Short notation for ifs (ternary operator) This is a great code saver for when you have only one operation. Longhand:


If you rely on some of the weak typing characteristics of JavaScript, this can also achieve more concise code. For example, you could reduce the preceding […]

Continue reading →

Sequelize and multiple database connections

Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more. With sequelize it’s easier to manage the database connection, but this only applies for one database connection, if its more than one its not so easy. This is my current […]

Continue reading →

Development Branching Workflow

Using master/trunk “branches” Even if you don’t know how to use branching in your development process, you’ve already been using a branch just by committing your code to version control. In all major VCS (version control systems), each repo contains at least one branch by default, your working branch: in Subversion this is a folder called trunk, […]

Continue reading →

Sending email in C# asp.net

The Microsoft .NET framework provides two namespaces, System.Net and System.Net.Sockets for managed implementation of Internet protocols that applications can use to send or receive data over the Internet . SMTP protocol is using for sending email from C#. SMTP stands for Simple Mail Transfer Protocol . C# using System.Net.Mail namespace for sending email . We […]

Continue reading →


NodeJS has been garnering a lot of attention late. Briefly, NodeJS is a server-side JavaScript runtime implemented using Google’s highly performant V8 engine. It provides an (almost) completely non-blocking I/O stack which, when combined with JavaScript closures and anonymous functions, makes it an excellent platform for implementing high throughput web services. As an example, a […]

Continue reading →