Posts

loopback - The Node.js API Framework

We’ve Rails,Django and Node has yet to be established. Now, there is a powerful framework gaining steam: LoopBack, an open source API framework built by StrongLoop. StrongLoop is an important contributor to the latest Node version, not to mention the current maintainers of Express, one of the most popular Node frameworks in existence.

ruby vpim library generate expendable vcard

Create VCardField to have more capabilities Subclass of Vpim::DirectoryInfo::Field adds a number of helpful methods for creating VCard fields. {% highlight ruby %} require ‘vpim/vcard’ class VCardField < Vpim::DirectoryInfo::Field def VCardField.

unix linux shell script code snippet

Generating script logs with timestamp Just as the duration of script it’s useful to have time-stampped log. Use following function to log time for every output. {% highlight javascript %} log() { echo [date +%Y-%m-%d\ %H:%M:%S] $* } {% endhighlight %}

Token management thoughts reference WEB/REST

Conceptual Token Handling Tokens should be invalidated after each request to the API. The following diagram illustrates this concept: During each request, a new token is generated. The access-token header that should be used in the next request is returned in the access-token header of the response to the previous request.

bash basics linux

Bash Basics Learn basic Bash. Actually, type man bash and at least skim the whole thing; it’s pretty easy to follow and not that long. Alternate shells can be nice, but Bash is powerful and always available (learning only zsh, fish, etc.

linuxbrew node nodejs npm on ubuntu

Remove old “node” Package to Avoid Conflicts Linuxbrew is a fork of Homebrew , the Mac OS package manager, for Linux. Dependencies Ruby 1.8.6 or newer GCC 4.2 or newer 64-bit x86 platform sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev Install Linuxbrew Paste at Terminal prompt:

Uninstall and install node nodejs npm on ubuntu

Remove old “node” Package to Avoid Conflicts $ dpkg --get-selections | grep node ax25-node install node install If you found the old “node” package installed, run this command to completely remove it:

AngularJs Directives Restrict to Elements and Attributes

At a high level, directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) that tell AngularJS’s HTML compiler ($compile) to attach a specified behavior to that DOM element or even transform the DOM element and its children.

ReactJS - To start guide for Rails developers. Part - 1

Introduction to React.js React is a JavaScript library for creating user interfaces by Facebook and Instagram. Many people choose to think of React as the V in MVC. We built React to solve one problem: building large applications with data that changes over time.

SSl csr-certificate post-processing for Web-Server usage

For those of you who may refer my early written post Openssl CSR SHA-2.. Here is Part 2. Install the Certificate (CRT) After giving your CSR to SSL Provider, you need to wait for their response.