2024-06-01ãã1ã¶æéã®è¨äºä¸è¦§
ãªãªã¼ã¹å ±åã¨ã³ããªã§ãã ãsphinx-new-tab-linkã¨ã¯ãªãã ãããã¨ããæ¹ã¯ã以ä¸ã®è¨äºãã¾ãã©ããï¼ ç®æ¬¡ ç®æ¬¡ sphinx-new-tab-link 0.5.0 ãã©ã¦ã¶ã®æ°ããã¿ãã§éããªã³ã¯ã«ã¢ã¤ã³ã³ãæ·»ãã å®è£ éç¨ çµããã« sphinx-new-tab-link 0.5.0 è¨å®å¤nâ¦
ã¯ããã« ãã¼ããï¼ãã ãã nikkieã§ã ã¿ã¤ãã«ãå ¨ã¦ã§ã ç®æ¬¡ ã¯ããã« ç®æ¬¡ TechRAMEN 2024 Conference ä¼å ´ï¼å¤§éªã¯ãªã¹ã¿ã«ãã¼ã« ã¿ã¤ã ãã¼ãã« ãã±ãã one obvious wayãå¿åããPythonã«ä¾åã©ã¤ãã©ãªç®¡çãã¼ã«ããã£ããããã話 ãRust製â¦
ã¯ããã« æªæ¥ã¡ãããèªçæ¥ããã§ã¨ããããã¾ãï¼ nikkieã§ã å æ¥åãä¸ããsphinx-designã®:octicon:ãã¼ã«ãã©ã®ããã«å®è£ ããã¦ããã®ãè¦ãã¾ããã ç®æ¬¡ ã¯ããã« ç®æ¬¡ sphinx-designã®:octicon:ãã¼ã« OcticonRoleã¯ã©ã¹ get_octicon()é¢æ° get_oâ¦
Today I Learnedã§ãã Sphinxæ¡å¼µ1éçºããã¦ãã¦ãã¦ã¼ã¶ãconf.pyä¸ã®å¤æ°ã§è¨å®ã§ããããã«ãããã¨æãã¾ããã Sphinxã¢ããªã±ã¼ã·ã§ã³ã®add_config_value()ã¡ã½ããã§å®ç¾© Builderã®configå±æ§ã§ã¢ã¯ã»ã¹ Sphinxã¢ããªã±ã¼ã·ã§ã³ãTranslatorã¯Buildâ¦
Today I Learnedã§ã bashã§æååãªãã©ã«ã並ã¹ãã¨ã¤ãªãã Pythonã®æååãªãã©ã«ããããªã bashã®æååãªãã©ã«ã並ã¹ã¦ã¤ãªããã®ãå©ç¨ãã¦JSONå½¢å¼ã®æååãä½ããããç§ã¯jqã³ãã³ãæ´¾ æ£å¸¸ç³»ã¯ããããç°å¸¸ç³»ï¼ããã«ã¯ã©ã¼ããå«ãæååãªã©â¦
ã¯ããã« ã¨ããªã¼ã¡ããããã£ã¡åãã¦ã nikkieã§ãã 以ååãä¸ããsphinx-designã«ã¤ãã¦ãå°ãã¿ã§ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ sphinx-designã¨ã¯ï¼by ãµã³ã·ã£ã¤ã³æ± å´é¢¨LLMï¼ Octiconã®ã¢ã¤ã³ã³ãï¼ çµããã« sphinx-designã¨ã¯ï¼by ãµã³ã·ã£ã¤ã³æ± å´é¢¨â¦
ã¯ããã« éåããªãæ°æã¡ã ç§ã®éæ¨âª1 nikkieã§ã ããæè¿Google Cloudã®Cloud Loggingã触ããã¨ãå¤ããç¥ã£ããã¨ãæ¸ãçãã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ Cloud Loggingã¨ã¯ï¼by ãµã³ã·ã£ã¤ã³æ± å´é¢¨LLMï¼ ãã°ã¨ã¯ã¹ããã¼ã© ãã°ãGCSã¸ã³ãã¼ çµããâ¦
ä¼ããããã¨ï¼ LLMã使ãã°ããµã³ã·ã£ã¤ã³æ± å´é¢¨ã®èª¬æãçæã§ãããï¼ ã¯ããã« ã¦ã¼ãã©12話ã®TLã«æãè¾¼ãã«ã¯ä¸è¬¹æ ããããã¾ãããããããä»æ¥ä¸çªæ¸ããããã¿ãªã®ã§ãã£ã¦ããã¾ãï¼ nikkieã§ãã éå±ãªãã¨ã¯Pythonã«ããããããªãã¬ãæè¡ãâ¦
ã¯ããã« ã¢ã½ãã¹ãã¢ã§LOVEãããï¼ nikkieã§ãã 趣å³ã®ããªã·ã¿ã¨ã³ããªãæ¸ãã¦ããã¾ãããLLMã追ã£ã¦ããç«å ´ããæè¡ãããã¯ã¨æªéåä½ããã¾ãã ããªãªã³ã©ã¤ãã®æ¥½ãã¿æ¹ã¯"RAG"ãªãã ãªãã¨æãå§ãã¦ããã¨ããå 容ã§ãï¼ãã®æç¹ã§ã ãã¶æâ¦
ã¨ã¼ã¸ã§ã³ããå©ããªãã§ï¼ã ç°¡ç¥çã§ãå±ããã¾ãã ç®æ¬¡ ç®æ¬¡ Copilot Chatã§@ ãã¾ãï¼è³å ã§ã¯é¿ãæãã㯠Copilot Chatã§@ VS Code Conferenceã§æã¡å¸°ããã®ãå¤ãã£ãGitHub Copilot ã¨ã¼ã¸ã§ã³ããªããã®ã@ã§ä½¿ããã¨ç¥ãã¾ã Copilotæ¡å¼µã®ããâ¦
ã¯ããã« ä¼è¤å¡çèªç çãä¸ãã£ã¦ããï¼1 nikkieã§ãã æ¥ï¼5æï¼ã«ãããã¼ã¶ã«ãåºãåå¿é²ã®ã«ã¬ã³ãã¼ãä½ãã¾ãã2ã 1ã¶æããçµã£ã¦ãã¾ãããããããã¼ã¶ã«åéä¸ã®ã«ã³ãã¡ã¬ã³ã¹ãã©ãã©ãåºã¦ãã¦ãã¾ãï¼ èªåç¨ã«æ°ã«ãªãã«ã³ãã¡ã¬ã³ã¹ã¾â¦
ã¯ããã« ããåã®ãããããã¨ãçå±ã«éãã£ã¦ãã£ã¦ãã¨ãããªãã ãã ããã®ããã馬鹿ãã¦ãã£ã¦ã ãã ãã1 nikkieã§ãã å ¬éæ¥ããæã®å¦ã³ã«ãªãã®ã§ãããToday I Learnedã§ãã git revert ããããå°ãã¤ãããæãã§ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ gâ¦
ã¯ããã« ç©´æã£ã¦åã¾ã£ã¦ã¾ãã 1 nikkieã§ãã å ¬éæ¥ã®å¦ã³ã§ã¯ãªãã®ã§ãããToday I Learnedã§ãã ç§ãMySQLã®ãµãã¯ã¨ãªã¨ãããã®ãå ¨ç¶åãã£ã¦ãã¾ããã§ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ ãããããã¨ï¼IDãåæãã¦DELETEããã çµé¨ãããã¨ï¼ãµãã¯ã¨â¦
rasbtããã«ãªãã£ã¦ãMacBookä¸ã§Llama 3ãåããã¦LLMã®åºåãè©ä¾¡ããã¦ã¿ã
æãæ©æ¢°å¦ç¿ã®ã¨ã¼ããrasbtæ°1ãèå³æ·±ããã¨ããã£ã¦ããã®ã§ãã¯ã£ã¦ã¿ã¾ã Was toying around with LLM model eval that run well on a laptop. Turns out Llama 3 8B Instruct is a pretty good evaluator that runs on a MacBook Air. I got a prettyâ¦
ã¯ããã« ä¹ ç¾åé¨é·ãã¢ã¤ãã«ã«èå³ããã¾ãããï¼ nikkieã§ãã ã¹ã¿ããããã¦ããæ¯æã®ã¿ããªã®Pythonåå¼·ä¼ã6æã®åãè¿ã¥ãã¦ãã¾ããã ãç¥ããã¨ã³ããªãããããã¾ãã â»ããã«æ¸ãã¦ããã®ã¯ãããã¾ã§ä¸å人ã®è¦è§£ã§ãï¼ã¹ã¿ããã代表ãããâ¦
å ¬éæ¥ã®å¦ã³ã§ã¯ãªãã®ã§ãããToday I Learnedã§ãã ç®æ¬¡ ç®æ¬¡ åºçºç¹ï¼EXISTSã¨æ«æçµåãç¥ã£ãè¨äº JOINããæ¡ä»¶ã§DELETEãã çµããã« åºçºç¹ï¼EXISTSã¨æ«æçµåãç¥ã£ãè¨äº 2ã¤ã®ãã¼ãã«ãæ±ãã¾ããã Products Order_Details Order_Detailsã«ãªâ¦
Pythonæ¡å¼µã«ããã³ãã³ããSelect Interpreterãã¨ãè¨å®ã®python.defaultInterpreterPathã«ç¹ããããããã¨ã«æ°ã¥ãã¾ããã ç®æ¬¡ ç®æ¬¡ VS Codeã®Pythonæ¡å¼µ ãWorking with Python interpretersãï¼Python environments in VS Codeï¼ python.defaultInteâ¦
ä¸çä¸ããããã¨ããªã¼ã¡ããæµãã¦ãã¦ãã ããããã®ã¿ãã¼ãï¼â nikkie / ã«ã£ãã¼ ææ¸å ã-04 Pythonåãã³ãæ¬ (@ftnext) 2024å¹´6æ12æ¥ ç®æ¬¡ ç®æ¬¡ éæºå° Pythonã§ä¸çä¸å¯æã å®è£ 解説 çµããã« çªå¤ï¼ä¸çä¸å¯æãç§ã§ç³ã訳ãªã P.S. ãé£ç¶ãâ¦
以åæ¸ããpipx runã®tipsãè£è¶³ãã¾ãã % PYTHONINSPECT=1 pipx run ./script.py >>> ç®æ¬¡ ç®æ¬¡ Pythonã¹ã¯ãªãããpipx runã§å®è¡ããå¾ã«å¯¾è©±ã¢ã¼ãã«å ¥ãã«ã¯ãPYTHONINSPECTç°å¢å¤æ°ãæå®ãã pipx runã¯ä»®æ³ç°å¢ãä½ã å®è£ ã¯subprocess.runã§ä»®æ³ç°â¦
ã¯ããã« æ°ã¥ããã ã¯ã¦ãªãããã« è¼ã£ã¦ãã nikkieã§ãã PEP 723ãä¸é¨ãµãã¼ãããpipxãããã®ã¨ãã好ã好ãã§ããããåãç®çãdev containerã§ãæãããã®ãï¼ãã¨æ°ã¥ãã¾ããã dev containerã¨ããèªã¯èãããã¨ãããã¾ããããä»ååãã¦â¦
ã°ã¼ãï¼ ï¼ããã¯ããã°æ´æ°ãã¾ããï¼ï¼¼ã»1ã¤ã®ãã¨ãããªãå°ããPythonã¹ã¯ãªãããæ¸ããã»æè»ãªãã¡ã¤ã«å ¥åºåã«å¯¾å¿ããUnixã³ãã³ãã®ããã«çµã¿åãããã»ãã¼ã¿ããªãã£ã®é«ãä¾å管çæ¹æ³ãæ¡ç¨ãããã²ãã§ãã¯ãã¦ã¿ã¦ãã ãã https://t.co/7â¦
ã¯ããã« ã¦ã¼ãã©3æ10話ãå§åçã«å ã ãã"ã¦ã¼ãã©"ã ã£ã nikkieã§ã venvã¨virtualenvã®é¢ä¿æ§ãããã¾ã§ãããå°ãã ãæ£ç¢ºã«ç解ã§ããã¨æããã¾ã ç®æ¬¡ ã¯ããã« ç®æ¬¡ Pythonã®ä»®æ³ç°å¢ virtualenvã¯venvã«å§è²ãã venvã®EnvBuilder çµããã« Pytâ¦
ã¯ããã« ä½ããããããè¦ããã¢ãã1 nikkieã§ãã ç¥ç好å¥å¿ãæºããããã«ãPythonã®venvã¢ã¸ã¥ã¼ã«ã«é ¼ãããä»®æ³ç°å¢ãæä½ããã¾ãã â»ããã¯å¦ç¿ç¨éãªã®ã§ãå®éã«ã¯venvãvirtualenvãé ¼ã£ã¦ãã ããï¼ ç®æ¬¡ ã¯ããã« ç®æ¬¡ Pythonã®ä»®æ³ç°å¢ ã³ãâ¦
ã¯ããã« Clover Days ãç²ããã¾ã§ããï¼ nikkieã§ãã ããªã·ã¿ã®è¨äºãã¨æããã¦ããã¦ãç§ã®ä¸ã§ã¯ã½ããã¦ã§ã¢éçºã«ãéããã¨ããèãæ¹ã«ã¤ãã¦ã¤ãã¤ãã¨æ¸ãã¦ããã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ ããªã·ã¿ ãªãã¡ã¯ã¿ãªã³ã° 1æ¥1ã¨ã³ã㪠æ©è½éçºã§â¦
ã¯ããã« æ°ã¥ããã ããã¯ãã¼ã¯ã« è¼ã£ã¦ãã nikkieã§ãã ææ¥6/7(é)ã®Lint Nightãã¨ã¦ã楽ãã¿ãªã®ã§ãäºç¿ã¨ã³ããªãæ¸ãã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ Lint Night #3 szkdashãããlintnet - General purpose linter powered by Jsonnetã Linda_ppãâ¦
Today I Learned1ã§ãã ç®æ¬¡ ç®æ¬¡ Hugging Faceã®Text Generation Inference Guidance (Tutorialãã) ããã¥ã¡ã³ããããGuidanceã®æ¦å¿µ çµããã« Hugging Faceã®Text Generation Inference A Rust, Python and gRPC server for text generation inferenceâ¦
ç©ãèªå®£è¨ã¨ã³ããªã§ãã ãã£ã¨ä¸èªããææ³ãè¿°ã¹ã¦ãã¾ãã ç®æ¬¡ ç®æ¬¡ ã¨ã ã¹ãªã¼ããã¯ããã¯5ï¼æè¡æ¸å ¸15ï¼ ç¬¬6ç« ãã¼ãããä½ãèªä½ Python Package Manager å ¥éã çµåãã¦ããã±ã¼ã¸ããã¼ã¸ã£ã¼ çµããã« P.S. æè¿ã®ã°ããããã ã¨ã ã¹ãªã¼ãâ¦
ããªã·ã¿è¨ã§ãã ç®æ¬¡ ç®æ¬¡ Clover Days Blooming Clover è¼ãã®åããå´ã¸ï¼åä¸æ çµããã« ãã¾ã Clover Days ï½·ï½²ï¾ï¾ï¾ åºä¼ãã¯2æã®Act-4ã ãããªãªã³ã©ã¤ãï¼ã10å¨å¹´è¨å¿µãã¢ã¼ãAct-4 MILLION THE@TER!!!! ãDAY2 ãæ¥å ´ã»ãè¦è´ããã ããããã¨ãâ¦
ã¯ããã« æã ã¯ç¾é¬¼å¤è¡ãè¡ãï¼1 nikkieã§ã ç· åã«è¿½ãããå®ç§ä¸»ç¾©è åãã®Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯Djangoã¯ãã¦ã¼ã¶ã®èªè¨¼æ©è½ãããããªåãã¦ãã¾ãã ä¾ãã°Django Girls Tutorialã§ã¯ãå°ãã®ã³ã¼ãéã§ãã°ã¤ã³ãå®è£ ãã¦ãã¾ãã httpsâ¦
ã¯ããã« ããªãªã³ã©ã¤ãï¼ Blooming Cloverããã£ã¡ããã nikkieã§ã ãä¹ ãã¶ãã®æã®ãµããããã§ãã 1æ以æ¥ã§ãã 5æãã©ããªæã ã£ããããµããããã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ 1æ¥1ã¨ã³ããªç¶ç¶ä¸ Go!Go!!Go!!! æè¡ã¾ãã èå³ã®ããããã㯠ç»å£â¦