Hik Camera

Hikvision Camera RTSP new version Real rtsp://username:password@<address>:<port>/Streaming/Channels/<id>(?parm1=value1&parm2-=value2…) 注:VLC或者EasyPlayer可以支持解析URL里的用户名密码,实际发给设备的RTSP请求不支持带用户名密码。 username:用户名 password:密码 address: 设备IP地址 port: RTSP端口 id: 通道号&码流类型 101:通道1主码流 102:通道1子码流 103:通道1第三码流 1701:通道17主码流 001:零通道主码流 其他参数:例如多播?transportmode=multicast new version Track rtsp://username:password@<address>:<port>/Streaming/tracks/<id>(?parm1=value1&parm2-=value2…) 注:VLC或者EasyPlayer可以支持解析URL里的用户名密码,实际发给设备的RTSP请求不支持带用户名密码。 username:用户名 password:密码 address: 设备IP地址 port: RTSP端口 id: 通道号&码流类型 101:通道1主码流 102:通道1子码流 103:通道1第三码流 1701:通道17主码流 001:零通道主码流 其他参数:例如多播?starttime=20210808t020312z&endtime=20210808t020411z 时间范围是starttime到endtime,其中starttime和endtime的格式要符合ISO 8601。具体格式是YYYYMMDD”T”HHmmSS.fraction”Z”,Y是年,M是月,D是日,T是时间分格符,H是小时,M是分,S是秒,Z是可选的、表示Zulu(GMT) 时间。

September 6, 2022 · 1 min · Steven Jiang

Poi Tl

ms word template engine for java https://github.com/Sayi/poi-tl

September 6, 2022 · 1 min · Steven Jiang

Oracle

ORA-12505, TNS:listener does not currently know of SID given in connect descriptor select INSTANCE_NAME from v$instance; 归档和备份 su - oracle sqlplus /nolog sqlplus user/password [as sysdba] select * from v$flash_recovery_area_usage; select * from v$recovery_file_dest; select space_limit/1024/1024/1024, space_used/1024/1024/1024, space_reclaimable,number_of_files from v$recovery_file_dest; rman target / # archive # 确认归档模式的状态 ARCHIVE LOG LIST; DELETE ARCHIVELOG ALL; # 关闭自动归档 ALTER DATABASE NOARCHIVELOG; # 清空归档日志 ALTER SYSTEM SWITCH LOGFILE; # backup DELETE BACKUP; 初始化设置 alter user system identified by password; ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; ALTER SYSTEM SET db_create_file_dest = "/home/oracle/app/oracle/oradata"; alter tablespace system add datafile '/home/oracle/app/oracle/oradata/helowin/system2....

September 6, 2022 · 1 min · Steven Jiang

Hugo

Update Theme git submodule update –init –recursive New Post hugo new posts/name.md Spaces shoud been transformed to escape character.

September 6, 2022 · 1 min · Steven Jiang

Ubuntu Timezone

CMD: timedatectl set Aisa/Shanghai timedatectl list-timezones | grep -o "Asia/Sh.*" timedatectl set-timezone "Asia/"

October 15, 2021 · 1 min · Steven Jiang

K8s

June 15, 2021 · 0 min · Steven Jiang

Swagger3

June 15, 2021 · 0 min · Steven Jiang

Logback Spring

logback-spring.xml <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" scanPeriod="60 seconds" debug="false"> <contextName>logback</contextName> <property name="LOG_HOME" value="log"/> <!-- 彩色日志依赖的渲染类 --> <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/> <conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/> <!-- 彩色日志格式 --> <property name="CONSOLE_LOG_PATTERN" value="%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID:- }) [%t]{magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wex"/> <property name="FILE_LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } --- [%t] %-40.40logger{39} : %m%n%wex"/> <!--输出到控制台--> <appender name="console" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>${CONSOLE_LOG_PATTERN}</pattern> </encoder> </appender> <!--输出到文件--> <appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender"> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${LOG_HOME}/logback.%d{yyyy-MM-dd}.log</fileNamePattern> <maxHistory>30</maxHistory> <totalSizeCap>1GB</totalSizeCap> </rollingPolicy> <encoder> <pattern>%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n</pattern> </encoder> </appender> <!...

June 15, 2021 · 1 min · Steven Jiang

SpringBoot

June 15, 2021 · 0 min · Steven Jiang

SpringBoot Grade

build.gradle templates plugins { id 'org.springframework.boot' version '2.5.0' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } group = 'com.example' version = '0.0.1-SNAPSHOT' sourceCompatibility = '1.8' configurations { compileOnly { extendsFrom annotationProcessor } } repositories { maven {url 'https://maven.aliyun.com/repository/public'} maven { url 'http://192.168.10.204:8081/repository/maven-public/' allowInsecureProtocol true } mavenCentral() } dependencies { // jpa implementation 'org.springframework.boot:spring-boot-starter-data-jpa' // swagger mplementation 'io.springfox:springfox-boot-starter:3.0.0' // webservice implementation 'org.springframework.boot:spring-boot-starter-web-services' // druid implementation 'com.alibaba:druid-spring-boot-starter:1.2.5' // mybatis and plus implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.4' implementation 'com....

June 15, 2021 · 1 min · Steven Jiang