cloud

iOS AWS SDK and CloudFront - accessing images

别说谁变了你拦得住时间么 提交于 2019-12-01 08:36:59
Sorry if this sounds alittle confusing (I am trying to get through the CloudFront documentation) but I have an app that is essentially downloading a bunch of images from S3. I tried to setup a new CloudFront distribution, pointed the origin to my S3 bucket and wondering how will this change the way I access my images in my app. The app queries simpleDB to find out what to get and uses S3GetObjectRequest to download the images. Do I have to use a different path to access images for CloudFront or how does this work? Yes, you need to use the cloudfront distribution name instead of the bucket name

php connect to mysql db in cloud 9?

▼魔方 西西 提交于 2019-12-01 08:34:45
问题 I usually connect php to mysql with localhost in my PC.. now i'm trying to put my project in cloud https://c9.io ,but i can't connect to mysql. i already have mysql database in cloud and put my project in same place... mysql_connect("/lib/mysql/socket/mysql.sock","myUser","") or die(mysql_error()); i use script above to connect but i get Unknown MySQL server host '/lib/mysql/socket/mysql.sock' (1) what shoul i do ? 回答1: Okay, so none of the above answers had worked for me, but fortunately I

Non-http TCP connection on Cloudfoundry

点点圈 提交于 2019-12-01 07:54:49
I'm a nooby mobile developer trying to take advantage of cloudfoundry's service to run my server to handle some chats and character movements. I'm using Noobhub to achieve this (TCP connection between server and client using Node.js and Corona SDK's TCP connection API) So basically I'm trying a non-http TCP connection between Cloudfoundry(Node.js) and my machine(lua). Link to Noobhub(There is a github repo with server AND client side implementation. I am doing Client ... socket.connect("myappname.cloudfoundry.com", 45234) ... (45234 is from server's process.env.VCAP_APP_PORT value I retrieved

Non-http TCP connection on Cloudfoundry

て烟熏妆下的殇ゞ 提交于 2019-12-01 07:52:42
问题 I'm a nooby mobile developer trying to take advantage of cloudfoundry's service to run my server to handle some chats and character movements. I'm using Noobhub to achieve this (TCP connection between server and client using Node.js and Corona SDK's TCP connection API) So basically I'm trying a non-http TCP connection between Cloudfoundry(Node.js) and my machine(lua). Link to Noobhub(There is a github repo with server AND client side implementation. I am doing Client ... socket.connect(

How to create an auto-upload Android picture app?

寵の児 提交于 2019-12-01 07:42:31
问题 I am trying to create an app that automatically uploads a picture to my server . The idea is that a user creates a picture with the native/normal camera and my app gets a notification (catches the event) and uploads the picture (in the background). I found a solution for Windows Phone (see here), but not for Android. How can I do this? - Is this technically even possible (with the given APIs) or is it a special feature just for contracted services ( Facebook or Dropbox do that )? Thank you!

Periodic hadoop jobs running (best practice)

做~自己de王妃 提交于 2019-12-01 07:34:21
问题 Customers able to upload urls in any time to database and application should processes urls as soon as possible. So i need periodic hadoop jobs running or run hadoop job automatically from other application(any script identifies new links were added, generates data for hadoop job and runs job). For PHP or Python script, i could set up cronjob, but what is best practice for periodic hadoop jobs running (prepare data for hadoop, upload data, run hadoop job and move data back to database? 回答1:

Windows Azure and SFTP

こ雲淡風輕ζ 提交于 2019-12-01 05:25:13
I know very little about Azure, but I am looking for a cloud server where I can have clients SFTP their files to us. It will be used primarily for data storage. The only requirement is that the files be sent over SFTP (not FTP). Does anyone have any experience with this? How difficult is this to setup? Is this even possible? You can find step by step instructions on how to set up a regular FTP site on Windows Azure VM here - http://nicoploner.blogspot.com/2010/12/ftp-server-on-windows-azure-from.html Here's how to set up SFTP on Windows Server (applies to Azure VM as well) - http://www

Topic is created on cloud pub/sub but unable to create watch on that topic

孤街醉人 提交于 2019-12-01 05:06:54
问题 I want to create watch on cloud pub/sub topic but unable to create it. For that I'm using the rest request request_Req.post({ url:'https://www.googleapis.com/gmail/v1/users/me/watch', headers:{ 'content-type': 'application/json', 'Authorization': 'Bearer '+ access_token, }, scope : [ 'https://mail.google.com/' ], 'body': JSON.stringify({ 'topicName' : "/projects/ProjectId/topics/TopicId", 'labelIds' : ["INBOX"] }); }),function(error, resp, body){ }); But I'm getting the error message Error

Writing an IAM policy and CORS configuration for Amazon S3

旧街凉风 提交于 2019-12-01 04:31:41
问题 I am very new to all this but have been able to get an avatar/image uploader to work in my Rails application. A user can upload a new avatar to my S3 bucket and the avatar shows within the web application. To this end, I've had to grant "AmazonS3FullAccess" policy to the user. That seems like a bit too much, since the user from the application only needs write (upload his avatar) and read (show the avatar on the web page) permission. Would you agree that it is therefore better to write a

How to override the ribbon.serverListRefreshInterval default value in Spring Cloud Ribbon?

落爺英雄遲暮 提交于 2019-12-01 04:06:43
问题 I wrote a simple Spring Cloud Ribbon application, to call a REST service which was registered in Eureka. But how to override the ribbon.serverListRefreshInterval value? The default value is 30 seconds, I'd like to reduce the time interval. Thanks in advance. 回答1: Try with: myService.ribbon.ServerListRefreshInterval=10000 where myService is the name of your destination microservice. UPDATE : After some source code digging I found out that LoadBalancerBuilder calls: @Deprecated public