Enabling Password Based Authentication on AWS EC2

By regular security professional prefers key based authentication, By the way most of the people also go with password based authentication. In this article we will look how to do this. Login to your ec2 instance and setup the unix password for your instance there after enable the password authentication on your sshd_config that’s all, as last restart the ssh service Continue reading Enabling Password Based Authentication on AWS EC2

JavaScript Object Cloning

Object cloning on JavaScript is the long way of process when you go with iteration strategy. Example the following cloning a objects into another insted of this itterstion we can use the Object.assign method to avoid this iteration So above method all the objects src1 …. srcN are clone to the object dest But this method have one drawback it is not good for nested … Continue reading JavaScript Object Cloning

How to setup composer properly in your Ubuntu

In order to install composer in your machine, you need to download it. move your current directory to /home/<username> If you already have .composer directory just removed it and uninstall all previous version. Then download the composer setup: php -r “copy(‘https://getcomposer.org/installer&#8217;, ‘composer-setup.php’);” php -r “if (hash_file(‘sha384’, ‘composer-setup.php’) === ’93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8′) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;” php composer-setup.php … Continue reading How to setup composer properly in your Ubuntu

Data Fixture & Demo Data

Hope you enjoy with generating/creating entity. It’s awesome you done it. Now we are going to look around. How to load data fixtures on the created entities. For this, we are using the FixtureInterface to implement the method and load the data into the database. Let’s create a PHP class in our bundle location <Bundle Name>/Migrations/Data/ORM, let’s name as LoadTasks.php <?php namespace BlogBundle\Migrations\Data\ORM; use BlogBundle\Entity\Priority; … Continue reading Data Fixture & Demo Data

Visualize Data in Data Grid in Oro Platform

In this post, we are going to visualize the data in a data grid. For this, we are using the earlier posts Generating Bundle Generating Entity Loading Data Fixtures Ok, first of all, we need to define our data grid in the /src/<Bundle Name>/Resources/config/oro/datagrids.yml In this file, we are going to configure our grid as follow. datagrids: app-tasks-grid: source: type: orm query: select: – task.id … Continue reading Visualize Data in Data Grid in Oro Platform

Play with Entities & Database Tables.

I assume you were playing with Generating Bundles with Oro Platform. Now we are going to create two entities and upgrade to the database. In this tutorial, I plan to create to entities, like task and priority, which are related to many to one relationship. Hope you remember a the Doctorin command to create an entity in Symfony. You may use the wizard to create … Continue reading Play with Entities & Database Tables.

Enabling Console Code in phpStrom with Symfony

In this lesson you will learn about How to setting up the phpStrom for Symfony code based First of all we need to set up the Symfony support plugin to phpStrom. In your file menu go to setting and find plugins tab on the left side bar of the setting window, If you are not find here, press the Browse repositories button and install the … Continue reading Enabling Console Code in phpStrom with Symfony