Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Paul Richard
Page 2 of 5
What will happen when 1 is converted to Boolean in JavaScript?
In JavaScript, when the number 1 is converted to Boolean, it becomes true. This is because 1 is considered a "truthy" value in JavaScript's type conversion system. Understanding Truthy and Falsy Values JavaScript has specific rules for Boolean conversion. The number 1 (and all non-zero numbers) are truthy values, meaning they convert to true. Example: Converting 1 to Boolean Convert 1 to Boolean var myVal = 1; document.write("Boolean: " ...
Read MoreHow to set border width, border style, and border color in one declaration with JavaScript?
To set the border width, style, and color in a single declaration, use the border property in JavaScript. This property accepts a shorthand value that combines all three border properties. Syntax element.style.border = "width style color"; The order is: width, style, color. You can also specify individual sides using borderTop, borderRight, borderBottom, or borderLeft. Example: Setting Border with Button Click Set Border Demo Text ...
Read MoreHow to call a parent window function from an iframe using JavaScript?
When working with iframes, you often need to call functions defined in the parent window from within the iframe. JavaScript provides several methods to achieve this cross-frame communication. Using window.parent The most common approach is using window.parent to reference the parent window: Parent Window Parent Window function displayMessage(message) { ...
Read MoreHow to add a number of months to a date using JavaScript?
To add a number of months to a date in JavaScript, you can use the setMonth() method combined with getMonth(). This approach automatically handles year transitions and varying month lengths. Basic Syntax date.setMonth(date.getMonth() + numberOfMonths); Example: Adding Months to Current Date var currentDate = new Date(); var monthsToAdd = 3; document.write("Original Date: ...
Read MoreEstimation of number of SAP programs and factor deciding it
There is no official table for estimating the number of SAP programs required, as the estimation depends on several critical factors. Understanding these factors helps project managers and developers create more accurate estimates for SAP development projects. Key Factors Affecting SAP Program Estimation The following factors significantly impact the estimation process − Programmer Experience − Experienced developers can implement complex functionality faster and with fewer iterations. Junior developers may require 2-3 times longer for the same task. Complexity of Code − Simple reports and forms require less time compared to ...
Read MoreExtracting data from SAP HANA database and load to ORACLE database
There are several methods to extract data from SAP HANA database and load it into Oracle database. Each approach has its own advantages depending on your specific requirements, infrastructure, and technical expertise. Methods for Data Extraction and Loading ETL Tools: Use standard SAP tools like SAP Data Services or Oracle Warehouse Builder (OWB) to extract data and automate the entire process. These tools provide graphical interfaces, built-in transformations, and scheduling capabilities for seamless data integration. ...
Read MoreUsing SAP T-code SM37 to check background jobs in SAP system
In SM37 you can only see the scheduled background jobs as it is not used for foreground jobs. This transaction code is essential for monitoring and managing batch processes that run behind the scenes in your SAP system. Accessing SM37 Transaction To access the background job monitoring screen, enter SM37 in the SAP command field and press Enter. Below shows the initial screen of SM37 Transaction code − Key Features of SM37 ...
Read MoreWrite Python program to find duplicate rows in a binary matrix
Given a binary matrix contains 0 and 1, our task is to find duplicate rows and print it.Python provides Counter() method which is used here.ExampleInput: 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 Output: (1, 1, 1, 1) (0, 0, 0, 0)AlgorithmStep 1: Create a binary matrix, only 0 and 1 elements are present. Step 2: Which will have rows as key and it’s frequency as value. Lists are mutable so first, we will cast each row (list) into a tuple. Step 3: Create a dictionary using the counter method. Step 4: ...
Read MoreHow can we RENAME an existing MySQL event?
With the help of ALTER EVENT statement along with the RENAME keyword, we can RENAME an existing event. To illustrate it we are having the following example in which we are renaming the event ‘Hello’ to ‘Hello_renamed’ −Examplemysql> ALTER EVENT Hello RENAME TO Hello_renamed; Query OK, 0 rows affected (0.00 sec)To confirm that event has been renamed we can try to delete the event with the old name, MySQL will throw an error as follows −mysql> DROP EVENT hello; ERROR 1539 (HY000): Unknown event 'hello'
Read MoreHow can I convert 1st January of the current year into epoch?
It can be done by using UNIX_TIMESTAMP() function as follows −mysql> Select UNIX_TIMESTAMP(CONCAT(YEAR(CURDATE()),'-01-01')); +--------------------------------------------------+ | UNIX_TIMESTAMP(CONCAT(YEAR(CURDATE()),'-01-01')) | +--------------------------------------------------+ | 1483209000 | +--------------------------------------------------+ 1 row in set (0.03 sec)It can be verified by the following query −mysql> Select FROM_UNIXTIME(1483209000); +---------------------------+ | FROM_UNIXTIME(1483209000) | +---------------------------+ | 2017-01-01 00:00:00 | +---------------------------+ 1 row in set (0.02 sec)
Read More