mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet

Reply
 
Thread Tools
Old 2010-10-02, 22:02   #1
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

331 Posts
Default GIMPS results to Twitter

As a proof of concept, I've written some javascript code that reports factor found / primality results from GIMPS' result page to Twitter (see attachment). It took me 3 evenings and it works. Maybe it's interesting for someone.
Requirements: Firefox 3 with Greasemonkey 0.8 Plugin (runs custom javascripts), self-registered Twitter app with single access token (single user use case).
Skript Flow:
1) User: Loads the result page in Firefox (script is URL triggered).
2) Script: Parses page content, looks for new result.
3a) If not found or not newer than latest, wait some time, then reload unless server is in minutes 55-10 (busy server). Goto 2).
3b) If found, update local cache and send result to your Twitter status.
4) Enjoy your result, even if you're in Far Far Away.

I still have to think about server load (polling), cross site xml http requests, local storage formats... By the way, I'm no real fan of JS and Twitter, I just want the results and do some GIMPS promotion to my friends.
Attached Thumbnails
Click image for larger version

Name:	Screen_MersenneNotifyer_01.jpg
Views:	120
Size:	37.6 KB
ID:	5766  
Brain is offline   Reply With Quote
Old 2010-10-03, 13:33   #2
moebius
 
moebius's Avatar
 
Jul 2009
Germany

10438 Posts
Default

Although , I use Twitter, but I use it not regularly. Where can we download the script / plugin

Last fiddled with by moebius on 2010-10-03 at 13:33
moebius is offline   Reply With Quote
Old 2010-10-03, 23:52   #3
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

331 Posts
Default Here it is

I will have to add some nice text messages ("XY has a factor") and a description of how to use it. I'll post it here for preview / custom enhancement.

Script only runs when http://www.mersenne.org/results/?ext...B1=Get+results is loaded.

Also, you have to create your personal app as I don't want to release my private app key: http://dev.twitter.com/apps/ . There, you can retrieve the 4 needed twitter keys and copy the into the script.
Attached Files
File Type: txt MersenneNotifier.txt (9.9 KB, 100 views)
Brain is offline   Reply With Quote
Old 2010-10-03, 23:54   #4
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

331 Posts
Default Twitter app page screenshot

Script provided as is. No release code.
Attached Thumbnails
Click image for larger version

Name:	MersenneNotifier.png
Views:	98
Size:	74.5 KB
ID:	5769  
Brain is offline   Reply With Quote
Old 2010-10-04, 00:58   #5
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

5138 Posts
Default Fixed source

Tested, works. Last post had error.
Attached Files
File Type: txt MersenneNotifier_v0.01.txt (9.8 KB, 174 views)
Brain is offline   Reply With Quote
Old 2010-10-04, 05:22   #6
Primeinator
 
Primeinator's Avatar
 
"Kyle"
Feb 2005
Somewhere near M50..sshh!

11011111102 Posts
Default

Assuming this posts your own results, is there any danger of a potential new prime being released to the public before a double check can be completed?
Primeinator is offline   Reply With Quote
Old 2010-10-04, 05:36   #7
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

331 Posts
Default Installation

Quote:
Originally Posted by Primeinator View Post
Assuming this posts your own results, is there any danger of a potential new prime being released to the public before a double check can be completed?
Yes, you are right. I think currently none of the readers would understand the meaning but it is public. I'll modify the script so that this is supressed or obfuscated ("has found a factor: 0").

Installation by the way: Rename file from *.txt to *.user.js and open it in FF with greasemonkey. Firebug is recommended for reading the script's log output.
Brain is offline   Reply With Quote
Old 2010-10-04, 12:30   #8
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Quote:
Originally Posted by Primeinator View Post
Assuming this posts your own results, is there any danger of a potential new prime being released to the public before a double check can be completed?
If I'm not mistaken, (and if it wasn't just a bug visible when the last prime was found) they can be found through the public data at mersenne.org as soon as they're reported, anyway. But that's quite out of the way, only likely to be found by people who know not to declare to the world (yet) that it is prime. Twitter is a different scenario although, like Brain said, it's likely that few to none of someone's readers would understand that, especially if it was obfuscated in some way.

Last fiddled with by Mini-Geek on 2010-10-04 at 12:33
Mini-Geek is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
gfn results ET_ FermatSearch 8 2019-06-02 12:09
PGS Results danaj Prime Gap Searches 0 2017-08-14 18:35
gimps official twitter? Damian Lounge 8 2010-12-11 17:16
Gimps Results to webpage? Unregistered Information & Answers 2 2009-10-27 18:15
0x results... Mike PrimeNet 11 2004-05-23 12:55

All times are UTC. The time now is 01:18.

Wed Jan 20 01:18:49 UTC 2021 up 47 days, 21:30, 0 users, load averages: 1.53, 1.81, 1.88

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.