CodeIgniter’s log system issue

First of all I have to admit that I love this framework. I will write more about this fantastic framework later.

But one issue I faced this morning and I was pulling my hair was its logging system.

I was editing the module which has few Ajax calls, some part was not working properly and it was absolutely because of the SQL. We have the main SQL commands being outputed in the CI log system as well. So I SSHed to server and open the log file in vi , searched for the desired point and was trying to figure out what’s the SQL problem.

At this point I got a message from a colleague asking whether our server is down or what ?

That was so confusing, some parts of the application were working and some parts were not. All the sections which were working like a Swiss watch few seconds ago. So what was wrong!
As usual everything was working properly on localhost.
I didn’t even give it a small chance that having the log file open for reading [I’m stressing this out : JUST FOR READING] could be the problem. CI couldn’t proceed with logging in the sections where we had used it. I just quit the vi editor and Voila. Coming back to life.

This is not a proper approach for log system, if it can not write to the log file it shouldn’t prevent the whole system from working. Or may be it should ! Depends on how logging is important for your system.

How to Work ON Your Business, Not IN it

We get so caught up in the daily life of running a business, it’s easy to miss the forest for the trees.

Not that you have a choice! You’re fighting fires, handling a pissed-off customer, rending your face over an emergency bug-fix, the website just went down, and the accountant is coming tomorrow and the books are in shambles.

That’s the quote from this interesting article about managing your tasks and priorities as a start-up or freelancer.

And God knows how delegation is important. But I think all of us have the same feeling:

no one else can do them as well or as quickly

Yahoo! Mail + FireFox + Mac ; Home , End shortcuts issue

If you are a Firefox/Mac/Yahoo lover, you might have come across this annoying issue in Yahoo! Mail in Firefox [Mac version] that when you want to go to the home or end of a line with + Left  Arrow [command – left] or + Right Arrow [command – right] , it acts like a browser’s Back or Forward button and messes up the email you are composing or sometimes even ruins the whole thing.

You can see that everybody blames Yahoo! about not following the standard rules in their editor over the net. But this can be fixed through a very very simple FireFox add-on.
is the handy tool for configuring your FireFox keyboard shortcuts. After installing if [and restarting the firefox] simply go to tools > KeyConfig and there search for “goBackKb” and “goForwardKb” and disable the ones allocated to + Left Arrow and + right Arrow.

From then on, on the newly opened windows this will be fixed and you will no longer have the same problem with those lovely combination [FireFox , Yahoo! , Mac]