stage

Jenkins Pipeline

元气小坏坏 提交于 2019-11-28 10:33:45
jenkins + pipeline构建自动化部署 pipeline { agent any tools { maven 'maventool' } stages { stage ('初始化') { steps { sh ''' echo "PATH = ${PATH}" echo "M2_HOME = ${M2_HOME}" ''' } } stage('拉取代码') { // for display purposes steps { git branch: 'release-2.0', credentialsId: '7cb3c8ca-b916-49eb-95fc-be3b243c3a93', url: 'http://url:9080/Shtel-PaaS/Shtel-PaaS-DevOps/paas-devops-pipeline.git' sh 'git checkout v2.0.1' } } stage('maven构建') { steps { // Run the maven build sh "mvn clean -U package -Dmaven.test.skip=true" } } stage('拉取部署剧本') { // for display purposes steps { sh "rm -rf paas-svc-k8s-deploy

JavaFX 2.0: Closing a stage (window)

ⅰ亾dé卋堺 提交于 2019-11-28 06:18:11
I'm making a application in JavaFX 2.0. From my main window I am starting a new window with some settings. After I am done adjusting the settings I want to press a button like "Save changes". I would like this button to save the changes and close the window. By closing i mean killing it, not placing it in the background or setting the visibility. I've read about a method Stage.close() http://docs.oracle.com/javafx/2.0/api/javafx/stage/Stage.html As you can see it's similar to the method Hide(), which only hides the window, not closing it. Q: Anybody knows any methods or have some code that

When to use actors in libgdx? What are cons and pros?

蓝咒 提交于 2019-11-28 04:24:04
I'm writing simple solar system simulator. This is my first libgdx project. I'm using a Stage and Actors for the main menu and is pretty handy especially touch events handling. But ... looking at the examples i see nobody uses actors in actual game logic. I wander if i should use actor as a parent of planet class or just write my own class tor that. The planets won't be touchable and they will be moved only between the frames so the third parameter of action MoveBy will have to be time between frames. That are the cons. What are the pros for using Actors? The main pros for Actors are Actions,

mongodb 索引分析

南楼画角 提交于 2019-11-28 03:27:31
对queryPlanner分析 queryPlanner: queryPlanner的返回 queryPlanner.namespace:该值返回的是该query所查询的表 queryPlanner.indexFilterSet:针对该query是否有indexfilter queryPlanner.winningPlan:查询优化器针对该query所返回的最优执行计划的详细内容。 queryPlanner.winningPlan.stage:最优执行计划的stage,这里返回是FETCH,可以理解为通过返回的index位置去检索具体的文档(stage有数个模式,将在后文中进行详解)。 queryPlanner.winningPlan.inputStage:用来描述子stage,并且为其父stage提供文档和索引关键字。 queryPlanner.winningPlan.stage的child stage,此处是IXSCAN,表示进行的是index scanning。 queryPlanner.winningPlan.keyPattern:所扫描的index内容,此处是did:1,status:1,modify_time: -1与scid : 1 queryPlanner.winningPlan.indexName:winning plan所选用的index。

SPARK总结之RDD

安稳与你 提交于 2019-11-27 19:25:01
一、RDD的概述 1.1 什么是RDD? RDD(Resilient Distributed Dataset)叫做 弹性分布式数据集 , 是Spark中最基本的数据抽象 ,它代表一个不可变、可分区、里面的元素可并行计算的集合。RDD具有数据流模型的特点:自动容错、位置感知性调度和可伸缩性。RDD允许用户在执行多个查询时显式地将工作集缓存在内存中,后续的查询能够重用工作集,这极大地提升了查询速度。 1.2 RDD的属性 (1)一组分片(Partition),即数据集的基本组成单位。对于RDD来说,每个分片都会被一个计算任务处理,并决定并行计算的粒度。用户可以在创建RDD时指定RDD的分片个数,如果没有指定,那么就会采用默认值。默认值就是程序所分配到的CPU Core的数目。 (2)一个计算每个分区的函数。Spark中RDD的计算是以分片为单位的,每个RDD都会实现compute函数以达到这个目的。compute函数会对迭代器进行复合,不需要保存每次计算的结果。 (3)RDD之间的依赖关系。RDD的每次转换都会生成一个新的RDD,所以RDD之间就会形成类似于流水线一样的前后依赖关系。在部分分区数据丢失时,Spark可以通过这个依赖关系重新计算丢失的分区数据,而不是对RDD的所有分区进行重新计算。 (4)一个Partitioner,即RDD的分片函数

How to Change the icon on the title bar of a stage in java fx 2.0 of my application [duplicate]

风流意气都作罢 提交于 2019-11-27 17:57:03
问题 This question already has answers here : JavaFX Application Icon (18 answers) Closed 2 years ago . I have tried the stage.getIcons().add(new Image("attuncore.jpg")); But I don't know what is going wrong .. Please help. Thanks in advance. 回答1: Full program for starters :) This program set Stack Overflow Icon. import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.image.Image; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class

Is it possible to have a transparent utility stage in javafx? [duplicate]

梦想的初衷 提交于 2019-11-27 15:24:26
This question already has an answer here: A javaFX Stage could be both StageStyle.UTILITY and StageStyle.TRANSPARENT? 5 answers I know that you can set a stage to have a utility style "Stage.InitStyle(StageStyle.UTILITY);" and you can set it to have a transparent style "Stage.InitStyle(StageStyle.TRANSPARENT);" but can you have both in the same stage? I am tiring to make it so that the stage does not show as a window down in the start menu and I would like the stage to be invisible so that you can only see the scene. You can always do it the old way using Swing where that feature was available

Non-local算法代码解析

a 夏天 提交于 2019-11-27 14:47:59
论文:Non-local Neural Networks for Video Classification 论文链接: https://arxiv.org/abs/1711.07971 代码链接: https://github.com/facebookresearch/video-nonlocal-net 官方代码是基于Caffe2实现,这篇博客介绍该项目的主要代码,通过代码加深对该算法的理解。 假设~video-nonlocal-net是从 https://github.com/facebookresearch/video-nonlocal-net 拉下来的项目目录。因为代码是以video分类为例,所以网络结构上和图像分类采用的ResNet在维度上有些差异,但是整体网络结构还是和ResNet一样包含conv1到conv5_x和一些池化及全连接层,对于ResNet-50而言,conv2_x、conv3_x、conv4_x、conv5_x的block数量分别是3,4,6,3,对于ResNet-101而言则分别是3,4,23,3,这两个网络是该代码中的主要例子。 训练启动脚本都在~video-nonlocal-net/scripts/目录下,从训练脚本可以看出non-local的操作只在conv3_x和conv4_x两个stage中引入,conv2_x和conv5

Center stage on parent stage

老子叫甜甜 提交于 2019-11-27 14:38:45
I am creating an application in JavaFx, In which I want to do that if any child stage is getting opened then it should be opened in center of parent stage. I am trying to do this using mystage.centerOnScreen() but it'll assign the child stage to center of screen, not the center of parent stage. How can I assign the child stage to center of parent stage? private void show(Stage parentStage) { mystage.initOwner(parentStage); mystage.initModality(Modality.WINDOW_MODAL); mystage.centerOnScreen(); mystage.initStyle(StageStyle.UTILITY); mystage.show(); } You can use the parent stage's X/Y/width

spark-DAG,宽窄依赖,Stage,Shuffle

别说谁变了你拦得住时间么 提交于 2019-11-27 10:47:52
spark-DAG图 DAG(Directed Acyclic Graph) 叫做 有向无环图 , 原始的RDD通过一系列的转换就就形成了DAG,RDD之间的依赖关系形成了DAG图,而根据RDD之间的依赖关系的不同将DAG划分成不同的Stage。 宽窄依赖 窄依赖:父RDD和子RDD partition之间的关系是一对一的。或者父RDD一个partition只对应一个子RDD的partition情况下的父RDD和子RDD partition关系是多对一的。 不会有shuffle的产生。父RDD 的 一个分区 去到 子RDD的一个分区 。 宽依赖:父RDD与子RDD partition之间的关系是一对多。 会有shuffle的产生。父RDD的一个分区的数据去到子RDD的不同分区里面。 Stage Spark任务会根据RDD之间的依赖关系,形成一个DAG有向无环图,DAG会提交给DAGScheduler,DAGScheduler会把DAG划分相互依赖的多个stage,划分stage的依据就是RDD之间的宽窄依赖。 遇到宽依赖就划分stage,每个stage包含一个或多个task任务。然后将这些task以taskSet的形式提交给TaskScheduler运行。stage是由一组并行的task组成。 stage切割规则 切割规则: 从后往前,遇到宽依赖就切割stage。 Shuffle