问题标签 [joyent]

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 回答
37 浏览

vagrant - 允许以 vagarant 登录joyent

我正在使用 vagrant up --provider=joyent 通过 vagrant 创建实例

vagarant 需要root 用户.. 但是默认joyent 只接受ubuntu 用户.. 在创建实例之前有什么方法可以让joyent 默认接受root 用户

0 投票
1 回答
134 浏览

joyent - 在joyent triton中获取docker.sock

我正在尝试jwilder/nginx-proxy在 Joyent 的 triton 平台上设置 docker 容器。此容器需要访问以docker.sock读取有关其环境的信息。基本上它需要做

在海卫一上,这失败了

有什么想法可以将 docker.sock 注入到 triton 上的容器中吗?

0 投票
0 回答
452 浏览

node.js - In HTTP Signatures, should I use 'request-line' or 'target-request'?

I'm looking at the Readme.md for http-signing that is part of Joyent's node-http-signature module, and it says to use a "special name" to include the HTTP request target into the signature base:

To include the HTTP request line in the signature calculation, use the special request-line value. While this is overloading the definition of headers in HTTP linguism, the request-line is defined in RFC 2616, and as the outlier from headers in useful signature calculation, it is deemed simpler to simply use request-line than to add a separate parameter for it.

Including request-line would imply including text like POST /url/path/here HTTP/1.1 into the signature base.

Conversely draft 03 of the spec says to use a different "special value" to include the request target:

If the header field name is (request-target) then generate the header field value by concatenating the lowercased :method, an ASCII space, and the :path pseudo-headers

Yes, (request-target) in parens.


With the former, the signature base for a request might look like:

...whereas with the latter, the signature base for the same request would look like this:

So which is authoritative? I doubt that there will remain two ways to include the method and path into the signature base.

I suspect "implementations rule", but I'd like to know the real intention.

0 投票
1 回答
225 浏览

python - How do I install hiredis on Solaris 11?

I'm trying to install hiredis on my Joyent SmartMachine running Solaris 11. I keep getting the following error.

0 投票
2 回答
2102 浏览

node.js - Visual Studio 2015 Node.js 工具 npm 版本

我想在 Visual Studio 2015 中使用最新的 npm。我已经从 Visual Studio 安装程序安装了 Joyent Node。我知道可以单独安装 Node.js,但我们似乎对此有问题,所以我们正试图以“微软方式”做事。我还安装了适用于 Visual Studio 2015 的 Node.js 工具 1.1。在 Visual Studio 的 node.js 交互式窗口中,运行 .npm 会为我提供以下信息:

但是,如果我使用“Node.js 命令提示符”并运行:

它更新 npm 并运行 npm 命令,我得到以下信息:

如果我回到 Visual Studio 2015 Node.js 交互窗口并运行 .npm,我会看到版本没有更改,即使 VS 重新启动也是如此。但是,我遇到了其他用户报告的长文件名问题并且没有问题,所以我相信实际上正在使用 npm 3.8.0,但我不能确定。如何让 Visual Studio 2015 使用最新的 npm 以避免长文件名问题?Node.js 交互窗口在这里有什么相关性吗?谢谢!

0 投票
1 回答
30596 浏览

java - DTrace 使用 ustack() 丢失 Java 帧。在 Joyent SmartOS 基础架构容器上运行

我无法在 Joyent SmartOS 实例中使用 dtrace 获得任何 Java 堆栈。

我尝试了该java:15.1.1图像和一个普通的 SmartOS 'base64' 图像,我在其中安装了 openjdk 8。

我最基本的例子:cat Loop.java

libdtrace_forceload.so按照推荐添加了。

它是一个 64 位 JVM:

当我运行 dtrace 并使用 jstack 时,我得到了 C 堆栈。但是,JAVA 帧是原始地址,毫无用处:

我确实看到热点探针可用:

问题:有没有办法列出 ustack 助手以及它们是否已加载?有什么方法可以获取 Java 堆栈?

0 投票
2 回答
411 浏览

nodeclipse - Nodeclipse & Enide的历史等

我是 Nodeclipse & Enide 的零经验日本新手。有人可以在下面回答我的问题吗?我在 Nodeclipse & Enide 主页中找不到与它们相关的任何内容:

  1. Nodeclipse 和 Enide 有什么区别?

  2. Nodeclipse 社区(或Joyent)何时以及为了什么培养 Enide?

先感谢您。

中野不二雄