难得今年没写回顾没写总结,就这样把一年过去了
新的一年也不多说多写了。2024快乐
12号写的博客,把发表时间改成10日,假装是初一说新年快乐了
膘叔的简单人生
难得今年没写回顾没写总结,就这样把一年过去了
如果你用steamdeck调整过电源属性。左上角就会出现当前CPU温度和GPU温度以及帧数。
在使用livewire的过程中,由于没看文档,浪费了不少时间 ,比如 多个组件在往下传递的时候 ,某个子组件中其实有很多值需要向外变更,但事实上只有一个有效值 需 要向父组件传递。
在Debian下,按照官方的教程进行gpg和source的添加时,在apt update时会报错 NO_PUBKEY的错误
curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
2、UPDATE
sudo apt update
因为今天用了filamentPHP这个框架,类似 laravel-admin/ dcat-admin等。为什么想用它呢。看官网,插件极其多...
location = /livewire/livewire.js {
expires off;
try_files $uri $uri/ /index.php?$query_string;
}:
不设置过期时间 ,同时是由PHP来解析。reload一下nginx,再次打开网页,一切正常
小程序里最烦人的就是自定义字体了。设计师们总喜欢用一些看起来很好看的字体。但对于小程序来说简直是个灾难。
java -jar sfnttool.jar -h
subset [-?|-h|-help] [-b] [-s string] fontfile outfile
prototype font subsetter
-?,-help print this help information
-s,-string string to subset
-b,-bench benchmark (run 10000 iterations)
-h,-hints strip hints
-w,-woff output woff format
-e,-eot output eot format
-x,-mtx enable microtype express compression for eot format
在用 antv 的 modal 对话框时,你会发现弹出来的框有一个很大的边框,打开 css 会找到 ant-modal-content 这个 class。如果你直接 加这个样式 padding: 0,或者 :deep(.ant-modal-content){padding: 0 }你会发现都不起作用
.wrap-modal{
.ant-modal-content{
padding: 0!important;
}
}
一般来说象这种效果实现还是比较有意思的
.text_bg {
display: inline-block;
position: relative;
z-index: 1;
}
.text_bg::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 40%;
background-color: #B6D16F;
opacity: .7;
z-index: -1;
filter: blur(1px); /* 可选:模糊效果 */
}
用unoconv将wod转成pdf的时候,中文乱码,这时候解决方案往往是上传中文字体到系统库并注册即可。
# 使mkfontscale和mkfontdir命令正常运行
sudo apt-get install ttf-mscorefonts-installer
# 使fc-cache命令正常运行
sudo apt-get install fontconfig
之前还在说用了CF后,连垃圾评论都没了。