My contemplations and diurnal novelties are publicized here

Archive for December, 2012

Causes of delays in IT projects

  1. Expansion of functionality
    The expansion of functionality is a phenomenon in which new functionalities continue to be conceived and requested as the project proceeds. The software can never be completed in this way.
  2. Gold plating
    Gold plating is a phenomenon in which programmers and designers try to make many details of the software or design too elaborate. Much time is spent improving details, even though the improvements were not requested by the customer or client. The details often add little to the desired result.
  3. Neglecting quality control
    Time pressure can sometimes cause programmers or project teams to be tempted to skip testing. This frequently causes more delays than it prevents. The time that elapses before an error is discovered in the software is associated with an exponential increase in the time that is needed to repair it.
  4. Overly optimistic schedules
    Overly optimistic schedules place considerable pressure on the project team. The team will initially attempt to reach the (unrealistic) deadlines. These attempts lead to sloppy work and more errors, which cause further delays.
    In this regard, be particularly wary of schedules that are imposed from above. The desire to complete a project (more) quickly sometimes arises for primarily strategic reasons; if it is not feasible, however, it should not be attempted. The project will not proceed more quickly and the product will ultimately suffer.
  5. Working on too many projects at the same time
    Dividing work across many different projects (or other tasks) causes waiting times that lead to many delays in projects.
  6. Poor design
    The absence (or poor realization) of designs leads to delays, as it requires many revisions at later stages.
  7. The ‘one-solution-fits-all’ syndrome
    Using the right software for a project is important. Some software platforms are more suited to particular applications than others are. Thinking that the use of particular software will greatly improve productivity, however, is also a trap.
  8. Research-oriented projects
    Projects in which software must be made and research must be conducted are difficult to manage. Research is accompanied by high levels of uncertainty. When or if progress will be achieved in research is unclear. When software development is dependent upon the results of research, the former frequently comes to a standstill.
  9. Mediocre personnel
    Insufficiently qualified personnel can cause project delays. Technically substantive knowledge of the subject of the project plays a role, as do knowledge and skills in working together to play the game of the project.
  10. Customers fail to fulfill agreements
    Customers are not always aware that they are expected to make a considerable contribution to the realization of a project. When customers do not react in a timely manner to areas in which they must be involved, projects can come to a standstill. Worse yet, the team may proceed further without consulting the customer, which can lead to later conflicts.
  11. Tension between customers and developers
    The tension that can arise between customers and developers (e.g. because the project is not proceeding quickly enough) can cause additional delays, as it disturbs the necessary base of trust and the working atmosphere.


1. 360° panoramic view plugin for jQuery

A panorama is a wide-angle view made from a series of images combined together using special software. It offers a very realistic experience, giving the sensation that the user is right there on the location.


2. jQuery 360* Panorama

Is a small (4kb) jQuery plugin for displaying and manipulating 360 degree panoramic images on your website. It is easy to customize it to fit in your webpage, you just need panoramic image, a DIV, little bit of CSS, and spice it with a little bit of JavaScript.


3. jQuery spherical panorama viewer

Based on the last work of Helmut Dersh about Moving Panoramas, this full JavaScript viewer doesn’t require any browser plugin such as quicktime or java.

Source + Demo

4. jQuery virtual tour

This is an extension to the simple panorama viewer that allows you to play a little bit more with jQuery by adding interactivity to transform some panoramic views into a virtual tour.


5. Panorer

jQuery plugin tested and works in Firefox 3.6, Opera 10.63, Chrome 8.0.552.215 and IE 8.0.6001.18702 — On Win XP and 7.

Source + Demo

6. PanoScroll

jQuery plugin that will scroll the background of a div for you. Update: PanoScroll Link is dead so replaced it with another.


7. jQuery version of PhotoNav Showcase

This page shows the functionality of the PhotoNav script now in jQuery.

Source + Demo

8. jQuery Image Cube

A jQuery plugin that sets a division to rotate between images (or other things) as if they were on the faces of a cube.

Source + Demo

9. jQuery panorama plugin

Is used to create 360° panoramas on the current page through the power and flexibility of jQuery’s selector.

Source + Demo

10. jQuery simple panorama viewer

This is a simple and clean panorama viewer.


11. Reel 1.1.3

