我有一个GetList.py文件,它使用Web服务并在服务器上以XML格式保存输出.
如何调用,GetList.py以便在.ASPX页面中显示XML输出之前将输出保存在服务器上的XML中?
我正在使用OpenShift进行学习,在我看来,RHC设置不起作用.
当我尝试执行它时,它在生成授权令牌时失败,说:
为此客户端生成授权令牌...仅接受有效的UTF-8编码输入
然后停止
我的平台是Windows 7.
我无法通过以下错误:
$ rhc setup
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.
A secure connection could not be established to the server (SSL_connect
returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint). You may
disable secure connections to your server with the -k (or --insecure) option
'https://openshift.redhat.com/broker/rest/api'.
If your server is using a self-signed certificate, you may disable …Run Code Online (Sandbox Code Playgroud) 我的openshift配额超过了:
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/EBSStore01-user_home01
1048572 0 1048576 6890 0 80000
Run Code Online (Sandbox Code Playgroud)
我找到了一个不同的stackoverflow问题,磁盘空间可以通过'rhc app-tidy'清理
但是当我运行此命令时,我收到以下错误:
Warning: Gear xxx is using 100.0% of disk quota
Failed to execute: 'control start' for /var/lib/openshift/xxx/mysql
Run Code Online (Sandbox Code Playgroud)
当我运行以下命令时,请确实查看哪些文件占用的空间最多
du -h * | sort -rh | head -50
Run Code Online (Sandbox Code Playgroud)
我得到以下输出:
605M wildfly
320M git/mythings.git/objects
320M git/mythings.git
320M git
317M wildfly/usr/lib/jvm/jdk1.8.0_05
317M wildfly/usr/lib/jvm
317M wildfly/usr/lib
317M wildfly/usr
166M wildfly/usr/lib/jvm/jdk1.8.0_05/jre
165M wildfly/usr/lib/jvm/jdk1.8.0_05/jre/lib
136M wildfly/versions/8
136M wildfly/versions
118M wildfly/versions/8/modules
118M wildfly/usr/lib/jvm/jdk1.8.0_05/lib
118M wildfly/modules
116M wildfly/versions/8/modules/system/layers/base
116M …Run Code Online (Sandbox Code Playgroud) 我是Neo4j的新手.有人可以向我解释(请一步一步)我如何实现Dijkstra的算法来找到两个节点之间的最短路径?是否可以使用Cypher简单地完成它?
我已经尝试过shortestPath算法,但速度非常慢:
MATCH (from: Location {LocationName:"x"}), (to: Location {LocationName:"y"}) , path = (from)-[:CONNECTED_TO*1..5]->(to)
RETURN path AS shortestPath,
reduce(distance = 0, r in relationships(path)| distance+toInt(r.Distance))
AS totalDistance
ORDER BY totalDistance ASC
LIMIT 1
Run Code Online (Sandbox Code Playgroud)
我的节点是:具有属性LocationID和LocationName的位置我的关系是:CONNECTED_TO属性Distance
我有6000多个关系
请注意在上面的代码中我限制为1..5,当我没有定义此限制时,查询不会给出任何结果(继续执行)
谢谢
当我访问我的网站上的页面时,yammer嵌入了与我的浏览器登录的网络不同的网络,我收到X-Frame-Options:SAMEORIGIN错误并且嵌入的iframe无法加载.当我拉出iframe试图加载的URL时,它会提示我加入外部yammer网络,确实有一个响应头X-Frame-Options: SAMEORIGIN.
有没有办法检测这种情况并提示用户加入网络(甚至只是注销,以便在嵌入iframe中显示某些内容?
我创建了一个缩放的nodejs应用程序并添加了mongodb,一切运行正常(使用环境变量从nodejs内连接到mongodb).现在我想从我的本地机器连接到数据库,我无法让它在我的生活中工作.
rhc port-forward -a [myapp]
Run Code Online (Sandbox Code Playgroud)
收益:
Forwarding ports ...
Address already in use - bind(2) while forwarding port 8080. Trying local port 8081
Address already in use - bind(2) while forwarding port 8080. Trying local port 8081
Address already in use - bind(2) while forwarding port 8081. Trying local port 8082
To connect to a service running on OpenShift, use the Local address
Service Local OpenShift
------- --------------- ---- -------------------------------------------------
haproxy 127.0.0.1:8080 => 127.2.114.130:8080
haproxy 127.0.0.1:8081 => 127.2.114.131:8080
mongodb 127.0.0.1:65211 …Run Code Online (Sandbox Code Playgroud) OpenShift Web控制台允许使用现有远程存储库中的分支/标记创建新应用程序,我不知道如何使用rhc create.
相关的命令行选项--from-code URL适用于默认存储库路径,但如何判断要使用哪个特定分支?我在OpenShift文档或任何其他Web资源上找不到任何内容.
我尝试了以下和其他一些变体,但没有成功:
rhc app create my_new_app_name python-3.3 postgresql-9.2 --from-code https://github.com/my_user/my_repository/tree/my_branch
rhc app create my_new_app_name python-3.3 postgresql-9.2 --from-code https://github.com/my_user/my_repository.git/my_branch
结果消息:
Source code repository could not be cloned: 'https://github.com/my_user/my_repository.git/my_branch'. Please verify the repository is correct and contact support.
我需要用来rhc create创建新的应用程序,因为这允许使用多个盒式磁带(此处python-3.3和postgresql-9.2)创建应用程序,这是通过Web控制台无法实现的.
git git-branch openshift openshift-client-tools openshift-web-console
我是具有管理员权限的OpenShift在线应用程序的合作者,当我这样做时,rhc apps我可以看到该应用程序,但是当我这样做时,rhc tail <appname>我得到了Application '<appname>' not found.
有什么我想念的吗?
使用rhcUbuntu服务器12.04上.
C:\files\ruby>rhc setup --debug
DEBUG: Using config file C:/Users/files/.openshift/express.conf
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.
DEBUG: Running login_stage
DEBUG: Connecting to https://openshift.redhat.com/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Created new httpclient
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api
DEBUG: code 200 3167 ms
DEBUG: Server supports API versions 1.0, 1.1, 1.2, …Run Code Online (Sandbox Code Playgroud) 昨天2014年8月19日,我创建了一个新的可扩展rails 4应用程序.尝试连接rhc设置向导告诉我有一个错误.以下是分别替换敏感数据的输出:
使用[myaccount]登录myapp-mydomain.rhcloud.com OpenShift服务器没有正确响应.检查" https://myapp-mydomain.rhcloud.com/broker/rest/api "是否是服务器的正确URL.服务器可能处于脱机状态或配置错误.
通过openshift网站检查应用程序,一切似乎都正确设置.我将它与我运行的另一个应用程序进行了比较,而不是可扩展功能,所有设置似乎都没问题.
几天前我确实看到一条来自OpenShift的消息他们遇到了一些麻烦,我想知道是否仍然如此,我的应用程序没有正确创建?
installation ruby-on-rails openshift ruby-on-rails-4 openshift-client-tools