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.

 

Categories: Blogosphere | Leave a comment

SystemStackError (stack level too deep): FatfreeCRM

I was trying to setup Fat Free CRM on heroku. Upon pushing the code to heroku, I got this weird error in Heroku logs

2014-01-04T06:07:08.768464+00:00 app[web.1]: SystemStackError (stack level too deep):
2014-01-04T06:07:08.768464+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:409

The error is quiet confusing & doesn’t tell you the code file where it is coming from. Upon doing a search for the error also doesn’t point out any useful information.

It turns out that the cause is a missing step in the install process.

You need to run the setup & create admin account by giving this command

heroku run rake ffcrm:setup

and it fixes the issue.

Hope, it helps someone.

Categories: Blogosphere | Leave a comment

Nice Python 1 liners

python -m this

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea — let’s do more of those!

====

From http://www.curiousvenn.com/?p=353

Categories: Blogosphere | Tags: , , , | 6 Comments

25 Things I’ve Learned About Life

Post by Derrick Fung:

25 Things I've Learned About Life

View Post on Quora

Categories: Blogosphere | Leave a comment

Greatest conspiracy theories about India

Answer by Utkarshraj Atmaram to What are the famous / not so famous conspiracy theories about India? http://www.quora.com/Conspiracy-Theories/What-are-the-famous-not-so-famous-conspiracy-theories-about-India/answer/Utkarshraj-Atmaram?srid=dI3&share=1

Categories: Blogosphere | Leave a comment

WordPress for Android

I have started using WordPress for Android. Hopefully it would help me post more to my blog.

Categories: Blogosphere, mobile, Web 2.0 | Tags: , | 1 Comment

The dark craft of Engineering Managemet – Laura Thomson

I came across this wonderful post by Writer & veteren PHP developer Laura Thomson titled The dark craft of Engineering Management. Completely agree with her. Here are some excerpts that I liked in particular:

“Management is the craft of enabling people to get things done.”

Engineers, in general, know their jobs, to a greater or lesser extent.  My job, as an engineering manager, is to make their jobs easier.

Autonomy is the key to scaling yourself as an engineering manager.  As an engineer, I hate nothing more than being micromanaged.  As an engineering manager, my job is to communicate the goals and where we want to get to, and work with you to determine how we’re going to get there.  Then I’m going to leave you the hell alone to get stuff done.

Don’t become an engineering manager because you want power – that’s the worst possible reason.  A manager is a servant to their team.  Become a manager if you want to serve.

 

Categories: Geeks, Tech, Startups, opensource, Technology and Software, Web Culture | Tags: , , , , | Leave a comment

Why meetings and other interruptions at work are toxic

Categories: Blogosphere | Leave a comment

[Solved] Ubuntu 11.10 wireless not working BCM4311 dell

My dell laptop with a Broadcom BCM4311 wireless card refused to connect to wi-fi.  Ubuntu 11.10 prompts to install the drivers but installs the incorrect drivers. Instructions elsewhere on the web also mentioned to install the driver but didn’t mention the exact driver. I ended up spending several hours troubleshooting the wifi but finally these instructions solved the issue. Hope they work for you as well.

$ lspci -vvnn | grep 14e4
09:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express [14e4:1600] (rev 02)
0c:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11a/b/g [14e4:4312] (rev 01)

Remove the incorrect driver & install correct one:

$ sudo apt-get update
$ sudo apt-get install firmware-b43-installer
$ sudo apt-get remove bcmwl-kernel-source
$ sudo reboot
Categories: Blogosphere | Tags: , , , , , , | 7 Comments

Weekend getaways to visit over the weekend in Delhi, India

There are several places  to visit over the weekend or for a day trip from Delhi. Here is a list primarily for myself and friends of such places. These include mostly places that I have visited myself.

Please note that several of these places would be done better, if you include an extra day i.e friday or monday or do it over a long weekend of 4-5 days as traffic and road conditions make it difficult to cover much distance for a reasonable trip in India unlike US or other western countries.

Weekend Trips

Common ones, first choice, if you haven’t seen them before:

Itinerary I:

* Agra – Famous for Tajmahal & Fatehpur Sikri (which is about 25 km from Agra). Agra is appx 200 km from Delhi & it takes about 3.5 to 4 hours on average each side.

