Showing posts with label program. Show all posts
Showing posts with label program. Show all posts

Friday, 20 July 2012

How To Create Your First Python Program


Wanna learn how to create your first python program , but don’t know where to start. This is beginner, step by step tutorial with images that will help you trough process.
Step 1
Go to python.org, download latest version and install it.
Step 2
Run IDLE (Python GUI)
Step 3
You can run program via python shell or you can run program as python module . py extension.
Step 3.1
Run program via python shell
In Python shell type
Code:
variable = 'Hello World'
and press enter
then type
Code:
print variable
and press enter, output will be Hello World
This is simple example where we store string “Hello World” into variable and then print it out.
Step 3.2
Run as python script . py
Open notepad and type your code
variable = 'Hello World'
print variable
save as HelloWorld.py
Open IDLE and go to File -> Open and open file with .py extension
After this will appear windows where you’ll able to run module, just press F5 or go to Run -> Run Module

Saturday, 14 July 2012

How To Block A Program From Using Your Internet Connection


Windows Firewall Block A Program4A way to block your applications from using your internet connection. This can be useful when you don’t want an application to update or to stop an application from checking that the serial or the crack you applied was genuine or not.

12
Open Control Panel From Start Menu
21
Open Windows Firewall From Control Panel
31
Choose Advanced Setting on the left side In Windows Firewall Window
41
A windows like this will pop up
51
Select Outbound Rules From Left Side
61
A windows Similar to the above will Pop up , click next.
71
Give the program path , choose the exe file of the program ( you can find it from the program installation directory ). After selecting the appropriate directory press next.
81
Select Next
93
Select Next
102
Give any name , usually we keep the programs name for future reference. Click Finish and your program will be listed as black list and will not be able to connect to the internet.