amazon

AWS EC2 Elastic IPs bandwidth usage and charges

痴心易碎 提交于 2019-11-27 09:36:27
问题 I have a little questions regarding Elastic IPs and its charge. Some blogs says that Elastic IP will charge you by the bandwidth you use Elastic IP addresses charge by bandwidth and have an hourly price when they are not attached to a running instance From http://things.zarate.org/scaling-a-single-ec2-instance-and-downsizing From my understanding after reading some blogs and the documentation, you will only be charged if you use the elastic IPs in communicating between instances and if you

In-App payment in amazon

孤街醉人 提交于 2019-11-27 06:23:05
问题 I have followed the following steps As shown in image ..steps in In AppPayment amazon but the problem is when i run the code provided in sdk as shown in image 4 when i click the button the number of clicks should be deducted but it is not. I have place the follwing values in string.xml m i right in theses steps? <string name="app_name">amazoncheckout</string> <string name="nothing"></string> <string name="consumable_sku">com.amazon.checkout</string> <string name="entitlement_sku_purple">com

Cannot Login to Amazon with Ruby Mechanize

旧巷老猫 提交于 2019-11-27 06:06:03
问题 I am attempting to login to Amazon using the Ruby gem Mechanize. I always get kicked back to the sign in page without any sort of error message. I am wondering if this is a bug with Mechanize or if Amazon blocks this sort of access. I have code below that you can irb to test. @mechanizer = Mechanize.new @mechanizer.user_agent_alias = 'Mac Safari' @page = @mechanizer.get("https://www.amazon.com/ap/signin?_encoding=UTF8&openid.assoc_handle=usflex&openid.return_to=https%3A%2F%2Fwww.amazon.com

Amazon Alexa: store user's words

孤街浪徒 提交于 2019-11-27 05:44:40
问题 I'm new to writing Alexa skills and want to write a skill to store the speaker's words. For example, if I say, 'Alexa, save {whatever i say}', it should save the words in some string. Now from what I understand, the intent schema something should be like { intents:[ "intent" : "SaveIntent" ] } and utterances like SaveIntent save SaveIntent store In this case, how do I store '{whatever I say}'? 回答1: To capture free-form speech input (rather than a defined list of possible values), you'll need

ASP.NET 5 project hosting on IIS

て烟熏妆下的殇ゞ 提交于 2019-11-27 04:11:39
I want to host my ASP.NET 5 project which uses MVC 6 and Entity Framework 7 on Amazon free micro instance. I can't find any step-by-step manual on how to host ASP.NET 5 projects on IIS, all materials just mention that this is possible but without any guides. Basically, I'm deploying to local folder and then copying to newly created site, but nothing is working. Unfortunately, I can't use Azure as it only has one month free trial, not a year. Ricky I'm using Visual Studio 2015 Preview to create ASP.NET 5 projects. I don't think that's difficult to deploy on IIS now. First publish your website

Amazon Lambda to Firebase

半城伤御伤魂 提交于 2019-11-27 04:00:06
I get 'Cannot find module 'firebase' when I try to run this in Lambda (Node.js 4.3) var Firebase = require('firebase'); Same thing happens when I try to upload a zipped package that includes node_modules/firebase Does anybody have a working 'write from lambda to firebase' implementation? To safely use firebase npm package (version 3.3.0) in AWS Lambda (Nodejs 4.3), Please do the following: 'use strict'; var firebase = require("firebase"); exports.handler = (event, context, callback) => { context.callbackWaitsForEmptyEventLoop = false; //<---Important var config = { apiKey: "<<apikey>>",

Notification of new S3 objects

泪湿孤枕 提交于 2019-11-27 02:04:30
问题 I have a scenario where we have many clients uploading to s3. What is the best approach to knowing that there is a new file? Is it realistic/good idea, for me to poll the bucket ever few seconds? 回答1: UPDATE: Since November 2014, S3 supports the following event notifications: s3:ObjectCreated:Put – An object was created by an HTTP PUT operation. s3:ObjectCreated:Post – An object was created by HTTP POST operation. s3:ObjectCreated:Copy – An object was created an S3 copy operation. s3

Preventing Amazon Cloudfront hotlinking

妖精的绣舞 提交于 2019-11-27 01:34:12
问题 I use Amazon Cloudfront to host all my site's images and videos, to serve them faster to my users which are pretty scattered across the globe. I also apply pretty aggressive forward caching to the elements hosted on Cloudfront, setting Cache-Control to public, max-age=7776000 . I've recently discovered to my annoyance that third party sites are hotlinking to my Cloudfront server to display images on their own pages, without authorization. I've configured .htaccess to prevent hotlinking on my

I don't get prices with Amazon Product Advertising API

a 夏天 提交于 2019-11-27 01:11:41
问题 I try to get prices of an ASIN number with the Amazon Product Advertising API. Code: $artNr = "B003TKSD8E"; $base_url = "http://ecs.amazonaws.de/onca/xml"; $params = array( 'AWSAccessKeyId' => self::API_KEY, 'AssociateTag' => self::API_ASSOCIATE_TAG, 'Version' => "2010-11-01", 'Operation' => "ItemLookup", 'Service' => "AWSECommerceService", 'Condition' => "All", 'IdType' => 'ASIN', 'ItemId' => $artNr); $params['Timestamp'] = gmdate("Y-m-d\TH:i:s.\\0\\0\\0\\Z", time()); $url_parts = array();

How to enable HTTPS stream wrappers

情到浓时终转凉″ 提交于 2019-11-26 22:52:38
I installed php5 on my windows system and tried to execute the following script with a command-line console: <?php // load in credentials $creds = parse_ini_file('/etc/aws.conf'); // Define query string keys/values $params = array( 'Action' => 'DescribeAvailabilityZones', 'AWSAccessKeyId' => $creds['access_key'], 'Timestamp' => gmdate('Y-m-d\TH:i:s\Z'), 'Version' => '2008-05-05', 'ZoneName.0' => 'us-east-1a', 'ZoneName.1' => 'us-east-1b', 'ZoneName.2' => 'us-east-1c', 'SignatureVersion' => 2, 'SignatureMethod' => 'HmacSHA256' ); // See docs // http://tr.im/jbjd uksort($params, 'strnatcmp');