2014年3月22日
摘要:
public static string foldUrl = FM.Core.Utility.ConfigHelper.Instance.GetAppSetting("WriteLogFileUrl"); public static string fileUrl = DateTime....
阅读全文
posted @ 2014-03-22 16:07
朝着
阅读(238)
推荐(0)
2014年3月19日
posted @ 2014-03-19 18:10
朝着
阅读(527)
推荐(0)
2014年3月16日
摘要:
添加项目ConsoleWCFTest添加WCFService、WCFServiceProxy配置App.config 调用using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using WCFService.Models;using WCFServiceProxy;namespace ConsoleWCFTest{ class Prog...
阅读全文
posted @ 2014-03-16 18:30
朝着
阅读(202)
推荐(0)
摘要:
创建类库WCFServiceProxy添加System.ServiceModel、WCFService(见上篇文章)引用创建类:BookServiceClientusing System;using System.Collections.Generic;using System.Linq;using...
阅读全文
posted @ 2014-03-16 18:27
朝着
阅读(412)
推荐(0)
2014年3月13日
摘要:
WCF之Windows宿主(可安装成服务自动并启动)创建解决方案WCFServiceDemo创建WCF服务库(类库或WCF服务库)WCFService ,添加引用System.ServiceModel、System.Runtime.Serialization ...
阅读全文
posted @ 2014-03-13 23:59
朝着
阅读(2774)
推荐(0)
2014年3月1日
摘要:
戴上耳机,全世界都是你的这些歌, 请戴上耳机, 调大音量, 一个人听 ,全世界 都是你的!!!!!这些歌很温暖,没有金属味,适合有阳光的午后,很悠闲。。。 【Anaesthesia】Maximilian Hecker强烈推荐 【Summer Days In Bloom】Maximilian Hecker力推! 【end of May】Keren Ann 【gotta have you】The Weepies调调很特别,我用它做过背景音乐。 【i remember】郭采洁 我喜欢睡觉前听这首歌 【Let's start from here】王若琳 【Never Grow Old】The
阅读全文
posted @ 2014-03-01 16:31
朝着
阅读(540)
推荐(0)
2014年2月27日
摘要:
本节就聊聊采用Nginx负载均衡之后碰到的问题:Session问题文件上传下载通常解决服务器负载问题,都会通过多服务器分载来解决。常见的解决方案有:网站入口通过分站链接负载(天空软件站,华军软件园等)DNS轮询F5物理设备Nginx等轻量级架构那我们看看Nginx是如何实现负载均衡的,Nginx的upstream目前支持以下几种方式的分配 1、轮询(默认) 每个请求按时间顺序逐一分配到不同的后端服务器,如果后端服务器down掉,能自动剔除。 2、weight 指定轮询几率,weight和访问比率成正比,用于后端服务器性能不均的情况。 2、ip_hash 每个请求按访问ip的hash结果分配,这
阅读全文
posted @ 2014-02-27 14:52
朝着
阅读(5325)
推荐(1)
2014年2月12日
posted @ 2014-02-12 09:57
朝着
阅读(465)
推荐(0)
2014年2月11日
摘要:
代码1:引用:System.ServiceModel.Web程序集(系统内置)public static T JSONDecode(string json){ JsonQueryStringConverter converter = new JsonQueryStringConverter()...
阅读全文
posted @ 2014-02-11 11:16
朝着
阅读(707)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Reflection;namespace Beehive.CloudReader.Utility{ /// /// 反射工厂 /// public abs...
阅读全文
posted @ 2014-02-11 10:46
朝着
阅读(155)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Beehive.CloudReader.Utility{ ...
阅读全文
posted @ 2014-02-11 09:28
朝着
阅读(404)
推荐(0)
2014年2月10日
摘要:
/// /// 删除相册 /// /// /// public bool DeleAblumsById(long id) { int photo_Result = 0, ...
阅读全文
posted @ 2014-02-10 14:52
朝着
阅读(484)
推荐(0)
2014年1月22日
摘要:
一般我们在JS中添加事件,是这样子的obj.onclick=method这种绑定事件的方式,兼容主流浏览器,但如果一个元素上添加多次同一事件呢?obj.onclick=method1;obj.onclick=method2;obj.onclick=method3;如果这样写,那么只有最后绑定的事件,...
阅读全文
posted @ 2014-01-22 15:40
朝着
阅读(182)
推荐(0)
2014年1月10日
摘要:
if exists (select * from sysobjects where name='aa')drop proc aagocreate proc aaas create table #tb2 ( id int, uName varchar(10) );...
阅读全文
posted @ 2014-01-10 00:25
朝着
阅读(171)
推荐(0)
2013年12月24日
摘要:
/**Cookie帮助类*/var CK = { Set: function (name, value) { var days = 30; var exp = new Date(); exp.setTime(exp.getTime() + days *...
阅读全文
posted @ 2013-12-24 11:45
朝着
阅读(136)
推荐(0)
摘要:
点击调试程序的时候默认启动TFS内置的调试服务器http://localhost:51607/,在该处填写自己在IIS上配置的站点就能进入自己的站点调试http://mr.ciwong.com
阅读全文
posted @ 2013-12-24 11:44
朝着
阅读(190)
推荐(0)
2013年12月1日
摘要:
/**递归删除菜单**/if exists (select * from sysobjects where name='proc_menu_P_delete')drop proc proc_menu_P_deletegocreate proc proc_menu_P_delete(@id int)as declare @count int,@tmpid int,@err intselect @count=count(1) from tb_menu where pId=@id--通过父Id获得子集数据if(@count>0)--判断是否存在子集数据begin --根据父Id
阅读全文
posted @ 2013-12-01 01:21
朝着
阅读(430)
推荐(0)
2013年11月30日
摘要:
if exists (select 1 from sysobjects where id = object_id('tb_Menu') and type = 'U') drop table tb_Menugo/*==============================================================*//* Table: tb_Menu *//*========================...
阅读全文
posted @ 2013-11-30 01:10
朝着
阅读(613)
推荐(0)
2013年11月29日
摘要:
if exists (select 1 from sysobjects where id = object_id('tb1') and type = 'U') drop table tb1gocreate table tb1 ( Id int null, name varchar(50) null, pId int nul...
阅读全文
posted @ 2013-11-29 18:31
朝着
阅读(384)
推荐(0)
摘要:
if exists (select * from sysobjects where name='proc_menu_select')drop procedure proc_menu_selectgocreate proc proc_menu_select(@id int,@t int)as declare @i int declare @count int, @tmpid int create table #tb(id int,name varchar(50),pId int,level int,sort int) select @count=COUNT(1) fro...
阅读全文
posted @ 2013-11-29 18:16
朝着
阅读(334)
推荐(0)