HandlerThread线程其实就是一个内部建立了Looper的普通线程 HandlerThread使用:a、创建HandlerThread线程b、运行线程c、获取HandlerThread线程中的Looper实例d、通过Looper实例创建Handler实例,从而使mSubThreadHandl ...
分类:
其他好文 时间:
2019-05-25 20:02:34
阅读次数:
91
在Android中,在非主线程中更新UI控件是不安全的,app在运行时会直接Crash,所以当我们需要在非主线程中更新UI控件,使用Handler和Message来实现 而常见的实现是主线程在处理消息 子线程需要更新ui,只需要发送消息 这里得到message的方式就有几种 1、直接new 2、通过 ...
分类:
其他好文 时间:
2019-05-25 19:34:24
阅读次数:
127
使用composer的自动加载、命名空间及shell脚本,构建原生php框架 # smarty-frame运用php构建自己的框架 根目录/application:应用程序核心目录 根目录/configs下: config:应用配置文件 db:数据库配置文件 routes:路由配置文件 fileCa ...
分类:
Web程序 时间:
2019-05-24 12:48:45
阅读次数:
180
import asyncio import functools import os import signal """ 信号值 符号 行为 2 SIGINT 进程终端,CTRL+C 9 SIGKILL 强制终端 15 SIGTEM 请求中断 20 SIGTOP 停止(挂起)进程... ...
分类:
其他好文 时间:
2019-05-23 21:15:03
阅读次数:
336
These symbols related to interrupt management were introduced in this chapter: Calls that register and unregister an interrupt handler. dev_name为显示在/p ...
分类:
系统相关 时间:
2019-05-23 16:36:46
阅读次数:
119
1 .拦截器(Interceptor): 用于在某个方法被访问之前进行拦截,然后在Handler执行之前或之后加入某些操作,其实就是AOP的一种实现策略。 拦截用户的请求并进行相应的处理,比如:判断用户是否登陆,判断用户权限,是否在可购买时间内,记录日志信息等。。 创建拦截器:实现HandlerIn ...
分类:
其他好文 时间:
2019-05-22 20:49:00
阅读次数:
128
解决SparkSQL部分报错
一、Caused by: org.datanucleus.store.rdbms.connectionpool.DatastoreDriverNotFoundException:
The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the
CLASSPATH. Please check your CLASSPATH specification,
and the name of the driver.
二、Caused by: java.sql.SQLException: No suitable driver found for
jdbc:mysql://192.168.1.201:3306/hiveDB?createDatabaseIfNotExist=true
分类:
数据库 时间:
2019-05-21 22:40:25
阅读次数:
1664
watch单个监听computed多个监听当watch监听复杂数据类型的时候需要做深度监听deepwatch深度监听deep表达式://深度监听watch:{msg:{handler(val,oldval){if(val.text==‘love‘){alert(‘ILoveYou‘)}},deep:true//开启深度监听}}watch深度监听<!DOCTYPEhtml><htm
分类:
其他好文 时间:
2019-05-21 11:11:57
阅读次数:
167
1、配置文件如下 <bean id="method" class="com.xx.controller.xxxController" scope="prototype"/> <!--控制层 方法与发布应用路径映射 所有控制层的方法映射全配置在这里 --> <bean id="simpleUrlHan ...
分类:
移动开发 时间:
2019-05-20 21:29:40
阅读次数:
206
好久没有再博客活动啦,今天给大家推荐一下录屏软件吧!首先我个人最喜欢的OBS Studio就说说它吧 1、免费、开源、功能强大、易上手 ? ? ? 下面是下载地址: 官网下载 : https://obsproject.com/ 官网下载速度较慢 百度网盘下载链接:https://pan.baidu. ...
分类:
其他好文 时间:
2019-05-20 21:22:22
阅读次数:
254