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
只贴出部分代码,重在说明过程
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
新建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
报错信息: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
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
wgethttp://down.wdlinux.cn/in/php_up53.shsh php_up53.sh看到”phpupdate is OK”提示表示,顺利完成
分类:
Web程序 时间:
2014-11-26 11:12:47
阅读次数:
209
接着上面说用户注册是比较简单的,成功连接上服务器后,设置好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
核心类:DatabaseMetaData、ResultSetMetaData 1 System.err.println("**********************************"); 2 Connection conn=DataSourceUtils.getDataSo...
分类:
数据库 时间:
2014-11-22 11:44:53
阅读次数:
240
以前一直用5.1版本的,由于新业务需要用5.6的,就安装并做了笔记MySQL5.6部分新特性:InnoDB现在可以限制大量表打开的时候内存占用过多的问题(第三方已有补丁)InnoDB性能加强。如分拆kernelmutex;flush操作从主线程分离;多个perge线程;大内存优化等InnoDB死锁信息可以记录到err..
分类:
数据库 时间:
2014-11-21 16:34:58
阅读次数:
194