奨å±éã®æ¯çµ¦ã«ã¯ãã®ä»ã«ãä¸å®ã®è¦ä»¶ãããã¾ãã®ã§ã詳ããã¯é½éåºç å´åå±åã¯ããã¼ã¯ã¼ã¯ã«ãåãåãããã ããã
奨å±éã®æ¯çµ¦ã«ã¯ãã®ä»ã«ãä¸å®ã®è¦ä»¶ãããã¾ãã®ã§ã詳ããã¯é½éåºç å´åå±åã¯ããã¼ã¯ã¼ã¯ã«ãåãåãããã ããã
åæ¸ã Scalaã¨ããè¨èªããåç¥ã§ããï¼ Javaã¨åããã³ã³ãã¤ã«ãããã¨classãã¡ã¤ã«ã«ãªããå®è¡æã¯JVMä¸ã§åä½ããããªãã¸ã§ã¯ãæåï¼é¢æ°åã®ããã°ã©ãã³ã°è¨èªã§ãã Scalaãéçºããã®ã¯Javaã®genericsã®è¨è¨ãæãããããjavacã®éçºããã¦ããçµæ´ãæã¤Martin Oderskyæ°ã Scalaã¯å¾çºã®è¨èªã¨ãããã¨ããã£ã¦ãJavaãæ¸ãã¦ããæã«æããåé·ãã«å¯¾ããæ§ã ãªè§£ãç¨æããã¦ãã¾ãã æ¬è¨äºã§ã¯ãScalaã¨Javaã®ã³ã¼ããæ¯è¼ããªãããJavaã¦ã¼ã¶ãScalaã«ç§»ã£ãéã«å¾ãããã¡ãªãããæ示ãã¦ããã¾ãã å°ãåºç¤ã®ãµã³ãã«ã³ã¼ãã¯Javaã¦ã¼ã¶ã«ä¼ãããããããã«ãreturnãæè¨ããããã¡ã½ããã¯å¿ ã{ }ã§å²ããªã©ã極åJavaã£ã½ãè¨è¿°ããã¦ãã¾ãã ã ãããJavaã¨åããããªæ¸ãæ¹ãã§ãã¾ã Scalaã¯Javaã®
ãããããã¿ãã¿ãã¦ãéã«ãã£ããããã°æ¾ç½®ãã¦ããã¨ã«æç¶ã¨ãã¤ã¤ãã»ã»ã» Amazon Mechanical Turk 試ãã¦ã¿ã¾ããã ãä½ããã¾ãããã£ã¦æãã§ããï¼ä½ããã¹ã¿ã¼ãããã®ã¯2005å¹´ï¼ãè¡æ¹ä¸æã®äººãæ¢ãããã100ãã«æããã¸ã§ã¯ãã§ä½¿ããããã¨ãä½æ°ã«æ°ã«ãªã£ãã®ã§ã â»Amazon Mechanical Turk ã¯ãä»äºãããããã®äººã«ããªãã¦ãããããã®ãããã°ãã¤ã¯ãã¿ã¹ã¯ã®ãã¼ã±ãããã¬ã¤ã¹ã§ãã ã§ãé常ã«å°é¡ã§ã人ãéãããã¨ãã§ãããããããããã ãã©æ¬å½ãªã®ãï¼ï¼ï¼ãããã¨æããã¡ãã£ã¨è©¦ãã¦ã¿ã¾ããã å 容çã«ã¯ã¡ã¢ã§ãã®ã§ããããªæãã§ä½åã 1. Requester ï¼ä¾é ¼ä¸»ï¼ã¨ãã¦ãä»äº(HITã¨ããã¾ãï¼ãç»é² ããã¨ã§èªããã®è±èªçãtoreadããã¬ãã¥ã¼ãã¦æè¦é æ´ã£ã¦ã ãã¦ã¿ã¾ããã 2. éé¡ã決ãã¦æ¯æã ä¸äºº5ã»ã³ãï¼ã¤
ãã®ããã°ã¯lifehackerãå«ãgawkerã¡ãã£ã¢ç³»ãµã¤ãã®#!URLã¸ã®ç§»è¡ãæ¹å¤ãã¦ããã http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs/ 以ä¸ãisolaniã¨ãã³ã°ã®è¦è§£ããã£ã¡ãæ··ãã«ç´¹ä»ããã lifehackerä»ã®gawkerã¡ãã£ã¢ãµã¤ããæ°æ¥åã«é·æéã«ããã³ã¢ã¯ã»ã¹ä¸è½ã«ãªã£ãã(å³å¯ã«è¨ãã¨ãã¼ã¸å ã®ã³ã³ãã³ãã¢ã¯ã»ã¹ä¸è½ã«ãªã£ã) #!URLãã¼ã¹ã®ãµã¤ãã¯JavaScriptã«ã¨ã©ã¼ãããã¨ã³ã³ãã³ããä¸åãã¼ãããã®ã£ãºãã¼ãç¶æ ã«ãªã£ã¦ãã¾ãããã ã #!ã«ã¤ã㦠ã#!ãã¯ä½ã§å¼ã¶ã®ï¼ shebangã¨ç¶´ãããã Hash=# Bang=!ã®ç¥ çºé³ããã¨ãã·ãã³ãã¨ãã£ãã¨ãããã(ã¡ãªã¿ã«Unixã®#!ã¨ã¯ç¡é¢ä¿) 以ä¸ã#URLãã¯ï¼ ãµã¤ãå ã®ãã±ã¼ã·ã§ã³æ
ã¯ããã« æ¯å¹´ãµã¼ãã¼ãµã¤ãJavaScriptãæµè¡ãã¨è¨ã£ã¦ãã¿ãªããããã«ã¡ã¯ããã¼ã§ãã ã¨ãããã¨ã§ãnode.jsãã¯ããã¦ã¿ã¾ããã Twitter Streaming APIã§åå¾ãããã¼ã¿ã¼ãWebSocket㧠æ¥ç¶ããã¯ã©ã¤ã¢ã³ãã«åºåãããã¢ãä½æããã®ã§ç´¹ä»ãããã¨æãã¾ãã ä»åã®ãã¢ã«ã¤ã㦠ä»åä½æãããã¢ã¯ node.jsã®HttpClinetã§Twtter Streaming APIã§Twtterãããã¼ã¿ãåå¾ãã¦ã node.jsã®WebSocket Serverã§ãã®ãã¼ã¿ãæ¥ç¶ãã¦ããWebSocket対å¿ãã©ã¦ã¶ã«éä¿¡ããã¨ãããã¨ã ãã£ã¦ãã¾ãã Twitter Streaming APIã§åå¾ã§ããããã«ããã åããã®ã«http-basic-authãå¿ è¦ã§ãã npm install http-basic-auth streaming
ãã¦å¤§å¥½ã㪠Amazon Mechanical Turk. æè¦ããããä»åº¦ã¯10ä¸ä»¶ä»¥ä¸ã®ç»åãã£ã«ã¿ãªã³ã°ãä¾é ¼ãã¦ã¿ã¾ãããã®ã§ã¡ã¢ã ã¾ã㯠Requester ã¨ãã¦ãä¾é ¼ç»é¢ãä½æãã¾ãã ç»åãã£ã«ã¿ãªã³ã°ã¯å®çªãªãã§ãããããã³ãã¬ã¼ããç¨æããã¦ããã®ã§ããããé¸æã ãã³ãã¬ã¼ãã®å 容ãé©å½ã«å¤æ´ãã¾ãã ãµã³ãã«ã¯å®çªã®ï¼ï¼ï¼ã¢ãã«ãã³ã³ãã³ãã®ãã£ã«ã¿ãªã³ã°ä¾é ¼ã¨ããå 容ã«ãªã£ã¦ããã®ã§ããã¡ã£ã¨ãããããã®ã«ã ãã¦ãããããã°ãããã¨ãããªãã§ãããå ¥åãã©ã¼ã ã®ãã¶ã¤ã³ãä½æãã¾ãã ãã³ãã¬ã¼ãã®ãã®ãä¿®æ£ãã¦ãã¡ããã¡ããã¡ããã¨ã å¾ã§å¤§éã®ãã¼ã¿ãæµãè¾¼ããããå¤æ°ã使ããããã«ãªã£ã¦ãã¾ããHTMLã®ã½ã¼ã¹ãç·¨éã§ããã®ã§ãããªãèªç±åº¦é«ãã¦ä½¿ããããã ãã³ãã¬ã¼ããã§ããããã¼ã¿ã CSV ãã¡ã¤ã«ã§æµãè¾¼ã¿ã¾ãã ãµã³ãã«ãã¼ã¿ãããã®ã§ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}