w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
How to install/configure new software in newly created amazon instances using Amazon SDK in java?
The Amazon API primarily controls infrastructure. It does not have any control as to what happens inside the instance. There are a couple of ways you can bootstrap your instance and install software. You can use user-data to pass a script that will run on first launch. You could use a provisioning system like chef or puppet. You could roll your own if it works better for you.

Categories : Amazon

Amazon Flexible Payments Service (Amazon FPS) IPN Verification PHP IPNVerificationSampleCode.php
Put correct define('AWS_ACCESS_KEY_ID', 'XXXXXXXXXXXXXXXXXX'); define('AWS_SECRET_ACCESS_KEY', 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX); it will word correct also change Introduction: Amazon FPS sends you outbound notifications in the form of GET and POST on your ReturnURL and IPN endpoints respectively. When you handle these notifications, we recommend you to validate the signature to ensure that the notification actually originated from us. You can validate the signature using signature version 2 with a server-side call to the VerifySignature API. In this call, you send the entire URL including the HTTP parameters received to FPS VerifySignature API and it will return a Boolean that indicates whether the signature was validated. Samples using this API to validate the signature are in

Categories : Amazon

is it possible to generate Amazon SES credentials from existing amazon ec2 account?
What do you mean by generate credentials?? AWS comes with a feature called IAM, identity and access management, just have a look, I hope you are looking for the similar service,one can access the ses account using ses api or smtp settings.

Categories : Amazon

Host static web site in Amazon S3 without using Amazon route 53
You can, but it wont work very well. You would need to create a CNAME record to map to the endpoint, which you can't use for apex records. You would need some other way of forwarding traffic from the apex to presumably www.domain.com. S3, Cloudfront either a set of IPs or Geo-DNS to determine which IP address will serve a given request. This is not something you can efficiently replicate in your own DNS. The cost of Route53 is pretty low, depending on traffic, it could hit be a $1 or less per month.

Categories : Amazon

Creating amazon ec2 windows AMIs using amazon sdk in java
I don't completely understand what you are trying to achieve. Do you want to start an instance in EC2 or with OpsWorks because your second link points to the OpsWorks documentation. OpsWorks dosen't support Windows right now.

Categories : Amazon

Amazon MWS - How can we update the inventory on Amazon instantly?
The answer is astonishingly simple: If you're running out of stock, don't wait for the next update cycle (the wall clock hitting *:05 again), but send an inventory update right away. Since you're posting the inventory, it is your choice when to do it. Just a side note: You probably will need to limit those updates in some way so that you don't send inventory updates more often than about every 5 minutes, otherwise they'll queue up (in my testing at least). Queued inventory updates won't do you any good.

Categories : Amazon

