Calendar

August 2010
M T W T F S S
« Jul    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Sleep

Shit… off my computer screen at around 1, and tried to go sleep.

Tried.

Then still, awakened by rain.

Then still, automatically woke up at 6am.

A stupid dream. A really stupid dream.

Having a bit of blurred vision now.

Week Updates

Went to JP on Thursday night, for dinner with yz, zx, and zy. The rest all MIA la. Initial plan was to have dinner at ichiban. The queue was crazy. In the end, we ended up at IMM. Still wanted to have ichiban, but the queue there was even longer! Ended up at cafe cartel finally.

Cafe Cartel is a strange place. We totally do not understand why are we paying the service charge.

  • Free seating
  • Yes, they serve us the cups and cutlery
  • We get our own bread
  • We get our own water refill
  • We pay at the cashier counter

Maybe they should pay us instead?

After that, we went for 2nd round at Swensen’s. This was way better. At least you were able to see the waiters and waitresses, and they were all very responsive. Over at Cafe Cartel, you would be seeing waiters and waitresses walking here and there, busy with food, and yet, the food’s not arriving. And you still have to remind them to refill the bread supply.

FAIL la.

We totally regretted eating there man.

But never mind, crapping there was ok. Crapping over at Swensen’s was ok too. We had a giant earthquake, and fries. Heh. I die die must have fries.

Ok la, it’s been some time since I last saw yz. She looked ok liao leh… looked la… LOL.

—————————————————————-

Friday was an irritating day, with rain the whole day, and nothing’s done. Went to bukit panjang plaza for dinner with lt. Chicken rice. Yummy. And then, eddy smsed, and asked if wanna supper. On lor. Went katong, then 126, then mustafa, then ruichun. 10+pm till 3am. Heh.

Partyyy leh…

—————————————————————-

Saturday (today…) was a stone day. Went to UOB to settle the account thingy. I took around 15 minutes, but waited like 45. Basically I already know what I want to do, and I have already found out all the details, and so, settling the closure of iCampus and opening of uniplus account was a breeze. Fast and furious. LOL.

Oh yeah, the global ATM card. There’s a $5 service charge for all transactions overseas. And of course, the exchange rate. But I will not be needing it anyway. Heh. I am freed from overseas assignments and most probably freed from local ones too.

Thanks, NS.

And thanks, Vietnam trip.

Been watching movies on miotv the whole day. Nothing much to do, or rather, was too sianz to do anything else. It was such a good weather, and no one’s available for tennis, or any other activity.

So sianz.

—————————————————————-

On Friday, jerm asked me a question. Yes, it felt that way. If it was really the case, I would be very sad.

Yeah. Actually jerm can make a good HTHT half wor. LOL. Eh don’t quit la… stay on and HTHT leh… wahahah…

—————————————————————-

And now, I am feeling a bit indecisive. One end says, hopeless. Another end says, chances. And somewhere else, there’s someone fanning the flames.

I need information in order to decide. The information’s classified to me. Maybe, hidden. Purposely.

Should I just pour water over the flames?

Lk is like this. Used to be full of hope. Used to think that things are mutual. Used to be so optimistic.

And now, Lk is slowly changing. Hopeless, non-mutual. Pessimistic.

So old-self.

It’s a sad thing. At least for me. It might not even affect you. Or you. Or you.

Argh…

Hot Fudge Sundae

Yeah.. Got my hot fudge sundae…

*happy*

KNN

