root/misc/delicursion.py

Revision 1367, 5.6 kB (checked in by alpt, 1 year ago)

.

Line 
1 #
2 #                     The Land of Delicursion
3 #                    ---------------------------
4 #         http://freaknet.org/alpt/src/misc/delicursion.py
5 #
6 #
7 # This text is both a history of the remote land of Delicursion and the Key
8 # to access to any of its mesmerizing places.
9 #
10 # Let thou be warned first: no stack-less people have ever crossed the gate of
11 # Delicursion!
12 #
13 # ** History
14 #
15 # As everything that has no end and beginning, Delicursion was there,
16 # unexplored and untamed. Free in its vast hash space...
17 #
18 # ...until a day, when the first human step tasted its infinite ground.
19 # It was the year 2003.
20 #
21 #
22 # In 05, two years later the discovery of Delicursion, many pilgrims
23 # began to visit its peaks. The journey was long but pleasant.
24 # It was not rare that a pilgrim, inspired by the continuous, yet
25 # discrete, land, reached a deep insight on the structure of Delicursion.
26 # To thank the gods, the pilgrim would then leave a sign as a
27 # comfort and aid to the future visitors of the land.
28 # Drop by drop the signs cumulated. It was a pleasure travelling in
29 # Delicursion! How many wonderful stories were written on those signs.
30 #
31 # In these days, everyone knows how the humans reached, by a fortunate twist of
32 # fate, Delicursion. But, for your serenity, I won't indulge to describing
33 # the early events.
34 #
35 # It all started from a simple need of curiosity:
36 #        http://del.icio.us/url/46efc577b7ddef30d1c6fd13311b371e   (1)
37 # The first timid step was posed by Deusx when he, the first, created (1)
38 # in September 2003.
39 # None was aware that the gate to Delicursion had been opened!
40 #
41 # Only in February 04 Kokeshi bookmarked (1), thus generating
42 #        http://del.icio.us/url/9a81616a6fdc3fd6cd432f0c3cce9b5c    (2)
43 # The first stone on the stack had been posed!
44 #
45 # In November 04, Panic bookmarked (2), thus generating (3).
46 # From this point on, it isn't clear who bookmarked what and when, because
47 # many adventurers climbed well beyond the first 10 natural numbers,
48 # careless of what lied below.
49 #
50 # During the years, a legend arose. It was the Legend of the Collision.
51 # The legend told: <<there exists the Secret Peak, which shall not be revealed to
52 # humans. The Secret Peak is the end and edge of the world. Whatever crosses its
53 # border will return to the Zero, the Origin of everything.>>
54 # However I shall be honest with you: there is another version of the Legend
55 # which claims that the Secret Peak is a gate not to the Origin, but to an
56 # unknown, yet known, peak of Delicursion.
57 #
58 # It is also rumored that the reacher of the Peak, will be able to know and
59 # control the entire Delicursion.
60 # And this is the reason why many fools set forth to reach the Peak! They are
61 # not moved by the compassion of Delicursion, but by their greed!
62 #
63 # This is, as the time of writing, the short, and by no way comprehensive,
64 # history of Delicursion.
65 #
66 # What follows are the modern times.
67 # To let you, the reader, know the actual state of things, I'll tell what
68 # I've discovered in my researches.
69 #
70 # In December 07, I asked the Dragon Keeper what was the last peak
71 # reached. He answered:
72 #       <<That fools of humans have reached the 150th peak.
73 #         But BEWARE, they will never reach the Collision.>>
74 # With my modest telescope I checked the 150th peak: a consumed sign was
75 # there! It read:
76 #       
77 #     ________________________
78 #    /\                       \
79 #    \_|   Hello...?           |
80 #      |                       |
81 #      |      - Waywardoctagon |
82 #      |   ____________________|_
83 #       \_/_____________________/
84 #
85 #
86 # Truly a human reached the 150th peak!
87 #
88 # ** The Key
89 #
90 # It was not with surprise that I discovered how simple was to build the Key.
91 # What led to the right choice of material was the number 33: the letters of
92 # each name of the peaks. Thus md5, the black, yet light, metal was chosen.
93 # At first, I inspected the names: how would they be written in the language of
94 # Delicursion? This answer was not easy to acquire.
95 # After many years of experiments, I finally found that the bare ASCII language of
96 # the middle age was the one!
97 # Thus I wrote the spell.
98 # The night of the final experiment I could not rest. Could the spell really
99 # predict the names of the peaks? Could the names really be so powerful to let
100 # you be _there_ just by pronouncing them?
101 #
102 # Yes, it was true. And as a proof I marked the 1000th Peak.
103 #
104 # To thanks the gods of this finding, and to let the future pilgrims be in
105 # comfort, I will share with you the spell.
106 #
107 # Write with care the words that follow in a clean scroll.
108 # Let the scroll rest in a nest of pythons, and pray the goddess of
109 # computing.
110 #
111 # Shall the Hashes Virtues be with you!
112 #
113
114 # **** Usage of the Key
115 #
116 # python delicursion.py [N | [min max]]
117 #
118 # **** Examples of invocations
119 #
120 # python delicursion.py 100     # shows the 100-th hash
121 #
122 # python delicursion.py 1 101   # shows the first 100 hashes
123 #
124 #
125 # --
126 # AlpT (@freaknet.org)
127 # Sat Dec 15 04:00:04 CET 2007
128 #
129
130 from sys import argv
131 from md5 import md5
132
133 if len(argv) >= 2:
134         min=int(argv[1])
135 if len(argv) == 2:
136         max=min+1
137 elif len(argv) == 3:
138         max=int(argv[2])
139 else:
140         min=0
141         max=2048
142
143 ss=s='http://del.icio.us/'
144 for i in xrange(0,max):
145         s=ss+'url/'+md5(s).hexdigest()
146         if i+1 >= min and i+1 < max:
147                 print i+1,s
148
149
150 # ** The Dragon Keeper
151 #
152 # This is the way to ask the Dragon Keeper in the ancient KornZshBashish
153 # language:
154 #
155 #thestart=1
156 #theneverend=1001
157 #for ((i=$thestart;i < $theneverend; i++)); do
158 #    if lynx `python delicursion.py $i` -dump | grep -qi 'first posted by'; then
159 #        echo Someone is at peak $i
160 #    fi;
161 #    sleep 0.5
162 #done
163
Note: See TracBrowser for help on using the browser.