两台机器:172.16.91.101 172.16.91.107在91.101上增加虚拟ip,92网段的ifconfig eth0:1 172.16.92.2 netmask 255.255.255.0 up由于不再同一个网段需要添加路由(与vip交互的机器上):增加路由:route add -ne...
分类:
其他好文 时间:
2014-07-16 23:21:32
阅读次数:
284
Input输入按键Input.GetKey(“up”)=Input.GetKey(KeyCode.UpArrow)按住键盘上键Input.GetKeyDown(“up”)按下键盘上键Input.GetKeyUp(“up”)放开键盘上键(KeyCode.UpArrow)为键码Input.GetButt...
分类:
其他好文 时间:
2014-07-16 23:21:18
阅读次数:
317
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?
分类:
其他好文 时间:
2014-07-10 11:10:26
阅读次数:
302
大家好/HI everyone,Thanks for viewing my blogs, starting to use cnblogs to write blogs about programming. Hope I can keep writing and growing up together...
分类:
其他好文 时间:
2014-07-10 10:05:59
阅读次数:
197
QEMU Networking QEMU has a number of really nice ways to set up networking for its guests. It can be a little bewildering to figure out how each of th...
分类:
Web程序 时间:
2014-07-10 00:32:27
阅读次数:
499
实现的功能:1个物体以一定的速度转向目标物体Quaternion TargetRotation = Quaternion.LookRotation(m_Target.transform.position - transform.position, Vector3.up);transform.rota...
分类:
其他好文 时间:
2014-07-07 21:57:01
阅读次数:
177
Problem Description:Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equ...
分类:
其他好文 时间:
2014-07-07 19:03:39
阅读次数:
165
【题目】
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
【题意】
给定一个单向链表,如果链表有环,则返回环开始的位置。
【思路】
仍然是维护两个指针, p1, p2, p1每次走一步, p2每次走两步
...
分类:
其他好文 时间:
2014-06-29 23:59:21
阅读次数:
354
Visio有许多强大的Mash-up混聚功能,使它可以轻松集成到SharePoint 2010中。...
分类:
Web程序 时间:
2014-06-28 08:58:05
阅读次数:
314
题目:
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 numbers such that they add up to the ta...
分类:
其他好文 时间:
2014-06-28 08:17:11
阅读次数:
305