So what’s important and what’s not that important? Can u ()&*@(&)*(##)(*&!#make up your mind? Can you don’t 1 moment say not that important, and then go change your words and say it’s important? Can you @#)@(*@# say the truth?

What I need is a good reason. Can’t you just give me 1, when it is still early in the game? Why must you wait, and wait, until things get rushed, then say that it’s important?

And why must we go through that same old discussion again? We have said, time and again, that it is not practical.

And I don’t believe people who don’t lead by example.

Lip service.

———————————————————————

Just don’t feel like doing anything now. I want a hot fudge sundae.

Hmm…no interesting melodies

Hmm… Looks like I am not really in an emo mood after all.

Played a bit of keyboard, and then went to sleep. Woke up before the alarm rang.

What’s going to happen today? Stone.

Yeah.

Stone.

Piano…

I looked at my keyboard, and I think, it’s about time.

Time to play a bit.

I need some emo time.

Arrived

image

Goods arrived from Korea!!

Free dinner

Had a treat from the boss’ boss’ boss. Lol. Free dinner are never ‘free’. See lor.

Zzz…

Lip Service

Oh yeah.

A Guide To Install Eclipse IDE for C/C++ Developers with Qt Integration

This shall be the start of a series of C++ tutorials that I am going to put up here. I have always wanted to write something that is of some use here, but I have been ‘busy’ somehow. So, for these posts, the quality of the English language used shall be of acceptable standard, and to the best of my ability.

About C++, Eclipse, and Qt

Now, back to serious business here. If you have hit this page, you must have a bit of knowledge on what is C++ all about, and you should have heard of Eclipse IDE, or Qt UI Framework. I will skip all these explanations here. For people who are still at a loss, here are some websites for your reference:

Integrated Development Environment (IDE)

Basically, Eclipse is an IDE. It aids you in the coding, referencing, and compiling of codes for your projects. It also supports various plugins that are freely available all over the internet. And more important, Eclipse is open-source, which means that anyone can download and use it freely.

Eclipse itself does not compile your codes. As I mentioned earlier, it is an aid. Therefore, you will need a compiler. For this, I will be using the minGW compiler, which, of course, is open-source. If you want to learn more about mingGW, here’s the website to go to: http://www.mingw.org/.

Download and Installation

Let’s start to get our hands dirty! In short, we will be downloading and setting up eclipse, Qt (open-source), Qt Eclipse Integration plugin, and minGW on our computer!

Downloading and Setting Up of Eclipse

For this tutorial, we will be downloading Eclipse Helios! Proceed to the following URL to download it: http://www.eclipse.org/downloads/. Look through the list of possible packages, and we will be able to find the one we are looking for – Eclipse IDE for C/C++ Developers. Click on the link that says “Windows 32 Bit”. And there you have it: a link to download Eclipse! Click on it, and save the zip file! Personally, I like to put all my downloaded stuffs on my desktop. It’s up to you where you want to save the file, just make sure that you can find it later.

Assuming that you have successfully downloaded the file, you should have a zip file, with the name “eclipse-cpp-helios-win32.zip”. Double click on the file. You will see a folder named “eclipse’. Copy it, and paste it in your c drive. This means that, you will have Eclipse in the following folder: “c:\eclipse”.

There you have it. Eclipse on your PC. Easy?

Downloading and Setting Up of Qt and MinGW

Click the following link to get to the page to download Qt: http://qt.nokia.com/downloads. Follow the page’s instructions to download. You should be downloading the Qt SDK for Windows, LGPL license, whose file name should be similar to the following: “qt-sdk-win-opensource-2010.04.exe”. At the page where you click on the SDK to download, there should have a  small print which indicates the version of minGW that has been used to compile the SDK. A download link for that is also available. Click on that too. We need that compiler, in order for things to work properly later. The file name for that should be similar to the following: “MinGW-gcc440_1.zip”.

After the downloads are done, first, run the Qt SDK installer. Keep everything to their default values. Assuming that you have downloaded the 2010.04 version, Qt will be installed in the folder “c:\Qt\2010.04\”. After the Qt SDK installer has finished, double click on the mingGW file that you have downloaded. You should see a “mingw” folder in it. Copy it, and paste it in your c drive. This means that, you will have minGW in the following folder: “c:\mingw”.

If you reach here without much mishap, congratulations! You are halfway through!

Downloading and Setting up of Qt Eclipse Integration Plugin

The plugin is available at the following website: http://qt.nokia.com/developer/eclipse-integration/. Get the one for Win32. After downloading, run the installer. Follow through the instructions. The file name should be similar to the following: “qt-eclipse-integration-win32-1.6.1.exe”. You will be prompted to specify the directory for Eclipse and minGW. If you have followed the instructions above, you should be entering the following text into the respective text boxes:

  • Eclipse – “c:\eclipse”
  • minGW – “c:\mingw\bin”

qt-integration

Complete the installation. That more or less completes the downloading and installation.

Executing and Configuring Eclipse with Qt

You have reached this stage without much mishap. Great!

Now, it is time to try running Eclipse! Go to “Start” –> “Programs” –> “Qt Eclipse Integration v1.6.1″ –> “Start Eclipse with MinGW”. This will start Eclipse! To facilitate speed in starting this program, you can consider putting a shortcut on your desktop or in your start menu.

When running Eclipse for the first time, you will be prompted to select a workspace. A workspace is basically a folder where all your projects will be stored by default. Specify a new folder by clicking on “Browse”. For me, I use d drive, and I will be storing my projects in a workspace called, simply, “Projects”. I do not want this dialog to be popping up everytime I run Eclipse, so I checked the relevent check box, as seen in the picture below.

eclipse-workspacelauncher

If all is well, you should be getting the following screen.

eclipse-welcome

Eclipse and Qt Test

Let’s try to test Qt integration and the compiler! Follow these steps.

  • Press “Ctrl” + “n” on your keyboard. This will pop up a window for you to choose a project wizard.
  • Look under “Qt”. Click on “Qt Gui Project”, and click “Next”.
  • Give the project a name. Call it “QtHelloWorld”.
  • Click on “Finish”. You will get the following prompts.

eclipse-builderror

  • Click on “Open preferences”, and you will get the following.

eclipse-preferences

  • Click on “Add…”. Enter the settings as seen in the following screenshot.

eclipse-addnewversion

  • Click on “Finish”. And then, click on “Apply”. You should get the following prompt. Just click “Yes”.

eclipse-qtchanged

  • Click on “OK” in the “Preferences” window, and close the welcome screen by clicking on the “x” at the top left corner.
  • You should see the project “QtHelloWorld” in the Project Explorer. If you do not see the Project Explorer, go to “Window” –> “Show View” –> “Project Explorer”.
  • Click on the arrow beside the project name to expand it. You should see a list of folders and files. These are all the files related to your project. Double click on “qthelloworld.ui”. The Qt Designer Editor should appear in the middle. This is your UI layout, ready for you to edit.
  • If the Qt Widget Box is not being listed as one of the tabs on the left, go to “Window” –> “Show View” –> “Other…”. Look under “Qt”. Select “Qt C++ Widget Box”, and click “OK”. The widget box will be listed as one of the tabs on the left. Click on it.
  • From the Widget Box, drag a label into the Qt Design Editor. Click on the label, and look at its properties in the properties pane on the right. Look under “QLabel” for a field called “Text”. Change its value to “HELLO WORLD!!!”.
  • Resize the label in the editor so that the phrase can be seen in full.

eclipse-helloworld

  • Save the changes by clicking on the save button.
  • Click on the “Run” button at the top (the green arrow). You should get the following prompt. Choose “gdb/mi”, and click “OK”.

eclipse-debug

Got it? You should get your very first software up and running!

eclipse-success

Yes, congratulations on your successful installing of Eclipse with Qt! Have fun playing with the IDE! If you encounter any problem with the setup, feel free to drop me a comment. I will try my best to help if possible.

Next, I will be writing a small tutorial on C++ basics. In the meantime, there are some books out there which might be helpful for you to start learn or revise on C++. So, hop down to the library near you, and start learning!