我安装了Wireshark,在安装过程中显示错误但安装本身已完成.当我运行该程序并尝试在我的网络上捕获数据包时,它显示以下错误:

我是mac的新手,所以我甚至不知道如何正确询问.
有人能帮助我吗?
我刚刚开始使用Docker,我正在学习基本上显示以下步骤的教程:
像这样创建一个Dockerfile:
From php:7.0-apache
copy src/ /var/www/html
EXPOSE 80
从我的dockerfile构建容器:
$ docker build -t mytest .
生成图像"mytest"后,我运行它:
$ docker run -p 80 mytest
这就是我得到的错误:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[Sun Sep 17 16:25:12.340564 2017] [mpm_prefork:notice] [pid 1] …Run Code Online (Sandbox Code Playgroud) 我正在使用Chrome Canary运行python脚本(下面的完整脚本链接)进行selenium测试.测试似乎运行正常,但是,控制台上显示了大量错误/警告/信息消息.
有没有办法压制这些消息?我试过:chrome_options.add_argument(" - silent"),但没有帮助.我无法找到合适的解决方案.感谢任何帮助.
Python脚本:此处提供的示例脚本
Python:3.6.3 Selenium:3.6.0 Chrome Canary:63.0.3239.5(64位)ChromeDriver:2.33

