小编Art*_*äpp的帖子

npm - 错误:找不到指定的过程

错误:

module.js:347
        ' for module ' + JSON.stringify(this.id));
                       ^
Error: The specified procedure could not be found.
c:\Users\Artur\workspace\xxx\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-x64\binding.node
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (c:\Users\Artur\workspace\xxx\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:211:15)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
Run Code Online (Sandbox Code Playgroud)

系统:

  • 操作系统:Windows 8.1(64位)
  • 节点:v0.12.0
  • npm:2.5.1

背景:

昨天我试图开始一个新项目.并试图使用yeoman生成器,generator-gulp-angular并获得了一堆视觉基本错误.所以我安装Microsoft Windows SDK了一些来自微软的其他东西.所以现在我在已安装的应用程序列表中有很多Microsoft条目,当我看到这些时,我迷路了:

These might be relevant for the problem:

Microsoft Visual C++  x64 Libraries
Microsoft Visual C++  x86 …
Run Code Online (Sandbox Code Playgroud)

node.js npm

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

整数()上的Laravel模式构建器INT(11)和unsignedInteger()上的INT(10)

为什么Laravel将整数列创建为INT(11)而将无符号整数列创建为INT(10)?

$table->integer('integer'); // INT(11)
$table->unsignedInteger('unsignedInteger'); // INT(10) unsigned
$table->integer('integer_then_unsigned')->unsigned(); // INT(10) unsigned
Run Code Online (Sandbox Code Playgroud)

由于无符号整数的最大值几乎可以是原来的两倍,不应该相反吗?

mysql database-schema laravel

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

无法创建PermGen错误

这是家庭作业,不会撒谎.我需要编写一个程序,它将生成"java.lang.OutOfMemoryError:PermGen space"错误.

由于我无法参加讲座,我昨天做了几个小时的研究,这是我到目前为止所做的.

起初我创建了一个程序,我不断得到这个错误:

java.lang.OutOfMemoryError: GC overhead limit exceeded
Run Code Online (Sandbox Code Playgroud)

好的,所以我做了一些更多的研究并理解我没有得到PermGen错误,因为虽然我创建了对象(String对象)但我没有再次使用它们,所以它们被认为是Garbage.所以我改变了我的代码,不断得到这个:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Run Code Online (Sandbox Code Playgroud)

所以这是我在那时的代码:

import java.util.ArrayList;
import java.util.List;

public class Test {

public static void main(String[] args) {
    List<String> test = new ArrayList<String>();
    test.add(new String(""));

    for (;;) {
        for (int i = 0; i<test.size(); i++){
            test.add(test.get(i));
        }
    }
}
}
Run Code Online (Sandbox Code Playgroud)

同样在VM参数下我有"-XX:PermSize = 2m"(我尝试了不同的值).我被告知我的代码是错误的,因为它反复使用相同的字符串.所以我试图改变它,但我仍然没有成功.然后我发现了这段代码:( 导致java.lang.OutOfMemoryError:PermGen空间错误的算法)

Random rnd = new Random();
List<String> interned = new ArrayList<String>();
for (;;) {
    int length = rnd.nextInt(100);
    StringBuilder builder = …
Run Code Online (Sandbox Code Playgroud)

java memory memory-management permgen

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

html定位的问题 - 旁边,页脚,填充

我迷失在这一点上.经过无数个小时的搜索和尝试,我还没有找到一个有效的解决方案.

我在同时实现以下三点时遇到问题:

  1. 底部有一些填充物.(当内容变长时,最终底部没有空白区域.)
  2. 左右两侧与最长内容一起展开
  3. 当旁边比主要内容短时,分隔线应该仍然是从上到下.

一些说明:

  • 目前,第三点正在发挥作用.

  • 当将位置改为相对位置时,页面会按原样扩展.虽然第三点不再适用.

  • 尚未找到第一个解决方案.

这是我的布局的缩小版本.由于所有问题仍然存在于少量代码中,因此这可能就足够了:

的index.html

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <title>title</title>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div id="wrapper">
            <header>
                <nav>
                    <!--My nav here-->
                </nav>
            </header>
            <div id="content_wrapper">
                <aside>
                    <p>
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque posuere sodales ante id facilisis. Vestibulum euismod mattis nisl, id consequat tortor suscipit vitae. Maecenas sit amet dolor nibh. Quisque vitae commodo augue. Nullam bibendum posuere est, non gravida ante lacinia quis. Vestibulum imperdiet orci …
Run Code Online (Sandbox Code Playgroud)

html css html5 sidebar css3

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