Categories
Mac OS X Software Tricks

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 ? […]

Categories
PHP Software Tricks

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 […]

Categories
Social Life WordPress

How to create Social Job Portal like Linkedin using WordPress ? [Solved]

You need a site like Linkedin? Well there you can find a lot of Job Sites, But why Linkedin is different ? Because It is Social. In WordPress, creating a job board is much cheaper and easier to get up and running. Here is one of the most popular plugin “WP Job Manager“. But It lacks social features. Well […]

Categories
jQuery PHP WordPress

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 […]

Categories
Uncategorized

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.

Solution: I get into the “pear” directory and checked config values set for different […]

Categories
PHP WordPress

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. 🙁

Here are […]

Categories
Mac OS X PHP

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 […]

Categories
WordPress

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 […]

Categories
PHP Software Tricks

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 […]

Categories
Software Tricks

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 […]