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 […]
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 […]
In this tutorial, we gonna download YouTube live stream video in chunks for the given interval. We gonna run few commands in the terminal for this task, you can use any programming language to do the same to automate things. FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. Using […]
FROM node:10 WORKDIR /usr/src/app COPY package*.json ./ RUN npm install pm2 -g RUN npm install COPY . . EXPOSE 8080 CMD [“pm2-runtime”, “server.js”]
The null coalescing assignment operator is a shorthand for null coalescing operations. Let’s take a example code So, instead of writing the previous code, we could write the following: If the value of the left-hand parameter is null, then the value of the right-hand parameter is used.
Arrow functions also called “short closures”. We can always access the parent scope, there’s no need for the use keyword. Here is a simple example with an arrow function. Above code we can write as show below without arrow function
Laravel has in-built increment() and decrement() functions to increase or decrease a value of the column, by 1 or with the given number. Below are the examples: That’s it – it will actually run update column + 1 under the hood. You can specify a second parameter to this function, the amount of incrementing. The […]
This is useful for migrations when you can’t rollback. It can easily be run in artisan mode or you can create a console command.
PHP 7.4 allows for underscores to be used to visually separate numeric values. It looks like this: The underscores are simply ignored by the engine. i.e both are equal.
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 […]
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 […]
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 […]
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.