命令:$ gem sources --remove
https://rubygems.org///等有反应之后再敲入以下命令$ gem sources -a
https://ruby.taobao.org/为了验证你的Ruby镜像是并且仅是taobao,可以用以下命令查看:$ gem sources...
分类:
其他好文 时间:
2014-06-29 15:06:52
阅读次数:
216
这篇文章介绍的是简单的配置Hadoop集群的方法,适合实验和小型项目用,正式运行的集群需要用更正规的方法和更详细的参数配置,不适合使用这篇文章。安装
JDK在终端输入$ java -version如果有反应,说明已安装过jdk。如果显示的信息里出现了类似OpenJDK的字样,如java versio...
分类:
其他好文 时间:
2014-06-07 02:53:11
阅读次数:
336
Given a sorted array, remove the duplicates in
place such that each element appear onlyonceand return the new length.Do not
allocate extra space for a...
分类:
其他好文 时间:
2014-06-04 21:38:05
阅读次数:
233
转自:STL
vector用法介绍介绍这篇文章的目的是为了介绍std::vector,如何恰当地使用它们的成员函数等操作。本文中还讨论了条件函数和函数指针在迭代算法中使用,如在remove_if()和for_each()中的使用。通过阅读这篇文章读者应该能够有效地使用vector容器,而且应该不会再...
分类:
编程语言 时间:
2014-06-04 20:25:52
阅读次数:
444
Given a sorted linked list, delete all nodes
that have duplicate numbers, leaving onlydistinctnumbers from the original
list.For example,Given1->2->3-...
分类:
其他好文 时间:
2014-06-04 20:19:49
阅读次数:
282
Environment, Ubuntu 14.04set up guideSet up
cool compiler1. sudo apt-get install flex bison build-essential csh
openjdk-6-jdk libxaw7-dev libc6-i3862....
分类:
其他好文 时间:
2014-05-29 15:09:43
阅读次数:
578
1.clear()清空所有session对象的值,但保留会话2.removeAll()调用clear()方法3.remove("SessionName")删除某个session对象4.Abandon()结束当前会话并删除所有session对象,并
调用Session_End方法(InProc模式下)...
分类:
Web程序 时间:
2014-05-29 10:17:38
阅读次数:
319
安装独立jdk过程就不讲来,不会到百度之就可以了。下面讲更改默认到jdk1、更新参数使配置生效update-alternatives
--install /usr/bin/java java /***/bin/java 300update-alternatives --install
/usr/bi...
分类:
系统相关 时间:
2014-05-29 08:24:05
阅读次数:
359
这篇文章纯粹是为了保存这些方法,供以后翻阅,其实一直保存在 evernote
里面,但觉得还是放到对的地方会好点。现在收录的很少,希望以后会慢慢增多。数组扩展contains,remove 扩展 1 function
ArrayContains(array, obj) { 2 for (va...
分类:
编程语言 时间:
2014-05-27 16:49:27
阅读次数:
262
A Stack is a data-structure that You can only add
an element to the top of the Stack, andYou can only read or remove an element
also from the top.Plea...
分类:
编程语言 时间:
2014-05-26 17:10:21
阅读次数:
540