03 2012 档案

摘要:http://www.cnblogs.com/kaixun001/archive/2011/10/27/2226589.html环境: 2台电脑,操作系统均为windows server 2003,单网卡。2台电脑经路由器连接,路由器连猫拨号上网。路由地址:192.168.0.1,在路由器设置80端口映射到192.168.0.10 电脑A手动设置ip 192.168.0.100,电脑B手动设置ip 192.168.0.101 每台电脑上建一测试网站。网站的ip地址绑定为192.168.0.10(与后面设置的集群ip相同) A电脑上网站放上一个内容为192.168.0.100 的... 阅读全文
posted @ 2012-03-31 15:25 Rhythmk 阅读(251) 评论(0) 推荐(0)
摘要:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Tmpl</title><meta name="keywords" content="Tmpl" /><scr 阅读全文
posted @ 2012-03-25 22:28 Rhythmk 阅读(3680) 评论(1) 推荐(0)
摘要:环境: 2台电脑,操作系统均为windows server 2003,单网卡。2台电脑经路由器连接,路由器连猫拨号上网。路由地址:192.168.0.1,在路由器设置80端口映射到192.168.0.10 电脑A手动设置ip 192.168.0.100,电脑B手动设置ip 192.168.0.101 每台电脑上建一测试网站。网站的ip地址绑定为192.168.0.10(与后面设置的集群ip相同) A电脑上网站放上一个内容为192.168.0.100 的index.html B电脑上网站放上一个内容为192.168.0.101 的index.html第一步,先设置电脑A确认后... 阅读全文
posted @ 2012-03-25 20:49 Rhythmk 阅读(212) 评论(0) 推荐(0)
摘要:MySQL 集群http://database.51cto.com/art/201008/218326.htmhttp://2878502.blog.51cto.com/2868502/523669使用Sqlserver事务发布实现数据同步http://www.cnblogs.com/xumingxiang/archive/2012/02/25/2367870.html 阅读全文
posted @ 2012-03-22 12:12 Rhythmk 阅读(136) 评论(0) 推荐(0)
摘要:public static string ToSafeHtmlString(string content) { if (content == null) { return string.Empty; } if (string.IsNullOrWhiteSpace(content)) { return content; } content = Regex.Replace... 阅读全文
posted @ 2012-03-22 09:19 Rhythmk 阅读(520) 评论(0) 推荐(0)
摘要:<script type="text/javascript"> function JsonToStr(o) { var r = []; if (typeof o == "string" || o == null) { return o; } if (typeof o == "object") { if (!o.sort) { r[0] = "{" fo... 阅读全文
posted @ 2012-03-19 20:10 Rhythmk 阅读(1152) 评论(1) 推荐(0)
摘要:1.返回指定字段生成实体 List<Product> q = db.Product.Where(a => a.ProductName == "a ") .Select(a => new { ProductName = a.ProductName, AddTime = a.AddTime }).ToList() // ToList() 将数据读取到内存中 然后转化成SQL .Select(a => new Product() { ProductName = a.ProductName, AddT... 阅读全文
posted @ 2012-03-15 23:13 Rhythmk 阅读(229) 评论(0) 推荐(0)
摘要:cmd启动mongodbD:\mongodb\bin\mongod.exe --bind_ip 127.0.0.1 --dbpath D:\mongodb\data --port 27017 --directoryperdb --logpath D:\mongodb\logs\db.txt --logappend上面的cmd不要关,新开个cmd进入mongodbD:\mongodb\bin\mongo.exe为了避免每次都启动mongo,可以将mongo加入windows服务D:\mongodb\bin\mongod.exe --bind_ip 127.0.0.1 --dbpath D:\mo 阅读全文
posted @ 2012-03-14 22:47 Rhythmk 阅读(481) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using Autofac.Builder;using Autofac.Configuration;using Autofac;/// by rhythmknamespace AutofacApp{ class Program { static void Main(string[] args) { var builder = new ContainerBuilder()... 阅读全文
posted @ 2012-03-13 21:15 Rhythmk 阅读(796) 评论(1) 推荐(0)

Rhythmk 个人笔记