Do it your self hobby code

How to obtain authorization—Python Youtube API

In this tutorial, we will write a simple python program will help you to obtain a user authorization on Youtube API by writing a simple Python program. Requirements: You should have a google account Python 3.5+ Pip management tool Step 1: SETUP GOOGLE API PROJECT Login to google and go to this link: https://console.developers.google.com/start/api?id=youtube Create …

How to obtain authorization—Python Youtube API Read More »

Required XMLReader PHP extension is missing on your server!

Required XMLReader Php extension. You are running your own vps and hosting a website. But after you installed a wordpress site, you see this error: Required XMLReader PHP extension is missing on your server! How to install XMLReader PHP extension on Linux VPS Ubuntu server? Run this command: sudo apt-get install php-xml And then restart …

Required XMLReader PHP extension is missing on your server! Read More »

Woocommerce: How to change currency symbol programmatically

woocommerce change currency programmatically

Woocommerce change currency programmatically In this tutorial, we will discuss two ways of changing currency symbol by editing the plugins or by code snippet. Either one should work. Editing Woocommerce plugin php file: The file that holds the code is: File: wc-core-functions.php Location: /[your-theme-folder]/wp-content/plugins/woocommerce/includes On line 520, you will see this: In this example, we …

Woocommerce: How to change currency symbol programmatically Read More »

Changing server time zone — Ubuntu

This is very important when you have some programs scheduled to run using cron. Display current timezone cat /etc/timezone Because I’m using New York timezone, this will display:America/New_York How to change the server timezone? I’d like to change the server to Dubai timezone, so I’ll enter: ln -sf /usr/share/zoneinfo/Asia/Dubai /etc/localtime To list other countries timezone …

Changing server time zone — Ubuntu Read More »