Thursday, January 23, 2014

How to add sitemap of blogger to Google Webmaster Tools, Bing Webmaster



Here is a post how to submit sitemap for blogger.
Case 1
For few posts and size not huge, add sitemap as follows:

For Google Webmaster Tools
atom.xml?redirect=false&start-index=1&max-results=200



For Bing Webmaster
http://www.your_site_address_here.com/atom.xml?redirect=false&start-index=1&max-results=200
where
start-index=is starting index (in example starting from 1)
max-results=is number of post you want to submit (in example its is 200)


Case 2
If your site is big, here is what I did.
I just posted a 500 posts to blogger and tried to add sitemap to Google Webmaster Tools and Bing Webmaster like in <strong>Case 1 </strong>,  a few only submitted and very few indexed.

 Google Webmaster Tools has something error like
"Your Sitemap exceeds the maximum file size limit. Please create multiple Sitemaps containing fewer URLs to meet the file size limit."

I firstly changed the "start-index" and "max-results"  for each sitemap.
Then I tested it with Test sitemap in Google Webmaster Tool, which was one of the good point in Google Webmaster Tools and it worked for small amount of "max-results."
So,i broke up the sitemap as follows(each line as a sitemap):

For Google Webmaster Tools
atom.xml?redirect=false&start-index=1&max-results=30
atom.xml?redirect=false&start-index=31&max-results=30
atom.xml?redirect=false&start-index=61&max-results=30
atom.xml?redirect=false&start-index=91&max-results=30
atom.xml?redirect=false&start-index=121&max-results=30
atom.xml?redirect=false&start-index=151&max-results=30
atom.xml?redirect=false&start-index=181&max-results=19



For Bing Webmaster
http://www.your_site_address_here.com/atom.xml?redirect=false&start-index=1&max-results=30
http://www.your_site_address_here.com/atom.xml?redirect=false&start-index=31&max-results=30
http://www.your_site_address_here.com/atom.xml?redirect=false&start-index=61&max-results=30
http://www.your_site_address_here.com/atom.xml?redirect=false&start-index=91&max-results=30
http://www.your_site_address_here.com/atom.xml?redirect=false&start-index=121&max-results=30
http://www.your_site_address_here.com/atom.xml?redirect=false&start-index=151&max-results=30
http://www.your_site_address_here.com/atom.xml?redirect=false&start-index=181&max-results=19

By now, I am writing this post Bing Webmaster has successfully accepted all my pages with "Status:SUCCESS"
and Google Webmaster Tools with "Indexed:Pending"

It needs time for the servers to visit what you have submitted.So, have patience.
For every action, there is a reaction.

Hope this helps.

Sunday, January 19, 2014

How many squares are there in n X n box



How many squares are there in n X n

How many squares are there in a chess board?
Have you counted yet?

When I was at class VII.I counted and it was maybe 204.

At high school, it just tested the formula below and it worked.

So, chess board has 204 squares.

Formula is   
Sum of squares of natural numbers =        n(n+1)(2n+1)
                                ------------
                                      6
where n= number of box in row or column

No. of box in row or column (n)                    Sum of squares
1                                            1
2                                            5
3                                            14
4                                            30
5                                            55
6                                            91
7                                            140
8                                            204
9                                            285
10                                            385

How many possible ways are there in between two points or vertices - Complete Graph Math



How many possible ways are there in between two points
(All points are connected)---Find all ways of combinations



How many possible ways are there in between two points or vertices - Complete Graph Math


Formula is   
n
∑ n!/k!
k=0

where
n is ways in video upper tables(or total number of vertices/points - 2 [i.e. minus 2])
k is Taking in video starting from 0 to n.
this will give you total sum of all possible combinations from one point to other provided that
all the points are mutually connected to each other.


