上一页 1 2 3 4 5 6 7 8 ··· 19 下一页
摘要: 【提问】 How is source port for HTTP determined? Is there ever collision in NAT? I know that when a HTTP request is made, packets are sent from a seemingly-random high-numbered port (e.g. 4575) ... 阅读全文
posted @ 2018-01-30 14:15 今夜太冷 阅读(2660) 评论(0) 推荐(0) 编辑
摘要: // Fill out a literal array of collections you want to duplicate the records in. // Iterate over each collection using the forEach method on the array. // For each collection get (find) all the reco... 阅读全文
posted @ 2018-01-26 10:57 今夜太冷 阅读(192) 评论(0) 推荐(0) 编辑
摘要: db.createUser( { user: "user", pwd: "pass", roles: [ "root" ] }); use database;db.createUser( { user: "user", pwd: "pass", roles: [ { role: "readWrite", db: "database" }... 阅读全文
posted @ 2018-01-25 16:43 今夜太冷 阅读(193) 评论(0) 推荐(0) 编辑
摘要: mongodb最大连接数是20000。 所以业界流传一段话,千万级以下的用mysql、千万级以上的用mongodb,亿级以上的用hadoop。 查看mongodb最大连接数 mongodb/bin/mongo >db.serviceStatus().connections; current数值+available数值就是当前mongodb最大连接数 修改mongodb最大连接数 在... 阅读全文
posted @ 2018-01-25 16:08 今夜太冷 阅读(6426) 评论(0) 推荐(0) 编辑
摘要: String to BsonDocument string json = "{ 'foo' : 'bar' }"; MongoDB.Bson.BsonDocument document = MongoDB.Bson.Serialization.BsonSerializer.Deserialize(json); BsonDocument to json string. BsonDocume... 阅读全文
posted @ 2018-01-24 17:06 今夜太冷 阅读(12982) 评论(0) 推荐(3) 编辑
摘要: 首先是数据的录入,为了分析我们服务器集群的性能,需要准备大量的用户数据,幸运的是mtools提供了mgenerate方法供我们使用。他可以根据一个数据模版向 MongoDB 中插入任意条 json 数据。下面的 json 结构是我们在例子中需要使用的数据模版: { "user": { "name": { "first": {"$choose": ["Liam", "Aubre... 阅读全文
posted @ 2018-01-24 15:34 今夜太冷 阅读(477) 评论(0) 推荐(0) 编辑
摘要: Database Sharding is considered to be the horizontal partitioning of a database or the search engine where each partition is called as a Shard. This is a process of compressing the data collections by... 阅读全文
posted @ 2018-01-23 13:40 今夜太冷 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 【问题】 I have a header file like so: #pragma once #include "gamestate.h" #include "ExitListener.h" class InitialGameState : public GameState { public: InitialGameState(Ogre::Camera *cam, Ogre::Sce... 阅读全文
posted @ 2018-01-21 19:20 今夜太冷 阅读(904) 评论(0) 推荐(0) 编辑
摘要: Log4net PatternLayout 参数 来自: https://logging.apache.org/log4net/log4net-1.2.13/release/sdk/log4net.Layout.PatternLayout.html A flexible layout configurable with pattern string. For a list of all me... 阅读全文
posted @ 2018-01-18 17:33 今夜太冷 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: MongoDB server side Javascript的介绍如下: https://docs.mongodb.com/v3.0/core/server-side-javascript/#running-js-files-via-a-mongo-shell-instance-on-the-server 根据文档描述,可以直接传入一个Javascript对象来做查询,比如: db.adminC... 阅读全文
posted @ 2018-01-18 13:41 今夜太冷 阅读(235) 评论(0) 推荐(0) 编辑
摘要: It's not readily apparent how to install a Windows Service multiple times on a single machine. At first glance, it seems like it's not supported by th 阅读全文
posted @ 2018-01-17 10:19 今夜太冷 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 自定义了一个控件 class CHtmlEditCtrlEx : public CHtmlEditCtrl 想在这个控件接收到Ctrl+V键盘消息的时候,向该控件所在的窗口发送一个自定义消息。具体实现方法如下: 在该控件的PreTranslateMessage方法中定义自定义消息,然后将该消息发送给父窗口 BOOL CHtmlEditCtrlEx::PreTranslateMessage(MSG... 阅读全文
posted @ 2018-01-14 09:13 今夜太冷 阅读(1555) 评论(0) 推荐(0) 编辑
摘要: Node.js中针对中文的查找和替换无效的解决方法。 //tags的值: tag,测试,帖子 var pos1 = tags.indexOf("测"); //这里返回-1 tags = tags.replace(/,/g, ","); //这里的全角逗号没有被替换成半角逗号 怎么回事那? 【解决方法】... 阅读全文
posted @ 2018-01-09 14:43 今夜太冷 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Once a texture has been loaded as a compressed texture, it can be used for texturing in exactly the same way as an uncompressed texture. The details of the ETC2/EAC formats are beyond our scope here... 阅读全文
posted @ 2018-01-08 14:39 今夜太冷 阅读(444) 评论(0) 推荐(0) 编辑
摘要: In IIS 7.5, which is installed on Windows 2008 R2 servers, only SSL 3.0 and TLS 1.0 are enabled for HTTPS encryption by default. To enable TLS 1.1 and TLS 1.2 and disable the insecure SSL 3.0 protocol... 阅读全文
posted @ 2018-01-03 17:30 今夜太冷 阅读(416) 评论(0) 推荐(0) 编辑
摘要: [问题] Our project is running on Windows CE 6.0 and is written in C++ . We have some problems with the code , and we are unable to debug . We also found out that if in our application we create threads... 阅读全文
posted @ 2017-12-31 19:25 今夜太冷 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 通常在自己的APP里的密码框,验证码框需要屏蔽复制,粘贴,怎么办呢? 有三种方法: 1 hook 此方法是最完全的,但由于hook是全局的,容易影响到其它代码。 2 子类化文本框, 重写OnPaste函数,拦截WM_Paste消息 3 在PreTranslateMessage里判断键盘扫描码和虚拟码 阅读全文
posted @ 2017-12-31 18:29 今夜太冷 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 如何获取assetManager engine->app->activity->assetManager Asset文件应该放在哪个目录? 如何生成tga文件: 可以用这个网站:https://image.online-convert.com/convert-to-tga 另外应该还有其他很多类似的工具,可以搜一下。 阅读全文
posted @ 2017-12-20 22:58 今夜太冷 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 从别人那里以zip的形式接受了一个solution, 然后在接收目录解压缩,然后剪切到其他的目录。此时报错,说找不到项目文件,看Visual studio 寻找的详细路径,发现它还是到解压缩的那个目录去找文件, 找遍整个目录的文件内容,也没有发现哪里引用了解压缩的那个目录,怎么回事那? 【解决方法】 把现在的文件删掉,把压缩包拷贝到要放置的目录,然后在这个目录下面解压缩,就不会出现这个问题了。 ... 阅读全文
posted @ 2017-12-20 16:40 今夜太冷 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 在vs的proprocessor definition中定义了ANDRIOD, 但是执行下面的代码的时候,总是说ANDROID is not defined. #ifdef ANDROID LOGW("engine_init_display: ANDROID is defined."); #else ... 阅读全文
posted @ 2017-12-19 20:05 今夜太冷 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 【问题】 I am developing a small application in MFC... there is a little problem..hope you guys would help me regarding this...Here we go..the problem is...I have 6 little edit control(Text box) in which ... 阅读全文
posted @ 2017-12-17 18:54 今夜太冷 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 按照孙鑫的教程添加自定义消息时,如果是VC6.0开发环境,也许没有什么 问题,但在VS2008中编译会报错的 无法从"void (__thiscall CtestDlg::* )(void)"转换为"LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)" 这是因为VS2008中消息返回值不允许为void,且消息参数不能为空,消息映射三处分别如下 #defin... 阅读全文
posted @ 2017-12-17 18:38 今夜太冷 阅读(204) 评论(0) 推荐(0) 编辑
摘要: In this version of our HTML Editor, we'll create a floating source view/edit window and we'll implement a system that will give us access to the most 阅读全文
posted @ 2017-12-16 19:17 今夜太冷 阅读(594) 评论(0) 推荐(0) 编辑
摘要: In a previous article, I described how to create an HTML editor using the MFC CHtmlEditCtrl class in a dialog box. It could be used for creating "rich 阅读全文
posted @ 2017-12-16 19:01 今夜太冷 阅读(624) 评论(0) 推荐(0) 编辑
摘要: I needed a lightweight HTML editor to generate "rich text" emails, so I decided to explore the features and capabilities of the MFC CHtmlEditCtrl cont 阅读全文
posted @ 2017-12-16 16:57 今夜太冷 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 解决方法: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(webURL); //声明一个HttpWebRequest请求 request.Timeout = 30000; //设置连接超时时间 r... 阅读全文
posted @ 2017-12-14 16:19 今夜太冷 阅读(5806) 评论(0) 推荐(0) 编辑
摘要: I have a client server application written in C# .Net 2.0. I have had the client/server response/request code running for 4 years(!). Recently, on a specific machine, the client can not connect to s... 阅读全文
posted @ 2017-12-14 16:02 今夜太冷 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 所有的图片后缀名 来自:https://en.wikipedia.org/wiki/Image_file_formats#Compound_formats_(see_also_Metafile) 阅读全文
posted @ 2017-12-11 16:10 今夜太冷 阅读(1940) 评论(0) 推荐(0) 编辑
摘要: system函数的应用一例 阅读全文
posted @ 2017-12-10 19:26 今夜太冷 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 引用了OpenGL ES自带的esUtil.h, 编译的时候报错: typedef struct { GLfloat m[4][4]; } ESMatrix; expected member name or ";" after declaration specifiers 怎么回事那? 【分析】 ... 阅读全文
posted @ 2017-12-08 23:09 今夜太冷 阅读(525) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 19 下一页