- 浏览: 265012 次
- 性别:
- 来自: 上海
最新评论
文章列表
mongodb 事故1
- 博客分类:
- MongoDB
在我的64位windows机器上跑了两个Mongodb进程, 发现最后两者会竞争系统内存,其中之一会因为内存不够用而被操作系统杀掉进程。
现在找到的原因可能是:windows下journal模式下mongodb存在内存泄露造成的。
One blog of 10 gen for monodb:
I'm a software engineer for 10gen in NYC. I work on the MongoDB core server, the PHP driver, the Perl driver, and do a zillion other random MongoDB projects
http://www.snailinaturtleneck.com/blog/tag/mongodb/page/2/
Google+ 正式开放
- 博客分类:
- IT生活
转自: http://www.cnbeta.com/articles/173469.htm
2月20日晚间,Google+中国网站已经正式开放,有消息称Google+已经在中国解禁,但目前Google官方并没有回应此事。Google+是Google在去年6月份推出的社交服务,旨在对抗Facebook和其他热门社交网站的侵袭,然而之前我国用户却一直无缘体验到该服务。
Google+核心网页用来展示朋友和联系人分享的评论、照片、圈子、游戏等信息,经常使用社交网站的用户应该不陌生。顶部工具栏囊括大部分 Google服务:搜索、Gmail、地图,用户可以通过工具栏访问私人数据,并 ...
require 'mongo'
require "fileutils"
@conn = Mongo::Connection.new("localhost", 30000)
@conn.database_names.each { |name| puts name }
@db = @conn['sample_db']
@coll = @db['test']
doc = {"name" => "MongoDB", "type" => "database&qu ...
帮助文档:
1. http://api.mongodb.org/ruby/1.5.2/
2. https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
1.ruby 安装程序:
官网下载地址被墙了,可以google搜索RubyInstaller安装
2.Development Kit的下载地址:
https://github.com/oneclick/rubyinstaller/downloads/
3.mongodb 的ruby 的驱动下载地址:
https://github.com/mongodb/mongo-ruby ...
今天使用svn上传代码,速度超级慢,老是报错:
错误表述:
Could not send request body: An existing connection was forcibly closed by the remote host.
错误界面如图所示:
后来把卡巴斯基关了,问题解决了。
把Word转为简洁的html的若干种方法
- 博客分类:
- 网站
转自: http://article.pchome.net/content-425187.html
word可以直接另存为 htm,但即使是 另存为 html 也会有大量的废代码。以前我一般用 dreamweaver 的 clean up html 来处理,先处理 word 特有标签,然后删除一些 font,b,span 等。进一步,在 editplus 里面用正则进行处理,最后得到我想要的干净的html 代码。当然最完美的办法就是拷贝文字出来,自己用文本编辑器书写htm标签,:)
今天又看到lifehacker这几种word 2 clean htm方法:
1.使用这个HTML Tidy ...
个人学习计划--任重道远
- 博客分类:
- 学习
开始上班,制定下简要学习计划:
个人学习计划:
1. Windows 核心编程
2. TCP/IP 详解卷1
3. windows 网络编程
4. LUA
5. 重构
6. 设计模式
7. unix 环境高级编程
vs2010 无法新建工程解决方法
- 博客分类:
- 工具
利用vs2010安装程序修复下就可以解决。
http://social.msdn.microsoft.com/Forums/zh-CN/visualstudio2010zhchs/thread/58630ca2-8cb1-484d-9413-d8ce304c4c84/
Visual Studio - error LNK2005 in debug mode:
Using this advice I was able to complete the build in two ways:
In Release mode
In Debug mode using /FORCE:MULTIPLE as an additional linker command line option
一般debug版本的lib使用debug版本的,release版本的使用release版本的静态链接库
编译了一个release版本的静态库,但是用到另一个程序debug版本出现以下错误,在release版本下编译正确,(疑问,有些静态库既可以在用到realse版本下,又可以用到debug版本)
error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2'
利用mongodb c++ driver来编译 静态链接库,报错:
version.obj : error LNK2001: unresolved external symbol "void __cdecl boost::thr
ow_exception(class std::exception const &)" (?throw_exception@boost@@YAXABVexcep
tion@std@@@Z)
等
解决方法是修改SConstruct:
添加 env.AppendUnique(CXXFLAGS=Split("/EHsc"));
...
Your PHP installation appears to be missing the MySQL extension which is require
- 博客分类:
- php,wordpress
os: win7
php:
mysql:
apache:
在本地计算机上安装workdpress,环境都齐全,但是老是跳“Your PHP installation appears to be missing the MySQL extension which is required by WordPress”, 环境配置是按照
http://www.leapsoul.cn/?p=695
经过反复查找得出解决方案:
将 php文件夹和ext文件夹路径保存到windows环境变量path中,重启计算机后,问题解决,纠结的娃儿。。。
根据官方文档改写:
http://www.boost.org/doc/libs/1_45_0/libs/serialization/doc/tutorial.html#arrays
http://www.fuzhijie.me/?p=62
#include "stdafx.h"
#include <windows.h>
#include <process.h>
#include <iostream>
#include <exception>
#include <assert.h>
#inclu ...
转: http://hi.baidu.com/ewook/blog/item/add93b6da0d5e2e1431694e5.html
序列化是将对象状态信息转换为可存储或传输的过程,序列化时,对象会将当前状态写入到临时或持久性的存储区。以后,可以通过从存储区中读取或反序列化对象的状态,重新创建该对象。
对象序列化反序列化通常用于:
1. 将对象存储于硬盘上
2. 在网络上传送对象的字节序列
更多介绍
常见的C++序列化方案
==Boost.Serialization==
介绍:Boost.Serialization可以创建或重建程序中的等效结构,并保存为二进制数据、文本数 ...