Thursday, November 9, 2017

What are carriage return, linefeed, and form feed?

https://stackoverflow.com/questions/3091524/what-are-carriage-return-linefeed-and-form-feed

“What Are Carriage Return, Linefeed, and Form Feed?” Newline - What Are Carriage Return, Linefeed, and Form Feed? - Stack Overflow, stackoverflow.com/questions/3091524/what-are-carriage-return-linefeed-and-form-feed.

Friday, June 30, 2017

Wednesday, June 14, 2017

Java - why doesn't ArrayList as key in HashMap work?

https://stackoverflow.com/questions/35560067/why-doesnt-arraylist-as-key-in-hashmap-work

“Why Doesn't ArrayList as Key in HashMap Work?” Java - Why Doesn't ArrayList as Key in HashMap Work? - Stack Overflow, stackoverflow.com/questions/35560067/why-doesnt-arraylist-as-key-in-hashmap-work. Accessed 14 June 2017.

Saturday, April 8, 2017

Does Java pass by reference or pass by value?

http://www.javaworld.com/article/2077424/learn-java/does-java-pass-by-reference-or-pass-by-value.html

Sintes, Tony. “Does Java Pass by Reference or Pass by Value?” JavaWorld, JavaWorld, 26 May 2000, www.javaworld.com/article/2077424/learn-java/does-java-pass-by-reference-or-pass-by-value.html. Accessed 8 Apr. 2017.

Tuesday, March 28, 2017

Operation latency

From:
https://fusiontables.google.com/DataSource?snapid=S523155yioc
Latency numbers every programmer should knowJeff Dean (http://research.google.com/people/jeff/)

operation
 
latency (ns)
 
 
L1 cache reference0.5
Branch mispredict5
L2 cache reference7
Mutex lock/unlock25
Main memory reference100
Compress 1K bytes with Zippy3,000
Send 2K bytes over 1 Gbps network20,000
Read 1 MB sequentially from memory250,000
Round trip within same datacenter500,000
Disk seek10,000,000
Read 1 MB sequentially from disk20,000,000
Send packet CA->Netherlands->CA150,000,000

Thursday, March 23, 2017

Set, HashSet, Map, HashMap, TreeSet, TreeMap

https://teamtreehouse.com/community/set-hashset-map-hashmap-treeset-treemap

“Set, HashSet, Map, HashMap, TreeSet, TreeMap.” Set, HashSet, Map, HashMap, TreeSet, TreeMap | Treehouse Community, teamtreehouse.com/community/set-hashset-map-hashmap-treeset-treemap. Accessed 23 Mar. 2017.

Monday, March 20, 2017

Master-Master vs Master-Slave Database Architecture

http://stackoverflow.com/questions/3736969/master-master-vs-master-slave-database-architecture

“Master-Master vs Master-Slave Database Architecture?” Stack Overflow, stackoverflow.com/questions/3736969/master-master-vs-master-slave-database-architecture. Accessed 21 Mar. 2017.

Thursday, March 16, 2017

HashMap vs HashTable

http://stackoverflow.com/questions/40471/differences-between-hashmap-and-hashtable

“Differences between HashMap and Hashtable?” Java - Differences between HashMap and Hashtable? - Stack Overflow, stackoverflow.com/questions/40471/differences-between-hashmap-and-hashtable. Accessed 16 Mar. 2017.

Saturday, March 11, 2017

List vs ArrayList

http://stackoverflow.com/questions/9852831/polymorphism-why-use-list-list-new-arraylist-instead-of-arraylist-list-n

“Polymorphism: Why Use ‘List List = New ArrayList’ Instead of ‘ArrayList List = New ArrayList’?” Java - Polymorphism: Why Use "List List = New ArrayList" Instead of "ArrayList List = New ArrayList"? - Stack Overflow, stackoverflow.com/questions/9852831/polymorphism-why-use-list-list-new-arraylist-instead-of-arraylist-list-n. Accessed 11 Mar. 2017.

“Converting 'ArrayList to 'String[]' in Java.”

http://stackoverflow.com/questions/4042434/converting-arrayliststring-to-string-in-java

“Converting 'ArrayList to 'String[]' in Java.” Arrays - Converting 'ArrayList to 'String[]' in Java - Stack Overflow, stackoverflow.com/questions/4042434/converting-arrayliststring-to-string-in-java. Accessed 11 Mar. 2017.

Friday, March 10, 2017

P/NP/NPC

http://www.matrix67.com/blog/archives/105

“Matrix67: The Aha Moments.” Matrix67 The Aha Moments, www.matrix67.com/blog/archives/105. Accessed 10 Mar. 2017.

Thursday, February 23, 2017

Static class in Java

http://www.geeksforgeeks.org/static-class-in-java/

“Static Class in Java.” GeeksforGeeks, 24 Feb. 2014, www.geeksforgeeks.org/static-class-in-java/. Accessed 23 Feb. 2017.

Saturday, February 18, 2017

Stack

http://www.ruanyifeng.com/blog/2013/11/stack.html

“Stack的三种含义.” Stack的三种含义 - 阮一峰的网络日志, www.ruanyifeng.com/blog/2013/11/stack.html. Accessed 18 Feb. 2017.

An article about Google Spanner

www.wired.com/2012/11/google-spanner-time

Metz, Cade. “Exclusive: Inside Google Spanner, the Largest Single Database on Earth.” Wired, Conde Nast, 26 Nov. 2012, www.wired.com/2012/11/google-spanner-time/. Accessed 18 Feb. 2017.

Wednesday, February 15, 2017

Hadoop shuffle phase

Cite from http://www.cnblogs.com/edisonchou/p/4298423.html

“Edison Chou.” Hadoop学习笔记-10.Shuffle过程那点事儿 - Edison Chou - 博客园, www.cnblogs.com/edisonchou/p/4298423.html.

Tuesday, February 14, 2017

The difference between String, StringBuffer and StringBuilder

Cite from http://blog.csdn.net/kingzone_2008/article/details/9220691

“Java:String、StringBuffer和StringBuilder的区别.” Java:String、StringBuffer和StringBuilder的区别 - __kingzone__的专栏 - 博客频道 - CSDN.NET, blog.csdn.net/kingzone_2008/article/details/9220691.

wordCount template