
	<<Cyber Earth>>

[1 ϲǤ]

 Cyber Earth  Google Earth (http://earth.google.com/) ȡ
Żҹڸ󶡤ƤϿޥǡϢ륽եȥ


 ΥեȤλѤˤäƤϹΥǡѤ뤿ᡢǡ
Ѥ˴ؤưʲѵƱդƤɬפޤ

=================================================================
<<ǡѵ>>

ŻҹڤΥǡѤˤäƤϡŻҹڶ̵Ʊդ
Ƥɬפޤ
Żҹڶ̵http://cyberjapan.jp/kiyaku.htm
Żҹڤ󶡤ƤǡΤǡ
ϡͭƤޤ
ΥեȥȤäơŻҹڤαĤ˸԰٤Ԥä
Ϥʤޤ
ڤŻҹڻ̳ɤϡΥץѤ
ݤˤĤơʤǤ餤ޤ
ڤŻҹڻ̳ɤϡߤŻҹڤؤΥǡ
ξ֤ѹ󶡼Τμߤ䵬ѹˤä
ѤǧʤʤޤˤǤ⡢ΥץѼԤ
ΤǤ餤ޤ
ڤŻҹڻ̳ɤGoogleҤȤϰڴطޤ

=================================================================


[2 ɬפʤ]

1. Gauche (http://practical-scheme.net/gauche/index-j.html)
   ưˤ 0.8.8 ʹߤɬפǤ
   ޤSLIB (http://swiss.csail.mit.edu/~jaffer/SLIB.html) ɬפǤ

2. CGI ưȤ
   üŪ˸ Web ФλǤ¾ƱμʤФǤ⹽
   ޤ

3. Google Earth

 Υץưˤ UNIX ϤOSưޥɬפǤ
Windows Ǥ¿ѹưǽޤǧϤƤޤ󡣤
Υץ UNIX ưWindowsưGoogle
Earth ǥϤǤޤλϥץΥۥ̾λ
ʬ񤭴ɬפޤ



[3 ץȤ]

 cyber-earth.kml:
Google Earth ɤ߹ޤ KML եǤ

 cyber-earth.cgi:
ξ˱Ŭڤʲɤ褦Google Earth˻ؼ
ץȤǤ

 cyber-earth-cache.cgi:
ö¸ƸǤޤ褦ˤ륹ץȤǤ
ϿޤμʤɡŬڤʲ¸ߤʤ Google Earth 
顼Фʤ褦ŬʥߡƯ⤷ޤ


[4 Ȥ]

1. Gauche 򥤥󥹥ȡ뤷Ʋ󥹥ȡˤϤޤޤˡ
   ޤ󥹥ȡѤΥХʥѥå¸ߤʤФ
   ѤȴñǤΤ褦ˡȤʤϥɤ饤
   󥹥ȡ뤹뤳ȤˤʤޤGauche ΥɤRPMѤ
   󥹥ȡˤбƤޤRPMѤƥ󥹥ȡ뤹
   rpmbuild(1) ޥɤΥޥ˥奢򻲾ȤƲ

2. CGI򰷤Ŭ Web Ф򥤥󥹥ȡ뤷Ʋ

3. CGIѤΥץ cyber-earth.cgi  cyber-earth-cache.cgi  Web Ф
   http://localhost/cgi-bin/ ʲǼ¹ԤǤ֤˥ԡƲ
   ԡ饹ץȤ¹ԤǤ褦 chmod ޥɤǼ¹°
   ͿƲGauche μ¹ԥޥɤ /usr/bin ʳ˥󥹥ȡ
   ƤϥץȤƬԤѹƲ

4. Google Earth ư cyber-earth.kml 򳫤ɤ߹ǲ


[5 ]

 Cyber Earth ϥץѿˤ /tmp ʲˤĤե
ޤޤ /tmp ʲ̾Υե֤ư
ǤޤɬפʤХץȤ񤭴Ƥΰ֤̤ξ
ܤƤɤǤ礦

 ʲѿȤƤҤ٤ޤ

;; cyber-earth-cache.cgi
(define *proxy-host* "proxy.example.jp")
(define *proxy-port* 8080)
 cyber-earth-cache.cgi ץФѤ Cyberjapan ˥
Ѥۥ̾ȥݡֹꤷޤ #f ˤȥץ
ФѤ˥ޤ

;; cyber-earth-cache.cgi
(define *db-path* "/tmp/cyber-earth.db")
 Cyber Earth ϰټե򤳤Υǥ쥯ȥʲ¸ư
ι®ΩƤޤټեϺޤΤǸŤե
뤬ޤäƤ find ޥɤʤɤǸŤե򸡺ƺ
ݤʤФΥǥ쥯ȥݤȾäƤޤäƤɤǤ

: find ޥɤѤƲ30ʾ奢Ƥʤե
> find /tmp/cyber-earth.db -type f \! -name Fsdbm -atime 30 -exec "rm" "{}" ";"

;; cyber-earth-cache.cgi
(define *offline-file* "/tmp/cyber-earth-offline")
 Υե򤢤餫Ƥ cyber-earth-cache.cgi ϥե
ˡ餫 /tmp/cyber-earth.db ʲ¸
ǡΤߤư褦ˤʤޤ
 ե饤⡼ɤˤȳͥåȥ³˻ѤǤ
ޤCyber EarthǤϲ˲ؤƤΤǻѤ
β򤢤餫Ƥɬפޤ

;; cyber-earth.cgi
(define *direct-mode-file* "/tmp/cyber-earth-direct")
 Υե򤢤餫Ƥ cyber-earth.cgi 
cyber-earth-cache.cgi ͳľ Cyberjapan ΥȤǡ
褦 Google Earth ˻ؼޤ Google Earth ϳ
쥤ˤĤƤϲ򥭥å夷ʤᡢѤ Cyberjapan 
ΥȤô򤫤 Google Earth ưɬװʾ٤ʤ
ޤޤ Google Earth ϲμ "Pragma: no-cache" Ѥ
ᡢ˥Фôޤ
 ɬפ˱ "Pragma: no-cache" ̵뤵Ǥ褦
ˤŬڤꤵ줿ץФǤ¸ߤͭ
Ʋ


[6 Ȥ]

 ΥեȥȤä˵פݾǤޤ󡣤Υ
ȥλͤϾѤǽޤ

 ΥեȥϹGoogleҤȤ̵طʥեȥǤ
ΤᡢGoogleҤιԤʤѹ䤽¾Թˤ
ΥեȥλѤǤʤʤǽäǤ⡢κ
˵פGoogleҤݾ㤹Ϥޤ

 󶡤ǡˤϹޤ
եȤѤˤäǡκѤˤ꤬ǽ
ޤܤϹ󶡤ǡѵ
(http://cyberjapan.jp/kiyaku.htm)򻲾ȤƲ

 ޤܤιǤ¬ˡβ˴ؤ뿳ĤԤʤäƤޤ
βη̤ˤäƤϥǡμ갷ѹ졢Υեȥ䤽
¾μʤѤǡѤǤʤʤǽޤ


By:  ͵
