diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index e69de29..0000000 diff --git a/_output.yml b/_output.yml index 0e8e322..b5942a8 100644 --- a/_output.yml +++ b/_output.yml @@ -14,7 +14,7 @@ bookdown::gitbook: facebook: no bookdown::pdf_book: keep_tex: yes - dev: cairo_pdf + dev: pdf latex_engine: xelatex citation_package: biblatex template: latex/template.tex @@ -22,5 +22,5 @@ bookdown::pdf_book: quote_footer: ["\\VA{", "}{}"] # md_extensions: -smart # output_extensions: -smart -#bookdown::epub_book: -#stylesheet: css/style.css +bookdown::epub_book: + stylesheet: css/style.css diff --git a/bib/packages.bib b/bib/packages.bib new file mode 100644 index 0000000..5528d36 --- /dev/null +++ b/bib/packages.bib @@ -0,0 +1,125 @@ +@Manual{R-base, + title = {R: A Language and Environment for Statistical Computing}, + author = {{R Core Team}}, + organization = {R Foundation for Statistical Computing}, + address = {Vienna, Austria}, + year = {2022}, + url = {https://www.R-project.org/}, +} + +@Manual{R-bookdown, + title = {bookdown: Authoring Books and Technical Documents with R Markdown}, + author = {Yihui Xie}, + year = {2022}, + note = {R package version 0.28}, + url = {https://CRAN.R-project.org/package=bookdown}, +} + +@Manual{R-DT, + title = {DT: A Wrapper of the JavaScript Library DataTables}, + author = {Yihui Xie and Joe Cheng and Xianying Tan}, + year = {2022}, + note = {R package version 0.24}, + url = {https://github.com/rstudio/DT}, +} + +@Manual{R-htmlwidgets, + title = {htmlwidgets: HTML Widgets for R}, + author = {Ramnath Vaidyanathan and Yihui Xie and JJ Allaire and Joe Cheng and Carson Sievert and Kenton Russell}, + year = {2021}, + note = {R package version 1.5.4}, + url = {https://github.com/ramnathv/htmlwidgets}, +} + +@Manual{R-knitr, + title = {knitr: A General-Purpose Package for Dynamic Report Generation in R}, + author = {Yihui Xie}, + year = {2022}, + note = {R package version 1.40}, + url = {https://yihui.org/knitr/}, +} + +@Manual{R-magick, + title = {magick: Advanced Graphics and Image-Processing in R}, + author = {Jeroen Ooms}, + year = {2021}, + note = {R package version 2.7.3}, + url = {https://CRAN.R-project.org/package=magick}, +} + +@Manual{R-miniUI, + title = {miniUI: Shiny UI Widgets for Small Screens}, + author = {Joe Cheng}, + year = {2018}, + note = {R package version 0.1.1.1}, + url = {https://CRAN.R-project.org/package=miniUI}, +} + +@Manual{R-rmarkdown, + title = {rmarkdown: Dynamic Documents for R}, + author = {JJ Allaire and Yihui Xie and Jonathan McPherson and Javier Luraschi and Kevin Ushey and Aron Atkins and Hadley Wickham and Joe Cheng and Winston Chang and Richard Iannone}, + year = {2022}, + note = {R package version 2.16}, + url = {https://CRAN.R-project.org/package=rmarkdown}, +} + +@Manual{R-webshot, + title = {webshot: Take Screenshots of Web Pages}, + author = {Winston Chang}, + year = {2022}, + note = {R package version 0.5.3}, + url = {https://CRAN.R-project.org/package=webshot}, +} + +@Book{bookdown2016, + title = {bookdown: Authoring Books and Technical Documents with {R} Markdown}, + author = {Yihui Xie}, + publisher = {Chapman and Hall/CRC}, + address = {Boca Raton, Florida}, + year = {2016}, + note = {ISBN 978-1138700109}, + url = {https://bookdown.org/yihui/bookdown}, +} + +@Book{knitr2015, + title = {Dynamic Documents with {R} and knitr}, + author = {Yihui Xie}, + publisher = {Chapman and Hall/CRC}, + address = {Boca Raton, Florida}, + year = {2015}, + edition = {2nd}, + note = {ISBN 978-1498716963}, + url = {https://yihui.org/knitr/}, +} + +@InCollection{knitr2014, + booktitle = {Implementing Reproducible Computational Research}, + editor = {Victoria Stodden and Friedrich Leisch and Roger D. Peng}, + title = {knitr: A Comprehensive Tool for Reproducible Research in {R}}, + author = {Yihui Xie}, + publisher = {Chapman and Hall/CRC}, + year = {2014}, + note = {ISBN 978-1466561595}, + url = {http://www.crcpress.com/product/isbn/9781466561595}, +} + +@Book{rmarkdown2018, + title = {R Markdown: The Definitive Guide}, + author = {Yihui Xie and J.J. Allaire and Garrett Grolemund}, + publisher = {Chapman and Hall/CRC}, + address = {Boca Raton, Florida}, + year = {2018}, + note = {ISBN 9781138359338}, + url = {https://bookdown.org/yihui/rmarkdown}, +} + +@Book{rmarkdown2020, + title = {R Markdown Cookbook}, + author = {Yihui Xie and Christophe Dervieux and Emily Riederer}, + publisher = {Chapman and Hall/CRC}, + address = {Boca Raton, Florida}, + year = {2020}, + note = {ISBN 9780367563837}, + url = {https://bookdown.org/yihui/rmarkdown-cookbook}, +} + diff --git a/rmd/302-install-deepin.Rmd b/rmd/302-install-deepin.Rmd index e05cdf3..5caa05e 100644 --- a/rmd/302-install-deepin.Rmd +++ b/rmd/302-install-deepin.Rmd @@ -206,6 +206,8 @@ $ sudo apt-get install software-properties-common 前面电脑分区导致硬盘容量缺失,应该是 MacOS 系统的问题,通过[CSDN一篇博客](https://blog.csdn.net/pku_Coder/article/details/76864653)的方法,顺利解决了硬盘问题。 +其实,苹果系统存在的几个问题,比如硬盘容量丢失,或者无法连接网络等。这些通过图形界面操作异常的问题,常常可以通过命令行解决。 + > 用磁盘工具直接分区,随便分个大小,格式选择默认的os x扩展,然后点击分区,过一会 会显示分区成功,这时候你看你原来丢失的100g回来了,在你刚刚新分的盘里了。这时候点击减号把这个分区抹去就行了~ > diff --git a/rmd/303-install-software.Rmd b/rmd/303-install-software.Rmd index dfc2ba8..2501bfb 100644 --- a/rmd/303-install-software.Rmd +++ b/rmd/303-install-software.Rmd @@ -183,11 +183,11 @@ $ sudo snap install --dangerous scrcpy-snap/* ### 第二种安装方法 -在这个之前,还需要提前安装 [`adb`](https://developer.android.com/studio/releases/platform-tools.html),下载解压缩在 */opt/android-platform-tools/*文件夹,并创建adb的超链接。 +在这个之前,还需要提前安装 [`adb`](https://developer.android.google.cn/studio/releases/platform-tools.html),下载解压缩在 */opt/android-platform-tools/*文件夹,并创建adb的超链接。 ```bash -$ wget https://dl.google.com/android/repository/platform-tools_r29.0.2-linux.zip -$ unzip platform-tools_r29.0.2-linux.zip +$ wget https://dl.google.com/android/repository/platform-tools_r31.0.3-linux.zip +$ unzip platform-tools_r31.0.3-linux.zip $ sudo cp -r platform-tools /opt/android-platform-tools $ sudo ln -s /opt/android-platform-tools/adb /usr/local/bin/ ``` @@ -201,29 +201,20 @@ $ sudo apt install ffmpeg libsdl2-2.0.0 # client build dependencies $ sudo apt install make gcc pkg-config meson ninja-build \ libavcodec-dev libavformat-dev libavutil-dev \ - libsdl2-dev + libsdl2-dev libavdevice-dev # server build dependencies $ sudo apt install openjdk-8-jdk -# 下载最新源码保存为 scrcpy.zip -# wget https://gitee.com/mirrors/scrcpy/repository/archive/v1.10?format=zip -O scrcpy.zip -# unzip scrcpy.zip - -# 其实也可直接使用 git clone 复制 +# 下载最新源码保存为 scrcpy.zip (因为github经常登录不上,采用了gitee的镜像。也可以使用https://hub.fastgit.org/Genymobile/scrcpy.git) $ git clone https://gitee.com/mirrors/scrcpy.git $ cd scrcpy -$ wget https://github.com/Genymobile/scrcpy/releases/download/v1.10/scrcpy-server-v1.10.jar \ - -O scrcpy-server.jar -$ meson x --buildtype release --strip -Db_lto=true -Dprebuilt_server=scrcpy-server.jar -$ cd x -$ ninja -$ sudo ninja install +$ sudo ./install_release.sh ``` ### 使用方法 -数据线连上手机,弹出窗口里选择打开USB调试,在电脑终端输入 +数据线连上手机,弹出窗口里选择打开USB调试,选择传输文件(MTP)。在电脑终端输入 ```bash $ scrcpy -f # 全屏显示,更多用法请查看官网 diff --git a/rmd/402-admin-network.Rmd b/rmd/402-admin-network.Rmd deleted file mode 100644 index e69de29..0000000 diff --git a/rmd/404-cups.Rmd b/rmd/404-cups.Rmd index 0f246ff..b9f721f 100644 --- a/rmd/404-cups.Rmd +++ b/rmd/404-cups.Rmd @@ -24,4 +24,9 @@ CUPS实际上是一个集成的服务。包括了前端接收打印命令的相 ## Linux 使用得力DE-620K针式打印机 -组装打印机啥的就不说了,本办公室正好新进了这台打印机。 \ No newline at end of file +组装打印机啥的就不说了,本办公室正好新进了这台打印机。 + + +## 使用打印机的办法 + +官网不提供Linux版本的驱动,怎么安装相关驱动来使用打印机呢? \ No newline at end of file diff --git a/rmd/405-web-server.Rmd b/rmd/405-web-server.Rmd index a95fdd6..f01f97e 100644 --- a/rmd/405-web-server.Rmd +++ b/rmd/405-web-server.Rmd @@ -37,6 +37,37 @@ 解压缩后,内有中文的安装教程,非常详细,这里就不赘述了。本人的安装方式见[这篇博客](https://my.oschina.net/bubifengyun/blog/3161820) +最好提及一下如何使用 PHP,Python 和 R 语言如何连接达梦数据库。 +## 学习vue 笔记 -最好提及一下如何使用 PHP,Python 和 R 语言如何连接达梦数据库。 \ No newline at end of file +### 安装npm + +最开始不知道怎么安装npm,用的系统自带的,版本太低了,安装效果很差。总是出问题。于是[官网](https://nodejs.org/en/)下载安装最新版的npm + +```bash +$ VERSION=v16.3.0 +$ DISTRO=linux-x64 +$ sudo mkdir -p /usr/local/lib/nodejs +$ sudo tar -xJvf node-$VERSION-$DISTRO.tar.xz -C /usr/local/lib/nodejs +$ sudo ln -s /usr/local/lib/nodejs/node-v16.3.0-linux-x64/bin/node /usr/local/bin/ +$ sudo ln -s /usr/local/lib/nodejs/node-v16.3.0-linux-x64/bin/npm /usr/local/bin/ +``` + +接着安装 `vue-cli` + +```bash +$ sudo npm install -g @vue/cli +$ sudo npm install -g @vue/cli-service-global +``` + +创建自己的项目,`chenzj`, + +```bash +$ vue create chenzj +``` + +## PHP 搭建网站 + +https://blog.csdn.net/q297896911/article/details/80646536 +https://www.liquidweb.com/kb/install-lamp-stack-centos-7/ diff --git a/rmd/408-nfs.Rmd b/rmd/408-nfs.Rmd deleted file mode 100644 index e69de29..0000000 diff --git a/rmd/503-selinux.Rmd b/rmd/503-selinux.Rmd deleted file mode 100644 index e69de29..0000000 diff --git a/rmd/802-appendix-makebook.Rmd b/rmd/802-appendix-makebook.Rmd index f562502..efed36c 100644 --- a/rmd/802-appendix-makebook.Rmd +++ b/rmd/802-appendix-makebook.Rmd @@ -12,21 +12,38 @@ ### Linux 下使用 -下面以深度操作系统15.5版本为例说明。安装过程中,请确保当前 `rstudio` 的版本高于 1.0.0, `texlive` 为2015年后的版本, `pandoc` 的版本高于 2.0.0。 +下面以深度操作系统 20.2 版本为例说明。 + +参考[官网](https://mirrors.tuna.tsinghua.edu.cn/CRAN/)安装最新版R语言。 ```{.bash numbers=none} -$ sudo apt-get install r-base r-base-dev \ -rstudio texlive-full pandoc make +$ sudo apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF' ``` -如果不能满足,请参考相关软件官网,下载最新版本。我的[博客](https://my.oschina.net/bubifengyun/blog/1936119)记录了如何安装最新版 texlive,有需要的可以去看看。[pandoc官网](https://github.com/jgm/pandoc/blob/master/INSTALL.md)有其安装教程。R 语言的安装方法[官网镜像](https://mirrors.tuna.tsinghua.edu.cn/CRAN/)也可找到,这里就不赘述了,有问题可以邮件联系。 +安装稳定版的源,把源`deb http://cloud.r-project.org/bin/linux/debian buster-cran40/`写入到 */etc/apt/sources.list* 文件。并更新。 + +```{.bash} +$ sudo su +# echo "deb http://cloud.r-project.org/bin/linux/debian buster-cran40/" >> /etc/apt/sources.list +# exit +$ sudo apt-get update +``` + +安装过程中,请确保当前 `rstudio` 的版本高于 1.0.0, `texlive` 为2015年后的版本, `pandoc` 的版本高于 2.0.0。 + +```{.bash numbers=none} +$ sudo apt-get install r-base r-base-dev \ +libcurl4-openssl-dev libxt-dev libssl-dev libmagick++-dev libgit2-dev pandoc make +``` -曾经在 Lubuntu 下试着安装过。一般先安装 `make`,运行命令,仍旧出错,提示没有`RScript`,接着安装`r-base r-base-dev`。再接着,`sudo make`还是出错。最后是`pandoc`版本问题了。由于 Lubuntu 版本太老,没能更新好。总结一下, +下面是安装`TinyTex`,关于`TinyTex`的详细介绍,见[谢益辉的文章](https://yihui.name/tinytex/)。 ```{.bash numbers=none} -$ sudo apt-get install make r-base r-base-dev -y -$ sudo make +$ curl -sL "https://yihui.org/tinytex/install-bin-unix.sh" | sh ``` + +如果`TinyTex`不能满足,请参考相关软件官网,下载最新版本的texlive。我的[博客](https://my.oschina.net/bubifengyun/blog/1936119)记录了如何安装最新版 texlive,有需要的可以去看看。[pandoc官网](https://github.com/jgm/pandoc/blob/master/INSTALL.md)有其安装教程。R 语言的安装方法[官网镜像](https://mirrors.tuna.tsinghua.edu.cn/CRAN/)也可找到,这里就不赘述了,有问题可以邮件联系。 + 第一次编译,可能需要安装很多软件,请静静等待。后面,直接运行下面这条语句,实现编译。 ```{.bash numbers=none} diff --git a/rmd/810-appendix-deepin-intro.Rmd b/rmd/810-appendix-deepin-intro.Rmd index cdfd992..e02e93d 100644 --- a/rmd/810-appendix-deepin-intro.Rmd +++ b/rmd/810-appendix-deepin-intro.Rmd @@ -91,4 +91,4 @@ initrd 分 image-initrd 及 cpio-initrd 两种。 转载网页: -- http://wiki.deepin.org/wiki/DEEPIN_%E6%A1%8C%E9%9D%A2%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E6%A6%82%E8%BF%B0 \ No newline at end of file +- https://wiki.deepin.org/zh/Deepin%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/%E7%B3%BB%E7%BB%9F%E5%90%AF%E5%8A%A8%E5%92%8C%E5%BC%95%E5%AF%BC/DEEPIN_%E6%A1%8C%E9%9D%A2%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E6%A6%82%E8%BF%B0 diff --git a/rmd/899-appendix-history.Rmd b/rmd/899-appendix-history.Rmd index 993bd5c..b16e0b5 100644 --- a/rmd/899-appendix-history.Rmd +++ b/rmd/899-appendix-history.Rmd @@ -13,4 +13,6 @@ - 2018-12-04 家庭事务繁多,今年到此为止,明年开春后再更新。 - 2020-01-13 今年继续一月一章吧。争取2020年草稿完成。 - 2020-07-16 停滞了很长时间,要抓紧时间了,今年写的太少了。 +- 2021-07-28 学习机器人操作,得以有空来做。 +- 2022-04-05 清明节有空,更新一点. - 2022-09-05 适配手机,在Termux下,成功编译本书。 diff --git a/rmd/LICENSE b/rmd/LICENSE new file mode 100644 index 0000000..9e32cde --- /dev/null +++ b/rmd/LICENSE @@ -0,0 +1,127 @@ + 木兰宽松许可证, 第2版 + + 木兰宽松许可证, 第2版 + 2020年1月 http://license.coscl.org.cn/MulanPSL2 + + + 您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束: + + 0. 定义 + + “软件”是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。 + + “贡献”是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。 + + “贡献者”是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。 + + “法人实体”是指提交贡献的机构及其“关联实体”。 + + “关联实体”是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。 + + 1. 授予版权许可 + + 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。 + + 2. 授予专利许可 + + 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。 + + 3. 无商标许可 + + “本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。 + + 4. 分发限制 + + 您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。 + + 5. 免责声明与责任限制 + + “软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。 + + 6. 语言 + “本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。 + + 条款结束 + + 如何将木兰宽松许可证,第2版,应用到您的软件 + + 如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步: + + 1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字; + + 2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中; + + 3, 请将如下声明文本放入每个源文件的头部注释中。 + + Copyright (c) [Year] [name of copyright holder] + [Software Name] is licensed under Mulan PSL v2. + You can use this software according to the terms and conditions of the Mulan PSL v2. + You may obtain a copy of Mulan PSL v2 at: + http://license.coscl.org.cn/MulanPSL2 + THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + See the Mulan PSL v2 for more details. + + + Mulan Permissive Software License,Version 2 + + Mulan Permissive Software License,Version 2 (Mulan PSL v2) + January 2020 http://license.coscl.org.cn/MulanPSL2 + + Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions: + + 0. Definition + + Software means the program and related documents which are licensed under this License and comprise all Contribution(s). + + Contribution means the copyrightable work licensed by a particular Contributor under this License. + + Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License. + + Legal Entity means the entity making a Contribution and all its Affiliates. + + Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity. + + 1. Grant of Copyright License + + Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not. + + 2. Grant of Patent License + + Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken. + + 3. No Trademark License + + No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in Section 4. + + 4. Distribution Restriction + + You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software. + + 5. Disclaimer of Warranty and Limitation of Liability + + THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + + 6. Language + + THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL. + + END OF THE TERMS AND CONDITIONS + + How to Apply the Mulan Permissive Software License,Version 2 (Mulan PSL v2) to Your Software + + To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps: + + i Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner; + + ii Create a file named “LICENSE” which contains the whole context of this License in the first directory of your software package; + + iii Attach the statement to the appropriate annotated syntax at the beginning of each source file. + + + Copyright (c) [Year] [name of copyright holder] + [Software Name] is licensed under Mulan PSL v2. + You can use this software according to the terms and conditions of the Mulan PSL v2. + You may obtain a copy of Mulan PSL v2 at: + http://license.coscl.org.cn/MulanPSL2 + THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + See the Mulan PSL v2 for more details.