自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (1)
  • 收藏
  • 关注

原创 Storm集群搭建

Storm学习笔记 Hadoop Storm hadoop 1 搭建Storm集群 1.1 安装Python 由于Ubuntu已经自带就直接使用 1.2 安装ZooKeeper 官网下载完后,解压至/usr/local目录下 1.2.1 创建文件夹 在ZooKeeper文件下创建data文件夹在ZooKeeper文

2015-02-15 13:56:41 601

原创 Git学习笔记

7月14号 学习笔记 把文件添加到版本库 把文件往Git版本库里添加的时候,是分两步执行的: 第一步是用git add把文件添加进去,实际上就是把文件修改添加到暂存区;第二步是用git commit提交更改,实际上就是把暂存区的所有内容提交到当前分支。 查看状态和差异 有下面两个命令: git status命令可以让我们时刻掌握仓库当前的状态gi

2014-08-26 19:24:28 438

原创 Coursera---Scala课程 第二周笔记

Higher-Order Functions      这被称为“高阶函数”,既可以当参数传,也可以当返回值。  最早的形式 def sum(f: Int => Int, a: Int, b: Int): Int =      if (a > b) 0 else f(a) + sum(f, a + 1, b) def sumInts(a: Int, b:

2014-05-13 13:05:13 633

转载 sbt安装

Linux Download sbt from here: http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.tgzUnpack the archive to a directory of your choiceAdd the bin/ directo

2014-04-29 10:37:24 770

原创 PAT Advanced Level 1007:Maximum Subsequence Sum

1007. Maximum Subsequence Sum (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Given a sequence of K integers { N

2014-03-13 16:02:26 553

原创 PAT Advanced Level 1006:Sign In and Sign Out

1006. Sign In and Sign Out (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue At the beginning of every day, the fi

2014-03-13 15:59:28 558

原创 PAT Advanced Level 1005:Spell It Right

1005. Spell It Right (20) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Given a non-negative integer N, your task i

2014-03-12 16:22:46 467

原创 PAT Advanced Level 1004:Counting Leaves

1004. Counting Leaves (30) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue A family hierarchy is usually presented by a

2014-03-12 16:18:18 575

原创 PAT Advanced Level 1003:Emergency

1003. Emergency (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue As an emergency rescue team leader of a city, yo

2014-03-09 21:43:59 530

原创 C++结构体

一 如何定义一个结构体 struct Student//声明一个结构体类型Student { int num;//包括一个整型变量num char name[20];//包括一个字符数组name char sex;//包括一个字符变量sex int age;//包括一个整型变量age float score;//包括一个单精度型变量 char ad

2014-03-08 15:03:21 629

原创 PAT Advanced Level 1002:A+B for Polynomials

1002. A+B for Polynomials (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue This time, you are supposed to find A+

2014-03-06 20:49:17 557

原创 PAT Advanced Level 1001:A+B Format

1001. A+B Format (20) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Calculate a + b and output the sum in standard

2014-03-06 20:46:26 517

原创 PAT Basic Level 1003:我要通过!

“答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于PAT的“答案正确”大派送 —— 只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。 得到“答案正确”的条件是: 1. 字符串中必须仅有P, A, T这三种字符,不可以包含其它字符; 2. 任意形如 xPATx 的字符串都可以获得“答案正确”,其中 x 或者是空字符串,或者是仅由字母 A 组成的字符串

2014-03-05 19:46:40 616

原创 九度OJ 题目1003:A+B

题目描述: 给定两个整数A和B,其表示形式是:从个位开始,每三位数用逗号","隔开。 现在请计算A+B的结果,并以正常形式输出。 输入: 输入包含多组数据数据,每组数据占一行,由两个整数A和B组成(-10^9 输出: 请计算A+B的结果,并以正常形式输出,每组数据占一行。 样例输入: -234,567,890 123,456,789

2014-03-05 19:44:00 667

原创 九度OJ 题目1002:Grading

题目描述:     Grading hundreds of thousands of Graduate Entrance Exams is a hard work. It is even harder to design a process to make the results as fair as possible. One way is to assign each exam prob

2014-03-03 21:05:48 561

原创 九度OJ 题目1001:A+B for Matrices

题目描述:     This time, you are supposed to find A+B where A and B are two matrices, and then count the number of zero rows and columns. 输入:     The input consists of several test cases, each

2014-03-03 16:32:40 508

原创 Python 学习笔记

一、IDE 用的是Wing IDE,官网http://wingware.com/downloads/wingide-101/

2014-03-01 20:15:28 441

转载 VIM基本命令

基本命令 vim在保存之前不会对文件做实际的修改,只是加载到缓冲区中,对文件的编辑其实是对缓冲区的编辑,直到:w时才会存入物理文件。 :w     将缓冲区写入文件,即保存修改 :wq     保存修改并退出 :x     保存修改并退出 :q     退出,如果对缓冲区进行过修改,则会提示 :q!     强制退出,放弃修改 查找替换 /pattern     向后搜索字符串pa

2014-03-01 15:49:46 469

原创 listView.addFooterView时出现java.lang.ClassCastException:

java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams 出现以下错误,原来我添加的传给addFooterView的参数是个Linearlayout,改成View就行了

2012-10-17 02:03:15 1184

转载 intent几种传值数组、对象、集合(Array,Object,List)

1.Array   ? private ArrayList checkList=new ArrayList();   Intent intent=new  Intent(mytext.this,show.class);   intent.putStringArrayListExtra("list", checkList);   start

2012-04-25 00:27:02 569

教你编写高质量 高性能的MySQL语法

教你编写高质量,高性能的MySQL语法,面试前必备资源

2015-08-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除