首页 > 2015年07月20日 > 全部分享
十五天精通WCF——第七天 Close和Abort到底该怎么用才对得起观众
原文:十五天精通WCF——第七天 Close和Abort到底该怎么用才对得起观众 一:文起缘由 写这一篇的目的源自于最近看同事在写wcf的时候,用特别感觉繁琐而且云里雾里的嵌套try catch来防止client抛出异常,特别感觉奇怪,就比如下面的代码。 1 public void StartNor...
分类:其他   时间:2015-07-20 10:38:14    收藏:0  评论:0  赞:0  阅读:101
MySQL(1):启动MySQL服务,客户端连接服务
1.安装完毕mysql之后,在windows中找到服务,启动MySQL服务(服务端)(mysqld.exe)2.接下来启动客户端(mysql.exe)这里参数中:-hlocalhost 表示主机名(绑定主机IP)-P3306表示端口号-uroot表示用户身份和权限-p密码
分类:数据库技术   时间:2015-07-20 10:38:04    收藏:0  评论:0  赞:0  阅读:300
C#获取文件夹下面的所有文件
/// /// 获取文件夹下所有文件信息 /// /// public static List FindFolderName() { DirectoryInfo theFolder = new Dir...
分类:Windows开发   时间:2015-07-20 10:37:54    收藏:0  评论:0  赞:0  阅读:271
python学习之成员信息增删改查
主要实现了成员信息的增加,修改,查询,和删除功能,写着玩玩,在写的过程中,遇到的问题,旧新成员信息数据的合并,手机号和邮箱的验证,#!/usr/bin/env python# coding=utf8#author:shantuwqk@163.comimport os, sys, time,jsoni...
分类:编程语言   时间:2015-07-20 10:37:34    收藏:0  评论:0  赞:0  阅读:178
16 SQL Tuning Overview
16.1 Introduction to SQL Tuning Identifying high load or top SQL statements that are responsible for a large share of the application workload and ...
分类:数据库技术   时间:2015-07-20 10:37:24    收藏:0  评论:0  赞:0  阅读:186
LeeCode-Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他   时间:2015-07-20 10:37:14    收藏:0  评论:0  赞:0  阅读:194
Python命令行参数
Python命令行参数:-d 在解析时显示调试信息-O 生成优化代码 ( .pyo 文件 )-S 启动时不引入查找Python路径的位置-v 输出Python版本号-X 从 1.6版本之后基于内建的异常(仅仅用于字符串)已过时。-c cmd 执行 Pytho...
分类:编程语言   时间:2015-07-20 10:36:54    收藏:0  评论:0  赞:0  阅读:242
LeeCode-Happy Number
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:移动平台   时间:2015-07-20 10:36:44    收藏:0  评论:0  赞:0  阅读:183
换服务器须知
upload_max_filesize :300Moutput_buffering onvi /etc/ssh/sshd_config/etc/init.d/sshd restart基础配置命令信息有:'./configure' '--disable-fileinfo' '--enable-bcma...
分类:其他   时间:2015-07-20 10:36:34    收藏:0  评论:0  赞:0  阅读:135
.net 枚举(Enum)使用总结
在 实际问题中,有些变量的取值被限定在一个有限的范围内。例如,一个星期内只有七天,一年只有十二个月,性别只有男跟女等等。如果把这些量说明为整型、字符 型或其它类型显然是不妥当的。为此,C#提供了一种称为“枚举”的类型。在“枚举”类型的定义中列举出所有可能的取值,被说明为该“枚举”类型的变量取值 不能...
分类:编程语言   时间:2015-07-20 10:36:14    收藏:0  评论:0  赞:0  阅读:278
自适应开发
最近准备针对手机做开发,遇到页面显示特别小,所以搞了这么一篇文章!其实主要就是改掉HTML页面声明:在网页中加入以下代码,就可以正常显示了:代码如下: 解释:width - viewport的宽度height - viewport的高度initial-scale - 初始的缩放比例minimum.....
分类:其他   时间:2015-07-20 10:36:04    收藏:0  评论:0  赞:0  阅读:153
MySQL+Keepalived实现双机HA
host1与host3互为主从,即host1为host3的主机,同时也为host3的从机host1 192.168.203.131host2 192.168.203.132host3 192.168.203.1331.安装keepalivedwww.keepalived.org2.注意先清空防火墙i...
分类:数据库技术   时间:2015-07-20 10:35:54    收藏:0  评论:0  赞:0  阅读:354
Python中文编码
Python 在输出中文时如果未指定编码,在执行过程会出现报错:SyntaxError: Non-ASCII character '\xe4' in file test.py on line 2, but no encoding declared; see http://www.python.org...
分类:编程语言   时间:2015-07-20 10:35:34    收藏:0  评论:0  赞:0  阅读:174
LeeCode-Rotate Array
Rotate an array ofnelements to the right byksteps.For example, withn= 7 andk= 3, the array[1,2,3,4,5,6,7]is rotated to[5,6,7,1,2,3,4].Note:Try to come...
分类:其他   时间:2015-07-20 10:35:24    收藏:0  评论:0  赞:0  阅读:182
hdu Farm Irrigation
这题第一感觉是用搜索做,暴力就可以解决,这里将水管转换成一个个3*3的矩阵,然后搜素就可以了。写完之后确实一遍过掉了,31ms。附上代码:#include"iostream"#include"stdio.h"#include"algorithm"#include"cmath"#include"que...
分类:其他   时间:2015-07-20 10:35:14    收藏:0  评论:0  赞:0  阅读:172
LeeCode-Power of Two
Given an integer, write a function to determine if it is a power of two. 1 bool isPowerOfTwo(int n) 2 { 3 if(n1)10 {11 if(n%2==0)12 ...
分类:其他   时间:2015-07-20 10:35:04    收藏:0  评论:0  赞:0  阅读:128
十五天精通WCF——第五天 你需要了解的三个小技巧
原文:十五天精通WCF——第五天 你需要了解的三个小技巧 一: 服务是端点的集合 当你在开发wcf的时候,你或许已经注意到了一个service可以公布多个endpoint,确实是这样,在wcf中有一句很经典的话,叫做“服务是端点的集合",就 比如说一个普普通通的服务,它就公布了一个服务端点,一个元数...
分类:其他   时间:2015-07-20 10:34:54    收藏:0  评论:0  赞:0  阅读:166
LeeCode-Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:其他   时间:2015-07-20 10:34:44    收藏:0  评论:0  赞:0  阅读:112
win7 下adb server is out of date. killing... 连接手机问题已解决 {转}
近来做手机网站开发,在手机上做测试,连接手机老是遇到下面问题,研究了好久终于解决,现拿出来分享:adbserverisoutofdate.killing...CreateProcessfailure,error2*failedtostartdaemon*error:protocolfault(nos...
分类:移动平台   时间:2015-07-20 10:34:24    收藏:0  评论:0  赞:0  阅读:344
word多级编号,如何让第一级为大写“一”,其他级别均为小写1.
自定义里面设置了第一级为大写,2级、3级首字跟着变为大写,是因为2、3级没有勾选“正规形式编号”,如图:
分类:其他   时间:2015-07-20 10:34:14    收藏:0  评论:0  赞:1  阅读:2562
2169条   上一页 1 ... 91 92 93 94 95 ... 109 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!