自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 如何通过SSH反向隧道,访问NAT后面的Linux服务器?

假设你在家里运行一台Linux服务器,该服务器位于NAT路由器或限制性防火墙后面。现在,你想在不在家的时候,可以通过SSH连接到家用服务器。你该如何做到这一点?SSH端口转发无疑是一个办法。然而,如果你面对的是多重嵌套NAT环境,端口转发会变得很棘手。AD:干货来了,不要等!WOT2015 北京站演讲PPT开放下载!本文转载自http://network.5

2015-06-11 00:08:34 1056

原创 eclipse远程连接hbase遇到的问题

eclipse连接本地的hbase可以正常读写,但远程访问时可以连上却不能读写,这个问题可能是安装hbase时没配置好,hbase-site.xml里的hbase.zookeeper.quorum属性应该是主机名(可在命令行下通过hostname查看),然后在hosts中添加 xxx.xxx.xxx.xxx  hostname  这样的ip映射.

2015-05-06 00:48:23 919

转载 列式存储

原文链接:http://book.2cto.com/201309/32718.html传统的行式数据库将一个个完整的数据行存储在数据页中。如果处理查询时需要用到大部分的数据列,这种方式在磁盘IO上是比较高效的。一般来说,OLTP(Online Transaction Processing,联机事务处理)应用适合采用这种方式。一个OLAP类型的查询可能需要访问几百万甚至几十亿个数据行

2015-04-12 22:03:35 543

原创 LeetCode Longest Palindromic Substring 最长回文子串

Given a string S, find the longest palindromic substring in S. You may assume that the maximum length ofS is 1000, and there exists one unique longest palindromic substring.(最长回文子串)中心扩展法:pub

2015-01-27 16:45:56 502

原创 [LeetCode] Median of Two Sorted Arrays

There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).public class Solution { pu

2015-01-04 20:29:59 654

原创 [LeetCode]Two Sum

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, where

2015-01-04 18:45:47 453

原创 LeetCode Majority Element (c++)

Given an array of size n, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋ times.You may assume that the array is non-empty and the majority element alw

2015-01-04 09:38:05 598

原创 Excel Sheet Column Number(java)

Given a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 public c

2015-01-04 00:29:57 485

原创 Factorial Trailing Zeroes (java)

题目:Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.java代码实现:class Solution { public int trailingZeroes(int

2015-01-03 10:01:17 464

原创 Binary Search Tree Iterator 二叉搜索树的迭代器

题目:Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Calling next() will return the next smallest number in the BST.Note: nex

2015-01-03 08:57:18 609

转载 Java核心类库——IO原理和用法

Java IO流(InputStream/OutputSteam)什么是IO流? byte序列的读写,Java中的IO流是实现输入/输出的基础.1)InputStream : 抽象类读取数据的过程  包含读取方法read();  in 模仿了读取小说的过程 简单说  :  in是读取文件的OutputStream:抽象了写出数据的过程  包含写出方法writ

2014-11-09 11:12:34 527

转载 Class.forName的作用以及为什么要用它【转】

Posted on 2010-03-03 10:24 火之光 阅读(12075) 评论(1) 编辑 收藏Class.forName(xxx.xx.xx) 返回的是一个类首先你要明白在java里面任何class都要装载在虚拟机上才能运行。这句话就是装载类用的(和new 不一样,要分清楚)。至于什么时候用,你可以考虑一下这个问题,给你一个字符串变量,它代表一个类的包名和类名,你怎么

2014-11-06 11:18:34 457

原创 c++排序算法——快速排序

前两章讲到的桶排序和冒泡排序各有他们的优点

2014-11-03 23:56:42 620

原创 c++排序算法——冒泡排序

前一章讲过的简单桶排序是有h

2014-11-02 16:19:15 597

原创 c++排序算法——简单桶排序

我们学习算法最开始也最简单的应该是排序

2014-11-02 13:50:33 5769 1

原创 利用Scala编写Wordcount并在spark框架下运行

import org.apache.spark.SparkContext._import org.apache.spark.SparkContext  object WordCount{    def main(args:Array[String]){      val sc =new SparkContext("local","master")    //S     

2014-11-01 19:41:11 968

原创 SSD7数据库系统实验Exercise2答案

本实验所用BDMS是postgresq-- 2.1 -->select name,year from Titlewhere callnumber=(select callnumber          from Author                  where lname='Churchill');-- 2.2 --select name fr

2014-10-19 22:55:08 1413

原创 ubuntu14.04下hadoop2.2.0集群安装

集群搭建1、系统配置以及安装SSH无密码登陆环境(master&slaves):修改本机(master)和子节点(slaveN)机器名:打开/etc/hostname文件sudo gedit/etc/hostname  (修改后需重启才能生效)修改host文件(映射各个节点IP):   sudogedit /etc/hosts注意:这里要注释掉开头两行在后面添加内容

2014-10-10 20:53:45 709

c语言经典例题

最基础的c语言实例题,适合初学者研究参考。

2013-05-29

空空如也

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

TA关注的人

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