It is a jQuery plugin which takes an image tag and makes it a live “projection” of pre-built animation frames sequence. Its aim is to provide a 360° view of something or someplace. Great alternative to widely used Flash and Java techniques.


12. Multiple 360 images

Adds multiple 360 images on one page. Creates unlimited instances of the 360 JavaScript viewers.


13. jQuery threesixty

Is a really small plug-in that enable you do build flash-like “panorama” or 360 degree view of an object in a non-obtrusive way.


14. picture-360-rotation

360-degree rotating display objects in pictures. Support photo rotating objects by hand, the synthesis of 360-degree animations. Interior hand-rotating camera support, the synthesis of 360-degree look around effect through the IE6, IE7, IE8, Chorme, Firefox, Opera, Safari test.


15. jQuery Solar System Rotator

The latest demonstration of what is possible with JavaScript comes from young web programmer and enterprenuer Will Jessup. Using the JQuery JavaScript library, he has put together an impressively compact (in terms of bandwidth) graphical simulation of the solar system.


16. 360 Spin Rotate & Zoom

It is possible to display a series of images as VR Objects 360° with 3D Spin & Zoom.


17. j360

Is a jQuery plugin designed to display 360 view of product using a set of images.


18. Spritespin

Is a jQuery plugin that enables sprite animation in your website. The aim of this plugin is to provide a 360 degree view of some kind of product.


19. Dopeless Rotate

Once more. Dopeless Rotate is Jquery plugin for 360 degree product image rotation and has a nice zoom effect built into it.

AUTHOR: Sam Deering. Find out more about jQuery4u author on Google Plus.



Web Service Types :SOAP/XML-RPC/Restful

What is web services:

Before inventing of web services, whenever we need to get data from particular website, first we visits a website and with help of HTTP request is send to server from web browsers and server responses display to the visitor. Now days this scenario has been changed. You don’t need to visit the particular website to use their service and functionality if they are providing web services. Web services are set of platform independent functions/APIs which can be used from remote server over the Internet. In web services there are two parties are involved one is provider (Server) and other is consumer(Client).

There are following terminology used for web services.



Soap is wonderful technology that can help you in developing great applications, Its formerly known as Simple Object Access Protocol (until the acronym was dropped in version 1.2). SOAP is an XML-based web service protocol. In other word SOAP is a simple XML-based protocol to provide functionality to applications exchange information over HTTP.SOAP are using SOAP-Envelope to transfer information’s. It has typical architecture to create web services.
In PHP 5, there is built-in extension for the providing and consuming web services. But there are many library also available to create soap based web services in PHP.

The SOAP extension implements a large subset of SOAP 1.1, SOAP
1.2 and WSDL 1.1 specifications.


Pear packages:


XML RPC is another useful technique of providing and consuming web services. It is using HTTP for transport and XML for encoding decoding the remote procedure call along with its parameter. You can visit the official website to know more about XML-RPC.XML-RPC has simple designed architecture and allowing allowing complex data structures to be transmitted, processed and returned.
There are many functions which is responsible to set request and get response but mainly there two functions xmlrpc_encode_request() and xmlrpc_decode_request()used to encode and decode XML-RPC request and response.


• Support for creating both xmlrpc clients and servers
• Fully automated or fully manual, fine-grained encoding and decoding from php values to xmlrpc
• Support for UTF8, Latin-1 and ASCII character encodings
• Support for http compression of both requests and responses, cookies, proxies, basic auth and https, ntlm auth and keepalives with the php cURL extension
• Optional validation of parameter types of incoming xmlrpc request
• Support for system.listMethods, system.methodHelp, system.multicall and system.getCapabilities methods
• Support for the and extensions to xmlrpc
• Possibility to register php function or class methods as webservices, extracting value-added information from phpdoc comments
• A web based visual debugger is included with the library


Pear packages:


Its easiest technology to develop web services. Its stand for Representational State Transfer (REST). Nowadays, it’s very becoming popular in the arena of web services. There is no need to use XML data interchange format for request and response.
The REST web services can be return XML, JSON or even in HTML format response. PHP already has many functions to handle these type response or request like DOM functions, SimpleXML functions and Json encode/decode functions.

REST architecture is basically focused on two things:
1- Resources : Its application functionality which is represented by a unique URL.
2- Interface : its HTTP methods works as an interface to access the resources.

Programmer Competency Matrix

Printer friendly version

Note that the knowledge for each level is cumulative; being at level n implies

