Home 2018-01-27T14:09:31+00:00
1102, 2017

How to show Sale Percentage in Woocommerce

You must have access to files that need to be modified to show the sale percentage in woocommerce : Woocommerce files : -> /---/wp-content/plugins/woocommerce/templates/loop/sale-flash.php -> /---/wp-content/plugins/woocommerce/templates/single-product/sale-flash.php Step 1 : Find the file : sale-flash.php Step 2 : Open and edit the file : sale-flash.php Step 3 : Add this code [...]

1002, 2017

How to start with Selenium in Java (Chromium)

With this code you can start a Browser Session from Java using Google Chromedriver and Selenium. There are random user agents and mobile devices. You also need to make a new Profile. Adding extensions is also possible. Download Selenium for Java : http://www.seleniumhq.org/download/ Download Chromedriver : https://sites.google.com/a/chromium.org/chromedriver/downloads More Chromium commands here : http://peter.sh/experiments/chromium-command-line-switches/ [...]

1002, 2017

Linux Commands List for Website Owners

If you have access to ssh then you can run this linux commands : How to Backup your files (archived) : tar -cvpzf /home/username_here/file_name_here.tar.gz   /home/username_here/folder-to-backup How to search for something : grep -rnw '/home/username_here/' -e "stats.php" How to move everything from a folder : mv /home/usarname_here/domain_here/wordpress/* /home/usarname_here/domain_here

1002, 2017

How to connect to a website with Java

How to make a GET or POST Request with Java ? If you want to get or send some data to a website here is a code example how to do it. In this example it's a GET Request, that can also be used to set some cookies, user agent [...]

802, 2017

How to solve the Base64 problem with double slashes “//” in link url ?

How to solve Base64 issue with double slashes. Base64 converts for example the number 1000 to "MTAwMA==". It contains the next characters :  "A–Z, a–z, 0–9, +, /, = " . Passing Base64 values in Browsers links can be a problem if the encoded value contains double slashes "/". This [...]