我用来ionic serve在localhost上运行我的应用程序.
我怎么知道我什么时候在浏览器而不是android?
我试过了:
navigator.platform // MacIntel
navigator.platforms // undefined
ionic.Platform.is('BROWSER') // false
navigator.userAgent // ...iPhone... => i'm in chrome device mode
Run Code Online (Sandbox Code Playgroud)
谢谢!
我可以在本地上传视频.使用回形针处理视频,并且还可以正确保存所有元数据.当我尝试使用远程服务器上传视频时,收到错误消息:
Av::UnableToDetect (Unable to detect any supported library)
Run Code Online (Sandbox Code Playgroud)
我已经安装ffmpeg使用LinuxBrew.它说所有东西都正确安装(检查哪个brew和哪个ffmpeg,以及检查宝石是否正确安装).
当我在我的视频模型中设置样式(这使得元信息能够存储并控制视频的上传方式)时,它无法远程工作.
has_attached_file :video, path: "/posts/:id/:style.:extension",
:styles => {
:medium => { :geometry => "493x877", :format => 'flv' },
:thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 },
# :mobile => {:geometry => "640X480", :format => 'mp4', :streaming => true}
}, :processors => [:transcoder]
Run Code Online (Sandbox Code Playgroud)
但是,当我从我的模型中删除它并具有:
has_attached_file :video, path: "/posts/:id/:style.:extension"
Run Code Online (Sandbox Code Playgroud)
视频上传到S3(没有我需要的数据或样式).
任何帮助将不胜感激.我认为AV无法找到ffmpeg,但我不确定为什么或如何去修复它.提前感谢任何建议.
OOZIE REST API 重新运行 - 启动作业功能不起作用
您好,我想启动 Oozie 的作业抛出 REST API(CDH 5.3.1 中的 Oozie 版本 4.0.0),但该作业无法启动或重新运行。
通过 Google 的 ADVANCED REST API,我推出了:
PUT {namenode}:11000/oozie/v1/job/0000001-150528075707705-oozie-oozi-W?action=start
Run Code Online (Sandbox Code Playgroud)
结果是:
200 OK
响应不包含任何数据。
但工作流程的工作并未开始。
然后我尝试启动
PUT {namenode}:11000/oozie/v1/job/0000001-150528075707705-oozie-oozi-W?action=rerun
Run Code Online (Sandbox Code Playgroud)
结果是:
500 Internal Server Error
Apache Tomcat/6.0.41 - 错误报告
类型异常报告
消息org.xml.sax.SAXParseException;文件提前结束。
描述服务器遇到内部错误,无法满足此请求。
例外
java.io.IOException: org.xml.sax.SAXParseException; 文件提前结束。
org.apache.oozie.util.XConfiguration.parse(XConfiguration.java:253)
org.apache.oozie.util.XConfiguration.<init>(XConfiguration.java:63)
org.apache.oozie.servlet.BaseJobServlet.doPut(BaseJobServlet.java:114)
javax.servlet.http.HttpServlet.service(HttpServlet.java:730)
org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:287)
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:154)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:592)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:555)
org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:159)
org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:84)
根本原因
org.xml.sax.SAXParseException; 文件提前结束。
org.apache.xerces.parsers.DOMParser.parse(来源未知)
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(来源未知)
javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
org.apache.oozie.util.XConfiguration.parse(XConfiguration.java:248)
org.apache.oozie.util.XConfiguration.<init>(XConfiguration.java:63)
org.apache.oozie.servlet.BaseJobServlet.doPut(BaseJobServlet.java:114)
javax.servlet.http.HttpServlet.service(HttpServlet.java:730)
org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:287)
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:154) … 我试图创建一个新的空记录而不创建模型.
无意中我试图运行这个:
new new storeComp.model()
Run Code Online (Sandbox Code Playgroud)
它确实有效!
任何人都知道任何解决方案或回答它是如何工作的?
谢谢!沙立夫
手术失败:
Couldn't find section [mysqld] in the config file /etc/mysql/my.cnf
Run Code Online (Sandbox Code Playgroud)
出现这个错误,它是什么以及如何修复?
我是android的新手.我的英语口语不好.因此,我将使用a获取用户名并将其EditText设置为a TextView但问题是EditText在第一个类(MyActivity)中,而TextView在第二个类(MyAcyivity2)中.我做了所有的事情,比如FindViewById......,但当我设置一个点击监听器:
Textview1.setText(EditText1.getText())
Run Code Online (Sandbox Code Playgroud)
并打开应用程序,通过单击按钮它说:不幸的是应用已停止.
该怎么办?