Tuesday, December 23, 2014

Reconsideration Request

Reconsideration Process
=============================

  • You receive a manual action notification and fix the issues mentioned. 
  • You document your reconsideration request. (See Documentation tips below).
  • You address any additional issues (see Common mistakes below).
  • You submit the reconsideration request in Webmaster Tools. 
  • You receive an acknowledgement from Google. (It may take a few days for your request to be processed).
  • Your request is either rejected or approved. 

What is the issue?

  • Manipulation of Backlinks
  • Selling links on your site
  • Hacked content on your site
  • Thin or scraped content
  • Parked Domain
  • Purchased domain is violate the guidelines in previous history.
  • Backlink sites are linked to porn content
  • Blank Sites
  • Used Unethical processes

How to handle this Issue?

  • Disavowing every backlink
  • Remove duplicate contents
  • Solve the server issues related to hacking or makware etc.

Google Webmaster Guidelines and Important Tips

Design and Content Guidelines
==============================
  • Each page should be reachable atleast from on static link
  • make html and xml sitemap
  • there should not be so many links in page
  • useful, information rich content which clearly describe your moto of the page
  • Try to use the common terms
  • use alt tag in image and title tags in hyperlink
  • make sure alt and title tags should be descriptive and accurate
  • make sure your site shouldn't have 404 pages
  • don't use ? in URL

Technical Guidelines
=============================
  • Don't block css and js files through robots.txt
  • Make sure your web server supports the If-Modified-Since HTTP header
  • Use the robots.txt to block unneccsary pages
  • Google's AdSense ads and DoubleClick links are blocked from being crawled by a robots.txt file
  • Make sure google should able to crawl your website
  • Monitor your site's performance and optimize load times
  • Test your site to make sure that it appears correctly in different browsers.
  • Monitor Site Performance through Page Speed, Yslow, Web Page Speed and other tools

Quality Guidelines
=========================
  • Make pages primarily for users, not for search engines.
  • Don't deceive your users.
  • Try to provide all related content on the single page.
  • Take each page as a landing page.
  • User should be find everything on page for that he came on.
  • Take urself 2 steps ahead from your competitors
  • Think about what makes your website unique, valuable, or engaging

Guidelines need to follow:
=========================
  • Robots.txt guideline
  • Sitemap for search engines guideline
  • Sitemap for users guideline
  • Amount of links guideline
  • Text / image links guideline
  • Titles / Alt guideline
  • Dynamic links guideline
  • If modified since guideline
  • Paid links guideline
  • Page speed guideline


Avoid following abusive techniques
=====================================
  • Avoid Keyword Stuffing
  • Automatically generated content
  • Participating in link schemes
  • Creating pages with little or no original content
  • Cloaking
  • Sneaky redirects
  • Hidden text or links
  • Doorway pages
  • Scraped content
  • Participating in affiliate programs without adding sufficient value
  • Loading pages with irrelevant keywords
  • Creating pages with malicious behavior, such as phishing or installing viruses, trojans, or other badware
  • Abusing rich snippets markup
  • Sending automated queries to Google
Speed Rules
=========================
  • Avoid landing page redirects
  • Enable compression
  • Improve server response time
  • Leverage browser caching
  • Minify resources
  • Optimize images
  • Optimize CSS Delivery
  • Prioritize visible content
  • Remove render-blocking JavaScript
  • Use asynchronous scripts

Check your site is in the Google index
  • Do a site: search
  • Verify that your site ranks for your domain name
  • Tell Google about your site: http://www.google.com/submityourcontent/
Make sure Google can find and crawl your site
  • Check Crawl Errors
  • Test robots.txt through Tool
  • Make sure that the URLs haven't been blocked with meta tags.
  • Clear site navigation structure
  • Old pages should be redirected through 301 Redirection
  • Check Crawl Stats
Google Webmaster Important Settings
  • Preferred domain
  • Crawl rate
  • Language and Location Settings
Make sure your content is relevant and useful
  • Review Search Query page
  • Content Keywords
  • HTML Improvements
  • Incoming Links
Google Search Working
Occasionally, fluctuation in search results is the result of differences in our data centers. When you perform a Google search, your query is sent to a Google data center in order to retrieve search results. There are numerous data centers, and many factors (such as geographic location and search traffic) determine where a query is sent. Because not all of our data centers are updated simultaneously, it's possible to see slightly different search results depending on which data center handles your query.

Report Spam
https://www.google.com/webmasters/tools/spamreport

DMCA Request: Removing Content From Google
https://support.google.com/legal/troubleshooter/1114905?hl=en

DMCA Dashboard - Google
https://www.google.com/webmasters/tools/dmca-dashboard

Sunday, December 21, 2014

Android Tutorials

Affiliates

Common
https://www.quandl.com

E commerce
http://www.clothing-dropship.com/channel-Affiliate
http://pages.ebay.in/globaleasybuy/help/faqs.html

http://www.flipkart.com/affiliate/
http://www.jabong.com/affiliate/
http://www.snapdeal.com/offers/affiliate-program

https://go.developer.ebay.com/developers/ebay/about-us/

