Pages

Wednesday, September 23, 2009

Configuring Cygwin C/C++ compiler for Netbeans 6.5 (under Windows)

Posted by royalexander on Friday 20 March, 2009
------------------------------------------------------------------------------------

Today I tried setting up Netbeans as a C IDE, it has built in support for C, but unfortunately enough you have to manually configure a compiler so that you can actually debug / build your C/C++ programs.

Fortunately there is this helpful page at Netbeans.org to help you install Cygwin, a very popular UNIX/Windows C/C++ compiler. However, this helpful page isn’t as helpful as I’d hope at all! It will point you in the right direction to download Cygwin, and will tell you what packages to select for download, it will even tell you to set up your PATH environment variable for Cygwin, but it will assume Netbeans auto detects the correct settings, which it unfortunately doesn’t do. (Well at least at my pc, and I’ve seen a few threads with the same problems around).

So here is my attempt at a more complete overview on installing Cygwin for Netbeans 6.5.
Go to http://www.cygwin.com/setup.exe and download the small setup program. Run it (if your using Vista, set the compatibility options to XP SP2, and run it as administrator). Follow the pretty standard steps until you get to choose the installation packages. If you thought just pressing next would install the most common Cygwin apps, like the compiler (gcc.exe) and the make implementation, unfortunately Cygwin, is not just a C/C++ compiler, it even includes a java compiler, games, documentation, text editors etc. . Ok so just install everything, well that will install the compiler etc., but also 3GB of (for us) useless data. So don’t make the same mistake I did there. We are going to search for the few packages that we actually need. According to the Netbeans.org these are:
select gcc-core: C compiler, gcc-g++: C++ compiler, gdb: The GNU Debugger, and make: the GNU version of the ‘make’ utility.
Unfortunately these aren’t easy to find. For example there is no core package directly visible (we do have base and development though). It took me a while but I think I’ve nailed it down. Select the following packages by clicking the weird “refresh” icon next to them until it says install:
-The entire base
-In the development package select
–binutils
–gcc core
–gcc g++
–gcc g77
–gcc mingw core
–gcc mingw g++
–gcc mingw g77
–gdb
–make
–mingw runtime
(note I’m not sure about the mingw packages, this seems to be a seperate C compiler but it doesn’t seem to harm)

After that go to windows configuration screen->advanced->environment variables. And add "C:\Cygwin\Bin” to the PATH variables (or wherever you have located your Cygwin\bin folder, (make sure to separate it from the last one with a ‘;’).

Start Netbeans, navigate to tools->options->C/C++. Check to see if Cygwin is in the list on the left panel. Select it, and then fill in the options as following: (I assume that you’ve installed it in C:\Cygwin)
Base Director: C:\Cygwin\bin C compiler C:\Cygwin\bin\gcc.exe
C++ Compiler: C:\Cygwin\bin\g++-3.exe*
Fortran Compiler: C:\Cygwin\bin\g77-3.exe*
Make Command: C:\Cygwin\bin\make.exe
Debugger: C:\Cygwin\bin\gdb.exe
(* marks optional)

Now make a new C project. And add a new main file to it by right clicking the source directory and selecting New->Main C file. There is an odd chance that the include directives will be underlined with red. This is not a problem, as you will see the program will compile and run fine, but you can’t use intellisense this way so we are going to fix it. (First make sure your PATH variable was correctly set!).

Right click on your project and select properties. Go to build->C compiler (or C++ compiler if you are doing C++). Select the “…” button after Include Directories. And add the “C:\Cygwin\usr\include” directory to the include directories. Save your settings and reload your project. The red lines should’ve disappeared now, leaving you behind with a fully functional C/C++ IDE and compiler in Netbeans. *Yay*!

Tuesday, July 7, 2009


Weigh Loss Surgery

Sunday, June 21, 2009

Download HD Videos From www.youtube.com

To download HD videos from www.youtube.com without any software, go through the following steps :

1) Open the video you want to download

