FreeCommander XE文件或者文件夹无法打开右键菜单
FreeCommander XE文件或者文件夹无法打开右键菜单,一直转圈圈,然后无响应。
解决方法是在”C:\Users\yourdir\AppData\Local\FreeCommanderXE\Settings\FreeCommander.ini”文件中Language=chinese_s.lng下方增加下行即可
ShowContextMenu64Bit=0
Type | power-supply | Voltage(V) | current(mA) | Theoretical current on battery-3.8V(mA) | Remark |
---|---|---|---|---|---|
DC/DC | VDD_ARM | 0.96 | 10.20 | 3.23 | With 80% efficiency, conversion formula: V * I / efficiency / voltage of the battery |
DC/DC | VDD_LOG | 0.96 | 89.30 | 28.20 | eg: Theoretical current of VDD_LOG on battery(3.8V) = 0.96 * 89.3 / 0.8 / 3.8 = 28.2 |
DC/DC | VCC_DDR | 1.26 | 38.50 | 15.91 | |
DC/DC | VCC_IO | 2.99 | 4.50 | 4.43 | |
LDO | VCC_1V8 | 1.81 | 28.80 | 28.80 | Output current of LDO is equal to input current |
LDO | VDD_1V0 | 1.00 | 10.90 | 10.90 | |
LDO | VCC3V0_PMU | 3.01 | 1.20 | 1.20 | |
battery | VBAT | 3.81 | 94.60 | 92.67 | Theoretical value is similar to actually measured value |
1 | /* Acquire the frequency voltage table, target column means the voltage required by some |
1 | /* Use top command to check the task loading, the output of top with different versions |
The power consumption of VDD_GPU mainly confirms if the the frequency voltage table is normal or not, if
the measured voltage is consistent with the set voltage or not, using devfreq node.
1 | /* acquire the frequency voltage table */ |
Generally VDD_LOGIC will contain many modules, in order to manage the power consumption conveniently,
it will be divided into many PD internally. The power consumption can be analyzed mainly from the
following aspects:
1 | # cat /sys/kernel/debug/clk/clk_summary |
1 | # cat /sys/kernel/debug/pm_genpd/pm_genpd_summary |
1 | # cat /sys/kernel/debug/opp/opp_summary |
VCC_DDR supplies power mainly for DDR component and DDR-IO part of SoC. The parameters affecting the
power consumption of VCC_DDR include: DDR frequency, DDR loading, DDR low power consumption
configuration, DDR component type and so on. Under the same condition, the power consumption of DDR
components from different vendors may have big difference.
VCC_IO supplies power mainly for IO Pad of SoC and some peripherals. The power consumption can be
analyzed from the following aspects:
It is mainly the display module which is working, CPU, GPU, DDR should be reduced to the lowest frequency,
and enter low power consumption mode. Adjust VDD_CPU,VDD_GPU,VDD_LOGIC to the lowest voltage of
opp-table, confirm the status of clk_summary and pm_genpd_summary, confirm the peripheral modules
(WIFI, BT, etc.) are all closed. The static desktop generally is used as the basic power consumption of other
scenarios, so need to firstly optimize its power consumption to the best.
It is mainly the video decoder (VPU/RKVDEC) which is working, GPU generally is closed. Especially confirm if
the running frequency of DDR and voltage of VDD_LOGIC are normal or not.
It is mainly CPU and GPU which are working. Especially analyze the loading of CPU and GPU, frequency
change, the voltages of VDD_CPU and VDD_GPU are normal or not.
Generally VDD_CPU and VDD_GPU will turn off the power supply, VDD_LOG only reserves the power supply
for some resume module, so need to focus on the power consumption analysis of IO, DDR components and
some peripherals.
1 | /* the default frequency scaling strategy used is interactive, relative parameters are |
1 | /* close cpu2,cpu3 */ |
1 | /* scenario definition */ |
1 | /* configure the parameter of frequency scaling with loading in dts, need to open dfi |
When the temperature is increasing to certain degree, the power consumption will increase dramatically,
especially in the case with high voltage.
1 | &cpu0_opp_table { |
For example:
Input 3.3V, output 1.0V-50mA
|Power Type | Input Current | Power Consumption |
| — | — | — |
| LDO | 50mA | 165mW |
| DCDC(with 80% efficiency) | 18.9mA | 62.4mW |
Git全局配置
1 | git config --global user.name "frankieluo" |
Clone项目
$ git clone http://gitlab.3bayslife.com:7777/app/alttest.git
Status
$ git status
Pull合并项目
$ git pull
Add新的或者修改后的文件
git add .
提交到本地仓库
git commit -m "Initial commit"
Push到服务器
git push -u origin master
Create a new repository
1 | git clone http://gitlab.3bayslife.com:7777/app/alttest.git |
Existing folder
1 | cd existing_folder |
Existing Git repository
1 | cd existing_repo |
查看远程分支
$ git branch -a
切换分支
$ git checkout -b dev origin/dev
切换回master分支
$ git checkout master
再次切回dev分支
$ git checkout dev
切换commit分支
$ git checkout 988d45bae9ceefc9a31b5aadc701f6f115ecd895
服务器代码合并本地代码
1 | $ git stash //暂存当前正在进行的工作。 |
回滚本地代码
$ git reset --hard
//回滚到上一个版本
$ git checkout -- .
$ git checkout -- readme.md
git rm 与 git rm –cached 的区别
git rm : 同时从工作区和索引中删除文件。即本地的文件也被删除了。
git rm –cached : 从索引中删除文件。但是本地文件还存在, 只是不希望这个文件被版本控制。
zsh反应慢
You can add this to your git config and zsh won’t check the status anymore
git config --add oh-my-zsh.hide-status 1
git config --add oh-my-zsh.hide-dirty 1
git删除未跟踪文件
删除 untracked files:
git clean -f
连 untracked 的目录也一起删掉:
git clean -fd
连 gitignore 的untrack 文件/目录也一起删掉 (慎用,一般这个是用来删掉编译出来的 .o之类的文件用的):
git clean -xfd
在用上述 git clean 前,墙裂建议加上 -n 参数来先看看会删掉哪些文件,防止重要文件被误删:
1 | git clean -nxfd |
创建一个本地分支git checkout -b 名称
查看现在的分支状态git branch (星号代表当前的分支)
把新建的分支push到远程,相当于创建一个远程分支git push origin 名称:名称
删除远程分支
1 | git push origin :名称 |
删除本地分支(不能在此分支上)git branch -d 名称
How to have git log show filenames like svn log -v:
For full path names of changed files:
git log --name-only
or
git log --name-only --oneline
查看日期范围内的记录信息
1 | git log --after="2019-3-31" --before="2019-5-1" |
For full path names and status of changed files:git log --name-status
For abbreviated pathnames and a diffstat of changed files:git log --stat
There’s a lot more options, check out the docs https://git-scm.com/docs/git-log .
From the git-diff manpage:
git log -- vendor/nxp-opensource/uboot-imx/drivers/usb/gadget/fastboot_lock_unlock.h
使用git log查看单个文件改动记录
git log -- device/fsl/ax2130/overlay/frameworks/base/core/res/res/values/config.xml
使用git show命令查看commit hashID的详细情况
git show b61f128ac5015a8c2b14b28c67837ebf1924a5e1
某一笔提交的patch
git format-patch b61f128ac5015a8c2b14b28c67837ebf1924a5e1 -1
某笔提交(包含)之前的几次提交
git format-patch commitID -n
git format-patch b61f128ac5015a8c2b14b28c67837ebf1924a5e1 -2
某两笔(包后不包前)提交之间的所有提交
git format-patch 1ac240c4561fab6ce400943edb38e46c792b949a..255867fabcf79246d948fadfebe307f8a848bff4
某笔提交(不包含)以后所有提交
git format-patch 1ac240c4561fab6ce400943edb38e46c792b949a
把issue2分支和issue3分支的修改合并到master。
1 | $ git checkout master |
1 | $ git merge issue3 |
1 | $ git merge issue3 |
1 | add 把变更录入到索引中 |
1 | $ git add myfile.txt |
git cherry-pick 1ac240
在一些特性情况下,合并单个 commit 并不够,你需要合并一系列相连的 commits 。这种情况下就不要选择 cherry-pick 了,rebase 更适合。还以上例为例,假设你需要合并 feature 分支的 commit 76cada ~ 62ecb3 到 dev 分支。
git checkout -b newbranch 62ecb3
git rebase --onto dev 76cada^
得到的结果就是 feature 分支的 commit 76cada ~62ecb3 都被合并到了 dev 分支。
1 | [xxx@xxx static_files]$ git status |
git reset HEAD abbr_data
git checkout -- abbr_data
For instance, to see the difference for a file “main.c” between now and two commits back, here are three equivalent commands:
1 | $ git diff HEAD^^ HEAD main.c |
某两笔(包前包后)提交之间的所有提交
git diff commitID1 commitID2 > patch.diff
检查patch/diff是否能正常打入
git apply –check file.patch文件
git apply –check file.diff文件
打入patch/diff
git apply file.patch文件
git apply file.diff文件
解决冲突
如果在合入patch的过程中报错了,可以使用下面命令:
git apply –reject file.patch
这个命令会自动合入不冲突的代码,然后保留冲突的部分,同时会生成后缀为.rej的文件,用于保存没有合并进去的部分,可以参考这个进行冲突解决。
解决完冲突后,删除后缀为.rej文件,并执行git add . 添加改动到暂存区
最后执行git am –resolved或者git am –continue
git tag -l
git ls-remote --tags
git tag v1.1.0
1 | git tag v1.0.0 039bf8b |
1 | git tag --delete v1.0.0 |
1 | git push -d origin v1.0.0 |
1 | git push origin --tags |
git push origin v1.0.0
git show v1.0.0
例如: 当前分支的某个commit id = 12345678,我们可以基于这个id创建本地分支git checkout 12345678 -b newBranch
With version 2.13 of Git and later, –recurse-submodules can be used instead of –recursive:git clone --recurse-submodules -j8 git://github.com/foo/bar.git
With version 1.9 of Git up until version 2.12 (-j flag only available in version 2.8+):git clone --recursive -j8 git://github.com/foo/bar.git
With version 1.6.5 of Git and later, you can use:git clone --recursive git://github.com/foo/bar.git
For already cloned repos, or older Git versions, use:
1 | git clone git://github.com/foo/bar.git |
添加代理,后面端口号去系统设置 -> 网络和Internet -> 代理git config --global https.proxy http://127.0.0.1:10809
去除代理git config --global https.proxy ""
查看配置信息
1 | git config --global --list |
git status -s | awk '{if ($1 == "M") {print $2} }' | xargs git rm --cached
错误 -fatal: remote origin already exists.
1、先删除远程 Git 仓库
$ git remote rm origin
2、再添加远程 Git 仓库
$ git remote add origin http://act4.myqnapcloud.com:10080/app/cappec-weather-ios.git
错误 Git refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories
1 | android { |
鼠标右击app工程,选择Add C++ to Module
选择Link an existing CMakeLists.txt or Android.mk to this module
1 | android { |
找到NDK路径中找到”ndk-build.cmd”,比如我的路径为”C:\Users\ASUS\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd”
在Terminal或者DOS控制到中,CD 到JNI源码位置,然后执行”C:\Users\ASUS\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd”
1 | D:\work\App\Myjni\app\src\main\jni>"C:\Users\ASUS\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd" |
Docker编译dockerfile的过程中,经常会碰到构建失败,那么怎样去调试dockerfile呢?
其实Docker编译的时候为每一条编译指令会建立一个临时的镜像,当编译CMD失败时,会保留前一份镜像,我们可以进到这个镜像,然后手动运行下一条CMD,查看编译错误信息。
mkdir tmp && cd tmp
vim Dockerfile
1 | FROM alpine:3.9 |
docker build -t docker-alpine-test:0.1 .
1 | Sending build context to Docker daemon 2.048kB |
$ docker images
1 | REPOSITORY TAG IMAGE ID CREATED SIZE |
可以看到docker保留了前一个运行成功的镜像2b756be83925
docker run -it 2b756be83925 /bin/sh
1 | / # ls |
Docker中有时候我们会想去查看容器具体内容,文件结构,配置信息等,但如何进入容器内部查看?又如何安全退出而不停止容器呢?
docker attach fa0b220ed5d0
, 此方式只适合本身是可交互方式启动的容器.docker exec -it fa0b220ed5d0 /bin/sh
.docker exec -h
: “Run a command in a running container”. Final Cut Pro 是苹果公司开发的一款专业视频剪辑软件。这里记录一些常用的技巧
使用信箱模式
使用裁剪
调节整个视频的尺寸
正确创建HDR项目
HDR项目导入SDR视频偏黑
SDR项目导入HDR视频过暴
LUT设置
工作中我们可能经常会需要从服务器或另一台电脑复制大量文件,如果文件在不同的目录,复制就比较麻烦,这个时候用脚本就比较简单了,一键搞定。Python脚本支持多平台,可以在Windows, Mac, Linux上运行。
1 | import paramiko |