滚熊博客

滚熊博客

Thoughts, rants and discoveries on software development and related stuff.

[solved]modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='off'

·Linux

exute sudo modprobe nvidia error: modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name=‘off’ 02615-oak8kunndy9.png Nvidia对他们的安装做了一些改动。 现在,Nvidia库位于/usr/lib/x86_-linux-gnu中 blacklist-nvidia.conf文件位于/lib/modprobe.d/中 在blacklist-nvidia.conf中,仍然存在未经注释的 alias nvidia off。 注释掉 alias nvidia off 后,如图所示: $ cat /lib/modprobe.d/blacklist-nvidia.conf# Do not modify# This file was generated by nvidia-primeblacklist nvidiablacklist nvidia-drmblacklist nvidia-modeset#alias nvidia offalias nvidia-drm off 参考链接 : https://forums.linuxmint.com/viewtopic.php?t=274958 https://github.com/Bumblebee-Project/Bumblebee/issues/951

Read More →
#nvidia#modprobe

gitExtension 合并与衍合

·Linux

注意到:以下的操作主要是用gitExtension来操作的。 gitExtension配置教程:http://www.cnblogs.com/sorex/archive/2011/08/10/2132359.html 内容提要: Q1、git如何让develop分支合并到master Q2、git如何让develop分支衍合到master Q3、git如何搭建server。 关于Q1: step0:将devel

Read More →
#windows#gitExtension

(solved) The pkg-config package 'libpcre' is required but it could not be found.

·Linux

pkg-confg 确认是否存在。 $ pkg-config --libs libpcrePackage libpcre was not found in the pkg-config search path.Perhaps you should add the directory containing `libpcre.pc'to the PKG_CONFIG_PATH environment variableNo package 'libpcre' found 编辑profile $ vim ~/.bash_profile .bash_profile添加以下。 export PKG_CONFIG_PATH=/usr/lib/pkgconfig 保存 . ~/.bash_profile中 验证 $ pkg-config --libs libpcre-lpcre

Read More →
#pcre

58到家MySQL升级规范[转]

·SQL

一、基础规范 表存储引擎必须使用InnoDB 表字符集默认使用utf8,必要时候使用utf8mb4 解读: (1)通用,无乱码风险,汉字3字节,英文1字节 (2)utf8mb4是utf8的超集,有存储4字节例如表情符号时,使用它 禁止使用存储过程,视图,触发器,Event 解读: (1)对数据库性能影响较大,互联网业务,能让站点层和服务层干的事情,不要交到数据库层 (2)调试,排错,迁移都比较困难,扩展性较差 禁止在

Read More →
#mysql#58

[解决]mysql max_allowed_packet 设置过小导致记录写入失败

·SQL

以下方法的第一种方法在有些机子上更改是没有作用的,建议大家使用第二种方法。 mysql根据配置文件会限制server接受的数据包大小。 有时候大的插入和更新会受max_allowed_packet 参数限制,导致写入或者更新失败。 查看目前配置 show VARIABLES like '%max_allowed_packet%'; 显示的结果为: +--------------------+---------+ | Variable_name | Value | +--------------------+---------+ | max_allowed_packet | 1048576 | +--------------------+---------+ 以上说明目前的配置是:1M 修改方法 1、修改配置文件 可以编辑my.cnf来修改(windows下my.ini),在[m

Read More →
#sql#mysql

My xfce shortcuts to take screenshots

·Linux

Command Shortcut xfce4-screenshooter --fullscreen --clipboard Ctrl + PrtScrn xfce4-screenshooter --fullscreen --save /home/kelvin/Pictures PrtScrn xfce4-screenshooter --region --clipboard Ctrl + Shift + PrtScrn xfce4-screenshooter --region --save /home/kelvin/Pictures Shift + PrtScrn xfce4-screenshooter --window --clipboard Ctrl + Super + PrtScrn xfce4-screenshooter --window --save /home/kelvin/Pictures Super + PrtScrn Screenshot_2018-01-06_19-52-50.png

Read More →
#xfce#shortcuts#screenchots