What are some of the best roads/routes in India?

Answer by Pranav Kulkarni:

If you discard the tourist in you and embrace the life of a traveler, you tend to find beauty in the journey instead of the destination. Having traveled across 11 states in India, most of them on 2 wheels, I've come across some beautiful roads…

Listing some of my favorites:

1. Stuck in snowfall at 12300 feet, Manali – Leh highway

2. NH 212, passing through the Bandipur forest en route Ooty

3. When the colossal mountains make you feel insignificant, Manali – Leh highway

4. The blue sky and blue water providing a surreal experience

5. NH 21

6. NH 1D, The road disappearing into the horizon, en route Kargil

7. Mahabaleshwar, a popular tourist place in Maharashtra

8. One of the high altitude passes on the Manali – Leh highway

9. Manali – Leh highway

10. Typical Konkan roads

11. Find the river, find the road

12. Early morning on the road meandering through coffee plantations in South India

13. NH 222, as straight as it gets

14. The twisty descent from Rohtang top

15. A coastal road in Konkan

16. The deep woods of Dandeli forest, Karnataka

17. World's second highest pass, 17582 feet

18. Anjarle Beach viewpoint

19. Somewhere on NH 21

20. A random road in the Western Ghats (notice the fog, you can see the light of the vehicle at the end)

21. NH 1D, everybody loves curves

22. Paradise on Earth, Kashmir

23. When good or bad roads mean nothing, it's the view you enjoy

24. The scariest road I've encountered, Zozila pass

25. NH 4, for the ones who don't believe India has good roads

Note: all the pics have been clicked either by me or Rohit Mohite. No watermarks, no trademarks, you can use them as wallpapers if you like them. Hope you like them!

What are some of the best roads/routes in India?

Which is the most beautiful state in India?

Answer by Jubanashwa Mishra:

First I thought it's Kerala, when I spent a night in Alleppey boat house

But soon it changed to Tamilnadu, when I saw the greenish water of Rameswaram

Then Karnataka, when I saw the beautiful Mysore palace

Then Andhra Pradesh, when I look at the Tirupati temple

Telangana, When I did boating inside the Hussain Sagar Lake, Hyderabad

Then Odisha, when I had Mahaprasad at Puri Jagannath temple

Then Jharkhand, @ Hundru Fall

Then a bigger fall at Chitrakote, Chattisgarh

My quest for waterfall ends at Dhuandhar, Madhya Pradesh

West Bengal became my favorite when I enjoyed Durga Puja of Kolkata

Gradually I entered into the north east, fell in love with Sikkim

This is what I was looking for @ Tawang Monastery, Arunachal Pradesh

Fell in love with Nagaland once knowing about Horn Bill Festival

Then Manipur, once I learnt about world war II cemetery, Imphal

Then Mizoram when I saw the beautiful churches

Then Tripura when I travelled in a meter gauge train

Meghalaya, when I came across the village Mawlynnong

I enjoyed the fish through out Assam, Thanks to Brahmaputra river

Fell in love with peace when I reached Bodhgaya, Bihar

Uttar Pradesh became my favorite, After seeing Ganga Aarti in Varanasi

Soon it changed to Goa, Once I came across the the beautiful beaches

Then Maharashtra once reached the maximum city, Mumbai

Then Gujarat once looking at the mesmerizing Rann of Kutch

Rajasthan became my favorite when I looked at the beautiful palaces

Haryana I got to know the root of Mahabharata at Kurukshetra

Punjab when I saw glittering sarovar of Golden temple, Amritsar

Uttarakhand when I passed by the serpentine trail of Mussorrie

Himachal, When I reached top of the Triund Hill

Finally when I crossed miles to reach Leh Ladakh, Jammu & Kashmir: I already realized that the whole India is beautiful, not just any single state.

Which is the most beautiful state in India?

Only talk to your friends, don’t talk to strangers | Law of demeter

Wikipedia explains Law of demeter or principle of least knowledge in such a nice manner

  • Each unit should have only limited knowledge about other units: only units “closely” related to the current unit.
  • Each unit should only talk to its friends; don’t talk to strangers.
  • Only talk to your immediate friends.

http://en.wikipedia.org/wiki/Law_of_Demeter

MVC Antipatterns : Models Antipatterns

Here are some excepts from Rails Antipattern book that I have reading lately. Even though the examples are specific to rails, the fundamental principles applies to pretty much any MVC framework. In this post, I list out various Model Antipatterns & their potential solutions. I would be writing about other anti-patterns in next posts …

Antipattern # 1 : Voyeuristic Models

  • Solution: Follow the Law of Demeter

  • Solution: Push All find() Calls into Finders on the Model

  • Solution: Keep Finders on Their Own Model

AntiPattern # 2 : Fat Models

  • Solution: Delegate Responsibility to New Classes

  • Solution: Make Use of Modules

  • Solution: Reduce the Size of Large Transaction Blocks

AntiPattern # 3 : Spaghetti SQL

  • Solution: Use Your Active Record Associations and Finders Effectively

  • Solution: Learn and Love the Scope Method

  • Solution: Use a Full-Text Search Engine

Complexity is the biggest enemy of successful projects

Curiosity killed the cat & complexity killed the project !!

2008-03-17-curiosity-killed-the-catThe importance of simplicity in application development is paramount. Complexity is the number-one killer of projects today, and it comes into an application in many ways, including through excitement over new features, overly clever developers, and unfamiliarity with the Ruby on Rails framework.

Three virtues of a programmer : Laziness, Impatience & Hubris

Came across today again this beautiful quote (said in the title) by Larry Wall in the Camel Book: Camel book was one of the most lucid programming book that I thoroughly enjoyed at that time.

We will encourage you to develop the three great virtues of a programmer: laziness, impatience, and hubris.

The three virtues are explained as follows:

Laziness
The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful, and document what you wrote so you don’t have to answer so many questions about it. Hence, the first great virtue of a programmer. Also hence, this book. See alsoimpatience and hubris.
Impatience
The anger you feel when the computer is being lazy. This makes you write programs that don’t just react to your needs, but actually anticipate them. Or at least pretend to. Hence, the second great virtue of a programmer. See alsolaziness and hubris.
Hubris
Excessive pride, the sort of thing Zeus zaps you for. Also the quality that makes you write (and maintain) programs that other people won’t want to say bad things about. Hence, the third great virtue of a programmer. See also laziness and impatience.

 

NoMethodError (undefined method `valid_password?’ for #): Fatfreecrm

I got this error while setting up FatFreeCRM on heroku and got this error, when I tried testing sending password reminder email.

If testing the same using rails console, everything seems to be working fine.

heroku run rails console

me = User.first

me.awaits_approval?

false

me.vald_password? “valid_password”

true

 

It turns out to be a heroku specific issue, you need to set HEROKU to true

heroku config add HEROKU=true

and everything works like a charm

Hope, it helps someone.