Setup PostgreSQL in Ubuntu

PostgreSQL is a powerful, open source object-relational database system. Install PostgreSQL 1. From PPA (Recommended) Create a file /etc/apt/sources.list.d/pgdg.list, and add following line for the repository # for ubuntu 16.04 users deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main # for ubuntu 15.10 users deb http://apt.postgresql.org/pub/repos/apt/ wily-pgdg main # for ubuntu 14.04 users deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main # for ubuntu 12.04 users deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main Import the repository signing key, and update the package lists ...

June 19, 2016 · 2 min · Sanjeev Kumar Pandit

Install node and npm

Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js’s package ecosystem, NPM, is the largest ecosystem of open source libraries in the world. NPM is a package manager for JavaScript. Use NPM to install, share, and distribute code; manage dependencies in your projects; and share & receive feedback with others. Install node For Windows and Mac users The installer can be downloaded from here. ...

June 12, 2016 · 2 min · Sanjeev Kumar Pandit

Getting started with gulp

Gulp is an automated tool that helps to enhance workflow. Why gulp? Simple Automation of tasks Platform independent Plugins available in large number Getting started Installation Instructions NPM needs to be installed in order to install gulp. Please find the installation instructions here. Remove gulp (if installed before) npm rm --global gulp Install gulp # Globally npm install --global gulp-cli # Within a project npm install gulp --save-dev Implementation in a project Create a file gulpfile.js in project’s root folder and add following contents in it. ...

June 11, 2016 · 2 min · Sanjeev Kumar Pandit

Setup XDebug in PhpStorm

PhpStorm is one of the good IDE for PHP application development available in current era. PHP Xdebug is a very strong tool for debugging, making the life easier for PHP developers to find out the logical mistakes. Integration of Xdebug into PhpStorm will ease the trouble of debugging for PHP developers. You can easily setup Xdebug in PhpStorm by following these steps. Requirements PhpStorm (get it from here) Xdebug (get it from here) Procedures Setup Xdebug (if you haven’t done already). Find the steps here. You should be able to see Xdebug while checking the php version. ...

May 25, 2016 · 4 min · Sanjeev Kumar Pandit

Setup XDebug in Ubuntu

Xdebug’s basic functions include the display of stack traces on error conditions, maximum nesting level protection and time tracking. Xdebug is a very powerful tool for finding out the errors and testing the implementation of logics using PHP. You can easily install Xdebug in your machine by following these instructions. Always run sudo apt-get update before installing any application. There are two sources for installation. Ubuntu: This will provide you the application compiled during the building of the OS you are using. Thus, you may get older version of the application and might not get updates frequently. PPA: You will get the latest version of the application and frequent updates on the application. [Optional] Add PPA to your Softwares List. Skip to step #4 if you don’t want to use PPA for installation. But, I recommend to use PPA for frequent updates. Enter these commands in your terminal. ...

May 24, 2016 · 3 min · Sanjeev Kumar Pandit