XPS 9340 (intel 集显)使用Solidworks卡顿
新 XPS 9340(Intel Ultra 7 155H)使用 Solidworks 2023 还是会卡。
毛病跟之前 XPS 9370 一样。
但是现在 Solidworks 官方已经给出类解决方案:
下载 SolidWorks_GraphicsCards_Support.msi
, 安装就行了。
新 XPS 9340(Intel Ultra 7 155H)使用 Solidworks 2023 还是会卡。
毛病跟之前 XPS 9370 一样。
但是现在 Solidworks 官方已经给出类解决方案:
下载 SolidWorks_GraphicsCards_Support.msi
, 安装就行了。
ref https://github.com/nilaoda/N_m3u8DL-RE
ref https://github.com/xifangczy/cat-catch
ref https://github.com/corbamico/m3u8dl-invoke/
1 | scoop install n-m3u8dl-re_x |
设置 - N_m3u8DL-RE 的参数:
1 | "${url}" --save-dir "%USERPROFILE%\Downloads\m3u8dl" --save-name "${title}_${now}" ${referer|exists:'-H "Referer:*"'} --del-after-done --no-log |
ref: https://matplotlib.org/stable/api/colors_api.html
ref: https://matplotlib.org/stable/gallery/color/named_colors.html
1 |
|
████ b
████ g
████ r
████ c
████ m
████ y
████ k
████ w
████ tab:blue
████ tab:orange
████ tab:green
████ tab:red
████ tab:purple
████ tab:brown
████ tab:pink
████ tab:gray
████ tab:olive
████ tab:cyan
文件夹启动时默认会识别该文件夹内的文件类型(比如图片、音乐、视频等媒体文件的信息),媒体文件过多时加载速度较慢。
可以禁用此功能。
1 | # 管理员运行运行后重启: |
ref https://fstring.help/cheat/
ref https://cheatography.com/brianallan/cheat-sheets/python-f-strings-basics/
ref https://cheatography.com/brianallan/cheat-sheets/python-f-strings-number-formatting/
num | format |
---|---|
%d | 整数 |
%e | 科学计数 |
%f | 浮点 |
% | 百分数 |
%b | 二进制 |
%o | 八进制 |
%x | 十六进制 |
%c | Unicode |
integer = 123
number_ = 9876.6789
percent = 0.98765
var | num | format | f-string | output |
---|---|---|---|---|
integer | 123 | d | f’{integer:d}’ | 123 |
integer | 123 | b | f’{integer:b}’ | 1111011 |
integer | 123 | 8b | f’{integer:8b}’ | 1111011 |
integer | 123 | _b | f’{integer:_b}’ | 111_1011 |
integer | 123 | 09_b | f’{integer:09_b}’ | 0111_1011 |
integer | 123 | o | f’{integer:o}’ | 173 |
integer | 123 | #o | f’{integer:#o}’ | 0o173 |
integer | 123 | x | f’{integer:x}’ | 7b |
integer | 123 | #x | f’{integer:#x}’ | 0x7b |
integer | 123 | 08x | f’{integer:08x}’ | 0000007b |
integer | 123 | c | f’{integer:c}’ | { |
number_ | 9876.6789 | f | f’{number_:f}’ | 9876.678900 |
number_ | 9876.6789 | .2f | f’{number_:.2f}’ | 9876.68 |
number_ | 9876.6789 | 09.2f | f’{number_:09.2f}’ | 009876.68 |
number_ | 9876.6789 | 09.5f | f’{number_:09.5f}’ | 9876.67890 |
number_ | 9876.6789 | .2f | f’{number_:.2f}’ | 9876.68 |
percent | 0.98765 | % | f’{percent:%}’ | 98.765000% |
percent | 0.98765 | 9.5% | f’{percent:9.5%}’ | 98.76500% |
percent | 0.98765 | 09.4% | f’{percent:09.4%}’ | 098.7650% |
percent | 0.98765 | 09.5% | f’{percent:09.5%}’ | 98.76500% |
number_ | 9876.6789 | .2e | f’{number_:.2e}’ | 9.88e+03 |
number_ | 9876.6789 | 09.2e | f’{number_:09.2e}’ | 09.88e+03 |
string = “Python”
var | num | format | f-string | output |
---|---|---|---|---|
string | Python | 20 | f’{string:20}’ | Python |
string | Python | >20 | f’{string:>20}’ | Python |
string | Python | <20 | f’{string:<20}’ | Python |
string | Python | ^20 | f’{string:^20}’ | Python |
string | Python | >>20 | f’{string:>>20}’ | >>>>>>>>>>>>>>Python |
string | Python | <<20 | f’{string:<<20}’ | Python<<<<<<<<<<<<<< |
string | Python | ^^20 | f’{string:^^20}’ | ^^^^^^^Python^^^^^^^ |
string | Python | =^20 | f’{string:=^20}’ | =======Python======= |
radioactivedecay 用于放射性核素衰变的简单分析计算的开源包,支持放射性核素、亚稳态和分支衰变的衰变链。
安装:pip install radioactivedecay
1 | # %% |
radioactivedecay 用于放射性核素衰变的简单分析计算的开源包,支持放射性核素、亚稳态和分支衰变的衰变链。
安装:pip install radioactivedecay
1 | #%% |
pandas 合并数据常用的两个函数:
pd.concat https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.concat.html
pd.merge https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.merge.html
刚好有一个对比 RNN 和 LSTM 神经网络运行结果的场景分别用到了这两个函数:
启用 WSL
打开 Microsoft Store,安装 Ubuntu22.04
设置源,更新
ref: https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
更新:sudo apt update
升级:sudo apt upgrade
ref: https://docs.openmc.org/en/stable/quickinstall.html
1 | # https://www.anaconda.com/docs/getting-started/miniconda/install#linux |
安装完成后,运行 openmc
试一下, 提示错误: 找不到材料数据卡 cross_sections.xml
。
1 | git clone https://github.com/openmc-dev/data openmc-dev_data |
ref: https://github.com/ScoopInstaller/Scoop/issues/4390
scoop 本身不支持安装包有解压密码的自动解压。因此在安装 MAS 时会卡在解压处,无法继续安装。
7z 命令是支持的: 7z x FILENAME.7z -pPWD -oOUTDIR
找到 Scoop 源码里的 “~\scoop\apps\scoop\current\lib\decompress.ps1” 文件。
文件封装了 Expand-7zipArchive
函数命令, 但参数没有能将密码传入的方法。
Scoop Wiki 里提到了 pre_install 等说法。
在 MAS.json 中加入:
1 | "pre_install": "7z x $dir\\$fname -p1234 $('-o' + $dir)", |
尝试了很多次还是不起作用,Scoop的策略是遇到压缩包先执行解压、再做后续的事情。所以这一句不会被执行,安装程序依旧卡在解压处,无法继续安装。
板子型号:ESP-12E
1 | pip install esptool |
安装插件, 略
添加远程连接 aaa@192.168.1.xxx, 连接、等待, 输入密码
警告:
The remote host may not meet VS Code Server's prerequisitesfor glibc and libstdc++
Outlook 查看日历链接: 设置-日历-共享日历-发布日历,可以看到如下链接:
“https://outlook.live.com/owa/calendar/d82e6afe-XXXX-XXXX/cid-YYYY/calendar.ics“
1 | from ics import Calendar |
ref: (https://github.com/ScoopInstaller/Scoop/wiki/App-Manifests)
尝试自己制作一个安装配置文件, 软件是 N_m3u8DL-RE
。
1 | { |
1 | sudo apt install zsh |
ref: https://ohmyz.sh/
1 | sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" |
有时候会出现 443 网路错误,可手动下载、安装 install.sh
1 nano zsh-install.sh打开 https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.sh
将安装代码全部复制进去
1
2 sudo chmod +x zsh-install.sh
./zsh-install.sh
ref: https://gitee.com/mirrors/oh-my-zsh.git
1 | sh -c "$(wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh -O -)" |
1 | nano ~/.zshrc |
1 | # 主题 |
1 | sed -i 's/^ZSH_THEME=.*/ZSH_THEME="ys"/g' .zshrc |
1 | git clone https://gitee.com/mirrors/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions |
ref: https://github.com/zsh-users/zsh-autosuggestions
ref: https://github.com/zsh-users/zsh-syntax-highlighting
1 | source ~/.zshrc |
===
1 | sudo apt install zsh -y |
===
1 |
|
下载类似rp2-pico-w-20221107-unstable-v1.19.1-616-g5987130af.uf2
首次将 pico w 连接电脑之后,会以U盘形式弹出来,把固件拖进去。
已经刷过固件的,按着板子上的 BOOTTSEL 按钮连接电脑。
重新上电,固件就自动刷好了。
scoop install thonny
1 | from machine import Pin |
可以看到板载的 LED 在闪烁。