Programming Challenge (6): Motto of Hogwarts School
I am no big Harry Potter fan so I can’t answer questions like when Ron felt in love with Hermione. But that doesn’t stop me from playing this game:
Find the motto of Hogwarts School of Witchcraft and Wizardry, “draco dormiens nunquam titillandus“, in English by using a program written in whatever programming language you feel comfortable.
Something may pop up onto your mind immediately:
- Q(uick) approach: Google translate API
- Q(uick)&D(irty) approach: web text/knowledge mining
- Diehard approach: write something equivalent to Google translate
- et cetera
For the first approach, unfortunately it’s actually a failed case for Google translate (titillandus is the gerundive of titillo, titillare). For the second, I like Q&D but it may not be scalable, i.e., you can’t apply the same method to get, say, the book of Genesis in Vulgate into English. For the third one, well, I don’t think so
.
Send the source code to me by 30/9 to win a $25 gift card from Fry’s– Well, it’s actually negotiable if you prefer Macy’s.

BTW I used to think another topic:
Think a subset of sas programs that do not use macros. Write in any language you feel comfortable to get rid of comments.
Some contenders of our June challenge like Kalyani actually touched this topic. Then I chatted with Jiangtang–Both of us agreed it may be less interested in sas community. So I end up to leverage the Deathly Hallows. But if you want to try this code scanner topic, you are more than welcome!
A summary of our previous challenges and the winners:
March challenge: Web crawling (L0) (winner: Megha)
April challenge: Web crawling (L1) (winner: Megha)
May challenge: Eight Queens Puzzle (winner: Kalyani)
June challenge: Source line counting (winner: Megha)
July challenge: Infinitesimal in sas (winner: Jiangtang)
1 Comment + Add Comment
Got anything to say? Go ahead and leave a comment!
Subscribe to receive our new blogposts
Follow Us!
Categories
- Best Practices (1)
- Best-Practices (13)
- Business Best Practices (4)
- Case studies (2)
- CDISC (9)
- Clinical Data Management (6)
- Code (13)
- EDC (3)
- Event (2)
- Events (2)
- Menu (3)
- Monthly Contest (12)
- New Technologies (12)
- OpenClinica (2)
- SAS Library (4)
- Scripting (2)
- Tips & Techniques (14)
- Trends (1)




Posted under: 



[...] for our previous challenge Motto of Hogwarts School, the winner is Jiangtang Hu. This is Jiangtang’s second time to become the winner of our [...]