个人备忘录

nvidia: apt --fix-broken install -o DPkg::options::=“–force-overwrite”
powershell 中无法 conda activate
tensorflow 2.3 无 GPU:github solution stackoverflow solution
win10安装双系统ubuntu(使用ventory,最新教程!!!)
windows pip安装模块出现Could not fetch URL https://mirrors.aliyun.com/pypi/simple/pip/
Exception: ROM is missing for ms_pacman, see https://github.com/openai/atari-py#roms for instructions
how to fix ethernet connected but no internet access
Python 环境问题收集
hexo+yilia修改代码块等样式

newgrounds 播放器2021无法正常工作

python中matplotlib画图中文乱码的解决方法

  • ubuntu 18.04(16.04 not have) electron ssr connection error
echo alias python=python3 >> ~/.bashrc
  • steam error “find: ‘/home/inf/.steam/ubuntu12_32/steam-runtime’: No such file or directory”
mkdir /home/$USER/.steam/ubuntu12_32/steam-runtime
  • y o u t u b e youtube youtube回到传统模式
    cookies的PREF添加"&f6=8"
  • ubuntu强制解锁
    E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
    If nothing else worked, you can remove the apt lock file and see if that fixes the issue on your Ubuntu / Debian / Linux Mint (and any system that uses APT) system:
sudo rm /var/lib/apt/lists/lock

  If you’re still getting errors about either the apt cache lock (/var/cache/apt/archives/lock) or the dpkg lock (/var/lib/dpkg/lock), you can remove them:

sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

  A package reconfiguration may also be needed after this, as well as fixing any potentially broken packages:

sudo dpkg --configure -a
sudo apt install -f

  In some situations you might see a similar error, but for which says lock-frontend instead of just lock:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
  This dpkg lock-frontend error means a graphical application that uses dpkg / apt, is currently running, like Synaptic package manager, Gdebi or some other. The solution in this case is to close the application and try again. In 99% of cases this should solve the issue. If it persists, try to reboot the system, and only as a last resort remove the /var/lib/dpkg/lock-frontend file.

  If you do remove the /var/lib/dpkg/lock-frontend file, you’ll then most probably run into the Could not get lock /var/lib/dpkg/lock error mentioned in the beginning of the article, so you’ll have to start from the top of this article with the instructions to fix this.

更改前:
script(type='text/javascript', color=color, opacity=opacity, zIndex=zIndex, count=count,src='//lib.baomitu.com/canvas-nest.js/2.0.4/canvas-nest.umd.js')
更改后:
script(type='text/javascript', color=color, opacity=opacity, zIndex=zIndex, count=count,src='//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js')
  • mathjax更换cdn
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- 替换为以下网址 -->
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML
  • hexo支持mathjax
    解决方案有很多, 目前自己用的是换 p a n d o c pandoc pandoc引擎
npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-kramed --save

跟换引擎后行间公式可以正确渲染了,但是这样还没有完全解决问题,行内公式的渲染还是有问题,因为hexo-renderer-kramed引擎也有语义冲突的问题, 找到node_modules\kramed\lib\rules\inline.js,把第11行的escape变量的值做相应的修改:

//escape: /^\\([\\`*{}\[\]()#$+\-.!_>])/,
escape: /^\\([`*\[\]()#$+\-.!_>])/

这一步是在原基础上取消了对,{,}的转义(escape)。

同时把第20行的em变量也要做相应的修改。

//em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
em: /^\*((?:\*\*|[\s\S])+?)\*(?!\*)/
  • hexo其他问题
    crlf warning autocrlf = false safecrlf = false
git remote add origin-https https://github.com/2inf/2inf.github.io.git
git push -u origin-https master
  • 树莓派安装ubuntu-mate
    修改/boot/config.txt 强制HDMI显示 hdmi_force_hotplug=1
    把#hdmi_group=1改成hdmi_group=2
    然后把#hdmi_mode=1改成hdmi_mode=28
  • sublimetext c++配置
{
	"path": "E:/MinGW/mingw64/bin",
    "shell_cmd": "g++ -std=gnu++14 -Wall -Wextra \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\"",
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "working_dir": "${file_path}",
    "selector": "source.c, source.c++, source.cpp",
 //       {
 //           "name": "Debug",
 //           "shell_cmd" : "start cmd /c \"gdb \" ${file_path}/$ {file_base_name}\"\""
 //       }
    "variants":
    [
    	{
    		"name": "Run",
    		"windows":{
            "shell_cmd" : "start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
        	},
        	"shell": true,
    	},
        {
            "name": "Run in Terminal",
            "windows":{
                "shell_cmd" : "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" -std=gnu++14 -Wall -Wextra -Wfatal-errors -Wl,--stack=268435456 -g && start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
            	//"shell_cmd":   "g++ -std=gnu++14 -Wall -Wextra -Wfatal-errors -Wl,--stack=268435456 \"${file}\" -o \"${file_path}/${file_base_name}\" -DLOCAL_DEFINE && start cmd /k  $file_base_name"
          		//"shell_cmd":   "g++ -std=gnu++14 -Wall -Wextra -Wfatal-errors -Wl,--stack=268435456 \"${file}\" -o \"${file_path}/${file_base_name}\" && start \"$file_base_name\" call $file_base_name"
            },

            "shell": true,
        },
        {
 			"name": "Debug",
 			"windows":{
            	"shell_cmd" : "start cmd /c gdb \"${file_path}/${file_base_name}\""
            },

            "shell": true,
        }
        
    ]
}
{"keys": ["f9"], "command": "build", "args": {"select": false}},
{"keys": ["f10"], "command": "build", "args": {"variant": "Run"}}
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值