502 Bad Gateway Nginx – Ubuntu


This is the second time this is happening to me so i am doing this post as documentation for myself and to help others as well.
I use webmin/usermin on ubuntu to create a new server(host) and the other sites start showing ‘502 Bad Gateway’.
I look at the config files and every thing looks okay. Folder/file permissions are as expected.
I check the server logs and voila! nginx is looking for a file: /var/run/php5-fpm.sock. For some reason, the file was not in /var/run. Continue reading


You want to finish our Data Allocation?


8.30 am monday morning, the HR director walks into our office space and addresses some issues. She says, ‘Any other issue you want to raise?’, ‘I thought to myself, what better time to raise up an issue that has so affected all of us’ – The internet at work.

For some time now, the company has been using Cyberoam to manage( or police) our internet usage. The system admin used his ‘super discretion’ and with the aid of Cyberoam’s default categorization to determine websites and applications that the staff should not have access to. Continue reading

Reflections at SW

It’s a little over 3 years at Socketworks. Looking back, it’s been an interesting journey indeed. The journey from a senior PHP developer to a lead PHP developer. An amazing journey really!

I will be posting some of the stuff i have worked on while at Socketworks. How we have solved some of the problems we encountered… even the ones we(my team) created 🙂

You know it’s different when you write codes for the machine and just for yourself from when you have to write for the machine and other humans. You must start looking at maintainability, collaboration and even taking version control seriously.

When several developers at various levels of expertise write code, you have to take Quality assurance even more seriously. And if you want to deploy with peace of mind, then Automated Deployment and maybe continuous integration are some of the things you want to explore to make your life easier while churning out higher quality software.

These are some of the things that we have had to deal with.

Watch this space for details.

Internal Software Quality

While this might look like stating the obvious, I still find that there are organisations especially in this part of the world that have not really imbibed these practices. From experience, I find that its because management has not really taken a serious look into the merits and demerits of internal software quality.

What is internal software quality and how does it differ from just plain Software quality? When it comes to software quality assurance, it is most commonly viewed in two aspects (There could be more).

  • External software quality
  • Internal software quality

This is derived from Steve McConnell’s division of software characteristics in his book Code Complete. Continue reading

Welcome to my World

welcome-to-my-world-davidWow! Its 2013 already! that’s like seven months since i created this blog! How time flies!. There is a quote with many variants but the same message:

Insanity: doing the same thing over and over again and expecting different results

-(credited to Einstein). Others have worded it slightly differently:

 The first law of Madness is to keep doing the same thing and expect a different result.

In the movie The Samaritan, it’s

If you keep on doing what you’ve always done ,you’ll keep on being what you’ve always been…

-(My colleagues status on gtalk since she saw the movie 🙂 )

The message is consistent:

You must do things differently to get different results!

For me that’s what comes to mind when i think of this year! Well this is not like the new year resolution kind of thing. Its about action – consistent action – That would create a habit.

For me 2013 marks a period of unparalleled self improvement and self development! If i had thought i was committed to self improvement, this year will be like no previous year in that regard. And this is part of why this blog exists: To share some of the things i learn this year and beyond thus putting myself in the way of internalizing those things and inspiring you my friends to action as well.

So check this space regularly for my musings on a very broad range of topics from productivity to Software Development; From patriotism to Spiritulality… This will represent my thoughts on most of the roles i play in life :). I know it might be a bit challenging catering to that broad range of audience but i’ll try!

Caution: a lot of stuff of here will be quite geeky 🙂 Nonetheless, we will still have generic stuff here!

Enjoy your day!