that you also know everything from the levels lower than n.

Computer Science
2n (Level 0) n2 (Level 1) n (Level 2) log(n) (Level 3)
data structures Doesn’t know the difference between Array and LinkedList Able to explain and use Arrays, LinkedLists, Dictionaries etc in practical programming tasks Knows space and time tradeoffs of the basic data structures, Arrays vs LinkedLists, Able to explain how hashtables can be implemented and can handle collisions, Priority queues and ways to implement them etc. Knowledge of advanced data structures like B-trees, binomial and fibonacci heaps, AVL/Red Black trees, Splay Trees, Skip Lists, tries etc.
algorithms Unable to find the average of numbers in an array (It’s hard to believe but I’ve interviewed such candidates) Basic sorting, searching and data structure traversal and retrieval algorithms Tree, Graph, simple greedy and divide and conquer algorithms, is able to understand the relevance of the levels of this matrix. Able to recognize and code dynamic programming solutions, good knowledge of graph algorithms, good knowledge of numerical computation algorithms, able to identify NP problems etc.
systems programming Doesn’t know what a compiler, linker or interpreter is Basic understanding of compilers, linker and interpreters. Understands what assembly code is and how things work at the hardware level. Some knowledge of virtual memory and paging. Understands kernel mode vs. user mode, multi-threading, synchronization primitives and how they’re implemented, able to read assembly code. Understands how networks work, understanding of network protocols and socket level programming. Understands the entire programming stack, hardware (CPU + Memory + Cache + Interrupts + microcode), binary code, assembly, static and dynamic linking, compilation, interpretation, JIT compilation, garbage collection, heap, stack, memory addressing…
Software Engineering
2n (Level 0) n(Level 1) n (Level 2) log(n) (Level 3)
source code version control Folder backups by date VSS and beginning CVS/SVN user Proficient in using CVS and SVN features. Knows how to branch and merge, use patches setup repository properties etc. Knowledge of distributed VCS systems. Has tried out Bzr/Mercurial/Darcs/Git
build automation Only knows how to build from IDE Knows how to build the system from the command line Can setup a script to build the basic system Can setup a script to build the system and also documentation, installers, generate release notes and tag the code in source control
automated testing Thinks that all testing is the job of the tester Has written automated unit tests and comes up with good unit test cases for the code that is being written Has written code in TDD manner Understands and is able to setup automated functional, load/performance and UI tests
2n (Level 0) n(Level 1) n (Level 2) log(n) (Level 3)
problem decomposition Only straight line code with copy paste for reuse Able to break up problem into multiple functions Able to come up with reusable functions/objects that solve the overall problem Use of appropriate data structures and algorithms and comes up with generic/object-oriented code that encapsulate aspects of the problem that are subject to change.
systems decomposition Not able to think above the level of a single file/class Able to break up problem space and design solution as long as it is within the same platform/technology Able to design systems that span multiple technologies/platforms. Able to visualize and design complex systems with multiple product lines and integrations with external systems. Also should be able to design operations support systems like monitoring, reporting, fail overs etc.
communication Cannot express thoughts/ideas to peers. Poor spelling and grammar. Peers can understand what is being said. Good spelling and grammar. Is able to effectively communicate with peers Able to understand and communicate thoughts/design/ideas/specs in a unambiguous manner and adjusts communication as per the context
code organization within a file no evidence of organization within a file Methods are grouped logically or by accessibility Code is grouped into regions and well commented with references to other source files File has license header, summary, well commented, consistent white space usage. The file should look beautiful.
2(Level 0) n(Level 1) n (Level 2) log(n) (Level 3)
code organization across files No thought given to organizing code across files Related files are grouped into a folder Each physical file has a unique purpose, for e.g. one class definition, one feature implementation etc. Code organization at a physical level closely matches design and looking at file names and folder distribution provides insights into design
source tree organization Everything in one folder Basic separation of code into logical folders. No circular dependencies, binaries, libs, docs, builds, third-party code all organized into appropriate folders Physical layout of source tree matches logical hierarchy and organization. The directory names and organization provide insights into the design of the system.
code readability Mono-syllable names Good names for files, variables classes, methods etc. No long functions, comments explaining unusual code, bug fixes, code assumptions Code assumptions are verified using asserts, code flows naturally – no deep nesting of conditionals or methods
defensive coding Doesn’t understand the concept Checks all arguments and asserts critical assumptions in code Makes sure to check return values and check for exceptions around code that can fail. Has his own library to help with defensive coding, writes unit tests that simulate faults
2(Level 0) n(Level 1) n (Level 2) log(n) (Level 3)
error handling Only codes the happy case Basic error handling around code that can throw exceptions/generate errors Ensures that error/exceptions leave program in good state, resources, connections and memory is all cleaned up properly Codes to detect possible exception before, maintain consistent exception handling strategy in all layers of code, come up with guidelines on exception handling for entire system.
IDE Mostly uses IDE for text editing Knows their way around the interface, able to effectively use the IDE using menus. Knows keyboard shortcuts for most used operations. Has written custom macros
API Needs to look up the documentation frequently Has the most frequently used APIs in memory Vast and In-depth knowledge of the API Has written libraries that sit on top of the API to simplify frequently used tasks and to fill in gaps in the API
frameworks Has not used any framework outside of the core platform Has heard about but not used the popular frameworks available for the platform. Has used more than one framework in a professional capacity and is well-versed with the idioms of the frameworks. Author of framework
2(Level 0) n(Level 1) n (Level 2) log(n) (Level 3)
requirements Takes the given requirements and codes to spec Come up with questions regarding missed cases in the spec Understand complete picture and come up with entire areas that need to be speced Able to suggest better alternatives and flows to given requirements based on experience
scripting No knowledge of scripting tools Batch files/shell scripts Perl/Python/Ruby/VBScript/Powershell Has written and published reusable code
database Thinks that Excel is a database Knows basic database concepts, normalization, ACID, transactions and can write simple selects Able to design good and normalized database schemas keeping in mind the queries that’ll have to be run, proficient in use of views, stored procedures, triggers and user defined types. Knows difference between clustered and non-clustered indexes. Proficient in use of ORM tools. Can do basic database administration, performance optimization, index optimization, write advanced select queries, able to replace cursor usage with relational sql, understands how data is stored internally, understands how indexes are stored internally, understands how databases can be mirrored, replicated etc. Understands how the two phase commit works.
2n (Level 0) n2 (Level 1) n (Level 2) log(n) (Level 3)
languages with professional experience Imperative or Object Oriented Imperative, Object-Oriented and declarative (SQL), added bonus if they understand static vs dynamic typing, weak vs strong typing and static inferred types Functional, added bonus if they understand lazy evaluation, currying, continuations Concurrent (Erlang, Oz) and Logic (Prolog)
platforms with professional experience 1 2-3 4-5 6+
years of professional experience 1 2-5 6-9 10+
domain knowledge No knowledge of the domain Has worked on at least one product in the domain. Has worked on multiple products in the same domain. Domain expert. Has designed and implemented several products/solutions in the domain. Well versed with standard terms, protocols used in the domain.
2n (Level 0) n(Level 1) n (Level 2) log(n) (Level 3)
tool knowledge Limited to primary IDE (VS.Net, Eclipse etc.) Knows about some alternatives to popular and standard tools. Good knowledge of editors, debuggers, IDEs, open source alternatives etc. etc. For e.g. someone who knows most of the tools from Scott Hanselman’s power tools list. Has used ORM tools. Has actually written tools and scripts, added bonus if they’ve been published.
languages exposed to Imperative or Object Oriented Imperative, Object-Oriented and declarative (SQL), added bonus if they understand static vs dynamic typing, weak vs strong typing and static inferred types Functional, added bonus if they understand lazy evaluation, currying, continuations Concurrent (Erlang, Oz) and Logic (Prolog)
codebase knowledge Has never looked at the codebase Basic knowledge of the code layout and how to build the system Good working knowledge of code base, has implemented several bug fixes and maybe some small features. Has implemented multiple big features in the codebase and can easily visualize the changes required for most features or bug fixes.
knowledge of upcoming technologies Has not heard of the upcoming technologies Has heard of upcoming technologies in the field Has downloaded the alpha preview/CTP/beta and read some articles/manuals Has played with the previews and has actually built something with it and as a bonus shared that with everyone else
2(Level 0) n(Level 1) n (Level 2) log(n) (Level 3)
platform internals Zero knowledge of platform internals Has basic knowledge of how the platform works internally Deep knowledge of platform internals and can visualize how the platform takes the program and converts it into executable code. Has written tools to enhance or provide information on platform internals. For e.g. disassemblers, decompilers, debuggers etc.
books Unleashed series, 21 days series, 24 hour series, dummies series… Code Complete, Don’t Make me Think, Mastering Regular Expressions Design Patterns, Peopleware, Programming Pearls, Algorithm Design Manual, Pragmatic Programmer, Mythical Man month Structure and Interpretation of Computer Programs, Concepts Techniques, Models of Computer Programming, Art of Computer Programming, Database systems , by C. J Date, Thinking Forth, Little Schemer
blogs Has heard of them but never got the time. Reads tech/programming/software engineering blogs and listens to podcasts regularly. Maintains a link blog with some collection of useful articles and tools that he/she has collected Maintains a blog in which personal insights and thoughts on programming are shared

