You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more This blog was written by Arunesh Chandra, Chakra Senior Program Manager, and Gaurav Seth, Chakra Principal PM Manager. Microsoft is making big investments in the Internet of Things (IoT). Windows 10 IoT will power a range of intelligent, connected IoT devices. Fr
ä»ã®å ¥ãæ¹ããã¨éãå ´æã«ãã£ããredis-serverèµ·åæã«ãã¹æå®ãããããã®ã§ããããã®æ¹æ³ã«å¾ã£ãå ´æã®redis.confãéãã¾ãã ãããæ¸ãæãã ################################# REPLICATION ################################# # Master-Slave replication. Use slaveof to make a Redis instance a copy of # another Redis server. Note that the configuration is local to the slave # so for example it is possible to configure the slave to save the DB with a # differen
webapplog [tech blog] Book author Azat Mardan writes about apps, startups and technology Inspired by 5 Things You Should Stop Doing With jQuery by Burke Holland, I decided to open a discussion and highlight seven things you should immediately stop doing with Node.js: Stop using callbacks Stop using * for versions Stop using console.log for debugging Stop using GET and POST for everything Stop usin
ãµã¼ãã®ãã¹ããããã¨ããªã©ã«æªä½¿ç¨ã®ãã¼ãã使ã£ã¦ãã¹ãã³ã¼ããèµ°ãããããã¨ããã¨ãããã£ã¦ãPerlã ã¨Test::TCPã«empty_portã¨ããã®ããã£ã¦ç°¡åã«åå¾åºæ¥ãã $ perl -MTest::TCP -E 'say Test::TCP::empty_port' 10256å¼æ°ãä¸ããªãå ´åã¯æ¯åéãå¤ã«ãªãããã©ãåºæ¬çã«å¿ ã空ãã¦ãããã¼ãçªå·ãè¿ã£ã¦ããã nodeã§ãåããããªã®ãããã°ãããªãã¨æã£ãã®ã ãã©å¤åãªãã®ã§Test::TCPãåèã«èªåã§æ¸ãã¦ã¿ãã exports.empty_port = function(callback) { port = 10000 + Math.floor(Math.random() * 1000); var net = require('net'); var socket = new net.Socket(); v
Node.js Cluster+Socket.IO+Redisã«ãããªã¢ã«ã¿ã¤ã éç¥ã·ã¹ãã | ãµã¤ãã¼ã¨ã¼ã¸ã§ã³ã å ¬å¼ã¨ã³ã¸ãã¢ããã°
æ±äº¬Nodeå¦å 15æéç® - connpassã«åå ãã¦ããã®ã§ã¡ã¢ ãio.jsã«ã¤ãã¦ã by @yosuke_furukawa ã¹ã©ã¤ã : io.js æ±äº¬Nodeå¦å 15æéç® // Speaker Deck æåã¯forkãããªãã¦sporkã¨æ¸ãã¦ãã£ã forkã»ã©å å²ããããªããã¨ãã io.jsã¯ãªã¼ãã³ã¬ããã³ã¹ã¢ãã« Node.jsã¯ä½ã«çæãã¦ãã®ããä¸éæ ã©ããããµãã«åãçµãã§ããã®ããå ¬éãã Google Hangoutã§è°è«ãããã®ã®åç»ãå ¬é åºæ¬çã«ã¯åè°å¶ãVote㧠ãæ票 ã³ããããæ´»æ§åãã ãã Comitterã追å ããã Node.jsã¨ã®æ©è½é¢ã§ã®éã io.jsã¯V8ã®ãã¼ã¸ã§ã³ãæ°ãã V8ãæ°ããã®ã§ES6ã®æ©è½ãå ¥ã£ã¦ã koajs/koaã¨ãããã®ã¾ã¾ä½¿ãã constãletã使ãã --es_staging ã¨ãã
node.js ã¢ããªã±ã¼ã·ã§ã³ã®ãããã¤ãããæã®é¸æè¢ã ãã¾ãã«ãããããã¦ãçµå±ã©ãããã°ããã®ãï¼ã£ã¦ãªã£ãã®ã§ã ãã£ããåºç¤ããã¾ã¨ãã¦ã¿ã¾ãã ãããã¤ã¨ã¯ä½ãï¼ ã¢ããªã±ã¼ã·ã§ã³ã®ãããã¤ã¯å¤§ãã2ã¤ã®ãã§ã¼ãºã«åããã¾ãã ãã¡ã¤ã«ãæå®ã®å ´æã«ç½®ã ç½®ããããã¡ã¤ã«ã®åãã¼ãã£ã³ã° æç« ã«ãããªãã°ããã¡ã¤ã«ãåãµã¼ãã¼ã®æå®ã®å ´æã«ããããããã®ãã¡ã¤ã«ãå度ãã¼ããããããã«ãªãã¨æãã¾ãã Webã¢ããªã±ã¼ã·ã§ã³ã®å ´å ãã¡ã¤ã«ãæå®ã®å ´æã«ç½®ãåã«ãã¹ããèµ°ãããã ç½®ããå¾ã«éçãã¡ã¤ã«ãçæãããã¨ããã®ï¼ã¤ã®åå¾ã«ã¯ãã£ã¨è²ã ãªãã§ã¼ãºãããã¾ããã ãããã¤ã®ã¿ã¹ã¯ã¯ã大ããåãã¦ãã®ï¼ã¤ã«ãªãã¾ãã ãã¡ã¤ã«ãæå®ã®å ´æã«ç½®ã ãµã¼ãã¼ã«ãã¡ã¤ã«ãç½®ãä½æ¥ã¯ã以ä¸ã®ãããªæ¹æ³ãããã¾ãã FTP tar ãªã©ã§å§ç¸®scpã§è»¢éãã¦è§£å rsync g
社å åãè³æãèªåãæ¸ããã³ã¼ãã説æããããã«è³æä½ãç¾½ç®ã«ãªã£ãã æã®ãã¨ã¯ããè¦ãã§é°å²æ°ã§æ¸ãã¦ãé¨åãããã®ã§ããããã¸ãåå¼ã å¤ã®æ代(~2010) åæã¨ãã¦JavaScriptã¯åå空éãwindowã®ä¸ã¤ãããªãã æPrototype.jsããã£ããããã¿ããªå¿ãããã©ãã®ææã¯ããªããã£ããªãªãã¸ã§ã¯ãã®prototypeãçããã¾ãã£ã¦ããããè¡çªãã¾ãã£ã¦prototypeè¯ããªãçãªé°å²æ°ãçã¾ãããçã¾ããªãã£ããããã ãã®åçããã£ã¦ã(æ´å²çã«è¥å¹²å¾®å¦ãªæ°ãããã) jQueryã¯åå空éãä¸ã¤ã«éç´ããããããã jQueryPlugin ã¯ãjQueryã®ãããã¿ã¤ãã«ãã«ããçããã¾ãã£ã¦ãããã°ãã¼ãã«ãæ±ãã®ã¯é§ç®ã ãã©jQueryã®åå空éãæ±ãã®ã¯ããããããããã®èãã jQueryéä¾åãªã©ã¤ãã©ãªã¯ããGoodPartsãã¨ãã¦ã
NW.js (previously known as node-webkit) lets you call all Node.js modules directly from DOM and enables a new way of writing applications with all Web technologies. New way of writing native applications using web technologies: HTML5, CSS3, and WebGL Full support for the features in browser Complete support for Node.js APIs and all third party modules Call Node.js modules directly from the DOM and
Node.js v0.6 ããæ°è¦æ¨æºã¢ã¸ã¥ã¼ã«ã¨ãã¦å°å ¥ããã Cluster ã®ãã³ããã¼ã¯ãåã£ã¦ã¿ã¾ããã 測å®ç°å¢ Server CPU: AMD PhenomII X6 1090T (6ã³ã¢) MEM: DDR3 16GB (4GB*4) Client MacBook Pro 15 (Early 2011) CPU: Intel Core i7 2.0GHz (4ã³ã¢) MEM: DDR3 8GB (4GB*2) Network 1GigabitEther (åä¸ã»ã°ã¡ã³ã) ãã¹ãæ¹æ³ ãã¹ãã¹ã¯ãªãã cluster-bench.js var cluster = require('cluster'); var http = require('http'); var numCPUs = parseInt(process.argv[2], 10); if (cluster.is
Cluster ä¸ã¤ã® Node ã¤ã³ã¹ã¿ã³ã¹ã¯ä¸ã¤ã®ã¹ã¬ããã§å®è¡ããã¾ãã ãã«ãã³ã¢ã·ã¹ãã ã®ã¡ãªãããçããããã«ã ã¦ã¼ã¶ã¯æã Node ããã»ã¹ã®ã¯ã©ã¹ãèµ·åãã¦è² è·ãåæ£ããããªãã¾ãã ã¯ã©ã¹ã¿ã¢ã¸ã¥ã¼ã«ã¯ããµã¼ããã¼ããå ±æããããã»ã¹ã®ãããã¯ã¼ã¯ã ç°¡åã«æ§ç¯ãããã¨ãå¯è½ã«ãã¾ãã var cluster = require('cluster'); var http = require('http'); var numCPUs = require('os').cpus().length; if (cluster.isMaster) { // Fork workers. for (var i = 0; i < numCPUs; i++) { cluster.fork(); } cluster.on('death', function(worker) { consol
Power Assertã¨ã¯assert(a === b); ã®ãããªåç´ãªã¢ãµã¼ã·ã§ã³ã§ãã Assert失ææ(ãã¹ããéããªãã£ãæ)ã«åãããããæ å ±ã表示ã§ããããã«ããæ©è½ã®äºãè¨ãã¾ãã JasmineãChaiãæã¤shouldãexpectçè¨ã£ãè±å¯ãªã¢ãµã¼ã·ã§ã³ãè¦ããå¿ è¦ãªãã ã·ã³ãã«ã«assert()ã使ãã ãã§ãååãªå¤±ææã®æ å ±ãå¾ãããããã沢山ã®ã¢ãµã¼ã·ã§ã³ã使ãåãããªãã¦ããã¨ããã¡ãªãããããã¾ãã ãã®è¨äºã§ã¯Power Assertã®JavaScriptå®è£ ã§ããtwada/power-assertã®ä½¿ãæ¹ã«ã¤ãã¦ç´¹ä»ãã¾ãã è¨äºãèªãåã« ãã®Node.jsç·¨ã¨ãã©ã¦ã¶ç·¨ã§åãããããé·ãè¨äºã¨ãªã£ã¦ãã®ã§ã ãå¿ããæ¹ã¯5åãããã§åããpower-assertã¨ããã¹ã©ã¤ããããã®ã§ããã¡ããèªãã§ãã£ããææ¡ãã¦ã¿ãã®ãããã§ãããã
ããã«ã¡ã¯ã@yoheiMuneã§ãã æ¬æ¥ã¯ãLog4jsã使ã£ããã°ã®åºåããã°ãã¼ãã¼ã·ã§ã³ãExpressã§è¡ãæ¹æ³ãããã°ã«æ¸ãããã¨æãã¾ãã Expressã§ä¸çªç°¡åãªãã°ãã¡ã¤ã«ã®ä½æ Expressã§åºåãã¦ããã³ã³ã½ã¼ã«ãã°ãä¸çªç°¡åã«ãã°ãã¡ã¤ã«ã«ä¿åããã«ã¯ã以ä¸ã®ã³ãã³ãã§å®ç¾ã§æ¥ã¾ãã $ node app.js >> app.log ããããã°ã³ã³ã½ã¼ã«åºåããã¦ãå 容ããapp.logã¨ãããã¡ã¤ã«ã«æ¸ãè¾¼ã¾ãã¾ãã ãã ãéçºä¸ã¯ãããããã§è¯ãã®ã§ããããªãªã¼ã¹ãã¦éç¨ããçºã«ã¯ãã°ãã¡ã¤ã«ãåãããããã©ã¼ããããæå®ããããããã®ã§ã ã¡ãã£ã¨ä¸ååã§ãã ããã§log4jsã¨ãããã°åºåã¢ã¸ã¥ã¼ã«ã使ã£ã¦ããã°åºåãè¡ãããã¨æãã¾ãã Log4jsã®ç´¹ä» Log4jsã¯ãJavaã®Log4jã®JavaScriptãã¼ã¸ã§ã³ã®ã¢ã¸ã¥ã¼ã«ã§ãæè»ãªã
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}