在用CoreBluetooth 做蓝牙数据传输时,把设备设为周边设备报此错误:Characteristics with cached values must be read-only经查询是因为在构造 Characteristic 时设置了 Value,根据官方说明,当Value 不是nil 时,只...
分类:
系统相关 时间:
2014-11-11 18:03:12
阅读次数:
158
create table test_leiji(rpt_month_id number(8), current_month NUMBER(12,2));insert into test_leiji (RPT_MONTH_ID, CURRENT_MONTH) values (200901, 38012...
分类:
数据库 时间:
2014-11-11 13:59:56
阅读次数:
249
go语言真的是很简洁,下面用它来实现快速排序算法packageqsort
funcquickSort(values[]int,leftint,rightint){
ifleft<right{
temp:=values[left]
i,j:=left,right
for{
forvalues[j]>temp{
j--
}
forvalues[i]<temp{
i++
}
ifi>..
分类:
编程语言 时间:
2014-11-11 12:51:43
阅读次数:
200
用go语言实现的冒泡排序packagebubblesort
funcBubbleSort(values[]int){
flag:=true
fori,size:=0,len(values);i<size;i++{
flag=true
forj,end:=0,len(values)-i-1;j<end;j++{
ifvalues[j]>values[j+1]{
values[j],values[j+1]=values[j+1],values[j]..
分类:
编程语言 时间:
2014-11-11 12:50:53
阅读次数:
148
Hibernate: insert into TMe_MerchandiseCInfo (ID, MerchandiseCName, SortID, State, MerchandiseCID) values (?, ?, ?, ?, ?)[11-11 10:53:41] [http-bio-808...
分类:
数据库 时间:
2014-11-11 12:28:35
阅读次数:
606
POJ 3368 Frequent values(RMQ 求区间出现最多次数的数字的次数)...
分类:
其他好文 时间:
2014-11-10 21:53:03
阅读次数:
280
之前在项目中有用到webapi对外提供接口,发现在项目中有根据webapi的方法和注释自动生成帮助文档,还可以测试webapi方法,功能很是强大,现拿出来与大家分享一下。先看一下生成的webapi文档。1、下图展示的是生成帮助文档首页面,其中Values是controller,API下面的列表展示出...
题目描述:
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
思路:以中右左的...
分类:
其他好文 时间:
2014-11-10 13:53:20
阅读次数:
163
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-11-09 23:41:43
阅读次数:
201
触发器是一类特殊的事务 ,可以监视某种数据操作(insert/update/delete),并触发相关操作(insert/update/delete)。
看以下事件:
完成下单与减少库存的逻辑
Insert into o (gid,num) values (2,3); // 插入语句
Update g set goods_num = goods_num - 3 whe...
分类:
数据库 时间:
2014-11-09 19:35:18
阅读次数:
203