Sunday, 14 September 2008

Sending SMS throughout India using E-Mail...

www.160by2.com  has come up with a wonderful idea of sending SMS using e-mail.
All you need to do is register yourself for free in this website.
Inorder to send your SMSs you can use this website or either send an e-mail of the following format...

To : reciever-mobile-number.user-name@160by2.com

Message : .... upto 80 characters...

This is a very good idea. For those people for whom, instant messaging has been blocked this facility can be used...

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.


Update for Netbeans 6.7.1 :

Download Cygwin. Choose the Following by clicking on the arrow kind of buttons.

Choose Devel...

1. GCC 2. G++ 3. GDB 4. NASM 5. G77 6. Make

After this, allow Cygwin to install the downloaded components.

Now open NetBeans 6.7.1 and Create a C/C++ project. Now, goto Tools and C/C++.

Click on add button and specify the location of Cygwin/bin directory. Its mostly in C drive.

Now, the cygwin will automatically be selected by Netbeans.

All you got to do now is delete the project and create a new one.! Things will work fine then..!

Sunday, 7 September 2008

Adding Clock Gadget in your Blog...

If you'd like to add the clock gadget even in your blog follow these steps...!
1. Click on Get Widget which is present in the bottom of the clock gadget.
2. A widget box will appear with a Javascript code.
3. Copy it.
4. Open your blog and goto layout.
5. Click on Add a Gadget.
6. Now select HTML or Javascript in that.
7. Give the title and paste the code.
8. Save the gadget.
9. Save the Layout.
10. Your Gadget is ready.

If your internet connection is very slow, it might take time.

To Robert Reagan : Sir, If you have noted this, please comment...! Thanks for your compliments about the blog...

Unfortunate...

Hello all,
Since blogger has been blocked in our wifi, I'm not able to keep in touch with you all. Once my internal exams are over I'll come up with my posts on the following topics...
1. Varalakshmi Nombu @ Home
2. Avni Avitam
3. Ganesh Chaturthi
4. Nudukkam Thirtha Vinayagar
5. and more to come...

Stay tuned...

Saturday, 9 August 2008

GLOSS session on PHP and MySql

Programming in php has always been a passion for me. HTML alone is not useful. You cannot feel enough power with HTML. So I really hated to switch or even learn web-languages. But, now its not so... website designing using php is something that can give you opportunity to take over the world. Amazing is its features!
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.