信息时代 的 娃
家里的娃逐渐长大,TA在车上喜欢听的歌曲就翻来覆去奥特曼的 OP 和 ED。然后想引导TA 们听点别的,QQ音乐又没有买会员,一些好的大部头作品,能搜出来的就是各种翻唱或者自媒体的 …
Posted
stderr
This blog is rated R⃣ , viewer discretion is advised
家里的娃逐渐长大,TA在车上喜欢听的歌曲就翻来覆去奥特曼的 OP 和 ED。然后想引导TA 们听点别的,QQ音乐又没有买会员,一些好的大部头作品,能搜出来的就是各种翻唱或者自媒体的 …
Posted
stderr
齐泽克先生在2007 年第一次到中国来访问,他在我们这里待了一个星期,他讲了一个故事,是跟中国有关的。他讲了什么呢?就 …
Posted
stdin
$ curl -H "User-Agent: User-Agent: Mozilla/5" -kvs 'http://www.microsoft.com'
* Trying 118.123.102.107...
* TCP_NODELAY set
* Connected to www.microsoft.com (118.123.102.107) port 80 (#0)
> GET / HTTP/1.1
> Host: www.microsoft.com
> Accept: */*
> User-Agent: User-Agent: Mozilla/5
>
< HTTP/1.1 403 Forbidden
< Server: GHost …
Posted
stdout
不折腾不舒服。继之前 Edge调教 之后记录一下 Chrome V70怎么阉割。
下载:
上面的链接已经年久失修了,对比了一下获取最新版本的脚 …
Posted
stdout
都说 xmas eve 是洋节,我们就来数一数到底有哪些洋节
Posted
stdout
首先在本地安装 pip install tuna
然后跑个分,需要 CPython >= 3.7
,输入
PYTHONPROFILEIMPORTTIME=1 python3 myscript.py 2>1.log
然后 tuna 1.log
,会自动打开浏览器围观 import
耗时分布 …
Posted
stdout
sid
。cmd下设变量如此复杂。而且 |
的转义字符居然是 ^|
reg query
输出极其不友好。需要 tokens=3Posted
stderr
FastAPI 官方支持 from fastapi.staticfiles import StaticFiles
充当一个静态文件服务器
其实实现是 starlette。这玩意可以在 directory
下放一个 404.html
,恰好单页应用也需要用 …
Posted
stdout
有没有好奇为什么 Flask 配置必须要求一个 SECRET_KEY,然后就可以在浏览器保存一个 session 状态读写数据。
这里记一下它的底层实现,其 …
Posted
stdout
No module named '_ctypes'
报错 Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/python3/lib/python3.9/site-packages/setuptools/__init__.py", line 18, in <module>
from setuptools.dist import Distribution
File "/usr/local/python3/lib/python3 …
Posted
stdout
之前一直用的chrome v70,为什么呢?
第一是这个老版本允许 --proxy-pac-url="file:///Users/me/1.pac
这样设置,但是Chromium项目的大爷们觉得你本地的.pac不够安全,要网上的.pac才安全,所以一刀切 …
Posted
stdout
今天遇到的两道题:
Posted
stdin
The BLOB, TEXT, and JSON columns cannot be assigned a default value.
虽然 MySQL 5.7 也是这么说的:
A JSON column cannot have a non-NULL default value.
但是 MySQL …
Posted
stdout
看到一个奇葩issue
With "view-source" in the URLBlacklist, the view-source:http://[URL] should not be available. With Schools using Google Forms as a testing platform, students are able to use this shortcut to search through the source of the page, and determine the correct answers.
然 …
Posted
stdin
One of the most astonishing views from end of the year.
From the evening of 31th Oct, Shanghai Disneyland
Posted
stdin
看到 V站有人问这个,随手一记
可以参考源码里的注释文档
Like --host-rules
but these rules only apply to the host resolver.
A comma-separated list of rules that control how hostnames are mapped.
For example:
- MAP * 127.0 …
Posted
stdout
People are still using FastCGI, and it's hard. I used uWSGI to convert FCGI traffic to regular http/1.0 so I can keep my existing http service running without apache mod_fcgi shit.
This is some ancient knowledge, better keep them noted
KEY | description |
---|---|
AUTH_TYPE | ignore this … |
Posted
stdout
第一个是 Elon Musk 的
https://twitter.com/elonmusk/status/1455327010302087173
Shiba 大战 Dogecoin,然后SpaceX 大战 Blue Origin,然后怼 WFP David …
Posted
stdin
总结一些没用的知识
淘宝/阿里账号,可以一个手机最多绑定6个账号。淘宝注册的时候点击「企业注册」然后用邮箱注册,最后用同 …
Posted
stdout