Welcome to my Blog

This Blogs gives the summary of the latest Technologies available in the market from the different website.you can post your questions/requests anything related to the Technology

Sharing private branch on git

Sharing a private branch on git 


git checkout -b mynewfeature 
... edit files, add and commit ... 
git push -u origin mynewfeature 

Opening Java script Project in visual studio

  • How to open java script project in visual studio?
  • Opening a folder and exploring in visual studio

1. visual studio -> File -> open -website 



     
2. Select file system and select the desired folder 


3. Project will be display as below 








Winjs: Overwriting Console log to custom file

Following logger overwrites console methods log, warning, error methods and writes to custom log file

var logMessageObject = [];

function logger() {

    if (window.console && window.console.log)

    {

        window.console.log = function (msg) {

            LogMessage(msg, "log");

        }

    }

    if (window.console && window.console.info)

    {

        window.console.info = function (msg) {

            LogMessage(msg, "info");

        }

    }

    if (window.console && window.console.warn)

    {
        window.console.warn = function (msg) {

            LogMessage(msg, "warn");

        }

    }

    if (window.console && window.console.error)

    {

        window.console.error = function (msg) {

            LogMessage(msg, "error");

        }

    }

};

function LogMessage(msg, type) {

    switch (type)

    {

    case "log":

        msg = "Log: " + msg + "\n";

        break;

    case "info":

        msg = "Info: " + msg + "\n";

        break;

    case "warn":

        msg = "Warning : " + msg + "\n";

        break;

    case "error":

        msg = "Error: " + msg + "\n";

        break;

    default:

        msg = msg + "\n";

    }

    logMessageObject.push(msg);

    //writing to log file incrementally if the msg count is >10

    if (logMessageObject.length >= 10)

    {

        var logMessageString = logMessageObject.join(" ");

        WriteToLogfile("Testlog.html", logMessageString);

        logMessageObject.length = 0;

    }

}


Comments and suggestions are welcome :-)

Definitions of testing

Definitions of testing :
1.       Functional Testing: Validating a given application to its specifications and correctly performing all its required functions.
·         Black box testing:  Testing without knowledge of the internal workings of the item being tested.
·         White box testing: Testing based on an analysis of internal workings and structure of a piece of application.
2.        Security testing: Testing how well the system protects against unauthorized internal or external access. Data flow diagrams are used to identify the potential threats of given application
3.       Performance Testing: Measuring given application performance goals to its specifications. Its covers load times, CPU usage and memory usage and also helps us understand the application /website scalability.
4.       Stress Testing:  validating given application beyond limits of its specified requirements to determine which load its failing and how. And it’s mainly used to detect memory leaks, dead lock, grace degradation.
5.       Accessibility testing:  usability of given app for with users under consideration of disabilities. it includes keyboard, mouse, high contrast, DPI, narrator testing
6.       Internationalization(Globalization ,localization, marketization):
·         Globalization: is the process of verifying applications that function for multiple cultures (pseudo and pseudo mirror builds)
·         Localization:  verifying application for given local or culture
·         Marketization: verifying application is ready for given market. E.g. verifying apps are downloading market specific config (en-ca,en-es, en-us,en-gb), ads etc.
7.       Dog fooding/Bug bash :  sharing application to internal teams to test , it’s gives wide range of coverage and initial feedback
8.       Fail safe/Fault recovery testing: verifying app is recovering from the error scenarios and able to handle error data safely.
9.       End to end Testing : integrating feature in application and verifying its functionality end to end
10.   Setup and upgrade testing :  Testing partial , full upgrades and config testing
11.   Compatibility testing : verifying and back ward and forward compatibility of given application
12.   Roaming/Connectivity : Specific to, validates connectivity and roaming settings
13.   System testing/Integration testing: validating given application under integrated environment
14.   Usability: user understand the application easily, Proper help documented whenever user stuck at any point. Basically system navigation is checked in this testing

15.   Unit testing: method of verifying individual units of a given application. In general devs will create unit tests.

10 Attitudes of Successful Workers

Why do some people seem to reach the top of the corporate ladder easily, while others remain stuck on the middle-management rung? You might think that it is just because those people have more of what it takes to succeed, like brains, talent and powerful people in their corner. But there is something else that is just as important: attitude.

