<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Leon's Blog——Study Notes]]></title><description><![CDATA[Welcome to Leon's notes world!]]></description><link>https://blog.csdn.net/leon_founder</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; leon_founder]]></copyright><item><title><![CDATA[Mac系统中如何解决python版本不兼容的问题-设置系统默认的python版本]]></title><link>https://blog.csdn.net/leon_founder/article/details/144458303</link><guid>https://blog.csdn.net/leon_founder/article/details/144458303</guid><author>leon_founder</author><pubDate>Fri, 13 Dec 2024 19:16:29 +0800</pubDate><description><![CDATA[修改Mac系统中默认python版本的方法]]></description><category></category></item><item><title><![CDATA[优雅解决：M1 芯片maven 编译protobuf生成Java代码时，不能找到protoc-gen-grpc-java:exe:osx-aarch_64]]></title><link>https://blog.csdn.net/leon_founder/article/details/144457782</link><guid>https://blog.csdn.net/leon_founder/article/details/144457782</guid><author>leon_founder</author><pubDate>Fri, 13 Dec 2024 18:47:38 +0800</pubDate><description><![CDATA[Apple Silicon平台下使用Maven编译gRPC protobuf文件时不支持cpu架构引起的问题解决方式]]></description><category></category></item><item><title><![CDATA[Mac如何导出备份企业微信的聊天记录]]></title><link>https://blog.csdn.net/leon_founder/article/details/130174624</link><guid>https://blog.csdn.net/leon_founder/article/details/130174624</guid><author>leon_founder</author><pubDate>Sat, 15 Apr 2023 20:23:20 +0800</pubDate><description><![CDATA[首先，退出企业微信，目的是暂不接收新的消息，如果接收了新的消息，备份的企业微信数据覆盖后，新的聊天记录可能会丢失（不确定）。/Users//Library/Containers/com.tencent.WeWorkMac/Data//Users//Library/Containers/com.tencent.WeWorkMac/Data/3. 将此两个目录进行压缩，或者直接复制到备份目录或者目标机器上。6. 再次运行企业微信，登录原来的账号就可以看到之前的聊天记录了。]]></description><category></category></item><item><title><![CDATA[xcode 14 bundle使用]]></title><link>https://blog.csdn.net/leon_founder/article/details/127369188</link><guid>https://blog.csdn.net/leon_founder/article/details/127369188</guid><author>leon_founder</author><pubDate>Mon, 17 Oct 2022 17:16:39 +0800</pubDate><description><![CDATA[最近在看iOS编程，发现有个bundle类型，可以在里面包含多个文件，如图标等。在xcode中点开“File -> Project -> macOS -> Framework & Library (Bundle)"，填写好bundle名字后点击确定，这时就创建好了bundle。在Xcode中选择bundle，右键“add files to XXXX”，选择要导入的文件列表即可。]]></description><category></category></item><item><title><![CDATA[xcode 14 删除main.stroyboard启动失败的问题解决]]></title><link>https://blog.csdn.net/leon_founder/article/details/127347582</link><guid>https://blog.csdn.net/leon_founder/article/details/127347582</guid><author>leon_founder</author><pubDate>Sun, 16 Oct 2022 15:37:25 +0800</pubDate><description><![CDATA[如上图，将“UIKit Main Storyboard File Base Name”中的main删除。3. 这个时候运行已经不报错了，但是整个app都是黑色，原因是没有加载UIWindow。2. 进入到“info.plist”中，将“Storyboard Name”删除。4. 在SceneDelegate.m文件中添加UIWindow的实现。1.  打开项目的“Build Settings”此时显示的是ViewController中的内容。删除main.stroyboard后，运行时报错。]]></description><category></category></item><item><title><![CDATA[Vaadin获取控件Top、Left、Width、Height的一种方式]]></title><link>https://blog.csdn.net/leon_founder/article/details/103125937</link><guid>https://blog.csdn.net/leon_founder/article/details/103125937</guid><author>leon_founder</author><pubDate>Mon, 18 Nov 2019 17:11:14 +0800</pubDate><description><![CDATA[通过add event listener的方式获取当前点击的控件的信息。

可依据html中element的属性https://www.w3school.com.cn/jsref/dom_obj_all.asp


import com.vaadin.flow.dom.DomEvent;
import elemental.json.JsonObject;

