小编Sha*_*tel的帖子

木偶:无法从远程服务器检索目录

sudo puppet agent -t从主机运行:host.internaltest.com

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Another local or imported resource exists with the type and title Host[host.internaltest.com] on node host.internaltest.com

这台机器的ssl证书被弄乱了,所以我将其从主服务器上清除掉,然后使用自动签名(很糟糕,我知道!),我运行时sudo puppet agent -t重新生成了ssl证书,但也抛出了此错误。如果您需要更多信息,请告诉我,我并没有过多地介绍人偶。

ssl puppet

2
推荐指数
1
解决办法
1万
查看次数

如何删除c3js折线图中的轴线溢出

折线图

如果你看一下那些红色圆圈区域,你会看到左下角的轴溢出,并且在 Y 轴的顶部和 X 轴的末端有轴刻度。

我为轴和 c3 图表配置唯一的自定义 CSS:

.tick line {
  display: none;
}

var rateConfig = {
  bindto: '#line-chart',
  data: {
    x: 'date',
    xFormat: '%m%d',
    columns: [],
  },
  legend: {
    show: false,
  },
  point: {
    r: 4,
  },
  axis: {
    y: {
      tick: {
        format: function (d) { return d + '%'; },
        count: 5,
      },
      max: 100,
      padding: {
        top: 0,
        bottom: 0,
      },
    },
    x: {
      type: 'timeseries',
      tick: {
        culling: false,
      },
    },
  },
  color: …
Run Code Online (Sandbox Code Playgroud)

javascript data-visualization d3.js c3

2
推荐指数
1
解决办法
2748
查看次数

brew安装守望者不工作

brew install --HEAD watchman
==> Cloning https://github.com/facebook/watchman.git
Updating /Library/Caches/Homebrew/watchman--git
==> Checking out branch master
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/watchman/HEAD --with-pcre
==> make
==> make install
install: chmod 777 /: Operation not permitted
touch //.not-empty
touch: //.not-empty: Permission denied
make[1]: *** [install-exec-local] Error 1
make: *** [install-am] Error 2
couldn't understand kern.osversion `14.5.0'

READ THIS: https://git.io/brew-troubleshooting
Run Code Online (Sandbox Code Playgroud)

它试图做到chmod 777 /这一点并不好.为什么要这样做呢?不应该允许这样的感觉.我尝试卸载watchman并使用此命令重新安装以获得反应原生的开始工作.

按照以下步骤操作:https://github.com/facebook/react-native/issues/239

https://facebook.github.io/react-native/docs/troubleshooting.html

facebook reactjs watchman react-native

2
推荐指数
1
解决办法
1万
查看次数

为什么不能追加指向数组的指针?

package main

import "fmt"

type Circle struct {
  x string
}

func main() {
    circle := Circle{x: "blah"}
    results := make([]*Circle, 1)
    results = append(results, &circle)
    fmt.Printf("Here: %s\n", results[0].x)
}
Run Code Online (Sandbox Code Playgroud)

如果我改线results = append(results, &circle)到results[0] = &circle正常工作.无法找到任何理由为什么会这样.

pointers go

2
推荐指数
1
解决办法
505
查看次数

如何使用反引号来更改目录?

我试图通过在Ruby中使用反引号来更改目录.我在Ubuntu 12.04框上,这是我得到的错误:

irb(main):003:0> `cd /`
(irb):3: command not found: cd /
=> ""
Run Code Online (Sandbox Code Playgroud)

我直接通过终端运行命令,我更改目录就好了.它也适用于我当地的Mac机箱,所以我不确定发生了什么.

ruby shell irb backticks

1
推荐指数
1
解决办法
857
查看次数