问题标签 [blueprint]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
682 浏览

osgi - 如何将消息从activemq队列传递到cxf客户端休息

我正在创建一条短信并将其放入 activemq 队列中,然后将其显示在日志中。现在我需要将此消息传递给 cxf rs 客户端以在参数中使用它。我正在使用蓝图来定义骆驼路线和 cxf 客户端。

任何人都可以帮助我吗?谢谢

0 投票
1 回答
74 浏览

ruby - GoodData::Model::ProjectBlueprint 是否支持任何方法将自身生成为 JSON 项目数据集清单文件到某个目录?

为了避免不完美的人工手动定义,我想知道如何从活动的 GoodData 项目生成 json 数据集清单文件以实现 Ruby 自动化?

我认为可能有一些命令行可以通过在控制台上输入 project.blueprint.~ 或 GoodData::Model::ProjectBlueprint 来实现这一点,例如 Windows 命令提示符,或者从 CloudConnect LDM 建模器的 MAQL 选项卡中找到 MAQL,或者从项目 web控制台,例如下一个位置;

https://secure.gooddata.com/gdc/md/ {project_id}/ldm/singleloadinterface/dataset.{dataset_name}

0 投票
1 回答
1143 浏览

java - JBoss Fuse - Maven Archetype Blueprint - Camel - Routing

I am trying to build a simple Camel route using JBoss Fuse and Maven basically. I am using the command mvn archetype:generate to create a skeleton project.

When the prompt says, "Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 582:" I type camel.

Then I select this option: 49: remote -> org.apache.camel.archetypes:camel-archetype-blueprint (Creates a new Camel project with OSGi blueprint support. Ready to be deployed in OSGi.)

Please see below:

Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : I type 49 for this option.

For the option Choose org.apache.camel.archetypes:camel-archetype-blueprint version: I press enter for Camel 2.15.1.

Define value for property 'groupId': : org.me

For the option: Define value for property 'artifactId': : fuse-ghettoblasting-blueprint

For the option: Define value for property 'version': 1.0-SNAPSHOT: : 1.0

For the option: Define value for property 'package': org.me: : org.me.demo

I run this command mvn clean install to install the pom.xml and the jar to my local Maven repository.

I then go to the JBoss Fuse console and type:

JBossFuse:karaf@root> osgi:install mvn:org.me/fuse-ghettoblasting-blueprint/1.0

Then I receive a bundle ID: Bundle ID: 389

When I typeJBossFuse:karaf@root> list I see the bundle but it says Failure in the Blueprint field as shown below: ID State Blueprint Spring Level Name `[ 389] [Active ] [Failure ] [ ] [ 60] Camel Blueprint Route (1.0.0)

I had a similar experience when running through this tutorial: https://codevomit.wordpress.com/2014/12/24/simple-camel-route-in-jboss-fuse/

This tutorial involved actually creating routes in the ActiveMQ interface on the localhost running at port 8181

Is there an expert out there reading this that knows what I am missing? Why is the Blueprint failing? Why is the Message sent from the Queue not logged as shown in the tutorial from CodeVomit?

Regards,

UPDATE

Here is my source code for the blueprint.xml file.

0 投票
1 回答
3229 浏览

c++ - 使用 Multi Touch 平移 - 缩放 - 轨道 - 虚幻引擎 -

我想为我的相机做一个多点触控

这台相机应该做:

捏合时放大/缩小

滑动时的轨道

用 2 根手指滑动时平移。

有没有人知道一些好的例子/教程或给我一些建议?太感谢了

0 投票
0 回答
1895 浏览

python - 对 Flask 蓝图和 socketio 的正确实现感到困惑

我有一个 Flask 应用程序,我已经对其进行了重组以利用蓝图。应用程序运行,一切似乎都正常,除了 SocketIO 和我的 socketio.on 事件。我从来没有看到 SocketIO 和 web 套接字尝试在 Chrome 调试器中连接或断开连接,它曾经说过的所有内容都是挂起的。我在这里检查了 Flask SocketIO Chat 示例,并得到了一些想法。我将所有事件移回了我的views.py。我似乎无法弄清楚为什么我的 sockio.on 事件没有被调用或触发。这是我的代码。应用程序.py

工厂.py

主要/_init_.py

主/views.py

静态/js/application.js

0 投票
1 回答
56 浏览

rest - 从自定义路由调用原生蓝图操作

在不同的项目中,我一直坚持一个非常基本的想法。

每次,都是同样的担忧。我想向关联中添加一条新记录,但在没有主键的情况下获取父项。

例如,让我们以api/models/car.js模型为例:

还有一个api/models/location.js模型:

一辆车可以有多个位置,一个位置只有一辆车。

我可以使用本机addTo蓝图操作向汽车添加位置

现在,如果出于某种原因,我无法访问汽车标识符,并且想使用另一个字段,例如唯一的 licensePlate 怎么办?

基本上,我会在config/routes中创建一个自定义路由,比如

为了能够打电话

这就是问题所在......打开我全新的动作控制器,我意识到,尽管按板选择我的汽车,但以下逻辑(验证、位置创建、位置创建发布、位置添加到汽车的位置集合、位置添加发布,错误处理)已经在sails.js 核心中实现。

所以这是一个问题:

如何使用自定义路由正确调用本机蓝图操作?

0 投票
0 回答
847 浏览

function - 通过 Line Trace 触发任何 Actor

我想为所有被 Line Trace 函数触发的演员触发一个标准函数。

那是我找到演员的功能,它有效。

蓝图

现在我想在 Actor 中触发诸如“点击”之类的功能。

在 Unreal Doc 上有一个TickActor()但似乎我无法访问此功能。

是否有任何预定义的功能来触发演员?

0 投票
0 回答
84 浏览

orm - Sails.js ORM 表创建

我想问一下,我假设我不必手动使用任何表创建查询,因为有一个 ORM。

每次我尝试连接到 MYSQL 时,它都会说没有像 User 这样的表作为我的控制器名称。我怎样才能像 ORM 应该做的那样自动化这个过程?

提前致谢,

0 投票
2 回答
7533 浏览

python - 烧瓶蓝图列出路线

我有一个带有以下树的烧瓶应用程序:

所以我想知道,有没有办法动态列出所有蓝图的所有路线?

我有这个root/__init__.py

如果我可以动态列出所有蓝图的所有路线,我可以自动生成链接。

例子:

落下:AWS

  • /aws

  • /aws/ec2

  • /aws/subnets

0 投票
2 回答
3705 浏览

flask - 烧瓶 register_blueprint 错误(Python)

我有一个关于 Flask 的项目。当我在我的 Flask 应用程序中包含 Blueprint 时,我遇到了错误。代码来自一本书,Miguel Grinberg 关于 Flask。

项目树:

app/__init__.py中的 create_app()

列出app/main/__init__.py

客排流程输出

我的应用程序/main/errors.py

我的应用程序/main/views.py