2021-01-01ãã1ã¶æéã®è¨äºä¸è¦§
æ¦è¦ ãµã³ãã« æ¦è¦ Qiitaããã«ä»¥ä¸ã®è¨äºãããã¾ããã qiita.com é¢ç½ãããªãé¡ãªã®ã§ãå¥åçãããã«ã¡ã¢ã¡ã¢ã ä¸ã®è¨äºã§ã¯ã対象ã¨ãªãç¯å²ã seq ã³ãã³ãã§åå¾ãã¦ãã£ãããã¾ããã ãã®å ´åã 㨠shuf ã³ãã³ãã®æ¹ã楽ããããã¾ãããã shâ¦
æ¦è¦ ãµã³ãã« æ¦è¦ å°ãã¿ãããå¿ããã®ã§ã¡ã¢ã¡ã¢ãç¥ã£ã¦ãã¨ã¡ãã£ã¨ä¾¿å©ã§ãã ã·ã§ã«ã¹ã¯ãªããã§ã®ã³ã¡ã³ãã¢ã¦ã㯠# ã§ãããè¤æ°è¡ãä¸æ°ã«ã³ã¡ã³ãã¢ã¦ããããå ´åã«æ¯è¡ã« # ãä»ä¸ãã¦ããã®ã¯ã¡ãã£ã¨ããã©ãããããã³ã¡ã³ã解é¤ããã¨ãâ¦
æ¦è¦ ã«ã¼ã½ã«ç§»åç³» ã¢ã¼ãå¤æ´ã¨å ¥å æååãç³» Shift-JIS ã®å ´å EUC-JP ã®å ´å æ¤ç´¢ç³» æ®éã®æ¤ç´¢ grep (vimgrep) ã¿ãå¹ ã¨ã èªåã¤ã³ãã³ãç³» ãã£ã¬ã¯ããªç§»åã¨ãå¥ã®ãã¡ã¤ã«ãéãããç³» æå¾ã« åèæ å ± æ¦è¦ ãã®è¨äºã¯ãvimã«å ¨ç¶æ £ãã¦ããªãâ¦
æ¦è¦ æ¦è¦ ç¥ããªãã£ãã®ã§ãã¡ã¢ã¡ã¢ã io/ioutil ããã±ã¼ã¸ã Go 1.16 ãã deprecated ãªäºå®ã«ãªã£ã¦ããã¿ããã§ãã www.srcbeat.com github.com ãã¨ã㨠ioutil ã«åå¨ãã¦ããé¢æ°ã¨ãã¯ããããã io ã os ããã±ã¼ã¸å´ã«ç§»åãããã¿ããã§ãâ¦
æ¦è¦ æ¦è¦ å¿ããªããã¡ã«ã¡ã¢ã¡ã¢ãå ¬éãã¦ãã ãã£ããã¨ã«æè¬ã forest.watch.impress.co.jp æ¬å¹´åº¦ã®æ¼ç¿ã®ãªã³ã©ã¤ã³å¯¾å¿ã®ããã«ä½ã£ãè³æããè¬ç¾©é¨åãåé¤ã㦠Blender ã®ä½¿ãæ¹ã ããã¾ã¨ãã PDF (1,419ãã¼ã¸ã288MB)ãå®ã¯ Blender ããã¾ãâ¦
æ¦è¦ ãµã³ãã« åèæ å ± æ¦è¦ å°ãã¿ãããå¿ããã®ã§ã¡ã¢ã¡ã¢ãç¥ã£ã¦ãã¨ã¡ãã£ã¨ä¾¿å©ã§ãã find ã³ãã³ãã¯ãããå©ç¨ããã³ãã³ãã§ããã-name ãªãã·ã§ã³ã®æå®ã«ã¯ ã·ã§ã« ã®ã¯ã¤ã«ãã«ã¼ãã¨åãæå®ããã§ãã¾ãããããå°ããç´°ããçµãè¾¼ã¿ããâ¦
æ¦è¦ åç §æ å ± æ¦è¦ ããå¿ããã®ã§ãããã«ã¡ã¢ã¡ã¢ãç¥ã£ã¦ãã¨ã¡ãã£ã¨ä¾¿å©ã§ãã vimã§ãã³ãã³ããå®è¡ãããã¨ã¯å¤ãã¨æãã¾ãããä»ã«ã¼ã½ã«ãããã¨ããã®æååããã³ãã³ãã®å¼æ°ã¨ãã«ãããå ´åãçµæ§ããã¾ããgrep (vimgrep) ãããããã¨ãâ¦
æ¦è¦ åèæ å ± æ¦è¦ ã¡ãã»ãã¨ãããããªç¾å ´ã§èããã¦çãã¦ããã®ã§ãã¤ãã§ã«ããã«ã¡ã¢æ®ãã¦ããã¾ããç¥ã£ã¦ãã人å¤ãã¨æãã¾ããã Windows10ã«ã¦ãGUIã¢ããªãä½ã£ãããWindows7ç°å¢ãã移è¡ãã¦æã£ã¦ãããã㦠ãã®ã¢ããªã«ã³ã³ãããã¯ã¹ãâ¦
æ¦è¦ ãµã³ãã« æ¦è¦ å°ãã¿ãããå¿ããã®ã§ã¡ã¢ã¡ã¢ã éçºæã«ç¹å®ã®ãã¤ããªãã¡ã¤ã«ãæ±ããããªã¨ãããã£ã¦ããã¾ã«ä¸èº«ããªã¼ã«ã¼ãï¼\0, NULLæå) ã®ãã¼ã¿ãã»ããã¨ãããã¾ã¼ã«ããã¾ãã ããããã¨ãã«ã大æµã¯ dd ã³ãã³ãã使ã£ã¦ä½ã£ãããâ¦
æ¦è¦ æ¦è¦ çµæ§ä¾¿å©ãªã®ã§ãããã«æ®ãã¦ããã¾ããããå¿ããã®ã§ã éçºæãªã©ã§ããã¾ã«ãã¼ãã«ãã¼ã¿ãã¬ãµã¼ã£ã¨ä¸æ°ã«ã¯ãªã¢ãããã¨ãã¨ããããã¾ãã ããããã¨ãã«ããã¼ãã«ä»æ§æ¸ã¨ããè¦ãªãããåé¤ããã¯ã¨ãªãä½ã£ã¦ãå ¨ç¶åé¡ãªãã®ã§ãâ¦
æ¦è¦ æ¦è¦ ç¥ããªãã£ãã®ã§ãå¿ããªããã¡ã«ã¡ã¢ã¡ã¢ãã ã¿ã¹ã¯ãã¼ã«è¡¨ç¤ºããã¦ããã¢ã¤ã³ã³ï¼èµ·åä¸ã®ãã®ï¼ããShift æ¼ããªãã å³ã¯ãªã㯠ããã¨ããã®ã¢ããªã®ã¦ã£ã³ãã¦ã¡ãã¥ã¼ã表示ããã¾ããã¢ããªã®ã¿ã¤ãã«ãã¼ãå³ã¯ãªãã¯ããã¨ãã«è¡¨ç¤ºãâ¦
æ¦è¦ æ¦è¦ ç¥ããªãã£ãã®ã§ãå¿ããªããã¡ã«ã¡ã¢ã¡ã¢ãã ã¿ã¹ã¯ãã¼ã«è¡¨ç¤ºããã¦ããã¢ã¤ã³ã³ããã¨ãã°ã³ãã³ãããã³ããã¨ããããã®ã¾ã¾æ®éã«ã¯ãªãã¯ããã¨ã¦ã¼ã¶æ¨©éã§ã¢ããªãèµ·åãã¾ãã ãããã®ã¨ãã« Ctrl+Shift ãæ¼ããªãããã¯ãªãã¯ãã¦â¦
æ¦è¦ æ¦è¦ ç¥ããªãã£ãã®ã§ãå¿ããªããã¡ã«ã¡ã¢ã¡ã¢ãã Ctrl+Shift ãæ¼ããªãããã¿ã¹ã¯ãã¼ãå³ã¯ãªãã¯ããã¨ã¡ãã¥ã¼ã®ä¸çªä¸ã« ã¨ã¯ã¹ããã¼ã©ã¼ã®çµäº ã¨ããé ç®ã表示ããã¾ããå¤åãWindows10ããã ã¨æã£ã¦ãã¾ããã»ã»ãï¼Win7ã®ç°å¢ã¯ããæâ¦
æ¦è¦ æ¦è¦ ããå¿ããã®ã§ããã«èªåç¨ã¡ã¢ã¡ã¢ã Google Chromeããã§ãããã¯ãã¼ã¯ãã¼ã«ãã¼ãã¼ãã§ã¢ã¯ã»ã¹ãããå ´å㯠Shift+Alt+B ã§ãã©ã¼ã«ã¹ã移ãã¾ãã ãã®å¾ã¯ãç¢å°ãã¼ã§ç§»åãã¦ç®å½ã¦ã®ããã¯ãã¼ã¯ãé¸æã ã¡ãªã¿ã«ãä¼¼ããããªæä½ã§â¦
æ¦è¦ Gitpod ã®è¨å®ãã¡ã¤ã« .gitpod.yml .gitpod.Dockerfile ä»åä½ã£ããªãã¸ã㪠æ¦è¦ Gitpod ã« MySQL ãåä½ãããããã® Dockerfile ãç¨æããã¦ããã®ã§ã試ãã¦ã¿ã¾ããã ããã ã¨ããã¼ã«ã«ã« MySQL ãå ¥ããå¿ è¦ããªãã¦ããã©ã¦ã¶ã ãã§è©¦ãã¾â¦
æ¦è¦ Gitpod ã®è¨å®ãã¡ã¤ã« .gitpod.yml .gitpod.Dockerfile ä»åä½ã£ããªãã¸ã㪠æ¦è¦ Gitpod ã« Postgresql ãåä½ãããããã® Dockerfile ãç¨æããã¦ããã®ã§ã試ãã¦ã¿ã¾ããã ããã ã¨ããã¼ã«ã«ã« Postgresql ãå ¥ããå¿ è¦ããªãã¦ããã©ã¦ã¶ã â¦
æ¦è¦ ãµã³ãã« æ¦è¦ å°ãã¿ãããå¿ããã®ã§ã¡ã¢ã¡ã¢ã éä¿¡å¨ããä½ã£ãããã¹ãããããã¦ãã¨ãçµæ§é »ç¹ã«16é²æ°ã¨2é²æ°ãå¤æãããããæ©ä¼ãããã¾ãã ã§ãlinuxã§ä½æ¥ãã¦ããå ´åã¯å¤§æµã¯ã³ãã³ãã©ã¤ã³ã§ä½æ¥ãã¦ããã®ã§ãã³ãã³ãã©ã¤ã³ã§å¤æãâ¦
æ¦è¦ æ¦è¦ å°ãã¿ãããå¿ããã®ã§ã¡ã¢ã¡ã¢ã sudo ã³ãã³ãã¯ããå©ç¨ããã³ãã³ãã§ãããããããrootã¦ã¼ã¶æ¨©éã§ã³ãã³ãå®è¡ãããã¨èªèãã¦ãã人ãçµæ§ãã¾ãã sudoã³ãã³ãã¯ããæå®ããã³ãã³ããå¥ã®ã¦ã¼ã¶æ¨©éã§å®è¡ãããã³ãã³ãã¨ãªãã¾ãâ¦
æ¦è¦ ãµã³ãã« åèæ å ± æ¦è¦ å°ãã¿ãããå¿ããã®ã§ã¡ã¢ã¡ã¢ãç¥ã£ã¦ãã¨ã¡ãã£ã¨ä¾¿å©ãªãã®ã ç¹å®ã®ç°å¢å¤æ°ã®å¤ãèªã¿åã£ã¦åä½ããããã°ã©ã ã¯ããããã¾ãã ã§ãå®è¡ãã¦ã¿ãã¨ãªããæåããããããããã£ã¦ã¨ãããã¾ã«ããã¾ãã ã©ããç°å¢å¤â¦
æ¦è¦ åèæ å ± æ¦è¦ å°ãã¿ãããå¿ããã®ã§ã¡ã¢ã¡ã¢ã linuxã¨ãã§ä½æ¥ãã¦ããã¨ããã¾ã« ééã£ã¦ 大äºãªæ å ±ãæã¡è¾¼ãã ããã¡ããã¨ãã¨ããã£ãããã¾ããããã¾ããã¤ã§ãããï½ ã§ãããä¸ãä¸ãããªãã¨ããã¡ãã£ãã¨ãã®ããã«ããã¹ããªãæ¶ãâ¦
æ¦è¦ è¨å®ãã¦ããªãå ´å è¨å®ãã¦ããå ´å åèæ å ± æ¦è¦ å°ãã¿ãããå¿ããã®ã§ã¡ã¢ã¡ã¢ã linuxã¨ãã§ä½æ¥ãã¦ããã¨ããã¾ã« ééã£ã¦ CTRL-D ãæ¼ãã¡ãã£ã¦ãã°ã¢ã¦ããããã¨ãããã¾ããããç§ã¯ããã¾ãï½ ãã§ãå ´åã«ãã£ã¦ã¯ãã¦ã¼ã¶ããã®ç°å¢â¦
æ¦è¦ ãµã³ãã« åèæ å ± æ¦è¦ å°ãã¿ãããå¿ããã®ã§ã¡ã¢ã¡ã¢ã linuxã¨ãã§ä½æ¥ãã¦ããã¨ããã¾ã« windows ã§ä½ã£ããã¡ã¤ã«ãéã㨠CR ãä»ãã¦ããã®ã§ ^M ã¨ããã®ãè¦ãã¦ãã¾ãå ´åãããã¾ããï¼ããããã»ã»ï½ï¼ ãã§ããããéªéãªã®ã§ãnkf ã¨â¦
æ¦è¦ ãµã³ãã« æ¦è¦ å°ãã¿ãããå¿ããã®ã§ã¡ã¢ã¡ã¢ã ãã£ã¬ã¯ããªãè¤æ°ä½æããå¿ è¦ãããå ´åã« $ mkdir a $ mkdir b $ mkdir c ã¨ããã£ã¦ãä½ããã®ã§ãããã·ã§ã«ã®å±éæ©è½ãå©ç¨ã㦠$ mkdir {a,b,c} ã¨ãã£ã¦ãä½ãã¾ããä¸çºã§å®è¡ã§ããã®ã§ä¾¿â¦