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.

 

Categories: Blogosphere | Leave a comment

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

Create a free website or blog at WordPress.com. The Adventure Journal Theme.

Follow

Get every new post delivered to your Inbox.

Join 472 other followers

%d bloggers like this: