What made me smile?

Was having a not-so-interesting day until I stumbled upon this rant of Zed Shaw. That`s what made me smile. I even wrote him a fan mail 🙂

Then I continued reading his blog bits and I couldn`t stop smiling. Thanks Zed for making me smile. It is reminiscent to the kind of smile Ravi would evoke from me when he would go on word bashing spree at someone. It was FuN. Where are you dude? Miss you!

P.S: I neither agree nor disagree with all of it. His writing just brought a smile to my not-so-interesting day. I feel Rails solves a real world problem, which is the most important thing.

Clearing DNS cache in Mac OS X

When one visits a website (domain name) the resolved IP address of the website gets cached. Now, if you are the one who plays with the site's Name Servers then probably you would have faced the situation where the older IP address gets cached and so you are sent to the old website on subsequent attempts. Most of the times since the Name Servers take time to propagate its all the more confusing. It's happened to me twice and so here I post this note to help troubleshoot the issue.

Consider example.com is the domain you are troubleshooting.

So here is what you can do when you type example.com in the address bar of the browser and the old website shows:

First make sure that your name servers have been updated appropriately in your domain's control panel.

Clear the browser cache:

This is the simplest to clear. Hit 'Apple+R' to clear the cache in Safari. Try visiting the site again. Stop if it works fine.

Clear the system level cache:

$ lookupd -flushcache in OS X 10.4 and
$ dscacheutil -flushcache in OS 10.5.

Now, clear the browser cache and try again. Stop if it works fine and write me a comment below :).

Override ISP level chache: If its still not cleared off then it means that its been cached at the ISP's side. You can take a look at the output of the 'dig' command.

$ dig example.com

Take note of the various sections therein. The IP Address (ANSWER SECTION) and name servers (AUTHORITY SECTION) should be listed correctly. If not, which means the lookup has been cached at the ISP's side name servers mentioned in /etc/resolv.conf.

To override this you would need to edit the /etc/hosts file directly.

Append an entry ' ' to the file.

Now, reload the Netinfo db.

$ sudo niload -v -m hosts . < /etc/hosts

Clear the above two caches and try again. Stop if it works and write me a big good thank you note. I saved you a lot of time ;)

If you still haven't got it to work then you can try one last thing. Send a HUP to the lookupd process.


$ ps auxw | grep lookupd
root 325 0.0 0.1 29204 1444 ?? Ss 5:56PM 0:00.25 /usr/sbin/lookupd
$ sudo kill -HUP 325

Check again while you keep your fingers crossed. If it works perfect, I have saved your day ;). Write me a Thank you email :).

The last thing did the trick for me. Once before 'Clearing the system level cache' was good enough.

Hope this helps someone to save some productive hours.

I am off on a road trip !

Remember this post few months back? >> 'Ready for an adventure?'

Time has come and I am off...

Here is the rough plan:

Alibaug to Goa - Coastal Biking Expidition

Maharashtra is blessed with 720 km of coast line. The expiditon aims to cover 500 km of on bike visiting all the sea forts on the way.

Schedule :
Day 1 : Saturday Dec 23, 2007
Early morning departure from Pune/Mumbai. Aim to reach Alibaug by 9 am. Pune / Mumbai - Alibaug - Korlai - Revdanda - Murud - Janjira

Day 2 : Sunday Dec 24, 2007
Kansa, Diveagar, Srivardhan, Harihareshwar, Bankot

Day 3 : Monday Dec 25, 2007
Harne, Kanakdurg, Fategad, Anjarle, Suvarnadurg, Anjenvel, Gopalgad

Day 4 : Tuesday Dec 26, 2007
Guhagar, Velneshwar, Vijaygad, Jaigad, Ganpatipule, Ratnadurg, Pavas

Day 5 : Wednesday Dec 26, 2007
Purnagad, Ambolgad, Yashwantgad, Vijaydurg

Day 6 : Thursday Dec 28, 2007
Devgad, Bhagwantgad, Bharatgad, Sarjekot, Sindhudurg

Day 7 : Friday Dec 29, 2007
Tarkarli, Nivti, Vengurla, Mochemad, Terekhol, Goa, Fort Agauda

