V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  yaocf  ›  全部回复第 1 页 / 共 1 页
回复总数  13
Veruca Salt paused, her eyes locking with the assembly before her. A moment of silence hung in the air, thick with anticipation. Then, her attention shifted, drawn to a diminutive squirrel perched at the table's edge, its paws delicately clutching a walnut.

"Very well," Veruca declared, a mischievous glint in her eye, "you shall be mine!"

With a swift motion, she extended her arms towards the unsuspecting creature. But in that infinitesimal instant, as her fingers splayed to ensnare her prize, the room erupted into a frenzy. It was as if a bolt of brown lightning had struck, electrifying the space with sudden movement. Each squirrel, previously still as a statue, sprang into action. They launched themselves from their seats, a coordinated battalion of fur and claws, converging upon her with astonishing agility.

Veruca, caught off guard by the unexpected assault, could only gasp as the furry horde descended upon her. They clambered over her arms, shoulders, and head, their tiny feet pattering against her skin, their tails flicking in her face. The room, once filled with the quiet murmur of the gentle creatures, now resounded with the chaos of chittering and scolding.

In the midst of the pandemonium, the little squirrel with the walnut remained poised, its bright eyes watching the scene unfold with a wisdom beyond its years. It seemed to understand the folly of Veruca's greed, the consequence of underestimating those deemed insignificant.

As the squirrels retreated, leaving a disheveled Veruca in their wake, the room settled once more into tranquility. The little squirrel turned away, its walnut still secure in its grasp, a silent testament to the day's unexpected lesson. Veruca, now humbled, sat amidst the calm, a newfound respect dawning within her for the creatures she had so carelessly sought to claim

Why did the squirrels swarm and scramble over Veruca?
They were trying to play a friendly game with her.
They were angry that she tried to take one of them.
They wanted to show her a new dance they learned.

这个是不是该选择`They were angry that she tried to take one of them.`
而不是答案给的`They wanted to show her a new dance they learned.`

判据:
```
"Very well," Veruca declared, a mischievous glint in her eye, "you shall be mine!"

With a swift motion, she extended her arms towards the unsuspecting creature
```
23 天前
回复了 panda7456 创建的主题 宽带症候群 IPV6 ping 通但无法访问网页
请问楼主解决了吗?
@TcDhl 大佬,这个是完全自己写的平台吗?
@yaocf pyrogram 的代码注释对这个方法的说明就是:This is the equivalent of clicking an inline button containing callback data.
找到了,可能是算是新手吧,api 文档中的 tg 专业名词太多了。
https://docs.pyrogram.org/api/methods/request_callback_answer

如题示例:
```python
await app.request_callback_answer(_id, message.id, "checkin", 0)
```
最后的 timeout 参数不知道该怎么填,不过效果已经达到了。
dart 是有反射的,只是 flutter 没有,可能是谷歌被 java 时代的反射搞怕了,flutter 禁用 dart 之后,世界一下子就安静了。
177 天前
回复了 yaocf 创建的主题 OpenWrt Openwrt/ Linux 定长 日志文件
嗯,之前理解错了,unix 可以设置的是缓冲长度(-I length TCP receive buffer length )。

至于为啥要一个定长日志,原因如下:那个进程的输出文本产生的特别快,如果直接怼到系统 log ,会导致其他进程的 log 被冲掉,但是,如果在 procd 中将输出信息重定向到文件,又担心那个文件会无限制增长。用 cron 倒是可以做到效果,但是总感觉不是很完善。
2022-07-19 16:31:02 +08:00
回复了 lxr760 创建的主题 宽带症候群 dynv6 挂掉超过 24h 了
dynv6 恢复了。

while [ `/usr/bin/curl -s -o /dev/null -w "%{http_code}" "https://dynv6.com"` -ne 200 ];
do
echo -e "$(date) \t Still down! waiting..."
sleep 300s
done
echo -e "service was online!"
/usr/lib/mylibs/noticeMeByMail "service was online!"

自动检测。
2022-07-19 11:07:30 +08:00
回复了 lxr760 创建的主题 宽带症候群 dynv6 挂掉超过 24h 了
已经 72 小时了。从周六那天就开始 500 了。
找到原因了,是防火墙区域设置里的 nat ( Ip 动态伪装)没开。
但是现象很奇怪,按理说,请求包的目的地址是 172.16.0.9 ,根据路由表它是可以正常找到路由,发到 wg0 的,wg0 应该也是可以从设置的 AllowIps 找到中继网络 B 的,中继网络 B 可以很容易地找到正确的对端 172.16.0.9 ,顶多是回来的时候,因为请求源地址(响应的目的地址) 10.0.0.106 不在 wg0 接口的网段,所以响应包会被丢弃。可为什么,我从 172.16.0.1 那台中继网络 B 中,并没有看到任何数据包???
2020-03-21 06:46:06 +08:00
回复了 yaocf 创建的主题 NGINX 求助: nginx 无法获取内置变量的值
@yaocf
可能是使用 cat <<EOF EOF 写入配置文件的原因,纠正一下,不需要加\。原先的配置文件应该是正确的。
2020-03-20 21:45:09 +08:00
回复了 yaocf 创建的主题 NGINX 求助: nginx 无法获取内置变量的值
@crystom 恩,谢谢,好不容易编译出了带调试模式的 nginx,看了下调试日志,问题找到了。配置文件中所有的 $ 换成 \$ 就行了。不知道为什么要转义一下才能用。按理说 nginx 的配置文件读取模块应该会考虑到这个吧。

新的配置文件如下,也希望可以帮到有同样问题的小伙伴。

user root;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
error_log /var/log/nginx/error.log;

events {
worker_connections 1024;
multi_accept on;
}
http {
tcp_nodelay on;
log_format main '\$remote_addr - \$remote_user [\$time_local] \$status '
'"\$request" \$body_bytes_sent "\$http_referer" '
'"\$http_user_agent" "\$http_x_forwarded_for" "\$host\$request_uri"';
access_log /var/log/nginx/access.log main;
server {
listen 80;
location ~/\.well-known* {
#root /usr/lib/mylibs/acme_tiny;
alias /usr/lib/mylibs/acme_tiny/.well-known/;
autoindex on;
}
location ~/* {
rewrite ^(.*) https://\$host\$request_uri break;
}
}
}
2020-03-07 20:29:58 +08:00
回复了 yaocf 创建的主题 NGINX 求助: nginx 无法获取内置变量的值
user root;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
error_log /var/log/nginx/error.log;

events {
worker_connections 1024;
multi_accept on;
}
http {
tcp_nodelay on;
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$host$request_uri"';
access_log /var/log/nginx/access.log main;
server {
listen 80;
location ~/\.well-known* {
root /usr/lib/mylibs/acme_tiny;
#alias /usr/lib/mylibs/acme_tiny/.well-known/;
autoindex on;
}
location ~/* {
rewrite ^(.*) https://$host$request_uri break;
#return 301 https://$host$request_uri;
}
}
}
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5794 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 35ms · UTC 06:24 · PVG 14:24 · LAX 23:24 · JFK 02:24
Developed with CodeLauncher
♥ Do have faith in what you're doing.