2024-07-01ãã1ã¶æéã®è¨äºä¸è¦§
æè¿ãBlenderã§3Dããªã³ãç¨ã®stlãã¡ã¤ã«ããã£ãã¨å¶ä½ãã¦ãã¾ãããããªæãã§ãtoioç¨ã®æ²»å ·ãä½ã£ã¦ã¿ããããããªæãã§ãATOM Matrixãè æè¨ã®ããã«è£ çã§ããæ²»å ·ãä½ã£ã¦ã¿ããã¨ã大活èºä¸ã§ããBlenderã3Dããªã³ã¿ãããã¦ãä»åã¯Blenderã§â¦
ã¿ã¤ãã«ã®éãã§ãããMacã§electron-builderã§æ¸ãåºããã¢ããªãéããã¨ããã¨ãå£ãã¦ããããéãã¾ãããã´ãç®±ã«å ¥ããå¿ è¦ãããã¾ãããã¨è¡¨ç¤ºãããéã¯æ¡å¼µå±æ§ãåé¤ããã¨éããããã«ãªãã¾ãã xattr -rc ã¢ããªåã§OKã§ãã
ãã¡ãã®è¨äºã®ES Modulesãã¼ã¸ã§ã³ã§ãã â» Node.js v20.10.0ãyarn 1.22.22 ã§ä½æblog.kimizuka.org å¿ è¦ãªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã« yarn add express socket.io app.mjsãä½æ import { createServer } from 'node:http'; import path from 'node:pathâ¦
direnvã使ãã¨ããã£ã¬ã¯ããªãã¨ã«ç°å¢å¤æ°ãåãæ¿ããããããã«ãªãã¾ãã brewã使ã£ã¦ã¤ã³ã¹ãã¼ã« brew install direnv ~/.zshrcã«è¿½è¨ ~/.zshrc eval "$(direnv hook zsh)"ããã§ã export EDITOR=vimã¨ããå ·åã«ã¨ãã£ã¿ãè¨è¼ãã¦ããã¨ã direnâ¦
text-align: justify developer.mozilla.orgããã¹ãã両端æãã«ãã¾ãã å³å¯ã«è¨ãã°æåè©°ãã¨ã¯å¥ã®å¦çãªã®ã§ãããçµæçã«æåéã調æ´ããã¾ãã font-feature-settings: 'palt' developer.mozilla.orgOpenTypeã®ãããã¼ã·ã§ãã«ã¡ããªã¯ã¹ãæå¹â¦
ååã¯Reactã§çéã§å¾å¾©éåããã³ã³ãã¼ãã³ããä½ãã¾ãããblog.kimizuka.orgãã®ã³ã³ãã¼ãã³ããè¤æ°è¨ç½®ããã°ã¤ã³ãã¼ãã¼ã²ã¼ã ã®ãããªåããä½ããã¨æãã試ãã¦ã¿ãã®ã§ãããâ» ã¯ãªãã¯ããã¨åãåºãã¾ãä½ããéããå ¬å¼ãµã¤ãã観å¯ãã¦ã¿â¦
ã¿ã¤ãã«ã®éãã§ãããES Moduleã§__diranameã使ãæ¹æ³ã§ããä¾ãã°ãindex.jsããindex.cjsã«ã console.log(__dirname); ã¨è¨è¿°ãã node index.jsnode index.cjsãå®è¡ããã¨ããã£ã¬ã¯ããªã¾ã§ã®ãã¹ã表示ããã¾ãããindex.mjsã«ã console.log(__diâ¦
Cubeãã¯ãªãã¯ããããã¨ãæ¤ç¥ HTTPãªã¯ã¨ã¹ãï¼GETï¼ã§JSONã®åå¾ HTTPãªã¯ã¨ã¹ãï¼POSTï¼ã§JSONã®éä¿¡ WebSocketã«ããéä¿¡ ä»åã¯ãã blog.kimizuka.orgblog.kimizuka.orgblog.kimizuka.orgä»åã®ã¢ãã¯ãä½ãããã¦è²ã ã¨è¨äºãæ¸ãã¦ãã¾ããããç´â¦
Cubeãã¯ãªãã¯ããããã¨ãæ¤ç¥ HTTPãªã¯ã¨ã¹ãï¼GETï¼ã§JSONã®åå¾ HTTPãªã¯ã¨ã¹ãï¼POSTï¼ã§JSONã®éä¿¡ ä»åã¯ãã WebSocketã«ããéä¿¡ åã åãååã®ç¶ãã§ãã ä»åã¯Cubeãã¯ãªãã¯ãããéã«ãHTTPãªã¯ã¨ã¹ãï¼POSTï¼ã§JSONãéä¿¡ãã¾ãã éçºç°â¦
Cubeãã¯ãªãã¯ããããã¨ãæ¤ç¥ HTTPãªã¯ã¨ã¹ãï¼GETï¼ã§JSONã®åå¾ ä»åã¯ãã HTTPãªã¯ã¨ã¹ãï¼POSTï¼ã§JSONã®éä¿¡ WebSocketã«ããéä¿¡ ååã®ç¶ãã§ãã ä»åã¯Cubeãã¯ãªãã¯ãããéã«ãHTTPãªã¯ã¨ã¹ãï¼GETï¼ã§JSONãåå¾ãã¾ãã Unityã¢ããªã«å â¦
ãã®ãããä¹ ãã¶ãã«Unityã使ãããµã¼ãã¨éä¿¡ããã¢ãã¯ãä½æãã¾ããã Cubeãã¯ãªãã¯ãããã¨ããµã¼ãã«éä¿¡ãããããµã¼ãããJSONãGETããããWebSocketã§ãã©ã¦ã¶ã¨ã¡ãã»ã¼ã¸ã®ããã¨ããããã¢ãã¯ã§ããå®è£ æã«ãä½ãããå¿ãã¦ããã®ã§ãå¿â¦
OpenCV.jsã§ã«ã¡ã©ã§æ®å½±ããæ åå ã®èµ¤è²ã®å²åãæ¤åºããæ©æ¼ããã¿ã³ãæ¼ããããã¨ãæ¤ç¥ããããã°ã©ã ãä½ã£ã¦ã¿ã¾ããã é¨å±ã®æããããæ¥å ã®å ¥ãæ¹ãªã©ã«ä¾åãã¾ããããªããªãã®ç²¾åº¦ãåºã¦ãã¾ãã ã½ã¼ã¹ã³ã¼ã index.html <html> <head> <meta charset="UTF-8" /> <title>OpenCV - Quiz</title> </meta></head></html>
developer.mozilla.orgMouseEvent.buttonã¨MouseEvent.movementXã»MouseEvent.movementYã使ãã¨ããã®ãããç°¡åã«è¦ç´ ããã©ãã°å¯è½ã«ãããã¨ãã§ãããã¨ãæããã¾ããã MouseEvent.buttonã使ã£ã¦ããã®ã§ã¹ãããã¯ããã¨ããã¿ããããã¤ã¹ã§ã¯åâ¦
æ¹è¡ã¿ã°ã¨dangerouslySetInnerHTMLã使ãæ¹æ³ ã½ã¼ã¹ã³ã¼ã DEMO æ¹è¡ã³ã¼ãã¨white-space: pre-wrapã使ãæ¹æ³ ã½ã¼ã¹ã³ã¼ã DEMO æ¹è¡ã¿ã°ã¨Childrenã使ãæ¹æ³ ã½ã¼ã¹ã³ã¼ã DEMO æ¹è¡ã¿ã°ã¨dangerouslySetInnerHTMLã使ãæ¹æ³ãæ¹è¡ã³ã¼ãã¨white-spaceâ¦
ãã¡ãã§ã®å¯¾çã§package.jsonã«å·±ã®ãªãã¸ããªãæå®ãã¾ããããããå°ãæ·±æããã¾ããblog.kimizuka.orgnpmã®ããã¥ã¡ã³ãã«ãããããè¨è¼ããã¦ãã¾ããdocs.npmjs.com ãªãã¸ããªã®URLã¨ãã©ã³ãåãæå® { "dependencies": { "electron-next": "git+â¦
ã²ãããªãã¨ããFirmataã¨Johnny-fiveã§è¡ããããªå¦çãèªä½ããã¨ãã話ã§ããhttps://www.arduino.cc/reference/en/libraries/firmata/www.arduino.cc johnny-five.ioMacã«æ¥ç¶ããArduinoã«å¯¾ãã¦ããã³çªå·ã¨0ã255ã®å¤ãã·ãªã¢ã«éä¿¡ã§éããã¨ã§ãArâ¦