Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > Miscellaneous > Lounge

Notices

Reply
 
Thread Tools Search this Thread
Old 06-27-2004, 07:23 AM   #61
doctorow
Guru
doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.
 
doctorow's Avatar
 
Posts: 897
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
alex it shouldn't matter that we are working with "minus" numbers... it is simply another way of interpreting the left-most bit. The only problem we had in php was the rightshift operator, which filled empty spaces with 1's if the number was negative. That we fixed with the zerofill() function.

When we have the final result in $eax, we can use a simple function like printf() to convert it to an unsigned integer.
doctorow is offline   Reply With Quote
Old 06-27-2004, 07:23 AM   #62
alexstapleton
Enthusiast
alexstapleton doesn't litteralexstapleton doesn't litter
 
Posts: 49
Karma: 123
Join Date: Jun 2004
Thanks loads for the C code. I should be finished in 10-20 minutes at most, although I may have to add fixes for unsigned integers again.
alexstapleton is offline   Reply With Quote
Old 06-27-2004, 07:36 AM   #63
alexstapleton
Enthusiast
alexstapleton doesn't litteralexstapleton doesn't litter
 
Posts: 49
Karma: 123
Join Date: Jun 2004
Ok. Getting minus values still. Any suggestions? Code is availible here
http://meese.ath.cx/google/googlecheck3.php
alexstapleton is offline   Reply With Quote
Old 06-27-2004, 07:40 AM   #64
alexstapleton
Enthusiast
alexstapleton doesn't litteralexstapleton doesn't litter
 
Posts: 49
Karma: 123
Join Date: Jun 2004
my aim username is 'alex w stapleton' without the speach marks of course.
alexstapleton is offline   Reply With Quote
Old 06-27-2004, 07:45 AM   #65
alexstapleton
Enthusiast
alexstapleton doesn't litteralexstapleton doesn't litter
 
Posts: 49
Karma: 123
Join Date: Jun 2004
Im getting minus values. And their binary equivilents are wrong! Hence it doesnt work. Someone please examine my source.
alexstapleton is offline   Reply With Quote
Old 06-27-2004, 07:52 AM   #66
doctorow
Guru
doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.
 
doctorow's Avatar
 
Posts: 897
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
Try it with adding

sprintf("%u",$ch);

at the end!
doctorow is offline   Reply With Quote
Old 06-27-2004, 07:53 AM   #67
Unregistered
Nameless Being
 
Two comments:
1) The "initval" (or "level"-value) in the Jenkins hash-algorithm is probably not the GOOGLE_MAGIC-value since initval is supposed to by a 4-byte number.
2) The "info:" of the URL-string should probably not be url-encoded (that is, the :-sign shall not be replaced with %3A).
  Reply With Quote
Old 06-27-2004, 07:59 AM   #68
cyberax
Member
cyberax has learned how to buy an e-book online
 
cyberax's Avatar
 
Posts: 22
Karma: 87
Join Date: Jun 2004
Location: India
Hi Alex / Doctorow ... how is it going ?

Lets do it guys.. then we will try to do something about Yahoo WebRank
cyberax is offline   Reply With Quote
Old 06-27-2004, 08:03 AM   #69
alexstapleton
Enthusiast
alexstapleton doesn't litteralexstapleton doesn't litter
 
Posts: 49
Karma: 123
Join Date: Jun 2004
0xE6359A60 is what the ASM code uses. (the magic value)

i fixed the info: thing

still gives wrong result with printf
alexstapleton is offline   Reply With Quote
Old 06-27-2004, 08:14 AM   #70
alexstapleton
Enthusiast
alexstapleton doesn't litteralexstapleton doesn't litter
 
Posts: 49
Karma: 123
Join Date: Jun 2004
im gunna run a debugger over the C code to check where the values are different between versions
alexstapleton is offline   Reply With Quote
Old 06-27-2004, 08:16 AM   #71
doctorow
Guru
doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.
 
doctorow's Avatar
 
Posts: 897
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
alex: I cannot debug your code before tonight... will download the most current one and check it out later.

cyberax: didn't even know that yahoo had something similar
doctorow is offline   Reply With Quote
Old 06-27-2004, 08:21 AM   #72
alexstapleton
Enthusiast
alexstapleton doesn't litteralexstapleton doesn't litter
 
Posts: 49
Karma: 123
Join Date: Jun 2004
After the while loop:
Code:
PHP: $c = 671391756
   C: c = 3884531380
spot the difference?
alexstapleton is offline   Reply With Quote
Old 06-27-2004, 08:24 AM   #73
cyberax
Member
cyberax has learned how to buy an e-book online
 
cyberax's Avatar
 
Posts: 22
Karma: 87
Join Date: Jun 2004
Location: India
In my opinion we need the Hash of "info%3Awww%2Eexample%2Ecom"
cyberax is offline   Reply With Quote
Old 06-27-2004, 08:25 AM   #74
alexstapleton
Enthusiast
alexstapleton doesn't litteralexstapleton doesn't litter
 
Posts: 49
Karma: 123
Join Date: Jun 2004
WHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OO
i've done it! the urlencoded() string should NOT be sent to the hash function. silly me. time for code cleanup then release.
alexstapleton is offline   Reply With Quote
Old 06-27-2004, 08:25 AM   #75
cyberax
Member
cyberax has learned how to buy an e-book online
 
cyberax's Avatar
 
Posts: 22
Karma: 87
Join Date: Jun 2004
Location: India
url: info:http://www.example.com/

540747202
00100000001110110010010111000010

should be
540747202
00100000001110110010010111000010


Did you make it ?
cyberax is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Seriously thoughtful Dekker's Algorithm help. Catire Lounge 13 03-19-2010 10:03 AM
Bulk Pagerank Checker Script? SNaRe Lounge 2 10-22-2006 04:36 PM
Google Toolbar Pagerank Checksum Revealed! Alexander Turcic Lounge 5 02-17-2006 08:09 AM
Google Checksum CH calculator cyberax Lounge 2 08-17-2004 09:37 PM


All times are GMT -4. The time now is 09:40 AM.


MobileRead.com is a privately owned, operated and funded community.