package com.longfor.dragonshard.service.cost.standard.impl; import java.util.concurrent.locks.ReentrantLock; public class ReenterLock implements Runna ...
分类:
其他好文 时间:
2018-08-12 12:13:32
阅读次数:
148
ArrayList是一个线程不安全的容器 如下列程序 package com.longfor.dragonshard.service.cost.standard.impl; import java.util.ArrayList; public class ArrayListMultiThread { ...
分类:
其他好文 时间:
2018-08-12 12:12:33
阅读次数:
152
import os# 日志相关的配置BASE_DIR=os.path.dirname(os.path.dirname(__file__))standard_format = '%(asctime)s - task:%(name)s - %(filename)s:%(lineno)d -' \ ' % ...
分类:
其他好文 时间:
2018-08-12 01:32:03
阅读次数:
166
sqlx is a library which provides a set of extensions on go's standard database/sql library. sqlx support some db: mysql, postgresql, oracle, sqlite .. ...
分类:
数据库 时间:
2018-08-11 12:29:33
阅读次数:
627
DDC的参数 EDID是一种VESA 标准数据格式,其中包含有关监视器及其性能的参数,包括供应商信息、最大图像大小、颜色设置、厂商预设置、频率范围的限制以及显示器名和序列号的字符串。EDID数据标准:EDID(Extended Display Identification Data Standard ...
分类:
其他好文 时间:
2018-08-11 11:33:05
阅读次数:
4082
Docker 命令 : 启动容器 : docker run [ i t (启动交互式容器)] example: docker run i t ubuntu /bin/bash<br> i 标志保证容器中的STDIN(standard input)是开启的 t 标志告诉Docker为要创建 ...
分类:
其他好文 时间:
2018-08-11 01:44:02
阅读次数:
189
我们知道,计算机只能存储0或者1,对于英文字母或者汉字来讲,我们是无法将其直接存储在计算机中的,需要给这些字符编码,编码由0和1组成,这样就可以存储在计算机中了。随着计算机的发展,世界上出现了各种不同的编码,这篇文章将对ASCII码、GB2312、Unicode、UTF 8进行探讨。 1、ASCII ...
分类:
其他好文 时间:
2018-08-11 01:43:29
阅读次数:
204
C. The Phone Number time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. The Phone Number t ...
分类:
其他好文 时间:
2018-08-11 01:14:57
阅读次数:
140
G. The Tree time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output G. The Tree time limit per t ...
分类:
其他好文 时间:
2018-08-10 01:33:25
阅读次数:
191
tomcat启动时出现Address already in use: JVM_Bind 的原因是因为端口被占用,有可能是因为多次启动tomcat或者启动了多个tomcat,或者是其他应用程序或者服务占用了。 错误日志如下: 严重: StandardServer.await: create[8080] ...
分类:
其他好文 时间:
2018-08-10 01:15:29
阅读次数:
136