Configuring Amazon SES Feedback Notifications via Amazon SNS in ASP.NET MVC (C#)
You are on the right track - for the missing part 4 you need to implement receiving of a message from the Amazon SQS message queue you created in step 1. See my answer to Example of .net application using Amazon SQS for where to find a respective example - it boils down to the following code: // receive a message ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest(); receiveMessageRequest.QueueUrl = myQueueUrl; ReceiveMessageResponse receiveMessageResponse = sqs. ReceiveMessage(receiveMessageRequest); if (receiveMessageResponse.IsSetReceiveMessageResult()) { Console.WriteLine("Printing received message. "); ReceiveMessageResult receiveMessageResult = receiveMessageResponse. ReceiveMessageResult; foreach (Message message in receiveMessageResult.Me

Categories : C#

How to extract price from Amazon Url without Amazon API
I had same problem and this is my fix: I run script again if image is not parsed. image is parsed first in my php script so I check if it works and amazon gives information. I hope it helps. if($html->find('#main-image')) { foreach($html->find('#main-image') as $e) { echo '<span href="'. $e->src . '" class="imgblock parseimg"> <img src="'. $e->src . '" class="resultimg" alt="'.$name.'" title="'.$name.'"> </span> <input type="hidden" name="my-item-img" value="'. $e->src . '" />'; } } else { gethtml($url,$domain); die; }

Categories : PHP

paperclip with amazon s3 working in development but not working in production (amazon ec2)?
Had same issue with image_magic that was breaking our paperclip functionality in production, but not in development (weird, I know). Yet even after removing imagemagick from our gemfile and Gemfile.lock locally (running bundle install and all that stuff) and then deploying back to production on heroku, the error persisted in production! (weird, I know). What ended up doing the trick was running: $ heroku repo:purge_cache -a myAppName (Taken from: https://github.com/heroku/heroku-repo#purge_cache) When you deploy your app, Heroku caches some things like your assets and installed gems in order to speed up deployment. Although this is a great feature, it can have side-effects sometimes, and in this case, it seems that something about the imagemagick gem got "stuck" in production's cache,

Categories : Ruby On Rails

C# Amazon SQS to Java Amazon SQS
It should be equivalent to: Amazon.SQS.Model.Attribute sentTimestampx = null; for (Amazon.SQS.Model.Attribute a : x.getAttributes()) { if (a.Name == "SentTimestamp") { if (sentTimestampx == null) { sentTimestampx = a; } else { throw new Exception("Boooooh! there is more than one matching elements!"); } } } I think that a good approximation is to remove the check for more than one matching element and break the loop when you've found one, unless the original intent was really to throw an exception.

Categories : C#

SSL for Amazon Ec2
You can reuse your current certificate. You need you private key file, certificate file, and if needed a certificate chain file. What you need to do to set it up depends on your web server. It should be relatively easy to set it up.

Categories : Ssl

amazon ads xml layout
I noticed on this quickstart guide it says that you should have the namespace as "xmlns:Amazon="http://schemas.android.com/apk/res/"" I looked in the sample provided in the sdk and for their namespace they didn't use their package name but instead: "xmlns:Amazon="http://schemas.android.com/apk/lib/com.amazon.device.ads"" That first statement is not correct. In the quickstart guide it actually says that the namespace should be: xmlns:Amazon="http://schemas.android.com/apk/res/<type your package name>" Note the last part. That's important, because that's exactly the difference you're basing this question on. As with any custom view on Android, if you want to use one or more attributes that aren't covered by the Android namespace, you have to declare their location first.

Categories : Android

ssh through python onto amazon ec2
The Boto EC2 documentation here describes the EC2 instance object, of which "key_pair" is an attribute. Look about 3/4 of the way down, under "boto.ec2.instance". http://boto.readthedocs.org/en/latest/ref/ec2.html So, e.g., you could run some instances as follows, and then store the first instance as "inst": reservation = conn.run_instances(...) inst = reservation.instances[0] To retrieve your key-pair name as a unicode string, just use: kp_name = inst.key_name You can then retrieve the corresponding Boto object using get_key_pair: kp_obj = conn.get_key_pair(kp_name) Of course, this is a silly example, since I would have needed my key pair name to run_instances in the first place. May you find a more fruitful application!

Categories : Python

How to install a GUI on Amazon AWS EC2
Please have a look at this blog for installing a IDE on an Amazon EC2 machine that you can then VNC remote desktop into. Amazon EC2 does not come with X11 or other graphical support by default, but it's quite easy to install.

Categories : Linux

How to get Amazon s3 url after upload
If you head to your S3 interface on the AWS backend, and click on the bucket--the left pane will show some tabs associated with the bucket. Click on the Static Web Hosting tab and you'll be able to see your "Endpoint" address which will look something like the URL you said above...That will be the Amazon S3 URL you're using

Categories : Ruby On Rails

How can I try Amazon Web Services without pay something
I think that is what you are looking for: http://aws.amazon.com/free/ More details about the limitations: http://aws.amazon.com/free/faqs/ But you need a valid credit card...

Categories : Amazon

Amazon in-app purchasing on iOS
You can use Shopelia SDK which enables in-app purchase of physical goods using one click payment. It is available for Amazon but also for any kind of retailers. It works using a combinaison of automation and monetics to inject the order and process the payment. Right now (October 2013), the product is in beta stage and can be demonstrated on Shopelia website http://www.shopelia.com Integration is available through SDK for Android and iOS. Disclaimer : I'm co-founder of Shopelia. Please contact me if you are interested to integrate the technology in your app.

Categories : IOS

WebApplication in amazon
All dependes on your web application load... you can start with an EC2 micro-instance, an 30GB EBS with mysql+apache installed and an Elastc IP, all this will be under free tier, so you can taste aws server and measure your real needs. By the way, there is a lot of things which you can go under free tier, take a look: http://aws.amazon.com/pt/free/

Categories : Mysql

PHP and Python on amazon ec2
This is permission problem to access python file. When you running it through server python script access as apache user(most probably www-data). So apache user doesn't having privilege to execute the python file. What you can do it is run this command as sudo and add all necessary access to apache user(www-data) in /etc/sudoers file as below sample. www-data ALL=NOPASSWD:/var/www/similarity.py www-data ALL=NOPASSWD:/usr/bin/python This is just the sample, you should change this line as according to your environment.

Categories : PHP

IE9 + CORS + jQuery + Amazon S3
IE9 uses the XDomainRequest object to make CORS requests, which is a limited version of the XMLHttpRequest object used by other browsers. An overview of the XDomainRequest object can be found here: http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx Look specifically at item #3, which states: "No custom headers may be added to the request". By looking at your configuration, it looks like you expect an Authorization header. This is not allowed in IE9. (Although to be absolutely sure, it would be helpful to see an example of how you are making the request). Also note if you are not doing so already, you should use the XDomainRequest for IE8/9. This article provides an example of how to pick the correct object: http://www.nc

Categories : Jquery

Amazon AWS Permissions Per User
A couple of things. Firstly, please for the love of God, migrate to AWS SDK for PHP 2. SDK 1.x is on the way out, and hasn't received any updates in a while. Having done that, you can use S3Client::putBucketPolicy() to grant access to a bucket by Canonical User ID (a.k.a., Account ID). That way, you push the responsibility of managing access control back onto the S3 service. When a user tries to access the object, they'll either get a 200 (201, 204, 304, 307), or a 403 if they're not allowed to access it. If you choose to stay on SDK 1.x, the equivalent method is AmazonS3::set_bucket_policy().

Categories : PHP

Amazon SES -> SNS SQS notifications not working
Just found out. We were sending the emails from email address "A" and setting a reply-to to email address "B". All bounce notifications are sent to the reply-to address... once we setup SNS/SQS notifications to the reply-to address, notifications started flowing.

Categories : Amazon

Amazon SQS - Messages keep appearing
SQS guarantees that the message will be delivered at least once. They make no assurance that it won't be delivered a whole bunch of times. SQS is really neat in that it scales, but you actually pick up some odd behaviors due to how they made it scale, like this and messages being delivered out of order that make it a little bit of a hassle for projects that don't really need scale.

Categories : Amazon

Amazon EC2 cloud hosting
There are multiple ways to host a webserver in front and redirect requests to multiple tomcat servers in backend. Assuming you have webserver and multiple tomcat servers deployed over a EC2 and tomcat. Using ajp or mod_proxy or mod_jk, you can redirect requests hitting on your webserver to your backend tomcat servers. By default, AWS does not provide cookie or session management. You can use AWS Elasticache for session management. Yes, you can upload your images and other static content on Amazon S3 and deliver it from S3 itself or using CloudFront (CDN) while your dynamic requests are coming to your tomcat servers. Your questions was too broad. If you provide more details, we can help more. Thanks Sanket

Categories : Apache

amazon ads xml rendering problems
The same thing happened to me. The xml design editor is supposed to show you how your layout will look. Try emulating your app or connect it to an actual device. it should still work. For the layout with the ad-view,you will always have the rendering problems, though.

Categories : Android

Amazon S3 Permission Issue
If you haven't already done so, you can configure your production bucket to keep a log of all the requests made against it, similar to an Apache or other web server access log. http://docs.aws.amazon.com/AmazonS3/latest/dev/ServerLogs.html Once you have logging enabled, you will be able to find out the URL of the request, who requested it and when it was requested. Update: If an AccessDenied error is returned when trying to access the S3 server log files through the API or the AWS console, the problem is caused by missing permissions (ACLs) on the log files. To access those log files, the Open/Download permission should be granted for the user that owns them. Having a bucket policy with public read enabled is not enough to get access to the server log files. More details on the is

Categories : Symfony2

Amazon EC2 Load Testing
A couple of quick points; Set the environment up exactly like it's supposed to run. If there's a database involved, you'll want to involve that in the testing too. Synthetic <?php echo "ok"; CPU based benchmarks won't help you much since normally very little of the time spent replying to HTTP requests is actual CPU time. A recommendation is to use a service for the benchmarking. Setting load testing up is not without its complexities, and unless you consider benchmarking your core business, you're probably better off using something like Neustar to load and measure your site (there are many services, they're not necessarily what fits you best, just pulled one out of memory) Of course you can set a load test up yourself, but getting that done right is not anything that can be describ

Categories : Testing

Changing SKU in amazon android app
You can change it or not. When you define your product in the Amazon developer portal you will have the ability to define the IAP items for the app. For each IAP item you have to define multiple properties one of which is the sku. What matters is that the sku string in the portal match the request you make from the app. Other properties include price, description, title, and various associated images.

Categories : Android

Error using Amazon S3 with FineUploader
I don't think you quite understood the documentation or the examples. You need a server side component to sign the requests that Fine Uploader sends. It looks like you are pointing Fine Uploader at a JSON file, for some reason. I'm guessing you copied the example signature file from the blog post and are pointing Fine Uploader at that? The example signature file was detailed in the blog post to give you some insight into how Fine Uploader S3 generates the policy document for simple uploads for you. You don't need to store a copy of this anywhere. You need a proper server side component to sign the requests Fine Uploader sends to S3, at the very least. There are already 5 fully functional server side examples for Fine Uploader S3 in https://github.com/Widen/fine-uploader-server. In

Categories : PHP

Installing numpy on Amazon EC2
I ended up just installing numpy through yum, sudo yum install numpy. I guess this is the best I can do for now. When working with virtualenv and I need numpy, I will tell it to use site packages. Thanks for the suggestion @Robert.

Categories : Python

Amazon MWS Signature - Delphi
Your problem is most likely in your StringToSign function. It should look somewhat like this: StringToSign := 'POST'+ chr(13)+ AmazonMWShost + chr(13) + '/'+ APIurl + chr(13) + URLencodedParameters; Where AmazonMWShost is mws.amazonservices.com for US merchants. APIurl is an empty string for the Report API and Orders/2011-01-01 for the Order API.

Categories : Delphi

Push Messaging with Amazon SNS, SQS and PHP
Did you check the Queue Policy? When you create it, by default it has no policy and only the owner is able to use it. Check the IAM user you are using with the API and make sure you have the policy on the SQS granting rights to him. I have used SNS in the past to deliver around 1.5MM notifications each month and I had no problems. But I have no proven track record or experience at the rate you need. But I suggest you to take a look at the following article http://www.quora.com/Push-Notifications/Which-is-best-to-use-Amazon-SNS-Google-Cloud-Messaging-or-Parse-Why which talks a little bit about SNS x GCM. Hope this helps.

Categories : Amazon

How to set up custom domain for an app on Amazon EC2?
First you need to set an ElasticIP for associated to that instance. Then point the DNS entry of "www" for "my-domain-name.com" to the IP assigned in the step above. Where you manage your DNS is another thing, can be in GoDaddy or in AWS Route53. You must adjust the delegation DNS in the "my-domain-name.com" register. Ex: your domain can be registered with GoDaddy but its delegation DNS point to Route53 so you can manage the domain from your AWS Console.

Categories : Amazon

Amazon Data Transfer OUT
I see two options: You could use CloudFlare instead of CloudFront. They provide CDN functionality for free. If you don't use S3 to serve images, but do it from your servers, you could use different provider. For instance Linode has DC in Tokyo, where 4 GB ($80) gives you 8 TB transfer. Another one is vps.net - 1 GB instance ($40) gives you 6 TB of transfer. You can also play a bit with Cloudorado to find something for you.

Categories : Amazon

Amazon MWS: Convert ASIN to EAN/UPC
I don't think there is a call that does what you want. There is a call that does the opposite, if that is of any help: GetMatchingProductFromId will return the ASIN for a given EAN or UPC. Why the result from this call (and from GetMatchingProduct) does not return EANs etc. is beyond me. If you already have items listed through MWS, the _GET_MERCHANT_LISTINGS_DATA_ report might help

Categories : Amazon

ASP.NET uploading a file to Amazon S3
You need to assign File or InputStream property of PutObjectRequest object. The code fragment should look like this one: using (client = Amazon.AWSClientFactory.CreateAmazonS3Client(accessKey, secretKey)) { var stream = new System.IO.MemoryStream(); originalBMP.Save(stream, ImageFormat.Bmp); stream.Position = 0; PutObjectRequest request = new PutObjectRequest(); request.InputStream = stream; request.BucketName="MyBucket"; request.CannedACL = S3CannedACL.PublicRead; request.Key = "images/" + filename; S3Response response = client.PutObject(request);

Categories : C#

Amazon SDK overrides autoloader
After require_once( "AWSSDKforPHP/aws.phar" ); reset the autoloader back to spl_autoload, and add the AWS autoloader using spl_autoload_register require_once( "AWSSDKforPHP/aws.phar" ); __autoload('spl_autoload'); spl_autoload_register(/* whatever you find AWS registers */);

Categories : PHP

How to set custom Metadata on Amazon PHP SDK
ContentType and ContentEncoding should not be sent as metadata. Use this instead: $objS3->putObject(array( 'Bucket' => $sBucket 'Key' => $sBucketFolder . $sFilenameToSave, 'SourceFile' => $sFile, 'ACL' => 'public-read', 'ContentType' => 'text/css', 'ContentEncoding' => 'gzip' ));

Categories : PHP

Uploading from Android to Amazon S3
Would you be willing to consider an alternative: class S3 extends AmazonS3Client {final String bucket; S3(String u, String p, String Bucket) {super(new BasicAWSCredentials(u, p)); bucket = Bucket; } boolean put(String k, String v) {try {final ByteArrayInputStream b = new ByteArrayInputStream(v.toString().getBytes()); putObject(bucket, k, b, new ObjectMetadata()); setObjectAcl(bucket, k, CannedAccessControlList.PublicRead); // Has to be here to allow change to reduced redundancy changeObjectStorageClass(bucket, k, StorageClass.ReducedRedundancy); setObjectAcl(bucket, k, CannedAccessControlList.PublicRead); // Has to be repeated beca

Categories : Android

Cant get Amazon EC2 instance work
You need to check the security group that is associated with the instance. Make sure that you open up port 80. Also make sure that apache is started, and configured to start on boot. If you're logged in, you should be able to use wget localhost to verify if apache is serving up pages.

Categories : Amazon



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.