Corel VideoStudio 2021 で編集できないMP4が存在するときの対応方法
はじめに
最近動画編集の機会があり、初心者でも使いやすそうなCorel VideoStudio 2021をを使用して編集をしました。
このアプリ、癖がありハマったのでメモ。
ハマった事象
VLC media player では問題なく再生できるのに、Corel VideoStudio 2021で編集できないMP4がある。
解決方法
HD Video Converter FactoryでMP4→MP4に変換します。自分でも分けわからないことを書いていると思いますが、これで編集できるようになりました。
Docker Desktop on Windowsでnode.jsのコマンドを実行する
環境
- Docker Desktop for Windows 4.0.0
- Node.js 14系
実行方法(うまくいくもの)
node:14のイメージを使用する。
docker run --rm -it -v <ホストの絶対パス>:/home/node/app -w /home/node/app node:14 <コマンド>
実行方法(失敗することがあるもの)
node:14-alpineのイメージで「npx create-react-app」をしたらエラーが出た。根本原因は不明。
$ docker run --rm -it -v <ホストの絶対パス>/:/home/node/app -w /home/node/app node:14-alpine npx create-react-app 20210912-react-ts-app --template typescript npx: installed 67 in 14.328s Creating a new React app in /home/node/app/20210912-react-ts-app. Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template-typescript... yarn add v1.22.5 [1/4] Resolving packages... [2/4] Fetching packages... error An unexpected error occurred: "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.15.2.tgz: 140593871818056:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:../deps/openssl/openssl/ssl/record/ssl3_record.c:677: ". info If you think this is a bug, please open a bug report with the information provided in "/home/node/app/20210912-react-ts-app/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. ^C Aborting installation. yarnpkg add --exact react react-dom react-scripts cra-template-typescript --cwd /home/node/app/20210912-react-ts-app has failed. Deleting generated file... package.json Deleting generated file... yarn.lock Done.
ScrollRectでスクロール位置を設定する方法2つ
環境
- Unity 2020.3.15f1
割合で指定する方法
以下のメソッドを使用する
- ScrollRect.verticalNormalizedPosition
- ScrollRect.horizontalNormalizedPosition
座標で指定する方法
オブジェクト.GetComponent<RectTransform>().anchoredPosition = _mapInitialPosition;
mvn deploy:deployのaltDeploymentRepositoryの書式がいつの間にか変わっていた
pom.xmlに記載のバージョンが特定の値の時のみ、コマンドを実行する
以下の記事がありました。
ということはこれを応用すると、特定のバージョンの時のみコマンドを実行できます。例えばdeployしたりとか。
こんな感じ。
PROJECT_VERSION=`mvn -q '-Dexec.executable=echo' '-Dexec.args=${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.6.0:exec | awk '{print $1}'` if [ `echo $PROJECT_VERSION | grep 'SNAPSHOT'` ] ; then mvn -e deploy -Dmaven.test.skip=true -Dgpg.skip=true fi
あるブランチの最後のコミットをcherry-pickする
以下はdevelopブランチの最後のコミットをcherry-pickする例。たまたま使う羽目になったのでメモ。
$ git checkout master; git cherry-pick $(git log -1 --format=%H --first-parent develop)