服务端1.新建空白解决方案,然后再空白解决方案中新建:WCF服务应用程序。建完后如图:2.删掉自动生成的IService1.cs和Service.svc并添加WCF服务文件StudentService.svc,VS会自动生成IStudentService.cs 在添加一个Student类,如图:St...
分类:
其他好文 时间:
2015-04-10 19:57:07
阅读次数:
129
SmsManager - Windows Phone手机PC端短信管理工具检查版本更新时将抓取此页面中两个特殊字符串之间的文字内容(共3处),并替换\n为换行,html转义字符为原字符。wpsmsmanager0-start【1.2】end-wpsmsmanager0wpsmsmanager1-st...
分类:
移动开发 时间:
2015-04-10 17:46:23
阅读次数:
178
网页中获取滚动条卷去部分的高度,可以通过 document.body.scrollTop 来获取,比如使div跟着滚动条滚动:window.onscroll = function (){ var div = document.getElementById("div"); div.st...
分类:
其他好文 时间:
2015-04-10 17:17:52
阅读次数:
103
1. 字符设备结构体 内核中所有已分配的字符设备编号都记录在一个名为 chrdevs 散列表里。该散列表中的每一个元素是一个 char_device_struct 结构,它的定义如下: static struct char_device_struct { struct char_device_st....
分类:
其他好文 时间:
2015-04-09 21:49:34
阅读次数:
182
struct proc_dir_entry {unsigned int low_ino;unsigned short namelen;const char *name;mode_t mode;nlink_t nlink;uid_t uid;gid_t gid;loff_t size;const st...
分类:
其他好文 时间:
2015-04-09 21:32:59
阅读次数:
142
下面的代码用于判断一个串中的括号是否匹配所谓匹配是指不同类型的括号必须左右呼应,可以相互包含,但不能交叉例如: ..(..[..]..).. 是允许的; ..(…[…)….]…. 是禁止的对于 main 方法中的测试用例,应该输出: false true false falsepublic class 括号问题 {
public static boolean isGoodBracket(St...
分类:
编程语言 时间:
2015-04-09 15:34:03
阅读次数:
164
struct my_msg_st
{
int src;
int des;
int cmd;
int param;
char data[BUF_LEN];
int ack;
int arg;
int broadcast;
};
static void receive(int native_name, int dest...
分类:
其他好文 时间:
2015-04-09 12:03:06
阅读次数:
175
转载请注明本文出自changel的博客(http://www.cnblogs.com/caichongyang/p/4399790.html),请尊重他人的辛勤劳动成果,谢谢!Volley框架特点:适用于频繁请求而每次请求数据量不会很大;在请求的基础上做了磁盘缓存;防止多次相同请求浪费资源;提供St...
分类:
移动开发 时间:
2015-04-08 21:19:11
阅读次数:
310
1.今天就来模仿一下这个小闹钟的2.思路:先画闹钟的圆盘 ,在通过Path来画指针两个耳朵其实就是用两个圆被一个大圆截取后留下的,并旋转一定度数后生成3.直接上代码: 1 public class AlarmClockView extends View { 2 3 private st...
分类:
移动开发 时间:
2015-04-08 21:11:48
阅读次数:
170
1、现状:服务器A从库;服务器B主库;关系:主从同步2、现添加一台服务器C为主库,同步服务器A---》同步服务器B操作1、停止/etc/init.d/xa-anaxxx-tomcatstop主从同步分析停止;2、停止/etc/init.d/xa-colxxx-tomcatstop数据插入主库停止;3、MQ查看正常;4、停止服务器B同步st..
分类:
其他好文 时间:
2015-04-08 20:01:03
阅读次数:
204