* Mathura & Vrindavan – It is en-route to Agra from Delhi – Appx 150 km from Delhi. It is famous for temples & ashrams & birth place of Lord Krishna. A good place to visit, if you into this but can skip, if you are not too fond of crowded places. It can get very crowded especially on weekends.

You can do both Agra & Mathura in one day, if you leave early or you can spread it over 2 days.

Itinerary 2:

* Jaipur – Appx 200 km from Delhi in Rajasthan, famous for its palaces, handicrafts, Rajasthani food & culture.

* Ajmer Sharif – Appx 50 km from Jaipur, Holy shrine of Khwaja Ajmer sharif attracts a lot of visitors. It is one of most sacred shrines in India.

* Pushkar - Appx 20 Km from Ajmer sharif, famous for its Bramha temple, food & culture that attracts tourists from all over the world. It is probably one of the most visited (among lesser known places) by foreign tourists.

Jaipur, Ajmer Sharif & Pushkar can be done in appx 3-4 days comfortably. If you want to cover other places in Rajasthan  (which are certainly worth visiting) such as Udaipur, Jodhpur, Jaisalmer etc you need several additional days.

Mountains:

If you love mountains or are planning to travel in summers, here are the destinations up north. Again, first the most popular but a bit crowded ones:

Shimla: Appx 250 km from Delhi in Himachal Pradesh – Good Road, you can reach in appx 7 hours. It used to summer capital of India during British Rule. It still is a very popular choice to beat heat of people from Delhi & nearby areas. Shimla has several places nearby for local sightseeing. You can do Shimla in 2 days, but a 3 day weekend would be better.

Mussorie: Appx 250 Km from Delhi in Utrakhand, a nice hill station has good hotels & sight seeing. Can get crowded during summers so try to do hotel booking in advance. It would take appx 3 days to cover Mussourie & nearby places.

Nainital: Appx 300 Km from Delhi in Utrakhand, a nice hill station surrounding a lake with many nearby local sightseeing places. You need appx 3-4 days for Nainital.

Landsdown: Appx 200 Km from Delhi in Utrakhand, a quiet militray cantonment can be done. Make sure you don’t reach there after 6pm as most of the market closes by then. Leave Delhi early morning so that you can reach Landsdown by noon.

Kasauli – Kasauli is also a miltiray cantonment hill station in Himachal Pradesh, 50 km before shimla. You can leave friday after noon. A quiet place with nice weather.

Chail – 40 Km from Kasauli on route to Shimla is also a good hill station in Himachal pradesh. There are about a dozen hotels to choose from. Can be done in 2-3 days & can be combined with Kasuali & shimla if you have additional days.

Parwanoo – Timber trail resort in Parwanoo is a recent destination that has become favorite among weekend travelers. The resort is great with awesome views. You reach the resort via a Gandola. Advance booking of the resort is highly recommended.

Other destinations that one can cover over the weekend or in 3-4-5 days are Chandigarh, Amritsar in Punjab. Dalhousie, Kulu, Manali, Dharamshala, Mandi in Himachal Pradesh.

Rishikesh & Kudiala: Rishikesh (Shivpuri) & Kudiala have surfaced as very popular destination for river rafting among adventure seeking travelers. Shivpuri is appx 240 km from Delhi. This itenerary can comfortably done in a regular weekend. If you leave on friday afternoon, you can reach Rishikesh late night, can do rafting for 2 days i.e sat / sunday & come back by sunday evening. There are dozens of tour organizers for river rafting and camping for Shivpuri & Kudiala. They charge anywhere between INT 2000 – 4000 per person for the whole weekend including camping in tents, rafting & meals. You can also contact Garwal Mandal Vikas Nigam (GMVN), govt of Utrakhand for booking of the package.

There are many other exotic places if you have a few more days i.e 5-7 days that I would cover in one of the other posts. Feel free to ask questions or clarifications via comments.

 

Categories: India, Travel | Tags: , , , , , , , , , , , , , , , , | 9 Comments

Blog at WordPress.com. The Adventure Journal Theme.

Follow

Get every new post delivered to your Inbox.

Join 445 other followers

%d bloggers like this: