• WordPress分类页面中如何排除子分类文章

    默认 WordPress 会在分类页面显示子分类文章,如果只想显示该分类的文章,而不显示子分类中的文章,可以通过下面的代码实现。 在主题文章归档模板主循环: 在上面添加: 下面添加:

    WordPress 2023-12-04 30

  • StableDiffusion安装教程

    StableDiffusion github下载地址https://github.com/AUTOMATIC1111/stable-diffusion-webui 首先,电脑上必备软件,python和git,下载资源需要用到, 最后,根据网速不同,个别资源可能需要通过魔法 运行webui.bat,会自动安装所需资源, 所需资源安装成功之后会自动打开一个网页, 改中文 因为都是英文的,如果需要中文包…

    学习 2023-12-04 35

  • python改国内源

    cmd执行 例如 改成阿里云源 单独某个 pip install 安装包名称 -i https://mirrors.aliyun.com/pypi/simple/ 一劳永逸所有的 pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ 以下不同的源地址 1 清华大学(完全度和速度都很好,是一个优秀的pip镜像源…

    学习 2023-12-04 38

  • StableDiffusion webui ERROR: Ignored the following versions that require a different python version

    ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,=3.7,=3.7,=3.7,

    学习 2023-12-04 26

  • StableDiffusion webui 打开报错AsyncConnectionPool.__init__() got an unexpected keyword argument ‘socket_options

    找到requirements_versions.txt 在里面添加 httpx==0.24.1 然后保存,重新启动

    学习 2023-12-04 28

  • wodpress wp_list_bookmarks输出友情链接

    使用 参数 参数名 描述 order 升序 ASC 或 降序 DESC,默认 ASC。 limit -1 表示全部,1+整数表示要显示的个数。 category 以逗号分隔的类别ID列表,其中包含来自的链接。 category_name 要按名称检索链接的类别。 hide_invisible 是否显示或隐藏标记为“不可见”的链接。接受1|true或0|false。默认值1|true。 show_u…

    WordPress 2023-12-01 46

  • Linux Debian常用命令

    1.更新源 sudo apt-get update -y 2.更新已安装的包 sudo apt-get upgrade -y 3.升级系统 sudo apt-get dist-upgrade -y 4.使用 dselect 升级 sudo apt-get dselect-upgrade -y 5.了解使用依赖 sudo apt-cache depends package 6.查看该包被哪些包依赖 …

    学习 2023-11-27 56

  • Linux更换cmake版本

    先去官网http://www.cmake.org/files查看所需版本, 例如下面,我要换成3.27.8版本 mv /usr/bin/cmake /usr/bin/cmake.backup wget http://www.cmake.org/files/v3.27/cmake-3.27.8.tar.gz tar zxf cmake-3.27.8.tar.gz cd cmake-3.27.8 ./…

    学习 2023-11-27 61

  • ERROR: No matching distribution found for win32print

    执行pip install win32print的时候, 却提示这个, ERROR: Could not find a version that satisfies the requirement win32print (from versions: none) ERROR: No matching distribution found for win32print 所以需要这样安装 pip in…

    学习 2023-07-18 502

  • python pyqt

    这里只简单记录一下 安装 pip install PyQt6 pip install pyqt6-tools 第一个Qt程序 #!/usr/bin/python import sys from PyQt6.QtWidgets import QApplication, QWidget, QPushButton def main(): app = QApplication(sys.argv) w = …

    学习 2023-07-17 383

  • phpstudy apache 反代

    vhosts.conf ServerName www.test.com ServerAlias www1.test.com ProxyRequests Off Order deny,allow Allow from all ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ httpd.conf …

    学习 2023-06-28 436

  • 7z分目录逐个压缩

    首先电脑上已经安装7z, 方便起见可以先把7z加入环境变量, 当然也可以不加入环境变量, 在要压缩的目录执行通过CMD命令行执行 FOR /D %i IN ("*") DO 7z a "%~ni.7z" "%i\*" 这里不加入环境变量的话,下面7z需要指定目录 FOR /D %i IN ("*") DO 安装路径\7z a "%~ni.7z" "%i\*" 如果添加密码的话的,这里密码12345…

    学习 2023-06-05 504

  • php redis命令

    连接redis服务器 $redis = new Redis(); $redis->connect('127.0.0.1',6379,1);//短链接,本地host,端口为6379,超过1秒放弃链接 返回boolean $redis->open('127.0.0.1',6379,1);//短链接(同上) $redis->pconnect('127.0.0.1',6379,1);//长链接,本地hos…

    学习 2023-03-03 782

  • php redis

    连接 $redis = new Redis(); if (!$redis->connect('127.0.0.1', 6379)) { trigger_error('Redis连接出错!!!', E_USER_ERROR); } else { echo '连接正常'; } 获取所有的key(keys) $data = $redis->keys('*'); dump($data); 判断键对应值的类…

    学习 2023-03-02 585

  • php mail

    首先,php邮箱发送需要使用第三方插件, PHPMailer git :https://github.com/PHPMailer/PHPMailer 安装 可在项目目录使用composer安装,当然前提电脑上已经安装过composer composer require phpmailer/phpmailer 或者可以直接去git下载程序,然后直接引入,具体可以参考作者git里说明, 我这边使用的c…

    学习 2023-03-02 609