码迷,mamicode.com
首页 >  
搜索关键字:err    ( 12054个结果
Nrf51822中设置128bit UUID service
Nrf51822中设置128bit UUID service   uint32_tble_dajia_add_service(ble_dajia_t *p_wechat) {                    uint32_t err_code;                    ble_uuid_t ble_wechat_uuid;                    co...
分类:其他好文   时间:2015-03-17 18:03:20    阅读次数:287
java-随机取0-10之间的整数
Randomr=newRandom(); System.err.println(r.nextInt(10));取出的整數在0~10之內不包含10;為0,1,2,3,4,5,6,7,8,9
分类:编程语言   时间:2015-03-17 12:40:54    阅读次数:280
golang 标准库io/ioutil,读取文件,生成临时目录/文件
1.读取目录list, err := ioutil.ReadDir("DIR")//要读取的目录地址DIR,得到列表if err != nil { fmt.Println("read dir error") return}for _, info := range list { //遍历目...
分类:其他好文   时间:2015-03-17 11:54:21    阅读次数:180
LINUX学习:生产者&消费者模型复习
回顾一下生产者消费者模型。 #include #include #include #include #include #include #include #define ERR_EXIT(m) \ do { \ perror(m);\ exit(EXIT_FAILURE);\ }while(0) #...
分类:系统相关   时间:2015-03-16 16:15:52    阅读次数:189
淘宝dns解析错误导致首页打不开
派猴子来的救兵今天下午3点左右吧, 打开淘宝首页的时候被转到一个错误页面, 说我访问的页面不存在.看被转过去的页面域名还是err.taobao.com, 所以应该还是淘宝内部的"正常"的跳转, 不是病毒啊什么的.开tcpdump抓包看一下. 和淘宝有关的记录如下:192.168.0.110.5087...
分类:其他好文   时间:2015-03-15 13:37:41    阅读次数:8400
golang net/url values
package mainimport ( "fmt" "net/url")func main() { values, err := url.ParseRequestURI("https://www.baidu.com/s?wd=%E6%90%9C%E7%B4%A2&rsv_spt=...
分类:Web程序   时间:2015-03-13 18:03:08    阅读次数:843
Nginx配置文件nginx.conf中文详解
Nginx配置参数中文说明。#定义Nginx运行的用户和用户组user www www;#nginx进程数,建议设置为等于CPU总核心数。worker_processes 8;#全局错误日志定义类型,[ debug | info | notice | warn | error | crit ]err...
分类:其他好文   时间:2015-03-12 19:09:32    阅读次数:158
Mongoose指南 - Document
更新有几种方式更新document. 先看一下传统的更新方法Tank.findById(id, function(err, tank){ if(err) return handleError(err); tank.size = "large"; tank.save(...
分类:其他好文   时间:2015-03-12 15:00:18    阅读次数:119
Mongoose指南 - 查询
查询有带callback和不带callback两种方式所有mongoose的callback都是这种格式: callback(err, result)var Person = mongoose.model('Person', yourSchema);Person.findOne({'name.las...
分类:其他好文   时间:2015-03-12 14:49:55    阅读次数:144
node.js [superAgent] 请求
post请求:? ?request.post(‘/api/pet‘) ???.end(function(resp,err){ ?????if?(resp.body.status===200)?{ ???????alert(‘yay?got?‘?+?JSON.stringify(res.body)); ?????}?else?{...
分类:Web程序   时间:2015-03-11 17:32:58    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!