How to Set A Custom Screen Resolution in Ubuntu Desktop
How to Set A Custom Screen Resolution in Ubuntu Desktop my solution as below: https://blog.csdn.net/qq_34654240/article/details/80115007 http://ubuntuhandbook.org/index.php/2017/04/custom-screen-resolution-ubuntu-desktop/
How to install a deb file, by dpkg -i or by apt?
How to install a deb file, by dpkg -i or by apt? From: https://unix.stackexchange.com/questions/159094/how-to-install-a-deb-file-by-dpkg-i-or-by-apt When you use apt to install a package, under the hood it uses dpkg. When you install a package using
How to set the environmental variable LD_LIBRARY_PATH in linux
How to set the environmental variable LD_LIBRARY_PATH in linux https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux
Get MD5 value of a file
Get MD5 value of a file method 1: process under console certutil -hashfile 1.jpg MD5 method 2: process under python import hashlib
def md5(fname):
hash_md5 = hashlib.md5()
with open(fname, "rb") as f:
for chunk in iter(lambda: f.rea
[Ubuntu]The system is running in low-graphics mode
How to fix “The system is running in low-graphics mode” error? https://askubuntu.com/questions/141606/how-to-fix-the-system-is-running-in-low-graphics-mode-error
U盘启动盘恢复成普通U盘的方法
U盘启动盘恢复成普通U盘的方法 1. cmd 进入控制台 2. diskpart 3. list disk 4. select disk 1 (disk 1为U盘的磁盘编号,客官,慎选!!!) 5. clean 6. 磁盘管理 -> 磁盘1 右键 -> 新建简单卷 -> 默认选项 -> OK 部分log如下: DISKPART> list disk 磁盘 ### 状态 大小 可用 Dyn Gpt -------- ------------- ------- ------- --- --- 磁盘
Raw Camera的工作流程(Pipeline)
Raw Camera的工作流程(Pipeline) 感谢 eric wang的博客:https://blog.csdn.net/SBaini/article/details/51538830 Bayer pattern intution
View Log Files
View Log Files Through the Terminal dmesg https://vitux.com/view-system-log-files-ubuntu/
隐马尔可夫模型的python实现
隐马尔可夫模型针对是序列的解码问题而建立的一个生成式模型,它基于这样一个假设,在序列第n个编码给定的条件下,序列第n+1个编码与之前的编码具有条件独立性,如图1所示,观测 o1,o2,⋯ ,oTo_1,o_2,\cdots,o_To1,o2,⋯,oT是可以观察到的,而编码 y1,y2,⋯ ,yTy_1,y_2,\cdots,y_Ty1,y2,⋯,yT是需要预测的,记所有可能观测的集合为 V={v1,v2,⋯ ,vM}V=\left\{
用python中的itchat可视化微信朋友圈
itchat是python与微信网页版连接的api,作为测试,博主利用itchat爬取了自己的微信并进行可视化 首先登录微信,定义函数用来储存好友信息 import itchat
import matplotlib.pyplot as plt
import pandas as pd
import re
import jieba
from pyecharts import Map,Geo
itchat.login()
friends=itchat.get_friends(update=True)
从一段代码看pyhton中变量赋值机制
首先看如下代码: a=10
def A(a):
print('1.%d'%a)
if a<5:
print('2.%d'%a)
return
a=a-2
print('3.%d'%a)
A(a)
print('4.%d'%a)
A(a)
print('5.%d'%a)
运行结果如下: 1.10
3.8
1.8
3.6
1.6
3.4
1.4
2.4
4.4
4.6
4.8
5.10
位置4的输出除了4以外还有6
CentOS_7安装MYSQL失败更换为MariaDB
当输入命令 ~]# systemctl start mysql.service 要启动MySQL数据库是却是这样的提示 Failed to start mysqld.service: Unit not found 解决方法如下: 1.卸载mysql: 首先执行查看命令,看一下都安转了什么东东: rpm -qa |grep -i mysql 执行卸载命令:yum remove mysql-community mysql-community-server mysql-community-libs
今日推荐
周排行