按照协议匹配,避免串口数据接收时顺序换乱错误。包头长度地址码回复状态校验和包尾备注C0C002F5AAYYCF成功1,转移字符 a) 数据包基本格式中的数据长度、数据和校验和中如果出现关键字C0、CF或CA则需要在其前端加上转义字符CA,即将数据C0、CF或CA发送成CAC0、CACF或CACA,将...
分类:
其他好文 时间:
2014-08-22 12:41:36
阅读次数:
177
本地开发的时候有些数据经常被缓存,清除的时候要注释掉代码,如果往线上传的话,还需远程在线上更新或者svn/ftp..传两次。如果用命令的话,就不用这么麻烦了。以memcache为例,默认商品号为11211telnet 127.0.0.1 11211 回车登录之后,输入命令 flush_all 再回车...
分类:
其他好文 时间:
2014-08-22 12:35:26
阅读次数:
282
1、隐藏年((ViewGroup) (((ViewGroup) dp.getChildAt(0)).getChildAt(0))) .getChildAt(0).setVisibility(View.GONE);*/ 2、隐藏月((ViewGroup) (((ViewGroup) dp.ge...
分类:
其他好文 时间:
2014-08-22 12:24:56
阅读次数:
274
※◆☆★☆◆※感谢使用飞扬辅助,资深团队承接各类游戏、办公辅助的开发订制,欢迎前来咨询,QQ:692416*2*测试版停用,如需继续使用,或有其他项目,请联系作者------QQ:692416*0*2014-04-16 23:59:59*哈密*ED963171882B28C77A71357DFF8E...
分类:
其他好文 时间:
2014-08-22 01:29:55
阅读次数:
200
1、判断用户名,在2-16位-(BOOL)CheckInput:(NSString *)_text{ NSString *Regex = @"^\\w{2,16}$"; NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF....
分类:
其他好文 时间:
2014-08-21 22:41:14
阅读次数:
207
Magento获取当前栏目ID:$_cat= new Mage_Catalog_Block_Navigation();$curent_cat= $_cat->getCurrentCategory();$curent_cat_id= $curent_cat->getId(); 或者Mage::regi...
分类:
其他好文 时间:
2014-08-21 18:40:14
阅读次数:
172
/* 设备竖屏时调用该段css代码 */ @media all and (orientation : portrait){ body{ background-color:blue; } } /* 设备横屏时调用该段css代码 */ @media all and (orientation : la.....
分类:
移动开发 时间:
2014-08-21 18:34:54
阅读次数:
345
Set-SPCentralAdministration -Port to fix the error:Got this error: Failed to register SharePoint services. An exception of type System.UriFormatExcept...
分类:
其他好文 时间:
2014-08-21 18:32:34
阅读次数:
256
$root_id = Mage::app()->getStore()->getRootCategoryId(); $categories = Mage::getModel('catalog/category')->getCategories($root_id);获得分类名称 fore...
分类:
其他好文 时间:
2014-08-21 14:58:04
阅读次数:
210
class LRUCache提供两个接口:get(int key)和set(int key,value)
#include
using namespace std;
class LRUCache{
public:
LRUCache(int cap):current(0),capacity(cap){
A=new node[ca...
分类:
编程语言 时间:
2014-08-21 00:17:53
阅读次数:
383