生而为人

程序员的自我修养

0%

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.microsoft.sam.SAMJobRunner</mainClass>
<manifestEntries>
<Class-Path>..</Class-Path>
</manifestEntries>
</transformer>

<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/cxf/bus-extensions.txt</resource>
</transformer>

</transformers>
</configuration>

包冲突

02_XMDLOG_绑定包冲突排查方法

maven依赖的jar包版本不一样_Maven依赖jar包冲突常见的解决方法

1
2
3
4
5
6
7
8
9
10
[ERROR] Failed to execute goal on project SAM: Could not resolve dependencies for project com.microsoft:SAM:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.scala-lang:scala-reflect:jar:2.12.12, org.scalatest:scalatest_2.12:jar:3.0.8, org.scalactic:scalactic_2.12:jar:3.0.8: Could not transfer artifact org.scala-lang:scala-reflect:jar:2.12.12 from/to BingDM (https://msasg.pkgs.visualstudio.com/_packaging/BingDM/maven/v1): authentication failed for https://msasg.pkgs.visualstudio.com/_packaging/BingDM/maven/v1/org/scala-lang/scala-reflect/2.12.12/scala-reflect-2.12.12.jar, status: 401 Unauthorized -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :SAM

setting.xml设置有问题

[toc]

公式

时间转换

ms unix timestamp to date

1
=(F2+8*3600)/86400000+70*365+19

second unix timestamp to date

1
=(F2+8*3600)/86400+70*365+19

[toc]

文件间跳转

Markdown 语法

图片保存

PicGo config

PicGo config2

设置

配置文件

通过文件-偏好设置-外观-打开主题文件夹,找到主题配置文件目录。如果没有找到对应的配置文件,可以手动生成。

配置文件分类

  1. base.user.css 基础的用户自定义配置文件,会全局生效,优先级第二。
  2. {当前主题}.user.css 主题级的用户自定义配置文件,当前主题生效,优先级最高。
  3. {当前主题}.css 主题基础配置文件,当前主题生效,优先级最低。

优先级逻辑:自定义 > 基础;{当前主题} > base

加载顺序: {当前主题}.css -> base.user.css -> {当前主题}.user.css

toc展示的目录层级

配置文件中加入如下内容,建议加在base.user.css中

1
2
3
4
5
6
/* 隐藏四级、五级、六级标题(只显示 h1, h2, h3) */
.md-toc-h4,
.md-toc-h5,
.md-toc-h6 {
display: none;
}

格式

数学表达式

要启用这个功能,首先到Preference->Editor中启用。然后使用$符号包裹Tex命令,例如:$lim_{x \to \infty} \ exp(-x)=0$将产生如下的数学表达式:

img

下标

下标使用~包裹,例如:H~2~O将产生水的分子式。

上标

上标使用^包裹,例如:y^2^=4将产生表达式

img

下划线

用HTML的语法Underline将产生下划线Underline.

删除线

GFM添加了删除文本的语法,这是标准的Markdown语法木有的。使用~~包裹的文本将会具有删除的样式,例如~删除文本~将产生删除文本的样式。

代码

使用`包裹的内容将会以代码样式显示,例如

使用printf()

则会产生printf()样式。

输入~~~或者```然后回车,可以输入代码块,并且可以选择代码的语言。例如:public Class HelloWorld{ System.out.println(“Hello World!”); }

目录列表Table of Contents(TOC)

输入[toc]然后回车,将会产生一个目录,这个目录抽取了文章的所有标题,自动更新内容。

水平分割线

使用***或者—,然后回车,来产生水平分割线。

标注

我们可以对某一个词语进行标注。例如

某些人用过了才知道[^注释] [^注释]:Somebody that I used to know.

将产生:

把鼠标放在注释上,将会有提示内容。

强调

使用两个*号或者两个_包裹的内容将会被强调。例如

使用两个*号强调内容 使用两个下划线强调内容

将会输出

使用两个号强调内容 使用两个下划线强调内容 Typroa 推荐使用两个号。

斜体

在标准的Markdown语法中,*和_包裹的内容会是斜体显示,但是GFM下划线一般用来分隔人名和代码变量名,因此我们推荐是用星号来包裹斜体内容。如果要显示星号,则使用转义:

*

插入图片

我们可以通过拖拉的方式,将本地文件夹中的图片或者网络上的图片插入。

插入URL连接

使用尖括号包裹的url将产生一个连接,例如:将产生连接:www.baidu.com.

如果是标准的url,则会自动产生连接,例如:www.baidu.com

插入表情

使用:happy:输入高兴的表情,使用:sad:输入悲伤的表情,使用:cry:输入哭的表情等。以此类推!

img