摘要: ```shell sudo passwd ``` 阅读全文
posted @ 2023-08-30 11:19 wanqi 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 安装 ```shell sudo apt install mosquitto ``` 配置密码用户 ```shell sudo mkdir -p /etc/mosquitto/config sudo touch /etc/mosquitto/config/pwfile.conf sudo mosqu 阅读全文
posted @ 2023-08-03 10:38 wanqi 阅读(415) 评论(0) 推荐(0) 编辑
摘要: * nginx安装 ```shell sudo apt-get install nginx ``` * nginx 简单配置 ```shell vim /etc/nginx/sites-available/default server { listen 80 default_server; list 阅读全文
posted @ 2023-07-31 10:12 wanqi 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1:查看当前安装驱动版本信息 ![](https://img2023.cnblogs.com/blog/154630/202307/154630-20230726111445098-1687351516.png) driver version: 525.116.03 cuda version: 12 阅读全文
posted @ 2023-07-26 11:22 wanqi 阅读(759) 评论(0) 推荐(1) 编辑
摘要: ###问题提示: ` NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and runn 阅读全文
posted @ 2023-07-20 14:11 wanqi 阅读(79) 评论(0) 推荐(0) 编辑
摘要: ###结论 ###b = a.copy(): 浅拷贝, a 和 b 是一个独立的对象,但他们的子对象还是指向统一对象(是引用)。 ###b = copy.deepcopy(a): 深拷贝, a 和 b 完全拷贝了父对象及其子对象,两者是完全独立的。 ```python import copy ori 阅读全文
posted @ 2023-07-18 17:20 wanqi 阅读(9) 评论(0) 推荐(0) 编辑
摘要: c++ 学习 1.const 2.class 阅读全文
posted @ 2023-07-17 18:55 wanqi 阅读(6) 评论(0) 推荐(0) 编辑
摘要: java中的23中设计模式详细分析 2016年12月03日 23:14:48 pangqiandou 阅读数:4119 java中的23中设计模式详细分析 2016年12月03日 23:14:48 pangqiandou 阅读数:4119 java中的23中设计模式详细分析 java中的23中设计模 阅读全文
posted @ 2018-11-15 11:37 wanqi 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 解决步骤: 1:Android studio开发工具:File -> Invalidate caches / Restart;选择Invalidate and Restart关闭 Android Studio2:删除 “/home/{username}/.gradle” 文件夹3:重启android 阅读全文
posted @ 2018-10-11 17:01 wanqi 阅读(24179) 评论(0) 推荐(1) 编辑
摘要: 一、修改运行内存 进入项目,菜单栏-help-Edit Custom VM Option Paste_Image.png 添加或修改为: -Xms2048m -Xmx2048m -XX:MaxPermSize=2048m -XX:ReservedCodeCacheSize=1024m 数值可自行修改 阅读全文
posted @ 2018-07-12 10:30 wanqi 阅读(571) 评论(0) 推荐(0) 编辑
摘要: Exception in thread "main" java.lang.StackOverflowError at java.util.ArrayList$SubList.rangeCheckForAdd(Unknown Source) 阅读全文
posted @ 2018-07-03 16:48 wanqi 阅读(1682) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-07-03 11:50 wanqi 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 当编译出现如下问题(版本不兼容): Android dependency 'com.android.support:support-fragment' has different version for the compile (25.3.1) and runtime (26.1.0) classp 阅读全文
posted @ 2018-06-20 18:35 wanqi 阅读(3280) 评论(0) 推荐(1) 编辑
摘要: Class定义常量方法(推荐方法) //final修饰符 public final class Constants { //私有构造方法 private Constants() {} public static final int ConstantA = 100; public static fin 阅读全文
posted @ 2018-05-17 15:58 wanqi 阅读(31792) 评论(1) 推荐(3) 编辑
摘要: http://blog.csdn.net/u010856630/article/details/51678745 转载请注明: http://blog.csdn.net/u010856630/article/details/51678745 1、下载源码 前期准备: 安装Ubuntu, 安装 git 阅读全文
posted @ 2017-09-12 17:26 wanqi 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 链接:http://pan.baidu.com/s/1pKx7srp 密码:8fzmmultTool工具将加固后的母包,用鼠标拖进多渠道打包工具,并根据情况选择打包参数。图中这段参数是修改 AndroidManifest.xml 里的结点,将 android:name 属性 为 UMENG_CHAN 阅读全文
posted @ 2016-03-23 19:16 wanqi 阅读(490) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/zhaokaiqiang1992/article/details/19921703 android中的组件Activity在manifest.xml文件中可以指定参数android:ConfigChanges,用于捕获手机状态的改变。 在Activity中添 阅读全文
posted @ 2016-01-30 21:35 wanqi 阅读(12974) 评论(1) 推荐(3) 编辑
摘要: http://blog.csdn.net/ichuzhen/article/details/8241847Ubuntu环境, 假设这台机器名字叫abc(机器的hostname), 每次执行sudo 就出现这个警告讯息:sudo: unable to resolve host abc虽然sudo 还是... 阅读全文
posted @ 2016-01-26 15:27 wanqi 阅读(12321) 评论(0) 推荐(0) 编辑
摘要: gedit /etc/nginx/sites-enabled/default location /hlstest { types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; } alias /home/wanqi/work_pl... 阅读全文
posted @ 2016-01-26 14:44 wanqi 阅读(959) 评论(0) 推荐(0) 编辑
摘要: ffmpeg -i Sunshine.mp3 -c:a libmp3lame -b:a 128k -map 0:0 -f segment -segment_time 10 -segment_list outputlist.m3u8 -segment_format mpegts output%03d.... 阅读全文
posted @ 2016-01-19 19:50 wanqi 阅读(2113) 评论(0) 推荐(0) 编辑
摘要: http://www.oschina.net/code/snippet_209431_7358wc -l $(find . -type f -name '*.java') 阅读全文
posted @ 2016-01-14 14:14 wanqi 阅读(937) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/12777435/disable-multi-finger-touch-in-my-appandroid:splitMotionEvents="false" 阅读全文
posted @ 2015-11-26 19:43 wanqi 阅读(310) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/huangxiaohu_coder/article/details/8497286在原生Android下编译APK,编译没有问题,但是在运行的时候经常出现如标题所描述的异常,然后整个程序Crash掉...... 我遇到该问题常常都是因为修改了资源文件所引起,... 阅读全文
posted @ 2015-11-24 09:57 wanqi 阅读(3307) 评论(0) 推荐(0) 编辑
摘要: int currentapiVersion = android.os.Build.VERSION.SDK_INT; if (currentapiVersion >= android.os.Build.VERSION_CODES.HONEYCOMB) { ... 阅读全文
posted @ 2015-11-23 16:45 wanqi 阅读(1793) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/25178329/recyclerview-and-swiperefreshlayout23down votewrite the following code inaddOnScrollListenerof theRecycler... 阅读全文
posted @ 2015-11-19 14:43 wanqi 阅读(3160) 评论(0) 推荐(0) 编辑
摘要: http://www.heapoverflow.me/question-webview-loadurlurl-headers-not-working-in-android-31203905It's beceause of Cookie Policy, to fix it, you should ad... 阅读全文
posted @ 2015-11-13 23:45 wanqi 阅读(2768) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/wulianghuan/article/details/8644144国内某金融企业的一道面试题:如何在代码中获得一个ImageVIew的高度和宽度?相信很大一部分人,会直接想到用imageview.getWidth() 和imageview.getHeig... 阅读全文
posted @ 2015-11-12 20:43 wanqi 阅读(2349) 评论(0) 推荐(0) 编辑
摘要: http://blog.ibireme.com/2015/11/02/mobile_image_benchmark/图片通常是移动端流量耗费最多的部分,并且占据着重要的视觉空间。合理的图片格式选用和优化可以为你节省带宽、提升视觉效果。在这篇文章里我会分析一下目前主流和新兴的几种图片格式的特点、性能分... 阅读全文
posted @ 2015-11-12 11:26 wanqi 阅读(619) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/csdn_ask/article/details/8640994原问题来自于CSDN问答频道,更多解决方案见:http://ask.csdn.net/questions/903原问题描述:xml中的textView:[java]view plaincopy如... 阅读全文
posted @ 2015-11-04 10:38 wanqi 阅读(383) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/jiguangcanhen/article/details/39006197同步的方式:1)首先定义要接口。注解Get表示使用的Get请求方式,{user}代表要被替换的数据public interface GitHubService { @GET("/us... 阅读全文
posted @ 2015-11-03 16:35 wanqi 阅读(9438) 评论(1) 推荐(0) 编辑
摘要: http://www.jb51.net/article/65510.htm今天来给大家介绍一个非常有用的Studio Tips,有些时候我们在一个方法内部写了过多的代码,然后想要把一些代码提取出来再放在一个单独的方法里,通常我们的做法是复制粘贴,现在我来教给大家一个非常简洁的方法,先看下gif演示吧... 阅读全文
posted @ 2015-11-02 19:25 wanqi 阅读(746) 评论(1) 推荐(0) 编辑
摘要: http://www.oschina.net/question/1256646_123691http://bbs.csdn.net/topics/360005140http://stackoverflow.com/questions/5421777/deserialize-java-generics... 阅读全文
posted @ 2015-10-29 14:33 wanqi 阅读(2265) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/zhouchangshi/article/details/44454695Android开发中遇到网络连接问题,要找WebView中显示一个静态的网页, 结果 ---- >logcat输出: "[INFO:CONSOLE(12)] "Not allowed ... 阅读全文
posted @ 2015-10-27 20:32 wanqi 阅读(3408) 评论(0) 推荐(0) 编辑
摘要: android studio 默认是没有开启debuggable 功能的,在tools里打开该功能即可,Tools->Android->Enable ADB Integration。刚设置完之后可能不会立马出现效果。记得在设备上重新安装一遍自己的程序就OK了。http://www.mamicode.... 阅读全文
posted @ 2015-10-15 14:34 wanqi 阅读(551) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/freesonhp/article/details/25904047在平时我们编程的时候,经常会用到倒计时这个功能,很多人不知道Android已经帮封装好了一个类,往往都自己写。现在发现了这个类,大家共享一下:在一个TextView不断显示剩下的时间,代码如... 阅读全文
posted @ 2015-10-14 17:28 wanqi 阅读(1250) 评论(0) 推荐(0) 编辑
摘要: git checkout -b fix/base //创建分支git branch -av 查看所有分支git checkout master //切换分支 阅读全文
posted @ 2015-10-12 10:15 wanqi 阅读(1357) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/mayongsheng/p/4387109.htmlhttps://github.com/awslabs/aws-sdk-android-samples/issues/26最近使用google的Volley框架遇到一个下载图片的异常com.android... 阅读全文
posted @ 2015-10-09 18:08 wanqi 阅读(12691) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/10849552/update-viewpager-dynamicallyif you want to switch out the actual fragments that are being displayed, you n... 阅读全文
posted @ 2015-10-09 13:54 wanqi 阅读(793) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/zrzlj/article/details/80506331)需要在AndroidManifest.xml文件中声明需要使用HardwareAccelerate, 可以细化到Activity级别,如果不需要的View可以声明不要用加速,但是需要在代码中做,具... 阅读全文
posted @ 2015-09-29 10:19 wanqi 阅读(1311) 评论(0) 推荐(0) 编辑
摘要: retrofit-1.7.1依赖以下包okhttp-2.0.0okio-1.0.0okhttp-urlconnection-2.0.0ExtCertPathValidatorException: Could not validate certificate: null 是因为没有okio jar 包 阅读全文
posted @ 2015-09-26 14:19 wanqi 阅读(724) 评论(0) 推荐(0) 编辑