Skip to main content

Posts

Showing posts from 2019

Handling the CSS Caching Issue

We web developers often come across a scenario where we make a major change in the CSS values and the site is totally damaged for the viewer due to a broken / cached css. This becomes very crucial when the change involves update of both the css file contents and a change in the structure of the front end. To handle such a scenario, specially when you are expecting to update the css too often, the trick below helps a lot. Instead of calling the css using <link href="/theme/public.css" rel="stylesheet" type="text/css"> write the call in a php file called css.php (You can use any other name and extension) Paste the css call in the php file and modify the name of called css to something unique. I prefer adding a yymmdd or v1,v2 etc <link href="/theme/public-190104.css" rel="stylesheet" type="text/css"> Now include the css.php in the page at the place where you would have called the css. Done. Now whenever you make a c...

PHP7 Compatibility Test in Windows / Wamp

Download php7cc.phar  from  https: //github .com /sstalle/php7cc/releases/download/1 .1.0 /php7cc .phar and save it in the root of wamp. (Where you keep all your projects) Then open the command prompt and proceed as given below. Replace the paths according to your system. You will find a detailed report in the specified report file.

GMail Rejecting IPv6 PTR

In case your postfix is not able to send mails to gmail accounts due to a IPv6 PTR failure, you are adviced to adhere to IPv4 in Postfix. edit  /etc/postfix/main.cf , and set  inet_protocols  to  ipv4 , inet_protocols = ipv4 You should restart postfix.

WhatsApp for Windows stuck in Fullscreen

In case your whatsapp for windows is stuck in fullscreen, close Whatsapp and open the following file. C:\Users\ username \AppData\Roaming\WhatsApp\settings.json where username is your login ID in windows. The file can be opened with Notepad or any text editor. Change "isFullScreen":true to "isFullScreen":false Save the file and start WhatsApp. Now you can change the size of the window. (If required, you can change the size of whatsapp window from the json file too.