<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[qq_40306103的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_40306103</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_40306103]]></copyright><item><title><![CDATA[MacOS环境下Pycharm以管理员(root)身份运行]]></title><link>https://blog.csdn.net/qq_40306103/article/details/120633408</link><guid>https://blog.csdn.net/qq_40306103/article/details/120633408</guid><author>qq_40306103</author><pubDate>Thu, 07 Oct 2021 10:33:02 +0800</pubDate><description><![CDATA[先通过which python3获得python3所在路径:
which python3

如上得到了其所在路径是 /usr/local/opt/python@3.7/bin/python3
创建shell脚本文件
vi /usr/local/opt/python@3.7/bin/python-sudo.sh

编辑shell脚本文件
#!/bin/bash
sudo /usr/local/opt/python@3.7/bin/python3 "$@"

增加执行权限:
chmod +x /usr/loca]]></description><category></category></item><item><title><![CDATA[TypeScript环境下, react-redux持久化配置]]></title><link>https://blog.csdn.net/qq_40306103/article/details/115677393</link><guid>https://blog.csdn.net/qq_40306103/article/details/115677393</guid><author>qq_40306103</author><pubDate>Tue, 13 Apr 2021 20:15:42 +0800</pubDate><description><![CDATA[# 目录结构
-- redux
		-- actions
				title.tsx
		-- reducers
				index.tsx
				title.tsx
		store.tsx
App.tsx
index.tsx

// react + typescript + echarts + less + axios + antd + redux配置环境
"@types/echarts": "^4.9.6",
"@types/react": "^17.0.0",
"@types/react-dom":]]></description><category></category></item><item><title><![CDATA[ES6学习之＜函数扩展＞]]></title><link>https://blog.csdn.net/qq_40306103/article/details/115666920</link><guid>https://blog.csdn.net/qq_40306103/article/details/115666920</guid><author>qq_40306103</author><pubDate>Tue, 13 Apr 2021 14:43:09 +0800</pubDate><description><![CDATA[函数扩展
// 函数参数默认值
function fn(x) { x = x || 'hello' } // ES5写法
function fn(x = 'hello') {} 				// ES6写法, 如果参数默认值是表达式形式, 则是惰性求值的
// 解构赋值默认值结合使用
function foo({x = 2, y = 5}) { console.log(x, y) }
foo({x: 1}) // x: 1; y: 5
foo() 			// error
function foo({x = 2,]]></description><category></category></item><item><title><![CDATA[MacOS安装SVN，github下载部分文件]]></title><link>https://blog.csdn.net/qq_40306103/article/details/115630848</link><guid>https://blog.csdn.net/qq_40306103/article/details/115630848</guid><author>qq_40306103</author><pubDate>Mon, 12 Apr 2021 17:18:56 +0800</pubDate><description><![CDATA[MacOS安装SVN，github下载部分文件
MacOS安装SVN

Homebrew官网: https://brew.sh/

# 安装Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 安装SVN
brew install svn

github下载部分文件

前提：只需要github上学习资料整理的部分内容，这边以Vue为例


# 完整路]]></description><category></category></item><item><title><![CDATA[ES6学习之＜数值扩展＞]]></title><link>https://blog.csdn.net/qq_40306103/article/details/115490236</link><guid>https://blog.csdn.net/qq_40306103/article/details/115490236</guid><author>qq_40306103</author><pubDate>Wed, 07 Apr 2021 17:03:42 +0800</pubDate><description><![CDATA[数值扩展
// 二进制和八进制表示法
// ES6提供了二进制(0b或0B)和八进制(0o或0O)的新写法
0b110 === 6		// true
0o777 === 511 // true

// Number.isFinite()检查一个数值是否为有限的, Infinity/-Infinity以及非数值类型均返回false
Number.isFinite('1'/'1')		// true
Number.isFinite(-Infinity)	// false
Number.isFinite('15']]></description><category></category></item><item><title><![CDATA[ES6学习之＜字符串扩展＞]]></title><link>https://blog.csdn.net/qq_40306103/article/details/115481207</link><guid>https://blog.csdn.net/qq_40306103/article/details/115481207</guid><author>qq_40306103</author><pubDate>Wed, 07 Apr 2021 11:11:31 +0800</pubDate><description><![CDATA[字符串扩展
// \uxxxx形式表示一个字符, xxxx表示字符的Unicode码点
let a = 1
console.log(\u0061, "\u0061")  // 1 "a"
// ES6
let hello = 2
console.log(hell\u{6F})				 // 2
'\u{1F680}' === '\uD83D\uDE80' // true
// 等价表示
'\z' === 'z'
'\172' === 'z'
'\x7A' === 'z'
'\u007A' === 'z'
']]></description><category></category></item><item><title><![CDATA[ES6学习之＜正则扩展＞]]></title><link>https://blog.csdn.net/qq_40306103/article/details/115481071</link><guid>https://blog.csdn.net/qq_40306103/article/details/115481071</guid><author>qq_40306103</author><pubDate>Wed, 07 Apr 2021 11:07:23 +0800</pubDate><description><![CDATA[正则扩展
// ES6正则表达式形式 以下均等价于const regex = /xyz/i
// 1.参数是字符串
const regex = new RegExp('xyz', 'i')
// 2.参数是正则表达式
const regex = new RegExp(/xyz/i)
const regex = new RegExp(/xyz/, 'i')
console.log(new RegExp(/xyz/g, 'i').flags)  // i

