240
It works on my machine
摘要: 职位:SDE Intern positon 地点: San Jose 1. 轮电面:self introduction what’s your interest Concept of “Concurrent” Thread vs process: definition and difference 阅读全文
posted @ 2017-02-10 02:20 禾码大叔 阅读(955) 评论(0) 推荐(0) 编辑
摘要: ~~~ public class HeapImpl { private int CAPACITY = 10; private int size = 0; private int[] data; public HeapImpl() { data = new int[CAPACITY]; } //som 阅读全文
posted @ 2017-02-08 03:19 禾码大叔 阅读(192) 评论(0) 推荐(0) 编辑
摘要: ~~~ public class ThreadCommunication { public static void main(String[] args) { Business business = new Business(); new Thread(() { while (true) { try 阅读全文
posted @ 2017-01-17 07:34 禾码大叔 阅读(106) 评论(0) 推荐(1) 编辑
摘要: Write a program that finds the sum value in an array of ints using 4 threads. You may assume in your threaded code that the array has at least 4 eleme 阅读全文
posted @ 2017-01-17 02:53 禾码大叔 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 测试环境搭建 使用Springboot构建web server, 在测试方法中打印接收的cookie。 @RestController @RequestMapping("/register/test/service") public class TestService { private Log l 阅读全文
posted @ 2016-07-17 21:59 禾码大叔 阅读(21814) 评论(1) 推荐(2) 编辑
摘要: 概念 wiki对于SOA定义如下: A service oriented architecture (SOA) is a design pattern in which application components provide services to other components via a 阅读全文
posted @ 2016-03-31 14:10 禾码大叔 阅读(3514) 评论(0) 推荐(2) 编辑
摘要: TDD 介绍 测试驱动开发,或者叫 TDD,是一个敏捷方法,通过确保在代码是先前手动编写测试用 例,用测试来驱动开发,从而翻转开发生命周期(它不只是作为一种校验工具)。 TDD 的原则很简单的: 1. 只有当有失败的测试用例需要用代码来使它通过时才用编写代码。 2. 编写极少的代码确保测试通过 3. 阅读全文
posted @ 2016-03-24 19:53 禾码大叔 阅读(1208) 评论(0) 推荐(0) 编辑
摘要: Threadlocal能够为每个线程分配一份单独的副本,使的线程与线程之间能够独立的访问各自副本。Threadlocal 内部维护一个Map,key为线程的名字,value为对应操作的副本。 ~~~ / Created by majun on 16/3/23. / public class Thre 阅读全文
posted @ 2016-03-23 17:33 禾码大叔 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Required Software 1. 安装Java环境推荐的版本在链接中有介绍 "HadoopJavaVersions" . 2. 安装ssh以使用hadoop脚本管理远程Hadoop daemons. Download Hadoop "relevant mirror download" Ins 阅读全文
posted @ 2016-03-15 21:12 禾码大叔 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 学习了这么多天的AngularJS,今天想从实战的角度和大家分享一个简单的Demo 用户查询系统,以巩固之前所学知识。功能需求需要满足两点 1.查询所有用户信息,并在前端展示 2.根据id查询用户信息,展示在前端。Ok,需求很简单,那么我们就开始实现所提的功能需求。 代码框架 前端的代码通常包含三部 阅读全文
posted @ 2016-03-09 16:42 禾码大叔 阅读(3279) 评论(4) 推荐(2) 编辑