自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 2017年开年意识流

    2017年已经过去7天,虽然每年结束的时候,心里都会说,下一年一定做个全新的自己。但实际上,元旦当天该赖床赖床,该蹉跎蹉跎,一切就像北京的雾霾,即便时间已经到了2017,也没有丝毫改变的样子。    于是我明白,无论是春节还是元旦,都是普通的一天,和其他日子没有区别,它的特殊,只是人们赋予了它特殊的意义,日子怎么过,还是取决于自身。    回首毕业至今,也有五年多了,但个人技术上...

2017-01-07 17:34:11 106

3Sum Closest

 问题描述Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would ha...

2016-12-22 18:48:06 80

3Sum

 问题描述Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: The solution set must not c...

2016-12-22 17:47:56 96

Container With Most Water

 问题描述Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0)...

2016-12-22 16:29:55 66

Remove Element

 问题描述:Given an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space for another array, you must do this in place with constant me...

2016-12-22 15:57:51 64

Remove Duplicates from Sorted Array

问题描述Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place...

2016-12-22 15:34:48 78

原创 二分查找实现

package main;import com.google.common.collect.Lists;import java.util.ArrayList;/** * Created by shandaiwang on 2016/11/18. */public class BinarySearchDemo { public static void...

2016-11-20 10:42:21 68

Java命令行工具简介

Java profiling虽然已经有了youkit、jprofile等工具,但是这些工具一般不会在生产环境使用,线上遇到问题,最简单直接的还是使用jdk自带的命令行工具进行问题定位。另外,对于线上的监控,可以写个一个定时脚本,不断执行相关命令,将结果发送到opentsdb,做监控(当然,你也可以在生产环境起jstatd服务)。下面简单介绍几个命令1,jps这个命令是最基础的命令了,它的作用和...

2016-09-14 22:12:43 156

原创 centos安装python3

CentOS7默认安装了python2.7.5,当需要使用python3的时候,可以手动下载python源码后编译安装。  首先,安装python31, 下载python源码2, 解压下载好的压缩包 3, 进入解压目录./configure4, make 5, make install  接着将系统默认的python版本就替换为python3在/usr/...

2015-12-09 09:13:35 64

WordPress4分页

入门菜鸟,希望能给和菜鸟相互取暖最近在改造wordpress,自己写代码做了个分页1,在自己主题下的style.css中增加如下css[code="js"].pagination { width: auto; display: block; text-align: center; margin: 30px;}.pagination a...

2015-11-26 13:19:35 104

Talk is cheap,用代码告诉你Http和Tcp的关系

本人菜鸟一枚,在此之前,我经常看到的一句话是“HTTP是基于TCP的”,但是,对于我这等菜鸟来说,实在太过高深。没想到看了How Tomcat Works的第一章第一节的代码示例,我似乎明白了二者的关系。带着疑问,写了如下代码,来验证自己的设想。首先,使用java的socket模拟client,注意不是使用httpclient这种封装好的工具。执行之后,控制台输出了页面的源码。...

2015-03-27 17:18:47 106

原创 Resin远程调试

resin3.1 or 更新版本: 修改/resin/conf/resin.xml里面追加-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9090 address可为自定义的端口号

2014-12-18 15:41:58 187

空空如也

空空如也

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

TA关注的人

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