Posts

git-changelog-maven-plugin <plugin> <groupId>se.bjurr.gitchangelog</groupId> <artifactId>git-changelog-maven-plugin</artifactId> <version>1.50</version> <executions> <execution> <id>GenerateGitChangelog</id> <phase>generate-sources</phase> <goals> <goal>git-changelog</goal> </goals> <configuration> <!-- A file on filesystem //--> <file>CHANGELOG.md</file> <toRef>HEAD</toRef> </configuration> </execution> </executions> </plugin> get a copy of mustache template and save as changelog.mustache under the project home directory https://github.com/tomasbjerre/git-changelog-lib/tree/master/src/test/resources/templates mvn compile to create the CHANGELOG.md mvn compile upload the CHANGELOG.md to nginx as a release not config nginx support browser MD mime.types text/markdown md; reload nginx and check the release note as text use template with StrapDown.

INNER JOIN = JOIN

INNER JOIN is the default if you don’t specify the type when you use the word JOIN

INNER JOIN is ANSI syntax that you should use.

Why Use the New Syntax for SQL Joins?

  • Join conditions are separate from filtering conditions

  • Easier to join multiple tables

Configuring A records with DNS provider

@    185.199.108.153
@    185.199.109.153
@    185.199.110.153
@    185.199.111.153

dig the custom domain to confirm DNS setup

$dig +noall +answer wubigo.com
wubigo.com.		285	IN	A	185.199.110.153
wubigo.com.		285	IN	A	185.199.108.153
wubigo.com.		285	IN	A	185.199.111.153
wubigo.com.		285	IN	A	185.199.109.153

https://help.github.com/articles/setting-up-an-apex-domain/#configuring-a-records-with-your-dns-provider

GET vs. POST HTTP POST requests supply additional data from the client (browser) to the server in the message body. In contrast, GET requests include all required data in the URL. Forms in HTML can use either method by specifying method=“POST” or method=“GET” (default) in the element. The method specified determines how form data is submitted to the server. When the method is GET, all form data is encoded into the URL, appended to the action URL as query string parameters.

NGINX 1.12 ON UBUNTU 16 https://launchpad.net/~nginx/+archive/ubuntu/stable ubuntu@ip-192-168-133-137:/etc/nginx$ nginx -V nginx version: nginx/1.12.1 built with OpenSSL 1.0.2g 1 Mar 2016 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/build/nginx-aqArPM/nginx-1.

update a fork on GitHub with upstream git fetch upstream git rebase upstream/master (sync upstream update to local master branch) git push (update the fork by push) Moving a git repository $ git remote show origin $ git remote rm origin $ git remote add origin https://github.com/wubigo/wubigo.github.io.git $ git remote show origin $ git pull origin master Branch from a previous commit using Git The magic can be done by git reset.

understand of the HBase data model

http://jimbojw.com/#understanding hbase

cloud data management https://dataschool.com/data-governance 三层数据仓库架构 Generally a data warehouses adopts a three-tier architecture. Following are the three tiers of the data warehouse architecture. Bottom Tier − The bottom tier of the architecture is the data warehouse database server. It is the relational database system. We use the back end tools and utilities to feed data into the bottom tier. These back end tools and utilities perform the Extract, Clean, Load, and refresh functions.

10 Highly Impactful Books You Should Definitely Check Out

https://thoughtcatalog.com/ayodeji-awosika/2015/06/10-highly-impactful-books-you-should-definitely-check-out/

cp data file cp /var/lib/mysql /data -Rf chown -R mysql:mysql /data/mysql AppArmor /etc/apparmor.d/local/usr.sbin.mysqld /data/mysql r, /data/mysql/** rwk, sudo systemctl reload apparmor sudo as myql sudo -s -u mysql mysql 时间类型支持微秒 MySQL permits fractional seconds for TIME, DATETIME, and TIMESTAMP values, with up to microseconds (6 digits) Mysql DATETIME(6) DATETIME[(fsp)] The fsp value, if given, must be in the range 0 to 6. A value of 0 signifies that there is no fractional part.

What is anycast? Anycast, also known as IP anycast, is a networking technique that allows for multiple machines to share the same IP address. Based on the location of the user request, the routers send it to the machine in the network that is closest. This is beneficial since, among other things, it reduces latency and increases redundancy. If a particular data center were to go offline, an anycasted IP would choose the best path for users and automatically redirect them to the next closest data center.

TZ $ export TZ=:/etc/localtime locale /etc/environment: LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 1: set TZ=:/etc/localtime https://blog.packagecloud.io/eng/2017/02/21/set-environment-variable-save-thousands-of-system-calls/ mysql utf8 For the recent version of MySQL, default-character-set = utf8 causes a problem. It’s deprecated I think. As Justin Ball says in “Upgrade to MySQL 5.5.12 and now MySQL won’t start, you should: Remove that directive and you should be good. Then your configuration file (‘/etc/my.cnf’ for example) should look like that: [mysqld] collation-server = utf8_unicode_ci init-connect=‘SET NAMES utf8’ character-set-server = utf8 Restart MySQL.

The main point of a Content Distribution Network (CDN) is to put the content as close to the end-user as possible, thereby reducing the Distance component of the Round Trip Time (RTT) and speeding up the request. Simply serving static content from a s# sub-domain for CDN. The advantages of serving content from such a sub-domain, however, are that The sub-domain can be a cookie-less domain If you use your cookies correctly (ie.

1: all required dep on jsp tomcat

<!-- Compile -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jstl</artifactId>
    </dependency>
    <!-- Provided -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.tomcat.embed</groupId>
        <artifactId>tomcat-embed-jasper</artifactId>
        <scope>provided</scope>
    </dependency>
    <!-- Test -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>

Documenting the Web together

https://blogs.windows.com/msedgedev/2017/10/18/documenting-web-together-mdn-web-docs/

MDN

https://developer.mozilla.org

DEV DOCS

https://devdocs.io

JAVA 基础

JAVA 基础

1: ArangoDB automatically indexes the _key attribute in each collection. There is no need to index this attribute separately. Please note that a document’s _id attribute is derived from the _key attribute, and is thus implicitly indexed, too. 2: Creating a database We don’t want to mess with any existing data, so let’s start by creating a new database called “mydb”: db.createDatabase(‘mydb’).then( () => console.log(‘Database created’), err => console.error(‘Failed to create database:‘, err) );

自动化发布

很多网站选择周四作为发布日

QEMU runs the guest code via the KVM kernel module. When working with KVM, QEMU also does I/O emulation, I/O device setup, live migration, and so on. QEMU opens the device file (/dev/kvm) exposed by the KVM kernel module and executes ioctls()on it KVM exposesa device file called /dev/kvmto applications to make use of the ioctls()provided. QEMU makes use of this device file to talk with KVM and to create, initialize, and manage the kernel mode context of virtual machines

JAVA 开发规范

目标:

  • 容易维护
  • 健壮
  • 可复用
分类 指导
编码 UTF-8
注释 支持Swagger
git模式 PR(pull-request) / merge request
代码静态检查 遵守风格规范
代码提交 必须通过review
测试 所有代码都有单元测试
集成测试 所有代码必须通过集成测试才能提交到分支或主干

编码风格