小编Rat*_*mar的帖子

密码已损坏

这个周末,我们的docker映像损坏了,因为它无法再构建了。在查看统计数据时,我看到了这一行:

crypt_blowfish-1.2/crypt.h:17:23: fatal error: gnu-crypt.h: No such file or directory
Run Code Online (Sandbox Code Playgroud)

更详细地:

  Running setup.py bdist_wheel for cryptacular: started
  Running setup.py bdist_wheel for cryptacular: finished with status 'error'
  Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-sayd65k0/cryptacular/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp5734bf55pip-wheel- --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/cryptacular
  copying cryptacular/__init__.py -> build/lib.linux-x86_64-3.6/cryptacular
  creating build/lib.linux-x86_64-3.6/cryptacular/crypt
  copying cryptacular/crypt/test_crypt.py -> build/lib.linux-x86_64-3.6/cryptacular/crypt
  copying cryptacular/crypt/__init__.py -> build/lib.linux-x86_64-3.6/cryptacular/crypt
  creating build/lib.linux-x86_64-3.6/cryptacular/bcrypt
  copying cryptacular/bcrypt/test_bcrypt.py -> build/lib.linux-x86_64-3.6/cryptacular/bcrypt
  copying cryptacular/bcrypt/__init__.py …
Run Code Online (Sandbox Code Playgroud)

python blowfish pip python-3.x

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

Mysql For Excel:没有连接显示

我在安装Mysql for Excel插件时遇到问题,当我第一次安装它时,它显示了我的本地连接,等等。我关闭程序并重新打开它,此后它一直拒绝显示任何内容,因此不显示本地连接或远程连接-但是从MYSQL Benchmark来看一切正常,我可以看到所有连接,等等,但是excel中的插件只是空白的灰色屏幕-如屏幕截图所示,我已经卸载并重新安装了excel和插件,仍然给出相同的错误,任何想法或帮助将不胜感激

Excel画面

mysql excel for-loop

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

Axios - 未捕获(承诺)错误:请求失败,状态码为 500

我已经编写了用于添加新文章的代码,但是 Axios 发布请求没有通过,我得到的错误是:无法加载资源:服务器响应状态为 500(内部服务器错误)createError.js:17 Uncaught (承诺)错误:请求失败,状态码 500 在 createError (createError.js:17) at settle (settle.js:19)

我将它与一个类似的项目进行了比较,以比较哪个看起来不错。

    const mongoose = require('mongoose');

const Schema = mongoose.Schema;

const Articles = new Schema({
    title: {
        type:String
    },
    content: {
        type: String
    },
    author: {
        type:String
    },
})

module.exports = mongoose.model('Articles', Articles);

Run Code Online (Sandbox Code Playgroud)

数据库模型

const express = require('express');
const app = express();
const cors = require('cors');
const bodyParser = require('body-parser');
const mongoose = require('mongoose');
const PORT = 4000;
const routes = express.Router();
const Articles = require('./db');