// 字符串的正则方法
String.prototyp]]></description><category></category></item><item><title><![CDATA[ES6学习之＜解构赋值＞]]></title><link>https://blog.csdn.net/qq_40306103/article/details/115443410</link><guid>https://blog.csdn.net/qq_40306103/article/details/115443410</guid><author>qq_40306103</author><pubDate>Mon, 05 Apr 2021 15:50:19 +0800</pubDate><description><![CDATA[解构赋值

允许按照一定模式从数组和对象中提取值，然后对变量进行赋值


数组解构赋值

// 完全解构
let [foo, [[bar], baz]] = [1, [[2], 3]] // foo: 1; bar: 2; baz: 3
let [x, , y] = [1, 2, 3] // x: 1; y: 3
let [x, y, ...z] = ['a'] // x: "a"; y: undefined; z: []

// 不完全解构
let [x, y] = [1, 2, 3] // x: 1; ]]></description><category></category></item><item><title><![CDATA[NodeJS笔记]]></title><link>https://blog.csdn.net/qq_40306103/article/details/115439359</link><guid>https://blog.csdn.net/qq_40306103/article/details/115439359</guid><author>qq_40306103</author><pubDate>Mon, 05 Apr 2021 10:56:33 +0800</pubDate><description><![CDATA[NodeJS

NodeJS是一个能够在服务器端运行JavaScript的开放源代码、跨平台JavaScript运行环境

模块化

ESMAScript标准缺陷：没有模块系统、标准库较少、没有标准接口、缺乏管理系统

CommonJS


CommonJS规范

CommonJS规范的提出，主要是为了弥补当前JavasScript没有标准的缺陷。
CommonJS规范为JS指定了一个美好的愿景，希望JS能够在任何地方运行。
CommonJS对模块的定义十分简单

模块引用
模块定义


模块标识



模]]></description><category></category></item><item><title><![CDATA[MacOS10.15+解决PPTP问题]]></title><link>https://blog.csdn.net/qq_40306103/article/details/115367527</link><guid>https://blog.csdn.net/qq_40306103/article/details/115367527</guid><author>qq_40306103</author><pubDate>Thu, 01 Apr 2021 10:05:55 +0800</pubDate><description><![CDATA[Mac10.15+增加PPTP协议
恢复10.14+PPTP功能

参考 https://blog.csdn.net/A1553225534/article/details/104187054


10.15+需要修改的文件

/usr/local/bin/pptp（新增）
/System/Library/Extensions/PPTP.ppp（新增）
/System/Library/Extensions/PPP.kext（这个是替换，切记备份）




如果发现/System/Library/Extens]]></description><category></category></item><item><title><![CDATA[Docker上配置Redis集群时出现No more cluster attempts left.]]></title><link>https://blog.csdn.net/qq_40306103/article/details/104946926</link><guid>https://blog.csdn.net/qq_40306103/article/details/104946926</guid><author>qq_40306103</author><pubDate>Wed, 18 Mar 2020 16:09:02 +0800</pubDate><description><![CDATA[Docker上配置时一定要更改每个redis.conf指定ip，端口和总线端口
#Example:
cluster-announce-ip182.92.196.72
cluster-announce-port7006
cluster-announce-bus-port17006
]]></description><category></category></item><item><title><![CDATA[配置fastDFS时出现错误org.csource.common.MyException: getStoreStorage fail, errno code: 2]]></title><link>https://blog.csdn.net/qq_40306103/article/details/104756651</link><guid>https://blog.csdn.net/qq_40306103/article/details/104756651</guid><author>qq_40306103</author><pubDate>Mon, 09 Mar 2020 17:18:34 +0800</pubDate><description><![CDATA[vi /etc/fdfs/storage.conf,修改一下IP地址

且ip地址不能为127.0.0.1，若想使用本地ip，可使用ifconfig查看，如192.168.0.102


]]></description><category></category></item><item><title><![CDATA[Win10  ThinkPHP5.1第一次安装与配置（XAMPP PHP5.6）]]></title><link>https://blog.csdn.net/qq_40306103/article/details/89500714</link><guid>https://blog.csdn.net/qq_40306103/article/details/89500714</guid><author>qq_40306103</author><pubDate>Wed, 24 Apr 2019 19:16:28 +0800</pubDate><description><![CDATA[下载XAMPP （PHP5.6），外国网站，需要科学上网下载速度才可以：

https://sourceforge.net/projects/xampp/files/

下载composer：

https://getcomposer.org/Composer-Setup.exe

路径选择为xampp安装目录/php/php.exe，其他按默认走就行



这个本地测试先不用管，直接ne...]]></description><category></category></item></channel></rss>