2024å¹´ã¯8æãããã¾ã§ã¯ãã£ã¨Flutteræ¸ãã¦ã¾ããããã®ä¸ã§ãAndroidã®ViewãFlutterã®UIã«çµã¿è¾¼ãPlatform Viewã使ã£ãã®ã§ãããããã©ããã£ã¦ç»é¢ã«æç»ããã¦ãã®ã ããï¼ã¨ããçåãããã¾ããã docs.flutter.dev Platform Viewã«ã¤ãã¦èª¿ã¹ãâ¦
ååãWebGLã§ã¢ã«ãã¡ãã¬ã³ãã£ã³ã°ããã£ã¦ã¿ã¾ãããWebGLã¯canvasã¿ã°ãæ¸ãã¦ããã°ããã«ã·ã§ã¼ãã¼ã§æç»ã§ãã¾ããã WebGLã¯ã¨ã¦ãç°¡åã«åãããã¨ãã§ãã¾ããã以åã«Androidã®OpenGL ESã®å ¥éè åãã®æ¬ãèªãã§ã¨ã¦ãåå¼·ã«ãªã£ãã®ã§ãããâ¦
åã åã¯ãããã§ç·ãæç»ãååã¯ãããã§ç©å½¢ã®æç»ã¨ã¢ã«ãã¡ãã¬ã³ãã£ã³ã°ããã£ã¦ã¿ã¾ããã ã©ã¡ããã«ã¼ãå¦çã§1ããããã¤æã£ã¦ããã¾ãããä¾ãã°ãã«HDã ã¨ãã¯ã»ã«æ°ã¯1920Ã1080=2073600ã«ãªãã¾ãããããã ãã®æ°ãé çªã«1ãã¯ã»ã«ãã¤è²ãâ¦
ååãã2Dã°ã©ãã£ãã¯ã¹ã®ããã¿ãã¨ããæ¬ãèªãã§ãããã§ç·ãæãã¦ã¿ã¾ããã ä»åã¯åè§å½¢ã2ã¤éãã¦ã¿ã¾ãï¼ã¨ããæ¥è¨ã§ãã 2Dã°ã©ãã£ãã¯ã¹ã®ããã¿ ââå³è§£ã§ãããããç»åå¦çæè¡ã®ã»ãªãªã¼ (WEB+DB PRESS plus)ä½è :FireAlpacaéçºãã¼ã æâ¦
ã2Dã°ã©ãã£ãã¯ã¹ã®ããã¿ãã¨ããæ¬ãé¢ç½ãã£ãã§ããã¡ã¢ãªã®ãã¼ã¿ã¯ã©ã®ããã«ç»é¢ã«è¡¨ç¤ºãããã®ãã¨ãã話ãããããããæ¸ãã¦ããã¾ãã2次å ã«ä¸¦ãã ãã¯ã»ã«ä¸ã«ç´ç·ãåã表示ããããã¸ã§æ²ç·ãæããããç»åãå å·¥ããããã¤ã³ããã¼ã«ã®ä»â¦
以åãã®ããã°ã§ãç´¹ä»ããWebãã©ã¦ã¶ã§CASL2ãåããCASL2 Playgoundã§ããããã¤ãã³ã¼ãã¤ã³ã¿ããªã¿ã®å®è£ ãTypeScriptããC++ã¸ç§»æ¤ãWebAssemblyã§JavaScriptãã使ãããã«å®è£ ãã¦ã¿ã¾ãããã¨ããæ¥è¨ã§ãã github.com å®è£ ãã¦ã¿ãçç±ã¯ããã â¦
AOSP (Android Open Source Project) ã®Codelabãããã®ã§ãã£ã¬ã³ã¸ãã¦ã¿ãæ¥è¨ã§ãã Androidã®Bluetoothã¾ããã調ã¹ã¦ãã¦OSã¬ã¤ã¤ã¼ã®å®è£ ãããã£ã¦ã¿ãããªããAndroid OSããã«ãã§ããç°å¢ããªããã®ãã¨èãã¦ã¾ããããã«ãç°å¢ã«æ±ããããè¦ä»¶â¦
以åãWebãã©ã¦ã¶ã§CASL2ãåããCASL2 Playgoundãå®è£ ãã¾ããã github.com ãã®æã®æ¥è¨ã«æ¸ãã¦ããã®ã§ãããä½ãå¤ãããé¨åããã£ãã®ã§ä½ãå¤ãã¾ãããã¨ããæ¥è¨ã§ãã å¤æ´å ã¢ã»ã³ãã©ã¨ãã¦æ©æ¢°èªãçæããå¦çã¨ãCommet2ä¸ã§åããã·ãâ¦
Androidã§gRPCã¯ã©ã¤ã¢ã³ãã®å®è£ ããããã¨æã£ã¦ãã¥ã¼ããªã¢ã«èªãã ãã©ããã£ã¨åãããªãã£ãã®ã§ã¡ã¢ãã¾ãã¯ãGoã§ç°¡åãªgRPCãµã¼ãã¼ã¨ã¯ã©ã¤ã¢ã³ããå®è£ ããã®å¾ã¯ã©ã¤ã¢ã³ããAndrodã¢ããªã¨ãã¦å®è£ ãããã¨ããã®ããã£ã¦ã¿ã¾ããã å®è£ ãã¦â¦
ãã®è¨äºã¯çµ±è¨å¦ Advent Calendar 2022 24æ¥ç®ã®è¨äºã§ãï¼ ç¢ºçæ¨ã¨ããã®ã Head First Statistics ã¨ããæ¬ã§ç¥ãã¾ããã æ¡ä»¶ä»ã確çã¨ãã¤ãºã®å®çã«ã¤ãã¦ç¢ºçæ¨ã使ãã¨ãããåããããããªãã¨æã£ãã®ã§ããããã®æ¬ä»¥å¤ã§ã¯è¦ããããã¨ããªãâ¦
çµ±è¨æ¤å®2ç´ã«åæ ¼ããã®ã ãã©ãã°ã°ãã¨åºã¦ãããããªãåæ ¼ããæ¹æ³ï¼ãã®ããã«ã¯ããã大å¤ã§ãããã¨ããæ¥è¨ã§ãã ãã£ãã çµ±è¨å¦ãã¡ããã¨åå¼·ãããã¨ããªãè¦ææèãã¨ã¦ãå¼·ãã£ãã®ã§ããéå»ã«ç°¡åãããªæ¸ç±ãèªãã ãã¨ã¯ããã¾ããããâ¦
ãã®è¨äºã¯å人éçº Advent Calendar 2021ã®7æ¥ç®ã®è¨äºã§ãï¼ CASL2ã¨ã¯åºæ¬æ å ±æè¡è 試é¨ã®ããã«çå®ãããã¢ã»ã³ãã©è¨èªã§ãï¼ãã®CASL2ãWebãã©ã¦ã¶ä¸ã§æ¸ãã¦å®è¡ã§ããWebãµã¼ãã¹ãã¤ããã¾ããã¨ããæ¥è¨ã§ãã github.com ãªãã¤ãã£ãã®ãï¼ â¦
å ååã¨è©±ãã¦ãããããã¤ã®ã¾ã«ãï¼ã»ãããï¼ï¼ã³ã¼ãã«ãªã£ã¦ããã®ã§ã³ã¼ãã³ã°ãã¦ãããã¾ããï¼ã¨ããæ¥è¨ã§ãã æ¥ã ã£ãã«ãé¢ããããã£ã¦ãã㦠@katsutomu ã«æè¬ã§ãï¼ åãã¦ã®çµé¨ã ã£ãã®ã§ã©ããªæããªãã ãï¼ã¨ããæ°æã¡ã§åããã®ã§â¦
SICPãä½å¹´ãåã«èªãã§ããã®ã§ãããéä¸ã¾ã§èªãã§ãã®ã¾ã¾ç©ãèªã«ãªã£ã¦ã¾ããããã®ãã¨ããµã¨æãåºããã®ã§ã¾ãèªã¿å§ãã¦ããã¾ããèªã¿ãªããã³ã¼ãæ¸ãæã®ç°å¢ã«ã¤ãã¦ã®æ¥è¨ã§ãã SICPã¨ã¯è¨ç®æ©ããã°ã©ã ã®æ§é ã¨è§£éã¨ããæ¬ã®ç¥ç§°ã ja.wiâ¦
Android Gradle Pluginã®ãã¼ã¸ã§ã³4.0.0ãã4.0.1ã¸ã¢ãããã¼ããä½ãå¤ãã£ãã®ã§ããããï¼ https://developer.android.com/studio/releases/gradle-plugin#4-0-0 This minor update supports compatibility with new default settings and features forâ¦
Aizu Online Judge ã® Shell Sort ã®åé¡ ããã£ã¦ã¦ããªããåãã£ãæ°ãããªããªãã¨æã£ã¦ã¾ããã Aizu Online Judgeã®ä¸é¨ã®åé¡ã¯ãæ¬ã ã¨è§£èª¬ããã¦ãããã¾ãã ããã°ã©ãã³ã°ã³ã³ãã¹ãæ»ç¥ã®ããã®ã¢ã«ã´ãªãºã ã¨ãã¼ã¿æ§é ä½è :æ¸¡é¨ æéãã¤ãâ¦
以åãè¨å¿µæ¥ãå¿ããªãããã®Webã¢ããªãä½ãã¾ããã bati11blog.hatenablog.com ããããè´å½çãªå¼±ç¹ãããã¾ãããããã¯ãªã³ã©ã¤ã³ãããªãã¨åããªãã¨ãããã¨ã§ããã¤ã¾ããé£è¡æ©ã§ä¸ç©ºã«ããã¿ã¤ãã³ã°ã§ãããå°ãã§çµå©è¨å¿µæ¥ã ããããã¿ããâ¦
GAE Go1.11 ã® dev_appserver.py ã§ããããªãã¼ããå¹ããªããªã¼ã¨ããã¨ããdev_appserver.pyå®è¡æã«ä»¥ä¸ã®ã¡ãã»ã¼ã¸ãåºåããã¦ã¾ãããæå¾ã®1è¡ãåºåããã¦ããã¨ããããªãã¼ããå¹ãã¾ããã $ dev_appserver.py dev.yaml INFO 2019-09-22 10:30:â¦
SQLã¢ã³ããã¿ã¼ã³ã¨ããæ¬ãããã¾ãã ãã®æ¬ã®1ç« ãã¸ã§ã¤ã¦ã©ã¼ã¯ï¼ä¿¡å·ç¡è¦ï¼ãã¸ã§ã¤ã¦ã©ã¼ã¯ã§ç´¹ä»ããã¦ãããããªãã¼ã¿ãtsvãã¡ã¤ã«ã¨ãã¦æå ã«ããå ´åã«ãSQLã§ã¯ãªãã·ã§ã«ã§ãªãã¨ãããã話ã§ãã ã¸ã§ã¤ã¦ã©ã¼ã¯ tsvãã¡ã¤ã« SQL vs ã·ã§â¦
ååãå¥goroutineã§çºçããã¨ã©ã¼ãã³ããªã³ã°ããã¾ãããå ·ä½çã«ã¯ãµãã¹ã¯ã©ã¤ãã¸ã®æ¸ãè¾¼ã¿ã§ã¨ã©ã¼ãçºçããå ´åã«ãµãã¹ã¯ãªãã·ã§ã³ã®åé¤å¦çããããã«ãã¾ãããä»åã¯ã context.Context ã使ã£ã¦goroutineãåæ¢ãããã¨ã§ãã¯ã©ã¤ã¢ã³ããâ¦
ååã®ç¶ããå¥ã®goroutineã§çºçããã¨ã©ã¼ãerror channelã使ã£ã¦ãã³ããªã³ã°ãã¦ã¿ããã¨æãã¾ãããã³ããªã³ã°ã®å¦çã§mapã使ã£ãã®ã§ãããgoroutineã»ã¼ãã«ãããã sync.Map ã使ã£ã¦ã¿ã¾ããã ç®æ¬¡ã handleSub ã§ã¨ã©ã¼ å¥goroutineãåãåâ¦
ååãgoroutine, channel, selectã使ã£ã¦ Broker ãå®è£ ãã¾ããããã® Broker ããµã¼ãã¼ã§å©ç¨ããMQTTã§ã¡ãã»ã¼ã¸ãé éãã¦ã¿ã¾ãã ãã®åã« <-chan chan<- []byte ã¨ããåãèªã¿ã¥ããã®ã§ type ã使ã£ã¦å¯¾å¿ãã¾ãããã®å¾ãèªã¿æ¸ãå¯è½ãªchanneâ¦
ååã¯goroutineã使ã£ã¦ãè¤æ°ã¯ã©ã¤ã¢ã³ãã¨åæã«æ¥ç¶ã§ããããã«ãã¾ãããä»åã¯ãè¤æ°ã®goroutineéãchannelãã¤ãªãã§ã¡ãã»ã¼ã¸ããã¨ãããPublishãããã¡ãã»ã¼ã¸ãå¥ã®Subscribeãã¦ããã¯ã©ã¤ã¢ã³ãã«é éãã¾ããchannelã®ææ権ãselectãâ¦
ååã¾ã§ã§ãã¯ã©ã¤ã¢ã³ããPUBLISHãã¾ãã¯SUBSCRIBEãããã¨ãã§ããããã«ãªãã¾ããã次ã¯ãã¯ã©ã¤ã¢ã³ãããPUBLISHãããã¡ãã»ã¼ã¸ããSUBSCRIBEãã¦ããå¥ã®ã¯ã©ã¤ã¢ã³ãã¸éãå¦çãå®è£ ãã¦ããã¾ãããããã®åã«goroutineã使ã£ã¦ãµã¼ãã¼ãè¤æ°â¦
ååã§ãã¯ã©ã¤ã¢ã³ãããã®PUBLISHãåãåãã¨ããã¾ã§å®è£ ã§ãã¾ãããä»åã¯SUBSCRIBEãåãåãã¨ãããå®è£ ãã¾ãããã¤ãå¼ç¨ãã¦ãå³ã§è¨ãã¨ãå³å´ã®ãComputerãããMobile deviceãããMQTT Brokerã¸ã®éä¿¡ã§ãã å¼ç¨å ï¼https://www.appceleratâ¦
ååã®ç¶ãã§ããhandlerã®ã¨ã©ã¼ãã³ããªã³ã°ããããã¾ãããã®å¾ãmosquitto_clientããPUBLISHãã±ãããèªä½ãµã¼ãã¼ã§åãåããããã«ãã¾ãããæå¾ã«handlerã®ãªãã¡ã¯ã¿ãªã³ã°ã§ Untyped constant declaration ã¨ããconstã®ä¾¿å©ãªä½¿ãæ¹ãç¥ãã¾â¦
ååã®ç¶ãã§ããååã¾ã§ã§ä¸å¿ CONNECTãã±ãããstructã«å¤æããå¦çãã§ãã¾ãããããã§ã¯ã©ã¤ã¢ã³ãããã®CONNECTãã±ããããµã¼ãã¼å´ã§è§£éã§ãã¾ãã ä»åã¯ãCONNECTã«å¯¾ããã¬ã¹ãã³ã¹ã§ããCONNACKã«åãæããã¾ããã¾ããå®éã«ãµã¼ãã¼ã¨ãâ¦
ååã®ç¶ãã§ãã ä»åã¯ãMQTTã®CONNECTãã±ããã®ãã¤ãã¼ãããããã¤ãã¼ããbinaryããã±ã¼ã¸ã使ã£ã¦å®è£ ãã¾ãããã®å¾ãregexããã±ã¼ã¸ã使ã£ã¦å ¥åãã§ãã¯å¦çãæ¸ãã¦ãã¹ããã¾ããGoã§ã¯ãã¹ãã«ãã¬ãã¸ãç°¡åã«åå¾ã§ããããã ã£ãã®ã§ã試â¦
åå㧠func ToFixedHeader(bs []byte) FixedHeader ã¨ããé¢æ°ãå®è£ ãã¾ããããã®é¢æ°ã®å¼æ°ã®ãã§ãã¯ã¨ã¨ã©ã¼ãã³ããªã³ã°ããããã¾ããGoã«ãããã¨ã©ã¼ãã³ããªã³ã°ãå¦ãã§ããããã¨æãã¾ãã ç®æ¬¡ã error CONNECTãã±ããã®å¯å¤ãããã¼ Goã®ã¨â¦
ååãåºå®ãããã¼ã表ãstructã®å®è£ ã«çæãã¾ããã // fixed_header.go package packet type FixedHeader { PacketType byte } func ToFixedHeader(bs []byte) FixedHeader { b := bs[0] packetType := b >> 4 return FixedHeader{packetType} } ãããâ¦