Archive for the ‘Windows’ Category

This is a simple guide on installing Python 2.7.8 in Windows 8.1 operating system with screenshots.

Requirements:

  1. Windows 8.1 / Windows 8 OS
  2. Python 2.7.8 : Download Link (~15.92 MB)

Step 1: Installation

Download the python setup file mentioned above and run the installer.

 

installer window picture

Click “Next”.

2

Leave it to the defaults and then click “Next“,

installation directory picture

Now in customize screen, you may see a RED X next to “Add python.exe to Path”.

Customization Screen picture

Click on the RED X and then select the first option option “Will be installed on local hard drive”.

custom selection picture

So finally you will have the below screen:

customization final

Then click on “Next“, and follow the on screen instructions:

progress picture

Finally, click on “Finish“.

python installation complete

 

Step 2: Running the Python Interpreter.

Now, to open Python Interpreter in your Windows 8.1 machine, Press Windows key+X (Press Windows key and while pressing CTRL , tap the letter R once) , you will see a context menu (shown below), click on “Command Prompt (Admin)“. (Click Yes if prompted from User Account Control)

cmd run as admin picture

You will now see the windows command prompt window as shown below:

command prompt admin window picture

Now, type python and then “Enter” in your keyboard to start using the DOS interactive python interpreter.

12

Now, you test it by writing a simple print statement, such as:

print “Hi EXTR3ME”

and then hit “Enter“, you will see the output in the next line as shown below:

python dos shell output

You should have by now installed Python 2.7.8 in your Windows 8/8.1 systems and also written a sample program to test it.

Hope this helps. Feel free to leave a comment below or if have any further queries. 

Don’t forget to subscribe to get future updates! 🙂

Regards
ΞXΤЯ3МΞ

This is a guide to keep your computer secure against the Java attack. This post is on how to remove Java from your Windows 7 PC completely to keep your computer safe against any suck attacks. There are a lot of vulnerabilities with Java and is recommended that you remove java completely to keep your computer to be secure against any java exploits. Before you uninstall , you must know that uninstalling Java from your java may not allow some programs to run properly.

Step 1:

Click on the Start Button  (that looks like a flag usually in the left bottom corner of your screen) and click on “Control Panel”.

ctrl

Step 2 :

Now, click on “Uninstall a program” . (Note: If you don’t see a similar page like the one below, try to change the View in the top to “Category” )

menu

Step 3:

Now, type in “java” in the search box in the upper right corner. You will now see all the java components like the one below:

java list

Right click on each of them and click on “Uninstall” and it will remove Java from your computer.

Step 4:

To verify that java is active or not by going to http://www.java.com/en/download/testjava.jsp

Hope this helps! Subscribe to my blog to get more updates!

ΞXΤЯ3МΞ

If you were wondering which is a good IDE for Python Development, there are a lot of them. My personal favorite is the Eclipse but I also use the default IDLE Python at times. This post is a guide on Installing and setting up Eclipse and PyDev in a Windows PC.

Pydev + Eclipse

Step 1: Install Python

You can find a guide on Installing Python in your system here.

Step 2: Install Eclipse

You can download the “Eclipse Classic” version (32-bit or 64-bit)  from http://www.eclipse.org/downloads/ (~ 184 Mb).

The downloaded file wil be a zip file. Simply extract it to any desired location,  For example, extract it to your C: drive. So, now your eclipse folder will be “C:\eclipse”.

To open up eclipse, go to your eclipse installation folder (It is “C:\eclipse” in mine) & open “eclipse.exe” .

eclipse folder

You would see the welcome splash screen and then , you would be prompted to “Select a workspace” . You can choose any location you want or just leave it to the default values.This will the location where your projects and source codes will be saved.

workspace launcher

Now, you will see the Eclipse Start Page. You click on the “x” marked in red to close it and go to to the Workplace.

eclipse home screen

Step 3: Install PyDev

In your Eclipse program, you need to check for updates. You can do so by clicking on the Help>Check For Updates from the toolbar.

After checking updates, install them if prompted. Then Click on Help>Install New Software.

Install new software

Now, you will be presented with  a screen as shown below. Click on “Add“.

Now , put  Name field as “PyDev” and “http://pydev.org/updates” as the Location and press “OK“.

add repo url

Now, wait for a few seconds while it processes it. Now, tick on PyDev as shown below and click “Next“.

tick pydev

Click “Next“.

Now, “Accept” the license agreement and click “Finish“. It would start downloading the necessary files and install PyDev. You will be prompted with a message box asking whether you Trust Certificates.,simply select them and press “OK“.

Installing pyDev
After the installation is complete,it will prompt you to restart Eclipse. So, you have now successfully installed PyDev in Eclipse.

Step 3: Configure Interpreter

Click on Window>Preferences

Preferences

Now click on “PyDev” to expand section and click on “Interpreter – Python“. Now, click on “Add“.

Now, add the Interpreter Name as “Python27” and “Interpreter Executable” as “C:\Python27\python.exe” . You can change the location if you installed python in another directory. Then press “OK“.

interpreter location

You will be prompted to make a selection of which folders to be added to the SYSTEM pythonpath. Simply, choose “Select All” and press “OK“.

Now, finally, you will have your preference windows similar to the one shown below:

Now, you have done configuring the Interpreter. Now, lets see how we can start coding python in Eclipse.

Step 4: Creating a sample Python project in Eclipse

To start a Python Project in Eclipse, Go to File>New>Project.

Creating New PyDev project in Eclipse

