Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Peter Wilkins

Peter Wilkins

Community Learner
Active in: AWS Python Java
Share
9Questions
6Answers
13.6KViews on questions

How do I make a javascript return value from promise?

It sounds like you aren't understanding how promises are used. You return value from a promise. Then, later when your code resolves the promise, it resolves it with a result and that result is passed to the .then() handler attached to the promise: MovieLibrary.getGenres = function() { var promise = new…

Java

Answered Oct 13, 2022 · 1.2K Views Read answer →

Python error IndentationError expected an indented block

Python requires its code to be indented and spaced properly. Never mix tabs and spaces. If you're using tabs stick to tabs and if you're using space stick to space. Also in your code, change this part: if str_p == str_q: result = True else: result = False return result To return str_p == str_qHope this will resolve…

Python

Answered Jul 17, 2021 · 1.2K Views Read answer →

Converting from a string to boolean in Python?

If you are facing string to boolean python error in your coding then you can use the following way to get the desired output:- def str2bool(v): return str(v).lower() in ("yes", "true", "t", "1") str2bool("no")

Python

Answered Apr 2, 2021 · 1.2K Views Read answer →

EBS Volumes and its types, choose which type to use when.

Depending upon the nature of work and amount of traffic handle one can choose a different type of EBS (ELastic block storage) attached to ec2 instances. Currently there are 2 types of EBS provided by AWS - SSD-backed Volumes - These are fast and hence, are used where more transactional activities need to be performed…

AWS

Answered Jan 13, 2020 · 1.8K Views Read answer →

Can we install an operating system or database servers on S3?

No. AWS S3 is object storage, so it cannot be used for software installation. To install different software, such as operating systems or database engines, block storage is required not object storage. Amazon offers EBS as block storage. Imagine EBS as a virtual hard drive that can be attached to EC2 machines, and…

AWS

Answered Nov 7, 2019 · 2.0K Views Read answer →

More members from the AWS community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest AWS Blogs

Guides, tips and career advice on AWS from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.