我正试图停下来并移除一个码头工人 - 容器.
我从docker turorial part1开始,现在是第2部分:https://docs.docker.com/get-started/part2/#run-the-app
我从那里复制了源.它也可以在这里找到:https://gist.github.com/sl5net/8b510bc0d3e00c474575e010003406c1
在这里您可以看到我的控制台如何:
Microsoft Windows [Version 10.0.16299.431]
C:\fre\private\docker\test18-05-14_05-27>docker build -t friendlyhello .
Sending build context to Docker daemon 5.12kB
no matching manifest for windows/amd64 in the manifest list entries
Run Code Online (Sandbox Code Playgroud)
BTW解决方案:我转到linux容器(在docker图标上右击> contextmenu)
C:\fre\private\docker\test18-05-14_05-27>docker build -t friendlyhello .
... Successfully built itsdangerous MarkupSafe
Successfully tagged friendlyhello:latest
C:\fre\private\docker\test18-05-14_05-27>docker run -p 4000:80 friendlyhello
* Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
C:\fre\private\docker\test18-05-14_05-27>docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
friendlyhello latest 7d4d1e0f78e6 8 …
Run Code Online (Sandbox Code Playgroud) 在Visual Studio Code中,是否有一个键盘快捷键可以导航(移动光标)到最后编辑的位置(就像在使用Ctrl + Shift + Backspace的所有Jetbrains产品中一样)?
CTRL + - shourtcut移动到最后一个位置(不是最后编辑的位置),这对我来说不太有用.
我正在使用Visual Studio Code JetBrains IDE Keymap for Visual Studio Code:
Visual Studio代码版本1.23.1提交d0182c3417d225529c6d5ad24b7572815d0de9ac数据2018-05-10T17:11:17.614Z Shell 1.7.12渲染器58.0.3029.110节点7.9.0 Architektur x64
是否可以使用 Javas文本块功能(Java 15)但只写一行?
看来我是被迫写多行了。
例如,我想在一行写是为了避免逃避"
它
String text = """<a href="https://sparkjava.com">https://sparkjava.com/</a>""";
Run Code Online (Sandbox Code Playgroud)
但它不能编译,我必须写
String text = """
<a href="https://sparkjava.com">https://sparkjava.com/</a>""";
Run Code Online (Sandbox Code Playgroud)
反而。
我是否忽略了什么?
有可能无法使用匿名对象吗?
我想做这样的短思考:
echo (new DateTime())->getTimestamp();
Run Code Online (Sandbox Code Playgroud)
在javascript中我们可以很快使用:
alert( (new Date()).getTime() );
Run Code Online (Sandbox Code Playgroud)
有什么更短的方式可以在PHP中使用?
没有创建功能?
不想使用exta funktion ..例如:
function timestamp() {
$dt = new DateTime();
return $dt->getTimestamp();
}
Run Code Online (Sandbox Code Playgroud)
顺便说一句:有用的链接:https://www.google.de/search? q = php + create + anonymous+object BTW2:这有效:
$obj = (object) array('foo' => 'bar', 'property' => 'value');
echo $obj->foo;
Run Code Online (Sandbox Code Playgroud)
谢谢大家!为你的快速答案.
BTW3(13-11-22_16-12更新):
我发现了一些有用的东西:
echo $_SERVER['REQUEST_TIME'];
echo @date('H:i:s');
Run Code Online (Sandbox Code Playgroud) 我很惊讶,因为我能够从 Github 签出并运行 Kotlin 项目而不会出现此错误,现在得到此 Java 错误
我使用
我尝试按 Alt+Enter。IDE 手册上说:“Alt+Enter:显示意图操作和快速修复。”
这是我的文件名:
/home/me/IdeaProjects/KeyEvent-Reader-Demo/src/Test.kt
Run Code Online (Sandbox Code Playgroud)
我在这里发现同样的错误:https ://discuss.kotlinlang.org/t/kotlin-unresolved-reference-java/6734
我想从午夜开始以毫秒为单位获取当前时间。
我不知道这是否可能?
我知道A_TickCount给出了计算机重新启动后的毫秒数。
我想删除 vscode (因为 vscode 不会启动。没有错误消息)。
我在快照列表中找到了它,但它不会删除:
$ snap list | grep code
code 8795a988 20 stable vscode* classic
$ snap remove vscode
snap "vscode" is not installed
$ snap remove vscode*
snap "vscode*" is not installed
Run Code Online (Sandbox Code Playgroud)
我在这里阅读教程:https://www.howtogeek.com/252047/how-to-install-and-manage-snap-packages-on-ubuntu-16.04-lts/
我从这里得到 vscode: https: //code.visualstudio.com/#alt-downloads