Qt saved the day

It all started when I needed to port a small code written in Image Magick/C++ [working in FC5] need to be ported to FC2 {Fedora Core 2}. With the difference in the version of the Magick++ library, I could not even compile it. It was a web based project, so I tried to write it in PHP and the size of the images are some what bigj around the order of 3000×2000 pixels. In PHP we needed to allocate memory seperately . We needed to set around 100MB . If 4 or more instances of the program runs, think, how your machine will be doing ? { If its a server it would do fine }. So, the last alternative, Qt, THE Qt ( from trolltech ). With Qt, the problem was solved in minutes.

In PHP you set the memory limit by

ini_set ( 'memory_limit' , '15M' ) ;

In Qt-3, if you wanna do some image manipulation the format will be something similar.

#include <qappliction.h>
#include <qimage.h>
int main ( int argc , char* argv[ ] ) {
    QImage srcimg("source.jpg");
    QImage dest;
    // Do operations on srcimg and save to dest
    dest.save("destimg.jpg","JPG");
}

and you are done. Qt is the best . A lucid reason is because of how the documentation is made and kept.

An intresting site to check out » http://labs.trolltech.com/blogs/

the day started with carroms

It was June 14, 2007. I was woken up by a phone call from `Campus Connect`. After I kept my phone down, I saw Meka Manoj. Then so, I thought my day’s gonna start with carroms 🙂 Yes it was. We agreed to play not more than 4 rounds.

The game started. As usual, the board was in bad condition[dirty weather X-( ]. I recalled the game that I played the previous night , the funny thing was , we played the game without a striker. It was Praveen’s idea of playing with another coin [ the black red coin ] {as there was no striker present} 😀 .  I played quite well today . I saw the same expression on Manoj’s face which says ` That was sheer damn luck ! ` . People including Pramod P , Nithin M, Pramodh, Sandeep C, etc… [ people who play carroms in OBH ] gave that expression one time or the other. We played around 5-6 boards and we played almost at equal levels 😀 . I was happy when I put my last coin on the last board I played.

It was drizzling , the ENV was cool and pleasent until I got the thought of ` where to eat now ? ` . As it was raining we [ I , GBR ] have no other option except the mess. I am a bit eager to know what all might happen today 😀

The Dinner

It was 13th of June. There was a meeting in the evening, and I had show some improvements in the Tool. It was 10:15 in the morning. I just woke up from bed , and as usual I was browsing through slashdot, lifehacker and other sites. Again re-started using Google Reader. The last feed I added into the Google Reader was the RSS which Google Reader itself provides :). So, I have the list of all the items I am reading sorted according to time.

The time Google Reader shows us is the time at which it had crawled that page and at which it gets the content.

Went to MuRaL at 05:00 pm after the meeting and had a little bit of chat with Shashank and Pramod P and decided to go to Anupama. In the hotel, we had `Veg Canoto Soup `, then, Naans along with the mushroom * curry , and ended the dinner with Curd Rice [ which was actually very good ]. And later after coming back, went to the lab again. Had a great dinner after a long long time 🙂 . Returned back to room and at 01:30 am on 14th June [today] , played carroms till 03:30am.

Did some changes to my webpage(s) . Location » http://students.iiit.ac.in/~sairam/ . Now its cooler 🙂