摘要: 第一天 以前一直感觉不舒服,很不对劲,当时觉得可能是工作忙压力大也没当回事。可是近3个月左右很异常 情绪消极 厌食 心累 身体累 发呆 不想说话 想哭老是哭 觉得自己没用 想不开 不好的想法 等等。在身体和心里的体现越来越明显。在网上找了SDS 和 SAS 的测评 做了一下 评分真心高,昨天鼓足勇气 阅读全文
posted @ 2018-09-05 16:12 清渡茶叶 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 比如对产品productId=143这个请求分发 现编写lua脚本 distrib_product.lua local uri_args = ngx.req.get_uri_args()local productId = uri_args["productId"]--获取链接地址 和 product 阅读全文
posted @ 2017-10-07 23:37 清渡茶叶 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 项目工程结构 hello hello.conf lua hello.lua lualib *.lua *.so 新建hello.conf server { listen 80; server_name _; location /lua { default_type 'text/html'; lua_ 阅读全文
posted @ 2017-10-05 16:53 清渡茶叶 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 新建目录 mkdir -p /usr/servers cd /usr/servers/ 安装必要的程序 yum install -y readline-devel pcre-devel openssl-devel gcc 下载openresty wget https://openresty.org/ 阅读全文
posted @ 2017-10-05 16:18 清渡茶叶 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 介绍:使用spring-data-redis 框架 ,利用@annotation和redis lua,spring aop 实现数据的 save、list、update、delete对缓存的影响操作(考虑增加异步数据) save:数据库数据添加、缓存数据添加、list后的缓存数据添加 list:缓存 阅读全文
posted @ 2016-07-11 10:40 清渡茶叶 阅读(1248) 评论(0) 推荐(0) 编辑
摘要: 定义RESTful服务 验证码资源 注意:使用 @Context 注入HttpServletResponse 对象 阅读全文
posted @ 2016-03-28 18:55 清渡茶叶 阅读(2714) 评论(0) 推荐(0) 编辑
摘要: 圆形进度条 <com.pascalwelsch.holocircularprogressbar.HoloCircularProgressBar android:id="@+id/holoCircularProgressBar" android:layout_width="300dp" android 阅读全文
posted @ 2016-03-02 09:09 清渡茶叶 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 读一个文件描述符写另一个文件描述符时迫切需要 int select (int maxfdp1,fd_set *restrict readfds,fd_set * restrict writefds,fd_set * restrict exceptfds,struct timeval * restri 阅读全文
posted @ 2016-02-22 00:09 清渡茶叶 阅读(192) 评论(0) 推荐(0) 编辑
摘要: protected void onCreate(Bundle savedInstanceState):当Activity的实例被启动是调用的第一个方法。 protected void onStart():该方法在onCreate()方法被调用,或者在Activity从Stop状态转为Actived的 阅读全文
posted @ 2016-02-21 21:47 清渡茶叶 阅读(199) 评论(0) 推荐(0) 编辑
摘要: JNI 向上提供本地函数, 向下加载HAL文件并调用HAL的函数HAL 负责访问驱动程序执行硬件操作 在Android 5 中 HAL module 框架主要分为如下三个结构体 hardware/libhardware/include/hardware/hardware.h 文件中定义 struct 阅读全文
posted @ 2016-02-14 16:06 清渡茶叶 阅读(763) 评论(0) 推荐(0) 编辑