cloud

Google Compute Engine : Use snapshot from another project?

耗尽温柔 提交于 2019-11-30 00:09:26
I have two projects in my developer console. I have taken a "Snapshot" of one of the VMs in project-1. I want to create a new VM in project-2 using the snapshot created in project-1. Right now snapshot is not showing in the option. How can I import snapshot from one project to another? You can create an image from the snap in Project 1, then create an instance from that image using Project 2. I'm assuming you have edit rights in both projects. Your question says you have a snapshot and want to make an instance in project 2 from the snap in project 1. If you still have the disk available that

What's the best way to generate a tag cloud from an array using h1 through h6 for sizing?

心已入冬 提交于 2019-11-29 23:08:48
I have the following arrays: $artist = array("the roots", "michael jackson", "billy idol", "more", "and more", "and_YET_MORE"); $count = array(5, 3, 9, 1, 1, 3); I want to generate a tag cloud that will have artists with a higher number in $count enclosed in h6 tags and the lowest enclosed h1 tags. berkes You will want to add a logarithmic function to it too. (taken from tagadelic, my Drupal module to create tag clouds http://drupal.org/project/tagadelic ): db_query('SELECT COUNT(*) AS count, id, name FROM ... ORDER BY count DESC'); $steps = 6; $tags = array(); $min = 1e9; $max = -1e9; while (

How do you configure S3 and Cloud Front to stream HTML5 video? Tried everything

折月煮酒 提交于 2019-11-29 22:21:33
I've tried many, many different configurations, files, encoding, browsers, etc..., but this is the simplest example that demonstrates the problem I am having. If you paste the url for the sample video for JSPlayer in FF 8.0.1, the video plays inline: http://video-js.zencoder.com/oceans-clip.webm If I take that same video and upload it to my s3 bucket, it triggers download instead: https://s3.amazonaws.com/turingvideos/oceans-clip.webm -- or -- http (Permissions are read for everyone on the file and bucket) So, let's try Cloud Front. d2yat6m71lu23b dot cloudfront dot net slash oceans-clip.webm

parse.com open-source alternatives for backend [closed]

两盒软妹~` 提交于 2019-11-29 21:57:37
Just wondering if there is a free parse.com alternative that allows one to arbitrarily store data in tables and create databases on the fly (say in mysql) that works like parse.com. I'd love to know and use it before spending time to create one. Thanks! Ryan Kreager This answer has been updated to take into account the Parse.com shutdown. Parse Server (the parse.com service) is now available open source. Go with Parse Server, running on Heroku and mLab - seriously. There are 4 compelling reasons to do this: It's really well developed. There are APIs for a dozen platforms, including mobile and

Windows Azure for web developers vs Amazon EC2

吃可爱长大的小学妹 提交于 2019-11-29 21:23:32
I just watched the Windows Azure intro video and it left me feeling like it was a front end shell for hosted IIS instances. Can anyone who know more (possibily that was part of the beta) shed on why you would use this vs. EC2. it seemed easy enough but really didnt give specifics on how it works, why it works or why you would use this vs the traditional solutions out there? According to the vision (and I can only talk about the vision here since the product isn't really out yet), here's a couple of reasons you might consider Azure over EC2. Azure includes built-in load balancing abilities. If

Windows Azure or Amazon EC2 for ASP.NET MVC Development?

。_饼干妹妹 提交于 2019-11-29 19:40:09
If you want to build enterprise ASP.NET MVC applications that use MSSQL databases is it better to use Windows Azure or Amazon EC2? I didn't find any satisfying answers. So what are the advantages and disadvantages of the two cloud plattforms (Price, Performance, Simplicity of integration, ...)? Both are for slightly different purposes - Amazon is infrastructure as a service, which means you dont have to purchase hardwrae, the networking equipment and maintain them. You will get virtual machines that can host linux or windows OS and can easily install any framework, web server or applications

How to stop creating extra instances when using google managed vms?

扶醉桌前 提交于 2019-11-29 16:02:54
Every time I deploy to Google's Managed VM service, the console automatically creates a duplicated instance. I am up to 15 instances running in parallel. I even tried using the command: gcloud preview app deploy "...\app.yaml" --set-default I tried doing some research and it looks like even deleting these duplicated instances can be a pain . Thoughts on how to stop this duplication? You can deploy over the same version each time: gcloud preview app deploy "...\app.yaml" --set-default --version=version-name This will stop creating VMs. 来源: https://stackoverflow.com/questions/31484826/how-to

Is it a good idea to reuse an Azure web role for backend processing?

▼魔方 西西 提交于 2019-11-29 13:57:05
I'm porting a huge application to Windows Azure. It will have a web service frontend and a processing backend. So far I thought I would use web roles for servicing client requests and worker roles for backend processing. Managing two kinds of roles seems problematic - I'll need to decide how to scale two kinds of roles and also I'll need several (at least two) instances of each to ensure reasonable fault tolerance and this will slightly increase operational costs. Also in my application client requests are rather lightweight and backend processing is heavyweight, so I'd expect that backend

How to get more than 1000 results Parse [duplicate]

南楼画角 提交于 2019-11-29 11:58:17
This question already has an answer here: How to retrieve more than 1000 rows from Parse.com? 7 answers I have a cloud code which returns sometimes more than 1000 results , I am not getting how to chain query to get more than 1000 results in following code. var User = Parse.Object.extend("Journal"); var mainQuery = new Parse.Query(User); mainQuery.equalTo("user",username); mainQuery.limit(1000); mainQuery.find({ success: function(results) { count = 0; var avg = 0; console.log("self:"+results.length); for(j = 0; j < results.length ; j++) { var entry = results[j]; if(strcmp1(day,"All") != 0) {

anonymous read with amazon simpledb

↘锁芯ラ 提交于 2019-11-29 11:19:23
I would like to query simpledb directly from the client using javascript. My application is read-heavy and I rather not route the request through my application server. Is it possible to perform a select request without authentication? I could set up an authentication server, but this is rather inelegant as it will just be saying yes to every read request and would introduce another bottleneck/speedbump/point of failure. Do the other cloud db solutions (microsoft, google) have this functionality? This is possible using AWS IAM ( Identity and Access Management ) and a server side " token