每当我尝试向GitHub推送任何内容时,它会询问我的地址git@github.com:...,然后它需要密码.有没有办法实现自动化?
我正在使用Linux Ubuntu.
我的配置基于Varnish 3.0,我一直在更新它们.但是我陷入了困境.
vcl_fetch被取代了vcl_backend_response.在vcl_fetch你的内部曾经能够使用req.url但不再在内部vcl_backend_response.
所以我留下三个if不起作用的陈述:
sub vcl_backend_response {
set beresp.do_esi = true;
if (!(req.url ~ "wp-(login|admin)")) {
unset beresp.http.set-cookie;
}
if ( req.http.host ~ "[0-9]\.example\.com" || req.http.host ~ "[0-9]\.example\.com") {
set beresp.ttl = 60s;
}
if ( req.url ~ "\.(html|htm|css|js|txt|xml|svg)(\?[a-z0-9=]+)?$" ) {
set beresp.do_gzip = true;
}
}
Run Code Online (Sandbox Code Playgroud)
如何在Varnish 4.0版中转换这些配置?
顺便说一下,我是Varnish VCL的新手.
这是我得到的错误:
Script php artisan optimize handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]
Run Code Online (Sandbox Code Playgroud)
这显示在:
Writing lock file
Generating autoload files
Run Code Online (Sandbox Code Playgroud)
我试图删除我的供应商文件夹中的所有文件夹.但这并没有改变任何事情.
我在Mac OS X上使用MAMP服务器.
PHP版本5.4.10
mcrypt 2.5.8
我刚试过"sudo composer update --verbose",我收到了这个错误:
sudo composer update --verbose
Password:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Generating autoload files
Script php artisan optimize handling the post-update-cmd event returned with an …Run Code Online (Sandbox Code Playgroud) 有没有办法保持"Hello"元素固定?因此,当用户向上或向下滚动时,hello元素不会从其位置移动.
这是一个例子:http://jsfiddle.net/VR5P8/
这是CSS:
#hello {
position: fixed;
border: 1px solid #000;
height: 100px;
width: 100px;
background-color: white;
}
Run Code Online (Sandbox Code Playgroud)
这是"Hello"元素的包装器的代码:
-webkit-transform: translate(394px, 0px);
Run Code Online (Sandbox Code Playgroud) 我不能这样做:
git submodule add -f git@github.com:thephpleague/oauth2-server.git libs/OAuth/functions
Run Code Online (Sandbox Code Playgroud)
因为这:
'libs/OAuth/functions'已经存在,并且不是有效的git仓库
我只是不明白.它不存在于任何地方.我的计算机上是否隐藏了另一个我不知道的git配置文件?我尝试删除.git并再次拉动所有没有做任何事情的东西.有任何想法吗?
我也试过这个:
git ls-files --stage functions
Run Code Online (Sandbox Code Playgroud)
当我在libs/OAuth里面时我什么也没得到.
然后我尝试了这个:
sudo git rm --cached functions
Run Code Online (Sandbox Code Playgroud)
我收到了这个错误:
fatal: pathspec 'functions' did not match any files
Run Code Online (Sandbox Code Playgroud)
我也试过这个:
sudo git rm -r --cached functions
Run Code Online (Sandbox Code Playgroud)
并得到了相同的错误.
退出cli后,我无法从Cassandra中检索数据.当我回去在另一个会话中获取数据时,我收到此错误:
org.apache.cassandra.db.marshal.MarshalException:无法将'jsmith'解析为十六进制字节
列系列似乎也停留在键空间中.
我还将密钥格式更改为ascii(假设用户密钥为ascii;)......并且不会保持设置状态.
有原因吗?到底是怎么回事?
有没有办法找到具有以特定字符串开头的属性的所有元素?
我正在使用Mootools框架,这是我尝试过的:
$$('*[data-media-*]');
Run Code Online (Sandbox Code Playgroud)
但它只输出页面中的所有元素.
那么有没有办法让页面中的所有元素都具有以data-media-?开头的属性?
我正在响应网站.我有代码为屏幕大小加载正确的图像大小.
我面临的问题是我正在为一些移动设备使用Retina图像.这意味着客户端下载的图像具有更大的尺寸.现在谷歌的网页速度正在抱怨说我应该优化我的图像.但问题是,如果我减小图像的大小,我将失去视网膜显示的质量.
Google Pagespeed不支持Retina图像吗?有没有办法告诉Google Pagespeed这些是视网膜图像?
或者Google是否有针对Retina图像的最佳做法?
当我运行这个:
docker-compose --verbose create
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
compose.config.config.find: Using configuration files: ./docker-compose.yml
docker.auth.find_config_file: Trying paths: ['/home/ubuntu/.docker/config.json', '/home/ubuntu/.dockercfg']
docker.auth.find_config_file: No config file found
Traceback (most recent call last):
File "/usr/local/bin/docker-compose", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 68, in main
command()
File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 115, in perform_command
project = project_from_options('.', options)
File "/usr/local/lib/python2.7/dist-packages/compose/cli/command.py", line 37, in project_from_options
override_dir=options.get('--project-directory'),
File "/usr/local/lib/python2.7/dist-packages/compose/cli/command.py", line 99, in get_project
host=host, environment=environment
File "/usr/local/lib/python2.7/dist-packages/compose/cli/command.py", line 74, in get_client
version_info = six.iteritems(client.version())
File "/usr/local/lib/python2.7/dist-packages/docker/api/daemon.py", line 177, in version
return …Run Code Online (Sandbox Code Playgroud) 尝试使用Tika时,我收到了所有这些警告:
2018年2月24日晚上9:24:35 org.apache.tika.config.InitializableProblemHandler $ 3 handleInitializableProblem警告:未加载JBIG2ImageReader。jbig2文件将被忽略。有关可选依赖项,请参见 https://pdfbox.apache.org/2.0/dependencies.html#jai-image-io。TIFFImageWriter未加载。tiff文件将不会被处理。有关可选依赖项,请参见 https://pdfbox.apache.org/2.0/dependencies.html#jai-image-io。J2KImageReader未加载。JPEG2000文件将不会被处理。请参阅 https://pdfbox.apache.org/2.0/dependencies.html#jai-image-io了解可选的依赖项。
2018年2月24日晚上9:24:35 org.apache.tika.config.InitializableProblemHandler $ 3 handleInitializableProblem警告:org.xerial的sqlite-jdbc未加载。请在您的类路径中提供jar来解析sqlite文件。请参阅tika-parsers / pom.xml以获取正确的版本。
我尝试添加此内容(在Tika pom.xml中):
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.57</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcmail-jdk15on</artifactId>
<version>1.57</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.57</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>com.levigo.jbig2</groupId>
<artifactId>levigo-jbig2-imageio</artifactId>
<version>2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.jai-imageio</groupId>
<artifactId>jai-imageio-core</artifactId>
<version>1.3.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.jai-imageio</groupId>
<artifactId>jai-imageio-jpeg2000</artifactId>
<version>1.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.20.1</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
但是我仍然收到同样的警告。
我该如何解决?
更新1
我的依赖项已添加到此处:https : //github.com/apache/tika/blob/1.17/pom.xml#L164-L170
我也尝试了没有设置测试。它什么也没做。
我添加的依赖项似乎是PDFBox的Tika依赖项。