cloud

Automating pydrive verification process

别说谁变了你拦得住时间么 提交于 2019-11-26 17:15:00
I am trying to automate the GoogleAuth process when using the pydrive library ( https://pypi.python.org/pypi/PyDrive ). I've set up the pydrive and the google API such that my secret_client.json works but it requires web authentication for gdrive access every time i run my script: from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive gauth = GoogleAuth() gauth.LocalWebserverAuth() drive = GoogleDrive(gauth) textfile = drive.CreateFile() textfile.SetContentFile('eng.txt') textfile.Upload() print textfile drive.CreateFile({'id':textfile['id']}).GetContentFile('eng-dl.txt')

Google Cloud Messaging in Delphi XE5?

我们两清 提交于 2019-11-26 15:55:06
问题 I've got an android app that I am thinking about porting to Delphi but I can't see a way to interface with GCM. I am thinking I would possibly have to run the GCMBaseIntentService in java and interface with the delphi shared object? Alternatively, I am looking for a way to do push notifications in a Delphi Xe5 android app. 回答1: You interface Java with Delphi using JNI. The JNI allows you to call in both directions: Java to Delphi or Delphi to Java. So you can extend your Delphi applications

云计算相关资料/博客/网上收集的关于OpenStack的一些资源

被刻印的时光 ゝ 提交于 2019-11-26 15:06:19
OpenStack Nova code: https://bugs.launchpad.net/nova OpenStack Blog: http://planet.openstack.org/ OpenStack 官方文档: http://docs.openstack.org/cactus/openstack-compute/admin/content/ch_getting-started-with-openstack.html OpenStack 中国门户: http://blu001068.chinaw3.com/bbs/portal.php 在 Ubuntu 上安装和配置 O[url]penStack Nova:http://www.vpsee.com/2011/05/install-openstack-nova-on-ubuntu/[/url] Centos安装过程: http://wiki.openstack.org/NovaInstall/CentOSNotes Running OpenStack Compute (Nova):http://wiki.openstack.org/RunningNova 开源黄页 – OpenStack:http://yp.oss.org.cn/appcenter/software/show_software.php?sw_id

Difference between cloud computing and distributed computing? [closed]

眉间皱痕 提交于 2019-11-26 15:02:52
问题 I wanted to know about the difference about cloud computing and distributed computing. I read an article about cloud computing and got a feeling that somewhere there is a relation between cloud computing and distributed computing and so wanted to ask about difference between technologies. Also if someone could point me to useful resources for cloud computing, it would be highly appreciated. Thanks 回答1: In my mind what defines cloud computing is that the underlying compute resources (storage,

Cloud Foundry buildpack开发部署实例解析

有些话、适合烂在心里 提交于 2019-11-26 14:04:39
基本原理 CF运行应用的基本过程是将用户发布的应用程序包解压开,然后将自己的所有buildpack拿来,按照指定顺序与程序包进行匹配,直到找到第一个能够运行这些代码的buildpack,然后将buildpack也解开,与这些应用代码打成一个包(即droplet),在按照指定的运行环境参数生成容器,将droplet扔进去,按照buildpack指定的启动命令,启动应用。在上面的过程中,buildpack实现了三步功能: 第一步, detect :检查当前应用程序包是否能够用本buildpack支持运行,比如,java buildpack发现WEB-INF路径就认为自己能够运行它。 第二步, compile :将应用程序包与buildpack包水乳交融一下,比如将java程序包放到tomcat的应用目录下,然后替换某些参数,比如将当前dea里的随机端口赋予这个tomcat实例。 第三部, release :将droplet启动,比如运行tomcat的startup.sh。 任何一个buildpack都有一个bin路径,放着三个指定名字(detect、compile、release)的脚本(任何dea的os能执行的脚本都可以),然后具体的实现逻辑就从这里触发了。下面将以 java buildpack 为例,通过三个实际需求,介绍buildpack的开发和使用。 自定义buildpack

How do I make cloud-init startup scripts run every time my EC2 instance boots?

允我心安 提交于 2019-11-26 07:57:13
问题 I have an EC2 instance running an AMI based on the Amazon Linux AMI. Like all such AMIs, it supports the cloud-init system for running startup scripts based on the User Data passed into every instance. In this particular case, my User Data input happens to be an Include file that sources several other startup scripts: #include http://s3.amazonaws.com/path/to/script/1 http://s3.amazonaws.com/path/to/script/2 The first time I boot my instance, the cloud-init startup script runs correctly.

Using Git and Dropbox together effectively?

核能气质少年 提交于 2019-11-25 22:38:30
问题 How do I use Git and Dropbox together effectively? 回答1: I think that Git on Dropbox is great. I use it all of the time. I have multiple computers (two at home and one at work) that I use Dropbox as a central bare repository. Since I don't want to host it on a public service, and I don't have access to a server that I can always ssh to, Dropbox takes care of this by syncing (very quickly) in the background. Setup is something like this: ~/project $ git init ~/project $ git add . ~/project $