• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
0
avatar

Posted by @rohitk

5 months ago

How to mock a running microservice program?

I have a running microservice program, and I want to intercept all the requests it sends to downstream services without modifying the code, and return the given data to better test it. Are ... See More

0
avatar

Posted by User Bot

3 months ago

defineSSRCustomElement

Is there an example for hydration of defineSSRCustomElement anywhere?

0
avatar

Posted by @arijit87

5 months ago

How can I check the given number is odd or even in Python ?

num = int(input("Enter a number: ")) if (num % 2) == 0: ? print("{0} is Even".format(num)) else: ? print("{0} is Odd".format(num))

0
avatar

Posted by @arijit87

5 months ago

How to print Floyd?s Triangle with 5 rows

def print_floyds_triangle(rows): ? ?number = 1 ? ?for i in range(1, rows + 1): ? ? ? ?for j in range(1, i + 1): ? ? ? ? ? ?print(number, end=" ") ? ? ? ? ? ?number += 1 ? ? ? ?print() ... See More

0
avatar

Posted by @arijit87

5 months ago

What is the Global Interpreter Lock (GIL)? Why is it important?

The GIL is a mutex used by the CPython interpreter, which is the most widespread implementation of Python. The key function of the GIL is to limit Python bytecode execution to a single threa ... See More

0
avatar

Posted by @arijit87

5 months ago

How would you use Python to fetch every 10th item from a list?

The easiest way to fetch every 10th item from a list is with a technique called ?slicing?. Here?s an example of how you do it:?original_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ... See More

0
avatar

Posted by @arijit87

5 months ago

How to find the sum of two numbers in Python

num1 = int(input("Enter Number1: "))#input 1 : 21?num2 = int(input("Enter Number2: "))#input 2 : 11?print("sum of given numbers is:", num1 + num2)??Output : 32?

0
avatar

Posted by @arijit87

5 months ago

Write a program to check if the given strings are anagram or not

def check(s1, s2):?? ? ?if(sorted(s1)== sorted(s2)):? ? ? ? ? ? ? print("The strings are anagrams.")? ? ?else:? ? ? ? ? ? ? print("The strings aren't anagrams.")?s1 = input("Enter string1: " ... See More

0
avatar

Posted by @arijit87

5 months ago

Write a program to find a fibonacci of a number

nterms = int(input("How many terms? ")) # 7 n1, n2 = 0, 1 count = 0 if nterms <= 0: ??? ? ? ? ? ? print("Please enter a positive integer") elif nterms == 1: ??? ? ? ? ? ? ?print("Fibon ... See More

0
avatar

Posted by User Bot

3 months ago

Issues with Sanity Integration on GitHub and Vercel – Need Help Resolving

Body I'm running into problems with my Sanity project when deploying through GitHub and Vercel. Everything works fine locally, but when I push to GitHub and Vercel tries to deploy, th ... See More

0
avatar

Posted by @arijit87

5 months ago

What do you understand by Java virtual machine?

Java Virtual Machine is a virtual machine that enables the computer to run the Java program. JVM acts like a run-time engine which calls the main method present in the Java code. JVM is the ... See More

0
avatar

Posted by @arijit87

5 months ago

How many types of memory areas are allocated by JVM?

Class(Method) Area: Class Area stores per-class structures such as the runtime constant pool, field, method data, and the code for methods.Heap: It is the runtime data area in which the memo ... See More

0
avatar

Posted by @arijit87

5 months ago

How to check the MySQL version?

We can check the MySQL version on Linux using the below command:?mysql-v?If we use the MySQL in windows, opening the MySQL command-line tool displayed the version information without using a ... See More

0
avatar

Posted by @arijit87

5 months ago

How to add column in Mysql

We can add a column in an existing table using the ALTER TABLE statement as follow:??ALTER TABLE table_name? ?ADD COLUMN column_name column_definition[FIRST|AFTER existing_column];

0
avatar

Posted by @arijit87

5 months ago

How to Delete a table in Mysql

We can delete a table in MySQL using the Drop Table statement. This statement removes the complete data of a table, including structure and definition from the database permanently.DROP?TABL ... See More

0
avatar

Posted by @arijit87

5 months ago

How to add foreign keys in MySQL?

The foreign key is used to link one or more tables together. We can add a foreign key to a table in two ways:Using the CREATE TABLE statementUsing the ALTER TABLE statement?Following is the ... See More

0
avatar

Posted by @arijit87

5 months ago

How to connect to the MySQL database?

MYSQL allows to connect with the database server in mainly two ways.?1.Using command Line:?We can find the command-line client tool in the bin directory of the MySQL's installation folder. T ... See More

0
avatar

Posted by @arijit87

5 months ago

How to change the MySQL password?

We can chhange the MYSQL root password using the below statement:?ALTER?USER?'root'@'localhost'?IDENTIFIED?BY?'NewPassword';??Next, open a Command Prompt and navigate to the MySQL directory. ... See More

0
avatar

Posted by @arijit87

5 months ago

How to change the table name in MySQL?

MySQL provides the following syntax to rename one or more tables in the current database:?mysql>?RENAME?old_table?TO?new_table;??If we want to change more than one table name, use the bel ... See More

0
avatar

Posted by @arijit87

5 months ago

What is SAX in XML?

SAX stands for Simple API for XML. It is a sequential access parser. It is a simple API for XML which provides a mechanism for reading data from an XML document. It is an alternative of DOM. ... See More