java.io.tmpdir

java.io.tmpdir 操作系统不同 这个系统属性所表示的目录也不同 On Windows: java.io.tmpdir:[C:DOCUME~1joshuaLOCALS~1Temp] On Solaris: java.io.tmpdir:[/var/tmp/] On Linux: java.io.tmpdir: [/tmp] On Mac OS X: java.io.tmpdir: [/tmp] The default temporary-file directory is specified by the system property java.io.tmpdir. On UNIX systems the default value of this property is typically "/tmp" or "/var/tmp"; on Microsoft Windows systems it is typically

nohup, shell 的后台运行 &, 和 nohup

nohup, shell 的后台运行 &, 和 nohup 1 2 3 4 5 6 7 8 # 语法: nohup Command [ Arg … ] [&] # & 后台运行, 但是使用父进程的 stdout 和 stderr ./command0 & # nohup 的意思是 no hup, 忽略所有发送给子命令的 SIGHUP 信

Jenkins basic

Jenkins basic jenkins docker 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 docker network create jenkins docker image pull docker:dind # generate cert su - root mkdir /root/certs && cd /root/certs openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out MyCertificate.crt -keyout MyKey.key docker run \ --name jenkins-docker \ --rm \ --detach \ --privileged

trickle

trickle userspace bandwidth shaper 限速 200k 1 trickle -s -u 200 -d 200 git pull 参数 -s, standalone mode 不依赖 trickled -u, 上传速率 KB/s -d, 下载速率 KB/s https://github.com/mariusae/trickle https://wiki.archlinux.org/title/trickle

mvn, maven basic

mvn, maven basic 1 2 # ubuntu install maven sudo apt install maven 1 2 # 打印当前在使用的 settings mvn help:effective-settings download https://maven.apache.org/download.cgi setting & mirror maven setting aliyun mkdir ~/.m2 vim ~/.m2/settings.xml https://repo.maven.apache.org/maven2 Maven 参数 1 2 3 4 5 6 7 -D 传入属性参数 -P 使用pom中指定的配置 -e

Maven生命周期

Maven生命周期 Maven 生命周期 Maven生命周期已经在另一篇博客中介绍过了(http://www.cnblogs.com/haippy/arc

javaEE

javaEE 今天的程序员越来越认识到我们需要高性能、安全和可靠的服务器端技术来开发分布式的、事务性的和可移植的应用程序。在信息化的世界里,企业级应用通

Apache License 2.0

Apache License 2.0 Apache License Apache 协议允许使用了本协议开源的代码不必开源。 用了 Apache 协议的开源代码,必须保留协议文本。你可以修改源码,但必须声明你修改了哪些,并且保留

Derby

Derby Apache Derby, an Apache DB subproject, is an open source relational database implemented entirely in Java and available under the Apache License, Version 2.0. Some key advantages include: Derby has a small footprint - about 2.6 megabytes for the base engine and embedded JDBC driver. Derby is based on the Java, JDBC, and SQL standards. Derby provides an embedded JDBC driver that lets you embed Derby in any Java-based

奥卡姆剃刀, Occam's Razor

奥卡姆剃刀, Occam’s Razor 奥卡姆剃刀原理 奥卡姆剃刀原理是在14世纪由一个叫做奥卡姆的威廉的天主教修士提出的,可以概括为: 如无必要,勿增实体。 http://www.guokr.com/post/46473/

chart library

chart library web chart library chartjs Simple yet flexible JavaScript charting https://www.chartjs.org/ Apache ECharts An Open Source JavaScript Visualization Library https://echarts.apache.org/en/index.html

Jena

Jena Jena is a Java framework for building Semantic Web applications. It provides a programmatic environment for RDF, RDFS and OWL, SPARQL and includes a rule-based inference engine. Jena is open source and grown out of work with the HP Labs Semantic Web Programme. The Jena Framework includes: A RDF API Reading and writing RDF in RDF/XML, N3 and N-Triples An OWL API In-memory and persistent storage SPARQL query engine

OWL

OWL OWL Web本体语言指南 W3C推荐标准 2004年02月10日 摘要 目前这种结构的万维网,很像一本地图做得很差的地理书,我们对于Web中可以使用的

RDF OWL

RDF OWL http://blogger.org.cn/blog/more.asp?name=babyblue&id=21546 Ontology来源于哲学词汇: 存在论 (也有翻译成本体论) 。RDF是一种不错的本体描述方式,我们可以定义根据对现实世界的理解针对某个领

XML RDF OWL

XML RDF OWL XML, RDF, OWL 请先理解RDF和RDF Schema的知识再看这篇文章。不理解的话请参照RDF和RDF Schema在线手册的第一篇相关概念的文章。

emacs format, 格式化

emacs format, 格式化 http://www.blogjava.net/killme2008/archive/2011/07/26/355041.html 格式化源码是很常见的需求,emacs有个indent-region函数用于格式化选定的代码,前提是你处在某个非text mode下

衬线字体

衬线字体 西方国家字母体系分为两类: serif以及sans serif。 serif是有衬线字体,意思是在字的笔画开始、结束的地方有额外的装饰,而

gorun, golang, shell

gorun, golang, shell 用 golang 语言编写脚本 install gorun 1 go get github.com/erning/gorun 能用 “./” 执行的 golang代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 /// 2>/dev/null ; gorun "$0" "$@" ; exit $? package main import ( "os/exec" "fmt" "os" ) func