06 2015 档案

摘要:public class ImgeUtils { public static String img2String(BufferedImage img,String type){ String imgStr = null; ByteArrayOutp... 阅读全文
posted @ 2015-06-30 18:03 yshy 阅读(560) 评论(0) 推荐(0) 编辑
摘要:Kc.find({bjid:req.params.bjid}).sort({'_id':1}).exec(function(err,kcs){ if(err){ res.json({no:0,msg:err}); }else{ var result = {no:1};... 阅读全文
posted @ 2015-06-25 07:50 yshy 阅读(430) 评论(0) 推荐(0) 编辑
摘要:#匹配APK下载 location ~*.(apk)$ { root /var/workspace/download; } #http://xxxx/nsrxt_png/A000000.png ... 阅读全文
posted @ 2015-06-24 20:18 yshy 阅读(296) 评论(0) 推荐(0) 编辑
摘要:Node应用,使用formidable处理文件上传,本地测试没有问题,部署到服务器上之后上传大文件浏览器收到以下错误信息:Failed to load resource: the server responded with a status of 413 (Request Entity Too La... 阅读全文
posted @ 2015-06-24 14:08 yshy 阅读(8155) 评论(0) 推荐(0) 编辑
摘要:1:当前环境y@y:~$ node --version && express -V && mongo --versionv0.12.24.9.0MongoDB shell version: 2.4.9y@y:~$ 2:新建工程目录y@y:express-test$ express demo01y@y... 阅读全文
posted @ 2015-06-22 21:16 yshy 阅读(563) 评论(0) 推荐(0) 编辑
摘要:Log日志如下:06-21 10:12:52.495: E/Trace(2682): error opening trace file: No such file or directory (2)06-21 10:12:52.723: E/AndroidRuntime(2682): FATAL EX... 阅读全文
posted @ 2015-06-21 12:34 yshy 阅读(1223) 评论(0) 推荐(0) 编辑
摘要:1:mongodump -h IP --port 端口 -u 用户名 -p 密码 -d 数据库 -o 文件存在路径如果没有用户谁,可以去掉-u和-p。如果导出本机的数据库,可以去掉-h。如果是默认端口,可以去掉--port。如果想导出所有数据库,可以去掉-d。导出指定数据库:(此时只是导出ydkt下... 阅读全文
posted @ 2015-06-20 12:24 yshy 阅读(3382) 评论(0) 推荐(0) 编辑
摘要:> db.addUser("ydkt","ydkt")2015-06-19T09:22:37.004+0800 E QUERY TypeError: Property 'addUser' of object admin is not a function at (shell):1:4> ... 阅读全文
posted @ 2015-06-19 09:29 yshy 阅读(3843) 评论(3) 推荐(1) 编辑
摘要:y@y:~$ lsof | grep 35729grunt 18194 y 13u IPv6 117971 0t0 TCP *:35729 (LISTEN)Optimizin 18194 18195 ... 阅读全文
posted @ 2015-06-18 17:59 yshy 阅读(2956) 评论(0) 推荐(0) 编辑
摘要:public static void compressPic(){ try { Thumbnails.of(new File("/home/y/my_temp/ydbg-xy-pic").listFiles()) .size(... 阅读全文
posted @ 2015-06-18 17:29 yshy 阅读(1136) 评论(0) 推荐(0) 编辑
摘要:public static void renamePic(){ File f = new File("/home/y/my_temp/ydbg-xy-pic-dest"); File files[] = f.listFiles(); for(... 阅读全文
posted @ 2015-06-18 17:23 yshy 阅读(525) 评论(0) 推荐(0) 编辑
摘要:restfull路由如下:router.get('/:id', controller.show);mongoes代码如下:exports.show = function(req, res) { Notice.findById(req.params.id, function (err, notice... 阅读全文
posted @ 2015-06-17 16:24 yshy 阅读(5972) 评论(0) 推荐(0) 编辑
摘要:net.coobird.thumbnailator.tasks.UnsupportedFormatException: No suitable ImageReader found for source data. at net.coobird.thumbnailator.tasks.io.In... 阅读全文
posted @ 2015-06-14 09:13 yshy 阅读(15394) 评论(5) 推荐(0) 编辑
摘要:y@y:~$ sudo apt-get install nginxy@y:~$ sudo service nginx starty@y:~$ nginx默认使用80端口,打开浏览器输入:http://localhost/Welcome to nginx!If you see this page, t... 阅读全文
posted @ 2015-06-12 08:22 yshy 阅读(502) 评论(0) 推荐(0) 编辑
摘要:安装:$npm install -g forevery@y:ydkt$ forever start server/app.js warn: --minUptime not set. Defaulting to: 1000mswarn: --spinSleepTime not set. Y... 阅读全文
posted @ 2015-06-12 07:47 yshy 阅读(703) 评论(0) 推荐(0) 编辑
摘要:pm2是全新开发的进程守护服务, 同时集成了负载均衡功能. 以及开机启动, 自动重启有问题进程.还可以查看各服务进程状态.使用方法参照:https://github.com/Unitech/pm2安装:$ npm install pm2@latest -gy@y:ydkt$ pm2 start se... 阅读全文
posted @ 2015-06-11 20:42 yshy 阅读(1191) 评论(0) 推荐(0) 编辑
摘要:第一步:生成签名证书.y@y:my_temp$ $ keytool -genkey -v -keystore my-release-key.keystore -alias ydkt -keyalg RSA -keysize 2048 -validity 36000$:未找到命令y@y:my_temp... 阅读全文
posted @ 2015-06-11 16:57 yshy 阅读(2643) 评论(0) 推荐(1) 编辑
摘要:{{item}} controller $scope.items = []; for (var i=0; i<100; i++) { $scope.items.push(i); ... 阅读全文
posted @ 2015-06-11 13:49 yshy 阅读(2468) 评论(1) 推荐(0) 编辑
摘要://1获取当前时间 var curTime = new Date(); //2把字符串格式转换为日期类 var startTime = new Date(Date.parse(kc.begintime)); v... 阅读全文
posted @ 2015-06-11 10:00 yshy 阅读(656) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示