2016年1月8日

nodejs使用mongoose

摘要: var mongoose = require("mongoose");// 连接字符串格式为mongodb://主机/数据库名mongoose.connect('mongodb://cloud:pass9cuo@t.10000bee.com:27017/cloud');var Schema = mo... 阅读全文

posted @ 2016-01-08 10:40 子墨' 阅读(316) 评论(0) 推荐(0)

ExpressJS File Uploading – GridFS – MongoDB

摘要: n this blog post we will see how to handle multipart data/file uploading with expressjs. Save files to mongodb using GridFS and rending files.To handl... 阅读全文

posted @ 2016-01-08 10:39 子墨' 阅读(440) 评论(0) 推荐(0)

nodejs base64 编码解码

摘要: 普通字符串 编码解码:var b = new Buffer('JavaScript'); var s = b.toString('base64'); // SmF2YVNjcmlwdA== var b = new Buffer('SmF2YVNjcmlwdA==', 'base64') var s ... 阅读全文

posted @ 2016-01-08 10:32 子墨' 阅读(741) 评论(0) 推荐(0)

如何用nodejs写入mysql 的blob格式的数据

摘要: So, if the array length equals 4, then the size of blob data in mysql DB must be 4 bytes. And it works fine with numbers less than 128.var res = ""; ... 阅读全文

posted @ 2016-01-08 10:31 子墨' 阅读(2611) 评论(0) 推荐(0)

Object C学习笔记2-NSLog 格式化输出数据

摘要: 1 . 几种常用类型变量声明inti=10; BOOLisShow=YES;BOOLisShow=1;floatf=3.1415926; chara=120; NSString*name=@"Himi";object-c中BOOL类型长度1byte, 若将short或int型数赋值给BOOL类型则截... 阅读全文

posted @ 2016-01-08 10:29 子墨' 阅读(330) 评论(0) 推荐(0)

ios里的UIActionSheet的使用

摘要: class ViewController: UIViewController,UIActionSheetDelegate{ @IBOutlet weak var label1: UILabel! @IBAction func button1(sender: UIButton) { ... 阅读全文

posted @ 2016-01-08 10:28 子墨' 阅读(176) 评论(0) 推荐(0)

UIActivityIndicatorView的使用

摘要: class ViewController: UIViewController,UIActionSheetDelegate{ @IBOutlet weak var label1: UILabel! @IBAction func button1(sender: UIButton) { ... 阅读全文

posted @ 2016-01-08 10:26 子墨' 阅读(126) 评论(0) 推荐(0)

2015年12月31日

centos 6.5安装vncserver 并开启远程桌面

摘要: vnc是一款使用广泛的服务器管理软件,可以实现图形化管理,下面简单介绍一下如何在centos6.5下安装vnc。 安装图形界面: yum groupinstall -y "X Window System" "Desktop" "Chinese Support" 1、下载vncserver yum i 阅读全文

posted @ 2015-12-31 11:46 子墨' 阅读(191) 评论(0) 推荐(0)

2015年11月4日

hg211g破解获取管理员密码,可以连接路由器。默认光猫来拨号。

摘要: 先通过这种方式获取telecomadmin密码;1、使用useradmin用户登录设备2、在IE地址栏输入该路径”192.168.1.1/backupsettings.html”3、点击保存设备备份配置,会得到一个设备配置的XML文件,里面包含了所有的设备配置信息,使用文本工具察看并查找内容,其中包... 阅读全文

posted @ 2015-11-04 17:46 子墨' 阅读(929) 评论(0) 推荐(0)

nodejs fs 模块的用途

摘要: /*** New node filefs 操作*/var fs = require(“fs”);/*创建文件var fileName = “anps_hsj”;fs.mkdir(fileName,function(err){if(err) throw errconsole.log(“创建文件成功”)... 阅读全文

posted @ 2015-11-04 17:46 子墨' 阅读(442) 评论(0) 推荐(0)

导航