From dca7ba5af36ab2358b55c19f12be1c174134239f Mon Sep 17 00:00:00 2001 From: "ap9176@student.uni-lj.si" Date: Wed, 28 Jan 2015 08:58:31 +0000 Subject: Custom Rdate kratki popravki howto si/en verzija git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@244 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/custom_rdate/howtos/en/index.html | 10 +++++----- kpov_judge/tasks/custom_rdate/howtos/si/index.html | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'kpov_judge') diff --git a/kpov_judge/tasks/custom_rdate/howtos/en/index.html b/kpov_judge/tasks/custom_rdate/howtos/en/index.html index 412a853..0ba231a 100644 --- a/kpov_judge/tasks/custom_rdate/howtos/en/index.html +++ b/kpov_judge/tasks/custom_rdate/howtos/en/index.html @@ -12,7 +12,7 @@ 1. From directory with virtual machine images download Student.vdi (client) and SimpleArbiter.vdi(server)
2. Use VirtualBox (or another program that suits your preferences) create two virtual machines with virtual hard drive files from previous step.
3. Run both virtual machines.
- 4. Use username root and password kaboom to log into client. For loging into server use username tester and password SedemKrogovPekla

+ 4. Use username root and password kaboom to log into client. For loging into server use username tester and password tester

First part: update time with help of rdate.


1. Lookup and write down IP address of server. (ifconfig)


@@ -25,19 +25,19 @@ Program can be written in Java language or Pythonu. You can use text editor of your choice.


JAVA------
- 1. Command nano bintodec3.java creates and opens empty text editor.
+ 1. Command nano guliver.java creates and opens empty text editor.
2. Write a program that converts 32bit numbers in two's complement to decimal.


3. Press Ctrl+X, then Y and Enter to save our program
4. In case you don't have java installed write sudo apt-get install openjdk-6-jdk to install it

5. Compile program with command javac bintodec3.java
- 6. We can test our new program with java bintodec3. Now we input some 32bit numbers in hexadecimal format

+ 6. We can test our new program with java guliver. Now we input some 32bit numbers in hexadecimal format

PYTHON------
- 1. Command nano bintodec3.py creates and opens empty text editor.
+ 1. Command nano guliver.py creates and opens empty text editor.
2. Write a program that converts 32bit numbers in two's complement to decimal.

3. Press Ctrl+X, then Y and Enter to save our program
- 4. We can test our new program with python bintodec3.py



+ 4. We can test our new program with python guliver.py



diff --git a/kpov_judge/tasks/custom_rdate/howtos/si/index.html b/kpov_judge/tasks/custom_rdate/howtos/si/index.html index a628a5a..51d5d44 100644 --- a/kpov_judge/tasks/custom_rdate/howtos/si/index.html +++ b/kpov_judge/tasks/custom_rdate/howtos/si/index.html @@ -13,7 +13,7 @@ 2. Z VirtualBoxom (ali ostalim programom za virtualne računalnike) ustvarite dva virtualna računalnika in jim kot disk za shranjevanje podajte Student.vdi ter SimpleArbiterRDate.vdi.
3. Zaženite oba navidezna računalnika.
4. Na Student se prijavite z uporabnikom root in geslom kaboom -na SimpleArbiterRDate pa z uporabnikom tester in geslom SedemKrogovPekla.

+na SimpleArbiterRDate pa z uporabnikom tester in geslom tester.

Prvi del naloge: posodobi uro računalnika s pomočjo rdate.


@@ -27,17 +27,17 @@ na SimpleArbiterRDate pa z uporabnikom tester in geslom


JAVA------
- 1. Z ukazom nano bintodec3.java ustvarimo in odpremo prazen program s tekstovnim urejevalnikom nano
+ 1. Z ukazom nano guliver.java ustvarimo in odpremo prazen program s tekstovnim urejevalnikom nano
2. Napišemo program za pretvarjanje 32-bitnega števila v ÄŤas
3. Pritisnemo Ctrl+X, nato Y in Enter, da program zapremo in shranimo.
4. Če je še nimamo, naložimo Javo sudo apt-get install openjdk-6-jdk

5. Prevedemo program javac bintodec3.java
- 6. Lahko ga še zaženemo ter preizkusimo java bintodec3. Na standardni vhod vnasemo IP naslov ali ime streĹľnika NTP streĹľnikm ki nam pošlje 32 bitno število in pretvori v ÄŤas

+ 6. Lahko ga še zaženemo ter preizkusimo java guliver. Na standardni vhod vnasemo IP naslov ali ime streĹľnika NTP streĹľnikm ki nam pošlje 32 bitno število in pretvori v ÄŤas

PYTHON------
- 1. Z ukazom nano bintodec3.py ustvarimo in odpremo prazen program s tekstovnim urejevalnikom nano
+ 1. Z ukazom nano guliver.py ustvarimo in odpremo prazen program s tekstovnim urejevalnikom nano
2. Napišemo program za pretvarjanje 32-bitnega števila v ÄŤas
3. Pritisnemo Ctrl+X, nato Y in Enter, da program zapremo in shranimo.
- 4. Program zaženemo z ukazom python bintodec3.py



+ 4. Program zaženemo z ukazom python guliver.py



-- cgit v1.2.1