![]() |
|
|
#1200 | |||||
|
If I May
"Chris Halsall"
Sep 2002
Barbados
978210 Posts |
Quote:
Quote:
And, yes, being able to "object" to / correct translations is planned for. Quote:
And if it results in someone signing up and using the system who might not have otherwise, so much the better! ![]() Quote:
Quote:
Check for a file like "worktodo.txt.ext". If it doesn't exist, then create a file called "worktodo.txt.lck" and wait a second or two. Then check again. If it exists then delete "worktodo.txt.lck" and go away for a while. If it doesn't then make your modifications and delete it. (Same for "results.txt.ext".) Another program (e.g. a fetching or returning spider) then does the reciprical -- it looks for "worktodo.txt.lck". If it doesn't exist it creates "worktodo.txt.ext", waits one or two seconds, looks for "worktodo.txt.lck" again, etc. It's a rather primative, but effective, file-system based semaphore. |
|||||
|
|
|
|
|
#1201 | |
|
Nov 2010
Germany
3·199 Posts |
Of course you may
![]() Quote:
I'm using the built-in file-system-semaphore for files, like lockfd = open(lock_filename, O_EXCL | O_CREAT, MODE) This will either create the desired file if it did not exist, or fail if it existed. Atomically. I found that all relevant OSes and their file systems including NFS and Samba support this operation. I think in perl you'd use sysopen (lockfd, lock_filename, O_RDWR|O_EXCL|O_CREAT, mode); for the same. This would also avoid the scenario of both programs creating their files, checking the other files' existence, saying oops, deleting their files and starting over for the next decade
|
|
|
|
|
|
|
#1202 | ||
|
If I May
"Chris Halsall"
Sep 2002
Barbados
978210 Posts |
Quote:
Also, I mis-understood your intention. I didn't apprecaite that you would be using file locking in addition to the lock file itself. Quote:
|
||
|
|
|
|
|
#1203 |
|
Romulan Interpreter
Jun 2011
Thailand
25BF16 Posts |
|
|
|
|
|
|
#1204 |
|
1976 Toyota Corona years forever!
"Wayne"
Nov 2006
Saskatchewan, Canada
10010010101112 Posts |
Code:
Overall DC TF LL TF P-1 LL DC GHz Days # Worker Out 68 69 70 71 72 73 >73 Facts Saved Done 1 Craig Meyers 2,286 3,639 11,513 15,072 9,329 15,964 738 460 35 666 94,666 281,344 |
|
|
|
|
|
#1205 | |
|
Apr 2012
Berlin Germany
3·17 Posts |
Quote:
![]() "GPU hoch 72" is also my creation, intended to sounds funny, but i know that letting the phrase "GPU to 72" as it is, is more appealing :/ |
|
|
|
|
|
|
#1206 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2×67×73 Posts |
Quote:
Because that ability is not yet enabled, I have taken the liberty of making the two changes suggested by Bdot manually. Any additional translation work you'd like to do would be most welcomed. And there is now a list of all pages where a phrase appears, so the context should be easier to determine. |
|
|
|
|
|
|
#1207 | |
|
Sep 2009
24·131 Posts |
Quote:
Code:
######################################################
sub getlock {
######################################################
# Get the lock directory
return if (!$USE_LOCKDIR);
my $res=0;
my $count=0;
while ($res ==0) {
$res=mkdir "$NAME.lockdir";
last if ($res==1);
sleep 1;
$count++;
die "Can't get lock dir $NAME.lockdir\n" if ($count>120);
}
logwrite("Waited $count times for lock") if ($count);
}
rmdir "$NAME.lockdir" or die "Could not delete $NAME.lockdir $!"; Chris |
|
|
|
|
|
|
#1208 |
|
"Kieren"
Jul 2011
In My Own Galaxy!
2×3×1,693 Posts |
Anyone care to bet on just how high in the rankings The Judger will go in P-1?
![]() Sorry for the trivia, but Oliver's charge up the chart is remarkable. The only recent entry to come anywhere close is GrunwalderGIMP. |
|
|
|
|
|
#1209 | |
|
"James Heinrich"
May 2004
ex-Northern Ontario
342710 Posts |
Quote:
|
|
|
|
|
|
|
#1210 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Status | Primeinator | Operation Billion Digits | 5 | 2011-12-06 02:35 |
| 62 bit status | 1997rj7 | Lone Mersenne Hunters | 27 | 2008-09-29 13:52 |
| OBD Status | Uncwilly | Operation Billion Digits | 22 | 2005-10-25 14:05 |
| 1-2M LLR status | paulunderwood | 3*2^n-1 Search | 2 | 2005-03-13 17:03 |
| Status of 26.0M - 26.5M | 1997rj7 | Lone Mersenne Hunters | 25 | 2004-06-18 16:46 |