LMLPHP后院

知识和钱一样贵重,我们不能直接施舍院内

maybe yes 发表于 2022-10-04 05:54

关于知识和教育。

对于教育,我有一点想法的改变。我发现你去教育一个人,特别是孩子,你不能直接告诉他正确答案,因为知识和钱一样的重要,前面我就说过,钱是非常贵重重要的东西,我们有时候为了人情,最好不要直接施舍给别人钱,因为,给钱的一瞬间太短,以至于人家根本就不记得你给过钱。而教育也是一样,很多时候我们发现,父母教育不了自己的孩子,是因为父母往往直接教育,这种教育在很多时候没什么用,需要对象有极高的觉悟,而我们都是普通人,不是神。

当下的教育系统的烂,就没有必要再说了。

而当下孩子们的教育问题,或许是普遍的,这也许是好事,让未来的有能力者能够更好的收割这一代人。

当下的环境决定的吧,现在的孩子几乎都是窝在家里,让孩子和父母的粘性得到了历史上最粘的时代,因为,一放假,主要就是呆在家里,孩子们玩的对象都是长辈,这是普遍问题。

acme letsencrypt 折腾记技术

maybe yes 发表于 2022-09-30 18:01

acme 折腾记,更便捷的申请证书,可是咱们毕竟不是域名服务商,难以做到像 CF 那样牛逼。

我不喜欢这个脚本,强制安装,安装只是复制文件,添加链接,自动任务。并且还一定要注册,越来越难用了。

以下是折腾记录