2) Ensure that the HD button is present (i.e. ensure that the HD verison of the video is available on youtube.com)

3) Type out the following piece of code in the address bar.

javascript:window.location.href = 'http://youtube.com/get_video?video_id=' + swfArgs['video_id'] + "&fmt=22" + "&l=" + swfArgs['l'] + "&sk=" + swfArgs['sk'] + '&t=' + swfArgs['t'];

4) The video should start downloading

Wednesday, June 17, 2009

Convert .uif files to .iso file

Use the following software to convert your .uif files to .iso files, which can be mounted.
The software is called UIF2ISO and is absolutely free to download.


Click on the following link to download

http://www.softpedia.com/progDownload/UIF2ISO-Download-94290.html

Thursday, June 11, 2009

Download videos from MegaVideo.com

Free Video Zilla is a professional MegaVideo downloader for downloading videos from MegaVideo.com which never. Whichever browser you are, it will always download videos from MegaVideo successfully for you. To download the Free Video Zilla, click “download” below.



DOWNLOAD



Download videos from MegaVideo
step 1. Download, Install and Run Free Video Zilla.
step 2. Play MegaVideo videos in your internet browser. When the videos is played, you will see that Free Video Zilla grabs the MegaVideo videos.



step 3. Select the grabbed MegaVideo videos then click 'Download' button





The videos will now begin to downloaded.



NOTE :-
YOU MUST MAKE SURE THAT YOUR INTERNET BROWSER PLAYING THE VIDEO IS KEPT OPEN TILL THE DOWNLOAD COMPLETES SUCCESSFULLY, ELSE YOUR DOWNLOAD WILL FAIL!!

Wednesday, June 3, 2009

Configuring Microsoft Outlook for NTU mail

NOTE :-
The procedure given below would work ONLY if you are connected to the NTU network (either through LAN or Wireless). However, if you are not connected, you could download and install the NTU VPN software, which allows you to use the Internet to connect to the NTU network.
The download is available on http://www2.ntu.edu.sg/CITS/IT+and+Networking/Remote+Access/RAS+Quick+Start+Guide.htm#vpnpic


This post serves as a guide to all NTU students who want to use their NTU Mail on Microsoft Outlook.

1) Open Control Panel -> Mail.


2) Click on "Show Profiles".

3) Now click "Add". In the new dialog box, give a name for the profile (eg)Mail NTU.

4) Select the "Manually Configure server settings or additional server types" and click NEXT.

5) Select "Microsoft Exchange Server" and click NEXT.

6) Enter "MAIL24.student.main.ntu.edu.sg" as the Exchange Server.

7) Enter # followed by your name and followed again by # in the "User Name" text box (eg) #BIJU JOSEPH JACOB#
Click "Check Name" in order to verify. Your name will be underlined once it is verified.



8) Click on "More Settings ..." and then go to the "Connections" tab.

9) Select the "Connect to Microsoft Exchange using HTTP", and click on the "Exchange Proxy Settings" button.



10) Fill up the details exactly as shown above and click OK.

11) Now click "Apply" and then click on "OK".

12) Click NEXT and then FINISH.

13) Launch Microsoft Outlook and enter your NTU username and password. (For your user name enter "student\" before entering your username).



NOTE :-
The above procedure would work ONLY if you are connected to the NTU network (either through LAN or Wireless). However, if you are not connected, you could download and install the NTU VPN software, which allows you to use the Internet to connect to the NTU network.
The download is available on http://www2.ntu.edu.sg/CITS/IT+and+Networking/Remote+Access/RAS+Quick+Start+Guide.htm#vpnpic

Saturday, May 16, 2009

Live Cricket Scores

Download Videos from YouTube

To download videos from youtube.com, dailymotion.com, and other popular web sites without downloading and installing any software :
1) Copy the URL of the video you want to download.
2) Visit the site http://www.keepvid.com/ and paste the URL.

The site gives you a link to download the video in .flv and .mp4 formats.