1、配置编辑器(article.component.html):
<ckeditor [editor]="contentEditor" [data]="contentData" [config]="ckConfig" … ></ckeditor>
...
Enjoy java, enjoy life...
Posted by 唧唧 | tags: Angular TypeScript
1、配置编辑器(article.component.html):
<ckeditor [editor]="contentEditor" [data]="contentData" [config]="ckConfig" … ></ckeditor>
...
Posted by 唧唧 | tags: CentOS Nginx
1、下载nginx
# wget https://nginx.org/download/nginx-1.24.0.tar.gz
# tar -zxvf nginx-1.24.0.tar.gz
2、安装ssl模块:
# yum -y install openssl openssl-devel
Posted by 唧唧 | tags: CentOS MySQL
1、下载 安装包:
# wget https://dev.mysql.com/get/Downloads/MySQL-8.2/mysql-8.2.0-linux-glibc2.28-x86_64.tar.xz
...
Posted by 唧唧 | tags: jQuery HTML5 条形码 摄像头
由于工作需要,今天探索了一下在手机端web调用摄像头扫描的方式,实现了条形码的输入。
本次采用的是:quaggaJS 插件:
...#wget http://download.redis.io/releases/redis-3.0.3.tar.gz
#tar xvzf redis-3.0.3.tar.gz
#cd redis-3.0.3
...Posted by 唧唧 | tags: CentOS Linux SVN
1、安装SVN服务端:
[root@localhost ~]# yum install subversion
2、判断SVN是否安装成功:
[root@localhost ~]# svnserve --version
svnserve, version 1.6.11 (r934486)
...
3、创建SVN库目录
[root@localhost /]# mkdir /opt/svn/repos -p
[root@localhost /]# svnadmin create /opt/svn/repos
[root@localhost /]# ll /opt/svn/repos/
total 24
drwxr-xr-x. 2 root root 4096 Apr 2 11:22 conf
drwxr-sr-x. 6 root root 4096 Apr 2 11:22 db
-r--r--r--. 1 root root 2 Apr 2 11:22 format
drwxr-xr-x. 2 root root 4096 Apr 2 11:22 hooks
drwxr-xr-x. 2 root root 4096 Apr 2 11:22 locks
-rw-r--r--. 1 root root 229 Apr 2 11:22 README.txt
Posted by 唧唧 | tags: CentOS 防火墙
开放端口:
[root@WX32 ~]# iptables -I INPUT -p tcp --dport 80 -j ACCEPT
保存配置:
[root@WX32 ~]# service iptables save
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
重启防火墙:
[root@WX32 ~]# service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]
Posted by 唧唧 | tags: CentOS JDK
卸载OpenJDK:
[root@WX32 local]# java -version
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)
[root@WX32 local]# rpm -qa | grep java
java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
[root@WX32 local]# rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5
[root@WX32 local]# rpm -e --nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
JMF核心框架支持不同媒体(如:音频输出和视频输出)间的时钟同步。它是一个标准的扩展框架,允许用户制作纯音频流和视频流。详细介绍
Sybase 的官方驱动 jConnect4 (链接字符串:jdbc:sybase:Tds:127.0.0.1:5000/xxx) 结合myBatis使用时,发现如下问题,当insert或者update语句的变量含有null值,会报错:
### Cause: java.sql.SQLException: JZ006: 捕获到 IO 例外:java.io.IOException: JZ0SL: 不受支持的 SQL 类型 1111。
Cause: java.sql.SQLException: JZ006: Caught IOException: java.io.IOException: JZ0SL: Unsupported SQL type 1111.
由于参数出现了null值,myBatis进行操作的时候,指定jdbcType类型的参数时,mybatis默认设置为jdbcType.OTHER,导致Sybase数据库无法识别此格式。
...