这么说的人那可真是浮于表面了
pjax 好过浏览器端渲染是吧
服务端渲染不就是给玩 SEO 的勾吧用的么
看到一种说法:NestJS、NextJS 这些 JS 框架,只是在重新实现 Laravel,并且比后者落后很多。
我不熟悉 PHP 生态,不知道是不是这样。
Mozilla SSL 配置生成器
刚看到的
https://ssl-config.mozilla.org/
直接翻译的文档里说的算法
from typing import Tuple
def relative_luminance(r :int, g :int, b :int) -> float:
"""Compute relative luminance for sRGB color
https://www.w3.org/TR/WCAG21/#dfn-relative-luminance
Args:
r: red of sRGB color [0-255]
g: green of sRGB color [0-255]
b: blue of sRGB color [0-255]
Returns:
computed relative_luminance value defined by WCAG
"""
R_sRGB, G_sRGB, B_sRGB = r / 255, g / 255, b / 255
R = R_sRGB / 12.92 if R_sRGB <= 0.03928 else ((R_sRGB + 0.055) / 1.055) ** 2.4
G = G_sRGB / 12.92 if G_sRGB <= 0.03928 else ((G_sRGB + 0.055) / 1.055) ** 2.4
B = B_sRGB / 12.92 if B_sRGB <= 0.03928 else ((B_sRGB + 0.055) / 1.055) ** 2.4
return 0.2126 * R + 0.7152 * G + 0.0722 * B
def contrast_ratio(color1 :Tuple[int, int, int], color2 :Tuple[int, int, int]) -> float:
"""Compute contrast ratio for two colors
https://www.w3.org/TR/WCAG21/#dfn-contrast-ratio
Args:
color1: tuple of color that wait for compare
color2: tuple of color that wait for compare
Returns:
computed contrast ratio value defined by WCAG in range [1 ~ 21]
"""
L1 = relative_luminance(*color1)
L2 = relative_luminance(*color2)
if L1 < L2:
L1, L2 = L2, L1
return (L1 + 0.05) / (L2 + 0.05)
assert( contrast_ratio((0, 0, 0), (0, 0, 0)) == 1 ) # shown as 1:1
assert( contrast_ratio((0, 0, 0), (255, 255, 255)) == 21 ) # shown as 21:1
就人类这种匿名平台都享受不来的垃圾,你不会真以为实名了他们道德水平突然就提升了吧,互相监视带领咱走向天国还是全新的景观。
监管缺失,平台沉默,就等着你们这群猴接着自我规训,表演一个舍身取义,麻烦自己方便管理 😅
阴阳怪气
现实中说话有个很好的性质就是物理上的定域性,如果我没理解错的话,用人话说就是信息传递需要个过程,未来人们要想聊点刺激的,得自己想办法躲避各种监控,找个荒郊野岭什么的,悄咪咪的说悄悄话。
https://zh.wikipedia.org/zh-hans/%E5%AE%9A%E5%9F%9F%E6%80%A7%E5%8E%9F%E7%90%86
笑着笑着就哭了出来系列
https://www.bilibili.com/video/BV1oY4y1Z7eX/
这个第四层:人和人之间的异化,像不像现在这个对立又割裂的社会?
https://www.bilibili.com/video/BV1T8411T7yw?t=1469.7
这个社会风气只配低欲望
除非大家脑子都白长了 😅
2022年中国最大的事件,其实是今天公布的人口数据,几十年来第一次负增长,影响远比新冠深远。
好处是公共资源不足会逐步缓解,坏处是将来劳力少了,劳力密集产业到头了,投资的 GDP 拉动作用越来越弱。中国经济的转型会发生吗?
https://finance.sina.com.cn/tech/roll/2023-01-17/doc-imyanfvs5748585.shtml
莉特雅 literal
写代码业余爱好者 amateur coder