1.问题描述
试图转换Dynamic Web Module 发生如下错误:
1 | Cannot change version of project facet Dynamic Web Module to 3.0 |
下载并安装 Visual Studio Code, 官方下载
下载并安装 Nodejs, 官方下载
1 | node -v |
npm 镜像源修改为 淘宝NPM镜像
1 | npm install -g cnpm --registry=https://registry.npm.taobao.org |
下载并安装 Git, 官方下载
1 | #配置名字和邮箱 |
安装 Hexo, 官方文档
1 | cnpm install -g hexo-cli |
初始化博客目录
1 | cd D |
启动服务器,本地预览
1 | hexo server |
1 | >>> dic = {} |
另一种形式:1
2temp = dict()
temp['name'] = 'xiaoming'
1 | >>> dic = {'spam':1, 'egg':2, 'bar':3} |
1 | >>> dic = dict(spam = 1, egg = 2, bar =3) |
1 | SQLite数据库是一款非常小巧的嵌入式开源数据库软件,也就是说 |
find_element_by_id()
find_element_by_name()
find_element_by_class_name()
find_element_by_tag_name()
find_element_by_link_text()
find_element_by_partial_link_text()
find_element_by_xpath()
find_element_by_css_selector()
selenium
访问爱奇艺网站selenium 是一种常用的自动化测试工具。它支持各种浏览器,包括 Chrome,Safari,Firefox 等主流界面式浏览器,如果你在这些浏览器里面安装一个 Selenium 的插件,还可以通过录制,快速生成脚本。
selenium 支持多种主流的开发语言,比如
Ruby
,java
,python
,javascript
。
python3.7.3
运行 pip install selenium
就可以直接下载最新的selenium版本
浏览器:chrome 70.0.3538.77
操作系统:win7
selenium版本: 3.14.1
chromedriver: https://npm.taobao.org/mirrors/chromedriver/70.0.3538.97/
1 | from selenium import webdriver |
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment
一个简单的需求,当你的同事需要调试代码的时候,他并不想建立maven环境,这时候依赖的jar包 该如何导出呢?
这时候你需要的是maven-dependency-plugin。
1 | <plugins> |
此处的<outputDirectory>
指定了你导出jar包的路径.
mvn dependency:copy-dependencies
/alternateLocation
目录,并且依赖的jar包都下载到这个目录下了。c:/apps/nginx
1 | cd c:/apps/nginx |
1 | tasklist /fi "imagename eq nginx.exe" |
notice
一个是主进程(main process),另一个是工作进程(work process).如果启动失败,请查看错误日志logs\error.log
nginx.conf
reference config1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18error_log logs/error.log;
http {
include mime.types;
default_type application/octet-stream;
server {
listen 8080;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
...
}
1 | nginx -s stop 快速退出 |
gitlab
中的统计视图是根据用户的信息统计工作量 那么如何修改已经推送到远程的author信息呢?
github
官方提供的建议如何变更用户信息
同时也有类似的项托管在github
上,git-tips-blame-someone-else
思路基本一致,就是替换提交记录、分支、标签里的author信息。
git bash
)1 | git clone --bare https://github.com/user/repo.git |
1 | OLD_EMAIL |
脚本replace.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_AUTHOR_NAME="$CORRECT_NAME"
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags
sh replace.sh
git log
git push --force --tags origin 'refs/heads/*'
1 | cd .. |