我目前正在 Ubuntu 18.04 服务器上运行 Jupyter 实验室服务。我已经使用以下命令在我的实验室上设置了密码:
$ jupyter notebook --generate-config
$ jupyter notebook password
Run Code Online (Sandbox Code Playgroud)
它以以下输出响应:
[NotebookPasswordApp] Wrote hashed password to /Users/you/.jupyter/jupyter_notebook_config.json
Run Code Online (Sandbox Code Playgroud)
之后,我在 .jupyter/jupyter_notebook_config.py 文件中添加配置设置,如下所示:
c.NotebookApp.password = u'sha1:bcd259ccf...<my hashed password here>'
Run Code Online (Sandbox Code Playgroud)
我想要的是获得 SHA 256 哈希密码而不是 SHA 1,纯粹是因为 SHA 256 哈希由于其长度较大而提供了额外的加密级别。
我想知道是否有办法使这成为可能?目前我已经尝试了几种选择,但似乎都不起作用。
我正在尝试从 facebook 视频链接中提取 facebook 视频文件页面的 url,但我无法继续。
例如:我的 facebook 视频网址是:https : //www.facebook.com/nerdandco/videos/1662140250706521/
如何使用 php 或 javascript 获取此 url?提前致谢 :)
我正在尝试从 PHP 中的 Mjpeg 流中获取帧。我尝试过文件读取来读取文件,然后根据标头获取帧。但我做不到。我可以看到文件中存在标头,但是当使用 exif_read_data 查找标头是否存在时,它显示没有标头。我获取帧的代码是:
function grab_frame($url) {
$f = fopen($url, 'r'); //6,168
if($f) {
$r = null;
while(substr_count($r, "Content-Length")!= 5){
$r.= fread($f,40000000);
$start = strpos($img,'F1');
$end = strpos($img,'F2');
$frame = substr($r, $start, $end);
}
fclose($f);
return $frame;
}
}
Run Code Online (Sandbox Code Playgroud)
我想使用内容长度标头来查找帧长度,然后获取整个帧数据,然后再次循环以查找下一帧。
php ×2
facebook ×1
frame ×1
javascript ×1
jupyter-lab ×1
mjpeg ×1
python ×1
sha ×1
ubuntu ×1
video ×1