http://www.dataweave.in/apis/usage/20/Coupon-codes-API
http://www.flipkart.com/affiliate/apifaq

http://www.clusterdev.com/flipkart-api-demo/

VIMP
http://www.dotmic.com/api/

Hotels
https://hotelaffiliates.makemytrip.com/
http://www.yatra.com/yatra-affiliate.html
https://agents.yatra.com/

http://www.dgm-india.com/dgperform/become-an-affiliate/
http://results.networkplay.in/public/aSignup.action?language=en&country=IN&pvnId=1899470
http://www.tyroo.com/publisher-overview.html
https://admin.omgpm.com/v2/ContactManagement/ContactModule/Default/External/India/NewApplicationByWeb.aspx

Tarot
http://www.free-tarot-reading.net/affiliates/join.php

Tools Used
http://builtwith.com/
http://www.alexa.com/siteinfo/example.com
http://whois.sc/example.com

Travel
https://developer.goibibo.com/docs
http://www.slideshare.net/cheilmann/hacking-for-innovation-delhi-presentation
http://pipes.yahoo.com/

Study
http://developer.yahoo.com
http://developer.yahoo.com/yql/console
http://talks.php.net/show/hacku/
https://gamesnet.yahoo.net/

http://www.smashingmagazine.com/2012/02/beginners-guide-jquery-based-json-api-clients/
http://www.newmediacampaigns.com/blog/how-to-use-json-apis-with-jquery
http://jsonapi.org/

Paypal Integration Complete Guide

Monday, December 15, 2014

Meta Tags

Most Used
============
<title>relevant and attractive phrase </title>
<meta name="description" content="text">
<meta name="keywords" content="text">

Robots Tag
=============
<meta name="robots" content="INDEX, FOLLOW">
<meta name="robots" content="index, nofollow">
<meta name="robots" content="noindex, follow">
<meta name="robots" content="noindex, nofollow">
<meta name="ROBOTS" CONTENT="NOARCHIVE">

Search Engine will not store cache
<meta name="GOOGLEBOT" CONTENT="NOSNIPPET"> 

It is not supported by any major search engines (Google, Yahoo!, or Bing)
<meta name="revisit-after" content="after 30 days">

No search engines or web browsers use the copyright meta tag
<meta name="copyright" content="text">


<meta name="googlebot" content="noodp">

<meta name="language" content="english">

<meta name="reply-to" content="email address">

<meta name="web_author" content="text">

<meta http-equiv="name" content="value">

Tell the browser to load the page from the server, not from a browser cache, Date format is (Day, dd Mon yyyy hh:mm:ss GMT)
<meta http-equiv="expires" content="Sun, 28 Nov 2010 13:21:02 GMT">

Source:

http://code.lancepollard.com/complete-list-of-html-meta-tags/

Open Graph Meta Data
http://ogp.me/

Sunday, December 14, 2014

Create Random Code with rand

<?php
$batch_code = 'DROID';
$characters = range('0','3');
for ($i = 0; $i < 4; $i++) {
$rand = mt_rand(0, count($characters)-1);
$batch_code .= $characters[$rand];
}
echo $batch_code
?>

Answer
DROID2130

***************************************

Create Random Number
<?php
echo "DU".substr(md5(uniqid(mt_rand(), true)), 0, 3);
?>

Answer
DU4e1

Saturday, December 13, 2014

My OOPS Concepts

Don't repeat the code its a main concept of OOPS language

four pillar of OOPS
  1. Abstraction
  2. Polymorphism
  3. Encapsulation
  4. Inheritance
Scope Specifiers are
Public -> Can be access from anywhere
Private -> Declared on Class level, can't be inherit
Protected -> Accessible only for the direct child

Constructor in PHP:-
  1. PHP use another constructor __Constuctor()
  2. There should be only 1 constructor in PHP
  3. Constructor is created by its own
  4. constructor is the first function of the object
Abstraction:-
  1. Make some ideal code and use that further
  2. To define rules and regulations
  3. Data hiding
  4. Essential data is hidden
  5. If we extend the parent class then we must redefine all the abstract methods of abstract parent class
e.g.
If we switch On button then Television is getting on its our primary focus, don't need to worry what is happen its behind.

Polymorphism:-
  1. One thing has many form
  2. Function Overloading is the example of this
e.g.
db.php is the example of this one function accepts the diff parameters

Encapsulation:-
  1. To give permission to meet code
  2. Assign permission to meet code
  3. Assign Permission to meet data
  4. Public, Private, Protected
Interface:-
  1. Interface are extra methods and properties which we need to assign to class
  2. Multiple is possible with the help of Interface.
  3. All the useful methods and variables are assigned inside the Interface
e.g.
Class Shaktiman extends human
implements flying
implements runable
implements growable

Class Arjun extends human
implements bhramashtra

Jquery Learning

  1. Write less and do more
  2. $ is a alias of jquery
  3. every element must have it's name and id
  4. Jquery get the details of each element when the document load
  5. sometimes here we gives fake classes to identify element


Friday, December 12, 2014

Important Questions and Answers in PHP

