Tuesday, August 26, 2014

Software Engineer/Sr. Software Engineer Interview Process at Cvent:

Software Engineer/ Sr. Software Engineer Interview Process at Cvent:

The complete process will take 1 week time in interviewing a candidate and Cvent is having a good interview process for selecting a candidate.

Ratio of selecting a candidate is 18:1. Means out of 18 candidate,1 will be selected so think if you got selected, you are best candidate for that position.

And if you are not selected, Don't be Sad. There are lots of other good companies for you.

The rounds in interview will be:

1) Machine Test : This test will be around 45 min and contains two programming question and out of which you need to implement only one using any language c,c++,c# and Java in 45 mins.
Questions : a) Implementation of stack
   b) Implementation of Queue
           c) Implementation of And/Or Operator using two numbers


2) Technical Rounds : If you will clear first round then that will be followed by multiple technical round, because they are having 360 degree recruitment process so 3-4 technical rounds with different different technical persons will happen after machine test.
Question are mainly related to technologies on what you are applying for like if you are interviewing for .net position then question will be related to .net/JavaScript and jQuery only + every round will contain some coding questions like :
a) First largest number from given array
b) 2nd biggest number from array
c) array operation logic like sorting
d) print * in multiple rows.

3) Onsite Technical Round: After these 5 round, There will be one onsite technical managerial round. That round will also contain aptitude question and some logical puzzles.


4) HR Round : After you clear all Technical round, HR round will happen. Cvent is good paymaster as per the industry standards. So here you will get good hike and Environment is also cool here and as per my view this is a good company to work with.

All the Best :)

Monday, August 25, 2014

Set the value of one Textbox, Whenever the other textbox value changes using Jquery

Hi Everyone,

I am writing this article to help those who are very new to jquery,

Requirement is : Need to update one input box on changing the text in other text box.

Solution:  I am assuming that you know the basic of html and javascript.


Here is the text version of the code. you just have to copy the code and paste this text in notepad file and save that file as html.
------------------------Beginning of Code------------------------------------------------
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#FirstInput").on('keyup', function () {
                $("#SecondInput").val($(this).val())
            });
        });
    </script>
    <title></title>
</head>
<body>

    <div>
    First InputBox <input type="text" id="FirstInput" value="" /> <br />
    Second InputBox <input type="text" id="SecondInput" value="" /> <br />
    </div>

</body>
</html>
------------------------------End Of Code-----------------------------------------------

After running this code, the output will be :







As you can see if i enter "G" in First InputBox the value will automatically be reflect in 2nd InputBox.
The Jquery Code which is doing all this is :

 $("#FirstInput").on('keyup', function () {
                $("#SecondInput").val($(this).val())
            });

$ is inbuild keyword to access elements using jquery and every function that need to be registered on element are to be enclosed in ready method of jquey as provided in code.

Happy Coding :)

Friday, February 21, 2014

Implementation of loaded in Ajax

Here is a script which only require div tag that needs to be displayed once ajax request will be fired:


<script type="text/javascript">
    // Get the instance of PageRequestManager.
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    // Add initializeRequest and endRequest
    prm.add_initializeRequest(prm_InitializeRequest);


    // Called when async postback begins
    function prm_InitializeRequest(sender, args) {
    // get the divImage and set it to visible
    var panelProg = $get('divImage');
    panelProg.style.display = '';


    // Disable button that caused a postback
    $get(args._postBackElement.id).disabled = true;
    }


  </script>

Thursday, February 20, 2014

Hello world android tutorial

Hi Everyone,

Few days back i have started working on android and i want to share the link of phone gap and android hello world tutorial with all of you :


http://docs.phonegap.com/en/1.9.0/guide_getting-started_android_index.md.html

Regards,
Gaurav

Thursday, October 31, 2013

Tips, Shortcuts & Features for the .NET IDE


Reference : MSDN.