WPF Tutorial – Getting the DoubleClick Event

In WinForms, everything that derived from System.Windows.Forms.Control had the MouseDoubleClick event – and not suprisingly, in WPF, everything derived from System.Windows.Controls.Control also has a MouseDoubleClick event. But there is a key difference – in WinForms, almost everything that gets displayed on the screen is derived from System.Windows.Forms.Control in some way – while in WPF, there are a number of items you can put on the screen that do not actually derive from System.Windows.Controls.Control. So today we are going to take a look at how to get double clicks when you are not derived from System.Windows.Controls.Control.

To figure this out, we are going to write a little app with a TextBlock – and when you double click on the TextBlock, it switches to a TextBox where you can edit the text. When you are done editing the text, you can double click in the TextBox, and it switches back to the TextBlock with the new text that you have entered. You can see screenshots of the two states of this simple app below:

Ok, so the issue here is that TextBlock does not derive from Control (it derives from FrameworkElement), so it does not have a MouseDoubleClick event to attach to. So what do we do? Well, it is actually really simple – lets take a look at the xaml behind this sample app first:

       Text=“{Binding ElementName=MyWindow, Path=MyText}”/>



So as you can see, we just have a TextBlock and a TextBox, one visible and one not. On the TextBox we have attached to the MouseDoubleClick event, and on the TextBlock we have attached to the MouseDown event. So, as you might have suspected, we will be using the MouseDown event to figure out if a double click has occurred. So onto the code behind:

