技巧: 合并多份Word文档的评注信息
https://support.office.com/zh-cn/article/f8f07f09-4461-4376-b041-89ad67412cfe
自己摸索容易忽略的是第七步:
7. 在“修订的显示位置”下,单击“原文档”。
https://support.office.com/zh-cn/article/f8f07f09-4461-4376-b041-89ad67412cfe
自己摸索容易忽略的是第七步:
7. 在“修订的显示位置”下,单击“原文档”。
大陆由于墙的缘故, 不仅Google的服务没有正确的部署, 所有依赖于Google的服务都会出现问题. Firefox for Android (以下称 Fennec) 需要使用 Android SDK 和 NDK 进行构建, 因此也就遇到了同样的问题, 导致了 Mozilla 仓库中的 mach bootstrap 命令无法正确执行.
一种方式是不使用 mach bootstrap 命令初始化的 toolchain, 利用你之前手工下载的 Android SDK/NDK 进行构建. 方法是配置 mozilla 仓库根目录下的 mozconfig 参数, 指定好路径.
另一种方式是死磕, 在 mach bootstrap 过程中加入一点手工的方法来绕过. 以下是方法:
之后就可以执行 mach build & mach package 正确的编译出 apk 了.
PS: 当然还有一种最为高大上的方式就是VPN了…然而下载量很大的说…
http://blog.fogcreek.com/increase-defect-detection-with-our-code-review-checklist-example/
Nice Checklist.
我之前并未整理出这样的清单。可以实践一下。 🙂
Code Review Checklist
General
* Does the code work? Does it perform its intended function, the logic is correct etc.
* Is all the code easily understood?
* Does it conform to your agreed coding conventions? These will usually cover location of braces, variable and function names, line length, indentations, formatting, and comments.
* Is there any redundant or duplicate code?
* Is the code as modular as possible?
* Can any global variables be replaced?
* Is there any commented out code?
* Do loops have a set length and correct termination conditions?
* Can any of the code be replaced with library functions?
* Can any logging or debugging code be removed?
Security
* Are all data inputs checked (for the correct type, length, format, and range) and encoded?
* Where third-party utilities are used, are returning errors being caught?
* Are output values checked and encoded?
* Are invalid parameter values handled?
Documentation
* Do comments exist and describe the intent of the code?
* Are all functions commented?
* Is any unusual behavior or edge-case handling described?
* Is the use and function of third-party libraries documented?
* Are data structures and units of measurement explained?
* Is there any incomplete code? If so, should it be removed or flagged with a suitable marker like ‘TODO’?
Testing
* Is the code testable? i.e. don’t add too many or hide dependencies, unable to initialize objects, test frameworks can use methods etc.
* Do tests exist and are they comprehensive? i.e. has at least your agreed on code coverage.
* Do unit tests actually test that the code is performing the intended functionality?
* Are arrays checked for ‘out-of-bound’ errors?
* Could any test code be replaced with the use of an existing API?
You’ll also want to add to this checklist any language-specific issues that can cause problems.
The checklist is deliberately not exhaustive of all issues that can arise. You don’t want a checklist, which is so long no-one ever uses it. It’s better to just cover the common issues.
XMind 在 Windows 7 下的默认中文字体不太好看,在其配置选项中没有提供该选项。一位使用者提供了一种直接修改配置文件的方式,可以参考:
https://lifeboysays.wordpress.com/2010/10/17/xmind-default-font/
在 Windows 7 下,可以将默认字体改成“SimSong”或者“Microsoft YaHei”; Linux 下可以改成 “WenQuanYi Zen Hei”。
如果提交(commit)了代码并且已经推送(push)到了github之后,发现自己的作者名字(Author)需要修改,怎么办?用这个命令试试:
1 2 |
git commit --amend --reset-author git push -f |
如果在你第一次错误的 push 之后,没有人 pull 过那个仓库,那么你的修改就完成了。如果已经被人 pull 过了你的改动,就不太可能改过来了(“The already pushed change, if people have pulled it, is something you’ll have to live with. [1]”)。
有此需求的同学可以参考[1]、[2]和[3],希望对你有帮助。 😉
[1]: stackoverflow: amend-username-for-a-pushed-commit-on-github
[2]: stackoverflow: github-doesnt-show-the-right-author-of-a-commit
Recent Comments