Entrepreneurship ka side effects

Here is a light hearted look at what a journey as an entrepreneur brings to you !

1. Sleeplessness

Dreams are not what you have when you sleep, dreams are those that don’t let you sleep.” – Dr. Abdul Kalam

You would lay awake the night before meeting your first customer, day before product launch or because of one of the many excitements this journey brings. It is like when you are in love or you have spoken to your crush. And if you start getting a good nights sleep continuously – you should be worried – it is a lull before a storm!

2. Fatigue

You work really hard day in and day out, days at a stretch. And you would hit the wall. You cannot browse, go out, read a book or listen to music. Your brain will just refuse to co-operate. Solution is to just veg out – switch on the idiot box, make yourself comfortable and watch something that will not tax your brain. It will last an evening or a day max – see it through and you will be energised for another long run.

3. Ideas

Suddenly you notice that ideas flood your brain. Wherever you look around you get an idea. You read a news article, a blog post – and it gives you an idea or it opens a new path or teaches something new – so you can incorporate in your product, or the way you sell. It is great to get such ideas, but it is even more important to grab them and make them yours. Always keep a small notebook with you – and keep noting them down.

4. Respect

You will start appreciating other businesses who started from scratch – Apple, Microsoft, Tata, Infosys… list is endless.  You will start respecting their founders even more. You respect your teams and your own strength and shortcomings. When you meet another hard-working entrepreneur you identify with him.

5. Belief in Kismat / Luck

People might say entrepreneurs create their own luck. There is nothing called chance – it is all because of the dedication and hard work. However, each entrepreneur knows inwardly that there is something called luck. It visits them at the right time – whenever a bad news / failed deal happens – they know that luck is sure to visit them soon. And it does without fail to lift the spirits and keep them going.

The above is a list from my personal experience in running my startup – ApartmentAdda. What do you think are entrepreneurship’s side effects?

Debug PHP in IntelliJ IDEA

IntelliJ IDEA 9.0.1 has support for PHP. And the fine folks at JetBrains have given debug support which is awesome squared !

In just a few minutes you can get debug going on for your PHP applications.
Note : These instructions are for the ultimate edition of IDEA ( not the community edition which does not have php support ), and Ubuntu 10.04.
1. Install xdebug :
sudo apt-get install php5-xdebug
2. Add xdebug configuration at the end of php.ini
sudo vi /etc/php5/apache2/php.ini
Append these lines at the end
xdebug.remote_enable=On
xdebug.remote_host=”localhost”
xdebug.remote_port=9000
xdebug.remote_handler=”dbgp”
3. Restart apache
sudo /etc/init.d/apache2 restart
4. In IntelliJ here is how I have configured. It is quite simple actually.
Here is the Run configuration

Here is the PHP Setting. Point the server root to your folders.

5. Now put a break point in your code and click on the debug button. A new browser window will be launched, navigate to the page you are testing and voila – it hits the break point.
I am yet to figure out how to display the variables with the values on the bottom pane. For now doing a mouse over shows the values which is good enough for me.
Happy Debugging !