学习
woodenman55515
干TMD
展开
-
git 命令整理
修改最新commit的提交信息$ git commit --amend-提交更新$ git add .$ git commit -m "名称"翻译 2020-09-18 14:37:39 · 71 阅读 · 0 评论 -
android Webview onCreateView中获取要跳转的URL
目录`onCreateWindow`webView在开启多窗口模式时,要做两件事webSettings.setSupportMultipleWindows(true);复写setWebChromeClient中的onCreateWindow方法本文主要介绍在onCreateWindow中获取要跳转的URL的方法onCreateWindow final WebView webView...原创 2019-12-27 14:32:19 · 1492 阅读 · 0 评论 -
ListView和RecycleView类比(点击、触摸、下划线)
下划线ListView自带 item下划线,recycleView不带下划线实现recycleView的下划线继承RecyclerView.ItemDecoration类,本质上就是计算下滑线位置,画矩形作为线public class MyRecyclerViewItemDecoration extends RecyclerView.ItemDecoration { ...原创 2019-12-26 09:59:58 · 202 阅读 · 0 评论 -
(转)Android 匿名共享内存demo篇(一)
Android系统的IPC方式通常为:文件、socket、binder、messenger、AIDL、ContentProvider,此外还有个Anonymous Shared Memory(匿名共享内存),这篇文章介绍Ashm基础使用相关知识。Android api2...转载 2019-12-16 17:02:02 · 364 阅读 · 0 评论 -
Ubuntu 16.04下搭建nfs服务器
转载于https://www.cnblogs.com/MoreExcellent/p/7222895.html@lineed1、安装nfs服务sudo apt install nfs-common2、修改配置文件sudo vim /etc/exports3、修改内容如下:/home *(rw,sync,no_root_squash) 各段表达的意思如下,根据实际进行修改/h...转载 2019-07-26 13:04:52 · 343 阅读 · 0 评论 -
ubuntu
查看文件管理器的id,kill掉ps -ef|grep nautilus转载 2019-07-25 15:25:32 · 468 阅读 · 0 评论 -
双系统在Linux下查看win的硬盘Ubuntu
查看一次计算机有哪些硬盘sudo fdisk -lu挂载硬盘,使用:sudo mount /dev/想要的磁盘 /media/想要的路径挂载结束。卸载硬盘,使用:umount /dev/想要的磁盘 或者umount /media/想要的路径卸载结束。...转载 2019-07-26 10:08:15 · 1145 阅读 · 0 评论 -
could not read symbols: File in wrong format collect2: ld 返回 1 make: *** [all] 错误 1
问题过程: 在64位的操作系统上重新编译c程序遇到以下报错,[root@hb hostinfo]# makegcc -shared hbla_hostinfo.o -g -o libhbla_hostinfo.so -fPIChbla_hostinfo.o: could not read symbols: File in wrong formatcollect2: ld 返回 1make...转载 2019-07-25 17:17:06 · 1188 阅读 · 0 评论 -
linux对文件夹的操作
删除rm使用rm -rf filedir该命令会直接删除文件夹,不会给出警告信息和提示重命名mv将目录A重命名为Bmv A B复制cpcp -Rf /home/user1/* /root/temp/将 /home/user1目录下的所有东西拷到/root/temp/下而不拷贝user1目录本身。即格式为:cp -Rf 原路径/ 目的路径/...转载 2019-07-25 13:51:24 · 150 阅读 · 0 评论 -
解决QT5虚拟键盘qtvirtualkeyboard在qtwebengine中中文输入法不可用的问题
可以在qvirtualkeyboardinputcontext_p.cpp中的void QVirtualKeyboardInputContextPrivate::update(Qt::InputMethodQueries queries)函数中,注释掉// update input engineif ((newSurroundingText || newCursorPosition) &...原创 2019-07-25 13:12:52 · 3573 阅读 · 4 评论 -
c++多线程
cout不是线程安全的,需要加锁才能在多线程环境下使用而printf是线程安全的。转载 2019-07-25 13:07:20 · 119 阅读 · 0 评论