码迷,mamicode.com
首页 >  
搜索关键字:err    ( 12054个结果
nodejs read/write file
fs.readFile('c:\\tmp\\helloworld.txt','utf8',function(err,data){console.log(data);}) var token=fs.readFileSync('c:\\tmp\\toekn.txt','utf8'); fs.wri...
分类:Web程序   时间:2014-12-05 16:51:42    阅读次数:207
ffmpeg解码文件
只贴出部分代码,重在说明过程 av_register_all(); AVFormatContext* fctx = avformat_alloc_context(); int err = avformat_open_input(&fctx, "b.avi", NULL, NULL); printf("open input:%d\n", err); err = avformat_fi...
分类:其他好文   时间:2014-12-01 14:23:56    阅读次数:184
获取本机IP的函数
新建win32控制台程序,代码如下:#include<winsock2.h>#include<stdio.h>voidGetLocalIP();intmain(){GetLocalIP();return0;}voidGetLocalIP(){ charchostname[256]={0}; WORDwVersionRequested; WSADATAwsaData; interr; wVersionRequested=MAKEWORD(2,2); err=WS..
分类:其他好文   时间:2014-11-29 07:14:02    阅读次数:239
5.6 slave中断(1032)
报错信息:Replicate_Wild_Ignore_Table:Last_Errno:1032Last_Error:CouldnotexecuteDelete_rowseventontableproduct_same.authtoken_token;Can‘tfindrecordin‘authtoken_token‘,Error_code:1032;handlererrorHA_ERR_KEY_NOT_FOUND;theevent‘smasterlogmysql-bin.001710,end_lo..
分类:其他好文   时间:2014-11-27 18:54:19    阅读次数:211
Scala读取文件内容
import scala.io.Source if(args.length>0){ for(line <- Source.fromFile(args(0)).getLines) println(line.length+" "+line) } else Console.err.println("Please enter filename");...
分类:其他好文   时间:2014-11-26 11:24:54    阅读次数:222
php curl_exec 访问https错误 错误代码:ERR_EMPTY_RESPONSE 出现错误的php版本是 5.2.17。升级wdcp的php到5.3.27就没这个问题了
wgethttp://down.wdlinux.cn/in/php_up53.shsh php_up53.sh看到”phpupdate is OK”提示表示,顺利完成
分类:Web程序   时间:2014-11-26 11:12:47    阅读次数:209
IOS基于XMPP协议开发--XMPPFramewok框架(三):用户注册
接着上面说用户注册是比较简单的,成功连接上服务器后,设置好JID,即可调用[_xmppStream registerWithPassword:pwd error:&err]进行注册-(BOOL)registerUser:(NSString*)user withpassword:(NSString*)...
分类:移动开发   时间:2014-11-25 15:58:32    阅读次数:148
云变换算法
function[cent1,band1,he1,peak1,i]=ybh(err) yzi=xlsread('sheet1.xls','B2:B261'); zd=max(yzi); zx=max(yzi); erro=err; i=1; n=0; table=tabulate(yzi); for...
分类:编程语言   时间:2014-11-24 20:43:15    阅读次数:329
数据库元数据分析Demo
核心类:DatabaseMetaData、ResultSetMetaData 1 System.err.println("**********************************"); 2 Connection conn=DataSourceUtils.getDataSo...
分类:数据库   时间:2014-11-22 11:44:53    阅读次数:240
Mysql 5.6 安装
以前一直用5.1版本的,由于新业务需要用5.6的,就安装并做了笔记MySQL5.6部分新特性:InnoDB现在可以限制大量表打开的时候内存占用过多的问题(第三方已有补丁)InnoDB性能加强。如分拆kernelmutex;flush操作从主线程分离;多个perge线程;大内存优化等InnoDB死锁信息可以记录到err..
分类:数据库   时间:2014-11-21 16:34:58    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!