mongoose.connect("mongodb://127.0.0.1:27017/dummies", { …
Run Code Online (Sandbox Code Playgroud)

javascript node.js reactjs axios

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

角度输入属性始终为true

我正在开发Angular 6应用程序,我创建了一个带有一些输入的自定义组件。但是,当我传递false值时,将其视为true。这是我的自定义组件

      <div class="row">
         <div class="manager-actions col-md-12">
         <div class="manager-actions__crud">
         <button *ngIf="showAddButton" (click)="onAddClick($event)" type="button" class="btn btn-primary btn-icon">
         <i class="nb-plus-circled"></i>
      </div>
Run Code Online (Sandbox Code Playgroud)

我的组件类

export class TableActionsComponent implements OnInit {
    constructor(private urlService: UrlManipulationService, private activatedRoute: ActivatedRoute, private actionService: TopbarActionsService) {
    }

    @Input() showDatePicker: boolean = false;
    @Input() showAddButton: boolean = false;
    @Input() showDeleteButton: boolean = false;

    @Input() showPerPageSelector: boolean = false;
}
Run Code Online (Sandbox Code Playgroud)

我尝试如下使用

<ngx-table-actions showAddButton="false" showDeleteButton="true" showDatePicker="true"></ngx-table-actions>
Run Code Online (Sandbox Code Playgroud)

但是即使false设置也显示元素。

javascript angular angular6

5
推荐指数
0
解决办法
54
查看次数

我怎样才能忽略反应警告?(不是本机应用程序)

我在我的反应应用程序中遇到了这种交战。 在此输入图像描述

它说 componentWillReceiveProps 已被重命名...但我的代码中没有“componentWillReceiveProps”只有效果...也许它在节点模块中。

所以我试图忽略他们,但我不知道如何......

我使用了 create-react-app 并且我正在使用 ts-lint。

reactjs react-lifecycle

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

实现Jquery UI可排序和可调整大小

我正在尝试实现排序并调整网格布局中的几个div的大小.

这是一个例子小提琴

但问题是,一旦我调整大小(使div更大)然后当我尝试排序时排序不正常.它不是正确对齐,而是从放置内部div的另一个div溢出.

调整大小不适合小提琴.这是我在调整大小后需要实现的正确结果(假设max-width resizable是外部div的宽度).但是在我的代码中,如果我尝试调整大小,元素是重叠的,如果我将它放在右侧,则元素溢出外部容器div.(在结果中)它没有发生,尝试将div {3}保持在div {2}的位置

我正在使用自举流体布局.所以div的大小与span类相同.这是我正在使用的代码

<div class="row-fluid" id="sortable">
            <div class="span6 sort_container"> <div class="well">aaaaaaaaaaaaa</div> </div>
            <div class="span6 sort_container"> <div class="well">bbbbbbbbbbbbb</div> </div>
            <div class="span6 sort_container" > <div class="well">ccccccccccc</div> </div>
            <div class="span6 sort_container"> <div class="well">dddddddddddd</div> </div>
            <div class="span6 sort_container"> <div class="well">eeeeeeeeeeee</div> </div>
        </div>

<script>

$(document).ready(function() {
   $(function() {
        $( "#sortable" ).sortable();
    });

$(function() {
        $('.well').resizable();
    });
});
</script>
Run Code Online (Sandbox Code Playgroud)

html css jquery jquery-ui-sortable jquery-ui-resizable

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

WordPress Popup Iframe Youtube Https与PrettyPhoto

几天前,我将我的网站转换为https.我有很多问题,但他们已经解决了.但我遇到的最后一个问题是,youtube视频不再用作漂亮照片的弹出窗口,我只得到黑色或白色屏幕.当我检查弹出窗口时,来自youtube的iframe加载了http而不是https.

<a href="https://www.youtube.com/watch?v=#" dat-rel="prettyPhoto[product-gallery]" title="My YouTube Video">
    <img src="https://img.youtube.com/vi/#/default.jpg" alt="YouTube" width="50">
</a>
Run Code Online (Sandbox Code Playgroud)

有谁熟悉这个问题?或者有没有人有我的wordpress网站的功能所以每个iframe我加载https而不是http?

youtube wordpress https iframe prettyphoto

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

Chartsjs 使用下拉菜单更新数据集

好的,我的网站上有一个 Chart.js。现在我尝试使用下拉菜单在不同的数据集之间进行更改。我得到了一个 canvas.js 图表的示例,并尝试根据我的需要更改它。但我很难做到这一点,因为我不明白如何用图表来做到这一点。有人可以告诉我如何正确地做到这一点吗?

这是我已经得到的:

落下:

<select class="form-control browser-default dropdown" id="dd">
    <option value="" selected="selected">Select Serial Number</option>
    <option value="dps1">DataPoints 1</option>
    <option value="dps2">DataPoints 2</option>
    <option value="dps3">DataPoints 3</option>
    <option value="dps4">DataPoints 4</option>
    <option value="dps5">DataPoints 5</option>
</select>
<canvas id="myChart2"></canvas>
Run Code Online (Sandbox Code Playgroud)

JavaScript:

var jsonData = {
    "dps1": [
        { "x": "2016-6-25 12:58:52", "y": 10.22 },
        { "x": "2016-7-25 13:33:23", "y": 11.14 },
        { "x": "2016-8-25 13:49:18", "y": 13.58 },
        { "x": "2016-9-25 13:55:01", "y": 15.25 },
        { "x": "2016-10-25 14:00:15", "y": 17.25 },
    ],
    "dps2": [
        { …
Run Code Online (Sandbox Code Playgroud)

javascript charts json drop-down-menu chart.js

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

如何有一个下拉列表,其中无法选择默认文本?

例如,下拉列表包含选项1,2和3,但具有默认文本"Make a selection ...",而不是可选选项.

如果这里令人困惑的是一个小提琴.基本上,当你点击下拉菜单时,我不希望你看到"做出选择...".只有1,2和3.

我认为它可以用一些javascript完成,但这似乎是hackish.

码:

<select>
    <option>make a selection...</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
</select>
Run Code Online (Sandbox Code Playgroud)

html css

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

Hyper-V W10(主机)Ubuntu 18.04(来宾):为什么增强会话模式不起作用?

我已经在使用 Hyper-V 的 Windows 10 主机系统上安装了 Ubuntu 18.04 作为来宾系统,我想以全屏模式使用来宾系统。据我所知,要调整屏幕大小,我需要在增强会话模式下运行来宾系统。

如果我连接到访客系统,它既不能让我选择屏幕尺寸,也不能激活增强会话模式。

增强会话模式(用户)和增强会话模式策略(服务器)在 Hyper-V 设置下激活。

我还尝试停用 RemoteFX 设置 -> 没有变化

访客服务已激活 -> 无变化

据我所知,Ubuntu 18.04 LTS 应该已经支持增强会话模式。

hyper-v windows-10 ubuntu-18.04

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