Apr 242013
 

So, I’ve signed up for “Greek and Latin Mythology” from U. Penn at coursera.org. It should be an interesting diversion in these times of my doing relatively little. A little Homer, Aristarchus, Thucydides, Aristophanes, Vergil, Ovid and the like would be welcome relief. Read all– or almost all– of these in English translation as a late teenager, and some of the Latin authors in the original. The Greek however… well, I never got very far with that in High School. Not saying I will this time, but there’s a niggling thing at the back of my mind saying that any time learning more of the aorist and the optative etc. would not entirely be wasted.

I may get around to posting my “lecture” notes, but in the meantime some links.

Software:

  • Kalós — a dictionary and morphological analysis tool. Java. Free as in beer.
  • Unicorn — a text editor with built in Latin & Greek dictionaries. Java. Free as in beer.
  • Unicode Greek fonts — note Ariscarcoj
  • TITUS Cyberbit font — I remember this puppy from setting Devangaari script a half-lifetime ago at Yale.
  • Gentium font has support for polytonic Greek

Websites:

Apr 222013
 

For an online coursera.org course on interactive python from Rice University. 1st project exercise.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import math
import random

def name_to_number(name):
    name = name.lower()
    if name == "rock":
        return 0
    elif name == "spock":
        return 1
    elif name == "paper":
        return 2
    elif name == "lizard":
        return 3
    elif name == "scissors":
        return 4
    else:
        return "Invalid hand sign '" + name + "'!\nplease choose: 'rock', 'Spock', 'paper', 'lizard' or 'scissors'"

def number_to_name(number):
    if number == 0:
        return "rock"
    elif number == 1:
        return "Spock"
    elif number == 2:
        return "paper"
    elif number == 3:
        return "lizard"
    else:
        number == 4
        return "scissors"

   
def rpsls(name):
    player_val = name_to_number(name)
    computer_val = random.randrange(0,5)
   
    mod_val = (player_val - computer_val) % 5  
    if mod_val == 0:
        winner = "Player and computer tie!"
    elif mod_val > 0  and mod_val < 3:
        winner = "Player wins!"
    else:
        winner = "Computer wins!"

    print "Player choosses " + number_to_name(player_val) #+ " (" + str(player_val) + ")"
    print "Computer chooses " + number_to_name(computer_val) #+ " (" + str(computer_val) + ")"
    print winner
    #print mod_val
    print "\n"
 

### OUTPUT ###
rpsls("Rock")
rpsls("scissors")
rpsls("paper")
rpsls("lizard")
rpsls("spock")

Social Widgets powered by AB-WebLog.com.