Useful tips for everyday
How does Platform Invoke work with callback function? Create a delegate and pass it as an argument to the EnumWindows function. Platform invoke converts the…
What is the formatted output? Several library functions help you convert data values from encoded internal representations to text sequences that are generally readable by…
How do you calculate 1 bytes checksum? Let’s say the checksum of a packet is 1 byte long. A byte is made up of 8…
How do I track changes in a folder? Login to ADAudit Plus → Go to File Audit tab → Under File Audit Reports → navigate…
What is difference between Lateinit and lazy in Kotlin? In the above code, you can see that the object of the HeavyClass is created only…
How do you roll a 6 sided dice in Python? import random min = 1 max = 6 roll_again = “yes” while roll_again == “yes”…
How do you numerical integrate in Python? Numerical Integration The Basic Trapezium Rule. Scipy uses three methods to integrate a one-dimensional function: trapezoidal (integrate.trapz), Simpson…
Can a thread be stopped from another thread? interrupt() method : If any thread is in sleeping or waiting state then using interrupt() method, we…
Are malloc and free system calls? 3 Answers. Very often, malloc and free are using lower-level virtual memory allocation services and allocating several pages (or…
How to improve query performance on large tables? 1. Use temporary tables. Create temporary table on subset (rows and columns) of data you are interested…