velocity

从老板到项目成员,如何从燃尽图中洞悉团队工作?

末鹿安然 提交于 2019-12-04 13:36:11
很多时候,我们感觉什么都没干一天就过去了,但对领导者来说,事情最好已经提前做完了,而且是越快越好。聪明的管理者知道,“时间”是需要花大功夫去把控的限制因素,只有掌握了更多关于时间和工作的数据,我们才能更好地执行计划,在预算范围内按时完成项目。 燃尽图就是用来反映此类项目数据的工具,常用于敏捷软件开发中,如Scrum。它可以呈现剩余工作量和可用剩余时间,并通过可视化的图示表述繁复文字无法表述的意思。 一、燃尽图是什么? 燃尽图可以呈现团队处理用户故事进度,是一种对工作完成情况可视化展示的工具,燃尽图可显示每次迭代工作总量中仍需完成的工作余量。 燃尽图的横轴显示工作天数,纵轴显示剩余工作,反映了项目启动以来的进度情况,它让每个团队成员都能够看到当前的进度,团队需定期更新燃尽图以保持其准确性。 目前存在两种形式的燃尽图,Sprint燃尽图用于显示迭代中的剩余工作量,而产品燃尽图则用于说明整个项目的剩余工作量。 二、常见燃尽图类型有哪些? CORNERSTONE 将燃尽图分为七种情况,个人根据理解及实际情况修改如下几种: Case1:完美型。特征:一条直线。图形如下: 这种情况除非你团队都是神,否则基本上不可能出现这种情况。如果你的团队是这样的图,很可能遇到了个假的团队:本燃尽图纯属虚构,如有完美纯属巧合。 Case2:啤酒肚。特征:圆弧状,且实际曲线一直在理想直线上方。图形如下:

Java Robot mouse move: setting speed?

时光怂恿深爱的人放手 提交于 2019-12-04 12:30:29
The Java Robot class allows one to move the mouse as if the actual physical mouse was moved. However, how does one move the mouse from Point1 to Point2 in a humane (and thus not instant) manner? Aka, how does one set the speed of movement? If no such speed is possible with the Robot class, thus if the mouse can only be moved instantenously, what kind of "algorithm" should be used to mimic a human's mouse movement? Should it move the mouse pixel by pixel with a certain incrementing speed? The Robot class has a delay(...) method that you can use to control movement from point to point. Try a few

Better template language needed [closed]

非 Y 不嫁゛ 提交于 2019-12-04 11:06:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Yes, I know that this has been asked before. But most of the questions were two years ago, and there's got to be a better answer today. I need a template language for rendering HTML. Requirements: Must be callable from Java. Must not be Freemarker, Velocity, or StringTemplate. We've been using Freemarker for a

Defining database queries inside Velocity templates

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 07:37:29
I am looking at various libraries that can be used as a templating engine in my project and right now Apache Velocity looks like a good candidate. I have the following doubts regarding its usage: Is it possible to specify a SQL database query in a template and use the querys' return value to fill a parameter?. I found the following example in the Velocity user guide: Hello, #set( $result = $query.criteria("name") ) Your username is $result. However the guide does not explain much about executing SQL queries. Is it possible to define a SQL SELECT query which returns a value and assign this

How to include a static or uploaded file in Velocity macro via #include

戏子无情 提交于 2019-12-04 07:35:29
I am trying to optimize some mobile web pages (or number of server requests more accurately) by in-lining some CSS in the HTML downloaded with initial request. These pages are delivered from our Vosao-based CMS, and use Apache Velocity macros. This works fine, as expected. <link rel="stylesheet" type="text/css" media="screen" href="/file/downloads/contact.css" This fails <style> #include( "/file/downloads/contact.css" ) </style> as Velocity cannot find the file, with this output org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/file/downloads/contact.css' and

Apache's Velocity — getTemplate() . how to pass string/object instead of .VM file

冷暖自知 提交于 2019-12-04 04:08:20
Apache's Velocity — getTemplate(). Actually its allowing to pass the .vm file name , can i pass the string/object here? is there any method available to pass the string/object? This is a sample code that is working for me. Velocity version: 1.7 I use log4j as a logger. import org.apache.log4j.Logger; import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.Velocity; import org.apache.velocity.app.VelocityEngine; import org.apache.velocity.runtime.RuntimeConstants; import org.apache.velocity.runtime.resource.loader.StringResourceLoader;

Can I add custom objects to Velocity context with Maven archetype plugin?

99封情书 提交于 2019-12-04 03:27:25
We have a number of code generators that use Velocity to generate projects. The generation can be quite complicated: reflection is used (to introspect 3rd party proxies that we have to interface with) prior to calling velocity - the resulting properties (a complex object graph) are added to the velocity context the project structure and files can vary depending on the options selected the templates do more than just variable substitution (they make use of a custom object added to the velocity context, which contains many derived properties, including collections of other objects which are

can Velocity set a default value for a variable when no value found in VelocityContext?

夙愿已清 提交于 2019-12-04 03:22:45
问题 Velocity just print the tag name if no value was found in VelocityContext, ie, $name in my template file, but there is no value for "name" in VelocityContext, so just "$name" was printed. I want Velocity to print a default value if there is no value for the variable, I just tried to extends AbstractCotnext and override internalGet() method, but the return value of internalGet() will be cast to Node object, I don't know how to create a new Node object in my internalGet() method, and also I

change velocity logging to console

断了今生、忘了曾经 提交于 2019-12-04 03:17:09
I'm trying to integrate velocity with an existing log4j.xml configuration and am hitting a wall. I can't seem to get it to use the console appender - no matter what I've tried it keeps sending out to velocity.log . <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="consoleAppender" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d | %5p | %m%n" /> </layout> </appender> <logger name="runtime

Where does Velocity search for the template?

柔情痞子 提交于 2019-12-04 00:25:46
I need to use Velocity from Java-code in a web-application (I use it as mail-templates processor). So, I have a standard code: VelocityEngine ve = new VelocityEngine (); try { ve.init (); Template t = ve.getTemplate (templatePath); ... } catch (Exception e) { throw new MailingException (e); } This code always throws the ResourceNotFoundException . Where should I place my templates in web-application (WEB-INF? classpath? etc?) and how should I specify path (i.e. what should I pass as templatePath )? Péter Török You need to initialize Velocity first by calling Velocity.init() (in the singleton