• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
logo

Tutsplanet

Free Technical and Blogging Resources

  • Home
  • Web Hosting
  • Programming
  • Plugins
  • Write For US
  • News
  • About Us
  • Snippets

Programming

Solution: Git is not fetching other remote branches when running git pull origin

Feb 25, 2021 by Editorial Staff Leave a Comment

I have faced a strange porblem that when I run command, it is not fetching all the remote branches available. In that case I am not able to checkout to other team member’s branches. In simple words fetch command in git doesn’t get all branches.

Filed Under: Programming Tagged With: Git

How to Remove Multiple Elements by Key in PHP Array?

Feb 11, 2021 by Editorial Staff

Today’s article, we will remove multiple elements by key in a PHP array. Using PHP we can delete multiple keys from an Array. In PHP there is no built in method to achieve this, but we can combine several PHP functions to achieve this. In this article we will be demonstrating two methods to remove […]

Filed Under: Programming Tagged With: PHP

Difference between Laravel’s raw SQL functions

Feb 11, 2021 by Editorial Staff

Laravel comes with a lot of helper functions to interact with Database efficiently . There are Eloquent which composes an ORM model, and helps to write expressive relations and queries. But some cases that’s not enough, we have to have some raw queies need to write to achieve the results. So in this article  we […]

Filed Under: Programming Tagged With: Laravel

How to clear laravel.log in Laravel?

Feb 1, 2021 by Editorial Staff

laravel.log is a file that contains logs from various actions in laravel framework. This file is usually located in To clear laravel.log you could use the below methods easily.

Filed Under: Programming Tagged With: Laravel

How to create a custom console command (artisan) for Laravel

Jan 28, 2021 by Editorial Staff Leave a Comment

Laravel’s Aritsan(command-line interface) is well known among developers as commands are always very handy to achieve results. Laravel is not different, comes with very good setup for extending their core command interface. In Laravel, commands are generally saved in the folder. In this article, you’ll learn how to create a custom command for artisan easily […]

Filed Under: Programming Tagged With: Laravel

Introduction to Magic Gradients in Xamarin.Forms

Jan 12, 2021 by Editorial Staff Leave a Comment

Xamarin.Forms is a fully-featured mobile app development platform that has support for astonishing features. For instance, you could possibly create an animation by using a trigger, applying a material design rule, implementing unique effects, etc. Here, in this blog, we will learn about a NuGet package called Magic Gradient which helps in adding unique effects […]

Filed Under: General, Programming

How To Clone a Specific Git Branch?

Dec 26, 2020 by Editorial Staff Leave a Comment

Today’s quick tutorial provides the command to clone a specific Git branch. Try to use the below command from the development environment. git clone –single-branch –branch <branch-name> <remote-repo-name> This option will download only the files that are in the selected branch.

Filed Under: Programming

How To Redirect To Previous Page in Magento 2?

Oct 7, 2020 by Editorial Staff 1 Comment