我花了很多天时间尝试使用interact.js旋转一个可调整大小的项目.
这是我此时的代码,我将尝试解释这个概念.
我们有一个选择器项有两个原因,因为容器可以使用css转换(比如缩放),我们需要将选择器放在外面,因为我们有一个多选,如果我选择了两个矩形,选择器会增长,但在这种情况下,这不是主要问题,我们已经计算了比例,没有问题和其他事情.
当选择器调整大小时,它采用矩形,并使宽度,高度,左,顶部和旋转相同.
使用Javascript:
// TAP - CLICK EVENT (just for positioning the selector)
interact('#rectangle').on('tap', event => {
console.log('Tap Box!');
event.stopPropagation();
const $rectangleCloned = $('#rectangle').clone();
const previousTransform = $rectangleCloned.css('transform');
$rectangleCloned.css('transform', 'none');
$rectangleCloned.css('opacity', '0');
$rectangleCloned.css('display', 'block');
$('#container').append($rectangleCloned);
const values = $rectangleCloned[0].getBoundingClientRect();
// This is just a trick for fast implementation:
$('#selector').css('top', values.y);
$('#selector').css('left', values.x);
$('#selector').css('width', values.width);
$('#selector').css('height', values.height);
$('#selector').css('transform', previousTransform);
$rectangleCloned.remove();
return values;
});
interact('.pointer9').draggable({
max: 1,
onmove: event => {
const angleDeg =
Math.atan2(
centerRotate.posY - event.pageY, …Run Code Online (Sandbox Code Playgroud) 我希望能够将证书传递给Python的ssl库,而无需临时文件.似乎Python的ssl模块不能这样做.
要解决此问题,我想从本机模块中检索SSL_CTX存储在ssl._ssl._SSLContext类中的基础结构_ssl.使用ctypes然后我可以SSL_CTX_*使用该上下文从libssl 手动调用相应的函数.这里显示了如何在C中执行此操作,我将通过ctypes执行相同的操作.
不幸的是,我陷入了我设法挂钩load_verify_locations函数的地步,ssl._ssl._SSLContext但似乎无法获得ssl._ssl._SSLContext结构实例的正确内存地址.load_verify_locations看到的所有函数都是父ssl.SSLContext对象.
我的问题是,如何从ssl.SSLContext对象的实例到本机基类的内存ssl._ssl._SSLContext?如果我愿意,我可以轻松访问其ctx成员.
到目前为止,这是我的代码.关于如何将本机Python模块进行monkeypatch的信用转到Lincoln Clarete的禁果项目
Py_ssize_t = hasattr(ctypes.pythonapi, 'Py_InitModule4_64') and ctypes.c_int64 or ctypes.c_int
class PyObject(ctypes.Structure):
pass
PyObject._fields_ = [
('ob_refcnt', Py_ssize_t),
('ob_type', ctypes.POINTER(PyObject)),
]
class SlotsProxy(PyObject):
_fields_ = [('dict', ctypes.POINTER(PyObject))]
class PySSLContext(ctypes.Structure):
pass
PySSLContext._fields_ = [
('ob_refcnt', Py_ssize_t),
('ob_type', ctypes.POINTER(PySSLContext)),
('ctx', ctypes.c_void_p),
]
name = …Run Code Online (Sandbox Code Playgroud) 当前一个命令失败时,我希望我的提示显示交叉(✘).我使用以下代码:
export PROMPT=$'%(?..?\n)\n› '
Run Code Online (Sandbox Code Playgroud)
这给了我以下输出:
› echo Hello
Hello
› asjdfiasdf
zsh: command not found: asjdfiasdf
?
›
?
Run Code Online (Sandbox Code Playgroud)
我想修改提示,以便在重新绘制提示后不重复交叉Enter(上例中的第三种情况).
可能吗?
是否可以捕获取消订阅事件?
这是用于订阅用户通知的代码
if ('serviceWorker' in navigator) {
navigator.serviceWorker.ready.then(function(reg) {
reg.pushManager.subscribe({
userVisibleOnly: true
}).then(function(sub) {
add_endpoint_to_db( sub ); // im adding the user deatils to my db
}).catch(function(e) {
if (Notification.permission === 'denied') {
} else {
}
});
});
Run Code Online (Sandbox Code Playgroud)
}
如果用户选择手动删除通知
我想抓住动作,以便从DB中删除他的条目
那么有可能捕获通知更改事件吗?
javascript google-chrome push-notification service-worker web-push
假设我有三个脚本.Main.py(包含所有导入),1.py(随机脚本),2.py(随机脚本).
pyinstaller -F --onedir Main.py (80mb)
pyinstaller -F --onedir 1.py (80mb)
pyinstaller -F --onedir 2.py (80mb)
Run Code Online (Sandbox Code Playgroud)
这将创建3个文件夹,然后将1.exe和2.exe复制到主文件夹,包含所有依赖项,这样运行正常.

存在两个问题:
问题是规模.一个文件将其减少到30mb,一个文件夹将其保持在80mb
更重要的是,exe不能离开该文件夹.我不得不求助于在Python中使用快捷方式.
我正在关注这个,据说这是一个解决方法.
我的问题是,如何通过pyinstaller读取选定位置的导入,以便移动可执行文件?
逻辑:使用编译Main.py pyinstaller -F –onefile Main.py (15mb).
在C:\13\so exe看起来像创建文件夹C:\13\Main.exe
链接所有exe的C:\13?同 --runtime-tmpdir PATH
我正在努力寻找从exe或甚至"one dir"文件夹中获取导入的文档.从get get开始有很多进口,但从选择位置获取进口并不多,所以我可以在任何地方运行exe.更重要的是,甚至很难在pyinstaller中找到模块而不是反编译它增加了这种混乱.
也许...
pyinstaller -F --runtime-tmpdir C:\13 --onefile 2.py
pyinstaller -F --runtime-tmpdir C:\13 --onedir 3.py
Run Code Online (Sandbox Code Playgroud)
虽然对我来说没有创建目录.如何从选定位置获取导入.
另一种可能的解决方案:
if getattr(sys, 'frozen', False):
os.path.join(sys._MEIPASS, "C:\aa")
Run Code Online (Sandbox Code Playgroud)
虽然你可以在图像中看到,但是我们想要大熊猫,有几个文件可供选择......
尝试使用laravel-mix,但是当我尝试npm install,或者npm install --no-bin-links,或者sudo npm install时,我在下面得到这个错误..我在Windows 8.1上使用宅基地和流浪者..请对此有任何帮助
npm WARN ETXTBSY: text file is busy, unlink '/home/vagrant/blog/mix/node_modules/abbrev/package.json.78971974'
npm ERR! path /home/vagrant/blog/mix/node_modules/acorn-dynamic-import/package.json.247239
npm ERR! code ETXTBSY
npm ERR! errno -26
npm ERR! syscall rename
npm ERR! ETXTBSY: text file is busy, rename '/home/vagrant/blog/mix/node_modules/acorn-dynamic-import/package.json.247239' -> '/home/vagrant/blog/mix/node_modules/acorn-dynamic-import/package.json'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2017-09-04T00_51_52_140Z-debug.log
Run Code Online (Sandbox Code Playgroud) javascript ×2
python-3.x ×2
selenium ×2
apache ×1
compression ×1
cpython ×1
ctypes ×1
docker ×1
graphql ×1
homestead ×1
interact.js ×1
laravel ×1
laravel-mix ×1
macos ×1
node.js ×1
npm ×1
pandas ×1
performance ×1
permissions ×1
profiling ×1
pyinstaller ×1
pyopenssl ×1
python ×1
resize ×1
vagrant ×1
web-push ×1
websocket ×1
wireshark ×1
zsh ×1