[置顶] 2014

摘要: engineering:python for expandjavascript for webspring.io for worktheory:statisticsmachine learning 阅读全文
posted @ 2014-02-18 18:42 grep 阅读(133) 评论(0) 推荐(0) 编辑

Collection INIT

摘要: init java collections in test case final Map attributes = new HashMap() {{ put("key1","e1-value"); put("key2","e2-value"); put("key3","e3-value"); put("key4","e4-value"); put("key5","e5-value");... 阅读全文
posted @ 2014-03-14 08:54 grep 阅读(208) 评论(0) 推荐(0) 编辑

mvn deploy

摘要: mvn deploy:deploy-file -Durl=file://C:\m2-repo \ -DrepositoryId=some.id \ -Dfile=your-artifact-1.0.jar \ [-DpomFile=your-pom.xml] \ [-DgroupId=org.some.group] \ [-DartifactId=your-artifact] ... 阅读全文
posted @ 2014-02-18 18:25 grep 阅读(1586) 评论(0) 推荐(0) 编辑

df vs du

摘要: http://en.wikipedia.org/wiki/Du_%28Unix%29http://en.wikipedia.org/wiki/Df_(Unix) 阅读全文
posted @ 2014-02-11 16:23 grep 阅读(133) 评论(0) 推荐(0) 编辑

CORS

摘要: http://en.wikipedia.org/wiki/Cross-origin_resource_sharingFor dev test only.var allowCrossDomain = function(req, res, next) {res.header('Access-Control-Allow-Origin', 'http://localhost');res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');res.header(' 阅读全文
posted @ 2014-01-27 09:20 grep 阅读(194) 评论(0) 推荐(0) 编辑

bash_profile

摘要: vim ~/.bash_profileif [ -f ~/.bashrc ]; then source ~/.bashrcfi# -------------------------------# 1. ENVIRONMENT CONFIGURATION# -------------------------------# Change Prompt# ------------------------------------------------------------ export PS1="___________________________________... 阅读全文
posted @ 2014-01-10 10:26 grep 阅读(1681) 评论(0) 推荐(0) 编辑

Cassandra

摘要: Think of the Cassandra column family as a map of map:an outer map keyed by a row key, and an inner map keyed by a column key. Both maps are sorted.A map gives efficient key lookup, and the sorted nature gives efficient scans. In Cassandra, we can use row keys and column keys to do efficient lookups 阅读全文
posted @ 2014-01-02 09:00 grep 阅读(219) 评论(0) 推荐(0) 编辑

python dive into

摘要: __name__ of modulemultiple = 1024 if a_is_1024 else 1000list comprehensionS = [2 * x for x in range(101) if x ** 2 > 3]dictionary comprehension[(f, os.stat(f)) for f in glob.glob('*test*.py')]#dictionary comprehension{f:os.stat(f) for f in glob.glob('*test*.py')} s = {key: val for 阅读全文
posted @ 2014-01-01 20:19 grep 阅读(231) 评论(0) 推荐(0) 编辑

CSS Position

摘要: 1 position: staticThe default positioning for all elements isposition:static, which means the element is not positioned and occurs where it normally would in the document.Normally you wouldn't specify this unless you needed to override a positioning that had been previously set.2. position:relat 阅读全文
posted @ 2013-10-25 13:50 grep 阅读(295) 评论(0) 推荐(0) 编辑

NOSQL

摘要: in Mid 80s, rise of relational : persistence , sql transactions, reportingsql problem: assemble lots of table into one logic entity, impedance mismatch,in Mid 90s, rise of object database, argue endlesslyIntegration database, relational dominanceweb sites :1 lots of traffic , scale things up, you bu 阅读全文
posted @ 2013-09-30 08:14 grep 阅读(351) 评论(0) 推荐(0) 编辑