Points or Vertices                                Total Ways
1                                    -    1    0
1 2                                    -    2    1
1 2 3                                    -    3    2
1 2 3 4                                -    4    5
1 2 3 4 5                                -    5    16
1 2 3 4 5 6                                -    6    65
1 2 3 4 5 6 7                            -    7    326
1 2 3 4 5 6 7 8                            -    8    1957
1 2 3 4 5 6 7 8 9                            -    9    13700
1 2 3 4 5 6 7 8 9 10                        -    10    109601
1 2 3 4 5 6 7 8 9 10 11                    -    11    986410
1 2 3 4 5 6 7 8 9 10 11 12                    -    12    9864101


Thank you for your visit.




Monday, January 6, 2014

Trick - How to edit Facebook Webpage or any webpages with css Google Chrome Mozilla



Trick - How to edit Facebook Webpage or any webpages with css Google Chrome Mozilla

Google Chrome
----------------------
Right Click and Inspect Element

OR

Ctrl + Shift + I

OR

Customise and Control Google Chrome
>Tools
>Developer tools

Mozilla Firefox
---------------------
Right Click and Inspect Element

OR

Ctrl + Shift + C

OR

>Tools
>Web Developer
>Inspector

Ctrl + F to find the string/words that you want to edit.
Double Click and edit as you want and enter.


css
---
to hide content
style="display=none;"

to show content
style="display=block;"

Thursday, December 12, 2013

Is copy and paste programming good?



Is it a good practice for copying and pasting other codes while programming?

1.
In school, teachers write the codes on the board and we type on our computer,
and hit the F5. If it runs, you totally copy the exactly while you copy.If it doesn't show,
you type something wrong, you are missing something.Then, your teacher will come and
see and say "Ahh, you are missing ; (semi-colon) right after this."
You retype with semicolon and run with zero Errors.Happy Programming. :)

You remember what you did? I think, you will say "I forgot semicolon at the end of statement."

"No!"

You just copy and paste your first code there from your teacher.

Because its you first code / initial stage, you copy-paste programming.

Life starts like this.Copy and paste.

2.
In the childhood, you copy from mother or father how to speak. The easy alphabets for a child to speak are
/pa/
/ba/
/ma/
(pa,ba,ma are the sounds that you try to speak, your lips first close and then open.I am not good at this)

Because child sees the lips motion() and tries to say what he/she listens.Papa / Mama / Baba and so on.
(Healthy child)

So, copy and paste already started from the childhood and its no offense.

3..
The more practice, the more you learn.

Ditto copy won't work. Take the idea and run in debug mode , follow the code and see the variables.
And after you understand, Implement in your way. If you get the what you want, you go for another,
if not, you re-code. and coding goes on. CODING NEVER ENDS!

4.
Learn from scratch.

You go with your first Hello World program tutorial and starts something bigger and you will grow up
bigger and bigger and you will be adult. You will get the idea how to do this and how to do that.
If you don't get the idea, there are forums and google it, ask there surely you will get some hint at least
one if you try. And you will grow up some more and one day you will be adult once again.

5.
You fail.
Failures are the pillars of success. If you give up, they won't be success. So, be patience and patience is the must
when you create. Its not about an hour to create, it need more than time to give a good result.
The more you think, the bigger it will be.

6.
Learn from others.
Listen to others and speak less and code more.
If you or someone can think, then it can be created.Its human nature.
Never give up. Giving up is always there as a final option. ;) (Learned from my Teacher)

7.
An example.
There is a programmer Mr. X(say)  in camera lens maker company. He resigns there and  go to others company.
His place is taken by another programmer Mr. Y(say). If Y has to do the job , he must look what X has done.
So, Y learns from X. Y applies X code or recode in his one, it depends, but, when company needs Y to follow
X in limited span of time, Y must learn from X. What Y does, just Debug!

8.
Doing and testing is a good practice.
While novice / noob stage, you must test different things to be bigger adult.
So, doing and testing a lot.
Do what you enjoy. I do that too. I enjoy what I do.


<strong></strong>

Wednesday, December 11, 2013