国内加速下载 JDK 作者: Shine 时间: 2020-11-24 分类: 软件 评论 1. https://adoptopenjdk.net/ 2. https://mirrors.huaweicloud.com/java/jdk/ 3. https://www.kagura.me/dev/20200424112618.html |---|---| | **`jdk-11.0.9_windows-x64_bin.zip`** | | | **`jdk-11.0.9_osx-x64_bin.tar.gz`** | | | **`**jdk-11.0.9_linux-x64_bin.tar.gz**`** | | | **`**jdk-8u271-linux-x64.tar.gz**`** | | | **`**jdk-8u271-macosx-x64.dmg**`** | | | **`jdk-8u271-windows-x64.exe`** | |
解决升级到 Android Studio 4.1 后一些插件(GsonFormat、LayoutCreator ...)无法使用 作者: Shine 时间: 2020-11-24 分类: 软件 2 条评论 # 解决办法很简单 先卸载不能够使用的插件,然后 从 https://plugins.jetbrains.com/androidstudio 搜索插件,然后下载 `.jar` 插件 ![iShot2020-11-24 17.09.02.jpg][1] # 手动安装插件 > 打开设置页面: > 1. Windows:`Ctrl` + `,` (或者顶部菜单 -> File -> Setting) > 2. macOS:`Command` + `,` > > 选择 **Plugin**,然后点击 `齿轮⚙️图标`,选择 `Install Plugin from Disk ...` > ![iShot2020-11-24 17.04.20.jpg][3] > > 然后选择你刚刚下载的 `.jar` 后缀的插件 > ![后选择你刚刚下载的 .jar 后缀的插件][2] ## 安装完成记得重启 Android Studio [1]: https://cdn.nowtime.cc/2020/11/others/318498546.jpg [2]: https://cdn.nowtime.cc/2020/11/others/158885774.jpg [3]: https://cdn.nowtime.cc/2020/11/others/2703764031.jpg
macOS 使用 Homebrew 安装 Python 3 作者: Shine 时间: 2020-11-24 分类: macOS 评论 # 首先搜索可用 Python 版本 ```shell brew search python ``` > 啪的一下很快啊,搜到了: ```shell chuwen@Chuwen-MBP ~ % brew search python ==> Formulae app-engine-python micropython python@3.9 boost-python python-markdown reorder-python-imports boost-python3 python-yq wxpython gst-python python@3.7 ipython python@3.8 ==> Casks awips-python kk7ds-python-runtime mysql-connector-python If you meant "python" specifically: It was migrated from homebrew/cask to homebrew/core. ``` # 我这里需要安装 3.7 版本的,所以: ```shell brew install python@3.7 ``` # 安装完成,验证安装(查看版本号?) ```shell chuwen@Chuwen-MBP ~ % python3 --version Python 3.8.2 ```
Laravel 安装指定版本 作者: Shine 时间: 2020-11-23 分类: PHP 评论 ```shell composer create-project --prefer-dist laravel/laravel blog "6.*" ```
让 Typecho 文章支持 Emoji 表情输出 作者: Shine 时间: 2020-11-23 分类: 唠嗑闲聊 评论 > 转载自:https://blog.laoooo.cn:88/emoji.html > 原因,最近换上了 macOS ?,自带的输入打出一些关键字会提示一些 Emoji 表情,写博客的时候用上感觉能使页面好看?、亲切些 --- Emoji ===== Emoji表情随着IOS的普及和微信的支持越来越常见,比如这些比较常见的表情:⭐️ ✨ ⚡️。所谓Emoji就是一种在Unicode位于`\u1F601`-`\u1F64F`区段的字符。这个显然超过了目前常用的UTF-8字符集的编码范围u0000-uFFFF。在 MySQL 中,UTF-8只支持最多 3 个字节,而 emoji 是 4 个字节。 原理 == Typecho默认不支持emoji表情,其实不是程序的锅,而是由于编码的问题,只需要将默认的数据库编码utf8修改为utf8mb4即可,当然别忘了,utf8mb4编码只有在PHP5.5以后才支持。 目标 == 简单两步即可让typecho支持emoji 方法 == 1.修改数据库编码 进入`PhpMyadmin`,选择您的数据库,操作 → 整理 → 选择`utf8mb4_unicode_ci` 2.修改数据库表编码 直接运行以下`sql`语句 ```sql alter table typecho_comments convert to character set utf8mb4 collate utf8mb4_unicode_ci; alter table typecho_contents convert to character set utf8mb4 collate utf8mb4_unicode_ci; alter table typecho_fields convert to character set utf8mb4 collate utf8mb4_unicode_ci; alter table typecho_metas convert to character set utf8mb4 collate utf8mb4_unicode_ci; alter table typecho_options convert to character set utf8mb4 collate utf8mb4_unicode_ci; alter table typecho_relationships convert to character set utf8mb4 collate utf8mb4_unicode_ci; alter table typecho_users convert to character set utf8mb4 collate utf8mb4_unicode_ci; ``` 3.修改数据库配置文件 网站`根目录`数据库配置文件`config.inc.php`,下面是示例: ```php $db->addServer(array ( 'host' => localhost, 'user' => 'youruser', 'password' => 'yourpassword', 'charset' => 'utf8mb4', //修改这一行 utf8 -> utf8mb4 'port' => 3306, 'database' => 'yourdatabase' ), Typecho_Db::READ | Typecho_Db::WRITE); ```