随笔分类 -  代码 / 开发环境

摘要:codex 没给搞定, 记录下 sudo conda install conda-forge::pytorch conda-forge::torchvision 补充:下面也可以的, 报错是因为把 pytorch写成了 torch conda install -n torch -c conda-fo 阅读全文
posted @ 2026-07-18 16:24 bregman 阅读(10) 评论(0) 推荐(0)
摘要:参考 https://www.cnblogs.com/AndreaDO/p/17854742.html C/C++插件 code runner 插件 阅读全文
posted @ 2024-05-24 17:16 bregman 阅读(32) 评论(0) 推荐(0)
摘要:配置conda代理 $ cat ~/.condarc # https://help.mirrors.cernet.edu.cn/anaconda/ ubuntu@ubuntu-Z790-UD:/opt$ cat ~/.condarc channels: - defaults show_channel 阅读全文
posted @ 2024-05-03 15:38 bregman 阅读(91) 评论(2) 推荐(0)
摘要:* 错误 ![image](https://img2023.cnblogs.com/blog/698752/202307/698752-20230701050756453-2131891592.png) * 解决方法: 通过和之前可以的任务对比,发现其中有Add dependencies with 阅读全文
posted @ 2023-07-01 05:11 bregman 阅读(687) 评论(0) 推荐(0)
摘要:``` s = settings;s.matlab.desktop.DisplayScaleFactor s.matlab.desktop.DisplayScaleFactor.PersonalValue = 1.2 ``` 阅读全文
posted @ 2022-04-23 08:56 bregman 阅读(112) 评论(0) 推荐(0)
摘要:代码跳转. 如果不能跳转, 可能需要在.vscode/settings.json中加实际的代码路径,比如"python.analysis.extraPaths": ["code"], tensorflow 1.15.0前后的版本,无法代码提示,解决办法为 # cd ~/.local/lib/pyth 阅读全文
posted @ 2021-06-11 16:54 bregman 阅读(3775) 评论(0) 推荐(0)
摘要:稍微记一记, 提升效率. https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf 阅读全文
posted @ 2020-02-17 20:32 bregman 阅读(117) 评论(0) 推荐(0)
摘要:1. 选择项目中某个函数名, 右键可以看到 copy reference, 点击完成复制symbol, 分享给别人. 2. shift + shift 打开打开一个对话框, 把分享的symbol粘贴上去, 可以跳到对应位置. 阅读全文
posted @ 2019-11-28 12:26 bregman 阅读(5423) 评论(0) 推荐(0)
摘要:> 新mac (EI Capitan),需要在python中使用xgboost,通过pip安装未成功。 ## 配置pip ``` cat $HOME/Library/Application\ Support/pip/pip.conf [global] index-url = http://mirro 阅读全文
posted @ 2016-08-21 10:58 bregman 阅读(255) 评论(0) 推荐(0)
摘要:恢复git 本地删除的文件 git ls-files -d | xargs git checkout 打tag git tag -a 'V20160726' -m "生成数据用于通用模型评估" git push origin V20160726 删除tag git tag -d V20160726 阅读全文
posted @ 2016-01-20 15:29 bregman 阅读(143) 评论(0) 推荐(0)
摘要:texlive2015的一些设置 阅读全文
posted @ 2015-12-21 18:16 bregman 阅读(647) 评论(0) 推荐(0)
摘要:修改 idea 配置出现的错误 阅读全文
posted @ 2015-02-08 21:29 bregman 阅读(204) 评论(0) 推荐(0)