Useful tips for everyday
Is there Hashtable in C? A Hash Table in C/C++ (Associative array) is a data structure that maps keys to values. This uses a hash…
When does a stored procedure become very slow? We are struggling with a strange problem: a stored procedure become extremely slow when raw SQL is…
How to serialize and deserialize a JSON file? To write JSON to a string or to a file, call the JsonSerializer.Serialize method. The following example…
How do I monitor a network connection? Step two: Probe your network to see who’s on it Download and install Nmap. Compare Nmap’s list with…
How do you convert a number to word in Python? # Python program to convert numbers to words. if __name__ == ‘__main__’: EMPTY = “”…
What do you mean by Monte Carlo simulation? Monte Carlo simulation is a computerized mathematical technique that allows people to account for risk in quantitative…
How do I list all packages in Arch? List all explicitly installed packages: pacman -Qe . List all foreign packages (typically manually downloaded and installed…
How to split a string into two chars in Haskell? Only works for a single char, but should be easily extendable. Without importing anything a…
What is the purpose of obfuscating code? Obfuscation means to make something difficult to understand. Programming code is often obfuscated to protect intellectual property or…
How do you encrypt the alphabet? Encoding With the Caesar Cipher Also known as the shift cipher, the Caesar Cipher is one of the simplest…