Monday, December 7, 2009

C/C++ Programming on MAC

If you want to do simple C/C++ programming on mac than you can do that simply by using the Xcode the Apple default programming environment. It comes bundle with your MAC OSX CD, so you don't even have to download it.



As I discovered you don't need to get yourself a separate IDE for mac. Watch the video above to get yourself started.

I use xcode for Objective-C programming on mac daily.
Read more!

Tuesday, December 1, 2009

Logical Puzzle: Average of 3 Salaries

Question: There are 3 people X, Y & Z. They want to find their average salary but wish to keep their package hidden from each other. How are they going to do it?

Answer: Lets say salary of X, Y & Z are A,B & C respectively.

1. Now X adds a constant E (can be both negative and positive) to his salary and tells it to B.
2. Y adds a constant F to his salary and add it to the sum provided by X (A+E) and tell it to C.
3. Z adds a constant G to his salary and add it to the sum provided by Y (A + E + B + F) and tells it to every one.
4. Now A removes the constant E from the total ( A + E + B + F + C + G), then B removes F and finally C removes G. Now they have the sum total of their salary.
5. They divide the total by 3 and obtain the average salary.


Read more!

Bought Myself a MacBook


I have finally bitten by the 'Apple bug'. I have bought myself a MacBook, the one released in November and my experience till now is amazing. It costed me 55k in rupees (including taxes) and I bought it from official apple retailer UCInfosystem .

I would like to thank my currren company Wirkle to introduce me to the MAC development environment and OSX. Its a great addition to my skill and I can now code on Windows, Mac and Linux. In tech terms I am triple booting now.



Read more!

Wednesday, November 25, 2009

My (Anuj Pathania's) 5 Best Solo Pic

I was going through all my pics collection. It was like looking through a panorama of my life. There's 100 of those pics among collection that I absolutely adore. Here are my 5 top favorite pics of myself and short description of each.

1 @ Delhi Zoo
2 @ Sister's Marriage

3 @ 21st Birthday
4 @ Karnal
5 @ Office Party

Yeah I know I am not superbly good looking but I think I look descent in these pics :D.

Read more!

Sunday, November 1, 2009

Half-Delhi Marathon: Mission Accomplished.

Today I ran hard and successfully completed Airtel Half Delhi Marathon. I completed 21 Kilometers in 3 Hours and 13 minutes.

First five 5 KMs were pieces of cake, but after that with each successive km milestone, it seemed liked that distance between 2 milestone was getting bigger and bigger.

I ran with my Company(Wirkle) - CEO (Mr. Varun Khurana)and COO (Mr. Lomesh Dutta) and seriously missed my other 2 colleagues Mohit Goyal and Meetali who could not made it to the race due to personal reasons.



As a reward for completion I was given the above medal, a memento to remember my great achievement for rest of my life.

Marathon running is fun. Hopefully Delhi is just a start in my long tally of future Marathons.

Read more!

Sunday, August 30, 2009

Mac Expose on Linux

I hate a lot of things about Mac, but one thing I don't hate is it's expose feature. I got so impressed (addicted) to it at office that I wanted it badly on my Linux machine at home. And, my wish came true.

Mac's Expose equivalent is Linux Compiz's Scale Plugin. Its just awesome. Just activate it and set the shortcut key according to your choice and you are all set to go.




Read more!

Ubuntu Pocket Guide and Reference: Free Ebook


Keir Thomas, a very prominent writer of Linux books has written a great book on Ubuntu in form of Ubuntu Pocket Guide and Reference. More offer he is offering the book as free download legally. So Grab your copy now, and start exploring Ubuntu. Start living, open source way.

You can download it from here.



Read more!

Saturday, August 22, 2009

Linux Tech Tip Videos

If you a re a Linux enthusiast like I am then probably you will these Tech Tip Video's from Linux Journal very handy. Each video teaches you cool new things which you can try and there are tons of them.

From "File Manipulation to ARP to Editing Source Code" ... knowledge every techie should have in his toolbox.

You can view or download them from - Linux Journal Video's



Read more!

Wednesday, August 19, 2009

Ubuntu Installation Hangs at "Configuring Apt -- Scannning Mirrors"

While trying to install Ubuntu 9.04 (Jaunty Jackalope) my installation freezed at screen with title "Configuring Apt" and message "Scanning Mirrors".

Solution - Disconnect from any network (my case Ethernet) and restart the installation.

Tip - Always disconnect any network while installing any operating system in general.




Read more!

Sunday, August 16, 2009

Apple Blessing/Curse -- Keep Innovating

Apple products are great and way ahead of their of their competitors. But, they have a deadly weakness which I think they are going to pay for sooner or later. Apple is the most opaque company ever, even opaquer than Microsoft. At one time I thought it was something that was not possible, Microsoft after all was opaque enough beast. Apple's biggest threat is not Microsoft or Google but in my opinion is Open Source Community. OSC may be slow but is a unstoppable juggernaut which is never far behind the best, but unfortunately also never in front most of the time.

Apple has indeed set a bar way up the hill but it must not be complacent about it. They may have the best engineers in the world but until they keep on innovating forever they can't match the combined strength of rest of engineering might of the world put together.

In the end I believe Apple will sonly how the way like they did through touch in Iphone. But, no matter how much patent and copyright they file. Open source community will catch up with them, which will result in production of a far superior product at far lower price.



Read more!