Skip to main content

Posts

Showing posts from 2012

Subversion for starters : Trunk, branch, tag how and when to use?

Lets ponder on some details about Subversion to begin with Subversion is a free/open source version control system (VCS). That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data or examine the history of how your data changed Subversion is different as compared to typical file server as   it remembers every change ever written to it —every change to every file, and even changes to the directory tree itself, such as the addition, deletion, and rearrangement of files and directories. Do you need it? If you need to archive old versions of files and directories, possibly resurrect them, or examine logs of how they've changed over time, then Subversion is exactly the right tool for you. If you need to collaborate with people on documents (usually over a network) and keep track of who made which changes, then Subversion is

Cohesion and coupling, what are they? And why is one good and the other bad?

Coupling and Cohesion are the two terms which very frequently occur together. Together they talk about the quality a module should have You might have got this advice n number of times that " cohesion is good and coupling is bad ", without actually going into the details as to what they mean and why one of them is bad and why the other one is good. Maybe because the one who is advising is not aware himself of the details and the one who is getting the advice is hesitant enough to ask, or may be they are not able to give good explanation. So in this post I am trying to give a good explanation on both, and hopefully good examples which you can co-relate with incidents and things in your daily life. As usual, lets start with checking what Wikipedia has to say on this On Coupling "In software engineering, coupling or dependency is the degree to which each program module relies on each one of the other modules." On Cohesion "Cohesion is a measur

MySQL - What should I use varchar, char, text or blob and when?

MySQL datatypes We all might have gone through the confusion of choosing among the different string related datatypes for data storage, and so have I, many a times. Thus here I have compiled all the info that I had, got and could gather into a single post so as to give a better understanding of things which need to be factored while much such critical decisions. As we all are aware that the following are the string data-types that are supported by MySQL CHAR   VARCHAR   BINARY   VARBINARY   BLOB   TEXT   ENUM   and SET .  Just for your reference I have put hyperlinks for the corresponding  mysql manual doc page. I have divided the post into 4 sets, each discussing about the two datatypes, and how to choose between them CHAR/VARCHAR BINARY/VARBINARY BLOB/TEXT ENUM/SET and in section with BLOB and TEXT we discuss about the things should be considered when deciding between all the the first 6 dataypes. We will start with discussing about their basic propeties

URL or URI ohh!! its too confusing

Since the days of my second semester in my engineering when I came to know about URI and URL, I always had this confusion in my mind which took ages to get cleared. Here is a small post which gives briefs about URI, URI and URN, and what are the differences between them. Lets check what Wikipedia has to say on all of this. Wikipedia on Uniform resource locator(URL) A uniform resource locator (URL) is a specific character string that constitutes a reference to an Internet resource . A URL is technically a type of uniform resource identifier (URI) but in many technical documents and verbal discussions URL is often used as a synonym for URI Wikipedia on Uniform resource identifier(URI)  A uniform resource identifier (URI) is a string of characters used to identify a name or a resource . Such identification enables interaction with representations of the resource over a network (typically the World Wide Web) using specific protocols. Wik

jQuery plugin for image zoom and rotate..together!!

Well check the following url http://code.google.com/p/jqueryrotatezoom/ Some working examples can be found on jsFiddle http://jsfiddle.net/sandeeprajoria/jGyBZ/3/ contains full fledged working examples http://jsfiddle.net/sandeeprajoria/jGyBZ/1/ contains the most basic implementation First of all, this is a re-implementation of a plugin named jqueryrotate  (URL - http://code.google.com/p/jqueryrotate/ ). The main idea behind this plugin is to provide smooth image zoom feature while rotating them in different angles and speed(or easing functions). So it would seem, like a picture is coming from nowhere, while rotating and zooming itself to its maximum or limited zoom percentage. Now how did this come together? Well it all started with tutsplus.com... Their lead trainer Mr. Jeffery Way gave a fabulous webcast titles 'jQuery in 30 days' . The webcast can still be found on their website tutsplus.com That was when I came to know about