Apr 20

Full Forms of some famous name

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)
AJAX – Asynchronous JavaScript and XML
Oracle – Oak Ridge Automatic Computer and Logical Engine
RDBMS – Relational DataBase Management System
SQL – Structured Query Language
XML – Extensible Markup Language
PERL – Practical Extraction and Report Language
JSON – JavaScript Object Notation
PHP – Hypertext Preprocessor (before it was Personal Home Page )
ASP – Active Server Pages
ASPX / ASP.NET – Active Server Page Extended
API – Application Programming Interfaces
HTML – HyperText Markup Language (DHTML/HTML both are same)
XHTML – Extensible HyperText Markup Language
CSS – Cascading Style Sheets
JPEG – Joint Photographic Experts Group
GIF – – Graphic Interchange Format
PNG – Portable Networks Graphic
MPEG – Moving Picture Experts Group
Ogg – Ogg files with Thedora video codec and Vorbis audio codec
MPEG4 – MPEG 4 files with H.264 video codec and AAC audio codec

Apr 20

How to stop a AJAX call before calling the same again

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.

<input id=”search-box” name=”serch-box” type=”text” />
<div id=”result”></div>

<script>
jQuery(document).ready(function(){
var currentRequest = null;
jQuery(‘#search-box’).keyup(function() {
var text = jQuery(this).val();
currentRequest = jQuery.ajax({
type: ‘POST’,
data: ‘search_text=’ + text,
url: ‘AJAX_URL_HERE’,
beforeSend : function()    {
if(currentRequest != null) {
currentRequest.abort();
}
},
success: function(data) {
jQuery(‘#result’).html(data).show();
}
});
});
});
</script>
Apr 17

WordPress Security Increase

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.
<Files>
order deny,allow
deny from all
allow from xxx.xx.xx.xxx
</Files>

2: Change credentials

Change admin username and password to at-least 10 characters long with combination of all possible type character.
Like: W!w@1)*&<?lkiJH

3: Send mail to admin on login failure

For every login fail send mail to administrator. To implement this functionality add the below code to
filename: function.php of currently active theme
goto last: paste the below code
add_filter('login_errors', 'send_failure_notification_to_admin', 10, 1);

function send_failure_notification_to_admin($error) {
$subject = 'Login Failure to ' . site_url();
$notify_message = serialize($_SERVER);
@wp_mail( 'YOUR-MAIL-ID', $subject, $notify_message );
return $error;
}

Replace YOUR-MAIL-ID by the mail ID, you frequently open.
In this mail you will get the details from where the login failure happened.

4: Send mail to admin after success login

For every success login send mail to administrator. Add the below code to mentioned files.
filename: wp-login.php present in root
goto line: 613
Just after:
if ( !is_wp_error($user) && !$reauth ) {
add the below code:
do_action( 'send_success_notification_to_admin' );

filename: function.php of currently active theme
goto last: paste the below code

add_action('send_success_notification_to_admin', 'send_success_notification_to_admin');
function send_success_notification_to_admin() {
$subject = 'Login Successful to ' . site_url();
$notify_message = serialize($_SERVER);
@wp_mail( 'YOUR-MAIL-ID', $subject, $notify_message );
}

Replace YOUR-MAIL-ID by the mail ID, you frequently open.
In this mail you will get the details from where the successful login happened.

5: Change the login credentials for all

Change the credentials of your cpanel, database, WP admin and have a paper with you with all details. At the time of login always see the credentials from there and then login. Don’t do any login fails own self.

6: Allow only 2 login attempts

Use this plugin:    http://wordpress.org/extend/plugins/limit-login-attempts/

7: Extra password field in login form

A completely new way have another password field in login form. Means two password field in a single login form.
filename: function.php of currently active theme
goto last: paste the below code

add_action('login_form', 'add_another_pwd_field');
function add_another_pwd_field() {
?>
<p>
<label for="user_pass2"><?php _e('Extra Security (Re-enter password)') ?><br />
<input type="password" name="pwd2" id="user_pass2" value="" size="20" /></label>
</p>
<?php
}

add_action('wp_authenticate', 'extra_security');

function extra_security() {
if(isset($_POST['pwd2'])) {
if ( $_POST['pwd'] === $_POST['pwd2']) {
//Login successful
} else {
send_failure_notification_to_admin('error');
die();
}
} else {
send_failure_notification_to_admin('error');
die();
}
}

Login Form With Two Password Fields

After adding the above code goto domain/wp-login.php, there you can see an extra field added to the login form. In this field provide your password again. Means if you provide the same data in password and this new extra field then only WordPress will validate your credentials from database else it send mail to admin regarding login failure.

8: Update Your wp-config.php Keys

Open https://api.wordpress.org/secret-key/1.1/salt/ copy the keys.
Open wp-config.php file from root. Goto line 45 replace all 8 keys by new ones. After this you have you login to your site admin section even though you are logged in.

I am sure after following the above instructions your site will be much more secure :)

