Node.js
èªä½ã©ã¤ãã©ãªã使ã£ãBlueskyã¯ã©ã¤ã¢ã³ããå®è£ ãã¦ãã¦ééãããã°ã ATriumããã®feed.getPostsã§urisã21åã¾ã§ãªã大ä¸å¤«ã ã22å以ä¸ã ã¨ã¨ã©ã¼ã«ãªããã¨ãçºè¦ãããåé¡åãåãä¸â¦ ããã¾ã§èªä½ã¯ã©ã¤ã¢ã³ãå®è£ ãã¦ããããæ°ä»ãåé¡ããããâ¦
ISUCON11 äºé¸ãã¤ãããã¾ã§ããã ããæ°å¹´ã¯åå è ã¨ãã¦äºé¸æéãç¹°ãè¿ãã¦ããã®ã ãã©ãä»å¹´ã¯ã¡ãã£ã¨éãé¢ããæ¹ããã¦ã¿ãããã¨æã ãåèå®è£ ã®ç§»æ¤ãã«ç«åè£ãã¦ã¿ã¾ããã isucon.net Node.jsæ å½ã¨ãã¦æ¡ç¨ãã¦ããã ããã¡ãã£ã¨ä¸å®ãâ¦
å°æ£é§ç»ååé¡ã®è©±ã®ç¶ãã®ãããªãããã¾ãé¢ä¿ããªããããªã memo.sugyan.com memo.sugyan.com çµå±ãç´ æãçµã¿åããã¦èªåã§çæããã ãã®é§ç»åã§ã¯ãã¯ããã¼ã¿ã足ãã¦ããªãããã§ãããã¯ããã£ã¨æ§ã ãªç»åãã人åã§ã©ãã«ä»ããã¦ãã¼ã¿ã»ãâ¦
ã¨ãããã®ãä½ã£ãããããªæãã®ã Repository : https://github.com/sugyan/spot-price-watcher èæ¯ TensorFlowã使ã£ãDeep Learningã§ã¢ã¤ãã«ã®é¡èå¥ãªããããã£ã¨ãã£ã¦ãããã©ããã£ã±ãCPUãã·ã³ã ãã§ãã£ã¦ããã®ã¯å³ãããªãã¨æãã ãã£ã±â¦
æ¨å¹´ã¯åå è ã¨ãã¦åºå ´ãã¦æ¥½ãã¾ãã¦ããã ãããISUCONã #isucon ã§åªåãããã¼ã ã®ã¡ã³ãã¼ã¨ãã¦åå ãã¦ã - ãããã¼ãã¡ã¢ ä»å¹´ã¯å¥ãããéå¬å´ã®ä¼ç¤¾ã«è»¢è·ããã¨ãããã¨ã§ãåå è ã¨ãã¦ã§ã¯ãªãéå¶å´ã¨ãã¦ãé¡ä½ããªã©è£å´ã«é¢ãã£ã¦ã®åå â¦
Perlã ã¨ã use Data::Dumper; my @hoge = ("fuga") x 5; print Dumper \@hoge; __END__ $VAR1 = [ 'fuga', 'fuga', 'fuga', 'fuga', 'fuga' ]; ã¿ãããªæãã§xæ¼ç®åã使ã£ã¦ä»»æã®åæ°ã®å¯ãªé åãç°¡åã«ä½ããã¨ãã§ããã®ã ãã©ãJavaScriptã§ã¯ã©ããâ¦
çµè« å ã«æ¸ãã¨ãããã«çããããã node.js - How to output pretty html in Express? - Stack Overflow åé¡ ç¾æç¹ã§ã®ææ°[email protected][email protected]ã§jadeãã¬ã³ããªã³ã°ããã¨ãæ¹è¡ãã¤ã³ãã³ããããã«HTMLãåãåºãããã $ express hoge creâ¦
ãªãã¦ãã£ãâ¦CPANã¢ã¸ã¥ã¼ã«ãnode.jsã§åããã¦ãã¾ãã©ã¤ãã©ãªãnode-perlã - tokuhirom's blog GitHub - tokuhirom/node-perl: Node perl wrapper ã¨ãããããã¢ã¸ã¥ã¼ã«ãåºã¦ããã®ã§ãnpmã§ã³ã¬ãã¤ã³ã¹ãã¼ã«ãã¾ãã ãPerl使ãã ããPlack/PSGIâ¦
Twitteræ¤ç´¢ããããã¯ãé¢é£ã®Tweetããã©è¦ãã - ãããã¼ãã¡ã¢ã§ä½ã£ãã¢ããªããHerokuã«ç§»æ¤ãã¦ã¿ãã http://momoclo-stream.herokuapp.com/ https://github.com/sugyan/momoclo-stream (source code) æè§ãªã®ã§we love herokuã«ãç»é²ed. http://â¦
Expressã§ãã³ãã¬ã¼ãããããã¸ã§ã¯ããä½ãã¨ãç¾å¨ã®ææ°ç2.5.4ã§ã¯ . âââ app.js âââ package.json âââ public â âââ images â âââ javascripts â âââ stylesheets â âââ style.css âââ routes â âââ index.js âââ views âââ index.jade âââ layout.jaâ¦
JavaScript Advent Calendar 2011 (Node.js/WebSocketsã³ã¼ã¹) : ATNDã®25æ¥ç®ã§ããã¡ãªã¼ã¯ãªã¹ãã¹ï¼ï¼ â¦ã¨ãããã¨ã§npm xmasã§ãã npm ã¯Node.jsã®v0.6.3ãããããæ¨æºæ·»ä»ããã¦ã¾ãããå¤ãã®ãµãã³ãã³ããç¨æããã¦ãã¦ãnpm helpã§ä¸è¦§ãããã¨â¦
ç¥ããªãã£ãã®ã§ã¡ã¢ã https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length $ node > (function () {}) [Function] > (function () {}).length 0 > (function (a) {}).length 1 > (function (a, b) {}).length 2ãããâ¦
æ±äº¬Nodeå¦å 3æéç® : ATND ãDOMAINS & ISOLATESã @koichikãã 2011/07 - ã³ã¢ãã¼ã å ¥ããã¦ã¾ã å®å®çã®æ´å²ãä»å¾ã®äºå® v0.8 2012/01 ãªãªã¼ã¹äºå® V8ã®ãªãªã¼ã¹ãµã¤ã¯ã«ã«åããã¦é »ç¹ãªãªãªã¼ã¹ãç®æã æ°æ©è½ã®ç®çãDomain, Isolates ç¾å¨çµ¶â¦
mochaã使ã£ã¦ã¿ããã¨æã£ã¦ã describe('Array', function(){ describe('#indexOf()', function(){ it('should return -1 when the value is not present', function(){ [1,2,3].indexOf(5).should.equal(-1); [1,2,3].indexOf(0).should.equal(-1); }) })â¦
æ±äº¬Nodeå¦åç¥2011ã§åºã¦ãããã®ã触ã£ã¦ã¿ãããã¨ãããã¨ã§ã node-canvasã使ã£ãã¢ããªãNode Ninjaã«ãããã¤ãã¦ã¿ãã http://favicon.node-ninja.com/ ã½ã¼ã¹ã³ã¼ãã¯Githubã§å ¬éãã¦ãã¾ãã https://github.com/sugyan/node-favicon tableè¦ç´ â¦
Node.js æ¥æ¬ã¦ã¼ã¶ã°ã«ã¼ãã«ãããNode.js, Socket.IOä½è ãæå¾ ãã¦ã®å¤§ã¤ãã³ãã æ±äº¬Nodeå¦åç¥2011 ä¸å¿ã¹ã¿ããã¨ãã¦é¢ãã£ã¦å½æ¥ã®èªå°ä¿ã¨ãã¦å°ããæä¼ãããã¦ããã ãã¾ããã ãã以å¤ã®æéã¯æ®éã«å¾ãã®æ¹ã§çããã®ã¹ãã¼ããè´ããã¦ãâ¦
node.js ã®ãã¹ãã£ã³ã°ãµã¼ãã¹ã¾ã¨ã - èªåã®æåæ§ãããã§æ¢ã«ã¾ã¨ãããã¦ããããã©ãèªåã使ã£ã¦ã¿ãå¹¾ã¤ãã®ãã®ãã¾ã¨ãã¦ã¿ãã Joyent no.de https://no.de/ WebSocketã¯ä½¿ããã¯ããªã®ã ãã©ããã¾Socket.IOã¢ããªãæå ã®Macã§è©¦ãã¦ã¿ã¦ããâ¦
Ustreamã¢ã¼ã«ã¤ãåæãã¥ã¼ã¢ ãã®å¾2 - ãããã¼ãã¡ã¢ã®ç¶ãã å°éã«ã¡ããã¡ããã¨æ¹é ãç¶ãã¦ããã http://momoclo.no.de/ player ä»ã¾ã§ã¯JavaScriptããajaxã§åçä¸åç»ã®æ å ±ãåã£ã¦ãã¦ExternalInterfaceã¤ãã£ã¦Flashã«ãã¼ã¿ã渡ãã¦åæãâ¦
node-jslintã§flymake - ãããã¼ãã¡ã¢ ã§è¨å®ãããnode-jslintã«ããflymakeã使ã£ã¦ããã®ã ãã©ã var util = require('util'); ã¨ãã«å¯¾ãã¦è¦åãåºãã¦ãã¦ã¡ãã£ã¨ã¤ã©ã£ã¨ãããã©ããnode-jslintã§ä½¿ããã¦ããjslintãã¡ãã£ã¨å¤ããããã"utilâ¦
Nodeã®ãã¹ãæ¸ãã®ã«nodeunitãã¡ãã£ã¨ä½¿ã£ã¦ã¿ãã®ã ãã©ãTAPåºåã§ããªãã¦proveã§ãã¹ãå®è¡ã§ããªãã ãã©nodeunitã®ä»çµã¿çã«ã¯reporterã¨ãããªãã·ã§ã³ãæå®ãã¦åºåå½¢å¼ãå¤ãããã¨ãã§ããããã«ãªã£ã¦ããã®ã§ãTAPåºåããreporterãããâ¦
ã¯ããã¦ã®npm publishã Perlã§Test::TCPãæç¨ãã¦ããã®ã§ãããNode.jsã§ãããããã®æ¬²ããã¨æã£ã¦ãã¦æ¢ãã¦ã¿ããã©ããããããã®ãè¦å½ãããªãã£ãã®ã§ä½ã£ã¦ã¿ã¾ããã https://github.com/sugyan/node-test-tcp ããµã¼ãã®ã¤ã³ã¹ã¿ã³ã¹ã¨ã¯ã©ã¤â¦
ããããä½ã£ã¦ã¿ãç·´ç¿ã¨ãã¦ã http://realtime-counter.herokuapp.com/ https://github.com/sugyan/node-realtime-counter <script type="text/javascript" src="http://realtime-counter.herokuapp.com/counter.js"></script> <script type="text/javascript"> new RealtimeCounter('4e78b7cb3bab067f7e6a1514').onIncrement(function â¦
ä½ã¨ãªãHerokuãããã¡ãã£ã¨è§¦ã£ã¦ã¿ããã¨æã£ã¦ãã§ãã£ã¨èª¿ã¹ã¦ã㦠Getting Started on Heroku with Node.js | Heroku Dev Center ãèªãã§ããããPostgresã使ãå ´åã¨Redisã使ãå ´åã®ããæ¹ãæ¸ãã¦ãã£ãã®ã§Redisãå°ã使ã£ã¦ã¿ãã ã©ãããHeâ¦
Node.js Knockoutã«åå ãã - ãããã¼ãã¡ã¢ ã®ã¨ãã«ä½ã£ã http://sugyan.no.de/ ã®ã½ã¼ã¹ã³ã¼ããå ¬éããã®å¿ãã¦ãã®ã§ãä»ãããªããGithubã«ä¸ãã¾ããã https://github.com/sugyan/SlideReplay configã®å¤ãã¡ããã¨è¨å®ããã°æ®éã«åãâ¦ã¯ãâ¦ã
npmã£ã¦æå¤ã¨é«æ©è½ã§ãè²ããªãã¨(ãããªã®ã¨ã)ãåºæ¥ãã ã§ãæè¿ç¥ã£ãã®ãnpm configã https://github.com/isaacs/npm/blob/master/doc/config.md ã¡ããã¨ããã¥ã¡ã³ãè¦ããã¨ãªãã£ãããç¥ããªãã£ããã©ãããã§è«¸ã ã®è¨å®å¤ãä¿åãã¦ããããâ¦
node.js+Socket.IOã§ãªã¢ã«ã¿ã¤ã ã¢ããªã±ã¼ã·ã§ã³ãä½ããããã ãã©ãWebSocket使ãã«ãã¦ãXHR-Polling使ãã«ãã¦ããµã¼ãçµç±ãã¦éä¿¡ãã¦ããã°å½ç¶ã¿ã¤ã ã©ã°ã¯ããããã§ãããã£ã¦ã©ããããé 延ãããã®ãªãã ããï¼ ã¨æã£ã¦ããããªãµã¼ãã§è©¦ãâ¦
8/27, 28ã¨ãNode.js Knockoutã«ãã£ã¬ã³ã¸ãã¦ãã¾ããã Node.js Knockoutã¨ã¯ Node.jsã使ã£ã¦ã48æéã®ãã¡ã«ä½ãä½ããã¨ããã³ã³ãã¹ãã Node.js Knockout | Nov 7-8th UTC, 2015 åå è ã«ã¯Githubã®ãã©ã¤ãã¼ãã¬ãã¸ããªããããã¤ããå ã®ã¯ã©ã¦â¦
è²ã ã¨ç¸ãããã¾ãã¦ããWEB+DB PRESS vol.64ãã«ã¦ã"JavaScriptæåç·"ã¨ããç¹éã®1ç« ã¨ãã¦Node.jsã®å ¥éè¨äºã7ãã¼ã¸ã»ã©æ¸ããã¦ããã ãã¾ãããã¾ã Node.jsã触ã£ããã¨ããªãã触ãå§ããã°ãããã¨ãã£ãæ¹ã ããã®å Node.jsã使ãå§ããéã®ã¨â¦
ã¨ããã®ãä½ã£ã¦ã¿ããStream APIã¯æ¥æ¬èªãã¼ã¯ã¼ãã«å¼±ãã®ã§å®æçã«æ¤ç´¢APIãå©ãã¦ã¿ãæ¹åã§ã GitHub - sugyan/momoclo-stream: #momoclo Twitter Search ã¨ããããdotcloudããã§åããã¦ã¿ã¦ã¾ãã http://fe3d7b5d.dotcloud.com/
nginxãæãã§socket.ioã®xhr-pollingãåããã«ã¯ - ãããã¼ãã¡ã¢ ã§èª¿ã¹ãéããç¾å¨ nginx+socket.io 0.7ç³»ã®http-pollingãç¹ãããªãããã«ãªã£ã¦ãã¦ãDotCloudãã¾ãã«ããããç°å¢ãªã®ã§ã試ãã¦ã¿ãã ã¡ãªã¿ã«å¾ããç¥ã£ãã®ã ãã©ããã®ãããâ¦