cloud

Passing a script while starting an instance in Amazon EC2

試著忘記壹切 提交于 2019-12-07 19:10:48
问题 Is it possible to pass a script while I'm starting an instance? So that the instance will execute that script once its initialized? public static void startInstance(final String instanceId) { StartInstancesRequest startRequest = new StartInstancesRequest().withInstanceIds(instanceId); logger.info(String.format("Starting instance '%s':...", instanceId)); ec2.startInstances(startRequest); } Any idea? Script will be kind of startup script which I need to execute as soon as the instance is ready.

GoogleCloudMessaging - InstanceID.getInstance(), registering from client

僤鯓⒐⒋嵵緔 提交于 2019-12-07 18:04:42
问题 I'm pretty new to programming in Java and generally programming. Right now I decided to make my own app that is supposed to utilize Google Cloud Messaging. And somehow I succeeded but then I realized I used method String regid = gcm.register(PROJECT_NUMBER); that is deprecated and I should now use tokens and InstanceIDs. So I tried rewriting my registration to use it but I encountered a problem with InstanceID.getInstancer(). I carefully followed all steps from documentation https:/

Difference in development while using windows azure

只愿长相守 提交于 2019-12-07 16:13:19
问题 My question has two parts I know they are basic ones but not able to clear the thoughts so posting this. We are planning to build a new app on windows azure. after reading some of the articles on cloud I have build a sample application on cloud that perform basic operation like CRUD. So I want to know that what are all fundamental difference you all felt while working on azure app. I have built the application using MVC as framework. I have not felt much of difference in terms of writing code

NodeJs - Loopback : How to upload file on google cloud storage

假装没事ソ 提交于 2019-12-07 15:55:29
In loopback framework, we have a module LoopBack Storage Component. It's support for many clouds except Google Cloud Storage. But I have to use Google Cloud. It should support Google out of the box because it uses pkgcloud lib which has support for Google Cloud. Try simply adding a config entry to the providers.json file. For more info on how to do that check Loopback storage component documentation and also pkgcloud config format for Google Cloud. I'd just try something like this in the providers.json: { "google": { "keyFilename": "/path/to/a/keyfile.json", "projectId": "your-project-id" } }

Flutter: Build errors for cloud_firestore: above version “0.7.4”

我只是一个虾纸丫 提交于 2019-12-07 15:52:05
问题 I have been trying to resolve a build issue for hours until I realise it is due to Flutter plugin cloud_firestore. Version 0.7.4 builds fine for both Android and iOS but anything above 0.7.4 like 0.8.2+1 will have errors such as: CloudFirestorePlugin.java:160: error: cannot find symbol query = query.whereArrayContains(fieldName, value); ^ symbol: method whereArrayContains(String,Object) location: variable query of type Query /dev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8

Dynamic image resizing in the Cloud for Responsive website

扶醉桌前 提交于 2019-12-07 15:16:32
I have a responsive (RWD) website which works OK on mobile devices. My problem is that pictures are sort of "heavy" on smartphones and uselessly large on older phones. I know there are plenty of tools either offline or online (such as: http://www.resizeyourimage.com/ ) to resize pictures and I know I could roll my own image resizer with GD and the like (PHP here), but I was wondering if someone here is aware of a way to have images automatically resized. For example by piping them through a proxy of some kind, such as: http://cloudservice/w_320/http://myserver/mypic.jpg" /> A free service

linux - watch a directory for new files, then run a script

孤街醉人 提交于 2019-12-07 14:49:25
问题 I want to watch a directory in Ubuntu 14.04, and when a new file is created in this directory, run a script. specifically I have security cameras that upload via FTP captured video when they detect motion. I want to run a script on this FTP server so when new files are created, they get mirrored (uploaded) to a cloud storage service immediately, which is done via a script I've already written. I found iWatch which lets me do this (http://iwatch.sourceforge.net/index.html) - the problem I am

OS/IDE-agnostic method of storing snippets

吃可爱长大的小学妹 提交于 2019-12-07 12:03:00
问题 I would like a way to store code snippets in a very straightforward way (to store and to retrieve). I code sometimes at home sometimes at work or various other workspaces, so I'd like a repository that's in the cloud. I would also like there to be an option for some kind of OS integration (via shortcut key perhaps; don't want to have to navigate to a webpage (snipplr) or an application (evernote) to retrieve the code). Ideally something that combines the best of Snipplr and Ditto. There's a

【Cloud Foundry 应用开发大赛】“八卦街”图片采集应用

别来无恙 提交于 2019-12-07 08:20:09
应用名称:八卦街 投 票支持 应用URL地址: http://baguajie.cloudfoundry.com/ 应用说明及使用场景: 八卦街是一个类Pinterest的图片采集应用,用户可以从网上提取自己喜欢的图片采集至八卦街。八卦街与其他类Pinterest的应用的不同之处在于集成了基于地理位置的社交元素(LBS+SNS)。这也使得八卦街的应用范围有很强的弹性,从公益的角度来讲我们我可以将其应用于打拐,呼救;从商业的角度来讲,可以用于图片兴趣社区,美食向导等各类生活服务。 八卦街是一款开源应用,目前由本人独立开发,从前端到后端。为了便于拼图上传,本人正在开发一款开源的 拼图工具 ,类似于微博的模板拼图组件,此外iOS客户端已经列入下一步的开发计划。感兴趣的同学可以从github上直接Fork八卦街 https://github.com/tshi0912/baguajie.git 应用所使用的技术及软件: 前端采用Twitter Bootstrap框架,Google Map API 3. 服务端符合JAVA EE规范,web层使用Spring MVC, Restful URL,数据层使用Spring Data。 数据库采用的是MongoDB, 同时在Cloud Foundry上实践了Mongodb文件存储方案GridFS.(图片文件都是存储在Cloud

【Cloud Foundry 应用开发大赛】“八卦街”后台管理系统

回眸只為那壹抹淺笑 提交于 2019-12-07 08:19:58
应用名称:八卦街管理控制台 应用URL地址: http://baguajie-admin.cloudfoundry.com/ 应用说明 及使用场景: 上篇博文 【Cloud Foundry 应用开发大赛】“八卦街”图片采集应用 发表2天之内就获得了4000+的阅读量,大大出乎了我意料,很多热心的朋友给我提出了很多很好的建议,在这里向大家表示感谢。其中一位朋友@ 恺哥 提到:“这样的应用如何避免用户上传‘H图片’?”我的回答是人肉,据我所知很多大公司对图片的审核还是采用人肉的方式,毕竟光靠算法还很难做到完全准确的过滤‘H图片’。同样这个提醒也让我意识到‘八卦街’也必须要有自己的后台管理系统,虽然只是一个小应用,OSC的朋友的素质都很不错,但是遇上‘H图片’还是比较尴尬的事情。 围绕如何构建这个后台管理系统,我想她应该足够简单。“八卦街”是一个典型的UGC网站,用户可以任意的贴图和评论。用户目前能够创造的内容不外乎"采集的图片",“评论”以及“注册用户”本身,当然还包括他的头像,所以这个管理系统只需要能够管理“采集”,“评论”以及“用户”就已经足够了。 应用所使用的技术及软件: 后台管理系统我用了2天的时间基本搭建完毕,前端技术选择上我使用自己最拿手同时也足够成熟的Flex。选择Flex作为管理系统的前端也是比较合适的。其一:管理系统的用户比较单一,人群比较特定