Entrepreneur Geek

Nirav Mehta on life, technology and future

Archive for April, 2009

Twitter Weekly Updates for 2009-04-26

without comments

Written by Nirav

April 26th, 2009 at 5:38 pm

Posted in Updates

Tagged with

Collaborating in web application using SVN

with 2 comments

What would you do if you wanted to manage document versions in a web application? You wanted different users to edit a document simultaneously and then for everyone to get the latest copy? Something like Google Docs?

This collaboration need is very similar to how developers use source code control systems. Here’s a typical flow for programmers:

  • Set up a repository for code
  • Add a file
  • Once enough changes are made, commit it to the repository
  • Someone else checks out the same file
  • Two people simultaneously work on the same file
  • They can update their copies to get committed changes from other users
  • Committing their copy to the server will make it the latest copy
  • Occasionally, there will be conflicts if both programmers edit the same section of code. In that case, they manually resolve it and commit the correct copy.

Collaborating on documents (e.g. Google Docs) is very similar. I don’t know what Google Docs uses for its backend?.

But we are planning to use SVN for a similar need!

  • Make a repository of documents
  • User A creates a new document and save it – gets committed
  • User B open it (checkout), changes it and saves it (update + commit)
  • Since we update before commit, changes that other users made will be merged before commit
  • In case of conflict, keep local version, discard server version. (this is not ideal, but helps automate things)

How does it sound?

Written by Nirav

April 23rd, 2009 at 4:46 pm

Posted in Technology

Tagged with , ,

Choosing an Open Source CMS – Book – Now Available

without comments

Choosing an Open Source CMS

Choosing an Open Source CMS

My latest book – Choosing an Open Source CMS: Beginner’s Guide – is now available from PactPub, Amazon and others.

I have also created a special website for the book – www.cmsbook.info. The website is dedicated to readers of the book. I will be writing about choosing a CMS, tips, book excerpts and useful resources there.

Did you read the book? If so, post a comment! I would love to hear your feedback!

Written by Nirav

April 22nd, 2009 at 2:23 pm

Debugging PHP for the first time in 10 years, and loving it!

with one comment

I have been writing PHP code for 10 years now and have used a variety of ways to debug my code – except the actual runtime debugging! I have used echo statements and log files to debug and solve problems. I knew there is XDebug and Zend Debugger, but never tried them.

debugging-phpToday, I downloaded, setup and used Zend Debugger for the first time. And I loved it! It was awesome to see variable watch, breakpoints and the like. Just loved it!

Why did I use the debugger? I’ve been using Flex Builder myself for last one year heavily and think the debugger is indispensable. I have done some .NET code earlier and love debugger there too. For PHP, it was more like “I don’t need a debugger!” so far.

I dropped that today and embraced a debugger. And I am loving it so far!

Do you use a PHP Debugger?

Written by Nirav

April 21st, 2009 at 7:13 pm

Posted in Flex & Flash, PHP

Tagged with ,

Twitter Weekly Updates for 2009-04-19

without comments

Written by Nirav

April 19th, 2009 at 5:38 pm

Posted in Updates

Tagged with