- 浏览: 11073 次
- 来自: ...
最新评论
文章列表
1) /etc/rc.d/rc.local auto load scripts once box gets restarted
2) crontab job
@reboot some_script.sh
3) remove some content for each line of files
find ./ -name "*.dot" -exec sed -i "" '/idl_ecservicelayerodata/d' {} \;
1. What's Ivy?
Ivy is a tool for managing (recording, tracking, resolving and reporting) project dependencies.
3 types of repositories: Local, Share & Public
2. Configuration file
ivy.xml: defines module's info (org, module properties), configurations, dependencies & publications.
ivysett ...
Gradle Plugins
a. two types: script plugins (by apply from) and binary plugins (by apply plugin-id)
Script plugins are automatically resolved and can be applied from a script on the local filesystem or at a remote location.
binary plugins apply plugins by their plugin id, which is a globally uniqu ...
Art of Cryptography in Java
Agenda:
JCA, JCE, JSSE
Java Key engine classes
JDK APIs
SSL HandShake
Functional access between Portal & Clients
First person Setup
1. Set up a new repository from local to remote
git init
git add --all
git commit -m "Initial Commit from SVN migration"
git remote add origin ssh://git@cedt-icg-bitbucketcli.nam.nsroot.net:7999/ep/mfa.git
git push -f origin master
git config --global user.name "Yo ...
HTTP/2
tech link: http://www.oschina.net/question/1397765_172789
demo site: https://http2.golang.org/
1. Only one single result/row.
int queryForInt(String sql)
int queryForInt(String sql, Object[] args)
long queryForLong(String sql)
long queryForLong(String sql, Object[] args)
Object queryForObject(String sql, Class requiredType)
Object queryForObject(String sql, Object[] args, Class requiredTy ...
1. JDK = Java Language + JVM + Java API
JRE = JVM + JAVA SE API
2. 3 famous JVM: HotSpot(Sun), JRocket(BEA), J9(IBM)
3. GC 收集器
Young Generation: Serial, ParNew & Parallel Scavenge
Tenured Generation: Serial Old, Parallel Old & CMS
G1 between Young & Tenured Generation.
4. Heap Space ...
1. Synchronized & wait/notify/notifyAll used for communication between threads. (Random selected by JVM)
ReentrantLock & Condition can also do (selective选择性通知)
lock.lock() used to get the lock.
lock.unlock() used to release the lock
condition.await() // put current thread to Waiting status ...
1. DBMS_STATS.GATHER_TABLE_STATS ( ownname VARCHAR2, tabname VARCHAR2, partname VARCHAR2, estimate_percent NUMBER, block_sample BOOLEAN, method_opt VARCHAR2, degree NUMBER, granularity VARCHAR2, cascade BOOLEAN, stattab VARCHAR2, statid VARCHAR2, statown VARCHAR2, no_invalidate BOOLEAN, force BOOLEAN ...
Introduction
Security Assertion Markup Language (SAML, pronounced sam-el[1]) is an XML-based, open-standard data format for exchanging authentication and authorization data between parties, in particular, between an identity provider and a service provider.
How SAML works
The SAML specification def ...
1. Catalina 2 modules: Connector & container
Connector: create a request & response object per each http request
Container: receive request & response objects from connector and invoke servlet's service() method.
2. Request: encapsules inputStream
Response: encapsules outputStream
3. ...
Source link: http://java.globinch.com/enterprise-java/web-services/jax-ws/java-jax-ws-tutorial-develop-web-services-clients-consumers
In bottom-up approach we create the service end point interface (SEI) first. You define the methods in SEI that you expose as services. SEI typically is a standard J ...
https://help.sonatype.com/iqserver/product-information/download-and-compatibility
1. ConcurrentHashMap allows concurrent read and thread-safe update operation.
2. During update operation, ConcurrentHashMap only lock a portion of Map instead of whole Map.
3. Concurrent update is achieved by internally dividing Map into small portion which is defined by concurrency level.
4. Choo ...