2010-01-01ãã1å¹´éã®è¨äºä¸è¦§
æ®å¿µãªãã åå ã¯ã§ãã¾ããã§ããã... 12/20 ã® JavaFX & GlassFish åååå¼·ä¼ ã§ id:nobeans ããã FxBuilder ã使ã£ã¦ Groovy ãã JavaFX ãå©ç¨ããæ¹æ³ãçºè¡¨ããã¦ããã®ãåãã¦ãJava Web Start ç Groovy Console ã§ã FxBuilder ãå©ç¨ã§ããâ¦
åå Amazon EC2 Micro Instance ä¸ã« Tomcat6 ãç«ã¡ä¸ãã¦ã¿ãã èªåã®ç«¯æ«ã® WEBãã©ã¦ã¶ãã EC2 ä¸ã® Tomcat ã«ã¢ã¯ã»ã¹ããçºã«ã¯ Security Group ã®è¨å®ãå¤æ´ã㦠8080 ã¸ã®ã¢ã¯ã»ã¹ã許å¯ããªãã¦ã¯ãªããªãã®ã ã... ã¾ã Tomcat ã®è¨å®ãã¡ããâ¦
ç¡è¶ãæ¿ç¥ã§ ã¡ã¢ãªé (613 MB) ã®å°ãªã EC2 Micro Instance ä¸ã« Tomcat6 ãç«ã¡ä¸ãã¦ã¿ãã ãã¡ãããWeb ãµã¼ã㯠Tomcat ã® HTTP ã³ãã¯ã¿ãå©ç¨ã æ¬å½ã¯ Apache2 ã使ãããã£ããã©... ã¾ã㯠Java ãã¤ã³ã¹ãã¼ã«ããã¦ãããã©ãã確èªã $ javâ¦
EC2 Micro Instance ãèµ·åãã¦ã¿ã¦ ã¾ãæåã«ãããã¨ã ã¨ããããã¡ã¢... Security Group ã®è¨å® SSH ã®è¨å® Locale ã®å¤æ´ ç°å¢å¤æ° LANG ã®å¤æ´ ã¹ã¯ãããã¡ã¤ã« ã®ä½æ Security Group ã®è¨å® default ã® Security Group 㯠å¤é¨ããã®ã¢ã¯ã»ã¹ãä¸â¦
ãããã AWS Free Usage Tier 㧠EC2 Micro ã¤ã³ã¹ã¿ã³ã¹ ãç¡æã§æä¾ããã 2010å¹´11æ1æ¥ ã«ãªã£ãã®ã§... æ©é EC2 Micro ã¤ã³ã¹ã¿ã³ã¹ãç«ã¡ä¸ãã¦ã¿ãã AWS Management Console ã§å ¨ã¦è¨å®ã§ãã¦ãã¾ãã®ã§ ã¨ã£ã¦ãç°¡å... 3åãããã°ãµã¼ããç«ã¡â¦
ååã® ãJava Web Start 㧠Groovy ã¢ããªãå ¬éãã¦ã¿ã ãã®ï¼ã ããéãéãã¦ãã¾ã£ãã®ã§å°ãããããã åå㯠Java ã§å®è£ ããã¢ããªã¯ ç½²åããªãã¦ããµã³ãããã¯ã¹å ã§å®è¡ã§ããã®ã«... åãã¢ããªã Groovy ã§å®è£ ãã㨠署åããªãã¨ãµã³ããâ¦
ãªã㨠Amazon EC2 Linux Micro Instance ã 2010å¹´11æ1æ¥ãã ä¸å¹´é ç¡æã§å©ç¨ã§ããããã«ãªããããã http://aws.amazon.com/free/ æ¯æã®å©ç¨éã®ä¸éã¯ä»¥ä¸ã®ãããªæã... ãããè¶ããã å½ç¶ ãã®åã®å©ç¨æã¯è«æ±ãããã ãããªãµã¼ãã¹ä½ããâ¦
id:fumokmm ãããæ¸ããã¦ãã groovyshã§ã¯defã¯ä½¿ããªãã»ããããï¼ãã¶ãï¼ ãæ°ã«ãªã£ãã®ã§ãããã ããã¶ãã ã§ã¯ãªã ãçå®ã ã§ãããã¨ãæ¸ãã¦ã¿ãã æ¤è¨¼ç°å¢ã¯ Groovy 1.7.5, JVM: 1.6.0_20 çå® ãã® 1... groovysh ã¯å®è¡åä½ã§ ã¤ã³ã¹ã¿â¦
æè¿ããã㨠Java Web Start çã® Groovy Console ã使ããã¨ãå¤ããªã£ã¦ããã®ã§ ããã¡ãã£ã¨ã ãå¤æ´ãã¦ã¿ããä»åã®å¤æ´ç¹ã¯ä»¥ä¸â¦ Grape ã使ããªãã£ãã®ã§ ivy-2.2.0-rc1.jar ãèªã¿è¾¼ãããã«ãã¦ã¿ãã ã³ã³ã½ã¼ã«èµ·åæã«ååçµäºããæã®ã³ã³ã½â¦
ååã® ãJava Web Start ç Groovy ã¢ããªã®ã³ã¼ãç½²åã¯å¿ é ã§ã¯ãªãã£ã...ã ãæ½è±¡çã§ã¡ãã¨ã¤ã¡ã¼ã¸ããã«ããã£ãã®ã§ å ·ä½çã«ã¾ã¨ãã¦ã¿ããã¨ã«ããã ãã®ãã¼ãã§ã¯ 次ã®ãããªå ¨ãæå³ã®ãªãã¢ããªã±ã¼ã·ã§ã³ã Java Web Start ã§å ¬éãããã¨â¦
åã å ãJava Web Start ç Groovy ã¢ããªã¯ã³ã¼ãç½²åãå¿ é ããããã¨æ¸ããã å®ã¯ ããã¯ããæå³ ééã£ã¦ã¯ããªããæ£ããããªãã£ãã ã¨è¨ãã®ã... ç½²åãå¿ è¦ãªã®ã¯ ã¢ããªã§ã¯ãªã Groovy èªä½ (groovy-all-x.x.x.jar) ã ããã ã åã åãæ¸ãâ¦
ãWake on LAN ãã¦ã¿ããã®ãã¸ãã¯ãã±ããã Groovy åãã¦ã¿ãã JavaFX Script ã 㨠ãããªæãã ã£ãã®ã... def macAddress = "AA:BB:CC:DD:EE:FF"; [ for (i in [1..6]) { 0xff }, for (i in [1..16], b in macAddress.split(":")) { Integer.parseIâ¦
æ«ãä¸æãã¦ãã Wake on LAN ã JavaFX 1.3 + Groovy 1.7.5 ã§ä½æãå§ããã®ã ãããããªãå£ã«ããããã£ã¦æ³£ãããã«ãªã£ã... ãªãã¨ï¼ï¼ Groovy ã¯ãµã³ãããã¯ã¹ã®å¶éã¨ã¯é¢ä¿ãªã ã³ã¼ãç½²åããªã㨠Java Web Start ã§å®è¡ã§ããªãããã... é常â¦
Java Web Start çã® Groovy Console ã¯ã¨ã£ã¦ã便å©ã ãã©ãã¹ã¿ã³ãã¢ãã¼ã³çã§ã§ãããã¨ã ã§ããªãã£ãã®ã§ã¡ãã£ã¨ã ãå¤æ´ãã¦ã¿ããå¤æ´ç¹ã¯ä»¥ä¸â¦ AntBuilder ã使ããããã« ant-1.8.1.jar, ant-launcher-1.8.1.jar ãèªã¿è¾¼ãããã«ãã¦ã¿ãã toâ¦
Groovy Console ãã¨ã£ã¦ã便å©ã ã£ãã®ã§ãã©ã®ç«¯æ«ããã§ãå©ç¨ã§ããããã« Java Web Start ã«ã㦠ãã®ããã°ã®ã¡ãã¥ã¼ã«è²¼ã£ã¤ãã¦ã¿ãã ãã¡ãã ãªã¬ãªã¬è¨¼ææ¸ã§ groovy-all-1.7.5.jar ãã³ã¼ãç½²åãã¦ããã®ã§ å®è¡æã«ã»ãã¥ãªãã£ã®è¦åãã§ã¾â¦
JavaFX 2.0 ãã åãªã Java ã©ã¤ãã©ãª ã«ãªã JavaFX Script ããµãã¼ããããªããªãã¨ãããã¨ã§ã Groovy 㧠JavaFX ãããã¨èãã¦ããã®ãæã®é... ãªãã§ã JavaFX Script ã ãªã¼ãã³ã½ã¼ã¹ ã¨ãªã£ã¦å¸°ã£ã¦ããããã... ãããååãå¤ãã¦ï¼ï¼ â¦
å æéå¬ããã JavaOne 2010 㧠次æãªãªã¼ã¹ JavaFX 2.0 ã«ã¤ãã¦ã®çºè¡¨ãããã¾ããã JavaFX 2.0 ã®ãã¼ããããã«ã¤ãã¦ã¯ http://javafx.com/roadmap/ ã§å ¬éããã¦ãã¾ãã å ¨ä½çã«ã¯æ©è½æ¡å¼µãããããã§ããã®ã§ãã... ãªã㨠次æ JavaFX 2.0 ãâ¦
ãWake on LAN ããã¦ã¿ã Part 2ã 㧠Wake on LAN ã JavaFX ã§å®è£ ããæ¹æ³ã«ã¤ãã¦æ¸ããã æªã å®æã«ã¯ ããããªãã®ãã®ã®ãã¨ãããããå± éã«ããªããã«ã㦠å¥ã®é¨å±ã«ãã Linux ãµã¼ãã®é»æºã® ON/OFF ãè¡ãããããã«ã¯ãªã£ãã ã¨ãããããâ¦
ä»å㯠SSH çµç±ã§ ãªã¢ã¼ããµã¼ãä¸ã®ã³ãã³ããå®è¡ããæ¹æ³ã§ãã SSH ãã¦ã¿ã Part2 ã§ã æ¸ãã¦ããéã æçµçãªç®æ¨ã¯ãµã¼ãã®ã¢ãã¿ãªã³ã°ãã¼ã«ãä½ããã¨ã§ããã ã¾ã㯠vmstat ãå®è¡ã㦠ãã®çµæããã®ã¾ã¾ç»é¢ã«è¡¨ç¤ºãããã¨ããã¯ããã¦ã¿â¦
ãWake on LAN ãã¦ã¿ã Part 3 (shutdown)ã 㧠Linux ãµã¼ããåæ¢ããéã® sudo ã®ä½¿ãæ¹ã«åé¡ããã£ãã®ã§ ã¾ã¨ãã¦ãããã¨ã«... åé¡ï¼ sudo ã®ãã¼ã¸ã§ã³ã«ãã£ã¦æ¨æºå ¥åãããã¹ã¯ã¼ãã渡ãæ¹æ³ãç°ãªããããã Ubuntu 8.04 LTS ã® sudo (1.6.9pâ¦
åå㯠SSH 㧠ãµã¼ãã«æ¥ç¶ãã¦èªè¨¼ãè¡ãã¨ããã¾ã§å®è£ ãã¾ããã ä»åã¯ãã®ç¶ã... ä»åå©ç¨ãã¦ãã SSH ç¨ã©ã¤ãã©ãªã® JSch 㯠çµæ§ å¤æ©è½ã§ sshdãµã¼ãã¼ã¸ã®æ¥ç¶ ãã¼ããã©ã¯ã¼ãã£ã³ã° X11ãã©ã¯ã¼ãã£ã³ã° ãã¡ã¤ã«è»¢é ã¨ãã£ããããªãã¨ãâ¦
åå ãµã¼ããåæ¢ããéã«å©ç¨ãã SSH ãã¨ã£ã¦ãé¢ç½ããã ã£ãã®ã§ Wake on LAN 㯠ã¡ãã£ã¨ç½®ãã¦ãã㦠JavaFX 㧠SSH ãã¦ã¿ããã¨ã«... ã¨ãããããä»å㯠SSH ã使ãä¸ã§çµ¶å¯¾ã«å¿ è¦ã«ãªã èªè¨¼é¨åã®å®è£ ãã... èªè¨¼æ¹å¼ã¯ åååæ§ ä¸çªæã£åãâ¦
ååã¾ã§ã§ãã¨ãããã ãªã¢ã¼ã㧠PC ãèµ·åã§ããããã«ã¯ãªã£ãã®ã ã... ä»æ´ãªããæ°ã¥ãããªã¢ã¼ãã§èµ·åã§ããã®ã« ãªã¢ã¼ãã§ã¯åæ¢ã§ããªããã¨ã«... ããã§ã¯ å¿ è¦ãªæã ããµã¼ããèµ·åãã¦ããã¨ããå½åã®ç®çãéæã§ããªãã ãã¡ããããªã¢â¦
ä»åãååã«å¼ãç¶ã Wake on LAN ã«ã¤ãã¦... åå㯠Wake on LAN ã§éä¿¡ãããã¸ãã¯ãã±ããã JavaFX ã§è¡¨ç¾ãã¦ã¿ã¾ããã... ä»å㯠å®éã« Wake on LAN 対å¿ã® PC ãèµ·åããããã®å¦çã JavaFX ã§å®è£ ãã¦ã¿ã¾ããã Wake on LAN 対å¿ã® PC ãèµ·åâ¦
MacBook Pro ãæ°èª¿ãããã¨ãæ©ã« å¤ã ãã¼ã PC ã« Linux ãå ¥ã㦠Time Machine ç¨ãµã¼ãã¨ãã¦ä½¿ç¨ãããã¨ã«ããã®ã§ãã... ä¸æ¥ã®ã»ã¨ãã©ãä¼ç¤¾ã§éããã¦ããã«ãé¢ããã 常æ èªå® 㧠PC ãç«ã¡ä¸ãã¦ããã®ã ä½ãªã®ã§ WOL (Wake on LAN) ã使ã£â¦
ä»åã ã¾ã ã¾ã å¼ãç¶ã XML-RPC ã«ã¤ãã¦ã åå NetBeans 6.9 ã使ã£ã¦ ç°¡åãªã¢ããªã±ã¼ã·ã§ã³ãä½æãã¦ã¿ããã®ã®... å®ã¯ ãã®ã¢ããªã±ã¼ã·ã§ã³ã«ã¯ XML-RPC ã®å®è¡ãçµäºããã¾ã§ ä½ãæä½ã§ããªããªã ã¨ãã誰ã«ãè¨ããªãåé¡ããã£ãã®ã§ãã ãâ¦
ä»åã ååã«å¼ãç¶ã XML-RPC ã«ã¤ãã¦ã åå㯠åºæ¬çãªä½¿ãæ¹ã¨ã㦠WEB ãµã¼ãã¹ãå®è¡ãã¦æ¨æºåºåãã¦ã¿ãã... JavaFX ã§æ¨æºåºåãã¦ã©ãããã®!! ã¨è¨ããã¨ã§ ä»å㯠WEB ãµã¼ãã¹ãå®è¡ã㦠Window ä¸ã«çµæã 表示ãã¦ã¿ããã¨ã«... ä»åä½æâ¦
XML-RPC ã¯ç°¡åã«è¨ã£ã¦ãã¾ãã°... ã¤ã³ã¿ã¼ãããä¸ã®ãµã¼ãã¹ãç°¡åã«å®è¡ããããã®ä»çµã¿ã ãã¡ãã ãµã¼ãã¨ã®ããåãã«ã¯ XML ã使ãã å½ç¶ããµã¼ãã¹ãæä¾ããå´ã XML-RPC ã«å¯¾å¿ãã¦ããªãã¨ãã¡ã XML-RPC ã®è¯ãã¨ããã¯ã REST ã¨éã ã¡ãâ¦
æçµæ´æ°ããæ©ããã®ã§ï¼ã¶æãçµã£ã¦ãã¾ã£ãã æ¢ã« JavaFX ã 1.3.1 ã«... ãããã JavaFX ãåéãã¦ã¿ããã¨ã«ã ä»äºãå¿ãããã¨ãè¨ã訳㫠ããæ«ãè¦ã¦è¦ã¬ããªããã¦ãããã ä¹ ãã¶ãã«è§¦ã£ã¦ã¿ãã¨ããã£ã±ãé¢ç½ãããJavaFX... ãªãã§ãããâ¦