摘要: 需要将have作为助动词的句子,一定是完成态的。也就是说,句子要表达的这件事,一定是在,基于事实和基于心理层面上,已经是完全的。基于事实上已经完成很好理解,例如:I had worked here all day.我已经在这里工作了一整天,这是基于事实去阐述的,因为我工作了一整天是客观事实。而:I 阅读全文
posted @ 2023-12-29 11:12 yiyide266 阅读(3) 评论(0) 推荐(0) 编辑
摘要: This comes after Chinese authorities announced an investigation against Mayday, in response to a viral video. This comes after"中国当局宣布调查五月天,以回应一个疯传的视频" 阅读全文
posted @ 2023-12-12 10:48 yiyide266 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 在ssh命令后面添加参数-o ServerAliveInterval=32,例如:ssh -o ServerAliveInterval=32 -l root 106.52.229.65 阅读全文
posted @ 2023-08-25 23:29 yiyide266 阅读(28) 评论(0) 推荐(0) 编辑
摘要: dsn的host字段中,'localhost'是一个影响其连接协议的值,当host取值'localhost',PDO会坚持使用unixsocket的方式去连接数据库: 'mysql:host=localhost;dbname=mydb' 以上配置,PDO会寻找php.ini中的pdo_mysql.d 阅读全文
posted @ 2023-08-01 21:47 yiyide266 阅读(39) 评论(0) 推荐(0) 编辑
摘要: $foo = function(){ echo "foo()\n"; }; $foo(); call_user_func($foo); 以上两种调用callable类型的语法是无问题的,函数可以正常运行 下面来说一下习惯上认为可行,但事实上不可行的两个调用方法假设有以下代码,A实例的foo属性为一个 阅读全文
posted @ 2023-04-18 14:49 yiyide266 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 假设有如下对象: var buf = Buffer.from("Hello.\n"); 其保存在内存当中的形式实际上是这样的,这里我们假设该对象的内存地址从0x00开始: 地址 0x00 0x01 0x02 0x03 0x04 0x05 0x06 值 48 65 6c 6c 6f 2e 0a 编码对 阅读全文
posted @ 2023-02-17 10:17 yiyide266 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 问题概述 今天用vscode的vim模式编辑html文件时,发现光标移动时会自动出现两个光标。插入或者删除文字时,会同时修改两处地方。一开始我以为是vscode的新功能,只是我不会用,但是很快发现,真的是没法用。网上搜索一通在vscode的github issue里找到关闭多个光标的方法。 版本信息 阅读全文
posted @ 2022-11-19 23:13 yiyide266 阅读(104) 评论(0) 推荐(0) 编辑
摘要: intend和intent是意图的意思,intent是名词和形容词,intend是动词; indent是缩进的意思,通常指文本缩进; 阅读全文
posted @ 2022-09-29 16:32 yiyide266 阅读(585) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> *{ margin:0; padding:0; } .demo{ height:100px; backgrou 阅读全文
posted @ 2022-09-27 16:02 yiyide266 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 在Yaf_Application初始化过程中,yaf内部就会把Yaf_Loader的一个实例中的autoload方法注册进spl_autoload函数栈当中: <?php define("APP_PATH", realpath(dirname(__FILE__) . '/../')); $app = 阅读全文
posted @ 2022-04-10 18:07 yiyide266 阅读(35) 评论(0) 推荐(0) 编辑