velocity

Matlab 3D Matrix Plot [duplicate]

不打扰是莪最后的温柔 提交于 2019-11-30 04:37:17
问题 This question already has answers here : Plotting 3-D Matrix *values* in MATLAB (2 answers) Closed 4 years ago . Ive created a 3d matrix in MATLAB. The values of the matrix are the velocity at that point in a rectangular section. I would like a plot with colours showing the values at each position, is this possible? Phrasing this another way, I have a matrix of size 100x100x200. Id like a graph that has 100x100x200 points and the colour of each of those points is related to its value. 回答1:

JSP vs Velocity what is better?

牧云@^-^@ 提交于 2019-11-30 01:24:30
What is better between JSP and velocity in - Performance - Ease of use - Ease of creating reusable components - Availability of open source 3rd parties - IDE support Advantages of Velocity: strict separation of view from business logic simple syntax that can be understood by graphic designers @Vartec: I don't think that the "strict separation of view from business logic" is a velocity feature that is not present in jsp. You can do business logic in jsp (more or less) but it's not recommended at all. But I agree in your point regarding the syntax. Performance JSP is compiled to Java, so I don't

Error in velocity and log4J

ε祈祈猫儿з 提交于 2019-11-30 00:57:06
问题 I built a webapp that works perfectly fine in my localhost (tomcat). But when I tried to deploy, velocity crashes in init(), leaving me with this strange stack trace here (sorry for the size): ERROR [main] (VelocityConfigurator.java:62) - Error initializing Velocity! org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration. at org.apache.velocity.runtime.log.LogManager

CVE-2019-0193(Apache Solr Velocity模板注入RCE)漏洞复现

喜夏-厌秋 提交于 2019-11-29 23:56:34
Apache Solr Velocity模板注入RCE漏洞复现 你剥开一个很酸的橙子而感到后悔了,可对于橙子来说,那是它的一切. 目录 - 简介 - 漏洞概述 - 漏洞版本 - 漏洞复现 - 漏洞修复 简介 Solr是一个独立的企业级搜索应用服务器 ,它对外提供类似于Web-service的API接口。用户可以通过http请求,向搜索引擎服务器提交一定格式的XML文件,生成索引;也可以通过Http Get操作提出查找请求,并得到XML格式的返回结果。 漏洞概述: 该漏洞的产生是由于两方面的原因: *当攻击者可以直接访问Solr控制台时,可以通过发送类似/节点名/config的POST请求对该节点的配置文件做更改。 Apache Solr 默认集成VelocityResponseWriter插件 ,在该插件的初始化参数中的params.resource.loader.enabled这个选项是用来控制是否允许参数资源加载器 在Solr请求参数中指定模版,默认设置是false 。 当设置params.resource.loader.enabled为true时 ,将允许用户通过设置请求中的参数来指定相关资源的加载,这也就意味着攻击者可以通过构造一个具有威胁的攻击请求,在服务器上 进行命令执行 。* 漏洞版本: Apache Solr 5.x - 8.2.0,存在config API版本

Apache Solr Velocity[漏洞复现]

孤街醉人 提交于 2019-11-29 23:56:14
Apache Solr Velocity模板远程代码执行 CVE编号 暂无 漏洞威胁等级 高危 影响范围 包括但不限于8.2.0(最新版本) 漏洞复现 环境准备 下载最新的Solr 链接https://mirrors.tuna.tsinghua.edu.cn/apache/lucene/solr/8.2.0/solr-8.2.0.zip 解压以后,进入solr-8.1.0/bin目录 使用./solr -e dih -force开启示例app 随后访问http://127.0.0.1:8983/solr/#/进入主界面 点击左侧的Core Selector查看集合名称 使用如下两个payload 1.修改源码包 POST /solr/db/config HTTP/1.1 Host: 192.168.0.54:8983 Pragma: no-cache Cache-Control: no-cache Accept: application/json, text/plain, */* User-Agent: Mozilla/5.0 ( Macintosh ; Intel Mac OS X 10_15_1 ) AppleWebKit/537.36 ( KHTML, like Gecko ) Chrome/78.0.3904.70 Safari/537.36 Referer: http:/

Apache Solr Velocity 远程命令执行漏洞

