草庐IT

Openwrt 分流-缓存-去广告

​关键字:openwrt,smartdns,adguardhome,openclash,分流,缓存,去广告目的:openclash分流,smartdns缓存DNS,adguardhome去广告设备及系统信息:实现效果:思路:smartdns作为openclash上游服务器,openclash作为adguardhome上游服务器smartdns:第一服务器第二服务器上游服务器分组CHINA上游服务器分组GWopenclash:全局设置-运行模式全局设置-DNS设置自定义DNS服务器adguardhome使用53端口代替dnsmasqDNS设置DHCPandDNS高级设置Network->DHCP

Kafka系列之:Unexpected handshake request with client mechanism PLAIN, enabled mechanisms are []

Kafka系列之:UnexpectedhandshakerequestwithclientmechanismPLAIN,enabledmechanismsare[]一、完整报错二、错误原因三、解决方法一、完整报错java.util.concurrent.ExecutionException:org.apache.kafka.common.errors.IllegalSaslStateException:UnexpectedhandshakerequestwithclientmechanismPLAIN,enabledmechanismsare[]atorg.apache.kafka.commo

Spring boot 事务无效,报错:Transaction not enabled

问题描述使用springboot+mybatisplus时添加的事务不生效,并且有些方法操作会出现如下异常:c.a.m.s.i.SubscriptionsStatsServiceImpl[SqlHelper.java:179]SqlSession[org.apache.ibatis.session.defaults.DefaultSqlSession@7f63bdb9]Transactionnotenabled问题排查追踪SqlHelper类,找到报错的位置,如下:可以看到只有批量插入才会报错,单条插入不报错。报错是因为得不到事务标识,猜测可能是事务注解没生效。事务使用方法查找springbo

https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.问题解决

一、问题描述使用ffmpeg通过url下载视频时出现如下报错:os.system("ffmpeg-i\"{}\"-q2{}".format(cur_url,sv_path))#下载视频-q2为原始二、问题分析从提示信息可以判断,下载失败与openssl有关,所以需要进行相关的配置;同时需要对ffmpeg进行重新安装;三、问题解决2.1安装并开启opensslaptinstallopenssh-serverserversshstartserversshstatus2.2ffmpeg进行openssl有关配置及安装1、在指定ffmpeg安装路径时,带上–enable-opensslcdffmpeg

WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. I... it

查看防火墙状态时,日志中有警告: WARNING:AllowZoneDriftingisenabled.Thisisconsideredaninsecureconfigurationoption.I...itnow.  解决:Step1:在/etc/firewalld/firewalld.conf文件中将AllowZoneDrifting的配置项值改为no Step2:重启防火墙systemctlrestartfirewalldStep3:再次查看防火墙状态,日志中的警告没了  说明:在 firewalld 中添加了一个配置参数来禁用区域偏移在以前的版本中,firewalld 服务包含一个未记

c# - ReadOnly 和 Enabled 之间的主要区别是什么?

在WindowsForms控件,有两个属性:ReadOnly和Enabled。这两个属性有什么区别?我觉得他们的行为方式相同。 最佳答案 正如下面论坛帖子中所说:InthecontextofaTextBox,readonlyallowstheusertosetfocustoandselectandcopythetextbutnotmodifyit.AdisabledTextBoxdoesnotallowanyinteractionwhatsoever.UseReadOnlywhenyouhavedatathatyouwanttheu

c# - ReadOnly 和 Enabled 之间的主要区别是什么?

在WindowsForms控件,有两个属性:ReadOnly和Enabled。这两个属性有什么区别?我觉得他们的行为方式相同。 最佳答案 正如下面论坛帖子中所说:InthecontextofaTextBox,readonlyallowstheusertosetfocustoandselectandcopythetextbutnotmodifyit.AdisabledTextBoxdoesnotallowanyinteractionwhatsoever.UseReadOnlywhenyouhavedatathatyouwanttheu

c# - 使用 System.Windows.Forms.Timer.Start()/Stop() 与 Enabled = true/false

假设我们在.Net应用程序中使用System.Windows.Forms.Timer,在计时器上使用Start()和Stop()方法与使用Enabled属性之间是否有任何有意义的区别?例如,如果我们希望在进行某些处理时暂停计时器,我们可以这样做:myTimer.Stop();//Dosomethinginterestinghere.myTimer.Start();或者,我们可以这样做:myTimer.Enabled=false;//Dosomethinginterestinghere.myTimer.Enabled=true;如果没有显着差异,社区是否就选择哪个选项达成共识?

c# - 使用 System.Windows.Forms.Timer.Start()/Stop() 与 Enabled = true/false

假设我们在.Net应用程序中使用System.Windows.Forms.Timer,在计时器上使用Start()和Stop()方法与使用Enabled属性之间是否有任何有意义的区别?例如,如果我们希望在进行某些处理时暂停计时器,我们可以这样做:myTimer.Stop();//Dosomethinginterestinghere.myTimer.Start();或者,我们可以这样做:myTimer.Enabled=false;//Dosomethinginterestinghere.myTimer.Enabled=true;如果没有显着差异,社区是否就选择哪个选项达成共识?

Elasticsearch报错Elasticsearch built-in security features are not enabled

目录一、问题描述二、解决方法一、问题描述SpringBoot集成Elasticsearch时报错Elasticsearchbuilt-insecurityfeaturesarenotenabled:2022-03-2518:23:50.589WARN58032---[/Odispatcher1]org.elasticsearch.client.RestClient:request[GEThttp://192.168.1.38:9200/]returned1warnings:[299Elasticsearch-7.15.2-93d5a7f6192e8a1a12e154a2b81bf6fa7309