An Evening with MongoDB

Posted by on Oct 6, 2013 in MongoDB | 0 comments

Few months back, I was planning for my major project at college. I was pretty confused since I didn’t wanted to work with PHP and MySQL that was the time when Abhishek suggested about MongoDB. Initially I faced a little bit difficulty due to the transition from schema to schema-less database. The best part that kept to hooked to it was the simplicity since it allows to keep the focus on the application and the database automatically adapts to the changes. Now after working on MongoDB for quite a long time and tackling various issues I thought of writing this article. It is divided into four phases consisting of Installation and Configuration, Working with MongoDB Shell, Working with PHP and MongoDB, and finally Working with node.js and MongoDB. This article is dedicated to the Facebook Group of MongoDB Developers, check link at the end of the article.

Read More

Disaster Management for a Web Developer

Posted by on Jul 1, 2013 in VPS | 0 comments

In today’s world, everyone owns a blog but have we ever wondered that what are we going to do in case of a disaster leading to loss of all the content? Just imagine a scenario where a popular blog crashes and all data is lost. We are living in a world where things are expected to happen instantly and at every point of time there are 1000+ alternatives for a given item. So to beat this situation we must be well prepared else we would end up messing up everything.

Recently while working on a newspaper’s website, I was wondering that what if all the content is lost since how much can we trust the cloud; is a big question? I ended up writing a script which would dump the MySQL database and would create a final archive with the content and database dump. Finally this archive is transferred to another server.

Now this script also has many limitations and issues but at least solves the purpose. The main focus is to handle some uncertain situations and secondly implementing a backup script on a server isn’t a rocket science but at least helps us prepare to handle a disaster.

Finally I would like to request everyone to suggest more functions to the backup script as well as try installing it on their servers. In today’s world to actually create a difference one only needs to follow some basic tricks of trade which does the magic. Happy Coding 🙂

Read More