class DoubleClickWindow :
  public DoubleClickWindow()

string MyText
    set {
SetValue(MyTextProperty, value);

DependencyProperty MyTextProperty =
      DependencyProperty.Register(“MyText”, typeof(string),
        typeof(DoubleClickWindow), new

UIPropertyMetadata(“This Is Some Text Of Mine”));

void MyBlock_MouseDown(object sender, MouseButtonEventArgs e)


void MyBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)


So here we have the whole code behind class for DoubleClickWindow. Not much here, just a constructor, the dependency property that the TextBlock and TextBox are bound to, and the two event functions.

And it is one of those event functions that we care about – the MyBlock_MouseDown method. And what do we have here – a ClickCount number in the MouseButtonEventArgs! The ClickCount property holds the number of times the mouse button has been clicked within the system double click time (you know, that slider for double click speed in the mouse control panel). If you want to know if the user has clicked twice, you just have to check and see if the ClickCount is equal to 2 – and that is exactly what we do here. If it is equal to 2, we switch the visibilities on the TextBlock and the TextBox.

The interesting thing about the ClickCount is that you can do something like listen for a triple or even quadruple click. I have no idea why you would want to do such a thing 😛 – but it is possible. You can also get this information in any click or mouse up event (or any of the corresponding preview events) – any event that gives you the MouseButtonEventArgs as the argument to the event will have the click count information.

Oh, and I suppose we can’t forget the last function in the class – MouseDoubleClick, which is hooked to the actual double click event on the TextBox. Of course here we don’t have to check if it is a double click (the code wouldn’t be executing otherwise) – we just flip the visibilities back. And, just as a side note, if you dive down into the code of Control (where this double click event comes from), you find that all they are doing is triggering the event when the ClickCount of the current mouse down event is equal to 2.

Hope that cleared up any confusion that you may have had about double click events in WPF! I know I was confused for a little while as to why there wasn’t a MouseDoubleClick event available everywhere. As always, please leave and questions in the comments and I’ll do my best to answer them.

Copied from

%d bloggers like this: