2024-07-01ãã1ã¶æéã®è¨äºä¸è¦§
æè¿ã®å¦ã³ã®ã¨ã³ããªã§ãï¼æ¨æ¶çç¥ããç°¡ç¥çï¼ ç®æ¬¡ ç®æ¬¡ nikkieã¯httpxã使ããã ã¾ã¨ãï¼dataå¼æ°ã¨jsonå¼æ° HTTPã¡ã½ããã®dataå¼æ°ã¨jsonå¼æ° Sending Form Encoded Data Sending JSON Encoded Data äºæãªAPIã®requestsã®ããã¥ã¡ã³ããç¢ºèª dataå¼â¦
ã¯ããã« ä¼å¹ç¿¼ããããèªçæ¥ããã§ã¨ããããã¾ãï¼ nikkieã§ããã¢ã¤ã«ããããã ãªãªã¼ã¹å ±åã¨ã³ããªã§ãã ã¿ã¤ãã«ã®ãsphinx-new-tab-linkã¨ã¯ãªãã ãããã¨ããæ¹ã¯ã以ä¸ã®è¨äºãã¾ãã©ããï¼ ç®æ¬¡ ã¯ããã« ç®æ¬¡ reSTã§ç»åã®ãªã³ã¯ã¨sphinx-nâ¦
Sphinxé¢ä¿ã®å°ãã¿ã§ãã åãã¦ç¥ã£ã¦ãã¡ãã£ã¨æåãã¾ããã ç®æ¬¡ ç®æ¬¡ reStructuredTextã§ç»åã表示 targetã¨ãããªãã·ã§ã³ã§ãªã³ã¯ã«ã§ããï¼ imageãã£ã¬ã¯ãã£ã figureãã£ã¬ã¯ãã£ã çµããã« reStructuredTextã§ç»åã表示 ãSphinxãã¯ãããâ¦
ã¯ããã« ã¢ã¤ãã¹19å¨å¹´ããã§ã¨ããããã¾ãï¼20å¨å¹´ã¤ã¤ã¼æ¥½ãã¿ï¼ nikkieã§ãã TechRAMENé¢é£ã¨ã³ããªã§ãã ãããã°ã©ãã³ã°Rust 第2çãã®ææ権ã¾ããï¼4ç« ã»5ç« ï¼ããã£ã¨èªãã ãã°ã§ã1ã ç®æ¬¡ ã¯ããã« ç®æ¬¡ t_wadaããã«ããLTãããã¾ã§ã¨éâ¦
ã¯ããã« TechRAMENããç²ããã¾ã§ãã & ãããã¨ããããã¾ããï¼ nikkieã§ãã å¿å°ããç²å´æã«æµ¸ããªããã7/27(å)ãTechRAMENã§éããããã°ãæ®ãã¾ãã èãããã¼ã¯ãèãããã¨ãæ¸ãåºãã¦ããå½¢ã«ãªãã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ TechRAMEN 2024â¦
ã¯ããã« ã¯ãã£ï¼ nikkieã§ãã TechRAMENã§è©±ãPythonã®ä¾åã©ã¤ãã©ãªç®¡çãã¼ã«ã®è£è¶³è¨äºã§ãã ãã£ãããç´¹ä»ããã®ã§ãæ¯è¼è¡¨ãè¨äºã«ãã¦ã¿ã¾ãã ãªãã使ãåºãããã¼ã«ãå«ãã®ã§ã2024å¹´7ææç¹ã®èªèã§ãã ä»å¾ä½¿ã£ã¦ããä¸ã§ç解ãæ·±ã¾ã£ã¦â¦
Pythonã®ããã±ã¼ã¸ç®¡çãã¼ã«ã触ãåºãä¸ã§ã®ç¦1 ç®æ¬¡ ç®æ¬¡ æ°ã«ãªãHatch Hatchã§èªåã ãã®ã¯ã½ã©ã¤ãã©ãªãä½ãæ¹æ³ Hatchã®æ©è½ãã試ã ãã©ã¼ããã¿ ãã¹ã åãã§ã㯠è²ã 触ã£ã¦ãããã¡ã«ã§ãã¦ããeditable install çµããã« æ°ã«ãªãHatch Pythâ¦
ã¯ããã« çªå¼¾ãã¯ãnikkieã§ãã ããããªãã¼ã«ãè¦ã¦ããä¸ã§ãç§ãã»ããPythonã®ããã±ã¼ã¸ããã¼ã¸ã£ã®èªä½ã«è¸ã¿åºãã¾ããã ã¾ã EXPERIMENTALï¼ã¤ã¾ãã¯èªåç¨ï¼ã§ãï¼ ç®æ¬¡ ã¯ããã« ç®æ¬¡ 調 shirabeã§ä»®æ³ç°å¢ãä½ã ç§ã®ã»ããä»®æ³ç°å¢ çµããã«â¦
ã¯ããã« ããããããèªçæ¥ããã§ã¨ããããã¾ãï¼ nikkieã§ãã Pythonã®åãã³ãã®ä¸ã§ããã¤ããªã¨æãã¦ããtyping.TypeVarã¨ä»²è¯ããªãä¸æ©ç®ãè¸ã¿åºããã¨æãã¾ãï¼ ç®æ¬¡ ã¯ããã« ç®æ¬¡ åãã³ãå ¥éã§è¦ãããã³ã¼ãï¼2ã¤ã®æååãå¼æ°ã«åããâ¦
ã¿ã¤ãã«ã§æå¾ ããæ¹ã«ã¯æåã«ããããªãããªã®ã§ããã0.11.1ã§ã¯ã§ãã¾ããã ãããã§ããããã«ããå¤æ´ã¯ãã¼ã¸ããã¦ãããGitHubããã¤ã³ã¹ãã¼ã«ããã°ã§ãã¾ãï¼0.11.2.dev0ï¼ ã¯ããã« ãã±ãããç¨æããã¦ã»ãã ãnikkieã§ãã æè¿ã®Today Iâ¦
ã¯ããã« ããã°ã©ãã³ã°ãã¦ãè±å²å¤ãããµãµãnikkieã§ãã Pythonã§åãæ¸ãã¦ãã¦å°ãªãã¨ã2å¹´ãåã㦠reveal_type()ãç¥ãã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ reveal_type()ãä¸è¦ã«å¦ãã mypy以å¤ã®åãã§ãã«ããµãã¼ã Python 3.11ããtyping.reveal_typeâ¦
ã¯ããã« é岡ã¨ããã°ããããã£ã³â³ãnikkieã§ã ã¿ã¤ãã«ãå ¨ã¦ã§ã ç®æ¬¡ ã¯ããã« ç®æ¬¡ PyCon mini Shizuoka 2024 ã©ã¤ãã©ãªéçºè ã«è´ãããã®ã³ã°ã§NullHandler以å¤ã¯ããã¾ããã æ¦è¦ 詳細 主張 ã¢ã¦ãã©ã¤ã³ ãã®é¡æãé¸ãã çç±ããã£ãã ãªã¼ãâ¦
ã¯ããã« ããªãªã³ã©ã¤ãï¼ã¯å ¨å¡ãã»ã³ã¿ã¼ï¼ ç¥ã»ä¸»æ¼å¶å ¬æ¼ nikkieã§ãã ããããã¨ã«æ°ã¥ãã¦ãã¾ãã¾ããã ä½åº¦ãä½åº¦ãä»®æ³ç°å¢ãä½ãä¸ã§å¢å°ã«éããããããã¯ãå¤ã®æãã®ããããããã¾ããã ç®æ¬¡ ã¯ããã« ç®æ¬¡ Pythonãã¥ã¼ããªã¢ã«ãã 俺â¦
ç®æ¬¡ ç®æ¬¡ å¹ãä¸ããï¼ ã¤ã³ã¹ãã¼ã« 使ãæ¹ çµããã« P.S. ããªãªã³ã©ã¤ãï¼ã·ãªã¼ãº å¹ãä¸ããï¼ ã¢ãã¡ ã¢ã¤ãã«ãã¹ã¿ã¼ ããªãªã³ã©ã¤ãï¼ 1話ãã ãããã¥ã¼ãµã¼ã翼ã«éã£ããã£ãã1 ä»æ¥ã¯ãç²ãæ§ãã¢ã¤ãã«ã® 件ãåãã¦ããã¦æ¬å½ã«ãã ãã¨â¦
ã¯ããã« HOTCHPOTCH FESTIV@L!! ï¼ãå¾ ã£ã¦ã¾ãï¼1 nikkieã§ãã Pythonã®package managerã¯ãsimpleï¼ï¼ã¬ã´ãããã¯ï¼ãªã¢ã¸ã¥ã¼ã«ãçµåãããããããªææ¡ãåå¨ãã¾ã2ã ãã®ä¸ã§æè¿æ°ã«ãªãHatchã«ã¤ãã¦ã®è¦æ¸ã§ãã ããããã試ãã¦ãããï¼ãã¨â¦
4å30ç§ã¨çããããªã§ãããäºæãã¦ãã以ä¸ã«å¦ã³ãããã¾ããã ç®æ¬¡ ç®æ¬¡ Causal Language Modeling å ¥å æ£è§£ã©ãã« Causal Language Modeling éã«ããã¨ãããã¹ãçæã ããã¾ã§ã«ä¸ãããããã¼ã¯ã³åãã次ã®ãã¼ã¯ã³ãäºæ¸¬ãã¾ã ãããªä¸ã®ä¾â¦
ã¯ããã« ï¾ï½³ï½¶ï¾ï½¬ï¾1 nikkieã§ãã trlã¨ããã©ã¤ãã©ãªã使ã£ãLLMã®ãã¡ã¤ã³ãã¥ã¼ã³ã®ãã¥ã¼ããªã¢ã«ã«éå»ã«åãçµã¿ã¾ããã ãã®ä¸ã§ãèªç¶è¨èªã®ããã¥ã¡ã³ãã§ã¯ã©ããç´°ããç¹ãæ確ã«åããã¥ãããå®è£ ãè¦ãã®ãæã£åãæ©ããã¨æãå§ãã¾ããã â¦
ã¯ããã« åãåã£ã¦... ã¯ã±ãã£ã¦... SideM 10thãã¢ã¼ãããã¯ãã§ããï¼ï¼ nikkieã§ã1ã ã¡ãã£ã¨ããªããã¼ãªè¦ãç®ã®Pythonã®ã¤ãã£ãªã zip(*[iter(s)]*n)ãå®å ¨ã«ç解ãã¾ããã ç®æ¬¡ ã¯ããã« ç®æ¬¡ çµã¿è¾¼ã¿é¢æ°zip()ã®ããã¥ã¡ã³ã zip()ã§ãã£ã³â¦
ã¯ãã㫠大å祥寺.pmãããã¨ããããã¾ããï¼ Perl Mongerã«ãªã£ã nikkieã§ãã jqã«ã¤ãã¦ã®å¦ã³ã®ã¢ã¦ããããã§ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ JSONãä½ããã ç´ æ ä½ãããJSON ä»åã®å®è£ æ¹æ³ ããã¹ããã¡ã¤ã«ãèªã¿è¾¼ãã§ã²ã¨ã¤ãªãã®ããã¹ããä½ã è¤â¦
ã¯ãã㫠種ç°æ¢¨æ²ããããèªçæ¥ããã§ã¨ããããã¾ãã Act-4ãæãåºãã¦ããããã1 nikkieã§ãã grepãæ£è¦è¡¨ç¾ã¾ããã§æè¿ã®å¦ã³ã§ã ç®æ¬¡ ã¯ããã« ç®æ¬¡ grep -o è¯å®å èªã¿ è¯å®æ»ãèªã¿ çµããã« grep -o 大å¤ãä¸è©±ã«ãªã£ã¦ããgrepã ããã¹ã¿â¦
ã¯ããã« ä»é±ã®ãé¡ãå·ããé£ã¹ç©ããnikkieã§ãã 1æ¥1ã¨ã³ããªã®ä¸ã§ã¯ä¸å®æã§ããã¾ãã«æ®ããåãã綴ã£ã¦ãã¾ã1ã ä»åã¯ãçªç¶ã«120%ã®å¤ããã£ã¦ããä»ãã¯ã¾ã£ã¦ããé£ã¹ç©ãåãä¸ãã¾ãã ãã¿ã®1ã¤ã¨ãã¦ãããªãã¨èãã¦ãããã7/8é±ã®ãé¡â¦
ã¯ããã« ããããç¾ååãããããæã®å³ãããã nikkieã§ã logbackã触ãä¸ã§èªãã ããã¥ã¡ã³ãããèå³æ·±ãç¹ãæ¸ãçãã¾ãã Pythonã®loggingæ¨æºã¢ã¸ã¥ã¼ã«ã«ãããã®ã³ã°ã¯ç¥ã£ã¦ãã¦ãJavaã®logbackãç¥ã£ã¦ã®ææ³ã¨ãã£ã趣ã§ãã ç®æ¬¡ ã¯ããã«â¦
ã¯ããã« ç´èã¡ããããªã³ã¯ããããã nikkieã§ã æè¿å¦ãã Javaã®loggingã«ã¤ãã¦ã§ãã ç´ æ¯ãã®ããã«ç¨æããããã¸ã§ã¯ãï¼SLF4J + logbackï¼ã使ã£ã¦ããã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ logback.xmlã§configuration! ãã¡ã¤ã«ã«åºåããappenderã追å â¦
ã¯ããã« ã½ãã¼ nikkieã§ãã Javaã§ã®loggingãç·´ç¿ããããããã¸ã§ã¯ããä½ãã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ IntelliJ IDEAã§ããã¸ã§ã¯ãä½æ IntelliJ IDEAããã ãã§ãªããã³ãã³ãã©ã¤ã³ã§jarãã¡ã¤ã«ã渡ãã¦ãå®è¡ã§ããããã«ãã SLF4Jã¨logback çµâ¦
ã¯ããã« ããããã765ããã©ã¤ãã·ã¢ã¿ã¼ã§ä»æã人ããã¦ããã¾ããnikkieï¼ã«ã£ãã¼ï¼ã¨ç³ãã¾ãã ãããä»åã¯ä»æã人ã«å ¨æ¯ãï¼ ã«ã£Pã§ã1ï¼ å¾åæéï¼7/7ï¼ã«ç§èåã£ã±ãã§ã¹ãã£ãã«ã§ã¹ã¿ã³ãã©ãªã¼ã楽ããã§ãã¾ããï¼ ãã®æ¥å ±ã§ãã â»ãã§â¦
ã¯ããã« æ°ããå£ç¯ã¨èª°ãã®ãµã¤ã³âª1 nikkieã§ãã ã17æã®å¸å½ãã¨ãããã©ãã«ã¤ãã¦ãæè¿æããã¨ã綴ã£ã¦ããã¾ãã â»ä½åã®ãã¿ãã¬ããã§ã ç®æ¬¡ ã¯ããã« ç®æ¬¡ 17æã®å¸å½ï¼2022å¹´ï¼ é話ä¼é¡ï¼Pythonãããåºæ¼ï¼ï¼ 大è¦æ¨¡è¨èªã¢ãã«ã£ã¦ãã ãã¶â¦
GitHub Actionsã®å°ãã¿ã§ãã crontabã®ããã«ã¹ã±ã¸ã¥ã¼ã«ã§èµ·åããæ¹æ³ãç¥ãã¾ããã ç®æ¬¡ ç®æ¬¡ ã¹ã±ã¸ã¥ã¼ã«ã§èµ·åããGitHub Actions è¨å®ã®èæ¯ï¼sphinx-new-tab-linkãªãã¸ããªã«ã¦ GitHub Actionsã®ã¹ã±ã¸ã¥ã¼ã«ã®è¨å® è¤æ°ã®onã«scheduleãå ããâ¦
ã¯ããã« ï¼ä»å¹´ã1ï¼æããã¾ãã ...... nikkieã§ãã ... å¤ãæ¥ãã®ã«æµæãã¹ããJavaã®Spring2ã触ã£ã¦ããã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ Javaã®Webã¢ããªã±ã¼ã·ã§ã³ãç¥ããã Spring Bootã®Webã¢ããªã±ã¼ã·ã§ã³ãèµ·åãã Spring Initializrã§ããã¸ã§ã¯â¦
å°ãã¿ã§ãã ç®æ¬¡ ç®æ¬¡ å 人ã®è¨äºãã¡ åä½ç°å¢ æé Tomcatã®ãã¦ã³ãã¼ã ã¹ã¯ãªãããæä½ ãµã³ãã«ã¢ããªãåãã çµããã« å 人ã®è¨äºã㡠以ä¸ã®æé ã«åãã¾ããã ï¼è¿½è¨ 2024/07/04ï¼ Tomcatã®ããã¥ã¡ã³ããè¦ã¦ããã¨ããããã®è¨äºã®æé ã®å¤§â¦
ã¯ããã« ãã£ãä¸äººã®ãç§ã®åé... nikkieã§ãã ãã®è¨äºã§ã¯ The Zen of Python ã訪ãã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ The Zen of Python ããã¼ãã§ã¯ãPythonï¼»æ¹è¨2çï¼½ã ç³æ¬ æ¦å¤«ããããã° The Zen of Python ã¯ã¸ã§ã¼ã¯ è½ç©æ¾ã ææ³ï¼çµããã«ã«ä»£â¦