自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (23)
  • 收藏
  • 关注

转载 探索 ConcurrentHashMap 高并发性的实现机制

ConcurrentHashMap 是 util.concurrent 包的重要成员。本文将结合 Java 内存模型,分析 JDK 源代码,探索 ConcurrentHashMap 高并发的具体实现机制。由于 ConcurrentHashMap 的源代码实现依赖于 Java 内存模型,所以阅读本文需要读者了解 Java 内存模型。同时,ConcurrentHashMap 的源代码会涉及到散

2015-05-29 21:30:39 317

转载 Discard Unstaged Changes in GIT

#MORE INFO: http://anders.janmyr.com/2009/09/git-undo-reset-or-revert.html#METHOD 1:#This stashes them git stash save --keep-index #This gets rid of the stash and actuall

2015-05-20 16:39:52 865

转载 javascript之bind使用介绍

首先apply和call是老生常谈的东西,但是对于bind,我愣了下,因为这个词是jquery中使用频率很高的一个方法,用来给DOM元素绑定事件用的前几天看到一个面试题,题目是这样的: 请你说说对javascript中apply,call,bind的理解? 首先apply和call是老生常谈的东西,但是对于bind,我愣了下,因为这个词是jquery中使用频率很高的

2015-05-16 13:04:39 521

原创 Prototype chain in JavaScript

Properties added in the constructor (or later) override prototyped properties.

2015-05-15 12:54:02 381

原创 timer function set and clear out in JavaScript

function createTimer( timerFunc, timeInterval ){ return window.setInterval(timerFunc, timeInterval || 1000 );};function clearTimer( timerId ){ return window.clearInterval( timerId );};functi

2015-05-15 12:39:13 421

原创 bower version syntax

这个问题是在stackoverflow上别人提出的,我把Original Question以及对应的AnswerPOST出来。Question:Bower enable me to specify version requirements for packages using syntax"dependencies": { "": "",},But I have

2015-05-15 12:16:01 596

转载 Identifier Resolution and Closures in the JavaScript Scope Chain

From my previous post, we now know that every function has an associated execution context that contains a variable object [VO], which is composed of all the variables, functions and parameters

2015-05-14 23:25:38 473

转载 What is the Execution Context & Stack in JavaScript? -- To understand scope chain

In this post I will take an in-depth look at one of the most fundamental parts of JavaScript, the Execution Context. By the end of this post, you should have a clearer understanding about what the i

2015-05-14 02:27:08 679

原创 trivialNew in JavaScript

