- 博客(10)
- 资源 (2)
- 收藏
- 关注
原创 Spring Microservices in Action-Manning(2017) 读书笔记(```里的xml为什么不能显示为缩进?Markdown的bug??)
Spring Microservices in Action-Manning(2017)-ReadingNotes.mdWelcome to the cloud, Springhttps://github.com/carnellj/spmia-chapter1依赖 spotify/docker-maven-plugin 已经更新为:https://github.com/sp
2017-09-28 00:38:27 1691
原创 让我们考虑一个地图引擎系统。。。
传统的GIS数据库,如ArcGIS这种传统桌面型的软件,主要还是强调测绘模型数据的规范化输入。GIS的本质上在于多维索引,对一个最简单的平面地图来说,主要就是靠最原始的GPS芯片返回的经纬度坐标。问题是,即使静止在同一个位置,由于地球在自转(?),卫星反射返回的信号时间可能不一样,这样得到的经纬度坐标不能保持一模一样。更不用说移动中的目标(汽车)了。中国的GPS坐标还会涉及到一个非线性的加密扰乱,
2017-09-27 14:44:38 2039
原创 成熟的产品环境代码:bounded capacity(受限容量)
Java以前的容器类没有考虑这一点,导致用户可以不停地add元素,这导致内存占用大幅升高,同时也会让服务器无法正常执行,DoS。又如Thread对象,没有考虑周全的话,会很容器new一个新线程去执行,这很容易导致大量线程同时调度执行(由于某种原因它们都没有快速执行完任务干净地退出)后来的并发类库好了一点,可以有blocking queue,当queue的容量达到预先配置的上限后,添加元素的线程
2017-09-18 12:31:49 528
原创 Java的3个问题:synchronized方法、volatile关键字、及内部类
synchronized方法:当修饰类静态方法时,相当于对类的class对象(Class类型的实例)加monitor锁。当修饰实例方法时,相当于对this加锁。synchronized块建立了happens-before关系(即当前线程独占访问被synchronized的对象)。volatile关键字:非long、double的primitive类型不需要加volatile(如果是64
2017-09-17 17:29:24 535
原创 分布式大数据存储:向上索引法
在Hadoop/HDFS里,namenode负责记录datanode的文件元信息,这样当小文件太多的情况下,namenode可能存在DoS漏洞。在实际使用中,namenode的SOP问题由增加冗余备份节点解决,小文件的问题则由引入容器封装的文件格式来解决。在HBase这类基于Master/Slave架构的大数据存储系统中,当出现数据倾斜(分布不均衡)时,将根据key的range自动切分,切分后
2017-09-15 20:27:43 1191
原创 在线招聘网站的问题
本质上,在线招聘网站做的还是信息中介的生意。在线招聘网站说是帮你找工作,实质不过是提供了一个简历托管的地方而已。它本身并不能就帮你找到满意的工作作出任何承诺。与之相反的是,寻找工作的个体,则需要将自身的详细简历信息公开给招聘网站。对于用户个体隐私数据的使用等法律条款,实际上很含糊。当招聘网站收取到了足够多的简历后,则形成了规模效益,它一方面可以向企业方用人单位,及猎头等,收取信息浏览的费用
2017-09-06 16:50:33 578 1
原创 关于推荐系统(Recommender System)推荐引擎的吐槽
# 关于推荐系统(Recommender System)推荐引擎的吐槽大数据的一个最原始的使用似乎就是从推荐系统开始的。尤其是B2C电子商务网站,为了多卖点商品给用户,或者是想让用户多消耗一点内容,当然是值得做的。但是目前这些现有的推荐系统做得怎么样呢?一个字:矬。拿亚马逊来说吧,我真想告诉它(假如它是个聪明的AI的话):我喜欢的书是翻译类的计算机编程、数学物理
2017-09-04 23:44:39 1716
原创 基本算法:生成元素数组的所有排列(permute)
static void permute(int[] A, int k){ //[0, k-1] is prefix, [k, n) is for recursive call; if(k==A.length-1){//递归结束条件 for(int v : A){ System.out.print(v);
2017-09-04 23:02:35 618
原创 Cloud Native Java-OReilly 2017 读书笔记
Cloud Native Java-OReilly 2017-ReadingNotes.mdBasicsSaaS的12 Factor:Bootcamp: Introducing Spring Boot and Cloud FoundrySpring Initializr:http://start.spring.io配置好依赖后,下载得到一个demo.zip$
2017-09-03 16:58:20 2522
原创 Node Cookbook 3rd-Packt Publishing 2017 读书笔记
Node Cookbook 3rd-Packt Publishing 2017-ReadingNotes.md调试进程用DevTools调试Node $ mkdir app $ cd app $ npm init -y $ npm install --save express $ node --inspect index.js (6.3.0+,这个调试
2017-09-02 20:13:34 735
TCP/IP Sockets in Java, 2rd Edition
2008-11-28
Advanced Data Structures
2008-11-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人