我现在用谷歌搜索了2天,最初得到了一个
'/var/run/mysqld/mysqld.sock' (2)
Run Code Online (Sandbox Code Playgroud)
我通过使用:
sudo touch /var/run/mysqld/mysqld.sock
sudo chown -R mysql /var/run/mysqld/
Run Code Online (Sandbox Code Playgroud)
现在我收到错误:
'/var/run/mysqld/mysqld.sock' (13)
Run Code Online (Sandbox Code Playgroud)
所以一切都有正确的权限,文件存在.有什么想法吗?
[编辑]
有它工作,虽然我不确定如何.我做aa-logprof
了root
,没有任何改变,生气,然后重新设置它开始工作.
一个js插件正在添加一种令我头疼的风格:
element.style {
z-index: 100 !important;
}
Run Code Online (Sandbox Code Playgroud)
所以我试过这个:
html body div#shell div#shellContent div#bottomPart div#rightCol div.containerBox
div#embedContainer div#janrainEngageEmbed div.janrainContent div#janrainView
div.janrainHeader[style] {
z-index: 1 !important;
}
Run Code Online (Sandbox Code Playgroud)
但仍然没有.
我有一个非常基本的html元素,我想fadeIn()
.然而,我正在使用,require.js
所以我相信这可能是问题的一部分.我正在使用jQuery 2.0.3使用时fadeIn
我收到此错误:
SecurityError: The operation is insecure.
chrome://firebug/content/console/commandLineExposed.js
Line 5
Run Code Online (Sandbox Code Playgroud)
我以前从未见过这个,我已经重置了firefox和我的电脑.
HTML
<message-box>
<message-info></message-info>
<close-box>x</close-box>
</message-box>
Run Code Online (Sandbox Code Playgroud)
JS
$('message-Box').fadeIn();
Run Code Online (Sandbox Code Playgroud)
我只得到这个错误firefox v27
.没有其他浏览器有这个问题,但我没有在任何旧版本的测试中FF
我没有寻求除错误以外的任何帮助......
看到错误在行动?并运行此命令:SD.message.showMessage('Somehow this breaks everything', 'bad');
----- 编辑 -------
很遗憾你需要测试这里我向你保证这是SFW,它只是登录页面.
我相信我的其他JS
文件中肯定存在一些冲突的东西,但我还没有发现问题.
我删除了一个小提琴,因为它没有帮助这个问题,因为添加赏金我希望它尽可能地有用.
第二次编辑
奇怪的是,当运行任何show(), hide(), fadeIn()
等等时,会在页面底部创建一个iframe,就在正文之前.我需要在我的代码中思考为什么会发生这种情况.
第三编辑
我没有理由或解释,但更新到jQuery 2.1.0已经解决了我的问题.如果有人能解释问题,那么我很乐意给他们分数:)
我Browserify
用来包装一切.我刚刚升级1.2.23
到1.3.0
现在,我现在收到以下错误:
Firefox错误
TypeError: angular.module is not a function
var app = angular.module('login-Controller', ['Views']);
----------^
Run Code Online (Sandbox Code Playgroud)
显然没有定义角度.所以我输出了角度的输出
var angular = require('angular'),
console.info(angular); // Object {} ='s an empty object
Run Code Online (Sandbox Code Playgroud)
这是否意味着角度不再兼容browserify
?如果是,我怎么能让它运作?
Chrome的详细错误
Uncaught TypeError: undefined is not a function main.js:25868 C:\var\www\stage.mayfieldafc.com\src\site\js\users\loginCntrl.js.angularmain.js:1 smain.js:1 (anonymous function)main.js:28 ./src/site/js/app.js.angularmain.js:1 smain.js:1 emain.js:1 (anonymous function)
main.js:183 Uncaught Error: [$injector:modulerr] Failed to instantiate module mays due to:
Error: [$injector:nomod] Module 'mays' is not available! You either misspelled the module name or forgot …
Run Code Online (Sandbox Code Playgroud) 我非常有信心这是不可能的.但是如何使用data属性定位所有元素.
tr[data-*] //target all data's
Run Code Online (Sandbox Code Playgroud) 我经常在开发东西时在计算机之间移动.用npm和我的package.json
意思,或者我认为,签出时一切都会一样.至少在相同的主要版本~4.0.0
或示例上.
然而,在我工作的快速PC上,我的编译时间为11秒,而在家中为1.2秒.
我想保存npm list
到文件,所以我可以在家里进行比较.
npm list --save npmlist.txt //for example
Run Code Online (Sandbox Code Playgroud) 我是节点的新手,我很确定我已经设置了中间件并表示使用flash消息,但我仍然得到错误:
Error: req.flash() requires sessions
建立
//express.js
var flash = require('connect-flash')
module.exports = function (app, config, passport) {
app.use(flash());
};
//route js
exports.loginGet = function (req, res) {
res.render('users/login', {
title: 'Login',
message: req.flash('error') //error in question
});
};
Run Code Online (Sandbox Code Playgroud)
我还能做些什么来确保我已正确设置所有设置并使其正常工作?
正如您所看到的,我希望在联赛表中显示所有赛季和分区data > seasons
。我已经设置了它,因为我相信可以使用@connection。
所以问题是,我将如何更改我的部门架构,以便将部门包含在League
.
我花了很多时间阅读@connections和@key并理解在使用密钥时,会使用我提供的密钥创建散列ID
。但是我对多次阅读连接文档的理解不够了解为什么这不起作用。
我很想更好地理解这一点,所以我尽我所能尝试发展一种理解!
nb 我相信还值得一提的是,每次我更改架构并amplify mock
重建哈希键时,它们都会被添加。我想知道这是否有一些影响?当涉及到键时,我应该在每次模式更改时完全清理 SQLite 吗?
type League @model
{
id: ID!
name: String!
faId: ID!
logo: String
seasons: [Season] @connection(keyName: "bySeason", fields: ["id"])
division: [Division] @connection(keyName: "byDivision", fields: ["id"])
}
Run Code Online (Sandbox Code Playgroud)
type Season @model @key(name: "bySeason", fields: ["leagueID"])
{
id: ID!
name: String!
faId: ID!
yearStart: AWSDate
yearEnd: AWSDate
leagueID: ID!
league: League! @connection(fields: ["leagueID"])
division: [Division] @connection(keyName: "byDivision", fields: ["id"]) …
Run Code Online (Sandbox Code Playgroud) javascript amazon-web-services amazon-dynamodb graphql aws-amplify
我不能为我的生活工作这一个.我有js正在运行,'container state ..'是来自页面上运行的js的控制台日志.它正在显示一个选择器,但如果我想在控制台中做任何事情,它只返回null.我假设某种程度上我在某处编写jQuery函数,好像我调用了jQuery
>>> $
function()
Run Code Online (Sandbox Code Playgroud)
这就是我调用选择器的方式
Container state 3 jQuery(div.module-carousel)
>>> $('body')
null
Run Code Online (Sandbox Code Playgroud) 我的页面上出现以下错误:
Refused to load the script 'http://127.0.0.1:35729/livereload.js' because it violates the following Content Security Policy directive: "script-src https: 'unsafe-inline' 'unsafe-eval'".
Run Code Online (Sandbox Code Playgroud)
超文本标记语言
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; img-src * data: 'unsafe-inline'; connect-src * 'unsafe-inline'; frame-src *;">
</head>
<body>
<script src="http://127.0.0.1:35729/livereload.js"></script>
Run Code Online (Sandbox Code Playgroud)
我尝试使用完全打开来使其工作,然后向后工作,但是我什至遇到了同样的错误。
需要明确的是,这不是用于生产代码,这只是为了在使用 https 的域上启用我的 live-reload-webpack。
javascript ×6
html ×3
css ×2
jquery ×2
node.js ×2
angularjs ×1
aws-amplify ×1
browserify ×1
console ×1
css3 ×1
express ×1
firefox ×1
flash ×1
graphql ×1
mysql ×1
npm ×1
ubuntu ×1
ubuntu-11.04 ×1