Skip to main content

Posts

How to solve unauthorized error on creating post using wordpress-rest-api node module

For solving authentication issue you need to install basic auth plugin from github https://github.com/WP-API/Basic-Auth You need to install in wordpress as a plugin and then activate this plugin. There are two ways to install it on wordpress First Way: Go to the WP-API Github page  https://github.com/WP-API/Basic-Auth 1. Click on clone or Download button on Github (Left side Green Button) 2. Download Zip File and Upload as a plugin (yourwordpressdomain.com/wp-admin/plugin-install.php) 3. Activate this plugin (problem solved) Second Way: 1. Go to the installation directory or your wordpress site ( cd /var/www/wordpress) 2. Visit wp-content folder (cd wp-content) 3. Visit plugin folder ( cd plugin ) 4. Run sudo git clone  https://github.com/WP-API/Basic-Auth.git 5. Reach to Wordpress dashboard and activate JSON basic Authentication plugin

How to back in GUI mode from Ubuntu Linux ttty Text mode

Accidentally I  pressed ctrl + Alt + F1 today in Ubuntu 16.0.4. It switches Ubuntu to text mod tty mode. There are 12 terminal in Linux 6 of them are text and can be switched by pressing  Ctrl + Alt + F1 .. F2 uoto F6. If you are facing same issue you can get back to normal GUI by using Ctrl + Alt + F7 button together. If your computer have Function keys (Fn) you need to press it too. Means you may need to press ctrl+Alt+ Fn + F7

How to create WordPress MySQL database backup using command line

WordPress site backup is quite important, if you run into any situation where you only see error like establishing databases connection for WordPress site or your site breaks, then the first thing that usually comes in mind is Backup, here are some home made tips for you. Complete WordPress site backup For complete backup of WordPress site you need to have complete folder of WordPress installation directory that includes wp-content, wp-admin, wp-includes, index.php, wp-settings.php, wp-comments.php, wp-cron,php etc....these all directories, files and subdirectories. he most important thing is your wp-config.php file that connects your wordPress installation with your MySQL WordPress database. Other then that you the most important thing is your wordpress database, you must have its backup for complete Wordpress restoration. In this post i am sharing my personal experience that explains how to create WordPress MySQL database backup. Wordpress Database backup Plugins I have used two...

Sublime text editor most useful command List Download

Sublime text editor: Sublime text editor is one of the best text editor for windows and Linux . It is a cross source code editor with Python application programming interface (API). It supports number of programming languages and markup languages. I work everyday with Sublime text editor i love it and here are list of shortcuts that you can find useful for your passion of code writing. Select a single Line: Ctrl + L Delete a Line: Ctrl + Shift + K Duplicate a line: Ctrl + Shift + D Find and Replace: Ctrl + F and Ctrl + H Move a Line Up or Down: Ctrl + Alt with up/down arrow Keys Open a new file: Ctrl + N Move along the tabs: Ctrl + Tab and Ctrl + Pageup and Pagedown Comment a Line: Ctrl + ? Divide in 1, 2, 3, 4 Grids: Alt + Shift + 1 and Alt+ Shift + 2, Alt + Shift + 3, Alt + Shift + 4 and Alt + Shift +5 Upper Case : Ctrl + KU Lower Case: Ctrl + KL Exit Sublime: Ctrl + Shift + W Select Line/Lines Shift + up Arrow Key ( press arrow key again to select upper lines) ...