Understanding Media type and file format.

With the wane of physical media which is extremely limited, Digital media is exponentially becoming the dominant way we listen to music, watch videos, and view still images. And there is no single file format that takes care of it all. (How unfortunate). Hence it becomes important for us to understand media type and file formats. So that you don’t encounter with an instance where your device or browser says “unsupported file format”. ...

October 2, 2018 · 3 min · Harshvardhan Malpani

How to fix WordPress error 500?

Hi Everyone! Welcome to the Tutes Club. If you have a running website that gives you a handsome amount of returns, then I know that your heart comes to your mouth when you see an error on your site. There are tons of error out there, but the error we are talking about is WordPress internal server error 500. This error does not let you know the cause of the error, which makes it quite difficult for beginners to fix it. This is how it looks like. ...

October 1, 2018 · 3 min · Harshvardhan Malpani

[Forgot Password] [Can’t Log In] How to reset WordPress admin password without sending reset email?

So, admit it. We put really strong passwords and then we forget them. And you end up being locked out of your own website. So here is how you can reset it quickly. Go to your hosting control panel and then go to phpMyAdmin if available. Look into the database which is being used for your wordpress installation and click on Users table Inside users table, find the row responsible for your admin account. (check the user_nicename column for username match) and Press edit. ...

September 20, 2018 · 2 min · Harshvardhan Malpani

A list of few productivity plugins and useful websites for web developers

Browser Extensions To know the platform and background details of any website – use Wappalyzer (chrome extension) https://chrome.google.com/webstore/detail/wappalyzer/gppongmhjkpfnbhagpmjfkannfbllamg?hl=en To protect privacy over internet, use privacy badger (chrome extension) https://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp To get away with distractions, use stayfocusd (chrome extension) https://chrome.google.com/webstore/detail/stayfocusd/laankejkbhbdhmipfmgcngdelahlfoji You hate CORS warnings in console, to get rid of them, use Allow-Control-Allow-Origin plugin for chrome https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi Developers and sys admins keep playing with DNS all the time, but browsers use cache and are lazy in updating the record. Use DNS Flusher https://chrome.google.com/webstore/detail/dns-flusher/nbomnjapnclaocillijpceooehonajnk Sometimes, you just want to check the website before actually moving the DNS or IP record, use Virtual Hosts (chrome extension) you can set IP of any domain name to anything https://chrome.google.com/webstore/detail/virtual-hosts/aiehidpclglccialeifedhajckcpedom JSONView – use this extension to view any json with indentation https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc For sharing screenshots very quick, you can use two plugins Nimbus screenshot and Lightshot https://chrome.google.com/webstore/detail/lightshot-screenshot-tool/mbniclmhobmnbdlbpiphghaielnnpgdp?hl=en ...

September 4, 2018 · 3 min · Harshvardhan Malpani

Extracting names from given list of URLs (using regex)

let us extract name form the URL https://www.google.com/name?=rajiv paste the URL in the notepad and press crtl+f , and select ‘regular expressions ‘ from search mode now, enter the regex in the find tab to fetch names .*?\?=(\w+)$ Now, the selected name will be fetched form regex as (\1). it can work on numerous links like:- https://www.google.com/name?=rajiv/ http://www.example.com/asdas?=borde/id=? http://www.example.com/asdasd?=bordex http://www.example.com/name?=bordet http://www.example.com/asdasd?=border http://www.example.com/jsciloji?=bordeeeee http://www.example.com/name?=bordee http://www.example.com/name?=bordeeeeeee http://www.example.com/09328e?=bordeeee http://www.example.com/name?=borde http://www.example.com/lpaosd?=borde And only the part after first “?=” will be fetched

August 9, 2018 · 1 min · Harshvardhan Malpani

Magento 2 cli commands [continued]

1. Setting GD2 as defualt image adapter from command line Magento >= 2.2 php bin/magento config:set dev/image/default_adapter GD2 php bin/magento cache:clean Magento >= 2.2 mysql --host=(host) --user=(user) --password=(password) -D (database) -e "\ UPDATE core_config_data SET value = 'GD2' WHERE 'dev/image/default_adapter' = path; \"; 2. Disable Minify CSS Files option from command line Magento >= 2.2 php bin/magento config:set dev/css/minify_files 0 php bin/magento cache:clean Magento < 2.2 mysql --host= --user= --password= -D -e "\ UPDATE core_config_data SET value = 0 WHERE 'dev/css/minify_files' = path; \"; php bin/magento cache:clean 3. Disable Merge CSS Files option from command line php bin/magento config:set dev/css/merge_css_files 0 php bin/magento cache:clean Magento < 2.2 mysql --host= --user= --password= -D -e "\ UPDATE core_config_data SET value = 0 WHERE 'dev/css/merge_css_files' = path; \"; php bin/magento cache:clean

August 1, 2018 · 1 min · Harshvardhan Malpani

How to connect cpanel through SSH

Following are the steps to connect to cpanel through SSH:- Go to your cpanel and create a public private key-pair, under SSH access->manage keys. Under manage keys section, go on create a new key. Create a key and give key name, key password, key type and key size. 4. Click on generate keys and it will look something like this. Go back and under public key section , select your public key->manage->authorize key. ...

July 27, 2018 · 1 min · Harshvardhan Malpani

.htaccess redirect from http to https and from non-www to www redirect – Make site permanently SSL secured

put this in your htaccess file: RewriteCond %{HTTP_HOST} !^www\.(.*) RewriteRule (.*) https://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

July 27, 2018 · 1 min · Harshvardhan Malpani

Linux – Rescue disk how to reset root password and unblock yourself if locked out

Centos as test server Current situation – you are locked out, cant use WHM or SSH or anything else to login. You may or may not remember the password. In any case you can reproduce the following steps to unblock yourself. Use any other linux OS cd which can run live. I prefer FINNIX iso for such cases\ Mount your main disk. mount /dev/vda1 /mnt Reset password if needed to chroot /mnt passwd Enter new password for root and confirm\ Reboot and done. In case you have been locked out due to WHM cpanel:\ ...

July 23, 2018 · 2 min · Harshvardhan Malpani

How to Disable Default "Quick Access" aka "Home View" in Windows 10 File Explorer? – AskVG

If you are using Windows 10 or have seen the OS in any computer, you might be aware of the new Home aka Quick Access View introduced in Windows 10 File Explorer (previously known as Windows Explorer or My Computer). This new Quick Access or Home view is the default page of File Explorer in Windows 10 and whenever you open File Explorer using its shortcut icon or WIN+E hotkey, this new view is shown in File Explorer. It shows frequently used folders and recently used files list in File Explorer as shown in following screenshot: ...

June 16, 2018 · 3 min · Harshvardhan Malpani