(/\*[\s\S]*?\*/)|(/\+[\s\S]*?\+/)|(^[ \t]*//.*)
注釈だけ前処理し、注釈のない記述を閲覧したいときに便利。
-fno-rtti -fno-exceptions -ffreestanding -fno-druntime
| # SPDX-License-Identifier: Apache-2.0 | |
| # Gitbash command exec function | |
| function bashInitCmd() | |
| { | |
| $currentDir = '/' + $(Get-Location) -replace '\\', '/' -replace ':', '' | |
| return "cd " + $currentDir + " && " | |
| } | |
| function bashCmdExec([String] $cmd, [String] $Args) | |
| { | |
| $bashCmd = $(bashInitCmd) + $cmd + $Args |
pipで作業していると、こんな報告を受けることがある。
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
package x.y.z requires package1<x.y.z, but you have package1 x.y.z which is incompatible.
Successfully installed package-x.y.z
これは依存関係地獄といって、場合によってはとても厄介な問題だ。だが、pipの場合はたいてい次のような手順を踏めば問題を解決することができる。
pip checkで壊れている依存関係を調べる。pipdeptreeがあれば依存関係を樹形図で表示してくれるので便利である。大量に依存関係が表示されるため、必要に応じてPOSIXのgrepやPowerShellのSelect-Stringで絞り込むとよい。Autotool系を採用した開発物で、構築設定を試行錯誤する場合など、複数回に渡って構築を行う場合は、以下の記録体をdir検索してから削除する必要がある。 そうしないと、C言語のmacro展開が失敗したときのように構築手順がアベコベになる。 原因は、なぜかAutotool系が構築手順などの生成物を上書きしないことによるものである。 ただし、途中で構築に失敗して再開する場合は、この問題は発生しない。
/* config.h. Generated from config.h.in by configure. */とある場合に限る。)| yt-dlp --embed-thumbnail --embed-subs --sub-langs all --embed-metadata --embed-chapters -f "bv+ba/best" [video-URL...] | |
| Video title Rename -> Add `-o "[title].%(ext)s"` option. | |
| `ERROR: Unable to download video: [Errno 2] No such file or directory:` -> Add `-o` option. see https://github.com/yt-dlp/yt-dlp/blob/master/README.md#output-template | |
| Unknown Error -> Add `--downloader ffmpeg` option. |