Posts

Pin It Button

Image
A Pin It Button is very similar to your Like or Tweet button. It allows user to share/bookmark ( or Pin in Pinterest's language) a web page. It's very easy to add a Pin It button on your site  Get you Pint It button here . Although after adding the Pin It button on a website I came across the following bugs URL of the image to be pinned is mandatory: If not done Pin It button will be displayed as normal but  user won't be able to Pin It. The worst part is Pinterest never gave any error in this case, leaving you in the puzzled state. Count Bubble was not rendering As you can notice the code generated by Pinterest has encoded the URLs' that I entered but unfortunately if you copy paste in your web page the count bubble will not be displayed. To show the count button edit the code generated by replacing the encoded URL from normal decoded URL. After this you will be able to see the Pint It count Happy Pinning :)

Factors that make a software developer stick to a company

Although we cannot stop any employee from switch but yes if a company can provide/fulfill the listed points then definitely the attrition rate can diminish. For a software engineer and many other jobs following things are very important Work Quality - The type of work/job one is doing. How will it help him/her in future as far as his/her career is concerned. Pressure - A seasonal work pressure is always good for an employee  but yes a constant work pressure could be a reason for an employee to think for a change Environment - How well the the team communicates and co-ordinates? The company should work on team building activities to keep team bonding intact.  Hours - Employees feel more comfortable in working in a flexible working window environment rather than a fixed working environment Recognize, Appreciate and Reward   An employee is hungry for recognition, appreciation and rewards. If someone is getting all of these th...

Configuring Apace Server to run PERL scripts

Follow following steps to run PERL script on Apace Server Step 1:   Open <APACHE_HOME>/conf/httpd.conf file httpd.conf - is the main configuration file for Apache HTTP Server Step 2:   Search for " ScriptAlias /cgi-bin/ " uncomment i.e. remove ' # ' if commented. You may need to adjust the path to run your script successfully ScriptAlias - Provides the location for CGI programs. This should be two parts, separated by whitespace. The first part is the part used in URL that triggers execution of a CGI program; the second part is the path where those CGI programs are stored in the real filesystem Step 3: Search for " AddHandler cgi-script " in the document, uncomment it, if committed and append " .pl " after " .cgi " Step 4:   Modify your PERL Script. If your script is Windows executable it does't means that it will run on Apache Server as well 'coz script relies on PERL interpreter, so we have to modi...

Is Binary search tree - Java Program

  /**    * Following method can be used to test if a tree meets the conditions to be a binary search tree (BST).    */    public boolean isBST(TreeNode root) {       if (root == null)           return false;       return( isBST(root, Integer.MIN_VALUE, Integer.MAX_VALUE) );   }   /**     * Recursive Method - which validates very sub tree of a given binary tree.    * Works in O(n) time -- visits each node only once.     * @param min   For left sub tree it should be Integer.MIN_Value    *                        For right sub tree it should be node.data + 1    * @param max For left sub tree it should be node.data    *                     For right sub tree it should be Integer.MAX_...