Today’s tutorial we are showing how to redirect to previous page from a custom action in magento 2. This will be useful when you have an error message to show after a form submission. namespace Vendor\Module\Controller\Adminhtml\Index; class Fetch extends \Magento\Backend\App\Action { public function execute() { // TODO: Implement execute() method. $this->_redirect($this->_redirect->getRefererUrl()); } }

Filed Under: Programming Tagged With: Magento 2

How to Apply the Magento 2 patch?

Oct 7, 2020 by Editorial Staff Leave a Comment

Change your Magento store to Developer mode php bin/magento deploy:mode:set developer Download the security patch git apply MAGENTO-9090-2020-010-1-10-04-03.patch After the above run below command to apply the patch php bin/magento setup:upgrade

Filed Under: Programming Tagged With: Magento 2

How To Programatically Cancel The Order Using Order Id in Magento 2 ?

Oct 6, 2020 by Editorial Staff Leave a Comment

It’s very common that we need a feature to cancel an order Programatically in Magento 2. Instead of factory method, we use Magento/Sales/Api/OrderManagementInterface as it’s advisable to use service contracts in Magento 2. Below snippet will help you cancel an order programatically in Magento 2. protected $orderManagement; public function __construct( … \Magento\Sales\Api\OrderManagementInterface $orderManagement, …. ) […]

Filed Under: Programming Tagged With: Magento 2

Top 11 Docker Commands You Should Know

Oct 5, 2020 by Editorial Staff Leave a Comment

Today’s world, Docker plays a major role in developing an application, but it can do much more. Today’s article I will discuss some of the most used Docker commands out there. To start an app or build use the following docker-compose up Showing current working containers docker ps -a Access the running container docker exec […]

Filed Under: Programming

Docker Error : Bind for 0.0.0.0:80 failed: port is already allocated

Oct 5, 2020 by Editorial Staff Leave a Comment

While installing Docker we were getting the below error ERROR: for <container_name> Cannot start service web: driver failed programming external connectivity on endpoint <container_name> (1776d4f52f64164e1f7a5b12dd6fe2a1e7570d342a3ce46b6349d029c815621b): Bind for 0.0.0.0:80 failed: port is already allocated ERROR: for web Cannot start service web: driver failed programming external connectivity on endpoint <container_name> (1776d4f52f64164e1f7a5b12dd6fe2a1e7570d342a3ce46b6349d029c815621b): Bind for 0.0.0.0:80 failed: port is […]

Filed Under: Programming

Stop or remove all Docker containers

Oct 4, 2020 by Editorial Staff Leave a Comment

The below code can be used to stop/remove all the running docker containers in your system. docker stop $(docker ps -a -q) docker rm $(docker ps -a -q)

Filed Under: General, Programming

Removing whitespace characters in PHP

Sep 22, 2020 by Editorial Staff Leave a Comment

Today’s guide we are talking about the white spaces in strings and how to remove white spaces in PHP. The normal way to remove white space is using str_replace. Remove whitespaces using str_replace str_replace is very simple and powerful for removing whitespaces. Use the below script to see this in action. <?php $str = “he […]

Filed Under: PHP, Programming

Multiple Files Upload using AJAX(jQuery) in Codeigniter

Sep 16, 2020 by Editorial Staff Leave a Comment

Today’s tutorial we are showing how to upload multiple files using ajax in Codeigniter.

Filed Under: Programming

7+ Inventory & Stock Management script in PHP

Sep 14, 2020 by Editorial Staff Leave a Comment

Inventory management is an important task for every business out there. This includes adding stock, creating invoices, create purchase orders, managing customers, managing vendors, point of sale and reports etc. So today we lists out several Inventory management systems built in PHP and MySQL, and they are ready to use. You can manage and control […]

Filed Under: Programming

Cannot login with SSH USERNAME@IPADDRESS, receive “Permission denied (publickey)” but root user working

Sep 2, 2020 by Editorial Staff Leave a Comment

I was getting this error when logging in with a user created from root. But root user is logged in perfectly, but the user cerated not. Solution Tried this in DigitalOcean droplet($5) successfully. adduser user (adds a new user) usermod -a -G sudo user (Adds user to sudo group) mkdir /home/user/.ssh (create .ssh directory in […]

Filed Under: Programming

International Telephone Input JavaScript Plugin

Aug 30, 2020 by Editorial Staff 2 Comments

International Telephone Input is a JavaScript plugin for entering and validating international telephone numbers.

Filed Under: Programming Tagged With: javascript

Fastify – Fast and Low Overhead Web Framework for Node.js

Aug 30, 2020 by Editorial Staff Leave a Comment

Fast and low overhead web framework, for Node.js, which provides better developer experience with less overheard and powerful plugin architecture. Main features. Highly performant: Fastify is one of the fastest web frameworks in town, depending on the code complexity we can serve up to 30K requests per second. Extendible: It’s hooks, plugins and decorators makes […]

Filed Under: Programming

How to disable or allow guest checkout in Magento 2?

Aug 29, 2020 by Editorial Staff Leave a Comment

Default Magento 2 setup allows users to checkout as guest in your storefront. But one must say gathering max customer information will be advantageous for both customer and shop owner. Today’s tutorial we are showing how to disable or allow guest checkout in Magento 2. Step 1. Log in to Magento 2 admin panel. Step […]

Filed Under: Programming Tagged With: Magento 2

Top Most Android App Development Frameworks

Aug 28, 2020 by Editorial Staff Leave a Comment

The Google Play Store has almost three million apps for download this year. In the past couple of years, the mobile apps development trend has accelerated as more and more people have realized that apps are great for connecting with customers.

Filed Under: Programming Tagged With: Mobile Apps

Trix – An Open Source WYSIWYG Editor for Websites

Aug 26, 2020 by Editorial Staff Leave a Comment

A rich text editor or WYSIWYG editor is very useful when writing descriptive content that includes HTML elements, images and strong formatting. The normal text area in HTML has no capability to format HTML tags, so we need to use tools such as CK Editor, TINYMCE, and there are more.

Filed Under: Programming Tagged With: WYSIWYG

The 50 Most Useful jQuery Plugins for Frontend Development

Aug 21, 2020 by Editorial Staff Leave a Comment

jQuery is one of the best fronted frameworks ever created. These days there are several other players also, like react, angular and vuejs, but jQuery keeps the top position with a usage in 78% of top million sites.

Filed Under: Programming Tagged With: jQuery, jQuery Plugins

How To Create A Custom Taxonomy In WordPress

Aug 19, 2020 by Editorial Staff Leave a Comment

Today’s tutorial we are showing how to create a custom taxonomy in WordPress. After WordPress 3 this feature is included in the core, so we just need to use the function with some params. The core developers created function to handle the heavy lifting for us. Why Custom Taxonomies? As your system/website grows you feel […]

Filed Under: PHP, Programming Tagged With: Wordpress

How to Use jQuery Datepicker with Timepicker

Aug 18, 2020 by Editorial Staff Leave a Comment

You may heard about the jQuery Date Picker and probably you’ve used it many times. So in this tutorial we are not talking about a jQuery Date Picker, but a date picker with time  selecting option.

Filed Under: Programming Tagged With: jQuery

Copy all the files from one directory to another in Linux

Jul 2, 2020 by Editorial Staff Leave a Comment

Today’s short article we are showing how to copy all the files from one directory to another in Linux.

Filed Under: Programming

How to Install Magento 2.3 & Create a Web Server-LAMP

Jun 2, 2020 by Editorial Staff 1 Comment

This tutorial demonstrates how to install Magento 2.3 and build a web server on operating system Ubuntu 16.04 LTS. In this tutorial I have used Digital Ocean droplet (2GB instance), you may please create the same or you can install one in your PC. First we create a user apart from root user, as it […]

Filed Under: Magento, Programming Tagged With: Hosting, Magento 2

jQuery bvselect – Custom Drop downs for Native Select Box

May 23, 2020 by Editorial Staff Leave a Comment

Description: This great plugin replaces native select box elements with fully customizable dropdowns. It’s just not reshape the select box, but it equipped with the form Submit, Onchange Events and Attributes as you would with normal usage.

Filed Under: Programming Tagged With: Custom Selectbox in JQuery

Hierarchical Tree view Category Example in Laravel

May 3, 2020 by Editorial Staff Leave a Comment

Most of the projects you work in PHP or in any language, there you have to encounter with categories and sub categories. When comes to categories, tree view is the best listing method that we can use in our web apps. In this article, we are showing  you how to  create Laravel tree view for […]

Filed Under: PHP, Programming Tagged With: Laravel

Find Products with No Images Using a Raw Sql Query In Magento 1

May 2, 2020 by Editorial Staff Leave a Comment

In certain cases you want to run a MySQL query and find out how many products are there without images in Magento. Which will help your store to run smoothly. Use the below query to figure out the products without images.

Filed Under: Programming

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Interim pages omitted …
  • Go to page 8
  • Go to Next Page »

Primary Sidebar




Quick Links

  • A Simple YouTube Video Downloader Script in PHP
  • The 50 Most Useful jQuery Plugins for Frontend Development
  • Base64 Decode Online
  • Base64 Encode Online

Subscribe

* indicates required

Share

   

Hot topics

  • Replace “\n” with new line characters, using Notepad++ 302 views
  • A Simple YouTube Video Downloader Script in PHP 281 views
  • Open a URL in a new tab using JavaScript 147 views
  • Upload Multiple Images and Store in Database using PHP and MySQL. 136 views
  • Using Third-Party Libraries in Codeigniter 125 views
  • Hierarchical Tree view Category Example in Laravel 118 views
  • How to change PHP version on MAMP – Mac OSX 118 views
  • Add FTP/SFTP in Visual Studio Code 115 views
  • Manually Install APK Files In Android Studio Emulator 115 views
  • Export HTML to MS Word Document using JavaScript 110 views

Categories

  • Design & Development
  • Drupal
  • Facebook
  • General
  • How To
  • ios
  • Javascript
  • Linux
  • Magento
  • Marketing
  • News
  • PHP
  • Plugins
  • Programming
  • Snippets List
  • Social Media
  • Softwares
  • Themes
  • Tips
  • Wordpress
  • YouTube

Copyright © 2021 · TutsPlanet Gene Theme on Genesis Framework · Powered By BunnyCDN