
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
26K+ Views
To display images encoded with Base64, you need to get the base64 encoded string and use the img element. This prevents the page from loading slowly and saves the web browser from additional HTTP requests. Set the base64 image in the src attribute of the . Let’s say we have ... Read More

AmitDiwan
41K+ Views
To check if a number is prime or not, the code is as follows −Example Live DemoOutputIt is a prime numberA function named check_prime() is used to check if the number is prime or not. A number that needs to be checked for being prime is passed as a parameter to ... Read More

AmitDiwan
49K+ Views
To detect the user timezone with the name of the timzone itself, use the Internationalization API. This gives the name of the Timezone in which the user and the browser is being worked on. Detect Exact Timezone with Name Example To get the exact timezone name, we will use the ... Read More

AmitDiwan
34K+ Views
We have an employee.json file in a directory, within the same directory we have a js file, in which we want to import the content of the json file.The content of employees.json −employees.json"Employees" : [ { "userId":"ravjy", "jobTitleName":"Developer", "firstName":"Ran", "lastName":"Vijay", "preferredFullName":"Ran Vijay", "employeeCode":"H9", ... Read More

AmitDiwan
38K+ Views
We will call a function by referencing its name and adding parentheses after it. If the function we are calling returns another function (it does in our case), we will need to assign it to a variable or call it immediately. In the future, we will need to make ... Read More

AmitDiwan
103K+ Views
We can adjust the width and height of an iframe by using CSS to set the dimensions. This can be done by setting the width and height properties to a specific value or to a percentage of the parent container. Additionally, we can use JavaScript to dynamically adjust the dimensions ... Read More

AmitDiwan
50K+ Views
The DateTime.Compare() method in C# is used for comparison of two DateTime instances. It returns an integer value, 0 − If date1 is later than date2SyntaxFollowing is the syntax −public static int Compare (DateTime d1, DateTime d2);Above, d1 and d2 are the two dates to be compared.ExampleLet us now see ... Read More

AmitDiwan
84K+ Views
Let us understand how MySQL server can be started and stopped on Linux and Windows −Linux – Start and Stop ServerOn Linux, the start and stop can be done from the command line as shown below −/etc/init.d/mysqld start /etc/init.d/mysqld stop/etc/init.d/mysqld restartLinux – Service CommandsSome Linux types offer service command as ... Read More

AmitDiwan
38K+ Views
To read CSV file without header, use the header parameter and set it to “None” in the read_csv() method.Let’s say the following are the contents of our CSV file opened in Microsoft Excel −At first, import the required library −import pandas as pdLoad data from a CSV file into a ... Read More

AmitDiwan
41K+ Views
Negative Indexing is used to in Python to begin slicing from the end of the string i.e. the last. Slicing in Python gets a sub-string from a string. The slicing range is set as parameters i.e. start, stop, and step. Syntax Let us see the syntax − #slicing from index ... Read More