ä»æ¥ã¯ãããŒã¿ã«
http://www.abbyyonline.comã®äŸã䜿çšããŠãåæ£ãããç°çš®ã®ãæã«ã¯éåžžã«æ·±å»ã§å¯å€çã«ããŒããããã€ã³ã¿ãŒãããã¢ããªã±ãŒã·ã§ã³ã«ã€ããŠèª¬æã
ãŸã ã ç¹å®ã®ãã©ãããã©ãŒã ã«é¢é£ããæè¡çãªè©³çŽ°ã«ã¯è§Šããªãããã«ããŸãã説æããã¢ããªã±ãŒã·ã§ã³ã®äž»èŠéšåã¯ASP.Net MVCã«å®è£
ãããŠããŸããããã®è³æã¯ã䜿çšããããŒã«ã«é¢ä¿ãªããWebéçºã«é¢ä¿ãããã¹ãŠã®äººã«ãšã£ãŠèå³æ·±ããã®ã§ãã
èªåãå°éããèªåã®è·æ¥ãæããããããçã®åã³ãåŸãåéçºè
ã¯ã次ã®ãããžã§ã¯ãã«é²ã¿ãå®ç§ãªã¢ããªã±ãŒã·ã§ã³ã®äœæã«åªããŸã-æé«ã®ãåªããæ¡åŒµå¯èœãªã¢ãŒããã¯ãã£ãšçŸããã³ãŒã...ãããŠã2ã€ã®æ ¹æ¬çãªåé¡ãåžžã«ããã劚ããŸãïŒ
- ç§ãã¡ã®åšãã®äžçã®äžå®å
šã
- ããžãã¹èŠä»¶
ãããžã§ã¯ãAbbyyOnlineã¯ãŸããæ¯ã¿ãŒã³ãããã«å¯ŸåŠããªããã°ãªããŸããã§ããã ãã®å Žåãäžçã®äžå®å
šãã¯ãAbbyyOnlineïŒãŸãã¯ãã®å
éšåã§ã¯AOLïŒãWebã¢ããªã±ãŒã·ã§ã³ã§ãããäžå®å
šãªäžçã§ã¯ããã®ãããªã¢ããªã±ãŒã·ã§ã³ã¯ãããã¯ãŒã¯æ©èœã«ãã£ãŠå¶éãããã¹ããŒãã¬ã¹ïŒã€ãŸããã¹ããŒãã¬ã¹ïŒã§æ¯ããããŠããããšã§ãïŒã¬ã€ãã³ã·ã垯åå¹
ïŒããã©ãŠã¶ã®èè¡ã«é©å¿ããããšãäœåãªããããã¯ã©ã€ã¢ã³ãã¹ã¯ãªããããã€ãããã©ãã·ã¥ããµãŒããŒã³ãŒãã次ã®ãã€ã€ã©ãŒãªã©ããã¯ãããžãŒã®åç©åå
šäœã§å®è£
ãããéåœã«ãããŸã SQLãããžã§ã¯ãã
ããžãã¹ãå£ããªã...ããŒã±ãã£ã³ã°ã®èãã«ããã°ãABBYYããªã³ã©ã€ã³ã§æäŸãããã¹ãŠã®ãµãŒãã¹ããã®ããŒã¿ã«ã«è¡šç€ºãããããã«ãAOLã¯ã€ã³ã¿ãŒãããäžã®äŒç€Ÿå
šäœã®é¡ã«ãªãã¯ãã§ãã
ABBYYã«ã¯ããªãæ確ãªããžã·ã§ãã³ã°ããããŸãããããã¯èšèªãèªèãããã«é¢é£ãããã¹ãŠã®ãã®ãã€ãŸããäœããã®åœ¢ã§ã®ã¯ãŒãããã»ãã·ã³ã°ã§ãã åœç¶ããªã³ã©ã€ã³ãµãŒãã¹ãçµ±äžæŠç·ãšããŠæäŸãããã£ãã®ã§ãã åççã§ããïŒ ç¢ºãã«ããããããã¯å®éã«ã¯ã©ãããæå³ã§ããïŒ å°ãªããšããåäžã®ãŠãŒã¶ãŒããŒã¹ãå¿
èŠã§ããã·ã³ã°ã«ãµã€ã³ãªã³èªèšŒãå®è£
ããå¿
èŠããããŸããã€ãŸãããŠãŒã¶ãŒã1ã€ã®ãµãŒãã¹ã«ãã°ãªã³ããŠããå Žåãæ®ãã¯äžå¿
èŠãªè³ªåãããã«çŽæ¥èªèããå¿
èŠããããŸããçµ±äžãããèšèšèŠçŽ ãšè«çèŠçŽ ãå¿
èŠã§ãã
ãã¹ãŠã¯åé¡ãããŸãããããã¹ãŠã®ãªã³ã©ã€ã³äŒæ¥ãµãŒãã¹ã¯åå¥ã®ããªãæ·±å»ãªã¢ããªã±ãŒã·ã§ã³ã§ãã ãŸãããããã®ã¢ããªã±ãŒã·ã§ã³ã¯ç°ãªããµãŒããŒã§ãã¹ããããã ãã§ãªãïŒäžéšã®ã¢ããªã±ãŒã·ã§ã³ã¯ç©ççã«è€æ°ã®ãµãŒããŒã«é
眮ãããéåžžã«æ·±å»ãªã€ã³ãã©ã¹ãã©ã¯ãã£ãå¿
èŠãšããŸãïŒãããŸããŸãªçç±ã§ç°ãªããµã€ãã«é
眮ãããŸãã æŽå²çã«ãããã®ãµãŒããŒã«ã¯ç°ãªããªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãæèŒãããŠãããšããäºå®ã¯èšããŸã§ããããŸããïŒè©³çŽ°ã«èå³ããããªããWindowsãµãŒããŒãšFreeBSDããããŸãïŒã äžè¬çã«ãçã«ç°çš®ã®åæ£ã·ã¹ãã -ãã®èæ¯ã«å¯ŸããŠãç°ãªãããŒã¿ã«ãµã€ãã®ç°ãªããã¡ã€ã³åãªã©ã®äºçŽ°ãªããšã¯ããã§ã«ç¡èŠããããšãã§ããŸãã
äžè¬çãªæ§é
ãããã®ã¿ã€ãã®ããŒã¿ã«ãäœæããå Žåãéåžžã«å€ãã®ããŒã¿ãšããŒãžãå
±æãããããããã¹ãŠãæ¥ç¶ãµã€ãã§ããäžå€®ãµã€ãã«é
眮ããã®ãè«ççã§ãã ç§ãã¡ã®å Žåãäžå€®ãµã€ãã®ã¿ã¹ã¯ã¯èªèšŒãå
±æããŒãžã®æäœãå
±æãªãœãŒã¹ã®æäœã§ãã ãã®äžå€®ãµã€ãã«ã¯WebService APIãè£
åãããŠããããããä»ããŠãµãŒãã¹ã®æäŸãå«ãã¿ã¹ã¯ãè¡ãä»ã®ãµã€ãã¯ãããŒã¿ã«ã®äžè¬çãªã€ã³ãã©ã¹ãã©ã¯ãã£ãšé£æºã§ããŸããããšãã°ãçŸåšã®ãŠãŒã¶ãŒã«é¢ããå®å
šãªæ
å ±ãåãåã£ããããªã³ã©ã€ã³ã¹ãã¢ã®å
±éãã¹ã±ããã«ååãå
¥ãããã§ããŸãã ãµãŒãã¹ãµã€ãã¯ãäºãã«ã€ããŠäœãç¥ãããã¡ã€ã³ããŒã¿ã«ãµã€ãã®ååšãçãã ãã§ãäžèšã®APIã䜿çšã§ããŸãã
ã·ã³ã°ã«ãµã€ã³ãªã³ãšã¯ãã¹ãã¡ã€ã³èªèšŒ
æåã®åé¡ã¯ãã·ã³ã°ã«ãŠãŒã¶ãŒããŒã¹ãšã·ã³ã°ã«ãµã€ã³ãªã³èªèšŒã§ããããã§ã®é£ããã¯äœã§ããïŒ ãã§ã«ããã£ãããã«ãWebã¢ããªã±ãŒã·ã§ã³ã®æ©èœã®1ã€ã¯ç¶æ
ã®æ¬ åŠã§ãã å®éã«ã¯ãããã¯ããã©ãŠã¶ãŒãããµãŒããŒãžã®ãã¹ãŠã®èŠæ±ãåã®èŠæ±ã«äŸåããããµãŒããŒãã誰ãæ¥ãã®ãããæšæž¬ããªããã°ãªããªãããšãæå³ããŸãã åŸæ¥ããã®åé¡ã¯ç¹å¥ãªèªèšŒCookieãèšè¿°ããããšã§è§£æ±ºãããŠããŸããããã©ãŠã¶ã¯ãCookieãæéåãã«ãªããŸã§ããªã¯ãšã¹ãããšã«ãµãŒããŒã«éä¿¡ããŸãã ããããå®éã«ã¯ãã»ãã¥ãªãã£äžã®çç±ããããµã€ãã®ãµãŒããŒéšåã¯åã第2ã¬ãã«ãã¡ã€ã³ã«èšé²ãããCookieã®ã¿ãèªã¿åãããšãã§ããŸããããšãã°ã
httpïŒ//finereader.abbyyonline.comã«å±éããããµã€ãã¯ãµã€ããæžã蟌ãã Cookieãèªã¿åãããšãã§ããŸã
http://www.abbyyonline.comã«ãããã€ãããŠã
ãŸããããµã€ã
http://finereaderonline.comã¯ãã©ã®ãããªç¶æ³ã§ããã®ãããªCookieãèªã¿åããŸããã ãã ããã¿ã¹ã¯ã®æ¡ä»¶ã«å¿ããŠãããŒã¿ã«ã®ããŸããŸãªéšåãããŸããŸãªãã¡ã€ã³ã«é
眮ã§ãããããããçš®ã®ã¯ãã¹ãã¡ã€ã³èªèšŒã¡ã«ããºã ãå¿
èŠã§ãã
ååãšããŠããã®åé¡ã解決ããã«ã¯äž»ã«2ã€ã®æ¹æ³ããããŸãããªãã€ã¬ã¯ãïŒ.Net PassportãOpenIDãLiveIDãªã©ã®ãããªãã®ïŒãšãGoogleãYandexã®ãããªjavascriptããµãŒãã¹ã§è¡ããŸãã ãªãã€ã¬ã¯ãã¹ããŒã ã¯ããããã次ã®ããã«æ©èœããŸãã
ããŒã¿ã«ãµã€ãã®ããŒãžã«ã¢ã¯ã»ã¹ããå Žåããã®ãŠãŒã¶ãŒã®ããŒã¿ã«ãç¥ã£ãŠãããã©ããã確èªããå¿
èŠããããŸãã å®å
šãªããŒãžã ãã§ãªããã©ã®ããŒãžã«ãã¢ã¯ã»ã¹ã§ããã®ã¯ãªãã§ããïŒ ããã¯ããŒã ããããã¡ã€ã«ãžã®ãªã³ã¯ãããã³ãã®ä»ã®å人æ
å ±ã®äžéšããã¹ãŠã®ããŒãžã«è¡šç€ºããå¿
èŠãããããããŠãŒã¶ãŒã¯ç§ãã¡ã圌ãèŠããŠããã圌ã«äŒããŠããããããšãç¥ã£ãŠããŸã:)
ãã®ç®æšãéæããããã«ã次ã®äžé£ã®ã¢ã¯ã·ã§ã³ãå®è¡ããŸãã
- ãµã€ãã¯ãç¬èªã®æ¬çªã®èªèšŒCookieãèªã¿åãããšããŠããŸãã ãããæåããå ŽåãèªèšŒããã»ã¹ã¯ããã§çµäºããŸãããã®ãããªCookieãããå ŽåããŠãŒã¶ãŒãåããŠããã«ããªãããšãæå³ãããã®ãµã€ãã§ãŠãŒã¶ãŒãæ£åžžã«èå¥ããããã§ãã
- ãµã€ãã¯ãèªèšŒããã»ã¹ã¯å®è¡ããããæåããªãã£ããšããç¹å¥ãªCookieãèªã¿åãããšããŠããŸãã ãããæåããå Žåãããã§çµäºããããšãã§ããŸã-ãã®ãŠãŒã¶ãŒãç¥ããªãããšãããããŸãã
- åã®æ®µèœã倱æããå Žåã...
- ãµã€ãã¯ç¹å¥ãªäžæã®ããŒã¯ã³ãäœæããŸã
- ããŒã¿ããŒã¹ã®ããŒã ãã¬ãŒãã«ãç¹ã«èªèšŒãèŠæ±ããããŒãžã®ããŒã¯ã³ãšURLãå«ããšã³ããªãäœæãããŸãã
- ãã®ãµã€ãã¯ç¹å¥ãªCookieãäœæããŸããããã¯ããããŸã§ã®ãšãããã®ãŠãŒã¶ãŒãç¥ããªãããèªèšŒèŠæ±ããã§ã«éä¿¡ããŠããããšã瀺ããŠããŸãã ãã®Cookieã®åœ¹å²ã¯ããŠãŒã¶ãŒãå¿åãŠãŒã¶ãŒã§ããããšã瀺ãéåžžã®èªèšŒCookieã«ãã£ãŠæããããå¯èœæ§ããããŸãããã®å Žåã段èœçªå·2ã¯å¿
èŠãããŸããã
- ãµã€ãã¯ããªã¯ãšã¹ããç¹å¥ãªäžå€®ãµãŒããŒã®URLã«ãªãã€ã¬ã¯ããããªã¯ãšã¹ãè¡ã«åãããŒã¯ã³ãæž¡ããŸãã
- ãã®ãããªãªã¯ãšã¹ããåãåã£ãäžå€®ãµãŒããŒã¯...
- ãŠãŒã¶ãŒããèªèšŒCookieã®èªã¿åããè©Šã¿ãŸãã
- ããŒã¿ããŒã¹å
ã§ãã¯ãšãªæååã§è»¢éãããããŒã¯ã³äžã®åãå®éã®ã¿ãã¬ããã§ãç®çã®ã¬ã³ãŒããèŠã€ããåã®æ®µèœããã®æäœã®çµæãããã«æžã蟌ã¿ãŸãã
- äžå€®ãµãŒããŒã¯ãèªèšŒããªã¯ãšã¹ããããµã€ãã«ãªãã€ã¬ã¯ããããªã¯ãšã¹ãè¡ã«åãããŒã¯ã³ãå«ãç¹å¥ãªURLã«ãªãã€ã¬ã¯ãããŸã
- ãã®ç¹å¥ãªURLã®ãªã¯ãšã¹ããåãåã£ããµã€ãã¯ããã¹ãŠã®ããŒã¿ã«ãµã€ãã«ããã¯ãã§ã...
- 圌ã¯èªèšŒããã»ã¹ã«é¢ããCookieãèªã¿åãããšããŠããŸãïŒ3cã§èšè¿°ããŸããïŒããããäžå¯èœãªå Žåãã¯ã©ã€ã¢ã³ãã¯Cookieã®èšé²ããµããŒããããCookieãªãã§ã¯åäœã§ããŸããããããã£ãŠãããããããããŒã ããŒãžã«ãŠãŒã¶ãŒãéä¿¡ããå¿
èŠããããŸãããã®åããããäºå®ã圌ã«æãèµ·ããããŸãã
- ããŒã¿ããŒã¹ã«ç»ããšããã¹ãŠãåãããŒãã«ã«ãããããŒã¯ã³ã«ãã£ãŠèªèšŒçµæãäžå€®ãµãŒããŒããèªã¿åããŸãã
- äžå€®ãµãŒããŒã«ããèªèšŒãæåããå Žåã次åãŠãŒã¶ãŒãç¡é§ã«ãªããªãããã«ãäžå€®ãµãŒããŒã¯èªèšŒCookieãæžãçããŸãã
- èªèšŒããã»ã¹ãéå§ããããŒãžã«ãªãã€ã¬ã¯ãããŸãã
AOLã§èªèšŒãå®è£
ããå Žåãäžèšã®æ¹æ³ã§è¡ã£ãçµæãã¯ãã¹ãã¡ã€ã³èªèšŒçšã®éåžžã«åªããã³ã³ãã¯ããªã©ã€ãã©ãªãåŸãããŸãããããã¯ãããªãé·ãæéã«ããã£ãŠèšŒæãããŠããŸãã åæã«ãçŸåšçºçããŠããããã«ããµã€ãã®ç¬¬2ã¬ãã«ãã¡ã€ã³ãå
±éã§ããå ŽåãäžèŠãªãªãã€ã¬ã¯ãã¯å®è¡ãããããã¹ãŠã®èªèšŒã¯ééçã§ãã FreeBSDã§åäœãããµã€ãã¯ãã¯ã©ã€ã¢ã³ãããŒãèªäœã®å®è£
ã匷å¶ãããŸãããããã¯ããªãç°¡åãªäœæ¥ã§ãã 以äžã«ã³ã¡ã³ãã瀺ããŸãã
- ã»ãã·ã§ã³ã®äžè¬çãªã¹ãã¬ãŒãžã¯æ¬æ ŒçãªããŒã¿ããŒã¹ã§ããå¿
èŠã¯ãããŸãããæšæºã®ã»ãã·ã§ã³ã¹ãã¢ãšãå°ãªããšããã¹ãŠãã¡ã¢ãªã«ä¿æããé©åãªã€ã³ã¿ãŒãã§ã€ã¹ã®ã»ãããæã€ç¬èªã®WCFãµãŒãã¹ã䜿çšã§ããŸãã ç§ãã¡ã®å ŽåãããŒã¿ã«ãµã€ãã¯åè¿°ã®WebService APIãä»ããŠäžå€®ãµãŒãã¹ãšããŒã¿ã亀æããããŒã¿ããŒã¹ã¯æ¢ã«ååšãããããå
éšã¹ãã¬ãŒãžãšããŠäœ¿çšãããŸãããŸããäœåãªãšã³ãã£ãã£ãäœæãããããããµããŒãããæå³ã¯ãããŸããããäžè¬çã«ãã¹ãã¬ãŒãžã¯æã®ããããªåãã«çœ®ãæããããŸãã ..
- ç§ãã¡ã®å Žåã®ããã«ããã¹ãŠã®ããŒã¿ã«ãµã€ããäºåã«ããã£ãŠããå Žåã¯ã次ã®æé©åãé©çšã§ããŸãïŒéçºè
ã®èšèª=ã䜿çšããŠãèªèšŒãã¬ã€ãžãŒã§ã¯ãªã貪欲ã«ããŸãïŒïŒãŠãŒã¶ãŒãæ¥ããã³ã«äžå€®ãµãŒããŒã«èªèšŒããªãã€ã¬ã¯ããã代ããã«æ°ãããµã€ãã§ã¯ããŠãŒã¶ãŒãæ£ãããã°ã€ã³/ãã¹ã¯ãŒãã®ãã¢ãå
¥åããçŽåŸã«ãIFrameã®ãã¹ãŠã®ããŒã¿ã«ãµã€ããéãããšãã§ãããããäžåºŠã«ãã¹ãŠã®ãµã€ãã«ãªãã€ã¬ã¯ããçºçããŸãïŒå®éããã®å Žåããªãã€ã¬ã¯ããªãã§ã ãªã¯ãšã¹ãããŒã¯ã³ã«avãå
¥åããããŒã¿ããŒã¹ããå¿
èŠãªæ
å ±ãååŸããŸãïŒã ããããäžè¬çãªå Žåãããã¯ä¿¡é Œæ§ãäœããäœãåé¡ãçºçããå ŽåããŠãŒã¶ãŒã®1ã€ãŸãã¯è€æ°ã®ãµã€ãã衚瀺ãããªããªããŸãããæ®ãã¯ãã¹ãŠåé¡ãªããæå°éã®ãã¡ãŒãžã§ãã®ç¶æ³ã解決ããæ¹æ³ã¯ããŸãæ確ã§ã¯ãããŸããã
- ãã®ã¹ããŒã ã¯ãæ€çŽ¢ãšã³ãžã³ã«ããŸãé©ããŠããªããšããç¹ã§æªãã§ãã ãããã®äººã¯ãªãã€ã¬ã¯ããå«ããå¿åã®ã¯ããŒã©ãŒãã¯ãããŒããµããŒãããŠãããšèšã£ããšããŠããã¯ãããŒãä¿åããŠããªããŠããæ¬åœã«æ²ããããšãããããŸããã ãã®ãããã©ã€ãã©ãªã®æ¬¡ã®ããŒãžã§ã³ã¯ããã©ã«ãã§javascriptã¹ããŒã ã§åäœããå¯èœæ§ãé«ãããã®ãããªã¹ã¯ãªããã«ããé©ããŠããŸãã ãã ãããã®å ŽåãjavascriptãæããªããŠãŒã¶ãŒã圱é¿ãåããŸãã
å
±éãã¶ã€ã³ã®äœæã
倧ãããçŸãããåæ£ãããç°çš®ããŒã¿ã«ãäœæãããšãã«çºçããå¥ã®åé¡ã¯ãå
±éã®èšèšèŠçŽ ãšãããã衚瀺ããæ©èœã§ãã ããŒã¿ã«ã®åéšåïŒåå¥ã®ãµã€ãïŒã«ã¯ç¬èªã®éçºããŒã ããããæ¢ã«è¿°ã¹ãããã«ããããã®ãµã€ãã¯ç°ãªããµãŒããŒã«ãããã€ããããµãŒããŒã¯ç©ççã«ç°ãªãå Žæã«é
眮ããããªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãç°ãªããŸãã åæã«ãå
šäœçãªã¹ã¿ã€ã«ãç¶æããããšããå¿
èŠããããŸããå¿
èŠã«å¿ããŠã¹ã¿ã€ã«ãå€æŽããã®ãç°¡åã§ããããã®çœ®æããã¹ãŠã®ããŒã ã®åŽã§å€§ããªåŽåãå¿
èŠãšããªããããªæ¹æ³ã§ãããçæ³çã«ã¯ã圌ãã®åå ãªãã§è¡ãã§ãããã ãããã£ãŠãUIãæ
åœããã³ã³ãããŒã«ã®ã©ã€ãã©ãªãäœæããå¿
èŠããããŸããããã¯ããããžã§ã¯ãã®åå è
å
šå¡ããé床ã®åŽåãªãã§äœ¿çšã§ããŸãã
æšæºASP.Netã³ã³ãããŒã«ãšMVCãã³ãã¬ãŒãïŒå¥åéšåãã¥ãŒïŒã¯ããã®ã¿ã¹ã¯ã§ã¯ããŸãæåããŸããã第äžã«ãç°ãªããããžã§ã¯ãã®ç°ãªãããŒã éã§å
±æããã®ãäžäŸ¿ã§ããã第äºã«ãFreeBSDã®äººã«ãšã£ãŠã¯ãŸã£ãã圹ã«ç«ã¡ãŸããã èããåŸã次ã®ãã¿ãŒã³ã䞊ãã§ãã...
åå
±éã³ã³ãããŒã«ã®äžæ žã¯xml / xslãã³ãã«ã§ãã ãã®ãããªã³ã³ãããŒã«ã®ããŒã«ã©ã€ãºãããxmlã¯ãåãAPIãä»ããŠäžå€®ãµãŒããŒããååŸãããŸããããã«ãããå Žåã«ãã£ãŠã¯ãããŸããŸãªçš®é¡ã®ã¡ãã¥ãŒã®ã¬ã³ããªã³ã°ãªã©ãäžå€®ãµãŒããŒã§äœ¿çšå¯èœãªããŒã¿ã«åºã¥ããŠãã®xmlãåçã«æ§ç¯ã§ããŸãã æçµçãªhtmlãååŸããããã®Xslã¯ãå
±æã©ã€ãã©ãªã«é¢é£ããç¹å¥ãªã¢ã»ã³ããªã®ãªãœãŒã¹ã«ãããåãã¢ã»ã³ããªã«ã¯ãäžå€®ãµãŒããŒããxmlãæœåºããxslã§åŠçããçµæãæ£ãããã£ãã·ã¥ããããã®ã³ãŒãããããŸãã ã»ãšãã©ã®å Žåãè£å©ãµã€ãã§ã³ã³ãããŒã«ã䜿çšããã«ã¯ãé©åãªãã©ã¡ãŒã¿ãŒãæå®ããŠã¡ãœãããåŒã³åºãã ãã§ååã§ããã³ã³ãããŒã«ãã¬ã³ããªã³ã°ãããŸãããŸãã«ãã¬ã³ããªã³ã°ããã»ã¹ã«å²ã蟌ãã§ç¹å®ã®ã¿ã¹ã¯ã®ããã«å°ãä¿®æ£ããå¿
èŠãããå ŽåããããŸããããããåé¡ã§ã¯ãããŸããã
FreeBSDãä»ã®ä»£æ¿ã·ã¹ãã ã®ãããžã§ã¯ãã§ã¯ããã®çš®ã®å¶åŸ¡ã䜿çšããããšãéåžžã«äŸ¿å©ã§ãã ãã¡ãããxml-thãååŸãã察å¿ããxsl-thããã³ãã®ä»ã®ãã€ã©ãŒãã¬ãŒãã¹ã¯ã¯ãããé©çšããããžãã¯ã¯ãç¬ç«ããŠå®è£
ããå¿
èŠããããŸãããå
±éèŠçŽ ãæç»ããéã®ã»ãšãã©ã®åé¡ã¯è§£æ±ºãããŸãã ãã¹ãŠã®å Žåã«ãããŠãXmlãšxslã¯åãã§ãããå¿
èŠã«å¿ããŠãã¬ã³ããªã³ã°ããžãã¯ãäžå
çã«å€æŽããããã³ã³ãããŒã«ãå¡ãã€ã¶ãããããããšã¯ããã»ã©è² æ
ã§ã¯ãããŸããã
ãªã³ã©ã€ã³ã¹ãã¢ã
話ãããã®ã«æå³ã®ããããŒã¿ã«ã®ç掻ã®ãã1ã€ã®åŽé¢ã¯ããªã³ã©ã€ã³ã¹ãã¢ã§ãã å°æ¥çã«ã¯ãåããŒã¿ã«ãµã€ãã«ã¯è²©å£²ãããã®ãããããµã€ãã ãã§ãªããå°ãæåŠããããã®ãªã³ã©ã€ã³ãµãŒãã¹ãæäŸããããé
åžãããã販売ãããããããšã圹ç«ã€å ŽåããããŸãã ååºèãå®çŸããããã«ãåºèã¯éçç£çãªã¢ã€ãã¢ã§ãã ãã¡ããããã©ã¹ã¯ãããŸããããã€ãã¹ã¯ãŸã ãããŸãã ããããéäžååºèã®å®æœã«ã¯é害ããããŸããäž»ãªããšã¯ãäœã売ããªããã°ãªããªãããäºåã«ããããªãããšã§ãããååã¯ãµãŒãã¹ããç®±ãŸã§éåžžã«å€æ§ã§ãã ãŸãããã§ã«è¿°ã¹ãããã«ãå°æ¥çã«ã¯ãæããã«ããŒã¿ã«æ§é ã®äžéšã§ãããµã€ãã ãã§ãªããé貚åºã§è£œåã販売ããå¿
èŠããããããããŸããã
æåãã解決çã¯ãåºèã®åºé ãšæ³šæã«å¯Ÿããå®éã®æ¯æãããã»ã¹ãåé¢ããããšã§ããã æããã«ãã·ã§ãŒã±ãŒã¹ãäžè¬åããããšã¯ããŸãæå³ããããŸãã-補åã¯æãå€æ§ã§ãããç¹ã«ããŒã¿ã«ã®äœææã«ææ¡ããã補åã®å€§éšåãç¥ãããŠããªããããæ®éçãªäŸ¿å©ãªãã¶ã€ã³ãæ³åããããšã¯ã§ããŸããã ãããã£ãŠãåºèã®ãã·ã§ãŒã±ãŒã¹ããã€ãŸããäŸ¡æ Œããã®ä»ã®èª¬æãå«ãååã®ã«ã¿ãã°ã«ããã販売ãããåãµãŒãã¹ãåå¥ã«è²©å£²ã§ããŸãã ããããååããã¹ã±ããã«å
¥ããŠããã«ãã®ãã¹ã±ããã®æ¯æããããããã»ã¹ã¯ããã¹ãŠã®äººã«å
±éããã®ãçã«ããªã£ãŠããŸã-ããžãã¯ã¯ããªãææ§ã§ãããæ®éçã§ãããããäžåºŠå®è£
ããããšãã§ããããšãã°ãæ°ããæ¯æãæ¹æ³ãæ¥ç¶ãããªã©ããã¹ãŠã®äººã«èªåçã«æ©èœããŸããµãŒãã¹ã
ãµã€ãã®ãŠãŒã¶ãŒãããã¹ã±ããã«å
¥ããããã¿ã³ãã¯ãªãã¯ãããšããµã€ãã¯ããã§èšåããAPIã®å©ãã«äœåºŠãé Œãããã®ãããªãŠãŒã¶ãŒïŒèŠããŠããããã«ãã¯ãã¹ãã¡ã€ã³èªèšŒã·ã¹ãã ãå®å
šã«æ©èœããŠããïŒããã¹ã±ããã¯ãã®ãããªè£œåã§ããããã®ãããªäŸ¡æ Œã§ãããåºèã®äžè¬çãªéšåã¯ã泚æãããã«åœ¢æããããã«ããããã¹ãŠã®ããŒã¿ãèšæ¶ããŠããŸãã
ããã«ããã¹ã±ããã«è¡ããšããŠãŒã¶ãŒã¯ãã§ã«äžå€®ãµã€ãã«ã¢ã¯ã»ã¹ããŠãããããã§æ¯æãããã»ã¹ããã³éžæããæ¯æãã·ã¹ãã ãšã®ãã®ä»ã®ããåããè¡ãããŸãã 泚æãæ£åžžã«æ¯æãããåŸãäžå€®ãµã€ãã¯ããã¹ã±ããã«ååãå
¥ã£ãŠãããã¹ãŠã®ãµãŒãã¹ã«ããŠãŒã¶ãŒããã®ãããªååããã®ãããªååã®æ¯æããæžãŸãããšããéç¥ãéä¿¡ããŸãã
åœåãäžå€®éæš©ååºèã®ã¢ã€ãã¢ãæåŠããŸãããããã¹ãŠã®ãµãŒãã¹ã®äžã§æã人æ°ã®ãã補åãæ瀺ãããäžè¬çãªã·ã§ãŒã±ãŒã¹ãäŸç¶ãšããŠå¿
èŠã§ãã ããã¯ãããŒã±ãã£ã³ã°ãšè²©å£²ïŒã¯ãã¹ãã©ã³ãã£ã³ã°ãªã©ïŒã®èŠ³ç¹ããããŸããã¶ã€ã³ãšäœ¿ããããã®èŠ³ç¹ãããéåžžã«æçšãªãã®ã§ããç¹å®ã®ã»ã¯ã·ã§ã³ã§ã¯ãªããããã ã®åºããžã®ãªã³ã¯ãåžžã«å¿
èŠã§ãã ãã®ãããå
±éã®ã¹ãã¢ããã³ãã§è£œåã衚瀺ããããã¹ãŠã®ãµãŒãã¹ã¯ããã®åãã¹ãã¢ããã³ãã«é¢é£æ
å ±ãæäŸããç°¡åãªRESTfulã¡ãœãããå®è£
ããå¿
èŠããããŸãã
ãããã«
çµè«ãšããŠãããã§ã¯ãæãäžè¬çãªçšèªã§ãããŒã¿ã«ã¢ãŒããã¯ãã£ã®äžéšã®ã¿ã説æããŠããŸããããã¯ããŠãŒã¶ãŒã®å©çã®ããã«ãããŸããŸãªãªã³ã©ã€ã³ãµãŒãã¹ã®ã¢ã³ãµã³ãã«å
šäœãäºãã«å¹³åã«å
±åãããããšã匷å¶ããè©Šã¿ã«é¢é£ããŠããŸãã :)ããããã®ãµãŒãã¹ã¯ç¬èªã®æ¹æ³ã§ãŠããŒã¯ã§èå³æ·±ãã§ã... :)
ã€ã¯ã³ã»ããã£ã¢ã®ã³
ããã¹ãèªè補åéš