Apr 05

How to show External RSS Feed post on Your WordPress Site

How to show External RSS Feed post on Your WordPress Site? Dont you have time to write post and want to show post from other site’s RSS feed on your site. No worry here is a quick solution for the.

<?php
//Include feed.php file
include_once(ABSPATH.WPINC.’/feed.php’);
$rss = fetch_feed(‘http://feeds.feedburner.com/NdtvNews-TopStories’);
$maxitems = $rss->get_item_quantity(5);
$rss_items = $rss->get_items(0, $maxitems);
?>
<ul>
<?php if ($maxitems == 0) echo ‘<li>No items.</li>’;
else
// Loop through each feed item and display each item as a hyperlink.
foreach ( $rss_items as $item ) : ?>
<li>
<a href=’<?php echo $item->get_permalink(); ?>’
title=’<?php echo ‘Posted ‘.$item->get_date(‘j F Y | g:i a’); ?>’>
<?php
//Get title
echo $item->get_title(); ?>
</a>
<?php
//Get description
echo $item->get_description();
?>
</a>
</li>
<?php endforeach; ?>
</ul>

Jan 13

10 Tech Companies To Keep an Eye On In 2013

Bangalore: 2012 played the role of a potter’s wheel where tech companies took different shapes; some were successful, some broke, some were unchanged and some merged into others. 2013 too is providing a platform for the companies for transitions, and like a sequence to popular movie, you get curious to watch closely the way these tech companies carry their saga which was started in last year into this year.

Tech world is waiting to see whether Marissa Mayer can keep the momentum going at Yahoo and whether Web fossils Myspace and Digg can successfully reinvent themselves. Who will fall flat on their faces, and who will dazzle us with their innovation? Read on to know the 10 tech companies to watch closely in 2013 as compiled by LA Times. The list contains no biggies like Facebook or Google which can get your attention anyway, but the companies which would have slipped your notice otherwise. Read More…

Jan 01

How Well Our Favorite Tech Companies Fared This Year

Bangalore: This year has been a high octane ride for the tech companies. There were many high profile releases, be it the products or services. Statista, an online statistics portal, had come up with list of the ten favorite tech giants according to their performance this year; considering their income, revenue and stock performance. While Apple and Samsung ruled the roost in terms of net income, LinkedIn has emerged as a golden child in terms of year-over-year growth, with whopping 89 percent revenue increase. Read More…

Dec 20

Apple eyes Passbook coupons with touch of NFC

passbook-baseball-tickets

passbook-baseball-tickets-1690

A new patent from Apple provides loads of information on Passbook and hints at the possibility of using near-field communications with the app.

Published today by the U.S. Patent and Trademark Office, the patent, dubbed “Integrated Coupon Storage, Discovery, And Redemption System,” goes into great detail about a system that lets you manage and redeem electronic coupons on a mobile device.

As described in the patent, such a system could trigger an alert on your phone when you’re near a store where a saved coupon can be used. It could also alert you when you’re using your device to buy something.

Passbook currently allows you to store digital coupons on your iOS device so that you can redeem them at different stores and merchants. Read More…

Dec 17

Apple in 2013: Five predictions

What will Apple do next? It’s the very secret sauce that keeps the company interesting, along with some very successful products.

Here are five predictions for the next 12 months as Apple heads into one of its most closely watched years yet.

Editor’s note: This is the first in a series of stories looking ahead at what’s to come from a handful of major technology companies, and technology categories. In the coming days CNET will do the same for Google, Facebook, Microsoft, Amazon, and others. Read More…