Posts

Logarithm - The basics

Image
In this blog post, let's break down the basics of logarithms. Logarithms come in handy when dealing with big numbers, providing a convenient way to express them. Usually, these big numbers are the result of exponential growth. Logarithms, acting as the inverse of exponentiation, help us shrink these big numbers into smaller and more manageable ones. Take the number 1000000000 (10 9 ) for instance. If we use logarithms on 10 9 , we get 9. So, in this case, 9 is the simpler way to talk about 10 9 . In other words, 9 is the logarithmic representation of 10 9.  In a nutshell, logarithms does the inverse of exponentials. This relationship mirrors other mathematical pairs, such as subtraction being the inverse of addition and division being the inverse of multiplication. Exploring these logarithmic basics helps us make sense of dealing with large numbers in a more straightforward way. Being inverse of exponentials,  it tells us how many times a number should be raised to produce the give

How to create custom run commands

Image
H ello people... I'm back with a new trick. I'm going to tell how to create your own "Run Commands". So if we want to open an application, we do it by double clicking the shortcut on your desktop or choose it from start menu or directly open it from the installed folder. And now we can do it using run. You can create your own run command so that you can open the application using run. How to create: We all know how to use run. Mostly people use it to open MS Paint, Notepad and Command prompt.  To open other applications you need to create a shortcut for that application and paste it in your windows or system32 folder. Just follow these steps. 1 . Create a new shortcut   Right clicking -> New -> Shortcut 2 . Choose the application path. (I'm creating for Ccleaner) 3 . Cut and paste the created shortcut to C:\Windows\ or  C:\Windows\System32 4 . Open Run , type the name of  the shortcut and hit OK . The application will ope

NirCmd - A small system utility program

Image
The Story: Hello friends..!! For the past few days I got quite addicted to programming. I planned to write a C program for controlling computer hardware. As I feel lazy to press the button for opening DVD drive, I thought of writing a program that will open/close DVD drive on execution. I browsed the internet for references and couldn't find what I needed exactly. But later I found a program 'nircmd' that can be used control the DVD drive. Nircmd is a small command line program that doesn't use any user interface. All is done by creating shortcut to it. It is also useful for various other purposes. How to use? Download the file, copy nircmd.exe  to  ' C:\Users\<USER-NAME>\bin' for Windows 7 users  ' C:\Documents and Settings\ <USER-NAME> \bin ' for Windows XP users If there is no 'bin' folder, create one.  Then create a shortcut for opening DVD drive, Enter the path  C:\Users\<USER-NAME>\bin\nircmd.exe

Windows 7 ALT-Tab trick

Image
H ello guys… It’s been a long time since the last post. Today I’m here with a cool Windows 7 trick. So if you have used Windows XP, you would know that ALT-Tab switching looks like this,

Coloring Command prompt

Image
H i friends :) I'm here with another topic to discuss on. This is quiet old one and almost most people know about it... But I'm posting this for those people who don't know :) I'm going to tell how to change the color of command prompt. From the beginning command prompt will appear in Black-White color. This can be changed by using the command ' COLOR ' . Syntax: color [background color][foreground color] Background color - Screen color Foreground color - Text color The color is given by Hexadecimal values  (From 0 to F) 0 = Black 1 = Blue 2 = Green 3 = Aqua 4 = Red 5 = Purple 6 = Yellow 7 = White 8 = Gray 9 = Light Blue A = Light Green B = Light Aqua C = Light Red D = Light Purple E = Light Yellow F = Bright White By default, the color is 07 [ 0 - Black, 7 - White] For example, giving the command   " color 47 " will turn the background color to red [color for value '4'], foreground color to white [c

Create 'CON' folder in command prompt

Image
P reviously, I posted about device files. We cannot create a folder named with those device file names.  But there is a way to create such folders using command prompt…  Just follow the steps: 1. Open command prompt   Start -> Run -> cmd 2.   I planned to create the folder in K: location so I’m going to enter     md \\.\k:\con   in command      This will create a folder named ‘con’ successfully.  But, you cannot delete it by normal ways like hitting the delete key or shift + delete. If the folder contains anything, deleting by shift+delete or delete key will delete all the files in the folder alone. Leaves the folder as it is.. 3. To delete the folder, open command prompt and enter     rd \\.\k:\con This command removes ‘con’ folder. I hope this was interesting and helpful.. :)  Related posts,  Why cannot we create a folder named CON?

Why cannot we create a folder named CON?

Image
H ello friends I'm back again with some information about device files. In windows, we cannot create folders with the following names: PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, etc.