Trending questions in Edureka Community

0 votes
1 answer

How can I convert the output of PHP's filesize() function to a format with MegaBytes, KiloBytes etc?

Hello @kartik, Here is a sample: <?php // Snippet from ...READ MORE

Sep 15, 2020 in PHP by Niroj
• 82,840 points
4,143 views
0 votes
1 answer

How to make function decorators and chain them together?

Here is what you asked for: from functools ...READ MORE

Dec 4, 2020 in Python by Gitika
• 65,770 points
684 views
0 votes
1 answer

How can I clear the cache in laravel using command line?

Hello @kartik, cache:clear artisan command does calls flush function on current ...READ MORE

Oct 28, 2020 in Laravel by Niroj
• 82,840 points
2,277 views
0 votes
1 answer

What is the difference between maven and makefile?

I don't think maven and makefile are ...READ MORE

Oct 23, 2020 in Other DevOps Questions by Hana
2,490 views
0 votes
1 answer

mysql error 'TYPE=MyISAM'

Hello @kartik, Replace TYPE=MyISAM with ENGINE=MyISAM The problem was "TYPE=MyISAM" which should ...READ MORE

Nov 17, 2020 in PHP by Niroj
• 82,840 points
1,420 views
0 votes
1 answer

How do I check if a given Python string is a substring of another one?

Try using in like this: >>> x = 'hello' >>> y ...READ MORE

Nov 26, 2020 in Python by Gitika
• 65,770 points
1,018 views
0 votes
1 answer

How to delete a distribution in Cloudfront?

Hi@akhtar, Before you can delete a distribution, you ...READ MORE

Nov 2, 2020 in AWS by MD
• 95,460 points
2,089 views
0 votes
0 answers

convert dictionary in python

can you please help me on this. ...READ MORE

Dec 10, 2020 in Python by Edureka
• 120 points
464 views
0 votes
1 answer

Can we patch azure linux vm using ansible?

Hi@avinash, You can connect your Azure VM from ...READ MORE

Oct 29, 2020 in Linux Administration by akhtar
• 38,260 points
2,244 views
0 votes
1 answer

How to replace all occurrences of a string?

The general pattern is str.split(search).join(replacement) This used to be ...READ MORE

Nov 26, 2020 in Python by Gitika
• 65,770 points
1,011 views
0 votes
1 answer

How to create a grant in AWS KMS?

Hi@akhtar, You can add a grant to a customer ...READ MORE

Nov 19, 2020 in AWS by MD
• 95,460 points
1,328 views
0 votes
1 answer

How to delete a repository in AWS CodeCommit?

Hi@akhtar, You can delete a repository in AWS CodeCommit. ...READ MORE

Nov 24, 2020 in AWS by MD
• 95,460 points
1,130 views
0 votes
1 answer

ERROR: Could not install packages opencv-contrib-python due to an EnvironmentError: [WinError 5] Access is denied:

Hi@akhtar, I think you are trying to install ...READ MORE

Apr 20, 2020 in Machine Learning by MD
• 95,460 points
10,518 views
0 votes
1 answer

How to pass functions to widgets in Flutter?

Hi@akhtar, Functions are first-class objects in Dart and ...READ MORE

Jul 20, 2020 in Others by MD
• 95,460 points
6,581 views
0 votes
1 answer

How to get LoadBalancer IP in Kubernetes using Terraform script?

Hi@akhtar, In your Terraform script, you can output ...READ MORE

Sep 28, 2020 in Terraform by MD
• 95,460 points
3,586 views
0 votes
1 answer

How to create a user using Ansible Playbook?

Hi@akhtar, You can use the user module in ...READ MORE

Sep 1, 2020 in Ansible by MD
• 95,460 points
4,715 views
0 votes
1 answer

Difference between __str__ and __repr__?

The default implementation is useless (it’s hard ...READ MORE

Nov 30, 2020 in Python by Gitika
• 65,770 points
825 views
0 votes
1 answer

How does a node.js process know when to stop?

Hello, node keeps track of all outstanding work ...READ MORE

Nov 30, 2020 in Node-js by Niroj
• 82,840 points
862 views
0 votes
1 answer
0 votes
1 answer

What is the output of the following code?

rror: expected class or object definition sc.parallelize(Array(1L,("SFO")),(2L,("ORD")),(3L,("DFW")))) ^ one error ...READ MORE

Nov 26, 2020 in Apache Spark by Gitika
• 65,770 points
1,034 views
0 votes
1 answer

How to create a Cluster Snapshot in AWS RedShift?

Hi@akhtar, You can create a manual snapshot of the ...READ MORE

Nov 27, 2020 in AWS by MD
• 95,460 points
988 views
0 votes
1 answer

How to delete a file or folder?

os.remove() removes a file. os.rmdir() removes an empty directory. shutil.rmtree() deletes a ...READ MORE

Dec 7, 2020 in Python by Gitika
• 65,770 points
547 views
0 votes
1 answer

I am trying to search for attach window activity in my community edition but could not find it. Please help.

In activities panel, type in only "attach" ...READ MORE

Nov 5, 2020 in RPA by Umesh
1,929 views
0 votes
1 answer

Why does DEBUG=False setting make my django Static Files Access fail?

Hello @kartik, If you still need to server ...READ MORE

Aug 6, 2020 in Python by Niroj
• 82,840 points
5,832 views
0 votes
1 answer

Unable to Connect to import or direct query reports

Check your cached data sources. Once in ...READ MORE

Nov 20, 2020 in Power BI by Gitika
• 65,770 points
1,286 views
0 votes
1 answer

Check if a given key already exists in a dictionary?