Dr. Martin Seligman, an authority on optimism, discovered that attitude was a better predictor of success than I.Q., education and most other factors. He found that positive people stay healthier, have better relationships and go further in their careers. And he even found that positive people make more money.

Anyone can adopt the right attitude. No matter where you are from or how much innate talent you have, the right attitude can make a difference in your career. Try adopting these 10 attitudes of successful workers:

1. I am in charge of my destiny.
If you spend your entire career waiting for something exciting to come to you, you will be waiting a long time. Successful professionals go out and make good things happen. So commit yourself to thinking about your career in an entirely different way. You will make it to the top, and you are in charge of making it happen.

2. Anything is possible.
Think that there is no way you will ever be at the vice-president level? Then you definitely won't. Remember: If you think you can't, you probably won't. Adopt the attitude of The Little Engine That Could -- "I think I can."

3. No task is too small to do well.
You never know when you are going to be noticed. That is one reason to take pride in your work -- all of it. One public relations executive in Chicago said that her first task in the PR department of a ballet company was reorganizing the supply closet. She tackled the project with gusto and was immediately noticed for her hard work and attention to detail. Remember this the next time you feel like slacking because you are working on a menial task.

4. Everyone is a potential key contact. 
While you do need to be aggressive in the workplace, you can also go far by being nice to those around you. Do you think it's unimportant to establish a good rapport with your boss's secretary? Well, just try getting your meeting squeezed onto the schedule when you really need it. Be courteous to those around you -- you never know when your past contacts will play a role in your future.

5. I was made to do this job... and the one above me.
If you spend your days feeling like you are not cut out to do the work you are responsible for, your performance will suffer. Your job may not be the perfect fit, but successful workers act like they are in their dream job, no matter where they are.

6. It's not just what I know, but who I know.
Successful workers understand the importance of networking, both in and out of the office. You need to proactively establish professional contacts. Invite a colleague out to lunch. Go to the after-work happy hour. Join your professional association. Do your part to establish a networking path for your future.

7. What else can I do?
Since you are in charge of your destiny, it's your job to look for ways to improve your professional self. Volunteer to take on an extra project. Learn a new skill that will make you more marketable. Stay late to help your co-workers. Successful workers don't just complete the job and sign out -- they look for additional ways to make their mark.

8. Failure will help pave the way to my success.
While it seems like some people never experience setbacks, the truth is everyone fails from time to time. The difference between successful and unsuccessful people is how they deal with failure. Those who find success are the ones who learn from mistakes and move on.

9. I am my own biggest fan.
Have you been waiting for someone in the office to recognize your talents and efforts? Maybe it's time you start tooting your own horn. Step up and talk about your accomplishments and what you have done for the company. Successful workers know how to point out their achievements without sounding boastful.

10. My opportunity monitor is never turned off. 
Yes, there will be days when you will want to just be happy with the status quo. But remember that successful workers are always on the lookout for opportunities to improve. Keep your eyes, ears and your mind open to new opportunities -- you never know when you will discover the one that will change the course of your career!
Copied from carrier builder 

Accessing IFRAME content in JavaScript


Use the following snippet to access the IFrame content in Java script

var iframeConent = document.getElementsByClassName("contentFrame");
if(iframeConent!= null)
{
var body = iframeConent[0].contentDocument.getElementsByTagName('body')[0];

}

How to open pdf files in metro apps


Are you looking for a Library, SDK to integrate directly PDF, DOC Reader in a Win8 RT Metro style apps?
Here are challenges you will face :
·         How to open pdf files in metro apps
·         Programmatically Create WORD or PDF Documents?
Options:
·         For PDF, there's iTextSharp
·         Launch it in default handler for pdf files by calling LaunchDefaultProgram
Uri myUri = new Uri ("c:/myPdf.pdf");
Launcher.LauncherDefaultProgram(myUri);

To DO : Correct Soln .working on it

Useful references and Third party Controls:
http://msdn.microsoft.com/en-us/library/windows/apps/hh452687.aspx
http://www.componentone.com/SuperProducts/StudioWinRTXAML/
http://www.perpetuumsoft.com/SharpShooter-Reports-WinRT.aspx

Note :  opinions are copied from the different websites a