Now, select the Wizard as “PyDev Project” and click on “Next“.

Now, Put the Project Name as “Hello World” or anything you want. And select the option “Create ‘src’ folder and add it to PYTHONPATH“. And press on “Finish“. (You might be prompted if you want to open it with PyDev perspective, click Yes).

Creating Hellow World in Eclipse with pydev

Now, click on the small triangle indicated next to your “Project Name” to expand  it. Now, left click on “src” and select “PyDev Module“.

Now, choose any name (which is going to be the name of your python source file) and input it in the “Name” field and press “Finish”. Make sure that you DO NOT ADD the .py extension, you only need to add a name.

You may have to double click on the helloworld.py (or what you named it) to open the source code file.

Add the following line to the source code:

print “Hello World”

Save the file, by pressing CTRL+S or File>Save.

Python Source Editor

To run your python code, click on the button which looks like a small Green Play button, and Go to Run As>Python Run. 

running your python program

The output of your program will mostly be displayed in the lower portion of the Eclipse window as shown below.

Your python program output window

So, yeah you installed Eclipse, installed and configured PyDev and got a little familiar with writing python code and executing them in Eclipse. Thats all for today.

If you liked/disliked or have any sort of questions, please leave a comment. And yeah, you can always follow my blog to  get future updates. 😀

ΞXΤЯ3МΞ

If you are wondering “Can my PC run Virtual Box? “, then this is a guide which will help you identify if your Intel processor supports Virtualization or not.

The first thing you need to do is to download a small tool named “Intel Processor ID Utility”.

Intel Processor Identification Tool : Download Link (~1.5 MB)

Go ahead and Install it , and open it. It will take a couple of seconds to check your processor details. It would show you the processor details such as the “Processor type” , “Model Number”, “Speed of each Core”, “System Bus”, “Cache Memory Size” etc.

Now, click on the tab named “CPU Technologies“.

You need to check these two fields: “Intel(R) Virtulization Technology” and “Intel Vt-x with Extended Page Tables“.

If the “Intel(R) Virtualization Technology” is “Yes” , then your processor supports Virtualization.

The next field “Intel Vt-x with Extended Page Tables” is optional. You don’t need to worry if it says “No”, you can still use Virtualization software but the performance would be slightly lower.

Virtualization Support Check

If you have any sort of queries , just leave a comment and will get back at you. And do follow my blog to get future updates! :D

ΞXΤЯ3МΞ

I was playing around with my old Dell Laptop which had Windows XP Professional installed in it. I just finished installing Windows 7 Ultimate SP1 64-bit using my 8GB USB drive and this post is about how to install Windows 7 from an ISO image using a USB Drive without using any CD/DVD.

Stuff you will need :

  • Windows 7 ISO image file
  • WinToFlash : You can download it from here. (~ 26MB)
  • DEAMON Tools Lite : Download it from here.
  • A USB drive (with atleast 4 GB of free  space).

Step 1: Format USB Drive

I recommend that if you have any files in your USB , then backup those files before performing a format as formatting the USB drive will permanently erase all your files from the USB drive.

Just make sure you have the option “Quick Format” is enabled.

Step 2: Mount Windows 7 ISO

Install DEAMON Tools Lite and open up the DEAMON Tools lite program and “Mount” the Windows 7 ISO file. This the ISO file will be mounted in a virtual drive. Just take a note of the drive letter where it is mounted.

Step 3: Transfer Windows 7 installation to USB

Extract the contents of the WinToFlash file you downloaded earlier to any folder in your computer. Now, open that folder and open “WinToFlash.exe

WinToFlash

You will now see the Start screen. Now click on the the huge “Green Tick Mark” .

 
Now, Press “Next” .

 

Specifying Path

Now, you will have to select the “Windows File Path” as the drive/location where you mounted your ISO file. And, the “USB Drive” as your USB drive. And Press “Next“. Accept the license agreement and click “Continue“.

This will take a while (about 10-15 minutes depending on your system) to copy all the files to the USB drive. After the copying is finished, click “Next” and press “Exit“.

Step 4 : Reboot & Install 

Now, make sure you have your USB drive plugged into your system and reboot your computer. Now, during the reboot phase, at your BIOS screen (press F2 or F8 depending on what is showed on your BIOS screen) , and change the boot order and select it to boot from “USB” as default. Now, save changes and reboot.

This will now load the Windows 7 Setup from USB and you can install it just as you are installing from a DVD.

I prefer installing this way rather than installing from DVD, as the setup is much faster and also there is almost no risk of the setup being corrupted.

Hope this helps. Don’t forget to follow my blog.

ΞXΤЯ3МΞ

Hey guys, today I will be showing you how to get Python installed in your computer to start coding.

[UPDATE: Python 2.7.8 is released and have updated the links in this article.The version we are installing here is 2.7.x and not Python 3.x.x]

Go to   http://python.org/download/

Click on “Python 2.7.8“.

Click on the link that says “Python 2.7.8 Windows Installer” according to your Operating system architecture. (Links32-bit , 64-bit)

Download that file and Install it. Python will be installed in default folder “C:\Python27\“ .

You can now access the Python Interpreter by clicking on Start>All Programs>Python 2.7>IDLE(Python GUI).

A window named “Python Shell ” should have appeared by now.

And now finally to test if python was installed and working properly in your system , type the following line of code:

print "Hello World"

This will give the output Hello World. If you get this output, you have successfully got python configured in your system and also you just wrote your first python program.

Cheers!

ΞXΤЯ3МΞ