Migrate data from Magento 1.x to Magento 2.x

This article shows how you can migrate data from Magento 1.x site to Magento 2.x site. We will use the Magento’s official Data Migration tool module. – The data migration can be done via the CLI commands. – The data like categories, products, orders, configuration settings, etc. can be migrated. -The data migration depends upon … Read more

Node.js: Asynchronous & Synchronous Code Programming

Node.js is asynchronous in nature. The Node.js APIs are asynchronous or non-blocking. The long-running operations/APIs in Node.js are non-blocking. In Node.js: – The server never waits for any operation to complete and return the data. – The server moves to the next API/operation after calling it. – The response of the previous API call is … Read more

Magento 2: Create Customer Programmatically

This article shows how you can create customers programmatically (through code) in Magento 2.x. I have also written a similar article on Creating Customer Programmatically in Magento 1.x. In this example code, I will show how you can save a customer with general information like firstname, lastname, and email. I will also show how you … Read more

Hyperledger Composer: Create a Simple Blockchain Application [Beginner Tutorial]

This article shows how you can create a Simple Blockchain Application with Hyperledger Composer. Install pre-requisites First of all, you have to install the pre-requisites required for Hyperledger Composer. You need to install the following: – Docker Engine – Docker Compose – Node – Npm – Git – Python – Code Editor Details on pre-requisites … Read more

Magento 2: Forbidden You don’t have permission to access /magento2/ on this server. Server unable to read htaccess file, denying access to be safe

I downloaded the latest Magento 2 version from the Magento download site. Then, extracted it on my Apache Webserver root directory. I renamed the extracted Magento directory as magento2. I installed Magento2 via command line. Now, when I browse http://127.0.0.1/magento2, I get the following error: Forbidden You don’t have permission to access /magento2/ on this … Read more

Hyperledger Fabric/Composer: Error reading configuration: While parsing config: yaml: unknown anchor ‘OrdererDefaults’ referenced

Problem: While trying to start the Hyperledger Fabric or Hyperledger Composer network, you might get the following error: Generating orderer genesis block and channel config transaction with configtxgen 2018-08-22 11:28:37.034 UTC [common/tools/configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen is deprecated. Explicitly passing the channel ID will be required in the future, … Read more

Hyperledger Fabric: Error: Failed to load gRPC binary module because it was not installed for the current system

Problem I was following this Hyperledger Fabric tutorial: Writing your First Application This tutorial demonstrates a Hyperledger Fabric Sample Application named FabCar. Here’s the github repository of the fabcar sample app: https://github.com/hyperledger/fabric-samples/tree/master/fabcar I went inside the fabric-samples/fabcar directory and I was able to run the startFabric shell script: ./startFabric.sh After that, I tried to enroll … Read more

Hyperledger Fabric: Load -> CRIT 002 Error reading configuration: Unsupported Config Type “”

Problem I was following this Hyperledger Fabric tutorial: Building Your First Network It explains about two ways to build and start your network. One is via a shell script called byfn.sh which is simple to use and runs all the commands at once. The other approach is running each and every command manually. This way, … Read more