Tuesday, January 03, 2012

Happy new year to all

Hi all,

I wish all the readers a very happy new year. Hopefully this year brings the happiness & peace to all inhabidents of mother earth.

- Raghu Nayak

Tuesday, December 20, 2011

Monday, October 10, 2011

Fixing Qt Warning: Unescaped backslashes are deprecated!

You might have hit this warning while you are trying to include source files located under sub directories to a Qt project.

Fix to solve this warning is very simple!

This warning occurs whenever you try to use backslash (\) as path separator. To avoid this warning just use forward slash (/) as your path separator, instead of backslash (\). Qt uses Unix style path separator (/) irrespective of the platform.

Example: If you want to include parent directory use ../ instead of ..\

Following Qt project file example explains the problem & solution in detail.

Consider following Qt project file. Here we have used backslash (\) as our path separator.
# Sample.pro
TEMPLATE = app
CONFIG  += console
TARGET   =
DEPENDPATH  += .
INCLUDEPATH += ..\include    \
               ..\..\include
unix:LIBS   += -L/usr/local/lib
LIBS        += -lgtest
DEFINES     += USE_GTEST
QT          += network

# Input Files
HEADERS +=  LoggerTester.h      \
            ..\src\Logger.h
SOURCES +=  LoggerTester.cpp    \
            ..\src\Logger.cpp   \
            Main.cpp

As expected above project file results into a lot of Qt warning saying: "Unescaped backslashes are deprecated."

The same Qt project file after changing the path separator:
# Sample.pro
TEMPLATE = app
CONFIG  += console
TARGET   =
DEPENDPATH  += .
INCLUDEPATH += ../include    \
               ../../include
unix:LIBS   += -L/usr/local/lib
LIBS        += -lgtest
DEFINES     += USE_GTEST
QT          += network

# Input Files
HEADERS +=  LoggerTester.h      \
            ../src/Logger.h
SOURCES +=  LoggerTester.cpp    \
            ../src/Logger.cpp   \
            Main.cpp

As expected new project file does not create any Qt warnings.

Thats all! Please leave a comment if this post helped you.

Technorati tags: , .

I am getting exploded with new blogging ideas!

As you might have seen from the my blog post history, I don’t blog very often. In-fact its been about 3 months since I even visited the Blogger website.

When I visited the Blogger website today, I was welcomed by a freshly looking Blogger. The Blogger’s new look is really nice & it brings fresh air into the Blogging world! I must admit that Google’s blogger team is working really hard. First they brought the new Blogger themes & now they’ve re-designed entire Blogger itself.



Though Blogger was late in introducing many new feature, nevertheless they are not too late! Now a days I see Blogger team introducing new feature every month or so. Its just cool!

Ever since I started using new Blogger website, I am feeling my self getting exploded with new blogging ideas. Though I am not sure how many of these ideas will actually make in to blog posts, I am in love with the new Blogger website & its features.

The Blogger’s new look is a very much welcome move in the Blogging world, where I always felt that Google Blogger is little stagnant with features.

Technorati tags: , .

Wednesday, July 20, 2011

GMail and expanding storage

For some reason I always thought that the rate at which GMail is expanding its free storage is way faster than the rate at which new mails are eating up my GMail space. But ever since I saw a rapid jump in my GMail free space utilization way from 24% to 40% with in few months, I wanted to find out the exact amount of free space GMail adds per year.


After inspecting the source code and performing visual check, I found that GMail is adding free space at the rate of 0.000004 MB per second.

Which means per day GMail adds 0.3456 MB (0.000004 * 60 * 60 * 24) and per year 126.144 MB (0.3456 * 365).

Is this free space increase sufficient? Depends on you! For guys like me buying additional storage from Google seems like an inevitable future. But for people with less mail activity this free space addition shall be more than sufficient.

By the way nice PR Google!

Technorati tags: ,

Thursday, April 28, 2011

Yahoo is dying a slow death?

Today early morning I received an email from Yahoo! saying that Delicious has a new owner now.

Well I wasn’t actually surprised to see this. In fact I was expecting this to happen someday or the other.



Since last couple of years I have been seeing Yahoo! closing doors of many of its services. Sad enough, it included some of my favorite services such as Yahoo! Briefcase, Geocities, Photos.

I was very sad when I knew that Geocities is closing. After all my first website was hosted by Geocities.

Its funny to see Yahoo! acquiring different services only to either close them or sell them later on. Example includes RocketMail, MyBlogLog and now Del.icio.us

Each time when Yahoo! closes its service, it would announce that it is doing so to continue its focus on core business. Well, What is that core business of yahoo!?

Search Engine? No, Last year Yahoo announced that Microsoft Bing would powering the Yahoo! search.

If not search then what else? What else if left?

I feel that currently Yahoo! wants to focus on its only money making business - Advertisement. If Yahoo! continues to be like this, may be someday Yahoo! will be just another internet ad company around the corner.

If I see back all I see is the opportunities lost by Yahoo! For example: Geocities could have been the first weblog publishing service and Briefcase could have been first cloud based storage! But nevertheless Yahoo! never fully utilized its user base and infrastructure. Lately Yahoo! never tried inventing anything new, rather all it did is to either copy or acquire a start-up. That is why Yahoo! sucks today!

I think Yahoo! is dying a slow death, what do you think?

Technorati tags: , .

Wednesday, April 27, 2011

YouTube - Secret snake game

I just came to know that YouTube video player has got a secret snake game embedded within. I found this through a comment posted in YouTube.



Follow the following steps to play this game:
  1. Pause the YouTube video.
  2. Press the left arrow.
  3. Press the up arrow while keeping left arrow pressed.
  4. You will see the snake game, control the snake using the arrow keys.
Apparently this works with all YouTube videos. You can try this with following video song by Death Cab for Cutie. Its my current favorite video song.



Enjoy! :)

Technorati tags: , .