- 浏览: 99527 次
最新评论
-
jXee:
lgs0626 写道求源码,兄弟给共享下吧 "jee ...
jee6 学习笔记 4 - CRUD 2: View Details, Primefaces row selection -
lgs0626:
求源码,兄弟给共享下吧
jee6 学习笔记 4 - CRUD 2: View Details, Primefaces row selection
文章列表
### how to access k8s web console if it's still available
1. Run the proxy:
$ cd /c/tools/env-prod
$ ls -l
-rwxr-xr-x 1 John.Wang 1049089 85 May 14 14:45 prod.listAllPods.sh*
-rw-r--r-- 1 John.Wang 1049089 6146 Oct 4 2017 prod_cluster_config
$ kubectl --kubeconfig=prod_cluster_config --namespac ...
JPA 2.1 introduces APIs to call Stored Procedure. It has similar programming pattern as executing a common CRUD sql statement.
@NamedStoredProcedureQuery: defines details of the stored proc to call
@StoredProcedureParameter: defines IN/OUT parameters of the stored proc
StoredProcedureQuery: Interfac ...
There is no VACUUM statement in the SQL standard.
Postgresql has command VACUUM to cleanup dead tuples in database tables. After deletion, a record still stays in the table, VACUUM makes sure the space is reclaimed and made available for re-use.
Option ANALYZE would "Updates statistics used by ...
If your request processing takes long time to run, client might be timed out before processing completed. One solution is to send back the response (method returns) and then process the request in a different thread.
/*
* This is the normal sync processing. Client might be timed out if
* proces ...
public class ParseUtcDateTimeStringTest {
@Test
public void testUtcStringToDate() {
// "Z" at the end of the date time string is for UTC
String utcDateStr = "2017-08-28T02:03:41.080Z";
System.out.println("====== testUtcStringToDate: ...
@Value("${api.base.path}")
private String basePath;
@Value("${api.apikey.name}")
private String apiKeyName;
@Value("${api.apikey.value}")
private String apiKeyValue;
public Vehicle getVehicleBySwaggerClient(String vehicleId) {
ApiClient api = new ApiClie ...
#!/bin/bash
######################################################################
# Download map data files from xxx Maps website:
# 1. download the fileDownloadable.xml which contains downloading info
# 2. parse fileDownloadable.xml to get the filenames, urls and md5sum
# 3. carry out th ...
mapdata
|
|- src
|- ci
|- scripts
| |- mapDownload.sh
|- tasks
| |- downloadFiles.yml
|
|- pipeline.yml
If you have configuration properties that need to be changed dynamically without restarting application server, you need to externalize the properties file in a folder and add this folder to the application servers class path.
The second thing you need to do is to use a configuration util to pe ...
platform: linux
image_resource:
type: docker-image
source: {repository: ubuntu}
inputs:
- name: mapdata
- name: version
outputs:
- name: mapload
run:
path: bash
args: ["mapdata/ci/scripts/mapDownload.sh"]
resource_types:
- name: aws-cloudformation-stack
type: docker-image
source:
repository: xxx/aws-cloudformation-stack-resource
tag: latest
resources:
- name: mapdata
type: git
check_every: 10s
source:
uri: https://github.com/xxx/mapdata.git
branch: mast ...
JDK has built-in tool to monitor jvm memory usage: jstat
This is a command line tool, which runs like:
$ jstat -gc 17707 5000where, -gc is the option, 17707 is process ID of the jvm process, 5000 is output frequency: every 5 seconds.
Following is example output:
$ jstat -gc 17707 5000 S0C ...
linux command free is used to show the RAM usage of the system. Below is an example output of the command:
$ free -m
total used free shared buffers cached
Mem: 2000 1921 78 0 6 34
-/+ buffers/cache: ...
常听人说,软件编程是碗青春饭,现在倒是信了。
主要原因是这个行业需要不断学习,知识与技能更新要求比较高,比较频繁。
在一两轮更新之后,老的开发人员要么走上了管理岗位,要么就失去了工作的热情。
本人是属于后者,对软件开发的热情逐渐燃尽了。为什么?因为我发现,这些所谓的技能更新,并没有革命性的意义,不过是根据个人喜好重新造轮子而已。
譬如现在流行的 RESTful,十几年前已经搞过了。只不过现在是旧瓶新酒,增加了几个annotation而已。这帮人SOA 已经搞腻歪了,于是要搞小型化的,美其名为“微服务”,可以scale horizontally。。。一堆理论,呵呵。
...
Unit tests helped me find bugs about 3 times in my whole career.
--what a waste of time ... and energy, especially when you think about "continuous integration" and the bullshit unit tests get run again and again every day, every hour, every minute... What a waste of electricity!
Easy ...