自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

MaggieTian77的博客

hello world

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

原创 maven指定范围依赖

       许多大型的项目都已经模块化或组件化了,每个组件都可以自己进行版本发布,由于各组件之间有依赖关系,一个组件的版本号频繁修改(例如每个组件都遵从语义化版本控制语义化版本控制,当bugfix时修订版本号会频繁的进行修改),会引起依赖它的组件也需要及时修改依赖的版本号,这样既繁琐又低效。这时候可以通过指定范围依赖来解决,上层的组件可以不用关心下层的组件版本号修改(在不影响使用的前提下)。...

2019-02-12 19:24:09 2718 2

原创 Jenkins Allure Report 插件的相关配置

Allure 是一个report框架,支持多语言,多平台。可以通过Junit/Testng/pytest等产生的结果集生成酷炫好看的report;同时也可以支持自定义字段,将你想展示的结果展示在报告中,关于它的详细介绍与使用请参考:Allure Framework这里主要讲一下如何在jenkins上集成allure report。allure report的生成需要allure command...

2018-06-27 20:04:33 9016 3

原创 Jenkins 为每个job配置相应的jdk版本

在使用jenkins构建项目时会遇到不同的job需要配置不同版本的jdk。例如job1里构建project A 时需要的jdk版本是1.7的,但是在job2里面构建project B时,却需要的jdk版本是1.8的。或者是同一个job需要在构建时根据情况指定不同的jdk版本等情况。此时就需要为job指定使用的jdk版本,这个需求可以通过配置jenkins Global Tool Configura...

2018-06-27 16:35:49 18248 3

原创 Gerrit常见问题解决

由于要做代码审核,公司部分项目从gitlab上迁移到了gerrit系统上,很多人在使用中会经常出现以下问题,这里记录下。从gitlab上克隆了代码,并且已经进行了修改提交,但是代码只能推送到gerrit上,这时候该怎么办呢?操作方法1.把项目工程下的.git/config文件中的url的值修改为gerrit上的ssh地址; 即把上图中红线标识部分改为下图中红线标识部分...

2018-04-09 17:28:22 7664 1

原创 Pyqt5中实现鼠标点击QComboBox刷新下拉菜单项

Pyqt5 +Python3.6+Qtdesigner实现鼠标点击QCombox刷新下拉菜单项

2018-01-30 15:31:19 13966 5

原创 Jenkins设置GitLab push事件发生时自动构建

主要讲解如何Jenkins设置GitLab push事件发生时自动构建

2018-01-20 14:14:14 13681 5

原创 GIT简单介绍与使用

本文主要是简单介绍分布式版本控制系统Git,并讲解一些常用命令的使用。

2017-11-23 15:53:05 382

原创 [leetcode]数组类题目总结与回顾(287,1014)

287.Find the Duplicate NumberGiven an arraynumscontainingn+ 1 integers where each integer is between 1 andn(inclusive), prove that at least one duplicate number must exist. Assume that the...

2019-04-13 21:44:16 325

原创 [leetcode]数组类题目总结与回顾(287,268,136,1014,905)

今天做了数组类的这几道题(287,268,136,1021,1014,905)这几道题中有的是实在想不出来参考了其他人的解法,也有完全自己想出来的,有些虽然是easy的题,但仍想不出好的解决方法,通过这几道题感觉学到了许多,感觉还是需要整理与回顾一下。首先来看下这两道题,对时间复杂度或是空间复杂度都有严格的要求:136.Single Number题目描述:Given anon-...

2019-04-13 21:00:19 760

原创 Find First and Last Position of Element in Sorted Array(python)

Given an array of integersnumssorted in ascending order, find the starting and ending position of a giventargetvalue.Your algorithm's runtime complexity must be in the order ofO(logn).If the...

2019-04-06 22:36:55 359

原创 Remove Duplicates from Sorted List (python)

对于Remove Duplicates from Sorted List这个题有两种:第一种是将重复的元素只保留一个,多余重复的去掉;第二种是重复的节点都去掉。第一种:Given a sorted linked list, delete all duplicates such that each element appear onlyonce.Example 1:Input: ...

2019-04-04 22:42:24 348

原创 Merge Sorted Array (python)

题目:Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:The number of elements initialized innums1andnums2aremandnrespectively. You may assume...

2019-03-30 21:49:10 333

原创 Pairs of Songs With Total Durations Divisible by 60 (python)

题目:In a list of songs, thei-thsong has a duration oftime[i]seconds.Return the number of pairs of songs for which their totalduration in seconds is divisible by60. Formally, we want the num...

2019-03-26 14:04:56 319

原创 Complement of Base 10 Integer(python)

题目:Every non-negative integerNhas a binary representation. For example,5can be represented as"101"in binary,11as"1011"in binary, and so on. Note that except forN = 0, there are no leadi...

2019-03-17 18:56:49 469

空空如也

空空如也

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

TA关注的人

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