cloud

CloudBlob.DownloadToStream returns null

无人久伴 提交于 2019-12-05 00:23:25
I'm trying to download a file from cloudBlob via stream. I refer to this article CloudBlob Here is the code to download the blob public Stream DownloadBlobAsStream(CloudStorageAccount account, string blobUri) { Stream mem = new MemoryStream(); CloudBlobClient blobclient = account.CreateCloudBlobClient(); CloudBlockBlob blob = blobclient.GetBlockBlobReference(blobUri); if (blob != null) blob.DownloadToStream(mem); return mem; } And the code to convert it into byte array public static byte[] ReadFully(Stream input) { byte[] buffer = new byte[16 * 1024]; using (MemoryStream ms = new MemoryStream(

Android Cloud Printing with No Dialogs

只谈情不闲聊 提交于 2019-12-04 23:46:09
I'm developing a kiosk type Android app and would like to add printing capability. Since it's a kiosk app, the less prompts/pop-ups the users have to do, the better. I was able to get the new Google Cloud Printing successfully going in my Android app but there are a few screens the users need to go through before printing can happen. I was wondering if anyone has any ideas on how to have things print automatically with no dialogs, the idea would be to pass whatever user selections are needed (paper size, orientation, etc) from preferences. Exact same problem we have! Silently printing without

Upload image to Cloudinary using PHP Codeigniter

寵の児 提交于 2019-12-04 22:09:34
Can someone help me how to upload an image into Cloudninary using CodeIgniter? I don't know how to install the Cloudinary to CodeIgniter and use it because I'm new to PHP CodeIgniter. Please help me thank you. Update! I was able to solve it. See the first answer. cheers First You need to download the cloudinary php script here https://github.com/cloudinary/cloudinary_php . Now extract the downloaded file and copy the files from src folder. Now in you codeigniter app, go to appplication folder and then third_party folder. Inside the third_party folder create a folder name cloudinary, and inside

How to deploy only worker/web role in Azure

本秂侑毒 提交于 2019-12-04 21:01:40
问题 If you have a web AND a worker role in an Azure solution, all the waiting for the publishing an update package, uploading to the cloud storage, waiting for the package to be deployed could be exhausting, an waste a lot of time. How to upload/deploy only the worker or web role of an Microsoft Azure Solution, that contains both roles, and save both internet traffic and time? 回答1: There is no option to build a package for only one of the both roles, but if you have limited bandwidth or traffic,

What is the difference between private cloud and public cloud?

心已入冬 提交于 2019-12-04 20:24:02
问题 What are the differences between private cloud and public cloud ? Please define both and giving examples with usage. 回答1: A public cloud is offered as a service via web applications/web services( usually over an Internet connection). Private cloud and internal cloud are deployed inside the firewall and managed by the user organization. There is another type of cloud, hybrid cloud. A hybrid cloud environment consisting of multiple internal and/or external providers will be typical for most

What are the typical uses cases for LXC versus VM?

故事扮演 提交于 2019-12-04 20:22:02
问题 I am trying to make up my mind on when an LXC container can be a better choice than using a full VM. Do you have any precise uses cases in mind that can bring some arguments in one way or another? Are LXC more "PaaS" oriented, to run applications without hardware control? Do we always need to use VM on an "IaaS" perspective where we want infrastructure control? Regards, 回答1: I don't think IaaS needs VMs. With LXC you can define # of cpushare and Memory user limit. The thing is VMs are pretty

What do 'instances' mean in terms of cloud computing?

蹲街弑〆低调 提交于 2019-12-04 20:05:20
问题 While looking through the pricing of some cloud computing hosting services like Google App engine, Amazon, etc, I see terms like $0.0x per instance per hour, etc. What exactly does that mean? Is an instance = X page views, or is there any other way to estimate how many instances I would need? 回答1: Generally 1 instance == 1 machine/server (often a virtual machine). See e.g. http://aws.amazon.com/ec2/instance-types/ and https://developers.google.com/appengine/docs/adminconsole/instances 回答2:

How to Log exceptions caught in WCF service deployed on Azure

最后都变了- 提交于 2019-12-04 19:52:33
问题 What is the best way to log the exceptions caught in WCF service hosted on cloud? 回答1: You can take advantage of System.Diagnostics and logging your exceptions with Trace.traceError() . You can then schedule these trace statements to be periodically uploaded to table storage (maybe once a minute?), where you can then retrieve and analyze the trace statements either with an on-premise app or one running in a worker role. For example: in your worker role's OnStart(), customize the Diagnostic

Developing a Multitenant SaaS

Deadly 提交于 2019-12-04 18:26:08
I am developing a web application for data analysis on agricultural datasets. Actually I want to make the application to be multi tenant and I wish to deploy that SaaS application in a private cloud (in our school). I got a few basic doubt in the programming part. Do I need to develop the application in the Hadoop's map/reduce functionality? Secondly,the selection of database. Since the data are highly structural in nature (like sql) can I use a sql server to manage data in cloud? In such do I need any middleware in addition to the IaaS setup and the SaaS application? I am using J2EE

Back up AppEngine database (Google cloud storage?)

核能气质少年 提交于 2019-12-04 18:14:24
问题 I have an AppEngine application that currently has about 15GB of data, and it seems to me that it is impractical to use the current AppEngine bulk loader tools to back up datasets of this size. Therefore, I am starting to investigate other ways of backing up, and would be interested in hearing about practical solutions that people may have used for backing up their AppEngine Data. As an aside, I am starting to think that the Google Cloud Storage might be a good choice. I am curious to know if