r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Ann-Reply] Reply to Announce group

Kaj
24-Apr-2011
[2580x2]
OK, I'll try that
Used it once. Can you try again?
Andreas
24-Apr-2011
[2582]
server time seems still off, maybe it's too off for adjtime() to 
be used
Kaj
24-Apr-2011
[2583]
I didn't get the impression it changed, no
Andreas
24-Apr-2011
[2584]
try "msntp -r ntp1.nl.net" instead (which, from the manual, should 
use settimeofday())
Kaj
24-Apr-2011
[2585x2]
I don't think adjtime is configured
-r set it back a bit
Andreas
24-Apr-2011
[2587x2]
yep, is in sync now
from this on, a -a once an hour via a cronjob would keep it in sync
Kaj
24-Apr-2011
[2589x2]
I've put it in the startup script, before Fossil
No Cron, and I don't plan on adding it
Andreas
24-Apr-2011
[2591]
msntp -x
 would make it run as a daemon
Kaj
24-Apr-2011
[2592]
Does that have a configuration file, or how often does it adjust?
Andreas
24-Apr-2011
[2593x6]
(so the full cmdline would be: msntp -x -v -a ntp1.nl.net)
that estimates clock drift and adapts accordingly
but does not check more often than every 5 hours
yikes, ignore the -v
msntp -x -a ntp1.nl.net
or "msntp -x 1440 -a ntp1.nl.net" to have it check no more than once 
daily
Kaj
24-Apr-2011
[2599]
Hm, that didn't go down too well. Or actually, it did, because the 
server won't restart
Andreas
24-Apr-2011
[2600]
msntp -x won't detach on it's own, so you'll have to use & or whatever 
your shell's (or startup script runner's) mechanism for backgrounding 
processes is
Kaj
24-Apr-2011
[2601x3]
Yeah, I'm finding out
Cool, it runs now
Thanks, that's one item off my roadmap
Andreas
24-Apr-2011
[2604]
you're welcome
Kaj
24-Apr-2011
[2605]
The broader roadmap is to switch to SystemD. Then I can reclaim the 
memory that the msntp server takes
Andreas
24-Apr-2011
[2606]
a meager ~800kB in this case :)
Kaj
24-Apr-2011
[2607x2]
Yes, but a bit much for just looking at the clock every five hours
Fossil serves distributed versioned databases and it only has 500 
KB resident right now
onetom
24-Apr-2011
[2609]
what's wrong w the cron approach then. it would take up that 800kb 
for a fraction of a second every 5hr
Kaj
24-Apr-2011
[2610]
SystemD is more advanced
onetom
24-Apr-2011
[2611]
On high holidays you may also spell it sØst‘md.
 :) the author seems to be pretty restrictive about the spelling
Kaj
24-Apr-2011
[2612]
:-)
onetom
24-Apr-2011
[2613]
http://www.fm.tul.cz/~ladislav/rebol/nistclock.r

we have this script too. would it be hard to port the system/schemes/daytime 
to r3?
GrahamC
24-Apr-2011
[2614x2]
onetom - see https://github.com/gchiu/Rebol3/blob/master/protocols/prot-daytime.r
I think for daytime all you need to do is open a port on 13, read 
what is returned and close the port.
onetom
25-Apr-2011
[2616]
indeed, thx GrahamC

$ nc time-a.nist.gov 13

55676 11-04-25 16:30:36 50 0 0 433.9 UTC(NIST) *
Kaj
23-May-2011
[2617]
Robert, you could do your presentation along the lines of my Boron 
presentation?
Robert
23-May-2011
[2618]
Good idea, do you have a link?
Kaj
23-May-2011
[2619]
http://tryrebol.esperconsultancy.nl/Boron/
Geomol
24-May-2011
[2620]
Show them HELP (?) and SOURCE, which are strong tools to get you 
going as a programmer.
Pekr
24-May-2011
[2621]
As for R3 console, which is ugly, but has some helpfull features 
too:

 Chat - open DevBase developer forum/BBS
 Docs - open DocBase document wiki (web)
 Bugs - open CureCode bug database (web)
 Demo - run demo launcher (from rebol.com)
 Help - show built-in help information
 Upgrade - check for newer releases
 Changes - what's new about this version (web)
Geomol
24-May-2011
[2622]
And how to build sentences from words and values without irritating 
syntax to get in the way.

The benefit from having so many datatypes, which make functions work 
in many ways depending on argument datatype. One good example, I 
think, is READ, but you can probably find others.
Pekr
24-May-2011
[2623x2]
e.g. I always welcome the ability to check the changelog - nice addition 
with Changes.
Also:

>> 1 / 0
** Math error: attempt to divide by zero
** Where: /
** Near: / 0

>> why?
Opening web browser...
Geomol
24-May-2011
[2625]
Is it really a good idea to go deep into R3, with the situation?
Pekr
24-May-2011
[2626]
probably not, but why not outline the planned future? R3 is alpha, 
and it should be treated as such. R3 adds nice stuff - unicode, modules, 
control of boot sequence, devices, codecs, etc. Robert might face 
the questions of recent REBOL status anyway ....
Oldes
24-May-2011
[2627]
is there any future? Maybe postapocalyptic world where the only way 
how to comunicate is face to face or using ham radios.
Geomol
24-May-2011
[2628]
REBOL has fostered ideas in many people, and I'm sure, whose ideas 
will evolve into a future with better programming tools, than the 
world has today. So yes, I'll say there is a future.
Robert
24-May-2011
[2629]
I only have 6:40 mintues. So, I concentrate on REBOL as a language, 
not so much on R3 / R2 the products.