问题标签 [iota]
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.
go - 用iota定义const变量时如何跳过很多值?
假设我有下一个 c 程序:
输出是:
0、1、2、99、100
如果进入,我该如何使用 amore golang way
来处理?
事实上,如果我只想跳过一些值。例如 print 0, 1, 2, 5, 6
,然后我可以使用 next 跳过一些值,但在这里我需要跳过 96 个值...
而且,我也可以使用下一个,但在GRAPE
...之后我仍然有很多 const 变量
那么,有没有more golang way
办法让我处理这种情况呢?
iot - FIWARE Orion 错误“无法连接到服务器”将“查询”转发到提供应用程序
我正在尝试使用 2 个组件 Orion 和 LoRaWAN IoT Agent 来配置设备并发送回驱动命令。
我在 docker-compose 文件上运行 Orion 和其他组件,物联网代理使用node bin/iotagent-lora
我已使用以下方法成功配置了设备:
配置设备后,会在 Orion 中创建自动注册:
在本教程之后,我为执行命令创建了另一个注册,如下所示:
我尝试使用建议的解决方案来解决与我面临的问题类似的问题,在尝试之后,我得到了这个错误:
而猎户座报告
fiware-orion 开始交易到http://localhost:4061//updateContext
我不知道它是否与这个问题有关,但这里已经报告了一个类似的错误(url 中的双斜杠)
先感谢您
python - 如何从网页中提取URL
我需要一种使用 Python从该网页https://iota-nodes.net/的列表中提取 url 的方法。我试过 BeautifulSoup 但没有成功。我的代码是:
raspberry-pi3 - 如何在树莓派 3B 上安装工作量证明代理服务器
我正在尝试通过以下链接安装工作证明代理服务器:https ://docs.iota.org/docs/node-software/0.1/iri/how-to-guides/install-a-pow-proxy在树莓派 3B 上。但是,当我尝试在第 4 步构建可执行文件时,出现以下错误:
main.go:22:8:在以下任何一个中都找不到包“github.com/mholt/caddy/caddy/caddymain”:
/usr/lib/go/src/pkg/github.com/mholt/caddy/caddy/caddymain (来自 $GOROOT )
/home/pi/go/src/github.com/mholt/caddy/caddy/caddymain(来自 $GOPATH)
node.js - 解析/node_modules/opencv4nodejs/build/Release/opencv4nodejs.node时node.js Browserify意外的字符'�'(1:0)
我试图使用 browerify 并收到此错误
我尝试输入browserify index.js -o bundle.js
并收到以下错误
在 index.js 我有以下要求
在 index.html 中
iotaModule 是我为使用iota.js 编写的一些包装函数,它需要@iota/core、@iota/converter。我也需要在这里包括吗?这个错误在这里意味着什么?
docker-compose - 如何解决 docker:layers_calculator 上的错误以计算私有缠结上的 Merkle 树?
我想在我自己的带有 Ubuntu 18.04、4GB RAM 和 20GB 内存的虚拟机上设置一个私有 tangle。我已遵循以下说明:https ://docs.iota.org/docs/compass/0.1/how-to-guides/set-up-a-private-tangle 。每个命令都可以正常工作,直到达到以下命令:bazel run //docker:layers_calculator
. 它显示如下错误:
我怎么解决这个问题?我错过了什么?
python - Odd placeholder or pre-statement on string declaration
This is part of a code example I came across regarding the IOTA project. Python is new to me so I am trying to walk through each line. I got to this line and couldn't figure out why the "u" exists between the variable declaration and the string. I tested it independently with and without the "u"
and the output is the same. Just trying to understand why it is there.
I also came across another example using the same structure but with the letter "b"
.
Any help is greatly appreciated. Thanks!
c++ - 根据用户输入用字母填充向量,并将 Start 和 End 放在四肢上
我正在尝试使向量看起来像这样:Alphabet= {start,A,B,C,D,E,F,G,H,I,J,K,etc..,end}
字母表不是从 A 到 Z,用户输入值。因此,如果用户输入 5,我希望向量为:{start,A,B,C,D,E,end}
我尝试使用 iota 但我不知道如何在向量的末端推动“开始”和“结束”
如何推动start
和end
价值观?
go - 错误:部署链代码时出错:归档以计算依赖项:不完整的包:google.golang.org/protobuf/encoding/prototext
我一直在尝试将 iota 连接器与 hyperledger 结构一起使用,但是当我尝试构建链代码时,我得到了这个错误。
Error: error getting chaincode deployment spec for enter code herefabric-demo-app: error getting chaincode package bytes: failed to calculate dependencies: incomplete package: google.golang.org/protobuf/encoding/prototext
知道为什么会这样吗?
我曾尝试使用 go install 安装该模块,但似乎已安装。
如果是这样,我将非常感谢您的帮助:)