WANQIANG WANG


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

如何看mdstat文件

Posted on 2019-06-02

指导文件: https://raid.wiki.kernel.org/index.php/Mdstat

nextcloud 移动数据位置

Posted on 2019-06-01

下面是官方说明: https://github.com/nextcloud/nextcloud-snap/wiki/Change-data-directory-to-use-another-disk-partition Removable media Also note that the interface providing the ability to access removable media is not automatically connected upon install, so if you’d like to use external storage (or otherwise use a device in /media for data), you need to give the snap permission to access removable media by connecting that interface: $ sudo snap connect nextcloud:removable-media 可以使用 mount –bind 命令挂载已有目录。要实现自动挂载,可以写在 /etc/fstab 里面。

python2 python3共存

Posted on 2019-05-22

官方的解决方案: https://docs.python.org/3/installing/

Linux打印机管理

Posted on 2019-04-08

lpq -a //显示出目前所有打印机的工作队列情况 lprm 11 //取消11号打印机作业 lpq -l -P Hp2015 //用详细方式显示打印机Hp2015作业 lpstat -t :列出目前的“打印系统”状态,不只包括打印机而已 暂停或者开始打印机: 重新开始打印机 sudo cupsenable HP_LaserJet_1020 禁用打印机 sudo cupsdisable HP_LaserJet_1020

snap 方式安装的 nextcloud 设置默认端口

Posted on 2019-02-21

比如改成81端口,使用命令sudo snap set nextcloud ports.http=81

解决家里面打印机暂停的问题

Posted on 2018-08-31

按下面图片所示的界面,去重新开始打印机就可以。

加快QWebview中执行Javascript的速度

Posted on 2018-08-13

The issue is that Qt is evaluating the return value of the last statement in Javascript and converting it to a QVariant. It became time consuming because jQuery was returning the jQuery object, which was being evaluated in its entirety by Qt - and recursively at that. This also consumed RAM too. It wasn’t console.log that was fixing the issue, it was the “null” value it returned. I tested, and stapling “null” at the end of the script also worked.

Below is the updated code.

1
myWebElement->evaluateJavaScript( myScript + "; null" );

如果发现执行速度超级慢,按上面的方法处理。

QWizard不能显示完成与取消按钮的问题

Posted on 2018-08-10

我使用的是Qt5.4.2, 遇到这个问题。对话框显示出来后,用鼠标改变一下大小就能显示出来。看起来像Qt的bug。 经反复尝试,发现修改QWizard的属性styleSheet为ClassicStyle就可以解决这个问题。 具体原因不清楚。

Windows远程桌面连接Linux

Posted on 2018-07-11

Windows连接Linux 在Linux装下xrdp软件

1
2
3
4
5
1、安装xrdp sudo apt-get install xrdp 
2、配置xrdp /etc/xrdp/xrdp.ini 复制一个配置将其中的port 配置成5900及名称改下, service xrdp restart
3、安装vino sudo apt-get install vino
4、vino-preference 将第1 个开启
5、gsettings set org.gnome.Vino require-encryption false 6、/usr/lib/vino/vino-server/

Redmine 联接 https 地址的svn服务器

Posted on 2018-06-23

https://blog.csdn.net/taonull/article/details/39249729 1.打开redmine控制台; 2.运行svn list –xml https://svn地址; 3.提示证书时选择p(永久保存ssl凭证); 4.运行成功后,找到subversion_adapter.rb(redmine文件夹\apps\redmine\htdocs\lib\redmine\scm\adapters),找到 def credentials_string str << " --username #{shell_quote(@login)}" unless @login.blank? str << " --password #{shell_quote(@password)}" unless @login.blank? || @password.blank? str << " --no-auth-cache --non-interactive" 修改为: str << " --username #{shell_quote(@login)}" unless @login.blank? str << " --password #{shell_quote(@password)}" unless @login.blank? || @password.blank? str << " --trust-server-cert --no-auth-cache --non-interactive --config-dir \"c:/Users/Administrator/AppData/Roaming/Subversion\""

1234…10

Wanqiang

95 posts
39 categories
40 tags
GitHub E-Mail
© 2021 Wanqiang
Powered by Hexo
|
Theme — NexT.Pisces v5.1.4
|
粤ICP备15047376号