小编Fré*_*nri的帖子

AWS S3 CLI - 无法连接到端点URL

$ aws s3 ls

Could not connect to the endpoint URL: "https://s3.us-east-1a.amazonaws.com/"
Run Code Online (Sandbox Code Playgroud)

可能是什么问题呢?

amazon-s3 amazon-web-services

95
推荐指数
6
解决办法
10万
查看次数

无法在远程目录中找到或无法访问Vagrant框 - 不兼容的curl版本

我刚刚下载了Vagrant并进行了设置以及安装虚拟盒.我只是无法启动我的项目(流浪汉).我有一个流浪文件等等.我能做什么?

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'scotch/box' could not be found. Attempting to find and install
...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'scotch/box' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown …
Run Code Online (Sandbox Code Playgroud)

macos virtualbox vagrant

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

你能在"if"语句中执行多个语句吗?

这是我的功能:

(defun MyFunction(input)
  (let ((NEWNUM (find input num)))
    (if (find input num)              //if this 
      (setq num NEWNUM) (FUNCT2)      //then execute both of these
    (list 'not found))))              //else output this
Run Code Online (Sandbox Code Playgroud)

所以在if声明之后我希望能够执行,(setq num NEWNUM)然后(FUNCT2)设置一个新变量,然后调用一个函数.关于如何做到这一点的任何想法?

lisp

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

Base62编码一个javascript文件是不是很糟糕?

我刚刚在这里找到了Dean Edwards javascript packer:http: //dean.edwards.name/packer/

它有几个选项,

  1. Base62编码
  2. 缩小变量

为了测试它,我把最新版本的jquery已经缩小到56kb并在上面的页面上使用缩小变量运行它,结果是相同大小的文件,56kb.

然后我再次运行原始文件,同时选择了Base62编码和收缩变量,结果是一个42kb的文件.

现在我不太了解缩小和包装,然后它会使文件大小化.但我很好奇Base62编码在做什么,使用它是不是很糟糕?我看到它使文件变得更小,但它是否会在以后创建更多的工作/负载以在页面上解码它?

javascript minify

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

Laravel流浪汉不起作用 - Errno :: EADDRNOTAVAIL

我最近在Laravel环境或Windows 10的一部分更新时出现了一些错误,因此在经过大量试验和错误后,我决定删除所有内容并从头开始.所以现在我有了新的VirtualBox,Vagrant,Laravel/Homestead盒子和Homestead本身.

但是,我确实收到此错误:

$ vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Importing base box 'laravel/homestead'...
==> homestead-7: Matching MAC address for NAT networking...
==> homestead-7: Checking if box 'laravel/homestead' is up to date...
==> homestead-7: Setting the name of the VM: homestead-7
==> homestead-7: Destroying VM and associated drives...
C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/util/is_port_open.rb:21:in `initialize': The requested address is not valid in its context. - connect(2) for "0.0.0.0" port 8000 (Errno::EADDRNOTAVAIL)
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/util/is_port_open.rb:21:in `new'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/util/is_port_open.rb:21:in `block in is_port_open?'
        from …
Run Code Online (Sandbox Code Playgroud)

php vagrant laravel homestead

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

javascript packer与minifier

我想知道封隔器与缩放器的区别/好处是什么,即你应该在你的网络应用程序中部署打包或缩小版本?

示例代码:

var layout = {

    NAVVISIBLE : 1,

    Init : function() 
    {
        this.Resize();
    },

    Dimensions : function()
    {
        var d = document, s = self, w, h;
        if (s.innerHeight) 
        { w = s.innerWidth; h = s.innerHeight; }
        else if (d.documentElement && d.documentElement.clientHeight) 
        { w = d.documentElement.clientWidth; h = d.documentElement.clientHeight; }
        else if (d.body) 
        { w = d.body.clientWidth; h = d.body.clientHeight; }
        return new Array(parseInt(w), parseInt(h));
    },

    Resize : function()
    {
        var dim = this.Dimensions();
        try 
        {
            $('tbl_container').width    = px(dim[0] …
Run Code Online (Sandbox Code Playgroud)

javascript minify

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

配置Vagrant CA证书

我在公司代理服务器和自签名CA证书后面执行Vagrant命令时遇到问题.我已配置环境变量HTTP_PROXY,HTTPS_PROXY和HTTP_NO_PROXY变量.

我有一个包含所有公司证书的Java密钥库.我使用了keytool命令的-exportcert选项和许多选项.我已经使用了openssl命令以及许多选项,并将生成的文件放在Vagrant安装中的嵌入式Ruby目录中的多个位置,但没有任何成功.

我已经阅读了很多网站,其中包含有关配置Ruby和curl的信息,但在获取Vagrant命令方面没有任何成功.我找到的所有帖子都集中在Ruby和curl选项上,我不明白如何利用Vagrant,包括Ruby作为Vagrant的嵌入式组件.

请提供有关如何从Java密钥库正确导出证书的说明,并可选择转换它们并放置生成的文件,以便Vagrant能够成功地通过公司代理与Internet进行通信.

Windows 7上的Vagrant 1.9.5

Vagrant安装目录C:\ Apps\Vagrant \

C:\WorkArea> vagrant plugin install vagrant.proxyconf

ERROR:  SSL verification error at depth 3: self signed certificate in certificate chain (19)
ERROR:  Root certificate is not trusted (/C=US/O=xxx xxx/OU=xxx xxx Certification Authority/CN=xxx xxx Root Certification Authority 01 G2)  
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

C:\WorkArea> vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'puppetlabs/ubuntu-16.04-64-puppet' could not be found. Attempting to find and …
Run Code Online (Sandbox Code Playgroud)

ruby ssl vagrant

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

Vagrant up给'cygpath'Vagrant在路径中找不到

我安装了Vagrant,Vagrant init工作正常.当我现在运行Vagrant时,我收到此错误:

The executable 'cygpath' Vagrant is trying to run was not
found in the %PATH% variable. This is an error. Please verify
this software is installed and on the path.
Run Code Online (Sandbox Code Playgroud)

我使用cygwin作为终端,我有Windows 8,我已经C:\cygwin64\bin在我的PATH中添加了一些变量.

我的问题是,当我指定了我的cygwin bin的路径时,为什么会收到此错误消息?

谢谢!

cygwin vagrant vagrant-windows

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

在Windows 10更新后,vagrant up停止工作

在最近的Windows 10更新后,我的流浪虚拟机停止工作,拒绝启动vagrant up.问题似乎与我用于我的VM的Virtualbox提供程序有关,并且只有在Vagrantfile中配置了private_network时才会出现问题,而端口转发和public_network似乎都有效.

我第一次将操作系统从Windows 7更新到Windows 10时,我已经遇到了类似的问题.在这种情况下,我在Virtualbox的票14040处解决了问题.但是,在应用新的Windows更新后,补丁解决方案不再有效.

我还试图将VirtualBox和Vagrant都更新到他们的最新版本,但这并没有改变任何东西.

这是我的Windows/Virtualbox/Vagrant版本:

Microsoft Windows 10 version 1511 (build SO 10586.14)
VirtualBox version 5.0.10 r104061
Vagrant version 1.7.4
Run Code Online (Sandbox Code Playgroud)

这是我启动时遇到的错误vagrant up:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 …
Run Code Online (Sandbox Code Playgroud)

virtualbox vagrant windows-10

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

此网站无法访问Amazon Ec2

我在Amazon EC2上创建了一个实例,然后安装了whm和cpnel.我只能使用我的域名ex来访问cpanel.domainname.com/2083但是当我去我的域名鬃毛前.domainname.com它给出了这个网站无法到达...

我有点困惑,如果网站没有正确指向那么它不应该去Cpanel,但因为它能够访问cpanel然后为什么它不显示网站.

我已经重新检查了名称服务器和主机名.

dns amazon amazon-ec2 cpanel whm

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