function trivialNew(constructor, ...args) { var o = {}; // Create an object constructor.apply(o, args); return o;}This isn't an exact replica of new as it doesn't set up the prototype chain

2015-05-13 15:06:02 443

原创 Function.prototype.apply() as to null、undefined in non-strict mode

Syntaxfun.apply(thisArg, [argsArray])ParametersthisArgThe value of this provided for the call to fun. Note that this may not be the actual value seen by the method: if the method is a fu

2015-05-13 14:23:04 373

原创 JavaScript rules for Conversion to Number

The parseInt() and parseFloat() functions parse a string until they reach a character that isn't valid for the specified number format, then return the number parsed up to that point. However the "+

2015-05-13 13:36:39 381

转载 Design Pattern - Abstract Factory Pattern

Abstract Factory patterns work around a super-factory which creates other factories. This factory is also called as factory of factories. This type of design pattern comes under creational pattern as

2015-05-13 12:09:21 393

转载 Design Pattern - Factory Pattern

Factory pattern is one of most used design pattern in Java. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object.In Factory

2015-05-13 12:08:52 391

转载 java数据库连接为何用class.forName().他和new有什么区别。

在Java开发特别是数据库开发中,经常会用到Class.forName( )这个方法。通过查询Java Documentation我们会发现使用Class.forName( )静态方法的目的是为了动态加载类。在加载完成后,一般还要调用Class下的newInstance( )静态方法来实例化对象以便操作。因此,单单使用Class.forName( )是动态加载类是没有用的,其最终目的是为了实例化对

2015-05-13 11:59:36 420

转载 抽象工厂模式和工厂模式的区别?

Q:抽象工厂模式和工厂模式的区别?看了很多网上的帖子,说区别在于:工厂方法模式只有一个抽象产品类,而抽象工厂模式有多个。 工厂方法模式的具体工厂类只能创建一个具体产品类的实例,而抽象工厂模式可以创建多个。但是看GOF的例子,发现区别貌似不在于此。个人认为抽象工厂模式是把创建者的创建过程和构件分离了,采用了组合的方式。而工厂模式是用继承的方式将创建过程和构件合在了一起,有没有

2015-05-13 11:56:42 403

原创 Java中自定义Stack的Demo

import java.lang.reflect.Field;public class LinkedStack { class Node { /** * value storage object */ T item; /** * next node */ Node next; /** * default constructor */

2015-05-12 13:34:16 344

原创 Java仿照JavaScript的JSON的stringify()方法重写toString()方法的启示

class User { public String name; public String gender; public int age; public User(String name, String gender, int age) { super(); this.name = name; this.gender = gender; this.age = age;

2015-05-12 13:21:48 3160

转载 序列化和反序列化

简介文章作者服务于美团推荐与个性化组,该组致力于为美团用户提供每天billion级别的高质量个性化推荐以及排序服务。从Terabyte级别的用户行为数据,到Gigabyte级别的Deal/Poi数据;从对实时性要求毫秒以内的用户实时地理位置数据,到定期后台job数据,推荐与重排序系统需要多种类型的数据服务。推荐与重排序系统客户包括各种内部服务、美团客户端、美团网站。为了提供高质量的数据服务

2015-05-11 14:09:44 349

转载 15 Useful “ifconfig” Commands to Configure Network Interface in Linux

fconfig in short “interface configuration” utility for system/network administration inUnix/Linux operating systems to configure, manage and query network interface parameters via command line inter

2015-05-10 08:46:33 512

转载 how to read source code of angular?

For AngularJS : Prerequisites :: 1) Firstly you need have good hands over on JAVASCRIPT patterns like revealing pattern, prototype pattern, model pattern and prototype revealing pattern. 2) Go throu

2015-05-07 22:03:44 752

转载 Custom Events in JavaScript

<meta name="generator" content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" /> Custom event delegation in JavaScript

2015-05-07 11:05:55 366

设计模式之禅(第2版)

设计模式之禅(第2版),完美的kindle电子书,近纸质版的阅读体验!

2016-07-22

七周七并发Example Code

七周七并发书中源码

2016-07-02

The Majesty Of Vue.js.pdf

The Majesty Of Vue.js PDF,文字版-非扫描版。

2016-04-25

Doug Lea Fojk/Join framework 论文

Doug Lea对于 Fojk/Join framework实现的原始论文

2016-02-27

SQL Pretty Printer

SQL Pretty Printer,适用于任何any数据库语法,挺好使用的工具。

2016-02-01

分布式算法导论

分布式算法导论,2004年版 扫描版 荷兰作者著

2016-01-25

JDK source code(with sun package's source code)

JDK source code(with sun package's source code)

2016-01-12

tomcat6.0权威指南(第二版)

tomcat6.0权威指南(第二版),英文版 .pdf

2016-01-12

人月神话 http 深入理解操作系统

人月神话 http Essentials 深入理解操作系统

2016-01-07

Elasticsearch权威指南(中文版)

Elasticsearch权威指南(中文版),翻译的不错.pdf

2015-12-31

Elastic Search The Definitive Guide

Elastic Search The Definitive Guide

2015-12-31

MySQL技术内幕第四版(扫描版)

MySQL技术内幕第四版扫描版,有书签方便阅读。

2015-12-25

MySQL 4th edition

MySQL 4th edition 英文版

2015-12-25

JIRA Documentation

JIRA Documentation,Atlassian公司出品

2015-12-22

MySQL技术内幕源代码

MySQL技术内幕源代码,sampledb.zip

2015-12-16

Java并发编程源码缺失的Annotation

网上的Java并发编程源码一般都缺失一些Annotation,导致导入会报错。

2015-11-16

Java并发编程实践第二版(Java Concurrency In Practice) with its source code

Java并发编程实践(Java Concurrency In Practice) with its source code, 这是第二版的中文版的扫描版.zip

2015-11-16

Java并发编程实践书中示例代码

Java并发编程实践书中示例代码,Java Concurrency in Practice里的代码

2015-11-03

深入理解Java虚拟机:JVM高级特性与最佳实践(第2版)源代码

深入理解Java虚拟机:JVM高级特性与最佳实践(第2版)源代码

2015-07-28

深入理解Java虚拟机(第二版)源代码

深入理解Java虚拟机(第二版)源代码

2015-07-28

Thinking in java 4th edition (Java编程思想第四版)source code(源代码)[可以轻松导入Eclipse运行]

Thinking in java 4th edition (Java编程思想第四版)source code(源代码)[可以轻松导入Eclipse运行]

2015-06-03

空空如也

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

TA关注的人

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