myecplise上将工程部署到应用下时,经常出现 An internal error occurred during: "Add Deployment". java.lang.NullPointException 错误。很让人郁闷。? 究其原因,一般是因为项目从别处导入的,从cvs上down下来...
分类:
系统相关 时间:
2015-06-07 12:40:53
阅读次数:
151
今天写了一个例子。public static void main(String[] args){SortedSet set = new TreeSet();set.add(new Person(180));set.add(new Person(175));for(Person p : set){Sy...
分类:
其他好文 时间:
2015-06-07 12:28:58
阅读次数:
111
发现一些文章对call和apply的存在误解,因为误解的解释方式比较容易被理解吧,当然也有批判的,但都只是说说怎么才是对的,没有具体分析误解为什么是误解今天让我们来仔细分析一下,为何不恰当function add(a, b) { alert(a + b);}function sub(a, b...
分类:
移动开发 时间:
2015-06-07 12:21:14
阅读次数:
200
安装方法:sudo add-apt-repository ppa:gnome3-team/gnome3 sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install gnome-themes-standard ubuntu-de...
分类:
系统相关 时间:
2015-06-07 06:13:08
阅读次数:
410
Centos7使用firewalld代替了原来的iptables.开启端口firewall-cmd --zone=public --add-port=80/tcp --permanent命令含义:--zone #作用域--add-port=80/tcp #添加端口,格式为:端口/通讯协议--per....
分类:
其他好文 时间:
2015-06-06 19:22:54
阅读次数:
184
为参数赋初值JavaScript中没有重载的概念,不过JavaScript中函数的参数都是可选的,如果调用时少写了一个参数,将会被undefined所代替。eg:function Add(A, B) { return A + B; } plus(5); // NaN此处Add(5)与Add(5, u...
分类:
编程语言 时间:
2015-06-06 16:23:22
阅读次数:
150
题目:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return
it a...
分类:
其他好文 时间:
2015-06-06 15:01:01
阅读次数:
139
题目:
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 target,w...
分类:
其他好文 时间:
2015-06-06 14:59:04
阅读次数:
124
add by zhj: 尾递归其实跟循环在代码形式上非常像,尾递归会同时用到反推和正推,由n->n-1是反推,由acc1, acc2 = acc2, acc1+acc2是正推。参见本文最后,分别用循环和尾递归实现Fibonacci数列。原文:http://www.nowamagic.net/libr...
分类:
其他好文 时间:
2015-06-06 12:03:16
阅读次数:
158
golang目前有两种编译,一种是golang官方提供的,另外一个是gnu提供的gccgo。这里安装的是Golang,从仓库安装(apt-get) sudo apt-get install golang如果上面的命令执行不了,可以尝试以下命令: sudo add-get-respository .....
分类:
其他好文 时间:
2015-06-06 12:02:58
阅读次数:
159