Author: Subharanjan
-
How to get rid of the “searchguide.level3.com” hack ? [Solved]
Somedays back I noticed that when I type something into my browser it takes me to a different search engine called `”searchguide.level3.com”` which I don’t remember installing or set in the browser. I looked into my browser settings for anything suspicious but didn’t find any. Now, how to get rid of the “searchguide.level3.com” hack ?…
-
How to stop outgoing emails being sent through postfix from your local machine in Mac OS X ?
In latest versions of Mac OS X, by default the postfix is set to send emails from your local machine to outside world. This might cause you troubles if you are developing applications on your local machine and your application has email sending functionality to customers. Unfortunately if you have some customers’ email addresses in…
-
How to pass dynamic values from PHP to CSS/JS in WordPress
There are situations when you have to use some values stored in DB or values being calculated in PHP script based upon different conditions in the java-script and css code. This can be achieved by writing the inline js/css code directly inside the php script. But in WordPress, this can be done very easily with…
-
ERROR: failed to mkdir C:\php\pear\tests\PHP_CodeSniffer\CodeSniffer\Core\File [Solved]
If your PHP installation has been done somewhere else other than the C:\ drive, then “pear install” command may throw errors. Example: Here in my case, the xampp has been installed into E:\ drive and the “pear install” throws error. E:\xampp\php>pear install PHP_CodeSniffer WARNING: channel “pear.php.net” has updated its protocols, use “pear channel-upd ate pear.php.net”…
-
Setup PHP CodeSniffer along with WordPress Coding Standards [ Windows, XAMPP ]
The other day, I had some problem setting up latest WordPress coding standard for PHP CodeSniffer on a Windows machine. It was throwing some errors/warnings like the below. There were some others, but eventually we had fixed some of those. However the WP coding standards were not getting listed in phpcs. 🙁 Warning: file_put_contents(C:\php\pear\data/PHP_CodeSniffer/CodeSniffer.conf): failed…
-
How to install Xdebug and Webgrind on Mac OS X – [everything from terminal]
Recently, I have been asked to help install and setup XDebug along with Webgrind in a Mac OS X system using SSH on one of my colleague’s system. All of this setup were done remotely from another system. Here are the steps/commands for achieving the same. Steps for installing Xdebug: Get the information about installed…
-
Selectively disable plugins on WordPress for a specific request
For last few days, I have been working on a WordPress project where I am creating a set of APIs to be consumed by mobile apps. While writing these REST APIs I have tried to make the things work faster. While checking the REQUEST/RESPONSE time, I found that the WordPress initialization is taking much time…
-
How to compare files on Mac OS X
Questions those come into mind when someone switches from Windows to Mac OS X for web development and wants to compare files: Which editor has support for file diff or file compare functionalities on Mac OS X ? Which is the best tool for file comparison while developing on Mac OS X ? How to…
-
How to integrate DiffMerge with Sublime Text for comparing files
The other day, I was searching for some ways to compare two files(one from production and another from the local development of the same file) in Sublime Text. I found that there is no default tool to compare two files, thats why I installed “FileDiffs“, a package which provides the above needed functionality. What this…