横æµFã»ããªãã¹ã¦ã¼ã¹åæ6人ã«ããæ°ããªææ¦ãROOTS.ããæ°æ代ã«é©å¿ããã¢ã¹ãªã¼ãã«å¿ è¦ãªç´ 質ã¨ã¯ã
横æµFã»ããªãã¹ã¦ã¼ã¹åæ6人ã«ããæ°ããªææ¦ãROOTS.ããæ°æ代ã«é©å¿ããã¢ã¹ãªã¼ãã«å¿ è¦ãªç´ 質ã¨ã¯ã
å æ¥ãGitHubã®éçºããããã°ã©ãã³ã°ã¨ãã£ã¿Atomã話é¡ã«ãªãã¾ããããããã¯node-webkitã使ã£ã¦ä½ãããWebã¢ããªã±ã¼ã·ã§ã³ãã©ããã³ã°ããã½ããã¦ã§ã¢ã«ãªãã¾ãããã¯Chromiumãã«ã¹ã¿ã ã§ã©ããã³ã°ããã½ããã¦ã§ã¢ã«ãªãã¾ããWebãã¼ã¹ã§ãããã¾ã§ã¡ããã¨ããé度ã§åãã¨ãããã¨ã«é©ããããã¨ã¨ãã«ãç¾å®çã«ãªã£ããã¨ã§æ¥½ãã¿ã«ãªã£ã¦ãã¾ããã åãããã«Webãã¼ã¹ã®æè¡ã使ã£ã¦ã¢ããªã±ã¼ã·ã§ã³ãä½ã£ã¦ã¿ããæã«ä½¿ããã®ãnode-webkitã§ããããã«ãã®node-webkitã§Mac OSXã¢ããªãéçºãã¦ã¿ããã¨æã£ãæ¹ã«ãå§ããªã®ãNuwk!ã§ããnode-webkitã使ã£ãã¢ããªã±ã¼ã·ã§ã³ãã«ãã¼ã§ãã Nuwk!ã®ä½¿ãæ¹ å®è¡é度ã¯ç³ãåããã¾ãããUIã¯ããããããã¬ã¼ã ã¯ã¼ã¯ãæ¢ãã¦ããã°è¯ãã§ãããããã¤ãã£ãã¢ããªã¯Webã¢ããªã±ã¼
æè¿ä½ãã¨è©±é¡ã® Node.js ã使ã£ã¦ã¿ããã¨ã«ããã ã¤ã³ã¹ãã¼ã«èªä½ã¯å ¬å¼ã® Wiki ãè¦ãã°ãããªã«é£ãããªãããã¤ãã® configure, make, make install ããã ãã ã ã§ã Node.js ã¯ã¾ã ã¾ã éçºä¸ã®ããã¸ã§ã¯ãã§ãä»ã§ãããããæ´æ°ããã¦ããããã«æ°ãããã¼ã¸ã§ã³ãåºã¦ãããã ãã©ããã®ãã³ã«ã½ã¼ã¹ããã¤ã³ã¹ãã¼ã«ãç´ãã®ãããã ããã¡ãã£ã¨åã®ãã¼ã¸ã§ã³ã«æ»ããããªããã¨ããããããããªãã ãããªããã§ãæè¿ã® Node.js 㯠nvm ã¨ãããã¼ã«ã使ãã®ãæµè¡ã¿ããã ãããã¤ã使ãã¨è¤æ°ãã¼ã¸ã§ã³ã®ã¤ã³ã¹ãã¼ã«ãåãæ¿ããåºæ¥ããããªã£ã¦ä¾¿å©ã Mac ã§ã Linux(Ubuntu) ã§ã使ãããã ãã©ãå¾®å¦ã«ããã£ãã¨ãããã£ãã®ã§æé ãæ¸ãã¦ããã 2012/03/21è¿½è¨ npm ã§ã®ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ãè¨å®ã«ã¤ãã¦
1 pixelï½ãµã¤ãã¼ã¨ã¼ã¸ã§ã³ãå ¬å¼ã¯ãªã¨ã¤ã¿ã¼ãºããã° ãµã¤ãã¼ã¨ã¼ã¸ã§ã³ãã®ã¯ãªã¨ã¤ã¿ã¼ã®åãçµã¿ãç´¹ä»ãããªãã£ã·ã£ã«ããã°ã§ããææ°æè¡ã¸ã®ææ¦ããµã¼ãã¹èªçã®è£è©±ãåå¼·ä¼ãã¤ãã³ãã®ã¬ãã¼ããªã©CAã¯ãªã¨ã¤ã¿ã¼ã®æ å ±ãæºè¼ã§ãã ããã«ã¡ã¯ãAmebaäºæ¥æ¬é¨ã®ææ¬ã¨ç³ãã¾ãã æ¥åã§ã¯ã天ä¸çµ±ä¸ã¯ããã¯ã«ãã¨ãããã¼ã ã§ããã³ãã¨ã³ãã®ãã£ããããããã¦ãã¾ãã ä»åã¯ããnode-webkitãã¨ããä¸é¢¨å¤ãã£ãã¢ããªã±ã¼ã·ã§ã³ãç´¹ä»ããã¦ããã ãã¾ãã ç§éã¯æ®æ®µãgruntã¨ãã£ãnode.js製ã®ãã¼ã«ã使ã£ã¦JavaScriptã®çµåãå§ç¸®ãç»åã®æ¸è²ã¨ãã£ãå¦çãèªååãã¦ãã¾ãããnode-webkitã¯ãããnodeã®ã¢ã¸ã¥ã¼ã«ã使ã£ã¦GUIã¢ããªã±ã¼ã·ã§ã³ãä½ãããã¼ã«ã§ããnodeã®è³ç£ããã®ã¾ã¾å©ç¨ã§ããã®ã§ãç§ã®ãããªãã£ããããã«ã¯å¬ããã§ããã
æè¿ node-webkit ã®è¨äºãããã¤ãç®ã«ããã®ã§è©¦ãã¦ã¿ã¾ããã GitHub https://github.com/rogerwang/node-webkit node-webkit ã¨ã¯ PC ã® GUI ã¢ããªãå®è£ ãã Chronium ãã¼ã¹ã®ã©ã³ã¿ã¤ã ã Windows, Mac OSX, Linux ã®ã¢ããªãä½ããã ãã¨ãã¨ã¤ã³ãã«ã§éçºããã¦ãããã®ããªã¼ãã³ã½ã¼ã¹åããããããã node-webkit ã®ããã¨ãã Web æè¡ (HTML/CSS/JavaScript) 㧠PC ã® GUI ã¢ããªãä½ããã node.js ã®ã¢ã¸ã¥ã¼ã«ã使ããã Webkit ã® HTML5 æ©è½ã使ããã 使ãæ¹ (1) å ¬éããã¦ãã Prebuilt binaries ããã¿ã¼ã²ããç°å¢ã®ãã¤ããªããã¦ã³ãã¼ãã (2) HTML ã¨ãããã§ã¹ããã¡ã¤ã«ãç¨æã
ã¡ãªã¼ã¯ãªã¹ãã¹ï¼ ãã®ããã°ã¯ãHTML5 Advent Calendar 2013ã®12/25ç¨ã§ãã ã¨ã¯ãããHTML5ã«ã³ãã¡ã¬ã³ã¹ã¨ããã£ãããã§ãæè¿ãã¾ãæè¡çãªãããã¯ã追ã£ã¦ãããã»ã»ã» ããã¯ãã¤ãæè¿ç®ã«ãã gulp ã¨ãããããã¯ãã触ã£ã¦ã¿ãã¬ãã¼ãã§ãããããã¨æãã¾ãã Node.js製ãªã®ã§ãå®ã¯HTML5ã¨ãããã¾ãé¢ä¿ãªããããã¾ããããã¾ãã gulpã¯ãèªèº«ã®ãã¨ããã¹ããªã¼ãã³ã°ã»ãã«ãã»ã·ã¹ãã ãã¨ç§°ãã¦ãã¾ããã¤ã¾ããGruntãªã©ã¨åã«ãã´ãªã®ããã«ãç¨ãã¼ã«ãã§ãã Gruntã¯ãJSONå½¢å¼ã§å®£è¨çã«ã¿ã¹ã¯ã®ãã©ã¡ã¼ã¿ãè¨è¿°ãã¦ããå½¢å¼ã§ããæ £ããã°ã¹ãããªãã¦ãã¦è¦ãããããè¨å®ãå¤æ´ããã®ã容æãªã®ã§ãããç´°ããã¿ã¹ã¯ã®åä½ãå¶å¾¡ããå¿ è¦ãçããæã«ãä½ãã©ãããã°æ±ããçµæãå¾ãããã®ãï¼ãããããã«ããã¨ããæ¬ ç¹ãããã¾ããã
ã¯ããã« å æ¥ãPhantomJS ã§ãã°ã¤ã³ãå¿ è¦ãªãã¼ã¸ã§ãèªç±èªå¨ã«ã¹ã¯ã¬ã¤ãã³ã° - å¹ã¿Tips ã¨ããè¨äºãæ¸ãã¾ããã åå㯠PhantomJS ã®ã¿ãç¨ãã¦ã¹ã¯ã¬ã¤ãã³ã°ãè¡ãªã£ã¦ãã¾ããããã¹ã¯ã¬ã¤ãã³ã°ããçµæã使ã£ã¦è²ã ããããï¼ã¨ãªãã¨ãNode.js ã®åãåããããªã£ã¦ãã¾ããåç´ã«åå¾ãã HTML ãå©ç¨ããã ããªããPhantomJS ã® fs ã¢ã¸ã¥ã¼ã«ã使ã£ã¦ HTML ããã¡ã¤ã«ã«æ¸ãåºããããã Node.js ã§èªã¿åã£ã¦â¦ããªãã¦ãã¨ãããã°å¯è½ã§ãããä½ãããã®å ¥åãåãã¦åçã«ãã¼ã¸ãé·ç§»ããããã¨ãªãã¨å³ãããªã£ã¦ãã¾ãã ããã§ãæ¬ã¨ã³ããªã§ã¯ PhantomJS ã Node.js ãã使ã£ã¦è²ã åºæ¥ããï¼ã¨ãããã¨ã解説ãããã¨æãã¾ãã å©ç¨ããã¢ã¸ã¥ã¼ã« PhantomJS ãã©ãããã Node ã¢ã¸ã¥ã¼ã«ã¯æ²¢å±±ããã¾ãã試
npmã«ãnode-wkhtmlã¨ããã¢ã¸ã¥ã¼ã«ããããã©ãchild_processã使ã£ã¦ãµãã¯ãªã¨ wkhtmltoimage/wkhtmltopdf wkhtmltoimageã¯/usr/bin/wkhtmltoimageã«ã¤ã³ã¹ã³æ¸ã®åæ㧠var chunks = new Array(); var convert = require('child_process').spawn('/usr/bin/wkhtmltoimage', ['--format', 'jpg', '--quality', '100', 'https://www.google.co.jp/', '-']); convert.stdout.on('data', function(chunk){ chunks.push(new Buffer(chunk)); }); convert.stderr.on('dat
node-serialportã¨ã¯ Node.jsã§ã·ãªã¢ã«ãã¼ããå¶å¾¡ã§ããããã«ããã©ã¤ãã©ãªãä»åã¯ããã使ã£ã¦Node.jsã¨Arduinoãã·ãªã¢ã«éä¿¡ã§æ¥ç¶ãã¾ããä»åã®ã¿ã¼ã²ããã¯2種é¡ãã¾ãã¯Mac + Arduinoã§åä½ã確èªããå¾ãRaspberry Pi + Arduinoã§åä½ããã¦ã¿ã¾ã â»2013/3/30 ãã¼ã¿åä¿¡åããã¼ãã®ä»¶ã§ãä¿®æ£ããããé ãã¾ããã @kei_os ãããããã¨ããããã¾ã node-serialportã®ã¤ã³ã¹ãã¼ã« ã¾ãã¯Macã®æ¹ã§ã¤ã³ã¹ãã¼ã«ãã¾ãããããåèã«expressãã¤ã³ã¹ãã¼ã«ããSocket.ioãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ããnode-serialportã®ã¤ã³ã¹ãã¼ã«ã¯npmã使ãã¾ãã $ npm install serialport ãµã¼ãã®è¨è¿° serialportã®ä½¿ãæ¹ã ãæç²ãã¾ãã serialp
ãã¤ãã®homebrew ã·ãªã¼ãºã§ããhomebrew ã§ã¯ãªãã·ã§ã³ã§æå®ããªãéãnpmã¾ã§ã¤ã³ã¹ãã¼ã«ãã¦ããã¾ããnpm㯠node.js ã®ããã±ã¼ã¸ç®¡çãã¼ã«ã§ããã§ã¯ããã£ãã以ä¸ãã ã¤ã³ã¹ãã¼ã« æ¨æºã®ã¿ã¼ããã«.app ã iTerm ãªã©ã§ä»¥ä¸ãå ¥åãã¾ãã brew install node npm ã使ã£ã¦ã¤ã³ã¹ãã¼ã«ããã¨ãã«ânpm install -gâã¨ãã®ã°ãã¼ãã«ãªãã·ã§ã³ãä»ããå ´åããã©ã«ãã§ã¯ /usr/local/share/npm/bin ã«ã¤ã³ã¹ãã¼ã«ããã¾ãããªã®ã§ä½¿ç¨ãã¦ããã·ã§ã«ã zsh ãªã~/.zshrcãbash ãªã~/.bash_profileã«ä»¥ä¸ã追è¨ãã¦ãã¹ãéãã¾ããããã©ã«ãã®è¨å®ãå¤æ´ããã«ã¯$HOME/.npmrcãå¤æ´ãã¾ãã詳ããã¯ããã¥ã¡ã³ããã # npm export PATH="/usr/loc
The domain loosely.net is for sale. The domain name (without content) is available for sale by its owner through Sedo's Domain Marketplace. Any offer you submit is binding for 7 days. All quoted prices are final prices. The domain loosely.net is for sale. Buy this domain You are not the highest bidder!
æ¨æ¥ã®ç¶ãã ããããã¢ããªã±ã¼ã·ã§ã³ã®ãã³ãã¬ã¼ãã管çããã®ã«ä¾¿å©ãªä»çµã¿ã¯ãªãã§ãããã¼ã¨è¨ã£ã¦ããã @teppeis ããã @omo2009 ããã« Grunt ã Yeoman ã¯ã©ããã¨æãã¦ããã£ãã Grunt ã¯ã¦ã¼ã¹ã±ã¼ã¹ã¨ãã¦ã¯ JavaScript ã®é£çµãå§ç¸®ãSCSS/LESS ãªããã®ã¡ã¿è¨èªã®ã³ã³ãã¤ã«ãããã¨ãã«ä½¿ããã®ãã¤ã¾ã rake ãªããã¨åããããªãã®ã¨ä»¥åã«ãã©è¦ããç¨åº¦ã§ç¥ã£ãæ°ã«ãªã£ã¦ãããã©ããã¡ãã£ã¨éã£ã¦ãããGrunt ã¯ç¢ºãã«ã¿ã¹ã¯ã©ã³ãã¼ã§ã¯ããã®ã ããNode.js ã§å®è£ ãã¦ããå©ç¹ãååã«æ´»ããã¦ãä»»æã®ãã¡ã¤ã«ãæ´æ°ãããã®ãããªã¬ã«ä¸é£ã®ã¿ã¹ã¯ãå®è¡ãããããGrunt 㧠Webãµã¼ãã¼ãç«ã¡ä¸ãã¦ä»ã®ã¿ã¹ã¯ã¨é£æºããããã¨ãã£ããã¨ãã§ããããã«ãªã£ã¦ããããã©ã°ã¤ã³ã®ä»çµã¿ããã£ã¦ãã¨ã³ã·ã¹ãã çã«çµæ§æ´»çºã«
åã ã®ã¯ã©ã¤ã¢ã³ãããµã¼ãã«è¦æ±ããå¦çéã¯å°ããªãã®ã§ãã¼ãã¦ã§ã¢ã®æ§è½ä¸ã¯åé¡ããªãã¦ãããã¾ãã«ãã¯ã©ã¤ã¢ã³ãã®æ°ãå¤ããªãã¨ãµã¼ãããã³ã¯ããââããããæè¿Webéçºè ã®éã§è©±é¡ã¨ãªã£ã¦ãããC10Kåé¡ãï¼ã¯ã©ã¤ã¢ã³ã1ä¸å°åé¡ï¼ã ã ããã»ã¹çªå·ã足ããªããªã ãã³ã¯ããã®ã¯ä¾ãã°ããã»ã¹çªå·ã ã Ajaxã®å®è£ ã¨ãã¦æè¿æ³¨ç®ããã¦ããæè¡ã«âCometâï¼ã³ã¡ããï¼ã¨å¼ã°ãããã®ããããHTTPã®ã»ãã·ã§ã³ãããã¦åæããã«ããµã¼ãã¨ã¯ã©ã¤ã¢ã³ãéã§ã¤ãªãã£ã±ãªãã«ãããã¯ããã¯ã ãCometã使ãã°ã¯ã©ã¤ã¢ã³ãããã®ãªã¯ã¨ã¹ãã«å¿ããã ãã§ãªãããµã¼ãå´ãããä¸å®æã«æ å ±ãéãåºããã¨ãã§ãããä¾ãã°ãWebä¸ã§ãã£ãããµã¼ãã¹ãå®è£ ããã«ã¯ãé常ã¯ã¯ã©ã¤ã¢ã³ãå´ãããµã¼ãã«ä¸å®ééã§ãã¼ãªã³ã°ãããã¨ã§ãã»ãã®ã¦ã¼ã¶ã¼ã®çºè¨åããµã¼ãããåå¾ãã¦è¡¨ç¤ºããããCometã®
nodeQueryã¯node.jsç¨ã®ãµã¼ããµã¤ãjQueryã§ããµã¼ããµã¤ãã§ã¯ã©ã¤ã¢ã³ããµã¤ãã®DOMãå¤æ´ã§ããããã¾ãã node.jsã§jQueryã©ã¤ãã©ãªãèªã¿è¾¼ãã¨ãjQueryãæä¾ããã¡ã½ããã使ãã¾ãããããã«ä¸æ©é²ããã®ãnodeQueryã§ãããµã¼ããµã¤ãããã¯ã©ã¤ã¢ã³ããµã¤ãã®æç»ãå¤æ´ã§ããããã¦ã¨ã¦ãé¢ç½ãå®è£ ãã§ãã¾ãã ã¤ã³ã¹ãã¼ã«ã¯npmã§è¡ãã¾ãã ã¾ããµã³ãã«ã®ããã°ã§ããæ®éã«è¡¨ç¤ºããã¦ããã®ãåããã¾ãã ãµã¼ããµã¤ãã§ããnode.jsã®ã¹ã¯ãªããã®ä¸ã§HTMLã¿ã°ãåºåãã¦ããã®ãåããã¾ããæ§æã«jQueryã使ããã¦ããã®ãåããã¾ãã ããã°ã®æ°è¦æ稿ã§ãã æ稿ã§ãã¾ããã Twitteræ¤ç´¢ã§ãã æéãæ´æ°ããããã¢ã§ãããµã¼ããµã¤ãã®æéã§ããã®ããã½ã§ãã ãµã¼ããµã¤ãã®ã½ã¼ã¹ã§ãã nodeQueryã使ãã¨ãµã¼ããµã¤ãã¨
ãæ¨æ¶ ããã«ã¡ã¯ããã³ãã³ã®New Bambooã¨ããä¼ç¤¾ã§Webã¨ã³ã¸ãã¢ã¨ãã¦åãã¦ãã@makoto_inoueã§ããããã®ã¨ãããPusherã¨ããWebSocketã®ã¯ã©ã¦ããµã¼ãã¹ã®éçºã«é¢ãã£ã¦ãã¾ããä»åãã3åã«æ¸¡ã£ã¦WebSocketã«é¢ããçæé£è¼ãæ å½ããã¦ããã ãã¾ãã ç§ãå«ããNew Bambooã®é¢ã ï¼æã ã¯èªåãã¡ã®ãã¨ãBambinoã¨å¼ãã§ãã¾ãï¼ãWebSocketã«ãªãèå³ãæã£ããã¨ãããã¨ããã¯ãã¾ããå®éã«ã¯ã©ã¦ããµã¼ãã¹ãå§ããã¾ã§ã«ããã£ãã¹ãã¼ãªã¼ãã話ããããã¨æãã¾ãããã®ã¹ãã¼ãªã¼ãéãã¦ãWebSocketãåãéãããªã¢ã«ã¿ã¤ã Webããªä¸çã¸ã®å¯è½æ§ãæè¡ç課é¡ãçããã¨å ±æã§ããã°ã¨æã£ã¦ãã¾ãã
I tried to find an example on using node.js to read a file line by line. I found none so I had to write one myself. // Module: FileLineReader // Constructor: FileLineReader(filename, bufferSize = 8192) // Methods: hasNextLine() -> boolean // nextLine() -> String // // var fs = require("fs"); var sys = require("sys"); exports.FileLineReader = function(filename, bufferSize) { if(!bufferSize) { buffe
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}