这个周末,我们的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) 我在安装Mysql for Excel插件时遇到问题,当我第一次安装它时,它显示了我的本地连接,等等。我关闭程序并重新打开它,此后它一直拒绝显示任何内容,因此不显示本地连接或远程连接-但是从MYSQL Benchmark来看一切正常,我可以看到所有连接,等等,但是excel中的插件只是空白的灰色屏幕-如屏幕截图所示,我已经卸载并重新安装了excel和插件,仍然给出相同的错误,任何想法或帮助将不胜感激
我已经编写了用于添加新文章的代码,但是 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) 我正在开发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设置也显示元素。
它说 componentWillReceiveProps 已被重命名...但我的代码中没有“componentWillReceiveProps”只有效果...也许它在节点模块中。
所以我试图忽略他们,但我不知道如何......
我使用了 create-react-app 并且我正在使用 ts-lint。
我正在尝试实现排序并调整网格布局中的几个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) 几天前,我将我的网站转换为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?
好的,我的网站上有一个 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) 例如,下拉列表包含选项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) 我已经在使用 Hyper-V 的 Windows 10 主机系统上安装了 Ubuntu 18.04 作为来宾系统,我想以全屏模式使用来宾系统。据我所知,要调整屏幕大小,我需要在增强会话模式下运行来宾系统。
如果我连接到访客系统,它既不能让我选择屏幕尺寸,也不能激活增强会话模式。
增强会话模式(用户)和增强会话模式策略(服务器)在 Hyper-V 设置下激活。
我还尝试停用 RemoteFX 设置 -> 没有变化
访客服务已激活 -> 无变化
据我所知,Ubuntu 18.04 LTS 应该已经支持增强会话模式。
javascript ×3
css ×2
html ×2
reactjs ×2
angular ×1
angular6 ×1
axios ×1
blowfish ×1
chart.js ×1
charts ×1
excel ×1
for-loop ×1
https ×1
hyper-v ×1
iframe ×1
jquery ×1
json ×1
mysql ×1
node.js ×1
pip ×1
prettyphoto ×1
python ×1
python-3.x ×1
ubuntu-18.04 ×1
windows-10 ×1
wordpress ×1
youtube ×1