Visual Studio .NET has quite a lot of useful options. Below are the compendium of short cuts, tips, features for the Visual Studio .NET IDE.
There is no doubt that by learning the keyboard shortcuts for an IDE you can increase your productivity tenfold. So here is a list of useful hints that I gathered.

1.       Multiple copy/pastes

Ctrl+Shift+V cycles through the clipboard ring. You can copy/cut multiple times from one area of code, then go to another area and paste them one after another.

2.       Vertical block selection

Press Alt and then select the area you want with your mouse.

3.       Incremental search

To incrementally search for text as you type, first press Ctrl+i. Then type the word you want to search. Hit backspace to clear a character and enter to finish. Pressing F3 after this will work as usual, i.e. search for the next occurrence of previous search.
Ctrl+i - Ctrl+i works like F3.

4.       Previous cursor positions

Ctrl+- i.e. Ctrl + Hyphen. This cycles you through the code positions you visited.
Ctrl+Shift+- to navigate in the opposite direction.

5.       Drag and drop code snippets

The Toolbox (Ctrl+Alt+X) window has multiple tabs. You can drag and drop code onto this window and copy it elsewhere. Some tabs do not allow dropping code into them; those that allow will have the appropriate icon. The General tab works for me.

6.       Matching brace/comment/region/quote

Ctrl+] takes you to the matching brace. It also takes you to the matching comment, region or quote depending on what is at the cursor now.
7.       Change IDE Startup page
When you load your .Net IDE, the default behavior is to load the Start Page. However for many developers, this is just and extra step to open a project, which also happens to load the Internet Explorer into memory. In the Option dialog, under Environment -> General Page, you are able to change the behavior to one of five options as below in screen shot.  

8.       Closing/Showing support windows

There are a bunch of necessary/useful windows in the Visual Studio IDE like
Properties (F4),
Solution Explorer (Ctrl+Alt+L),
Output Window (Ctrl+Alt+O),
Task List (Ctrl+Alt+K) etc.
However, they take up a lot of space. An easy way around this is to use the auto hide feature.
Open the window you want. Right click on its title and choose Auto Hide. The window will dock in whenever your mouse is not hovering over it.

9.       Tab groups - group code editor windows

If you have many source code windows open, you can group them logically using tab groups. Right click the tab of the code window and choose New Horizontal Tab Group. This will move the window into a split window, allowing you to see both files. You can add more files to this new tab group and also move files back to the previous group by choosing Move To Previous Tab Group.

10.   Track things you have to do with Task List

The Task List window (Ctrl+\,Ctrl+T) allows you to keep track of the things you have to do. Right click on the Task List window and choose Show Tasks|All to see a list of tasks. Ctrl+Shift+F12 to cycle through your list of tasks.
By default, comments marked with a TODO will appear in the task list.

11.   Edit Task List Comment Tokens

You can add your own set of comment tokens (like the TODO comment token). Goto Tools|Options|Environment|Task List|Comment Tokens and make your changes. You can change the priority appearance of each comment token too.

12.   Add Task List Shortcut

Add a shortcut to the task list with Ctrl+K, Ctrl+H. This will add the current line to the task list.

13.   Record and play temporary macro

Ctrl+Shift+R to record a new temporary macro. Press Ctrl+Shift+R to stop recording. Ctrl+Shift+P to play the recorded macro.
This works similar to *recording* in Vim. If you think you are going to be repeating a set of keyboard keys, then record them once and play them each time after.

14.   Auto-complete

Press Ctrl+Space or Alt+RightArrow to auto-complete the word. Intellisense suggestions may pop up a window if there is more than one possibility.

15.   Intellisense suggestions window

Press Ctrl+Shift+Space to bring up the intellisense suggestions window. When giving parameters for functions, I often need to escape the suggestions window to check another part of code. To bring it back, I used to delete a comma and then type it again; but this is easier.

16.   Word wrap

Ctrl+R Ctrl+R
or
Tools|Options|Text Editor|All Languages|General|Word Wrap
If you want to set this option for only one language, then choose the appropriate language instead of All Languages.