Tab tab = new Tab("...]]></description><category></category></item><item><title><![CDATA[Google Puppeteer的使用 - 截图]]></title><link>https://blog.csdn.net/leon_founder/article/details/88030914</link><guid>https://blog.csdn.net/leon_founder/article/details/88030914</guid><author>leon_founder</author><pubDate>Thu, 28 Feb 2019 15:48:28 +0800</pubDate><description><![CDATA[弹出对话框的处理
	https://github.com/GoogleChrome/puppeteer/blob/v1.12.2/docs/api.md#class-dialog
		使用时，必须紧跟在page初始化后，定义响应方式
		
			
const puppeteer = require('puppeteer');

puppeteer.launch().then(async brows...]]></description><category></category></item><item><title><![CDATA[InnoDB表的限制]]></title><link>https://blog.csdn.net/leon_founder/article/details/83963701</link><guid>https://blog.csdn.net/leon_founder/article/details/83963701</guid><author>leon_founder</author><pubDate>Sun, 11 Nov 2018 22:50:58 +0800</pubDate><description><![CDATA[参见：https://dev.mysql.com/doc/refman/5.7/en/innodb-restrictions.html

The maximum row length, except for variable-length columns (VARBINARY, VARCHAR, BLOB and TEXT), is slightly less than half of a pag...]]></description><category></category></item><item><title><![CDATA[Thrift在Tomcat中以Servlet运行]]></title><link>https://blog.csdn.net/leon_founder/article/details/83690770</link><guid>https://blog.csdn.net/leon_founder/article/details/83690770</guid><author>leon_founder</author><pubDate>Sat, 03 Nov 2018 20:57:13 +0800</pubDate><description><![CDATA[Thrift在Tomcat中以Servlet运行创建Servlet继承自TServlet
创建Servlet继承自TServlet
以前在将Thrift服务在Tomcat中以Servlet运行时，需要自己实现协议转换的“中间”Servlet，现在只需要继承org.apache.thrift.server.TServlet就可以，（Thrift的基本知识在此不再冗述，读者可自己查看github。此处...]]></description><category></category></item><item><title><![CDATA[Spring boot 2.1 中Thymeleaf layout的使用注意事项]]></title><link>https://blog.csdn.net/leon_founder/article/details/82501043</link><guid>https://blog.csdn.net/leon_founder/article/details/82501043</guid><author>leon_founder</author><pubDate>Fri, 07 Sep 2018 18:44:29 +0800</pubDate><description><![CDATA[首先，需要检查依赖的包，可参考 https://ultraq.github.io/thymeleaf-layout-dialect/Installation.html 。或直接在pom.xml中添加


		&amp;lt;dependency&amp;gt;
			&amp;lt;groupId&amp;gt;nz.net.ultraq.thymeleaf&amp;lt;/groupId&amp;gt;
			&amp;lt;artifactId&amp;g...]]></description><category></category></item><item><title><![CDATA[[CentOS] TiDB安装中需要注意的问题]]></title><link>https://blog.csdn.net/leon_founder/article/details/79425746</link><guid>https://blog.csdn.net/leon_founder/article/details/79425746</guid><author>leon_founder</author><pubDate>Fri, 02 Mar 2018 18:01:59 +0800</pubDate><description><![CDATA[本人是使用Ansible做的部署，按照文档做还是很容易部署的。1. 文件系统已使用ext4格式，修改挂载参数（增加nodelalloc和noatime）首先，检查系统的文件格式，命令如下#vi /etc/fstab在你设置的数据存储的挂载点那一行里，第三节为磁盘格式，在第四节设置参数（注意，以逗号分隔）。然后需要重新启动，在启动时，系统会读取此文件挂载磁盘。2. 时间同步服务同步问题如果在部署时报...]]></description><category></category></item><item><title><![CDATA[CentOS 7安装Python 3.6，pip3报错问题]]></title><link>https://blog.csdn.net/leon_founder/article/details/78721879</link><guid>https://blog.csdn.net/leon_founder/article/details/78721879</guid><author>leon_founder</author><pubDate>Tue, 05 Dec 2017 17:00:09 +0800</pubDate><description><![CDATA[在CentOS 7上安装Python3.6.3后，在使用pip命令时报如下错误

Traceback (most recent call last):
  File "/usr/Python3.6.3/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options,]]></description><category></category></item><item><title><![CDATA[CentOS 7上安装Spark 2.2单机]]></title><link>https://blog.csdn.net/leon_founder/article/details/78715831</link><guid>https://blog.csdn.net/leon_founder/article/details/78715831</guid><author>leon_founder</author><pubDate>Tue, 05 Dec 2017 09:33:14 +0800</pubDate><description><![CDATA[Spark 2.2 需要运行在java环境，是不是任何版本都可以呢？不见得。之前在spark官网中看到需要运行环境是jdk8+，所以本人安装了jdk9，但是在JDK 9环境下没有安装成功，运行spark的 ./bin/spark-shell会报某个配置值丢失（估计是JDK版本的问题）。这次安装时，选择了jdk 8，安装后运行正常。下面简单记录一下安装的过程，比较简单。