pi@raspberrypi:~/work/acme $ acme.sh  --issue  --dns  -d godruoyi.com -d *.godruoyi.com
-bash: acme.sh:未找到命令
pi@raspberrypi:~/work/acme $ bash acme.sh --issue --dns -d x.com -d *.x.com
[2022年 09月 30日 星期五 16:29:12 CST] It seems that you are using dns manual mode. Read this link first: https://github.com/acmesh-official/acme.sh/wiki/dns-manual-mode
pi@raspberrypi:~/work/acme $ bash acme.sh --issue --dns -d x.com -d *.x.com --yes-I-know-dns-manual-mode-enough-go-ahead-please
[2022年 09月 30日 星期五 16:30:47 CST] Using CA: https://acme.zerossl.com/v2/DV90
[2022年 09月 30日 星期五 16:30:47 CST] Create account key ok.
[2022年 09月 30日 星期五 16:30:47 CST] No EAB credentials found for ZeroSSL, let's get one
[2022年 09月 30日 星期五 16:30:47 CST] acme.sh is using ZeroSSL as default CA now.
[2022年 09月 30日 星期五 16:30:47 CST] Please update your account with an email address first.
[2022年 09月 30日 星期五 16:30:47 CST] acme.sh --register-account -m my@example.com
[2022年 09月 30日 星期五 16:30:47 CST] See: https://github.com/acmesh-official/acme.sh/wiki/ZeroSSL.com-CA
[2022年 09月 30日 星期五 16:30:47 CST] Please add '--debug' or '--log' to check more details.
[2022年 09月 30日 星期五 16:30:47 CST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
pi@raspberrypi:~/work/acme $ vim acme.sh 
pi@raspberrypi:~/work/acme $ acme.sh --register-account -m x@gmail.com
-bash: acme.sh:未找到命令
pi@raspberrypi:~/work/acme $ bash acme.sh --register-account -m x@gmail.com
[2022年 09月 30日 星期五 16:33:07 CST] No EAB credentials found for ZeroSSL, let's get one
[2022年 09月 30日 星期五 16:33:09 CST] Registering account: https://acme.zerossl.com/v2/DV90
[2022年 09月 30日 星期五 16:33:27 CST] Registered
[2022年 09月 30日 星期五 16:33:27 CST] ACCOUNT_THUMBPRINT='WHQQJ-H2154vB4Yo7J_YU-7gmht5PgF03Z-8vd5qU_0'
pi@raspberrypi:~/work/acme $ bash acme.sh --issue --dns -d x.com -d *.x.com --yes-I-know-dns-manual-mode-enough-go-ahead-please
[2022年 09月 30日 星期五 16:33:54 CST] Using CA: https://acme.zerossl.com/v2/DV90
[2022年 09月 30日 星期五 16:33:54 CST] Creating domain key
[2022年 09月 30日 星期五 16:33:54 CST] The domain key is here: /home/pi/.acme.sh/x.com/x.com.key
[2022年 09月 30日 星期五 16:33:55 CST] Multi domain='DNS:x.com,DNS:*.x.com'
[2022年 09月 30日 星期五 16:33:55 CST] Getting domain auth token for each domain
[2022年 09月 30日 星期五 16:34:35 CST] Getting webroot for domain='x.com'
[2022年 09月 30日 星期五 16:34:35 CST] Getting webroot for domain='*.x.com'
[2022年 09月 30日 星期五 16:34:35 CST] Add the following TXT record:
[2022年 09月 30日 星期五 16:34:35 CST] Domain: '_acme-challenge.x.com'
[2022年 09月 30日 星期五 16:34:35 CST] TXT value: '1QmQCMSLPlPPTnZJcTcNRuobYUFvPwpKJTedxe8DCfE'
[2022年 09月 30日 星期五 16:34:35 CST] Please be aware that you prepend _acme-challenge. before your domain
[2022年 09月 30日 星期五 16:34:35 CST] so the resulting subdomain will be: _acme-challenge.x.com
[2022年 09月 30日 星期五 16:34:35 CST] Add the following TXT record:
[2022年 09月 30日 星期五 16:34:35 CST] Domain: '_acme-challenge.x.com'
[2022年 09月 30日 星期五 16:34:35 CST] TXT value: 'KUziMmpJzuPkEZOHKzmrcL8B9Q5pTnTYUx4lDjBr_S4'
[2022年 09月 30日 星期五 16:34:35 CST] Please be aware that you prepend _acme-challenge. before your domain
[2022年 09月 30日 星期五 16:34:35 CST] so the resulting subdomain will be: _acme-challenge.x.com
[2022年 09月 30日 星期五 16:34:35 CST] Please add the TXT records to the domains, and re-run with --renew.
[2022年 09月 30日 星期五 16:34:35 CST] Please add '--debug' or '--log' to check more details.
[2022年 09月 30日 星期五 16:34:35 CST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

[8192]stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in技术

maybe yes 发表于 2022-09-26 21:43

stripos 使用报错记录。

记录一个报错

[8192]stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in

解决办法

PHP7.3版本影响

解决办法

1.换PHP版本

2.

$nullOffset = strpos($url, 0x00);//替换前
$nullOffset = strpos($url, chr(0x00));//替换后

油猴子插件指南技术

maybe yes 发表于 2022-09-15 23:49

油猴子插件怎么用?

确实是个好东西,降低了开发 Chrome 插件的门槛,是个不错的选择。

插件对于开发来讲,收集数据是必备的,也就是所谓的前端爬虫。

但是,油猴子插件在编写脚本的注释中没有好的指引,以至于老手也会被它搞得不知道为什么没用。

先看下面的栗子

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://domain.com/* // 这里非常重要
// @grant        GM_xmlhttpRequest // 这里是引用功能
// @run-at       document-end
// @connect      *
// ==/UserScript==

(function() {
    'use strict';

    GM_xmlhttpRequest({
        "method": "post",
        "url": "http://localdev.com:8080/store",
        "data": $.param({"a":"a"}),
        "headers":{"Content-Type":"application/x-www-form-urlencoded"},
        "onload":function(r){
        }
    });

})();

MacOS 备份 IOS 照片在哪里技术

maybe yes 发表于 2022-09-08 12:18

IOS 的 live photo 的视频路径在哪里?

Live mov 在

Pictures/照片图库.photoslibrary/resources/media/master/00/00

照片目录

Pictures/照片图库.photoslibrary/Masters/2022/09/08
2024-04-26 10:39:07 1714099147 0.004968