Friday, March 21, 2014
Thursday, November 21, 2013
Fatal error: Python.h: No such file or Directory
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,4,'beta',4) -D__version__=1.2.4b4 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -g
fatal error: Python.h: No such file or directory
error: command 'gcc' failed with exit status 1
Where can I find Python.h file and how do I fix this problem under Debian or Ubuntu Linux sever based system?
Python.h is nothing but a header file. It is used by gcc to build applications. You need to install a package called python-dev. This package includes header files, a static library and development tools for building Python modules, extending the Python interpreter or embedding Python in applications.
To install this package, enter:
sudo apt-get install python-dev
Saturday, September 7, 2013
1. Install python 3.3
2. Add python.exe path in Environment variable
3. download setuptools from https://pypi.python.org/pypi/setuptools/0.7.4
3.1. extract downloaded tar
3.2 go to extracted directory
3.3 python ez_setup.py install
4. Download selenium from https://pypi.python.org/pypi/selenium
5. Extract downloaded tar file
6. Go to selenium extracted directory
7. python setup.py install
Sunday, August 18, 2013
Thursday, January 20, 2011
This article will help you convert your Windows XP and Vista basedlaptop in a Wireless HotSpot. One you setup your laptop asHotSpot then you do not need a router, switch, hub, etc… to form a network, in fact other laptops or PC’s can connect or access the internet through this newly created HotSpot
What do I need to set a HotSpot?
- Active Cable Internet
- WiFi on Laptop
- Wired net connection
Once you have all the above things mentioned, you are all set to follow the steps:
How to setup HotSpot on Windows Vista:
- Got to Control Panel
- Click on “Network and Sharing Centre”
- Under Tasks choose “Setup New Connection”
- Wireless “Ad-hoc network”
- Now type in a “Network Name”
- Choose “WEP” password if you don’t want to share the connection with the entire world
- Click “Internet connection sharing”
Now a WiFi enabled machine will be able to connect to the network you have just setup with the WEP password
Lets setup a HotSpot on a Windows XP machine:
- Go into Control panel
- Open “Network Connections”
- Right click on “Wireless Connection” and click on “Properties”
- Click on the “Wireless Networks” tab and select the check-box which says “Use Windows to configure my wireless network settings”
- Under “Prefered networks” click “Add”
- Type a name in “Network name” text box
- Select “Shared” from the options under “Network Authentication”
- Under Data encryption select “WEP” and type in your password in “Network Key” field and now click “OK”
- Now the new HotSpot should show in the list of preferred networks.
- Click on the “Advance” button and select “Computer-to-computer (ad hoc) networks only” and press close
- Hit “OK”, we are done with the wireless connection properties
One more step, we have to change something in the wired connection setting so that it knows that it has to share connection with the computers accessing our HotSpot.
- Go to local Area Connections, right click it and select properties
- Go to the “Advanced” tab and under Internet Connection Sharing check the box which says “Allow other network users to connect through this computer’s internet connection” and make sure the box under that is NOT selected so that no one can disable the network remotely.
- Hit “OK”
I hope this helps setting up a wireless connection without a WiFi router. Have FuN!
Wednesday, January 19, 2011
Friday, January 7, 2011
I assume that you already did following two tasks.
1. Download and install SeleniumIDE.
2. Record some action in IDE. Export that as JAVA code.
* Download SeleniumRC zip file. Extract it on some folder say C:\Selenium.
* In Eclipse create new java project.
* Right click on newly created project and add JUnit test case. Copy your selenium java code created in above step-2 to in it.
* Add the selenium-java-client-driver.jar (from extracted seleniumRC folder) files to your project as references.
* Right click on your project and Run it as JUnit test case.
* Its cool. Isn't it. For generating HTML report for your JUnit test case please refer to my other POST here. Or copy paste following text into url pane of your browser.