码迷,mamicode.com
首页 > 其他好文
cocoapods setup报路径错误, 解决方法
pod setup命令报错如下图:说明是路径错误,在命令行输入一下命令即可解决。sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer解决后,可继续执行安装操作。
分类:其他好文   时间:2015-04-08 00:40:24    阅读次数:188
error at ::0 formal unbound in pointcut
在使用声明方式的AOP编程中,遇到以下两个问题,解决方法如下: (1)error?at?::0 formal unbound in pointcut 解决方法:去掉函数通知函数中的参数,比如:将 @Before("execution(public void com.bjsxt.dao...
分类:其他好文   时间:2015-04-07 23:37:50    阅读次数:362
JDK性能监控工具
JDK命令行工具 jps:JVM Process Status Tool,显示指定系统内所有的HotSpot虚拟机进程,可以通过RMI协议查询开启了RMI服务的远程虚拟机进程状态 jps [options] [hos tid] 列出正在运行的虚拟机进程,显示执行主类...
分类:其他好文   时间:2015-04-07 23:35:33    阅读次数:467
推送证书的生成
1. p12证书导出 在钥匙串访问中选中推送证书,导出为个人信息交换文件(.p12格式)。 选择文件格式、文件名和保存路径。 输入导出密码。 2. pem证书生成 将p12证书文件转换成pem证书文件。在终端里运行以下命令转...
分类:其他好文   时间:2015-04-07 23:37:51    阅读次数:410
对openstack(JUNO)的neutron的相关测试
这两天对公司的的openstack环境进行测试,因为环境是别的同事搭建的,我这边只负责相关的测试,一台服务器独立安装 controller node,另外两台服务器都安装network node+compute node。大概环境如下: 外网IP网段是192.168.1.0/24,其中192.168.1.100~192.168.1.200为floatingip分配范围,内网IP网段是1...
分类:其他好文   时间:2015-04-07 23:34:46    阅读次数:360
22.在创业公司中的成长
在“app后端”qq群中,经常被问到的一个问题:“怎么设计一个应付高并发的架构”。诚然,设计一个能应付百万流量的高并发架构,是很令人兴奋的技术挑战,但在创业公司中的成长,难道就只有设计架构吗?在这篇文章中,谈谈我对这方面的看法。...
分类:其他好文   时间:2015-04-07 23:36:33    阅读次数:317
PV操作,我终于懂你了!
上个星期,米老师给我们讲课实在是精彩!本人终于对Pv操作有了自己的理解。之前一直不太理解Pv操作,现在总结一下,以供下阶段学习和总结。 为什么叫PV操作?原因是:这是狄克斯特拉用荷兰文定义的,因为在荷 兰文中,通过叫passeren,释放叫vrijgeven,PV操 作因此得名。 这张图乍一看谁也不知道我想说明什么。我想通过这张图来给大家解释一下PV操作! 中间这加粗的黑线是秤杆...
分类:其他好文   时间:2015-04-07 23:35:43    阅读次数:513
透视投影矩阵的构建
投影矩阵最终建立的是一个平截头体(也可以称为台),在这种变换下呈现远小近大的效果。这里我将我学到知识记录下来,以后备忘用。...
分类:其他好文   时间:2015-04-07 23:35:22    阅读次数:592
[LeetCode]Combination Sum
题意:求一个数组中的组合为某个target的所有子数组组合,要求不重复, 思路:先将数组排序,然后按深度遍历的思想对i - > len -1的元素进行遍历 代码如下: public class Solution { public List> combinationSum(int[] candidates, int target) { List> results = n...
分类:其他好文   时间:2015-04-07 23:33:43    阅读次数:325
hdu4739(回溯)
题意: 给出宝藏个数,然后给出每个宝藏的位置; 如果四个宝藏构成正方形就能取走; 问最多取走几个; #include #include #include using namespace std; const int N = 25; int n, ans; int cnt[105][105]; struct node { int x; int y; bool operator<(no...
分类:其他好文   时间:2015-04-07 23:34:29    阅读次数:384
HDOJ 1348 Wall 凸包
Wall Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4001    Accepted Submission(s): 1131 Problem Description Once upon a time ther...
分类:其他好文   时间:2015-04-07 23:35:51    阅读次数:360
LeetCode --- 86. Partition List
题目链接:Partition List Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of t...
分类:其他好文   时间:2015-04-07 23:33:18    阅读次数:292
LeetCode --- 87. Scramble String
题目链接:Scramble String Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": ...
分类:其他好文   时间:2015-04-07 23:33:46    阅读次数:556
LeetCode --- 88. Merge Sorted Array
题目链接:Merge Sorted Array Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold ad...
分类:其他好文   时间:2015-04-07 23:34:47    阅读次数:349
LeetCode --- 89. Gray Code
题目链接:Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print th...
分类:其他好文   时间:2015-04-07 23:34:18    阅读次数:318
LeetCode --- 90. Subsets II
题目链接:Subsets II Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not ...
分类:其他好文   时间:2015-04-07 23:33:25    阅读次数:156
青蛙跳台阶问题
题目:一只青蛙一次可以跳上 1 级台阶,也可以跳上2 级。求该青蛙跳上一个n 级的台阶总共有多少种跳法。 我的思路:最开始我的思路是把这个看成是一个数学问题,n=i*1+k*2先把所有可能满足这个公式的i和k求出来。然后在对i和k做排列组合。很明显i的范围应该是0 public int JumpFloor(int target) { int step = 0; for (int...
分类:其他好文   时间:2015-04-07 23:32:03    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!