2022-05-01ãã1ã¶æéã®è¨äºä¸è¦§
ç°å¢ Ubuntu 20.04 ãããããã¨ ä¹ ã ã«HDDæ´çãã¦ããããã¦ã³ãã§ããªãHDDãåºã¦ããã GPartedã§è¦ãã¨ã©ããExt4ã®ãã¼ãã£ã·ã§ã³ãªã®ã¯ééããªãã®ã ãããã¦ã³ããããã¨ãã¦ã # mount -t ext4 /dev/sdb1 /mnt/disk1 mount: /mnt: /dev/sdb1 ã®ã¹â¦
ç°å¢ Python 3.10 fastapi v0.75 ããããã㨠fastapiã¨ããPython製APIãã¬ã¼ã ã¯ã¼ã¯ããã fastapi.tiangolo.com APIãå¤é¨ã®å¥ã®APIãå¼ã³åºããã¨ã¯ãããããfatsapiããã¤ãã£ãã§éåæ(async)ã«å¯¾å¿ãã¦ãããã¨ãããã ãã£ãããªã®ã§HTTPãªã¯ã¨â¦
ç°å¢ Python 3.10 from typing import Optionalããªãã¦è¯ããªã£ã æ¨ä»ã®Pythonã§ã¯åã¢ããã¼ã·ã§ã³ãæµè¡ã£ã¦ãããããã®ä¸ã§ãOptionalã¯ä½¿ãæ©ä¼ãå¤ã ä¾ãã°Pythonã®çµã¿è¾¼ã¿ã¡ã½ããã§ããstr.startswith()ã¯æååãæå®ãããæååããéå§ãã¦â¦
ç°å¢ fastapi v0.75 ç¶æ³ 以ä¸ã®ãããªã¨ã©ã¼ãåºã¦åããªã pydantic.error_wrappers.ValidationError: 1 validation error for User response -> 0 value is not a valid dict (type=type_error.dict) main.pyã³ã¼ãã¯ä»¥ä¸ ããããã³ã¼ããªã®ã§æç²ã®ã¿ fâ¦
ç°å¢ fastapi v0.75 ã¢ãã«ãï¼ã¤ãã? fastapiãã£ã¦ãã¨ãå¤ãã®ãã¥ã¼ããªã¢ã«ã§models.pyãschema.pyãåºã¦ããã ãããã®éãããã¾ãã¡åãããæ··ä¹±ããã®ã§ã¡ã¢ models.pyã¯SQLAlchemyç¨ãschema.pyã¯Pydanticç¨ãã¡ã¤ã« å®éã®ã½ã¼ã¹ã³ã¼ãã§ã¯ä½ãâ¦
ç°å¢ VSCode 1.66.2 Pylance æè¿ã ã¨VScodeã®Python Language Serverã¯ãPylanceãããªã¹ã¹ã¡ã¨è¨ãè¨äºãããè¦ã ç¾ç¶ä¸æºãããããã§ã¯ãªããããã£ããã®GWã§ãããã®ã§å°å ¥ãã¦ã¿ã ã¤ã³ã¹ãã¼ã« æ®éã«æ¡å¼µæ©è½ã¨ãã¦ã¤ã³ã¹ãã¼ã«ããã ããããè¦ãâ¦
æå¾ã«pyenvã®è¨äºæ¸ãã¦ããã ãã¶æéçµã£ã¦ãã¾ãç¶æ³ãå¤ãã£ã¦ãã¾ã£ã¦ããã®ã§å度ã¡ã¢ thr3a.hatenablog.com git clone https://github.com/pyenv/pyenv.git ~/.pyenv 以ä¸ã~/.zshrcã«è¨è¿° export PATH="$HOME/.pyenv/bin:$PATH" eval "$(pyenv initâ¦
ç°å¢ Ubuntu 20.04 ããããã㨠ãµã¼ãã¼éç¨ãã¦ããã¨ï¼ã¤ã®ã³ãã³ãã§ãè¤æ°ã®ãã¼ã¸ã§ã³ãï¼ã¤ã®ãµã¼ãã¼ã«ã¤ã³ã¹ãã¼ã«ããããªãã ããåãæ¿ããã¨ã¤ãªã¢ã¹ã§ããã¨ç®¡çãããããªããªã£ã¦ç ´æ» ã«åãããããã§Ubuntuæ¨æºã«ããupdate-alternativesâ¦
ç°å¢ Ubuntu 20.04 ããããã㨠Ubuntuã§å ¬å¼ä»¥å¤ã®ããã±ã¼ã¸ç¾¤ï¼PPAï¼ã使ãããå ´å㯠add-apt-repository ã³ãã³ãã使ç¨ããããã«å ¬å¼ã§ã¯æ¨å¥¨ããã¦ããã ããadd-apt-repository ã³ãã³ãã¯æ¨æºã§ã¯å ¥ã£ã¦ããããapt install software-propertiesâ¦
Essential Phone(PH-1)ã«Rootç°å¢å ¥ããã®ã§ã¡ã¢ ç°å¢ Essential Phone(PH-1) Magisk v24.3 LineageOS 18.1 大ã¾ããªæµãã¯LineageOSã®å ¬å¼Wikiãä¸çªã詳ãã wiki.lineageos.org TWRPã¯ã¤ã³ã¹ãã¼ã«ããªãã®ï¼ LineageOSã®ãªã«ããªã¼ã¤ã¡ã¼ã¸ã§æä½éã®ä½â¦