Recently I have started using MAC OS X. Today I came across nice and smart way of taking screen shots of your screen using Keyboard keys combination.
Every designer / developer / tester are aware of that at some purpose throughout a project there’ll plenty of screen-shots required. Yes, third party applications usually get this job, however if you’re a MAC OSX user, you can do the same without having any third party tool. This can be done using combination of you MAC keys.
PHP – remove empty values from array
An easy and quick way to remove the empty value keys from an array is given below.
Lets assume below is our array
$array = array(‘data1′,”,’data3′,’data4′);
Now if we print this array using below code
10 Powerful Linux Command You Should Try! We all know that the most powerful Linux thing is its Command line. Because you can do almost everything from Linux command line. You can easily instruct your computer what exactly you are looking for and it comes back to you with appropriate data. Not only that there are some commands that makes command line even more powerful!
Here we will learn How to enable or allow htaccess file on apache server to override your default server configurations. But before that we will quickly see what is htaccess file.
What is htaccess file?
htaccess is a hypertext access file using which web master can override the Apache server default configurations as per their requirement.
Such modifications of default configurations are applicable on directory in which .htaccess file is resides and on all the succeeding directories.
But before you start writing any code in .htaccess file you have to confirm whether this file has permission to override the default configuration or not.
In most of of the time while we are writing a plugin and doing some AJAX call into this we often including wp-load.php file. It is obvious that to access the WordPress core functions we need to established the WordPress environment. But some time it also happened that WordPress environment is already established though we are including the file which lead to decrease our site performance. So now the question is Check whether the WordPress environment loaded or not
BuddyPress Members Import FAQ
Q: Is there any PHP version dependency with BMI Plugin
Yes, you have to have Minimum PHP version 5.3.X else you will get following error message on plugin activation
Parse error: syntax error, unexpected T_FUNCTION in /var/www/html/wp-content/plugins/buddypress-members-import/buddypress-members-import.php on line XXX
Q: How to install BMI?
– Upload BuddyPress Members Import Directory to the /wp-content/plugins/ directory
– Activate the plugin through the ‘Plugins’ menu in WordPress.
– Go to Users tab there a BuddyPress Members Import menu will be present click on it.
Q: How to create CSV file?
– Open your favorite editor write your comma separated values there.
– Now do Save as the same file and save the file in CSV format.
Yahoo – Yet Another Hierarchy of Officious Oracle
Computer – Commonly Operating Machine Particularly Used for Technology Entertainment and Research
ISRO – Indian Space Research Organisation
NASA – National Aeronautics Space Administration
Virus – Vital Information Resources Under Seize
PSD – Photoshop Document (Photoshop Standard Document)
PDF – Portable Document Format (Adobe PDF)
Oracle – Oak Ridge Automatic Computer and Logical Engine
Some time we want to show auto search results just underneath the auto search box. After each character write into the text box we want to get the result from the database related to the characters present in search text box and for that we have to do AJAX call. In this case if someone wrote 4 characters then 4 ajax call will be fired and from all these ajax calls last response will be taken as a search result. Sometime it may not be correct. Because sometime before fired Ajax call can give response after the later fired ajax call, in this case we may have inconsistent data. And to solve this issue we have to abort the previously fired ajax calls. Now the question is How to stop a AJAX call before calling the same again? Below sample code will solve this problem.
wordpress security increase
To reduce the attack to your WordPress site you can follow the below instructions
1: Increase Security from htaccess file
Add the below code to your htaccess file and replace the xxx.xx.xx.xxx with your IP. IP of your system from which you want to login to your site admin section.
deny from all
allow from xxx.xx.xx.xxx
2: Change credentials
Change admin username and password to at-least 10 characters long with combination of all possible type character.