0%

Android10的基线代码google已经将prebuilt的ccache移除,但是保留了相关功能选项

commit 326e7e2cbd95fc2b1a1f858fb29904c9d3974843
Author: Dan Willemsen <dwillemsen@google.com>
Date:   Thu Apr 5 15:48:16 2018 -0700

    Remove our binary of ccache
    
    This version is rather old, and has many known bugs. The build system is
    no longer providing ccache, but preserving the option to use your own at
    your own risk.
    
    Bug: 32748498
    Test: cs/ccache
    Change-Id: I894a11445127bf8cb3a7ac5a119c500f2c572fb9

安卓10之前配置

Window10 Beyond Compare BCompare-4.2.4.22795 key

key

H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
q2Kw2pjoiDs5gIH-uw5U49JzOB6otS7kThBJE-H9A76u4uUvR8DKb+VcB
rWu5qSJGEnbsXNfJdq5L2D8QgRdV-sXHp2A-7j1X2n4WIISvU1V9koIyS
NisHFBTcWJS0sC5BTFwrtfLEE9lEwz2bxHQpWJiu12ZeKpi+7oUSqebX+

如果运行Beyond Compare报错

This license key has been revoked
.....

C:\Users\<username>\AppData\Roaming\Scooter Software\ 目录下的内容全部删除重新启动BeyondCompare即可。

fix windows 右键菜单中没有beyond compare选项

Explorer Shell Extension

子目录代码中如何关联 cmake 宏定义

CMakeLists.txt 增加如下内容:

OPTION(MOCK_DATA "Hello World" OFF)
if (MOCK_DATA)
    add_definitions(-DMOCK_DATA_MICRO)
endif()

同理子目录道理一样,通过判断 cmake 变量,来决定是否定义源码中的宏定义。

此时在 cpp 源代码中可以通过如下形式使用宏定义:MOCK_DATA_MICRO

Crystal Oscillator 晶体振荡器

无源晶振

  • 晶振本身并不能起振,需要借助外部振荡电路。因此在实际电路中需要IC上电正常后晶振才能起振。 此时才能测量出晶振波形。

常见晶振频率

晶振常用的频率为 4MHz ~ 50MHz

Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64

kk@debian:~$ cat /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

修改后

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo enp0s3
iface lo inet loopback

iface enp0s3 inet static
        address 192.168.20.103
        netmask 255.255.255.0
        gateway 192.168.20.1
dns-nameservers 114.114.114.114

kk@debian:~$ /sbin/ifconfig

关于 Dokuwiki 详细信息, 请访问 官网 .

安装配置

本教程基于 ubuntu 17.10 x64

参考

安装 apache php

apt-get install apache2
apt-get install php7.1 libapache2-mod-php7.1 php7.1-xml

配置 apache php

  1. 修改文件 apache2/sites-available/000-default.conf 配置 apache2 document root 为 dokuwiki 根目录
- DocumentRoot /var/www/html
+ DocumentRoot /var/www/wikihub
  1. 修改文件 /etc/apache2/apache2.conf 配置 apache security
<Directory />
        Options FollowSymLinks
-       AllowOverride none
+       AllowOverride All
        Require all denied
</Directory>
<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>
<Directory /var/www/>
        Options Indexes FollowSymLinks
-       AllowOverride none
+       AllowOverride All
        Require all granted
</Directory>
  1. Activate the ‘mod_rewrite’ in apache2 to enable .htaccess
sudo a2enmod rewrite && sudo service apache2 restart

安装 dokuwiki

从 dokuwiki 官方下载页面 下载最新版的安装包.

Flutter 学习笔记

Windows Flutter SDK 安装

Download the Flutter archive from your mirror site. In your preferred browser, go to Flutter SDK archive. https://docs.flutter.cn/release/archive?tab=windows

20240726 当前最新版本: Flutter 版本: 3.22.3 Dart 版本:3.4.4 https://storage.flutter-io.cn/flutter_infra_release/releases/stable/windows/flutter_windows_3.22.3-stable.zip

将 flutter_windows_3.22.3-stable.zip sdk 解压到任意位置(根据个人喜好放置)

  1. 使用 git clone 命令来克隆主仓库:
git clone <主仓库 URL>
  1. 进入主仓库所在的根目录,并使用 git submodule init 命令来初始化 submodule:
cd <主仓库目录>
git submodule init
  1. 使用 git submodule update 命令来更新 submodule 中的内容:
git submodule update

这个命令会从 submodule 的远程仓库中拉取代码,并将其合并到本地代码中。

Git 提供了以下两种方式来指定使用哪个 SSH Key 进行认证:

使用 Git Config 命令

使用 git config 命令来配置 Git 的全局或本地参数。在这个命令中,可以使用 core.sshCommand 参数来指定使用哪个 SSH Key 进行认证。

nvm node npm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
source ~/.zshrc
nvm install node
npm config set registry https://registry.npm.taobao.org

gitbook

npm install gitbook-cli -g

gitbook 常见命令

List installed versions:

gitbook ls

List available versions on NPM:

gitbook ls-remote

Install a specific version:

gitbook fetch 2.1.0
# or a pre-release
gitbook fetch beta

Update to the latest version

gitbook update

Uninstall a specific version

gitbook uninstall 2.0.1

使用

gitbook init
gitbook serve (该命令首先会执行 gitbook build 编译书籍, 完成以后会打开一个 web 服务器, 监听在本地的 4000 端口)

plugin

安装方法

在 git book 项目的根目录下执行