我正在尝试在我的开发环境中通过 Chrome 连接到 API。
我已将 localhost 配置为在 SSL 下运行以进行测试,
当我连接到 API 时出现https://
此错误
Run Code Online (Sandbox Code Playgroud)request.js:132 OPTIONS https://api.thenounproject.com:80/icons/test net::ERR_SSL_PROTOCOL_ERROR
要让本地开发人员在 Chrome 中的 https 上运行,我必须启用:
chrome://flags/#allow-insecure-localhost.
Run Code Online (Sandbox Code Playgroud)
开发环境中是否存在这些讨厌的安全问题?
我正在运行来自Google Analytics的大量查询,这些查询在我的本地计算机上运行良好.但是在服务器上,它似乎在此错误之前运行了3个查询(251):
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:146)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:312)
at sun.security.ssl.InputRecord.read(InputRecord.java:350)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:775)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:688)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1162)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:397)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at com.google.api.client.http.javanet.NetHttpResponse.<init>(NetHttpResponse.java:37)
at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:94)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:972)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
at co.beek.pano.model.beans.APImethods.makeRequest(Unknown Source)
at co.beek.pano.service.dataService.googleAnalytics.GAServiceImpl.loadLandingPageData(Unknown Source)
at co.beek.pano.service.dataService.googleAnalytics.GAServiceImpl.cacheGAData(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at …
Run Code Online (Sandbox Code Playgroud) 我想在iOS上用Away3d纹理播放视频.它在Android和Windows上都很好用.该视频将在IOS的Starling上播放,所以我知道这不是视频.
这是我添加视频的方式
sphereGeometry = new SphereGeometry(5000, 64, 48);
panoTextureMaterial = new TextureMaterial(panoTexture2DBase, false, false, false);
panoVideoMesh = new Mesh(sphereGeometry, panoTextureMaterial);
panoVideoMesh.scaleX *= -1;
panoVideoMesh.rotate(Vector3D.Y_AXIS,-90);
scene.addChild(panoVideoMesh);
panoTexture2DBase.player.play();
view.render();
Run Code Online (Sandbox Code Playgroud)
在iOS上,当我尝试将其加载为视频纹理时,我从netstats获取此信息.
NetStream.Play.Start
NetStream.Play.Failed
NetStream.Play.Stop
Run Code Online (Sandbox Code Playgroud)
我正在使用Away3d NativeVideoTexture类
texture = context.createVideoTexture();
texture.attachNetStream(_player.ns);
Run Code Online (Sandbox Code Playgroud)
我认为它可能与MP4编码有关,我已经好好看看并找不到任何有效的东西,目前我在FFMEG中尝试这个
-vcodec libx264 -profile:v main -level 3.1 -crf 23 -s 1024:768 -movflags +faststart
Run Code Online (Sandbox Code Playgroud)
但我设定的似乎没有太大的区别.
知道为什么我的视频无法在iOS上加载为VideoTexture吗?
我正在使用Three.DragControls在场景周围拖动一个对象.当物体被拖动时,它与相机的距离似乎越来越远.
我的问题类似于从摄像机视图锁定在特定距离/半径的未解决的一个Drag对象
是否有一种聪明的方法可以将_intersection.sub(_offset)与场景中心的相机保持一定距离?
我在场景中添加了一个球体
dragSphere = new THREE.Mesh(new THREE.SphereGeometry(200, 60, 40 ),new THREE.MeshBasicMaterial());
dragSphere.name = "dragSphere";
dragSphere.visible = false;
dragSphere.scale.x = -1;
scene.add(dragSphere);
Run Code Online (Sandbox Code Playgroud)
在这里的某个地方
function onDocumentMouseMove( event ) {
event.preventDefault();
var offset = $("#container").offset();
var rect = _domElement.getBoundingClientRect();
_mouse.x = ( ( event.clientX - rect.left - (offset.left/2) ) / ( rect.width - rect.left ) ) * 2 - 1;
_mouse.y = - ( ( event.clientY - rect.top ) / ( rect.bottom - rect.top) ) * …
Run Code Online (Sandbox Code Playgroud) 我们在 EC2 上有一个 Java 11 服务器,它刚刚开始构建失败并出现以下错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile)
on project showhow-server: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x49d0e934) cannot access class
com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler
does not export com.sun.tools.javac.processing to unnamed module @0x49d0e934 -> [Help 1]
[ERROR]
Run Code Online (Sandbox Code Playgroud)
构建来自 BitBucket 管道。
知道它可能是什么吗?
我正在尝试补间摄像机.使用Tween.js在Three.js中查看但收效甚微.
这有效
selectedHotspot = object;
var tween = new TWEEN.Tween(camera.lookAt( object.position),600).start();
Run Code Online (Sandbox Code Playgroud)
但是将相机直接旋转到object.position.
如何获得良好的平滑旋转?
这是渲染功能
function update() {
lat = Math.max(-85, Math.min(85, lat));
phi = THREE.Math.degToRad(90 - lat);
theta = THREE.Math.degToRad(lon);
target.x = 512 * Math.sin(phi) * Math.cos(theta);
target.y = 512 * Math.cos(phi);
target.z = 512 * Math.sin(phi) * Math.sin(theta);
if(!selectedHotspot)
camera.lookAt(target);
renderer.render(scene, camera);
}
Run Code Online (Sandbox Code Playgroud)
UPDATE
好吧,我无法在相机上做任何事情.我认为一定有别的错误.渲染函数中是否还有其他内容?
我一直在尝试将音频 mp3 与视频 mp4 混合,同时保留 mp4 音频。这是与 .
ffmpeg -y -i video.mp4 -i audio.mp3
-filter_complex "[0:a][1:a]amix=inputs=2:duration=longest[out]"
-map 0:v -map [out] output.mp4
Run Code Online (Sandbox Code Playgroud)
我现在正在尝试调整声音文件(视频 0.5,音频 1)的音量作为混音的一部分。
我一直在尝试这样的事情
ffmpeg -i 020c276b-face-4bb3-9169-e8969c1232ba.mp4 -i test.mp3 -filter_complex
"[0:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=0.5[a1];
[1:a]aformat=sample_fmts fltp:sample_rates=44100:channel_layouts=stereo,volume=0.8[a2];
[a1][a2]amerge,pan=stereo:c0<c0+c2:c1<c1+c3[out]"-map 1:v -map [out]
-c:v copy -c:a aac -strict -2 output2.mp4`
Run Code Online (Sandbox Code Playgroud)
我收到错误,例如
[Parsed_aformat_2 @ 037f8620] 解析样本格式时出错:sample_fmts fltp。[AVFilterGraph @ 038be620] 使用 args 'sample _fmts fltp:sample_rates=44100:channel_layouts=stereo' 初始化过滤器 'aformat' 时出错,初始化复杂过滤器时出错。无效的论点
有谁知道如何使我在上面编写的代码有效,还可以更改输入的音量吗?
谢谢
我正在尝试从Linux EC2实例中获取系统日志,无论是在日志文件中还是在命令行中。
我可以从控制台获取它们,但是它们总是过时的。
aws ec2 get-console-output --instance-id <my-ec2-id>
Run Code Online (Sandbox Code Playgroud)
正在询问地区,访问键等。
有什么简单的方法可以仅从当前实例获取日志?
我正在用Cordova插件做噩梦。
无法安装“ cordova-plugin-file-transfer”:CordovaError:已安装插件的版本:“ cordova-plugin-file@4.3.3”不满足依赖项插件要求“ cordova-plugin-file @> = 5.0.0” 。尝试--force将安装的插件用作依赖项。
依存关系
"dependencies": {
"android": "0.0.8",
"com.rjfun.cordova.httpd": "https://github.com/floatinghotpot/cordova-httpd.git",
"cordova-android": "^6.3.0",
"cordova-browser": "^5.0.4",
"cordova-media-with-compression": "~2.1.1",
"cordova-plugin-android-permissions": "~1.0.0",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-file": "~5.0.0",
"cordova-plugin-file-downloader": "^0.3.2",
"cordova-plugin-file-md5": "^0.3.3",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-fullscreen": "~1.1.0",
"cordova-plugin-insomnia": "git+https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-speechrecognition": "~1.1.2",
"cordova-plugin-webserver": "git+https://github.com/bykof/cordova-plugin-webserver.git",
"cordova-plugin-whitelist": "~1.3.3",
"cordova-plugin-zip": "^3.1.0",
"cordova-sqlite-storage": "~2.3.3"
}
Run Code Online (Sandbox Code Playgroud)
Config.xml
<plugin name="cordova-plugin-fullscreen" spec="~1.1.0" />
<plugin name="com.rjfun.cordova.httpd" spec="https://github.com/floatinghotpot/cordova-httpd.git" />
<plugin name="cordova-plugin-android-permissions" spec="~1.0.0" />
<plugin name="cordova-media-with-compression" spec="~2.1.1" />
<plugin name="cordova-plugin-file-downloader" spec="^0.3.2" />
<plugin name="cordova-plugin-file" spec="~5.0.0" />
<plugin name="cordova-plugin-file-transfer" spec="^1.7.1" /> …
Run Code Online (Sandbox Code Playgroud) 我有一个 aframe 项目,它是 React 应用程序的一部分并且工作正常。
由于各种问题,我正在尝试分离各层
我已将 aframe 场景直接添加到 HTML 文档中
<body>
<div id="root" style="height: 100%; width: 100%">
</div>
<a-scene>
</a-scene>
</body>
Run Code Online (Sandbox Code Playgroud)
React 部分渲染良好,但 AFRAME 崩溃了
类型错误:系统[名称]不是构造函数
从
this.systems[name] = new systems[name](this);
this.systemNames.push(name);
Run Code Online (Sandbox Code Playgroud)
aframe 库是通过 Webpack 导入的。
有什么想法可能导致这种情况吗?