rackspace-cloud

Django upload image - From a form to Rackspace/S3 with no manipulation

爱⌒轻易说出口 提交于 2019-12-01 18:02:48
I simply want to upload an image (JPG) using a form, then send that image to Rackspace 'Cloud Files' or Amazon 'S3'. No manipulating the file. No saving to disk, everything to memory (am hosted on a cloud server) Image size won't exceed 75kb Update (Two Caveats): One: It also needs to work when data is posted from a phone app. Two: It needs to be sent to Rackspace Cloud Files as well as S3 (starting with CF). The code below works but it is way WAY too heavy. import cloudfiles as cf def uploadImage(request, id): cf_con = cf.get_connection(username='YYY', api_key='XXX', serviceNet=True)

Pros/Cons Using multiple databases vs using single database

浪尽此生 提交于 2019-11-30 08:00:33
问题 I need to design a windows application which represents multiple "customers" in SQL Server. Each customer has the same data model, but it's independent. what will be the Pros/Cons Using multiple databases vs using single database. which one is the best way to do this work. if going for an single database, what will the steps to do for that. Edited: One thing is database will be hosted in cloud(rackspace) account. 回答1: Do not store data from multiple customers in the same database -- I have

How to turn on/off cloud instances during office hours

安稳与你 提交于 2019-11-28 05:55:15
I've got my head around creating cloud instances in AWS, Azure and Rackspace. However, I need to turn my instances off at the end of the day and on in the morning as this will half my hosting cost (they are for development). I've looked at a few management services but they blew my brains out. Is there a simple way to do this? Steffen Opel Approach You could always roll your own solution, insofar most cloud providers offer a respective API to start/stop instances on demand (or even on schedule), which is what those management services are actually using as well of course - the AmazonEC2 Java

How to turn on/off cloud instances during office hours

六月ゝ 毕业季﹏ 提交于 2019-11-27 01:06:53
问题 I've got my head around creating cloud instances in AWS, Azure and Rackspace. However, I need to turn my instances off at the end of the day and on in the morning as this will half my hosting cost (they are for development). I've looked at a few management services but they blew my brains out. Is there a simple way to do this? 回答1: Approach You could always roll your own solution, insofar most cloud providers offer a respective API to start/stop instances on demand (or even on schedule),