Skip to main content

Posts

How to Add Python to the Windows Path Variable: A Simple Solution

If you've ever installed Python on a Windows machine but encountered issues running Python commands in the terminal, you might be facing a missing Path variable entry. Recently, I solved this issue by manually adding Python to the Windows environment variables. Here’s how you can do it too. The Problem After installing Python, you might open the Command Prompt and type: python --version and receive an error stating that Python is not recognized as an internal or external command. This happens when Python’s installation path isn’t added to the system’s environment variables. The Solution To fix this, follow these steps: Step 1: Locate the Python Installation Directory Open the Windows search bar and type Python . Click on Open file location to navigate to the installed Python folder. Inside this directory, locate the Scripts folder. The path should look something like this: C:\Users\YourUsername\AppData\Local\Programs\Python\PythonXX\Scripts (where PythonXX represents your instal...

Trip To The Marvellous Taj Mahal.... Some points to learn and some to ponder...

My mom had always wanted to see the Taj and have a snap there in front of it. And for me, it has been one of those good-son's dream to make it happen for her.  So came the golden chance to fulfil that when mom and dad came to Delhi last week.  Well, its sunny May, the heat is scorching here, thinking of which I was worried ,if it was gonna make it difficult for them. But then, I had this opportunity and I didn't want it go by and we decided to go there on Thursday, 8th of May,2014.  The journey didn't began on expected lines. We couldn't take breakfast and we had to hurry down the elevator when the travel agent called up like we were actually missing the bus(Actually here starts the great trick of fooling people by the Miscreants Of Delhi). The Bus looked good from outside, inside it looked like a modified WWII German Bus. As soon as we were about to board, the agent locked it and asked us money-we paid. But this was a trick- there were only 2 seats left and the t...

Erlang on Linux: Configuration and Installation

Erlang is a fast growing language and is used in many key applications. Being concurrent and fast..it is used in many applications where multiple service are required simultaneously.  It can be installed on linux via it package  or  simply from the terminal using : sudo apt-get install erlang I did using the source file from the erlang site. The following steps made me complete the installation: 1>download the tar file. 2> cd to the folder and unzip it. 3> go the unzipped folder. 4> Now, Erlang needs some other files to fully complete installations and generate documentations.   So the following steps needs to be done: sudo apt­-get install fop  sudo apt­-get install libncurses-5­-dev sudo apt­-get install openjdk­6­-jdk sudo apt­-get install unixodbc-­dev sudo apt­-get install g++ sudo apt­-get install libssl­-dev Still, Erlang requires wx libraries so we will do the following: sudo apt­-get install libwxbase2.8 sudo apt­-ge...

Boot problem in Ubuntu dual boot os: Solved

I had been using Ubuntu for quite a long time. Sometimes, problems arise as such like:  Windows cannot boot. or Ubuntu cannot boot. Solving this problem is easy: however it requires you to have: Internet connection. Ubuntu live cd or bootable pendrive. Now lets go through how we could solve this using a software: Boot from the pendrive or cd. Use the Try Ubuntu mode on first page. Connect to the net Open the terminal using ctrl+alt+t and do the following steps: sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && (boot-repair &) Now a window will pop up after installation and it will give you the options. Choose whichever is appropriate and it will solve the problem. It also provides link to the error log file from where you can know more of the problem or ask the community about it. .......So don't worry next time...just do the steps listed above...If it does not solve ...leave a com...

How to create a bootable USB pendrive in Linux

If it was windows, it would be much easier ...for we have the universal USB installer. In Linux, we can't use that: however, we need not worry, guys have done a great job by creating a much easier tool to do the work. The tool is called gparted. It is a nice GUI tool to do our work. So lets see how we shall do it. >Open the terminal . >Now type: sudo apt-get install gparted ......This will install the tool ...well and good if you had it from before. >Now type: sudo apt-get install-3g ( gparted installed this as default for me...just see if it did for you). >Now open the tool via: System>Administration>Gparted Partition Tool >Now you are almost done....Click the File and choose the drive for the particular USB. >Right click on the drive when it is enlisted. See Manage Flag menu and click to enable boot. >Now go to Partition menu at the top panel and format the drive as ntfs . This will keep the work as pending operation ...click the cor...

How to find the difference between two files from windows shell

Well I was just wondering how could I see the difference between two files in windows. Searching the net, I saw some softwares  that would do the job for me..But I wanted simple and fast not so sophisticated ... I found out we could do using a simple tool...fc..from the DOS prompt. FC is a command to view the difference of two files or set of files.. So the steps are: 1> go the directory where the files are.. 2>type  fc first-filename second-filename ....and there you go..You will get the result each different section divided by line of stars.. ...Its simple ...right?? I love it....The following explains the full usage method ------------------------------------------------------------------------------------------- Syntax: FC [d:][path]filename [d:][path]filename [/A][/C][/L][/Lb n] [/N][/T][/W][/(number)] for binary comparisons FC [d:][path]filename [d:][path]filename [/B][/number]  FC reports differences between the two files you specify. FC firs...

GIT : Terminal Shortcuts..to help you..and us..

SHORTCUTS Key/Command Description Ctrl + A Go to the beginning of the line you are currently typing on Ctrl + E Go to the end of the line you are currently typing on Ctrl + L Clears the Screen Command + K Clears the Screen Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line. Ctrl + H Same as backspace Ctrl + R Lets you search through previously used commands Ctrl + C Kill whatever you are running Ctrl + D Exit the current shell Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it. Ctrl + W Delete the word before the cursor Ctrl + K Clear the line after the cursor Ctrl + T Swap the last two characters before the cursor Esc + T Swap the last two words before the cursor Alt + F Move cursor forward one word on the current line Alt + B Move cursor backward one word on the current line Tab Auto-complete files and folder names CORE   COMMANDS cd Home directory cd [f...