08 2014 档案

摘要:db.archive.remove({_id:ObjectId("e2f3f3f2323452123443")})删除表中相应ObjectId字段db.archive.remove({})表示删除所有记录 阅读全文
posted @ 2014-08-19 15:04 LAOS 阅读(624) 评论(0) 推荐(0)
摘要:第一步:打开cmd,运行mongo.exe第二步:引用需要加载的数据库 use 数据库名 //如果数据库名不存在,mongodb会自动建立数据库第三步:赋值创建一个文档对象 post.Comment=[];第四步:提交插入文档 db.表名.update({_id:ObjectId("ef2dasfs... 阅读全文
posted @ 2014-08-19 15:00 LAOS 阅读(472) 评论(0) 推荐(0)
摘要:第一步:打开cmd,运行mongo.exe第二步:引用需要加载的数据库 use 数据库名 //如果数据库名不存在,mongodb会自动建立数据库第三步:赋值创建一个文档对象 post={"title":"hellow"}第四步:提交插入文档 db.表名.insert(post) //如果表名不存在,... 阅读全文
posted @ 2014-08-19 14:49 LAOS 阅读(320) 评论(0) 推荐(0)
摘要:第一步:下载win7中的mongodb 2.6安装包第二步:创建一个目录作为数据库目录如d:\docdata第三步:启动mongodb服务 c:\program files\mongodb 2.6 standard\mongod.exe --dbpath=d:\docdata第四步:在cmd中打开m... 阅读全文
posted @ 2014-08-19 14:02 LAOS 阅读(247) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-08-19 13:57 LAOS 阅读(273) 评论(0) 推荐(0)
摘要:客户端: client.Host:='192.168.0.104'; client.Port:=8010; client.Send('abc');服务端:procedure Tudpform.myudpserverUDPRead(AThread: TIdUDPListenerThread; c... 阅读全文
posted @ 2014-08-14 11:07 LAOS 阅读(1630) 评论(0) 推荐(0)
摘要:http://www.ti.com.cn/cn/lit/an/zhct200/zhct200.pdf 阅读全文
posted @ 2014-08-13 22:37 LAOS 阅读(174) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-08-13 22:07 LAOS 阅读(717) 评论(0) 推荐(0)
摘要:1.udpclient的初始化udpClient=[[GCDAsyncUdpSocket alloc] initWithDelegate:self delegateQueue:mainQueue]; udpClient.delegate=self; NSError *err; BOOL bre... 阅读全文
posted @ 2014-08-13 16:11 LAOS 阅读(511) 评论(0) 推荐(0)
摘要:FMicrophone := TCaptureDeviceManager.Current.DefaultAudioCaptureDevice; if Assigned(FMicrophone) then begin FMicrophone.FileName := udpclients.tempsa... 阅读全文
posted @ 2014-08-13 13:45 LAOS 阅读(619) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/whye1974/article/details/17226839 阅读全文
posted @ 2014-08-13 13:29 LAOS 阅读(182) 评论(0) 推荐(0)
摘要:需首先引用lamp.h,libmp3lame.a- (void)audio_PCMtoMP3:(NSString *) cafFilePath ToMp3File:(NSString *) mp3FilePath{ NSFileManager* fileManager=[NSFileManag... 阅读全文
posted @ 2014-08-13 13:07 LAOS 阅读(914) 评论(0) 推荐(0)
摘要:-(void) StartRecord:(NSURL *) recordedFile{session = [AVAudioSession sharedInstance];session.delegate = self;NSError *sessionError;[session setCategor... 阅读全文
posted @ 2014-08-13 13:05 LAOS 阅读(835) 评论(0) 推荐(0)
摘要:[playButton setEnabled:YES]; NSError *playerError; AVAudioPlayer *audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[[[NSURL alloc] ... 阅读全文
posted @ 2014-08-13 13:01 LAOS 阅读(603) 评论(0) 推荐(0)
摘要:一、ANSI编码不同的国家和地区制定了不同的标准,由此产生了 GB2312, BIG5, JIS 等各自的编码标准。这些使用 2 个字节来代表一个字符的各种汉字延伸编码方式,称为 ANSI 编码。在简体中文系统下,ANSI 编码代表 GB2312 编码,在日文操作系统下,ANSI 编码代表 JIS ... 阅读全文
posted @ 2014-08-11 14:14 LAOS 阅读(1220) 评论(0) 推荐(0)
摘要:-(void) UDP_SendFile:(NSString *) filename tag:(NSInteger) msgtag;{ NSString * filepath=[NSTemporaryDirectory() stringByAppendingString:filename]; N... 阅读全文
posted @ 2014-08-11 11:19 LAOS 阅读(462) 评论(0) 推荐(0)