Diff b/w Function and method?
All these function which called with the help of object are known as method
If one fn is in the class then its become method

How to make var safe?
{$amount}

Difference b/w print and printf?
printf has the capability to save formatted string for future use
e.g. sprintf("%d-%s-%d", 1, 'sep', 2014);

Why use $ in PHP?
to differentiate the variable, don't use datatype like c++, java

How to submit a form without using submit button?


Session vs Cookies?
  1. session is safer than cookies
  2. cookies save in user system while session file save in server
  3. Maximum cookie size is 4kb.
  4. Session is depends on cookie because it has session id
Diff b/w static and constant?
Static is execute only once in a file, constant each time used in the functions

PHP-MySQL vs Node.js-MangoDB
MangoDB -> Its require dedicated server
Node.js -> Its fast as compare to PHP because its not wait for the return.

MangoDB
  1. Save the file in .js form
  2. Its not use OOPS Concepts
  3. Here is no Normalization
  4. Its not use INSERT/UPDATE/DELETE Query
What's the use of PDO_MYSQL
  1. We can change the database at any point of time, its the main benefits of PDO_MYSQL
  2. Joomla and Zend using the PDO_MYSQL

Mail in PHP

Mail in PHP
update ssl in php.ini
gmail works on SSL(Socket Security Layer)

Update sendmail.ini file to send mail
Source:
http://stackoverflow.com/questions/1993070/sending-emails-with-wamp

Session and Cookies in PHP

Session & Cookie
session_start() -> will not override previous session
session_start() -> when its call at the same time blank file automatically created
session_destroy() -> To destroy session

Cookies
setcookies() -> Its use to destroy cookies

Flash Cookies
Write file at unknown file location, user will delete the cookies not that folder which located on user system.

Session vs Cookies?

  1. session is safer than cookies
  2. cookies save in user system while session file save in server
  3. Maximum cookie size is 4kb.
  4. Session is depends on cookie because it has session id

MySQL in PHP

Mysql Port
mysql_default_port -> 3306

There are two types of database
1. relational database (Normalization)
2. NoSQL(MangoDB) -> Here is query 100 times fast

Naming Conventions
1. Always use plural in table name
e.g. table name should be users not user
2. Always write command in uppercase
e.g. SELECT * FROM `users`
3. always have table name in lowercase
e.g. users
4. Use _ in b/w two words of table name
e.g. users_data

Type
DDL -> CREATE, DROP, ALTER, RENAME, TRUNCATE
DML -> INSERT, UPDATE, DELETE, SELECT
DCL -> REVOKE, GRANT
TCL -> BEGIN, SAVEPOINT, COMMIT, ROLLBACK

TRUNCATE -> Delete Complete Data from the table except the structure
CREATE -> To Create Table or Database
INSERT -> To Insert data in table
DROP -> To Drop particular Table or Database
UPDATE -> To Update data in table
DELETE -> To Delete Data from the table
ALTER -> To Change the structure of table
COMMIT ->
SELECT -> To Select the data from the Table
RENAME ->
ROLLBACK ->
REVOKE ->
BEGIN ->
SAVEPONIT ->

Useful Functions
mysql_connect
mysql_select_db
mysql_query
mysql_fetch_array
mysql_fetch_assoc
mysql_fetch_object
mysql_fetch_row

Note:-
In Mysqli we can connect with multiple database at the 

Regular Expressions in PHP

Regular Expression
Regex is used to match any pattern against any string
Its use for pattern matching
Its very powerful but use only in extreme case (Increase the lookup time)

wild card -> . $ * ^ + ? |
match scope -> () {} []

regex vs string/array functions ->
preg_match() ->
preg_replace() ->
preg_split() ->
preg_grep() ->

String in PHP

String Functions
str_replace ->
strpos ->
str_repeat ->
strrev ->
implode ->
strstr ->
strtolower ->
strtoupper ->
rand ->
unique ->
number_format ->
ciel ->
floor ->
abs ->
round ->
add_slashes ->
strip_slashes ->
strip_tags ->
strip ->
nl2br -> convert "\n" into html <br> tag
strlen -> Get the length of string, its retutn type is Int
ucwords -> Uppercase First Char of every word
ucfirst -> Uppercase first char of string

Array in PHP

Linear Array -> Array which have numeric key
Associative Array -> Keys are Alphanumeric
Multi Dimensional Array ->
array_shift -> return top element value
array_unshift -> return new size of array
array_pop -> it return value of last element
array_push -> return new size of array

Useful Array Functions
array -> string = implode
string -> array = explode
unset() -> remove that var
isset() -> check whether the element exist or not
array_merge() -> merge two arrays
array_combine() -> combine two array
array_reverse() -> reverse the value of array
array_shuffle() -> shuffle the values of array
array_filter() ->
array_key() ->
array_value() ->
array_unique() ->
array_map() ->
trim() ->
rtrim() ->
ltrim() ->
sort() ->
asort() -> sort all the values
ksort() -> sort array with key
krsort() ->
arsort() ->
rsort() ->
array_intersect() ->
array_shift() ->
array_slice -> Get value from any array b/w two index
array_key_exist ->