Categories
Azure

How to use Lifecycle Management rules of Azure Blob

Azure has a built-in feature to change the Access tier from Hot to Cool. Along with this feature, Azure has other options like moving to Archive Storage, Deleting Blob. Below are the steps to set up the rule(s). Login to Azure portal Create blob storage or go to the existing blog storage. On the left […]

Categories
wordpress

How to Integrate PayKun Payment Gateway in WordPress

It is easy and hasslefree to integrate the WordPress websites with the available Plugins from PayKun Payment Gateway. With PayKun WordPress Plugins you do not require any technical knowledge because the steps are very basic and enable smooth integration with your site. It supports WooCommerce >= 2.4, including the new 3.0 release. With PayKun WordPress […]

Categories
Javascript / JQuery Snippets

Difference between two date in JavaScript

Let us see an example of how to calculate the difference between dates using Javascript. First, write an HTML code with Javascript as below:

Categories
Python

How to Connect to SQL Server database using Python, pyodbc

In this post, we gonna use pyodbc package to connect to the SQL server using Python. So let’s install the package using pip package installer. Here is the command to install After installing the pyodbc package, you can use the following code snippet to connect to SQL Server. Here is the simple example code to […]

Categories
Angular 2

How to deploy angular universal to production

This post will cover the step needed to take the angular universal app to the production server. This post assumes that you have running angular universal application and which is generated by angular CLI. Now open your terminal or command prompt, point the cursor to the project folder and run the build command as shown […]

Categories
Node JS

Word document placeholder replacement with Node js

In this post, we gonna see how we can use Docxtemplater library to replace placeholders in the Word Document in Node js based projects.  Let’s initialize the project with npm init –yes command. Now install the Docxtemplater the module as shown below: Now create a file called processWordDoc.js and place the following code. Now execute the […]

Categories
Laravel

How to Upload, download, remove Files to Amazon S3 Using Laravel

Create a controller called UploadController.php with following code. Create a view file Create a file called upload.blade.php in the resources/views directory and place below inside it. Define Routes Open your routes/web.php directory and add following route definitions to it.

Categories
Node JS

How to integrate sonar for a Node JS project?

In this post I will show you SonarQube integration steps for Node based projects. SonarQube is an Open Source Software for static code scanning to discover potential vulnerabilities, bugs and code smell. We gonna use Docker to run the SonarQube server on Docker engine so please install it and have Docker up and running on […]

Categories
Laravel

How to use Datatables in Laravel 5.8

In this tutorial, I will show you how to use the Datatables in the Laravel based project withyajra/laravel-datatables-oracle package. For this tutorial, we gonna use Laravel 5.8 version but the Datatable package usage steps will be pretty simpler with other versions of Laravel framework. As a first step lets setup a brand new Laravel project […]

Categories
Node JS

How to integrate the CardConnect payment with Node JS

This tutorial shows how we can integrate the CardConnect payment gateway within your nodeJs based projects. We gonna use axios npm module to make request to CardConnect APIs. Here are simple steps to access the CardConnect APIs and make payments using CardConnect.Authorization Step 1: Initialize the project with npm init command. It will create a […]

Categories
Node JS

Node js – Azure blob storage generate temporary public url for private file.

This article demonstrates how to generate a temporary public URL to access a private file which resides inside the Azure blob storage which has private access. We gonna use NodeJS and Azure’s official npm module to generate a temporary public URL for a private file using shared access signatures (SAS). Let’s create a directory called […]

Categories
PHP / MySQL

How to connect to Azure SQL Server with PHP

This article demonstrates how to use PHP to connect to an Azure SQL database. To connect to an Azure SQL or Any SQL server using PHP, you should install the required drivers based on your operating system. i.e you have to install the ODBC driver, then install the PHP Driver for SQL Server. In this post, I […]

Categories
Express.js

Express js – Zip and download files

Categories
Node JS

Node js – Download files from Azure Storage to local File system.

Categories
Express.js

Express js – Upload images to Azure Blob Storage