Articles on Trending Technologies

Technical articles with clear explanations and examples

How can we create recursive functions in Python?

Sarika Singh
Sarika Singh
Updated on 12-Mar-2026 4K+ Views

Recursion is a process where a function calls itself repeatedly with new input values, slowly moving toward a condition where it stops. This stopping condition is called the base case. It prevents the function from running endlessly and allows it to return a final result. In Python, we can create recursive functions by simply defining a function that calls itself. Every recursive function has two main components − Recursive Case: This is when the function calls itself to solve a smaller part of the problem. It keeps the process going. Base Case: This is the stopping point. It tells ...

Read More

How to get a list of parameter names inside Python function?

Rajendra Dharmkar
Rajendra Dharmkar
Updated on 12-Mar-2026 3K+ Views

To get a list of parameter names inside a Python function, you can use the inspect module. This module provides several functions that let you examine the properties of Python objects, including function signatures, parameter names, and default values. Using inspect.getfullargspec() The inspect.getfullargspec() function returns a named tuple containing information about a function's parameters, including argument names, variable args, keyword args, and default values ? Example import inspect def aMethod(arg1, arg2): pass print(inspect.getfullargspec(aMethod)) def foo(a, b, c=4, *arglist, **keywords): pass print(inspect.getfullargspec(foo)) The output of the above ...

Read More

How to wrap python object in C/C++?

Gireesha Devara
Gireesha Devara
Updated on 12-Mar-2026 643 Views

To wrap existing C or C++ functionality in Python, there are number of options available, which are: Manual wrapping using PyMethodDef and Py_InitModule, SWIG, Pyrex, ctypes, SIP, Boost.Python, and pybind1. Using the SWIG Module Let’s take a C function and then tune it to python using SWIG. The SWIG stands for “Simple Wrapper Interface Generator”, and it is capable of wrapping C in a large variety of languages like python, PHP, TCL etc. Example Consider simple factorial function fact() in example.c file. /* File : example.c */ #include // calculate factorial int fact(int n) { ...

Read More

Getting error message while using SAP Scripting Tool

SAP Expert
SAP Expert
Updated on 12-Mar-2026 348 Views

SAP Scripting Tool (also known as SAP GUI Scripting) allows users to automate repetitive tasks in the SAP GUI client. However, users frequently encounter error messages when trying to enable or run scripts. This article covers the most common scripting errors, their root causes, and how to resolve them. Common Error Messages and Their Causes 1. Scripting is Disabled The most frequent error is a message stating that scripting is not enabled on the server or client side. SAP GUI Scripting requires activation at both the server level (by a Basis administrator) and the client level (in ...

Read More

SAP ABAP: Using Elementary data type and reference type with keyword VALUE

SAP Expert
SAP Expert
Updated on 12-Mar-2026 473 Views

In SAP ABAP, the VALUE keyword is used to assign default values to variables, constants, and parameters at the time of declaration. When combined with elementary data types and reference types, the VALUE keyword allows you to initialize data objects with predefined values, ensuring they hold meaningful content from the moment they are created. Understanding how VALUE works with different data types is essential for writing clean, predictable ABAP programs. This article explains how to use the VALUE keyword with elementary data types (such as integers, strings, and dates) and reference types (such as object references and data references). ...

Read More

Difference between an SAP ERP system and DBMS

Samual Sam
Samual Sam
Updated on 12-Mar-2026 3K+ Views

What is DBMS? DBMS or Database Management system is basically the tool/interface required to manage the database.  For example, SQL server or a tool like MYSQL workbench is a DBMS. A DBMS is mainly used by or designed for technical people. What is ERP ERP (Enterprise Resource Planning System) is a complete system with one database and number of function modules and has a number of inputs and output interfaces to be used by everyone. For example, there can be a user interface for customer or business people, another for technical people with various skills. So basically we ...

Read More

What is $(window).load() method in jQuery?

David Meador
David Meador
Updated on 11-Mar-2026 5K+ Views

The code which gets included inside $( window ).on( "load", function() { ... }) runs only once the entire page is ready (not only DOM).Note: The load() method deprecated in jQuery version 1.8. It was completely removed in version 3.0. To see its working, add jQuery version for CDN before 3.0.ExampleYou can try to run the following code to learn how to use $(window).load() method in jQuery − $(document).ready(function(){    $("img").load(function(){      alert("Image successfully loaded.");    }); }); Note: The load() method deprecated in jQuery version 1.8. It was completely removed in version 3.0. To see its working, add jQuery version for CDN before 3.0.

Read More

How to check if a matrix is invertible or not in R?

Nizamuddin Siddiqui
Nizamuddin Siddiqui
Updated on 11-Mar-2026 1K+ Views

If the matrix is singular then it is not invertible and if it is non−singular then it is invertible. Therefore, we can check if a matrix is singular or not. We can use is.singular.matrix function of matrixcalc for this purpose. For example, if we have a matrix called M then to check whether it is invertible or not, we can use is.singular.matrix(M).Example1Loading matrixcalc package and creating a matrix −library(matrixcalc) M1

Read More

How to create a vector with all dates in a particular year in R?

Nizamuddin Siddiqui
Nizamuddin Siddiqui
Updated on 11-Mar-2026 1K+ Views

We know that some years are leap years and some are normal years. The leap years have 366 days and the normal years have 365 days. To create a vector with all dates in a particular year we can use first date and the last date of the year by reading them with as.Date and creating a sequence with seq function. Check out the below examples to understand how it is done.Example1Creating a vector with dates in year 2020 −seq(as.Date("2020-01-01"), as.Date("2020-12-31"), by="1 day")Output[1] "2020−01−01" "2020−01−02" "2020−01−03" "2020−01−04" "2020−01−05" [6] "2020−01−06" "2020−01−07" "2020−01−08" "2020−01−09" "2020−01−10" [11] "2020−01−11" "2020−01−12" "2020−01−13" "2020−01−14" "2020−01−15" ...

Read More

How to print a large number of values in R without index?

Nizamuddin Siddiqui
Nizamuddin Siddiqui
Updated on 11-Mar-2026 1K+ Views

Whenever we print any vector then the left-hand side of the R window shows indexing, even if we have one value in the vector the index will be there. For example, if we print a vector that has value equal to 2 then the print output will be [1] 2, here [1] represents the index. If we want to print the vector without index then cat function can be used as shown in the below examples.Example1x1

Read More
Showing 1–10 of 61,250 articles
« Prev 1 2 3 4 5 6125 Next »
Advertisements