1 Test coding Zigbee  test of Tx power and frequency for every channel. Testing Procedure1) Power up the testing board & connect to PC with uart (pb12 =tx  ,pb13 =rx, 115200,n,8,1)2) Input the testing command to testing board (eg. as below)   // Noti…
Flask-WTF是简化了WTForms操作的一个第三方库.WTForms表单的两个主要功能是验证用户提交数据的合法性以及渲染模板.还有其它一些功能:CSRF保护, 文件上传等.安装方法: pip3 install flask-wtf 用户登录注册示例 1. 用户登录 当用户登录时候,需要对用户提交的用户名和密码进行多种格式校验.如: 用户不能为空:用户长度必须大于6: 密码不能为空:密码长度必须大于12:密码必须包含 字母.数字.特殊字符等(自定义正则): #!/usr/bin/env pyt…
                                               odoo10总结 1.odoo中的向导应用. .py文件 # -*- coding: utf-8 -*-from odoo import models, fields, apifrom odoo.exceptions import UserErrorfrom odoo.tools.translate import _ class ImportWizard(models.TransientModel):…
文章出处:  http://www.informit.com/articles/article.aspx?p=24094 In the preceding two chapters, I discussed dbExpress—a unidirectional database technology. In the real world, most applications support bidirectional scrolling through a dataset. As noted p…
Question 40 You have a social networking site in SharePoint 2010 that allows users to post content for all other users to view. Users have read-only access to documents that they did not upload themselves. You are designing a way for users to easily…
源代码位置:openerp/addons/base/ir/ir_actions.py 根类型:ir.actions.actions class actions(osv.osv): _name = 'ir.actions.actions' _table = 'ir_actions' _order = 'name' _columns = { 'name': fields.char('Name', required=True), 'type': fields.char('Action Type', r…
做此程序的原因是将软件部署简化,省去IIS的麻烦部署,减少项目实施人员的工作量和工作复杂度 Server sv = , "/", @"D:\web", IPAddress.Any, null, "Login.aspx"); // ********************************************************************************** // CassiniDev - http://cass…
翻译一篇关于windows线程的文章,原文在此.第一次翻译,如有错误请多指教 =========================================华丽的分割线============================================ 介绍: 在现在的编程世界里,无论你使用的是java..NET或C++,多线程编程已经成为编程语言不可缺少的一部分了.我要利用多线程的能力写出高响应和可扩展的应用程序.在使用.NET框架我遇到了各种像Task Parallel Librar…
Common Sections The .text section is where all general-purpose code emitted by the compiler or assembler ends up. Since PE files run in 32-bit mode and aren't restricted to 16-bit segments, there's no reason to break the code from separate source fil…
装饰器: 学前必备知识: def f1(): print "f1" f1() #表示函数执行 f1 #表示函数,指向内存地址 f1 = lambda x: x + 1 f1() # 执行这个lambda表达式,而不再是原来的f1函数,因为函数f1被重新定义了 装饰器代码剖析: 假如有这么一个需求,公司临时规定将某块业务加上访问权限,因为代码太多,又不想改变原有已经封装好的 代码,于是乎,基础平台的同志们想出了这么一个解决办法:利用装饰器解决 那么什么是装饰器?这个问题先留着,直接看代码…