in is the intended way to test for ...READ MORE

Nov 26, 2020 in Python by Gitika
• 65,770 points
984 views
0 votes
1 answer

How to delete a Cluster Snapshot in AWS RedShift?

Hi@akhtar, You can delete the specified manual snapshot. The ...READ MORE

Nov 27, 2020 in AWS by MD
• 95,460 points
950 views
0 votes
1 answer

How to create a URL in the controller .NET MVC?

Hello @kartik, If you just want to get ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,840 points
6,432 views
0 votes
1 answer

org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://localhost:54310/user/hduser/input.

Hi@akhtar, It seems you are providing the wrong ...READ MORE

Oct 13, 2020 in Big Data Hadoop by MD
• 95,460 points
2,880 views
0 votes
1 answer

How to center a popup window on screen?

Hello @kartik, Use this: function popupwindow(url, title, w, h) ...READ MORE

Sep 3, 2020 in Java-Script by Niroj
• 82,840 points
4,618 views
0 votes
1 answer

How do I get the last inserted ID of a MySQL table in PHP?

Hello @kartik, If you're using PDO, use PDO::lastInsertId. If you're ...READ MORE

Oct 22, 2020 in PHP by Niroj
• 82,840 points
2,479 views
0 votes
1 answer

How do I concatenate two lists in Python?

You can use the + operator to combine them: listone ...READ MORE

Dec 3, 2020 in Python by anonymous
• 65,770 points
661 views
0 votes
1 answer

How to find all occurrences of a substring?

There is no simple built-in string function ...READ MORE

Nov 25, 2020 in Python by Gitika
• 65,770 points
1,038 views
0 votes
1 answer

How to create directory of current username in ruby on Linux server

Hi, The command whoami is used to know ...READ MORE

Nov 25, 2020 in Linux Administration by MD
• 95,460 points
1,012 views
0 votes
1 answer

Error:UnexpectedValueException: The Response content must be a string or object implementing __toString(), "object" given.

Hii, You can simply use: $new_collection = $collection->merge($other_collection). Hope it ...READ MORE

Nov 12, 2020 in Laravel by Niroj
• 82,840 points
1,576 views
0 votes
1 answer

How to create a Kubernetes cluster with a specific version?

Hi@akhtar, You can create a Kubernetes Cluster in ...READ MORE

Nov 17, 2020 in Azure by MD
• 95,460 points
1,380 views
0 votes
1 answer

I've been trying to run this code, but the error says "Expected an indented block" for the line, " word_as_list[index] = guess."

Hi, @Paradox, The error message IndentationError: expected an indented ...READ MORE

Nov 21, 2020 in Python by anonymous
• 65,770 points
1,209 views
0 votes
1 answer

How to unzip a file with php?

Hello @kartik. PHP has built-in extensions for dealing ...READ MORE

Sep 29, 2020 in Laravel by Niroj
• 82,840 points
3,459 views
0 votes
1 answer

How to validate the sudoers file before changing the file in Ansible?

Hi@akhtar, You can do this using lineinfile module ...READ MORE

Sep 2, 2020 in Ansible by MD
• 95,460 points
4,629 views
0 votes
1 answer

Installing specific package versions with pip

TL;DR: pip install -Iv (i.e. pip install -Iv MySQL_python==1.2.2) First, I ...READ MORE

Nov 22, 2020 in Python by Gitika
• 65,770 points
1,127 views
0 votes
1 answer

How do I specify unique constraint for multiple columns in MySQL?

Hello @kartik, Use this: ALTER TABLE `votes` ADD UNIQUE ...READ MORE

Aug 18, 2020 in PHP by Niroj
• 82,840 points
5,280 views
0 votes
1 answer

How to get information about differences for a commit specifier in a repository in AWS CodeCommit?

Hi@akhtar, You can get information about the differences ...READ MORE

Nov 24, 2020 in AWS by MD
• 95,460 points
1,070 views
0 votes
1 answer

How to change url after success in ajax without page reload?

Hello @kartik, Use the browser history to change ...READ MORE

Apr 29, 2020 in Java-Script by Niroj
• 82,840 points
10,065 views
0 votes
1 answer

Latest Microsoft AZ-304 Dumps for Exams Revision Guaranteed

Hi, @pamega, Thanks for the info. READ MORE

Nov 30, 2020 in Others by Gitika
• 65,770 points
820 views
0 votes
1 answer

How to install Azure CLI on macOS?

Hi@akhtar, For the macOS platform, you can install ...READ MORE

Nov 13, 2020 in Azure by MD
• 95,460 points
1,519 views
0 votes
1 answer

How to know if an object has an attribute in Python?

Try hasattr(): if hasattr(a, 'property'): a.property The ...READ MORE

Dec 2, 2020 in Python by Gitika
• 65,770 points
680 views
0 votes
1 answer

How to delete an IAM user using AWS CLI?

Hi@akhtar, You can delete the specified IAM user. ...READ MORE

Nov 3, 2020 in AWS by MD
• 95,460 points
1,935 views
0 votes
1 answer

How to launch an emulators from Flutter?

Hi@akhtar, Before launching emulators you should check if ...READ MORE

Jul 20, 2020 in Others by MD
• 95,460 points
6,518 views
0 votes
1 answer

What is the linux command to find Memory and CPU usage in percent for last 30 days?

Try the following: Cat proc/meminfo top top -i less /proc/memin ...READ MORE

Oct 14, 2020 in Linux Administration by Kim
2,794 views
0 votes
1 answer

How to compare two string with some characters only in python?

You could use in to check if a string ...READ MORE

Nov 26, 2020 in Python by Gitika
• 65,770 points
934 views