Day 8/9 : Sunday Dec 30, 2007 - Monday Dec 31, 2007
Chilling in Goa!!!

Day 10 Tuesday Jan 1, 2008
Back to Mumbai.

Catch you once I am back.

Happy New Year !!!

Update: I am back. Amit has just posted on his blog about the trip and some pictures to go with it here. It's a must read 😉

Enhance GMail – Use keyboard shortcuts

I have made a switch from Yahoo to Gmail for my primary mail address in the last few months and its been a pleasant experience.

Have been using the keyboard shortcuts of Gmail now and I must say I am addicted to it. Highly recommended for anyone who loves to use the terminal or like editors like emacs and vi. I feel the shortcuts have more of a vi feel to it.

I would recommend Gmail if:

  • Volume of mail you have to respond to is huge. On Gmail alone I have had 226 mails in my sent folder in the last two months. Most of them were related to CodeCampMumbai
  • You want to receive the registration confirmation mails quickly. I have noticed that its faster on Gmail than on Yahoo.
  • Discover Archiving. Yeah, archiving is beautiful.
  • You are looking for a GTD app.(link)
  • Oops, I just figured out that I can go on and on...

Which reminds me I have to update my Contact page.

Is my Internet connection down?

Below is a snippet of conversation between Me and Myself:

Me: Is the Internet connection down?

Myself: One second. Let me Google. Presses '⌘+Option+F', types a search query (usually 'Akshay Surve') and hits 'Return'

Myself: Oops. Yes it is!

(3 seconds)

Me: The Internet modem seems alright. Must be a service provider issue.

Myself: May be.

Myself, checks up some random link or bookmark (eg:yahoo.com). If it loads in the first attempt, presses '⌘+R' multiple times to make sure that it's not loaded from the cache. He tries searching on Google once again but still the Google search results pages doesn't load.

Myself: Hey, Yahoo.com did load.

Me:(Concludes) Yahoo.com site is working, Internet is down! :p

Do you identify with Me and Myself?

Jaagte raho ;)

I am here at the CodeCampMumbai and we are hitting our keyboards real hard at this time in the night(2:00am). It's 8 of us here still remaining and the enthusiasm is contagious. Me and Pavan are sitting in the balcony with our laptops while Deepak, Kurund, Ankur, Fenil, Latesh and Varun are sitting inside. It's chilly out here and you have the balmy breeze making us feel comfortable all the time. We can hear birds chirping even at this time in the night.

It feels sublime and I feel I should enjoy the moment and the code and not blog about it now 😉

'Jaagte raho' is hindi for 'Keep Awake'

Paintathon = Painting Marathon

Oh! did I tell you all about the Paintathon I had taken part in? No. « wondering how could I forget of blogging about it » Shame me 😐

Remember I was in Ahmedabad in August? There I spent most of my time at Prayas' place. Some of his paintings adorned his walls and there were others lying in his studio. We also took time out to visit School of Architecture and hang around the campus for lunch. Laxmikant had also come down for the post-production of his film. So art was the flavour of the month. I have always been curious about various forms of art because of the obvious influence of my bro. Painting on a canvas was something completely new for me and I was game for it.

A couple of days before I was supposed to leave for Mumbai, I asked Prayas if we could paint. Felt like he was all ready for it and he was just waiting for me to prompt. He hadn't had a brush with painting for a long time now. He said lets take part in a Paintathon. "Wow Paintathon sounds cool," I exclaimed. I was thinking, Marathon... Hackathon and now Paintathon. Next I remember we went out to get a some canvases and extra colors and brushes.

For the Paintathon, we reserved the morning of the day I was supposed to leave for Mumbai. You can read up on how the events unfolded at Manjushree's blog.

Here are some of the pics:

Prayas in free flow Canvas in progress Canvas in progress Prayas paints with his left hand

Here are the finished paintings:

Prayas:
Canvas complete - Prayas

Manjushree:
Window art at the Paintathon

Akshay (my):
Canvas complete - Akshay (me)

For inquiries to buy and order use the contact form. Offer till stocks last. 😉

Look at the complete album here:

Updated the links to the pictures