记忆力不行,做过好多东西,下次用的时候还会忘记,于是就记录一些,为了以后更快的入手:1.marker的点击事件中获取marker的信息
在函数中this就代表当前的markerthis.getPosition()就获取到了marker的位置,不能用e.point 这个是点击的位置。
分类:
其他好文 时间:
2014-05-26 15:14:03
阅读次数:
195
原题地址:https://oj.leetcode.com/problems/symmetric-tree/题意:判断二叉树是否为对称的。Given
a binary tree, check whether it is a mirror of itself (ie, symmetric around ...
分类:
编程语言 时间:
2014-05-26 10:18:52
阅读次数:
293
重置密码需要勾选一个授权在企业管理器中--》服务器设置——》勾选“运行对系统目录直接进行修改”勾选后就可以重置密码了。///////////////////详细:http://wenku.baidu.com/view/36e0f46658fafab068dc0203.html
分类:
数据库 时间:
2014-05-26 08:45:44
阅读次数:
236
在Eclipse里初次使用Maven,右键project->add
dependency, 发现search不管用,这时候需要按照以下步骤操作:Goto "Preferences ->
Maven"Check"Download repository index updates on start"an...
分类:
系统相关 时间:
2014-05-26 07:16:26
阅读次数:
390
FCM 算法用一个Job寻找cluster的中心点。在map的初始化节点,加载初始化(或上一轮迭代的结果)中心点。在map中计算point 和每一个簇的亲和度。在combiner计算同一个cluster的参数,该过程只能计算同一cluster的局部信息。在reduce中首先计算同一个cluster的全局参数,然后计算该cluster是否收敛,输出cluster。...
分类:
其他好文 时间:
2014-05-26 04:12:39
阅读次数:
302
Problem Description
In a 2_D plane, there is a point strictly in a regular polygon with N sides. If you are given the distances between it and N vertexes of the regular polygon, can you calculate t...
分类:
其他好文 时间:
2014-05-26 03:50:40
阅读次数:
252
Point.h
/*
* Point.h
*
* Created on: 2014年5月22日
* Author: John
*/
#include
using namespace std;
#ifndef POINT_H_
#define POINT_H_
class Point {
private:
int x;
int y;
...
分类:
编程语言 时间:
2014-05-26 03:19:07
阅读次数:
399
当大家想只给centos系统更新补丁的时候,往往会把其他一些无用的组件给更新下来,现在就给大家说下怎么只更新补丁而又不更新其他组件.1.安装yum插件即可:yum
install yum-security2.检查安全更新yum --security check-update3.只安装安全更新yum ...
分类:
其他好文 时间:
2014-05-24 13:01:02
阅读次数:
531
比如对于一个Server/Client程序,Client会每隔一定时间(比如TIME_OUT_CLIENT)会向Server发送“CheckConnect”信息,Server收到这个信息会调用回调函数__recv_check_connect()这个是否可以再__recv_check_connect(...
分类:
其他好文 时间:
2014-05-24 11:54:21
阅读次数:
194
今天阅读opencv2.0手册的时候,看到一句话,很有感触:Unless you are
targeting embedded platforms, there’s no point to using the old methods(unless
you’re a masochist program...
分类:
其他好文 时间:
2014-05-24 09:51:04
阅读次数:
258