孤者浪人 提交于 2019-11-29 23:55:35
目录 漏洞背景 漏洞成因 影响版本 漏洞复现 获取core名称 加载指定资源 远程命令执行 修复建议 参考链接 漏洞背景 近日,国外安全研究员s00py公开了一个Apache Solr的Velocity模板注入的漏洞,可进行远程代码执行。 漏洞成因 Apache-Solr默认集成VelocityResponseWriter插件,该插件初始化参数中的 params.resource.loader.enabled 用来控制是否允许参数资源加载器在Solr请求参数中指定模版,默认设置是 false。攻击者通过POST请求直接将 params.resource.loader.enabled 修改为true。经过精心构造代码发送GET请求造成远程代码执行漏洞 影响版本 影响Apache Solr多个版本,包括最新版 8.2.0 漏洞复现 获取core名称 首先需要获取solr服务中的core名称,才可以执行攻击,可以从logging和core admin中获取 加载指定资源 通过POST请求把 params.resource.loader.enabled 设置为True,此时用户就可以加载指定资源,也就是构造一个能执行命令的恶意请求。 POST /solr/core名称/config HTTP/1.1 Host: ip:8983 Cache-Control: max-age=0

Velocity editor plugin for Eclipse? [closed]

萝らか妹 提交于 2019-11-29 22:52:35
I've seen Veloedit , which seems to have good syntax highlighting but doesn't allow tab characters in the file being edited (wtf?) and also has no understanding of HTML. With a little bit of googling I've found Veloecipse , which claims to build upon Veloedit and also add HTML support - but doesn't seem to be compatible with Eclipse 3.4 . Are there any other Velocity template editor plugins for Eclipse that anyone is using? The ideal solution would have the following features: Syntax hightlighting of VTL HTML syntax highlighting as well Auto-complete of VTL syntax Allows tabs! Update : see my

How to append hash tables in velocity template?

扶醉桌前 提交于 2019-11-29 17:28:20
I tried to append two hash tables in velocity. #foreach($dun1 in $dotcontent.pull("+structureName:Checnas +(conhost:fe1d98e8-9699-4f3f-abf5-a6c0afc8ab47 conhost:SYSTEM_HOST)",10,"modDate desc")) #set($foo={ $!{dun1.mname}:$!{dun1.subname} }) #end In the above for each loop I am pulling content from structure " Checnas ". But at the end we can get only the last value in the content.To solve that we need to append for every iteration.I need syntax for appending hash tables. Please help me to solve this. Karma-yogi Your code currently is over writing $foo each time and hence you are just getting

vue动画 css (animate.css) js(velocity.js)

橙三吉。 提交于 2019-11-29 16:34:15
1、动画实现的方式: ------动画在vue上的应用,实现过渡效果 (1)css3:transition、 animation、animate.css(框架) (2)js:jQuery、$animation({},{}) (框架);velocity 、 Velocity(el,{},{}) (框架) (1)使用css3技术实现: 原生css3:<transition>在渲染完毕之后是不存在的,div中会由vue添加一些样式 自定义过渡样式:通过transition组件,可以给任何元素和组件添加过渡; 条件渲染(使用v-if)、条件展示(使用v-show)、动态组件、组件根节点过渡类名 .v-enter(开始进入) .v-enter-to(进入结束) .v-enter-active(.v-enter到.v-enter-to的整个过程) .v-leave(开始出去) .v-leave-to(出去结束) .v-leave-active(.v-leave到.v-leave-to的整个过程) <script src="../js/vue.js"></script> <style> /* 过程 */ .v-enter-active,.v-leave-active{ transition: opacity 2s; } /*进入结束 开始出去 */ .v-enter-to,.v-leave{

Cocos2dx - Unable to set velocity = 0.0

无人久伴 提交于 2019-11-29 16:22:26
I'm making an pool game with cocos2dx. First, i setup the edgeBox with this parameters PhysicsMaterial(1.0f, 1.0f, 0.8f) And then these 2 balls PhysicsMaterial(1.0f, 1.0f, 0.5f) On the update function, i want slow down balls time by time without gravity (like making ground friction) by adding physicsBody->setLinearDamping(0.3); On the update function, i set the minimum velocity, if the velocity of each ball reaches lower than 15, reset velocity to 0,0 auto MV = 15; auto v1 = player1->getPhysicsBody()->getVelocity(); auto v2 = player2->getPhysicsBody()->getVelocity(); if (v1.x > MV || v1.x <