Bladeren bron

OtaClock Blog post/page

Thomas Buck 9 jaren geleden
bovenliggende
commit
e79650fddc

+ 56
- 0
input/blog/2015/2015_08_31_otaclock.md Bestand weergeven

@@ -0,0 +1,56 @@
1
+title: Blog
2
+post: OtaClock for Mac OS X
3
+date: 2015-08-31
4
+comments: true
5
+flattr: true
6
+twitter: xythobuz
7
+github: https://github.com/xythobuz/OtaClock
8
+parent: stuff
9
+position: 88
10
+---
11
+
12
+## {{ page["post"] }}
13
+<!--%
14
+from datetime import datetime
15
+date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%B %d, %Y")
16
+print "*Posted at %s.*" % date
17
+%-->
18
+
19
+In 2006, Konami published a Windows and Mac version of a little program called OtaClock. It’s a borderless floating window looking like the Metal Gear Solid 2 Otacon Sprite, looking at the mouse cursor and showing the current time. [You can still download the original using the Web Archive](https://web.archive.org/web/20150130201810/http://www.konami.jp/kojima_pro/english/dl/item_ota.html)!
20
+
21
+The Windows version still works pretty well and can also be used with Wine. There is a bug with the alarm feature of the english version, however. The included alarm file `Alerm.txt` [sic] is encoded in UTF-16, but the app want’s to read ASCII. Convert the file and the alarm feature works properly.
22
+
23
+Unfortunately, the Mac version is only comaptible with PowerPC Macs. Because Apple removed the Rosetta emulator, old programs like OtaClock do no longer work.
24
+
25
+So I decided to recreate the app, pixel for pixel. And I succeeded mostly :)
26
+
27
+<div class="yoxview">
28
+    <a href="img/otaclock1.png" class="thumbnail">
29
+        <img src="img/otaclock1.png" alt="Screenshot" title="Military Time, Date, Alarm">
30
+    </a>
31
+    <a href="img/otaclock2.png" class="thumbnail">
32
+        <img src="img/otaclock2.png" alt="Screenshot" title="Normal Time, Date, Alarm">
33
+    </a>
34
+    <a href="img/otaclock3.png" class="thumbnail">
35
+        <img src="img/otaclock3.png" alt="Screenshot" title="Military Time only">
36
+    </a>
37
+    <a href="img/otaclock4.png" class="thumbnail">
38
+        <img src="img/otaclock4.png" alt="Screenshot" title="Settings">
39
+    </a>
40
+    <a href="img/otaclock5.png" class="thumbnail">
41
+        <img src="img/otaclock5.png" alt="Screenshot" title="Sizes">
42
+    </a>
43
+    <a href="img/otaclock6.png" class="thumbnail">
44
+        <img src="img/otaclock6.png" alt="Screenshot" title="Alarm Time">
45
+    </a>
46
+    <a href="img/otaclock7.png" class="thumbnail">
47
+        <img src="img/otaclock7.png" alt="Screenshot" title="Alarm Settings (unimplemented)">
48
+    </a>
49
+</div>
50
+
51
+I haven’t implemented the sound output for the alarm feature yet, but you can set an alarm and the animation will play.
52
+
53
+I used [these](http://www.spriters-resource.com/playstation_2/mgs2/sheet/6789/) [two](http://spritedatabase.net/file/455) sprite sheets to extract most sprites, except for the AM/PM marker that was missing from both. I got them from a screenshot made using Wine.
54
+
55
+You can find the code on [GitHub](https://github.com/xythobuz/OtaClock) and [my server](http://xythobuz.de/git/otaclock). There is also [a pre-built binary](https://github.com/xythobuz/OtaClock/releases) on GitHub.
56
+

+ 4
- 1
input/stuff.md Bestand weergeven

@@ -9,7 +9,10 @@ position: 40
9 9
 mpages = [p for p in pages if p.get("parent", "") == "stuff" and p.lang == "en"]
10 10
 mpages.sort(key=lambda p: int(p["position"]))
11 11
 for p in mpages:
12
-    print "  * **[%s](%s)**" % (p.title, p.url) # markdown list item
12
+    if p.title == "Blog":
13
+        print "  * **[%s](%s)**" % (p.post, p.url) # markdown list item
14
+    else:
15
+        print "  * **[%s](%s)**" % (p.title, p.url) # markdown list item
13 16
 %-->
14 17
 
15 18
 ### MacPorts Maintainer

BIN
static/img/otaclock1.png Bestand weergeven


BIN
static/img/otaclock2.png Bestand weergeven


BIN
static/img/otaclock3.png Bestand weergeven


BIN
static/img/otaclock4.png Bestand weergeven


BIN
static/img/otaclock5.png Bestand weergeven


BIN
static/img/otaclock6.png Bestand weergeven


BIN
static/img/otaclock7.png Bestand weergeven


Laden…
Annuleren
Opslaan