Sunday, 14 September 2008
Sending SMS throughout India using E-Mail...
C and C++ programming - Configuring NetBeans (C/C++ support) (Updated to support 6.7.1)
norder to configure CYGWIN (C, C++ compiler) with NetBeans you need to do the following...
Phase 1: Installation
------------------------------
1. Install NetBeans from www.netbeans.org by clicking on "Download NetBeans IDE"
Note:
You need to install even install JDK which will be informed to you while you install NetBeans. Hence select the All-Download option in the website. Size : 219 MB...
2. Select C, C++ from the given options...
3. After Installing Successfully
4. You need to now install a C,C++ compiler.
Note: Have your compiler installed in "C:" drive.
5. Cygwin is a very good GCC compiler which can be downloaded from www.cygwin.com
6. Run the setup file and it asks you an internet connection. Wifi users of SASTRA University may specify Use proxy option and enter 172.16.1.4/5 8080 as usual.
7. You need to now select the package.
8. This is generally very complicated but can be understood of we put some logic.
9. At a minimum, select gcc-core: C compiler, gcc-g++: C++ compiler, gdb: The GNU Debugger, and make: the GNU version of the 'make' utility.
10. Now proceed to install.
Phase II : Testing your compiler..
------------------------------
1. Inorder to check that you've installed your cygwin properly, you need to do certain things.
2. Check if your destination folder contains all the required files of cygwin.
3. Check if your start menu > programs contains a folder named cygwin.
4. This means that you've installed it properly.
5. Now inorder to verify some more go to cygwin bash shell found in the cygwin folder of Start menu > programs.
6. Type cygcheck -c cygwin
7. also these gcc --version
g++ --version
make --version
gdb --version
8. Once you get them all right, you can feel proud that you've done 97.5% of the job.
Phase III : Configuring cygwin with Netbeans.
------------------------------
1. Goto control panel > System or My Computer Icon right click > properties.
2. Choose Advanced tab.
3. Click on Environment Variables.
4. In system variables' frame choose "path" and click "edit" button.
5. Now in the variable value textbox give the path of your cygwin/bin directory. (i.e. probably c:\cygwin\bin)
6. Click OK
7. Congratulations. You have taken a great step towards your better programming.
Now creating your first Cpp program... (Hello World.cpp)
1. Start your NetBeans IDE.
2. Goto File > New Project.
3. In Categories Pane select C/C++
4. In Projects pane select C/C++ Application
5. Click Next.
6. Enter your Project Name. ("Helloworld" here)
7. Choose your Project Location (if at all...)
8. Click on Finish.
9. Now you can see the Projects Tab of your right side containing lots of folders such as Header Files, Source Files, Resource Files, Important Files.
10. Now Right Click on Source Files and Choose...
Empty C++ file...
11. Give it a name...
12. Type the code.
13. Goto Build (Can find it in the Menu Bar) and click on Compile.
14. Once you compile, click on the green arrow button for running the program or By Choosing Run > Run Main Project.
15. Congrats. You've done a splendid job...!!!
Thanks for configuring your NetBeans for C, C++ with me patiently...
if you have any queries about installing NetBeans and Cygwin or be it anything reg. these,
Please do not hesitate to contact me...
sanjeevsince90@gmail.com (or)
sanjeevgopinath@ymail.com (or)
Please note that once your NetBeans is configured, your tools > C++ contains the following things according to your installation.
Sunday, 7 September 2008
Adding Clock Gadget in your Blog...
Unfortunate...
Saturday, 9 August 2008
GLOSS session on PHP and MySql
Let me slowly brief about it...
Php is a server side scripting language. This means that all the execution are basically done in the server side and not by the one executing it. Why should we go for a server side scripting?
Basically, lets take this scenario where I use Solaris Operating system, you use Windows Vista and someone uses a Linux. If I program for a page which works fine with Solaris, I can't be sure that it works as fine as it did for me (There's a change in platform right???)! Hence it becomes necessary for us to write pages that use server side scripting. Did you know? Almost 75% of the webpages are made using php. Even the wikipedia uses php. Try opening a tab and giving it a try. But don't bounce directly now...!
Fine, coming to the part...
Php is a scripting language right? You can just embed it in a normal HTML and the awesome part is that, if you give a tag for bold, underline or something, it even works and modifies your php output.
There is a very close relationship between php and MySql. Whats MySql?
Its a Relational Datanbase Management System. Its very very easy to start with MySql. All you need is just an e-book which helps you out fine. MySql Query Browser is a good choice.
Not much to tell about MySql. The giant Google also uses it! All your searches are done using MySql.
If you need to maintain such a database, you need to maintain an apache server inside your system and access your pages using local host.
I'll talk about this in a detailed manner soon.
