2009-07-14

NTP - sync your time!

What is NTP? NTP is a protocol to synchronizing the clocks on host using publicly available NTP servers. How use? To use you must know NTP server address. Here list some of them:
0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org uk.pool.ntp.org ua.pool.ntp.org
Some servers are national. They can be found as ISO 639 code with .pool.ntp.org suffix. Debian. Install ntpdate package:
$ sudo apt-get install ntpdate
and sync date with some NTP server:
$ sudo ntpdate 0.debian.pool.ntp.org

Windows. See http://support.microsoft.com/kb/q216734/ http://support.microsoft.com/kb/q223184/

Parsing numbers in LL(1) grammar.

Grammar for numbers:
NUMS --> NUM NUMS NUMS --> NUM --> 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
This grammar is belongs in LL(1) grammar type.

Parser for this grammar done in parse.py: