Smith Numbers
Background
While skimming his phone directory in 1982, Albert Wilansky, a mathematician of Lehigh University , noticed that the telephone number of his brother-in-law H. Smith had ...
分类:
其他好文 时间:
2014-07-18 13:28:06
阅读次数:
234
实验环境:安装:yuminstallcorosyncpacemaker-y复制配置文件cpcorosync.conf.examplecorosync.confvimcorosync.conf编辑配置文件:compatibility:whitetank是否兼容0.8版本的corosynctotem{定义集群之间心跳信息传递层version:2----版本号secauth:on---是否启用安全认证thread..
分类:
其他好文 时间:
2014-07-18 13:18:51
阅读次数:
353
用Eclispe进行Debug时一直被一个问题所困扰:Source not found.
问题产生的原因是调试进入了一个没有源码的jar包里。
简短说明:
Edit Source Lookup Path… 可以解决Debug过程中找不到源码的问题,PS,需要重启服务。
Configure Build Path 中可以给jarattach上源码,这个管的是阅读代码时可以看到jar包里的...
分类:
系统相关 时间:
2014-07-18 12:23:39
阅读次数:
337
Dropping BallsA number of K balls are dropped one by one from the root of a fully binary tree structure FBT. Each time the ball being dropped first v....
分类:
其他好文 时间:
2014-07-18 12:14:24
阅读次数:
202
HTTP 请求报文 l HTTP Command: //方法字段,说明其使用的是GET 方法 l URI: / //URL 字段,发送请求至保存该网站的服务器。 l HTTP Version: //http 协议版本字段,用是的http/1.1 版本 l Accept: //指示可被接受的请求回应的...
分类:
其他好文 时间:
2014-07-18 11:37:57
阅读次数:
287
可以根据城市+车牌号+发动机号查询违章信息列表;
违章实体类
package org.wx.xhelper.model;
/**
* 违章实体类
* @author wangxw
* @version 1.0
* @date Jul 11, 2014 3:25:34 PM
*/
public class ViolRegu {
// 违章时间
privat...
分类:
Windows程序 时间:
2014-07-18 11:33:47
阅读次数:
1051
这一讲我们集中讲解类和他的一些特性.首先我们从自定义一个有理数类来开始.
在C语言中有一个关键字: struct ,用来创建一个结构体类型.但是在C++中这个关键的含义就不仅仅如此了,下面我们可以看下示例:
/// Represent a rational number.
struct rational
{
int numerator; ///< numerator gets th...
分类:
编程语言 时间:
2014-07-18 11:31:36
阅读次数:
422
根据手机号码查询用户的卡类型、运营商、归属地、区域等信息。
手机归属地实体类
package org.wx.xhelper.model;
/**
* 手机归属地
* @author wangxw
* @version 1.0
* @date Jul 9, 2014 4:03:04 PM
*/
public class PhoneBelong {
// 电话号...
分类:
移动开发 时间:
2014-07-18 11:29:56
阅读次数:
460
Given a binary tree containing digits from 0-9 only,
each root-to-leaf path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents
the number 123.
Find the to...
分类:
其他好文 时间:
2014-07-18 11:13:57
阅读次数:
204
安卓安装提示:Android SDK requires Android Developer Toolkit version 21.1.0 or above. (错误解决方法)
主要是由于版本不对,sdk和adt的版本。
解决思路:
打开Eclipse--帮助(help)
-- Install Now Software -- Add按钮
Name:随便输入
下面的文本框输入...
分类:
移动开发 时间:
2014-07-18 11:00:04
阅读次数:
196