ãªããã©ã£ãã§è¦ããã¨ãããããªã¿ã¤ãã«ã ã(ï¾Îµï¾)ï½·ï¾ï½¼ï¾ ï½²!!
é·æã§ããè¦æãã¦ãã ããã
åæ
ã¾ãèªåã¯å®å ¨ã«Javaå±ã§ããã¨ãããã¨ããããæ¥åç³»ã®ã¿ãJava以å¤ã®è¨èªã§ããããæ¯è¼çã¾ã¨ãã«è§¦ããã®ã¯Cè¨èªãããããä»ã®è¨èªã¯ãªãããªã大éã«å¿ è¦ã ã£ããããã¨æããCè¨èªç³»ã®ã·ã³ã¿ãã¯ã¹ãããã¨ãããã¨ãããã
ãããã£ã¦ãµã¼ãã¼ãµã¤ãã®æè¡ãJavaEEã¨ãSQL/RDBãããã¨ããAWT/SwingçGUIãå©ç¨ããJavaã¢ãã¬ãããJavaã¢ããªã±ã¼ã·ã§ã³ã¨ããHTTP/HTMLã¨ãã¯ã¾ãä»äºã§è§¦ãã¦ããããã»ã©åé¡ãªãã
Mixiã¢ããªã¨ã¯
OpenSocialã¨ãããã©ãããã©ã¼ã ãå©ç¨ããWebãã©ã¦ã¶ä¸ã§åãJavaScriptã«ããã¯ã©ã¤ã¢ã³ããµã¤ãã®ã¢ããªãJavaã¨JavaScriptã¯ååã¯ä¼¼ã¦ãã¦ãã¾ã£ããã®å¥ç©ãJavaå±ã«ã¨ã£ã¦å¤©æµã®ãããªåå¨ã
Flashãå©ç¨ã§ããããOpenSocialã®APIã¯ãã¹ã¦JavaScriptã§ç¨æããã¦ããããã®ããFlashã ããJavaScriptã®ç¥èã¯ã¾ã£ããå¿ è¦ãªãã¨ãããã®ã§ããªããé »ç¹ã«Mixiã¢ããªã®APIãå©ç¨ããå ´åããªãé¢åãªãã¨ã«ãªããããã¯ãã
ããã¦ãã®OpenSocialã®å種APIã«Mixiç¬èªã®APIããããMixiã®ã¤ã¶ããã¨ãã
ããã°ãScriptå ¨éã®HTML5ã®æ代ï¼ãã¨æããããPCçã®æ¨å¥¨ç°å¢ã«ã¯ã¦ã¼ã¶ã¼ãå¤ãIEãå ¥ãã¦ã»ããã¨ã®æè¨ãããããã®ãããJavaScriptãé ãIEã§éçºããããã¨ããã¨è¦ãããã¨ã«ãªããç¹ã«ã²ã¼ã ã¯ãã¤ãã
ä¸è¨ã§ã¾ã¨ããã¨ããJavaSciprã§HTMLã®DOMçãåçã«çæãã¦ãã£ã¦ã³ã³ãã³ãããã¿ä¸ãããã®ãã¨ãããã®ã§ããã
ã¡ãªã¿ã«å人ã§éçºå¯è½ãªã®ã¯PCçã®ã¿ã§ãããæºå¸¯ãã¹ãã¼ããã©ã³ã¯æ³äººç»é²ããªãã¨ãããªãã®ã§æ³¨æã
JavaScriptãã©ãããã
ãã¦æ大ã®ãããã¢ã¯JavaScriptã大ãã¦è¦æ¨¡ã大ãããªããã°ã¾ããããç解æããããããã¸ãã¯ãå¢ããã½ã¼ã¹åå²ããããã«ãªãã¨èªåããªãã¦ãªãããããã£ã¦ãé常ã«ä½¿ãåæãæªãã
ããã§GWT(Google Web Toolkit)ã§ãã
GWTã¨ã¯Javaã®ã½ã¼ã¹ããJavaScriptãçæãããã®ã§ãããã®çæãããã½ã¼ã¹ã¯ã½ã¼ã¹ãã³ã³ãã¯ãã«ããåãã©ã¦ã¶ãã¨ã«æé©åããã¦ãã¾ãã
Javaã½ã¼ã¹ããJavaScriptã¸ã®ã³ã³ãã¼ãã«ã¯æå¤ã¨æéããããã¾ããããã§ãã©ã¦ã¶ã«ãã©ã°ã¤ã³ãå ¥ãã¦éçºã¢ã¼ãã§éçºãããã¨ã§ãã³ã³ãã¼ãããã«å®è¡å¯è½ã«ãªãããããã°ã容æã«ãªãã¾ãã
ãã ãããã®ãããã¹ã«ã¼ãããã¯é ããªãã¾ãã®ã§ã²ã¼ã ã®ãããªã¿ã¤ãã³ã°ãã·ãã¢ãªå ´åã¯åé¡ã«æãå ´åãããã¾ãã
ã¾ããããã¾ã§ããã©ã¦ã¶ã«GWTã®ãã©ã°ã¤ã³ãå ¥ããã®ãåæã§ããMixiã¢ããªï¼OpenSocialï¼ã¯ãµã¼ãã¼çµç±ã§ãã©ã¦ã¶ã¸å°éããããã«ããã®ãã©ã°ã¤ã³ã¯ä½¿ãã¾ãããã¾ãããã®éçºã¢ã¼ãã¯å¤å°ãã°ãããããã§ãæ¡å¼µforã失æããã¨ããããããã§ãï¼ã¡ãã£ã¨åã®ãã¼ã¸ã§ã³ä½¿ã£ã¦ãã®ã§ç´ã£ã¦ãããï¼ããã®ããã«ä½¿ãæ¹å°ãã³ããããã¾ãã
Javaã§ã¯ãªããCè¨èªä½¿ããå©ç¨ããã®ãããã¨æãã¾ããã¡ã½ããã¯ãã¹ã¦staticã«ãã¦ããã°Cè¨èªã¨ãããªã«ãããã¾ããã
ç»é¢æç»ãã©ãããã
ãã¨ãã¨ColorBlockã¯Canvasã§ä½æããã¦ãã¾ãããï¼Mixiã¢ããªãããªãã»ãã¯ä»ã§ãããã§ãããã¥ã¼ãã³ã°ããã¦ããªãããé³ã¯ã§ãªãããã¨ãã§ã¯ãããªãããã«ã¼ã«ãããéãã®ã§Mixiã¢ããªã¨ã¯ããªãå¥ç©ã§ããï¼
åé¡ã¯Canvasã¿ã°ããªãIEã§ãããããã§FlashCanvas PROãå©ç¨ãã¾ãããCanvasã¨ãã¥ã¬ã¼ã·ã§ã³ç³»ã§ã¯å§åçã«å質ãããã®ã§ãããã¬ã³ããªã³ã°ã¿ã¤ãã³ã°ãã³ã³ããã¼ã«ã§ããªããã¨ããããªã使ãåæãæªãã§ããéæ¢ç»ã§ã¯åé¡ãªãã®ã§ããã
ããã§Mixiã¢ããªçã§ã¯Flashã§ã¹ãã©ã¤ãã¨ã³ã¸ã³ããä½æãã¾ãããå¿ è¦ãªã®ã¯Canvasã§ã¯ãªãã¦ãç»é¢ã«æç»ã§ãããã¨ãããã§Canvasã®ãããªæ±ç¨çãªãã®ã§ã¯ãªãã8bitæ代ããããªãã¿ã®ã¹ãã©ã¤ãã«ç¹åãããã®ãä½æãã¾ããããåç¥ã®ã¨ããããã¬ã¼ã ãããã¡ã¨éããã¹ãã©ã¤ãã¯é常ã«å°ãªããã¼ã¿éã§å¤§éã®ãã£ã©ã¯ã¿ã¼ã表示ãããã¨ãå¯è½ã§ããããã§å¤§å¹ ã«é«éåã§ãã¾ããIEã§ãã¡ããã¨éã¹ãé度ã¢ãã«ç¨ã«ãªãã¾ããã
ãã®å¾åç´ãªã¹ãã©ã¤ãã¨ã³ã¸ã³ã ãã§ã¯ãªããé³ã管çããããã«ãã¾ããã
éçºææ³ã¯
éçºç°å¢ã¯JavaSE/EEãä¸å¿ã«css/html/JavaScriptçãå¿ è¦ã¨ãªãã¨NetBeansä¸æã§ãããGWTãã©ã°ã¤ã³å ¥ãã¦ã
ã¾ããæ®æ®µä½¿ãæ £ãã¦ããã¤ã§OKã
æç»ã¯åé ã®ã¹ãã©ã¤ãã¨ã³ã¸ã³ã§ãããªãããããã¸ãã¯ã®ãã¹ãçã¯ãã®é¨åã丸ãã¨ããããããã¨ã«ãã£ã¦JavaSEã§è¡ããã¨ãå¯è½ã§ããSwingï¼Java2Dã§æ§ç¯ããããã°ã¨ãã¥ã¬ã¼ã¿ã§åä½ãããã¨ããããã§ããåæ§ã«Canvasã§ã©ã¤ãã©ãªãç¨æãã¦ã¹ãã¼ããã©ã³ã§å¯¾å¿ãããã«å¯è½ã§ãï¼ãã ããMixiã¢ããªã§å人ã§ã¯å¯¾å¿ä¸å¯è½ãªãã¨ãã¹ãã¼ããã©ã³ã¯ãã·ã³ãã¯ã¼ãPCã¨æ¯ã¹ã¦æ»ã¬ã»ã©ä½ããã¨ãªã©ããã£ã¦ããªã調æ´ã¯å¿ è¦ã ã¨æãã¾ããï¼ã
ã¾ããä¸è¨JavaSEç¨ã®ã¹ãã©ã¤ãã¨ã³ã¸ã³ã使ããJavaSEã¹ã¿ã³ãã¢ãã³ã§éçºãããã§ã²ã¼ã æ¬ä½ã®åºæ¬é¨åãå®æããã¾ããä¸çªä½åº¦ãåå®è¡ãå¿ è¦ãªãããã½ã¼ã¹ä¿®æ£ããå®è¡ã¾ã§ã1ç§ä»¥å ã«çµããç°å¢ã¯ãã®æµãã§ã¯ããããããã¾ããã
ãã®å¾ãGWTã§Webãã©ã¦ã¶ä¸ã§åä½ç¢ºèªãã¾ããããã§ã¯ä¸»ã«åä½é度ããã©ã¦ã¶ã®éããGWT対å¿å¯è½ãªAPIãªã©ã®å¯¾å¿ã調æ´ããã¾ããJavaã®ã¡ã½ãããå©ç¨ããã®ã§ã¯ãªãããã¹ã¦ã©ãããç¨æãã¦ãããçµç±ãããã¨ã«ãã£ã¦å¯¾å¿å ·åçãæ°ã«ããæ±ããããã«ããã¨ããã§ãããã
æå¾ã«Mixiã¢ããªåãããã§æçµçã«èª¿æ´ããã¾ããå®éã«Mixiã®ãµã¼ãã¼çµç±ã§ã¢ã¯ã»ã¹ãã¦ã¿ãªãã¨ããããªãã¨ããã¯ããã¾ãã®ã§ããããã£ããæéãããã¾ããGWTã«OpenSocialã¢ã¸ã¥ã¼ã«ãããã¾ãã®ã§ãããå©ç¨ãã¾ãããã ãæªããAPIã¨ãAPIã®ãã¼ã¸ã§ã³ã¨ãããããã¨ããã¾ãã®ã§åºæ¬ç¨æããã¦ããAPIã¯ä½¿ããªããã¨ããå§ããã¾ãã
ãã¸ãã¯ã¯ãã¹ã¦Javaã§ãã¿ã¾ãããMixiã®APIï¼OpenSocialï¼ãå©ç¨ããéã«ã¯Javascriptã®ç¥èãå¿ è¦ã¨ãªãã¾ããJSNIï¼æ¢åã®Javascriptã¨ã®ããåããããããã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ï¼ã§ã©ããããã®ã§ã¬ãªã¬ãªæ¸ããã¨ã¯ã»ã¨ãã©ãªãã§ããããã®ã¸ãã®ã©ã¤ãã©ãªæ´åä¸ã¯ããªãæµããæèããå¿ è¦ãããã¾ããåºæ¬éåæã§åãã¾ãã®ã§ã
ã¨ããããã§Javaãã³ã¢ã®æè¡ã¨ãã¦ãµã¼ãã¼ãµã¤ãã®ã¿ãªããã¯ã©ã¤ã¢ã³ããµã¤ããJavaã§ã½ãããæ¸ããããã«ãã¦ãã¾ãã
ä½æ¥æéã®æ»åº
ä»äºãããã§ããã©ãåæ¥ã«ä¸æ°ã«æéãããã¦ä½æ¥ã¨ããã®ã¯èªåã¯åããªãã§ãã8æéä½æ¥ããã¨ãã¦ãéä¸ã§ããæéã¯ãããã1æéã§ãã
ããã§ãæ¯æ¥10åã1æéç¨åº¦ãä½æ¥æéã¨ãã¦å²ãå½ã¦ã¾ãããçæéã§éä¸ãã¦ãä»æ¥ã¯ã©ã®ããã«å®è£ ããããå¤é£¯ä½ããªããé£ã¹ãªããèãã¦é£ã¹çµãã£ããçæééä¸ãã¾ããä»æ¥ã©ãã¾ã§ããã¹ãããã¨ããã®ã¯åæ¥ã¾ã§ã«æ±ºãã¦ããã¾ããå¹³åãã¦ã1æ¥ãããã®ä½æ¥æéã¯20åç¨åº¦ã ã¨æãã¾ããåºæ¬çã«ä½æ¥éã¯15å以å ã§çµãããã®ããå²ãå½ã¦ãªãããã«ãã¦ãã¾ãã
éçºä¸ã®ã¨ããã追ã£ããã¦ãã人ã¯ãããã¨æãã¾ãããä¸éãåãããã«ãªã£ã¦ãããã»ã¨ãã©æ¯æ¥ã®ããã«ãã¼ã¸ã§ã³ã¢ãããã¦ãã¾ããããã¨ãã¨1æ©è½ä»ãå ãããçµããã¨ããçæéã§ããããåãæ¹å¼ã§éçºãã¦ããã®ã§ãè¦ã§ã¯ãªãã£ãã§ãããã°ãæ¹åç¹ã7ãè¦ã¤ããããä¸æ°ã«7ã¤ç´ãã®ã§ã¯ãªãã1æ¥1åãã¤ã¤ã¶ãã¦1é±éããããã¨ãã£ãæãã§ããã
ããããã¤ãã¤ã»ã¼æ¯æ¥ããã ãã§ããå®ä½æ¥æéã¨ãã¦ã¯
- Mixiã¢ããªã®åã®ColorBlockä½æã§20æéï¼Cnavasçã®åå¼·æéã¨ãããããªãã¹ãããçµµããå«ãã¦ï¼
- Mixiã¢ããªç§»æ¤ã§4æé
- ã¹ãã©ã¤ãã¨ã³ã¸ã³ä½æã§8æé
- Mixiã¢ããªç¨ã«æ©è½è¿½å çã«ã¹ã¿ãã¤ãº8æé
ã¨ãã£ãæãã§ãããããåè¨ããã¨40æéãããé±5æ¥ã8æéä½æ¥ãã¦ããã1é±éã§åºæ¥ããã«è¦ãã¾ããã©ãå®éã¯ç¡çã§ããã1æ¥éã空ãããã¨ã«ãã£ã¦æ´çãããæ
å ±ã£ã¦ã®ã¯ç¡è¦ã§ããªãã§ããã¾ããããããå¦æ³ãã¦ãã¨ãã£ã¦ã®ã¯æ¥½ããã§ãããã
ã«ãã´ãªã®ä¸éæã
ã¢ããªã¯æ²è¼æã«ã«ãã´ãªãã¤ãããã¾ãããã®ã«ãã´ãªã¯Mixiå´ãè¨å®ããã®ã§ããããã®æ¯ãåãåºæºãã¾ã£ãããããã¾ãããã²ã¼ã ã¯ã¨ã³ã¿ã¼ãã¤ã³ã¡ã³ãã«å²ãæ¯ããããã¨ãå¤ãã®ã§ãããå®ã¯ããªãã®éãããã®ä»ãã«å²ãå½ã¦ããã¦ãã¾ãã
ãã®ããã®ä»ãã¨ããã«ãã´ãªã¯ããºããªã大ã¯ããï¼ãã§ãã¦ããã£ã¡ã«ãã¦ãã¾ãã¨ã¦ã¼ã¶ã¼ã®ã¢ã¯ã»ã¹æ°ã¯ãæ¡åä½ãã§å¤§ããæ¸ã£ã¦ãã¾ãã¾ããã«ãã´ãªãã¨ã®ä¸è¦§ã«ä¹ããªããªãããã§ããå人ãªãã¨ããããä¼æ¥ã ã¨ããã«ãã£ã¦åå ¥ãã®ãã®ã1,2æ¡å¤ãã£ã¦ãã¾ãã¾ãã®ã§æ»æ´»åé¡ã§ãã
æ®å¿µãªããColorBlockããã®ä»ã®ã«ãã´ãªã§ããåå ã¯ãããã¾ããããã¤ãã¯å ã®ã¿ã§ã®ãã¤ã¹ã³ã¢ã©ã³ãã³ã°ã§ç«¶ãã¨ããã¹ã¿ã¤ã«ãªã®ã§ãããåæ§ã®ä»çµã¿ã®ã¿ã§ã¨ã³ã¿ã¼ãã¤ã³ã¡ã³ãã«ãªã£ã¦ããã½ããããããåºæºãã¾ã£ãããããã¾ããã
ãã ããä¾å¤ãããã¾ãããã¤ãã¯å¤ã¨ã®ã¦ã¼ã¶ã¼ã¨ã®ããåããçºçããã½ããã¯å¿ ããã®ä»ã«åé¡ãããã®ã§ããããããã£ãã½ããã¯å¥éæ²è¼ããããã¨ããã£ã¦ç©æ¥µçã«ãã®ä»ãçã£ã¦ããã¨ããç¹æ®ãªãã®ã§ããä¸è¨ã®ããã«ã«ãã´ãªæ²è¼ã®ä¸éæããããã¾ãã®ã§ããã¤ãã¯å ã§ã¤ãªããã¢ããªãããã¤ãã¯ãç¡è¦ããã¢ããªã®ã»ããããããMixiã¢ããªã§éçºããä¸ã§ã¯éè¦ããããã¾ãããMixiã®ããã¥ã¡ã³ãã§ã¯åéã大äºã«ãããããªæ¹åãæã¾ããã¨è¯ãæ¸ããã¦ãã¾ãããç¾ç¶ã§ã¯ã¾ã£ããã®éãªããã§ãã
Mixiã¢ããªã§ã²ã¼ã ãæ¢ãå ´åãã¨ã³ã¿ã¼ãã¤ã³ã¡ã³ãã®ã«ãã´ãªã§æ¢ãã®ã§ã¯ãªãããã®ä»ãå«ãã¦æ¢ãã¨ããã§ãããããã®ä»ã®ã¿ã§æ¤ç´¢ãã§ããªããã¨ãããªããã¤ãã§ãããå°éã«ã
è¤æ°ã®ã¢ããªãæä¾ãã¦ããã¨ããã¯èªåãä½ã£ãä»ã®ã¢ããªã¸ã®ãªã³ã¯ããããã¨ãå¤ãã§ãããMixiã¢ããªã¯ãªãã¨ã¢ããªã®æ¤ç´¢ãã§ããªãã¨ããä»çµã¿ã§ãã®ã§ããããããã®ãç¨æãã¦åãããªãããã«ããã°ã£ã¦ããã®ã ã¨æããã¾ãã
Mixiã¢ããªã§ã¯ã²ã¼ã ãå¤ãã§ãããæ¤ç´¢ãä¸åã§ããªãããã²ã¼ã ã®ç¨®é¡ã®æ¤ç´¢ãã§ããªãï¼ã¨ãããã²ã¼ã ã®æ¤ç´¢ãã®ãã®ãã§ããªãï¼ãã¨ãããããã£ããã¼ã¿ãã¼ã¹ãä½ãã¨æå¤ã¨éè¦ã¯ãã£ããããããããã¾ããã
ã¡ãªã¿ã«
ã¡ãªã¿ã«ãMixiã¢ããªã®éçºè ã¯æ§å¥ãå¹´é½¢ã®å²åçã¦ã¼ã¶ã¼ã®ãã¼ã¿ãè¦ãã¾ãã1æ¥åã ãã§ããããã¡ãããå人ãç¹å®ãããã¼ã¿ã¯ããã¾ããã®ã§å®å¿ãã¦ãã ãããããããèªå·±ç³åå¶ãªã®ã§ããã¯å½ã¦ã«ãªãã¾ããããå¤å°ã®åèã«ã¯ãªãã§ãããã
èªåãå ¬éããç´å¾ã¯èªåãç·æ§ããã¤ãã¯ãã»ã¼ç·æ§ã¨ãããã¨ããã£ã¦ã¦ã¼ã¶ã¼ã®ã»ã¨ãã©ã¯ç·æ§ã§ããããããã©ãã©ã女æ§ã®å²åãå¢ãã¦ä»ã§ã¯å¥³æ§ã®ã»ããå¤ãããã§ãã
女æ§ã®ã»ããããºã«ã²ã¼ã ã¯å¥½ããªå¾åããããããã¾ãããããããªã¹ã¨ãããã«ã§ãã³ã¨ãã·ãã·ãã¨ã好ã女æ§ã¯ããªãå¤ãã§ããã
ã¦ã¼ã¶ã¼ã®è¶£åãææ¡ããä¸ã§èª¿æ´ã§ããã¿ã¤ãã®ã²ã¼ã ã¯å¾¹åºçã«èª¿æ´ãããã§ãªããªã次åä½ã«ã¤ãªããã¨ããã®ã¯ããã§ãããã
ãµã¼ãã¼
[ãã®ã¨ã³ããªè¿½è¨]
VPSãå©ç¨ãã¦ãã¾ããColorBlockã®éç¨ã§ã¯ä»ã®ã¨ããéçãªãã¡ã¤ã«ãApacheã®ã¿ã§ããï¼ãã¤ã¹ã³ã¢ã¯æçµçã«Mixiã®ãµã¼ãã¼ã«ã®ã¿ä¿åããããã«ãã¾ããï¼ãGlassFishãå©ç¨ãã¦ããããã§ãã
GlassFishã¯ä»¥åæ¸ããããã«ãJKã³ãã¯ã¿ãæ¨æºã§æã£ã¦ãã¾ãã®ã§ãä½ãããã«Apache2.2ã¨é£æºãããã¨ãå¯è½ã§ãããã§ãã¯ããã¯ã¹ãå ¥ããã ãã§JKã³ãã¯ã¿ãæå¹ã«ãªãã¾ãã
ãããã®ã¯JavaEEãã«ã®ãããã¡ã¤ã«ã§ã¯ãªããWebãããã¡ã¤ã«ã®ã»ãã§ããWebãããã¡ã¤ã«ã¯warã¢ã¼ã«ã¤ããããããã¤ã§ãã¾ãããããã®å軽ããªã£ã¦ãããTomcatã«ç®¡çãã¼ã«ãã¤ãã¦ããé«ãæ§è½ãæ©è½ãã ããããã«ãªã£ã製åã¨æã£ã¦çµæ§ã§ãã
ã¾ã¨ã
- Javaè¨èªãå¾æãªäººã¯ç¡çã«JavaScriptã使ããGWTã使ããæé©åããã¦ããã
- IE8以ä¸ãæ»æ» ããã¾ã§ã¯ã¯ãã¹ãã©ã¦ã¶ã®ããã«Flashã§ä½æããã¹ãã©ã¤ãã¨ã³ã¸ã³ãä½ããã¨
- ã²ã¼ã ä½æï¼ï¼Webã¢ããªåï¼ï¼Mixiã¢ããªåã¨ããã¹ããããè¸ã
- æ¯æ¥å°ããã¤10åã§ããã®ã§ã³ãã³ãã¨ãå°ãã§ãé²ãã§ããã°ãã¤ãã¯å®æãããæ©ã¿ãæ¢ããã®ãå±éº
- ã«ãã´ãªã¯åºæºãã¾ã£ããä¸éæã§ããããªããåéã®ã¤ãªãããæé¤ãããã®ã®æ¹ãããå ´åã¯å¤ã
Javaã§æ¸ãã¦ãã£ã¦ãã¨ã¯Androidã®ç§»æ¤ã1æ¥ãããã°ããã£ã¨ãããã§ãããããã