17.   Line numbering

Tools|Options|Text Editor|All Languages|General|Line numbers.
If you want to set this option for only one language, then choose the appropriate language instead of All Languages.

18.   Open Web Browser in IDE

You can open web browser in your IDE using Ctrl+Alt+R. or choose View|Other Windows|Web Browser.

19.   Favorites window

Your IDE also functions as a browser. To see your list of favorites, press Ctrl+Alt+F or choose View|Other Windows|Favorites.

20.   Bookmarks

Bookmarks are available through Edit|Bookmarks. Bookmarks allow you to mark places in your code that you would want to come back to.
·         Create/Remove Bookmark - Ctrl+K, Ctrl+K
·         Move to next bookmark - Ctrl+K, Ctrl+N
·         Move to previous bookmark - Ctrl+K, Ctrl+P
·         Clear all bookmarks - Ctrl+K, Ctrl+L

21.   Code Formatting

·         Auto-format selection - Ctrl+K, Ctrl+F
·         Convert to lower case - Ctrl+U
·         Convert to upper case - Ctrl+Shift+U
·         Comment selection - Ctrl+K, Ctrl+C
·         Uncomment selection - Ctrl+K, Ctrl+U

22.   Outlining

I like this feature that allows me to hide code that is irrelevant to what I'm currently working on.
·         Fold/Unfold the current code block - Ctrl+M, Ctrl+M
·         Unfold all - Ctrl+M, Ctrl+L
·         Stop outlining - Ctrl+M, Ctrl+P
·         Fold all - Ctrl+M, Ctrl+O

23.   Build and Debug

·         Build - Ctrl+Shift+B
·         Run - Ctrl+F5
·         Debug - F5

·         Cycle through build errors - F8

Monday, October 28, 2013

Remove Special Character using javascript

Hi Readers,

Some times we have to remove special characters from string. Here is the java script + Regexp code to remove characters from java-script string:

updatedString = Stringtobefiltered.replace(/[^\w\s]/gi, '')

One more regex expression which is generally required in many cases which allow users to imput alphanumeric characters and three special characters:

/^[a-zA-Z0-9_.:]*$/

The above regex will allow A-Z, a-z, 0-9,: , . and _ in input box.

Hope this will help you :)

Friday, October 11, 2013

Task Scheduling using GLOBAL File

Task Scheduling using GLOBAL File

 


<%@ Application Language="C#" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Timers" %>
<%@ Import Namespace="System.Net.Mail" %>




<script runat="server">
    void Application_Start(object sender, EventArgs e)
    {
        System.Timers.Timer t = new System.Timers.Timer(30000);
        t.Elapsed += new ElapsedEventHandler(t_Elapsed);
        t.AutoReset = true;
        t.Enabled = true;
    }
    private void t_Elapsed(object sender, ElapsedEventArgs e)
    {
        SmtpClient smtpClient = new SmtpClient();
        System.Net.NetworkCredential basicCredential =
            new System.Net.NetworkCredential("a@a.com", "a");
        MailMessage message = new MailMessage();
        MailAddress fromAddress = new MailAddress("a@a.com");

        smtpClient.Host = "smtp.a.com";
        smtpClient.UseDefaultCredentials = false;
        smtpClient.Credentials = basicCredential;

        message.From = fromAddress;
        message.Subject = "your subject";
        //Set IsBodyHtml to true means you can send HTML email.
        message.IsBodyHtml = true;
        message.Body = "<h1>your message body</h1>";
        message.To.Add("a@a.com");

        try
        {
            smtpClient.Send(message);
        }
        catch (Exception ex)
        {
            //Error, could not send the message
            Response.Write(ex.Message);
        }

    }   



    void Application_End(object sender, EventArgs e)
    {
       



    }
       

    void Application_Error(object sender, EventArgs e)
    {
       



    }


    void Session_Start(object sender, EventArgs e)
    {
       



    }


    void Session_End(object sender, EventArgs e)
    {
       



    }
      

</script>