2016年5月17日
摘要:
Linux-CentOS下redis安装 1.下载 [root@localhost test]# wget http://download.redis.io/releases/redis-2.8.17.tar.gz--2016-05-16 17:58:57-- http://download.red
阅读全文
posted @ 2016-05-17 09:12
JesseLivermore
阅读(154)
推荐(0)
2016年5月16日
摘要:
Linux-CentOS下Couchbase的安装 按照红色加粗字体步骤即可:1.下载[root@localhost test]# wget http://packages.couchbase.com/releases/2.0.0/couchbase-server-enterprise_x86_64
阅读全文
posted @ 2016-05-16 18:29
JesseLivermore
阅读(2679)
推荐(0)
摘要:
Linux:CentOS下mongodb安装和启动配置 1.下载安装包wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.9.tgz下载完成后解压缩压缩包tar zxf mongodb-linux-x86_64-2.6.9.tg
阅读全文
posted @ 2016-05-16 16:35
JesseLivermore
阅读(5678)
推荐(0)
摘要:
VMware虚拟机-无法连接网络 解决方案: 点击虚拟机软件菜单“编辑”然后选择“虚拟网络编辑器”,里面有一项“恢复默认设置”,然后确定。
阅读全文
posted @ 2016-05-16 14:57
JesseLivermore
阅读(276)
推荐(0)
2016年5月13日
摘要:
引用命名空间:using System.Text; 代码: string str = "中"; //根据汉字获取编码 //GB2312 byte[] GB2312Byte = Encoding.GetEncoding("GB2312").GetBytes(str); //UTF-8 byte[] U
阅读全文
posted @ 2016-05-13 13:30
JesseLivermore
阅读(1951)
推荐(0)
2016年5月12日
摘要:
<1> 序列化单个实体对象 (1)将本地文件中的数据反序列化成实体对象 (2)将实体对象序列化 .txt中json格式的数据为:{"Name":"张三","Age":20,"Address":"上海市徐汇区"} 第一步: 添加dll引用:Newtonsoft.Json.dll (网上下载一个) us
阅读全文
posted @ 2016-05-12 22:57
JesseLivermore
阅读(2580)
推荐(0)
摘要:
跨越AppDomain边界访问对象 将书中的代码(3处)将“MarshalByRefType”修改为“typeof(MarshalByRefType).FullName”,即可得到书中的输出结果: 将:MarshalByRefType mbrt = (MarshalByRefType)ad2.Cre
阅读全文
posted @ 2016-05-12 10:50
JesseLivermore
阅读(290)
推荐(0)
2016年5月11日
摘要:
当类库写好后,以Debug或Release生成后,将.txt文件拷贝到dll所在的目录下,这时配置(或读取).txt文件的路径可以设置为://获取和设置包括该应用程序的目录的名称string txtUrl = System.AppDomain.CurrentDomain.SetupInformati
阅读全文
posted @ 2016-05-11 10:47
JesseLivermore
阅读(482)
推荐(0)
2016年5月9日
摘要:
在一个页面中写入: FormsAuthentication.SetAuthCookie(username, true); 在另一个页面中写入: string name = Page.User.Identity.Name; 获取不到值的原因: 在web.config中加入: <authenticati
阅读全文
posted @ 2016-05-09 16:53
JesseLivermore
阅读(1077)
推荐(0)
2016年5月6日
摘要:
HTTP 错误 500.22 - Internal Server Error 检测到在集成的托管管道模式下不适用的 ASP.NET 设置。 处理方法:在项目属性中,将托管管道模式设置为“经典”。
阅读全文
posted @ 2016-05-06 10:24
JesseLivermore
阅读(1306)
推荐(0)