几个小时前我通过Github网站创建了两个存储库.然后我去了Github桌面应用程序,并对这两个存储库中的每一个做了许多提交.我遵循的过程是:
但是,现在我在另一台(ubuntu)计算机上想要克隆这两个存储库,似乎没有任何提交被推送到Github.Github网站也只展示了我最初创建的2个存储库,初始化为readme.md.没有别的.
什么地方出了错?
我已在我的工作区中nodemon 本地安装,但即使它在更改后在终端中重新启动,它也不会刷新浏览器页面.我每次都要手动刷新它.
我在环境中运行了Express,Node,React和Webpack.
这就是我的设置看起来像 -
我的package.json开始server.js-
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon server.js"
},
Run Code Online (Sandbox Code Playgroud)
并server.js- 是 -
var express = require('express');
var app = express();
app.use(express.static('public'));
app.listen(3000, function () {
console.log("Express server is up on port 3000");
});
Run Code Online (Sandbox Code Playgroud)
该entry point在的WebPack配置文件是-
module.exports = {
entry: './public/scripts/app.jsx',
output: {
path: __dirname,
filename: './public/scripts/bundle.js'
}
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能解决这个问题?
更新 -
我做了一个视频来描述情况,如果有帮助的话.
我正在学习NodeJS,我正在学习的课程有几个项目,按部分排列.我将所有项目都放在一个主文件夹下,这也是一个git存储库.
主文件夹中的每个子文件夹都是一个节点项目,完整的package.json和相关的依赖项node_modules.问题是当我尝试将节点应用程序推送到一个这样的文件夹(todo-api)到heroku时,我收到以下错误 -
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to agile-forest-32749.
remote:
To https://git.heroku.com/agile-forest-32749.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to …Run Code Online (Sandbox Code Playgroud) 我正在尝试VS Code,我使用Emmet创建了一个带有类的新HTML元素.我需要在原始元素中创建另一个嵌套(子)HTML元素,但默认情况下,当您在原始元素标记内点击输入时,VS代码将不会缩进新元素.就像你有,<div class="main"></div>并且你在div标签之间输入,你会得到 -
<div class="main">
</div>
Run Code Online (Sandbox Code Playgroud)
然后你需要手动上一行,添加标签并缩进新的HTML元素.
在Webstorm中,点击父标签之间的输入会自动缩进新的子元素.
这里有两个显示我的意思的GIF.
VS代码 -
Webstorm -
是否有扩展或其他技巧在VS Code中实现此功能?
我在 Ubuntu 14.04 上使用 Postgres,并且一直在尝试将 csv 文件导入到 Postgres 中名为“天气”的表中。我查看了问题Postgres ERROR: Could not open file for read: Permission returned 并尝试使用该\copy命令而不是常规副本,但我仍然遇到相同的Permission Denied错误。
我有点犹豫是否要修改所有用户该目录的所有文件的所有权权限(如第一个答案中所建议的)。这是复制声明:
\copy weather from '/home/user1/Dropbox/Development/Databases/SQL/Codeschool/TrySQL/temp_data.csv' HEADER DELIMITER ',' CSV
Run Code Online (Sandbox Code Playgroud)
这是终端的屏幕截图:
为什么\copy这里不起作用?
我的机器上已经安装了 Yarn(包管理器),但我现在必须安装 Apache Hadoop。当我尝试这样做时brew install hadoop,我收到了错误 -
Error: Cannot install hadoop because conflicting formulae are installed.
yarn: because both install `yarn` binaries
Please `brew unlink yarn` before continuing.
Unlinking removes a formula's symlinks from /usr/local. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side-effects in the
resulting software.
Run Code Online (Sandbox Code Playgroud)
这似乎是因为 Hadoop 的 Yarn 与来自 yarnpkg 的 yarn 冲突。
如前所述这里,他们没有重新命名yarnpkg的纱线的意图,但他们已经加入yarnpkg作为别名 …
我是使用Eclipse的Java编程新手,所以非常感谢您对这个问题的帮助.
我在大学和家里都做过Java编程.在家里,我将所有Java类都放在一个项目中 - (Java Reference).现在,在大学里,java程序是在实验室机器上编译的.我真的希望在我的笔记本电脑上将所有这些程序放在一个项目中.
我最近从大学实验室的程序中复制了所有.class和.java文件,所以我可以在笔记本电脑的"Java Reference"项目下使用它们.我在我的笔记本电脑上复制了java项目的"bin"和"src"文件夹下的.class和.java文件.但是,我还没有看到通过Eclipse导入它们.
从我在这里看到的,看起来整个项目(在其他地方创建)可以通过导入选项复制到一个地方,但在我的情况下,我只有.class和.java文件.
我正在尝试学习C中的指针,并且已经完成了概念.我遇到了这个实验室问题,并尝试为它编写解决方案.
/* p1.c
Write a short C program that declares and initializes (to any value you like) a
double, an int, and a char. Next declare and initialize a pointer to each of
the three variables. Your program should then print the address of, and value
stored in, and the memory size (in bytes) of each of the six variables.
Use the “0x%x” formatting specifier to print addresses in hexadecimal. You
should see addresses that look something like this: "0xbfe55918". …Run Code Online (Sandbox Code Playgroud) 我正在使用K&R书籍在Windows机器上学习C. 我正在尝试bare bones Unix word count计算行,字符和单词的程序().虽然这个程序正确计算了字符数,但是没有.我的输出中的行和单词总是0和1,无论我输入什么.我也对程序的一部分感到有些困惑,我将接下来 -
#include<stdio.h>
#define IN 1
#define OUT 0
int main()
{
int c,state, nc,nw,nl;
nl=nw=nc=0;
state=OUT;
while(c=getchar()!=EOF)
{
++nc;
if(c=='\n')
++nl;
if(c=='\n'||c=='\t'||c==' ')
state=OUT;
else if(state==OUT)
{
state=IN;
++nw;
}
}
printf("\n No. of characters, lines and words are : %d,%d,%d\n",nc,nl,nw);
return 0;
}
Run Code Online (Sandbox Code Playgroud)
从它的外观,该程序正在使用nc,nl并nw分别以计数的字符数,线和文字输入流中输入.到目前为止,我对程序逻辑的理解是 -
IN并且OUT是用于指示程序当前状态的两个变量.IN表示程序当前在一个单词内部 - 换句话说 - 到目前为止在输入的字符中没有遇到空格,换行符或制表符.或者我认为.while循环之前,将STATE设置为out.这表明现在没有遇到任何消息.Ctrl+Z),字符 …我正在尝试在 Neo4J 中加载一些数据。我有一个Person已经设置好的节点。现在,该节点需要有一个email属性,该属性应该是数组(或集合)。基本上,该email属性需要有多个值,例如 -
email: ["abc@xyz.com", "abc@foo.com"]
Run Code Online (Sandbox Code Playgroud)
我在这里遇到了类似的问题,但所有答案都表明在创建节点本身时设置多个属性值。就像这个答案中的这个查询一样-
CREATE (e:Employee { name:"Sam",languages: ["C", "C#"]})
RETURN e
Run Code Online (Sandbox Code Playgroud)
但我的问题是Person节点已经创建,我现在需要设置email它的属性。
这是我必须加载的数据的一小部分 -
Personid|email
933|Mahinda933@hotmail.com
933|Mahinda933@yahoo.com
933|Mahinda933@zoho.com
1129|Carmen1129@gmail.com
1129|Carmen1129@gmx.com
1129|Carmen1129@yahoo.com
4194|Ho.Chi4194@gmail.com
4194|Ho.Chi4194@gmx.com
Run Code Online (Sandbox Code Playgroud)
此外,数据来自包含数千行的 CSV 文件,因此我的查询需要是通用的,我无法为每个单独的Person节点设置属性。
当我用这个子集测试电子邮件属性的创建时,我的第一次尝试是这样的 -
MATCH (n:TESTPERSON{id:933})
SET n.email = "Mahinda933@hotmail.com"
RETURN n
MATCH (n:TESTPERSON{id:933})
SET n.email = "Mahinda933@yahoo.com"
RETURN n
Run Code Online (Sandbox Code Playgroud)
正如我所想,这只是将email属性覆盖为最近查询中的值。
在查看了此处和 Cypher 文档上的答案后,我发现 Neo4J 允许您将数组/集合(同一类型的多个值)设置为属性值,然后我尝试了这个 -
// CREATE test node …Run Code Online (Sandbox Code Playgroud) c ×2
csv ×2
git ×2
javascript ×2
char ×1
char-pointer ×1
cypher ×1
eclipse ×1
github ×1
hadoop ×1
hadoop-yarn ×1
heroku ×1
java ×1
neo4j ×1
node.js ×1
nodemon ×1
pointers ×1
postgresql ×1
reactjs ×1
ubuntu-14.04 ×1
webpack ×1
webstorm ×1
windows ×1
word-count ×1
yarnpkg ×1