自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

北极熊vv的博客

初学乍练

  • 博客(21)
  • 收藏
  • 关注

原创 shell expect scp file

#!/bin/bash#upload file or folder to server#source scp_profile.shFILE_NAME=""SERVER_HOST="123.123.123.123"SERVER_PORT=123LOGIN_USER="username"PASSWORD="password"UPLOAD_ROOT_FOLDER="/upload_path"w

2017-08-31 21:16:25 248

原创 shell of zip like war

(1)zip options -f :update file or add file-m :add file to zip achive then delete the original file-u :same as -f(1)add file zip -m xxx.war filepath zip -f xxx.war filepath~$unzip -l test.warArchiv

2017-08-29 15:19:04 276

原创 shell of ssh

(1)login ssh#!/usr/bin/expectset timeout 30spawn ssh -l username -pxxx 123.123.123.123expect "password:"# xxx is your passwordsend "xxx\r"interact(2)scp files to server#!/usr/bin/expectset timeout

2017-08-29 14:50:29 317

原创 shell of mysql

(1)login mysql#!/bin/bashmysql -uxxx -pxxxx -A(2)mysqldump [tables, data, functions and procedures] #!/bin/bashecho "export tables and data"mysqldump -hxxx -Pxxx -uxxx -pxxx --default-character-set=u

2017-08-29 14:44:07 393

原创 windows install mariadb(zip)

(1)unzip mariadb_10.x.x_winx64.zip my path–>C:\Program Files\mariadb-10.2.7-winx64 (2)edit my-large.iniadd:...[client]default_character_set=utf8...[mysqld]basedir=C:\Program Files\mariadb-10.2.7

2017-08-18 10:17:27 683

原创 springmvc url-pattern and static resources

(1) these code intercept all requests<servlet-mapping> <servlet-name>springMVC</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>(2)static resource like html, js, css, fonts shoul

2017-06-16 17:06:12 463

原创 @Responsebody utf8 Chinese gibberish

Chinese gibberish–>controller return a String “中文” to html, but html shows “??”.create a class likepackage com.fc.test.utils;import org.springframework.beans.BeansException;import org.springframework.

2017-05-25 15:13:49 279

原创 ssm 4.3.8 pom

spring-core–>base dependency spring-beans–>base dependency spring-context–>base dependency spring-context-support–>for springmvc spring-tx–>for declarable transaction spring-aop–>for aop like decl

2017-05-25 15:07:51 184

原创 springmvc4 url pattern for 404

springmvc 4.3.8 + htmlWe configure dispatherservlet url-pattern in web.xml. We hope to intercept all requests by this config. (1) put all static resources into WEB-INF –> reject all request for stati

2017-05-25 11:04:45 325

原创 Tomcat9 users and roles, Remote deploy

In the past sevral versions of Tomcat, only two kinds roles, admin and manager. In manager, there are four roles, manager-gui, manager-status, manager-script, manager-jmx. admin-gui - allows ac

2017-04-22 14:04:14 295

原创 unmappable character for encoding UTF-8

“Encoding” is one of the most headache problem in a webapp. It alway goes with these kinds of files: java, javascript. And the cause is widely related to our system encoding, file encoding, idea encodi

2017-04-21 17:00:07 5581

原创 About Git commands

workspace–add–>temporary storage–commit–>local version repository–push–>remote version repository.(1)all local work global work git config -l –> list the configuration git config -\-global user.name

2017-03-22 18:26:38 278

原创 Jenkins2.32.3+Git+Maven+Tomcat+Ubuntu Linux

–>Wed Mar 22 2017 –>Jenkins_2.32.3 –>Jenkins plugins: Maven Integration plugin, Publish Over SSH, Deploy to Container Plugin (These plugins you have to install manually!) –>Tomcat9 –>Ubuntu_

2017-03-22 11:47:35 464

原创 eclipse neon部署web工程到tomcat以外的路径并在localhost:8080上管理

eclipse把web工程部署到tomcat安装路径以外的目录,此时从eclipse启动tomcat的server,是不能访问localhost:8080的,需要一个xml文件映射工程,并且用startup.sh启动tomcat,这时才能使用tomcat的管理工具。

2016-09-23 18:40:07 3268 1

原创 jsp获取ckeditor内容

平台win10  ie11  ckeditor4.5.11function showcontent(){var editor = CKEDITOR.instances.editor1;var selection = editor.getSelection();//获取选中对象var content_with_tag = editor.getData();

2016-09-14 16:14:21 1021

原创 ckeditor4.5.11+ckfinder_java2.6.2配置

win10下eclipse neon配置ckeditor4.5.11+ckfinder2.6.2。

2016-09-14 12:54:39 2344 3

原创 双系统ubuntu16.04 64位安装android studio并启动虚拟机

双系统ubuntu16.04 64位安装android studio,解决无法创建虚拟机和运行虚拟机的问题,这是缺少32位库,和路径配置错误导致。解决初次进入ide时R文件报错问题,这是build tools版本太低导致。解决编辑器无法输入中文的问题,这是缺少文件配置

2016-07-23 20:29:34 1629

原创 Ubuntu 16 eclipse 4打开后没有菜单栏的解决方法

Ubuntu 16 eclipse 4打开后没有菜单栏的解决方法 1,、在用户目录下新建一个eclipse.sh,其内容如下: export UBUNTU_MENUPROXY=0 /opt/eclipse/eclipse 第二行是指项eclipse安装目录里的eclipse启动器。 在文件属性中设置位可执行。 2、回到桌面创建一个eclipse.desktop,内容如下: [Deskt

2016-07-04 11:42:13 654

原创 Ubuntu 16.04 mysql5.7+mysql workbench和控制台插入中文问题

Ubuntu 16.04 MySql5.7+mysql workbench和控制台插入中文问题

2016-07-04 00:09:02 1325

原创 Ubuntu 16.04 SQLite3工具sqlitebrowser无法输入中文的解决方法

Ubuntu 16.04 SQLite3工具sqlitebrowser无法输入中文的解决方法 在打开(或者新建)数据库时,弹出选择框,在该框内可以切换输入法打字,关掉该框之后,返回程序,可以切换中文输入。

2016-07-04 00:06:45 825

原创 ubuntu16安装android studio2.1

实测,linux下使用android studio开发,资源占用少,模拟器速度快,比win流畅很多。jdk、android studio、sdk文件下载和安装,环境变量的配置;文件的权限问题,android studio无法输入中文的问题以及failed to create sdcard问题的解决方法。注意:一些解决方法不会在改动之后立即生效,需要重启电脑。

2016-07-03 13:58:20 4014 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除