小编Eri*_*k V的帖子

样式表的相对链接在本地机器上不起作用,在线工作。为什么是这样?

我正在尝试将我的样式表 (styles.css) 链接到 index.html。当我使用 Chrome 的 Sublime Text 构建功能执行此操作时,HTML 显示正常,但未链接到样式表(文本不是蓝色)。当我将此完全相同的代码(在相同的文件夹结构中)上传到 BitBalloon 时,该链接有效。为什么会这样,我如何使链接在两种情况下都能正常工作?

索引.html:

<!DOCTYPE HTML>
<html>
<head>
    <title>I think I'm doing this right!</title>
    <link rel="stylesheet" type="text/css" href="/css/styles.css" />
</heaod>
<body>
    <div class="jumbotron">
      <div class="container">
        <h1>CareerFoundry Template</h1>
        <p style="background-color: red;">This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more &nbsp;&amp;&nbsp; unique.</p>
        <p><a class="btn btn-primary btn-lg" role="button">Learn …
Run Code Online (Sandbox Code Playgroud)

html css stylesheet rel

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

添加用于向上移动单元格和向下移动单元格的键盘快捷键

我正在尝试添加 Cntl+K 和 Cntl+J 快捷方式来快速上下移动单元格。我在 Github 上查看了有关添加快捷方式的问题,并找到了一个可行的答案:

“对于喜欢此快捷方式的人(如我),请将其添加到您的 ~/.ipython/profile_default/static/custom/custom.js:

$([IPython.events]).on("app_initialized.NotebookApp", function () {

IPython.keyboard_manager.command_shortcuts.add_shortcut('ctrl-k', function (event) {
    IPython.notebook.move_cell_up();
    return false;
});

IPython.keyboard_manager.command_shortcuts.add_shortcut('ctrl-j', function (event) {
    IPython.notebook.move_cell_down();
    return false;
});
Run Code Online (Sandbox Code Playgroud)

});

但是我的 users/{my name}/.ipython/profile_default 目录没有静态文件夹。我尝试添加丢失的文件夹和 custom.js 文件,并重新打开 Anaconda 提示,但这并没有添加丢失的快捷方式。

另一个答案有同样的问题:

“使用以下内容:

$ cat ~/.jupyter/custom/custom.js

define(["base/js/namespace"], function(Jupyter){
    console.info('Binding Ctrl-J/K to move cell up/down');
    Jupyter.keyboard_manager.command_shortcuts.add_shortcut('Ctrl-k','jupyter-notebook:move-cell-up');
    Jupyter.keyboard_manager.command_shortcuts.add_shortcut('Ctrl-j','jupyter-notebook:move-cell-down');
});
Run Code Online (Sandbox Code Playgroud)

这个答案也不起作用(添加丢失的文件夹和 custom.js 文件不起作用)。

ipython ipython-notebook jupyter jupyter-notebook

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

Mailgun Sandbox域无效

Net::SMTPFatalError (554 Sandbox subdomains are for test purposes only. Please add your own domain or add the address to authorized recipients in domain settings.
Run Code Online (Sandbox Code Playgroud)

我在RoR应用程序中使用带有Heroku的Mailgun插件.我正在尝试使用沙箱域,并将我的个人Gmail帐户添加为授权用户.我正在使用设计确认,因此当新用户注册时,应将默认电子邮件发送到他们提供的电子邮件.如下所示,成功创建用户并找到要发送的电子邮件.Mailgun似乎收到了必要的信息,但不相信我被授权?

沙盒是活跃的

    SQL (1.1ms)  INSERT INTO "users" ("first_name", "last_name", "email", "encrypted_password", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["first_name", "C"], ["last_name", "C"], ["email", "ceo@c.com"], ["encrypted_password", "$2a$10$k9CdjjFd7GzLcKJ.E4VNie27aJrQm3LnigLHlFSFKcd2qR2x11cQW"], ["created_at", "2016-08-01 22:05:30.331566"], ["updated_at", "2016-08-01 22:05:30.331566"], ["confirmation_token", "38f6d620e0e8277957ee85bbede77610cdbea448a79b9d07fc5998fdc3c780d3"], ["confirmation_sent_at", "2016-08-01 22:05:30.565564"]]
2016-08-01T22:05:30.601828+00:00 app[web.1]:   Rendered vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/app/views/devise/mailer/confirmation_instructions.html.erb (9.0ms)
2016-08-01T22:05:30.856455+00:00 app[web.1]: 2016-08-01T22:05:30.856470+00:00 app[web.1]: MyMailer#confirmation_instructions: processed outbound …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails heroku mailgun

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