Google Blogoscoped

Forum

Google Page Rank CheckSum - VBScript

David N. Cicalo [PersonRank 0]

Wednesday, August 11, 2004
19 years ago

I took a crack at converting the code from the original PHP version. There's an overflow bug in one of the functions if anyone wants to take a crack at it. Email me your results or post them here. Good Luck!

http://www.studiofx.ca/Google/GoogleCheckSum.html

Philipp Lenssen [PersonRank 10]

19 years ago #

Let us know if you (or someone else) get to a solution!

Philipp Lenssen [PersonRank 10]

19 years ago #

The error occurs when you XOR it...
I wrote this code in your error line to check:

   dim v
   v = zeroFill(p4C, 13)
   alert cDbl(v) ' works fine
   p4A = p4A Xor v ' causes error

PS: I ran your code as client-side VBScript in IExplorer (alerting instead of response-writing), same problem.

Ivan Tumanov [PersonRank 1]

19 years ago #

I couldn't get your code working, but instead ported the PHP version to VBScript myself. Basically the big issue is that VBScript doesn't have support for unsigned long integers. So used some unsigned arithmetic functions I got from elsewhere and the algorithm seems to work. Its a little cludgy and inefficient, I didn't do the array of characters stuff, etc. Room for improvement? Yes. But it works.

http://tumanov.com/projects/scriptlets/googlepagerankchecksum.asp

vijay [PersonRank 1]

19 years ago #

If i replace the checksum in the google query, i access a forbidden area. Can't seem to return the required result.??anybody has a work around???

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!