From 9c96b36eba0fed5187526c3c3d824a44c2e2d50e Mon Sep 17 00:00:00 2001 From: JamesonHuang <462430725@qq.com> Date: Fri, 19 Jun 2015 19:58:04 +0800 Subject: [PATCH] update week-report --- updateWifi.lua | 6 +++ week-report2.txt | 11 +++++ week-report2.txt~ | 105 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 122 insertions(+) create mode 100644 week-report2.txt~ diff --git a/updateWifi.lua b/updateWifi.lua index 629f2fb..6b57be2 100644 --- a/updateWifi.lua +++ b/updateWifi.lua @@ -1067,6 +1067,12 @@ function set_smart_wifi_updown() end +--lua try-catch +r, msg = pcall(function() db:rows(sqlStr) end) +if r == false then + require "MZLog".log(3, "r false") + return result +end diff --git a/week-report2.txt b/week-report2.txt index f0ebb3e..e15a5e5 100644 --- a/week-report2.txt +++ b/week-report2.txt @@ -73,6 +73,17 @@ 6.18 调试中继转dhcp bug ==》ssid表不存在 + 将urllib download & cache 整合进twisted,模块整合成功 + +6.19 + 完成twisted cache download整体整合 + + + + +待看: + fseek / curl / dd / netstat + pulse audio(ipad & mobile) / dlna mini源码 / python dlna github diff --git a/week-report2.txt~ b/week-report2.txt~ new file mode 100644 index 0000000..2394b42 --- /dev/null +++ b/week-report2.txt~ @@ -0,0 +1,105 @@ +6.1-6.5 + +6.1 + 测试 & fix upgrade bug + +6.2 + 改进优化smart wifi,使之无tmp文件 + shell脚本学习,试着将lua函数中用到的shell命令封装进.sh中 + sed命令学习 + +6.3 + 了解squid/nginx代理服务器模块 + 测试阿里小智相关api + +6.4 + 阅读squid/nginx相关书籍,了解实现原理 + 查找/阅读nginx http模块的proxy代码 + +6.5 + 网上搜索tiny server/proxy server实现代码 + + + +6.8-6.12 + +6.9 + 了解/调试mongoose代码结构及内部实现api + +6.10 + github上看相关http download的代码,了解其实现原理 + 试着整合http proxy & http download + +6.11 + 整合/调试http proxy & http download,调试成功 + +6.12 + 意识到用c代码实现周期太长,试着用python实现原型 + 回顾python基础语法 + 调试api getdeviceList + 弄懂twisted connect proxy代码(该代码在twisted的基础上加多了对http connect方法的处理) + 了解libcurl,运行http demo + get到linux terminal的常用快捷键 + +6.13 + 整理一周所学 + 异步非阻塞I/O模型:twisted & node.js,对比,区别,与多线程模型的对比 + git回顾 + +6.14 + 整理一周所学(nginx / lua 笔记) + twisted factory ==》抽象工厂与工厂模式的对比 ==》 抽象工厂是否过度设计了呢? + get python细节语法(pass / raise / with ... as ...) + + +6.15-6.20 + +6.15 + 联调api set/get bandwidth + 了解luci外网访问代码流程 + 阅读twisted dave api详解dave@http://krondo.com/?p=1209 1-3 + +6.16 + + 阅读twisted dave api详解dave@http://krondo.com/?p=1209 4-5 + 总结twisted常用的类及相关回调函数 + +6.17 + getsmartwifiinfo挂了,调试 + 发现传入smart wifi参数格式有问题,亟待与app端沟通 + 调整smart wifi utc时间 + python实现urllib/urllib2 range/文件IO + 调试中继转dhcp bug + +6.18 + 调试中继转dhcp bug ==》ssid表不存在 + 将urllib download & cache 整合进twisted,模块整合成功 + +6.19 + 完成twisted cache download整体整合 + + + + +待看: + fseek / curl / dd + pulse audio(ipad & mobile) / dlna mini源码 / python dlna github + + + + + + + + + + + + + + + + + + +