1. 下载Jdk，http]]></description><category></category></item><item><title><![CDATA[Kivy显示中文]]></title><link>https://blog.csdn.net/leon_founder/article/details/78572387</link><guid>https://blog.csdn.net/leon_founder/article/details/78572387</guid><author>leon_founder</author><pubDate>Sun, 19 Nov 2017 00:47:33 +0800</pubDate><description><![CDATA[最近在学习Kivy，练习写demo的时候发现中文无法正确显示，在网上查询说要指定字体即可，于是在OS X中找到字体库目录 
/System/Library/Fonts， 可以直接使用其中的中文字体如，黑体：‘STHeiti Medium.ttc‘，在代码中使用如下：
self.add_widget(Label(text='用户名：', font_name='STHeiti Medium.ttc]]></description><category></category></item><item><title><![CDATA[Lua逻辑操作符]]></title><link>https://blog.csdn.net/leon_founder/article/details/78256924</link><guid>https://blog.csdn.net/leon_founder/article/details/78256924</guid><author>leon_founder</author><pubDate>Tue, 17 Oct 2017 09:39:35 +0800</pubDate><description><![CDATA[Lua支持常用的逻辑操作符 and , or 和 not . 逻辑操作中 nil 被看为false, 除了boolean的false和nil外的值被看作 true. 如果第一个操作数是false，and操作的结果为第一个操作数，否则为第二个操作数；如果第一个操作数不是false，or操作的结果为第一个操作数，否则结果为第二个操作数。
> 4 and 5 --> 5
> nil and 13 -]]></description><category></category></item><item><title><![CDATA[Cordova android build fails immediately [Error: spawn EACCES]]]></title><link>https://blog.csdn.net/leon_founder/article/details/78221980</link><guid>https://blog.csdn.net/leon_founder/article/details/78221980</guid><author>leon_founder</author><pubDate>Fri, 13 Oct 2017 09:16:51 +0800</pubDate><description><![CDATA[在学习Cordova时，build android平台时，遇到spawn EACCES错误，在网上找了几篇帖子，都说是权限问题，按照描述更改了各种提到的文件权限，始终没有解决。最后在stackoverflow找到了最好的解决方法。 
本人用的时OS X系统，其他系统应该相同。另外本人机器上同时安装了android studio 3.0 preview和2.3两个版本，所以有两个gradle的版本，系]]></description><category></category></item><item><title><![CDATA[Nodejs 读取中文时乱码问题]]></title><link>https://blog.csdn.net/leon_founder/article/details/77866368</link><guid>https://blog.csdn.net/leon_founder/article/details/77866368</guid><author>leon_founder</author><pubDate>Wed, 06 Sep 2017 14:57:32 +0800</pubDate><description><![CDATA[最近在用Nodejs访问含有中文的文件，在以utf8编码读取后，再转为gbk，总是乱码，在网上搜了一圈才解决，现分享给大家。
说白了就一句话，先以二进制编码读入，再进行转换。
var fs = require('fs');
var iconv = require('iconv-lite');

var file_name = "/tmp/0820_0824.csv";

fs.readFile]]></description><category></category></item><item><title><![CDATA[按键值列表]]></title><link>https://blog.csdn.net/leon_founder/article/details/3482112</link><guid>https://blog.csdn.net/leon_founder/article/details/3482112</guid><author>leon_founder</author><pubDate>Tue, 09 Dec 2008 10:36:00 +0800</pubDate><description><![CDATA[Virtual-Key Codes Thefollowing table shows the symbolic constant names, hexadecimal values,and mouse or keyboard equivalents for the virtual-key codes used by thesystem. The codes are listed in ]]></description><category></category></item><item><title><![CDATA[const 对指针的约束]]></title><link>https://blog.csdn.net/leon_founder/article/details/2782481</link><guid>https://blog.csdn.net/leon_founder/article/details/2782481</guid><author>leon_founder</author><pubDate>Thu, 07 Aug 2008 14:46:00 +0800</pubDate><description><![CDATA[int x, y;int * const ptr = &x; //ptr is a constant pointer to an integer                       //An Integer can be modified through ptr,                       //but ptr always points to the ]]></description><category></category></item><item><title><![CDATA[如何安装Python图型处理库Python Imaging Library(PIL)]]></title><link>https://blog.csdn.net/leon_founder/article/details/2031161</link><guid>https://blog.csdn.net/leon_founder/article/details/2031161</guid><author>leon_founder</author><pubDate>Wed, 09 Jan 2008 06:53:00 +0800</pubDate><description><![CDATA[在Python中对图片的处理采用了PIL库，这个库可用于图片的一些常用操作，如改变尺寸、格式、色彩、旋转等处理。首先要先安装Python（在这里不做介绍）。安装完Python后，安装PIL库就非常简单了，只需按如下步骤进行1、下载PIL的Source Kit（因为这个包支持全部平台） Imaging--1.1.6.tar.gz   URL:  http://www.pythonware]]></description><category></category></item></channel></rss>