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:
- 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.
- 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.
- 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.
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
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.
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.
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.
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!
I have started using WordPress for Android. Hopefully it would help me post more to my blog.
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.
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 : Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express [14e4:1600] (rev 02)
0c:00.0 Network controller : Broadcom Corporation BCM4311 802.11a/b/g [14e4:4312] (rev 01)
Remove the incorrect driver & install correct one:
$ sudo apt-get install firmware-b43-installer
$ sudo apt-get remove bcmwl-kernel-source