logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

python3里升级PIP的方式

【代码】python3里升级PIP的方式。

#pip
HDMI vs HDCP: Everything You Should Know About HDMI

HDMI and HDCP are common terms for projectors and other electric devices, such as computers, TVs, and game consoles. In this post, we will share some plain tips on HDMI and HDCP, helping you to know t

获得线程的 ID

可以使用 gettid得到:#include#includevoid * threadEntry(void * arg){printf("thread %d: ID: %d\n", (int)arg, gettid());return arg;}int main(void){pthread_t threads[4];int i;for(i = 0; i <

ubuntu安装显卡驱动后亮度不能调节问题

装了Ubuntu10.04半个多月了,一切都挺好,装了个NVIDIA的最新显卡驱动,开启特效更是爽的不行啊!!可是问题来了,装上最新的驱动以后 不能按Fn+上下调节亮度了。这里告诉大家一个小诀窍,是从Ubuntu官方中文论坛学来的:修改你的xorg.confxorg.conf文件的位置就在/etc/X11/下面。在终端中输入:sudo gedit /etc/X11/xorg

#ubuntu
linux 进程的最大线程个数

1. 可以通过下面的方法查到:cat /proc/sys/kernel/threads-max15882另外,一个进程实际的线程个数,可以从 /proc/{PID}/status里得出:/proc/544#cat statusName:kpsmousedState:S (sleeping)Tgid:544Pid:544PPid:2TracerPid:0

CMake 指定安装目录

使用 CMAKE_INSTALL_PREFIX 来指定。方法1:cmake -DCMAKE_INSTALL_PREFIX=/usr ..方法二:修改cmake文件,加入:SET(CMAKE_INSTALL_PREFIX )要加在 PROJECT() 之后。

虚拟机下图形模式登陆不进去的问题

今天,在以图形模式登录 linux 的时候,死活进不去;切换到命令行模式下则可以;这说明我的密码,账号都没有问题,应该是图形系统在初始化的过程中遇到了什么问题。于是在命令行下,看一下 home 目录下的 .xession_errors,果然发现问题:/home/charles/.profile:  24: function not found/home/charles/.profile

#虚拟机#linux
利用Host主机的 虚拟化技术来运行虚拟机(QEMU)

1。 首先,确保主机支持 virtualization:cat /proc/cpuinfo| grep -E "vmx|svm"如果有输出,说明支持。1。配置好 qemu,(加上 enable-kvm):./configure --target-list=arm-softmmu,mipsel-softmmu --enable-debug --enable-sdl --en

QEMU虚拟机和主机无线网络通讯设置

步骤如下:1. 创建 tap 设备:sudo ip tuntapadddev tap0 mode tap2. enable tap0接口:sudo ip link set tap0 up3. 添加路由:sudo ip routeadd 192.168.0.10/32 dev tap0或者用旧的命令:sudo route add -host 192.168.

安装 man pages

前一阵子在网上下了一个  fedora的虚拟机文件.装好之后,就可以直接用了。今天发现,C库函数的帮助文件没有装上。在网上查到了安装方法:1)安装  standard C library  help files:yum install man-pages2)安装  C++ STL library man pages:yum insall libstdc++-docs

#debian
    共 14 条
  • 1
  • 2
  • 请选择