• 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

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 Clear MicroSoft Teams Client Cache on Mac?

Feb 25, 2021 by Editorial Staff Leave a Comment

It’s very common thing that clearing cache when we have something wrong with our softwares and which is not only help to save space on the device, but to ensure smooth working of the software. Below are the steps you need to follow to clear the cache of the Microsoft Teams communication software. Right Click […]

Filed Under: General Tagged With: Microsoft Teams

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

How to enter new line in Microsoft Teams?

Feb 11, 2021 by Editorial Staff Leave a Comment

Did you ever hit Enter, thinking of a new line in Microsoft Teams and send a half prepared message. If then this article is for you. It’s very normal that you will have to add multiple lines in your messages. Some people uses a different text editor to type the long message and copy paste […]

Filed Under: General Tagged With: Microsoft Teams

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 fix docker: Got permission denied issue on Ubuntu

Jan 29, 2021 by Editorial Staff

Problem When I ran just   command on Ubuntu 20.04 LTS, it throws an error like below. But it was fine when I used .

Filed Under: Linux Tagged With: docker

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

How to Add Music to Videos and Edit the Audio?

Jan 23, 2021 by Editorial Staff Leave a Comment

Using a proper piece of background music that perfectly matches the video is very helpful for creating a mood. The good news is that it is not a daunting task to add music to video. In this article, you will learn 2 simple methods to add background music, popular songs, or an audio recording, to […]

Filed Under: General

7 Best Softwares For Organizing Your Work Life

Jan 17, 2021 by Editorial Staff Leave a Comment

Whether in the office or working from home, organization in your work life can get tricky. With busy days, long to-do lists, and endless distractions, it can become overwhelming to manage tasks and prioritize your day. Even if you follow tips on how to stay productive, using additional tools can be beneficial, too. Although sticky […]

Filed Under: General

How To Parse Json String in Javascript

Jan 12, 2021 by Editorial Staff Leave a Comment

It’s very often you encounter this question, that how to parse Json string in Javascript. Your best bet for this task is the a built in JSON parse for strings in Javascript.

Filed Under: Javascript

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

Top 20 Alternatives to Notepad++

Jan 11, 2021 by Editorial Staff Leave a Comment

Notepad++ becomes a very simple and powerful tool for IT professionals. If you are interested to know, the top 20 alternatives for Notepad++, this article is for you.

Filed Under: General

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 add Index to table column using Magento 2?

Dec 14, 2020 by Editorial Staff Leave a Comment

It will be advisable to add an index to a database field for better performance and quick selection of records from the database table. Use the below snippet to add an index to database field in Magento 2.

Filed Under: Magento Tagged With: Magento 2

How to Force Download File from Remote Server in PHP

Dec 9, 2020 by Editorial Staff Leave a Comment

Usually we download the files hosted in same server using php, but in this tutorial we are showing how to download a file hosted in remote server.

Filed Under: PHP

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

How To Load Stock Item Using product_id In Magento 2?

Sep 28, 2020 by Editorial Staff Leave a Comment

In some cases you have to load stock item using product_id in Magento2. Today’s snippet we are showing how to do that. For illustration purpose we use a model example. namespace Vendor\Module\Model; use Magento\CatalogInventory\Model\Stock\StockItemRepository; class HelloWorld extends extends \Magento\Framework\Model\AbstractModel { protected $stockItemRepository; public function __construct( StockItemRepository $stockItemRepository ) { $this->stockItemRepository = $stockItemRepository; } public function […]

Filed Under: General Tagged With: Magento 2

How to get GMT date time in Magento 2?

Sep 23, 2020 by Editorial Staff Leave a Comment

Magento 2 usually saves the time in GMT in database, but display on admin or frontend will be based on the selected timezone. Use the below code to get the time with GMT timezone from Magento 2 code. Magento comes with DateTime php class, Magento\Framework\Stdlib\DateTime\DateTime is used for Forms GMT date. <?php public function __construct( […]

Filed Under: PHP Tagged With: Magento 2

How to create a Controller in Magento 2?

Sep 23, 2020 by Editorial Staff Leave a Comment

Controller is one of the most important thing in MVC Frameworks in general, so the same in Magento 2 as well. It’s very duty is to receive the request, process and render to user. In Magento 1 there was one controller and it accommodates all the CRUD routes or other relevant routes. But in Magento […]

Filed Under: PHP Tagged With: magento2

How To Get The Collection Of Records From A Custom Module In Magento 2?

Sep 23, 2020 by Editorial Staff Leave a Comment

If you are working on a custom Magento 2 module, and wondering how to get the collection of records from your custom database table, this article is for you. This is very common that your Magento 2 website needs more database tables than what Magento shipped with. So in a listing page such as blog […]

Filed Under: PHP Tagged With: Magento 2

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

Export HTML to MS Word Document using JavaScript

Sep 9, 2020 by Editorial Staff Leave a Comment

Today’s tutorial we are showing how to convert html to word format using simple Javascript. This is the answer for the question, if someone is asking how to convert the html to doc format using Javascript. There is no need of server side code to convert html to word. HTML source to convert The below […]

Filed Under: Javascript

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Interim pages omitted …
  • Go to page 15
  • 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

  • A Simple YouTube Video Downloader Script in PHP 288 views
  • Replace “\n” with new line characters, using Notepad++ 252 views
  • Add FTP/SFTP in Visual Studio Code 177 views
  • Using Third-Party Libraries in Codeigniter 150 views
  • Open a URL in a new tab using JavaScript 144 views
  • Upload Multiple Images and Store in Database using PHP and MySQL. 132 views
  • Hierarchical Tree view Category Example in Laravel 128 views
  • Laravel Image Intervention Tutorial With Example 121 views
  • Laravel Auth: Login with username instead of Email 104 views
  • How to change PHP version on MAMP – Mac OSX 104 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