Thursday, 13 November 2014

How to update TFS Workspace after changing computer name


  1. Open Visual studio command prompt
  2. Paste following code: tf workspaces /updateComputerName:xxxxxx /s:"https://xxx.visualstudio.com/DefaultCollection"
  3. Done

Tuesday, 28 January 2014

How to prevent backspace from navigating back to previous page using javascript or jquery



There will be cases when we may require to prevent backspace navigation in web pages.. This can be easily donw with javascript/jQuery using the following code. Just space this code in the scripts section of your code.


$(function () {
        var rx = /INPUT|TEXTAREA/i;
        $(document).bind("keydown keypress", function (e) {
            if (e.which == 8) { // 8 == backspace
                if (!rx.test(e.target.tagName) || e.target.disabled || e.target.readOnly) {
                    e.preventDefault();
                }
            }
        });


    })


Wednesday, 1 January 2014

Salary Split up of Software Engineer in UST Global



Following is a salary split up of a Software Engineer (Senior Software Developer) with 7 years experience in UST (UST global) as on 01-01-2014.


This is for permanent position with 6 months probation.

Tuesday, 19 November 2013

How to generate Arrows using pure css without images

Its very simple to generate arrows using pure css and html alone without using any images. Use the following code as markup.
<div class="arrow-up"></div>
<div class="arrow-down"></div>
<div class="arrow-left"></div>
<div class="arrow-right"></div>

Now use the following css and you are done!!!

.arrow-up {
       width: 0;
       height: 0;
       border-left: 10px solid transparent;
       border-right: 10px solid transparent;      
       border-bottom: 10px solid black;
}

.arrow-down {
       width: 0;
       height: 0;
       border-left: 10px solid transparent;
       border-right: 10px solid transparent;
       border-top: 10px solid #f00;
}

.arrow-right {
       width: 0;
       height: 0;
       border-top: 20px solid transparent;
       border-bottom: 20px solid transparent;
       border-left: 20px solid green;
}

.arrow-left {
       width: 0;
       height: 0;
       border-top: 20px solid transparent;
       border-bottom: 20px solid transparent;
       border-right:20px solid blue;
}


Monday, 18 November 2013

Interview Question: What are Magic Tables in SQLServer


Magic tables are internal tables called ‘inserted’ and ‘deleted’ which are created and managed by SQL server.
Inserted‘ table holds the values that have been recently inserted.
Inserted‘ table also holds the updated values from a update operation on a table.
Deleted‘ table holds the values that have been recently deleted.
Deleted‘ table also holds the previous values from a update operation on a table.
These virtual tables are usually used with triggers to retrieve the inserted, deleted or updated rows.

Thursday, 31 October 2013

Image Zooming/Magnifying jQuery Tool

A Jquery Image Zoom Plugin



  • Fully Customisable
  • Coloured Tints
  • Fancybox Gallery Support
  • Variable zoom on mouse scroll
  • External Controls
  • Window Zoom, Lens Zoom and Inner Zoom
  • Free to use under MIT and GPL Licenses