Search This Blog

Thursday, November 19, 2015

SharePoint Server 2016 Beta 2 Updates

Monday, November 16, 2015

Force Visual Studio to always run as an Administrator in Windows 7

Always start Visual Studio as an Administrator:

1. Right Click on Visual Studio icon
2. Go Properties
3. Under the Visual Studio 2012 Properties. Select "Advanced"
4. @ Privilege Level section Select the Check box "Run this program as an Administrator".


Thursday, October 8, 2015

Authencate username and password in SharePoint 2010 programatically


I used this method on a Windows Form Application and it works fine:

private bool loginSharePoint()
    {
        lbLoginStatus.Text = "Logging in Sharepoint server";

        bool isValid = false;

        //validating Sharepoint login
        string spUsername = tbSharePointUsername.Text;

        string spPassword = tbSharePointPassword.Text;


        pc = new PrincipalContext(ContextType.Domain, spUsername.Split('\\')[0]);

        pbLogin.PerformStep();
        // validate the credentials
        isValid = pc.ValidateCredentials(spUsername.Split('\\')[1], spPassword);
        if (isValid)
        {
            pbLogin.PerformStep();

            pbLogin.PerformStep();
            site = new SPSite(tbSharePointUrl.Text);

            pbLogin.PerformStep();
            web = site.OpenWeb();

            pbLogin.PerformStep();
            if (web.DoesUserHavePermissions(spUsername, SPBasePermissions.Open))
                isValid = true;
            else
                isValid = false;
        }


        return isValid;
    }

  string Url = txtSiteURL.Text.ToString();

                    SPSite spSite = new SPSite(Url);
                    PrincipalContext Context = new PrincipalContext(ContextType.Domain);
                    string oUser = txtDomain.Text.ToString() + "\\" + txtUsername.Text.ToString();
                    string oPassword = txtPassword.Text.ToString();
                    bool oVar;
                    using (Context)
                    {
                        oVar = Context.ValidateCredentials(oUser, oPassword);
                    }

Thursday, June 18, 2015

Unsafe Chrome Browsing For Unsafe Ports

Unsafe Chrome Browsing for Unsafe Ports

ERR_UNSAFE_PORT Error

The following is a list of all of the restricted ports on Chrome:
  1,    // tcpmux
  7,    // echo
  9,    // discard
  11,   // systat
  13,   // daytime
  15,   // netstat
  17,   // qotd
  19,   // chargen
  20,   // ftp data
  21,   // ftp access
  22,   // ssh
  23,   // telnet
  25,   // smtp
  37,   // time
  42,   // name
  43,   // nicname
  53,   // domain
  77,   // priv-rjs
  79,   // finger
  87,   // ttylink
  95,   // supdup
  101,  // hostriame
  102,  // iso-tsap
  103,  // gppitnp
  104,  // acr-nema
  109,  // pop2
  110,  // pop3
  111,  // sunrpc
  113,  // auth
  115,  // sftp
  117,  // uucp-path
  119,  // nntp
  123,  // NTP
  135,  // loc-srv /epmap
  139,  // netbios
  143,  // imap2
  179,  // BGP
  389,  // ldap
  465,  // smtp+ssl
  512,  // print / exec
  513,  // login
  514,  // shell
  515,  // printer
  526,  // tempo
  530,  // courier
  531,  // chat
  532,  // netnews
  540,  // uucp
  556,  // remotefs
  563,  // nntp+ssl
  587,  // stmp?
  601,  // ??
  636,  // ldap+ssl
  993,  // ldap+ssl
  995,  // pop3+ssl
  2049, // nfs
  3659, // apple-sasl / PasswordServer
  4045, // lockd
  6000, // X11
  6665, // Alternate IRC [Apple addition]
  6666, // Alternate IRC [Apple addition]
  6667, // Standard IRC [Apple addition]
  6668, // Alternate IRC [Apple addition]
  6669, // Alternate IRC [Apple addition]

Wednesday, June 3, 2015

9 WAYS TO CREATE A POSITIVE WORK ENVIRONMENT



1. Build Trust
2. Communicative positively and openly
3. Expect the Best from Your Staff
4. Create Team Spirit
5. Give Recognition and Appreciation
6. Give Credit and Take Responsibility
7. Be Approachable
8. Make Staff Evaluations a Positive Experience
9. Make It Fun.

Saturday, May 30, 2015

10 WARREN BUFFETT QUOTES YOU SHOULD LEARN BY HEART

1. Rule No. 1: Never lose money. Rule No. 2: Never forget Rule No. 1.” 

Sounds pretty simple, right? But when you’re buying or selling stocks, never losing money can seem impossible because prices fluctuate all the time. Warren, though, believes in buying the value of a company and not its stock price. He buys value at the right price, he doesn’t speculate or gamble. He makes sure that he knows a company’s value and that it will far outweigh the price that he paid for, and that is how he sticks to rule No.1.

2. “You do things when the opportunities come along. I’ve had periods in my life when I’ve had a bundle of ideas come along, and I’ve had long dry spells. If I get an idea next week, I’ll do something. If not, I won’t do a damn thing.”

Warren is a patient man. He would never chase prices or force any investment. He waits for the right moment (dictated by either price or market condition) to pounce, and pounce he will. This requires a great deal of discipline, and that is what separates him from the majority of unsuccessful investors. Indeed, patience is a virtue.

3. “Never invest in a business you can’t understand.” 

 This Warren Buffet quote is probably an offshoot of rule No.1. He will only play a game that he is really great at to ensure that his chances of losing are slim. Understanding a business really well can help you smell trouble from miles away. Also, you can never have conviction in something you do not understand, and conviction is what enables you to pounce on a company when the time is right.

4. “It’s far better to buy a wonderful company at a fair price than a fair company at a wonderful price.” 

Warren would always put more value in a great company with great products and management than a mediocre one that can be bought on the cheap. A company’s stock price moves with the whims and emotions of traders and speculators, and is never a good indicator of value. Never mind Wall Street, focus on Main Street and look for a great company that brings great value to its customers, investors, and industry.

5. “Only buy something that you’d be perfectly happy to hold if the market shut down for 10 years.” 

This is a great criterion in choosing a company to buy. Only buy stock in a company that will thrive, grow, and excel in the foreseeable future regardless of stock price. I only know one kind of company that fits that description, and that is the great kind.

6. “We simply attempt to be fearful when others are greedy and to be greedy only when others are fearful.” 

Warren knows that the stock market is full of folly. He knows that emotions like hope, greed, and fear dictate stock prices rather than logic and value. When people are panicky or fearful (as in a bear market) he takes that chance to buy great companies at cheap prices. As long as he does his research and knows the real value behind a company, he doesn’t get scared of its price fluctuations.

7. “It’s better to hang out with people better than you. Pick out associates whose behavior is better than yours and you’ll drift in that direction.” 

This Warren Buffet quote shows his humility and his infinite thirst for learning and improvement. He doesn’t have a huge ego; he doesn’t think of himself as superior than anybody else out there. Nor does he think that he knows everything.

8. “Our favorite holding period is forever.” 

Warren plays for keeps. He doesn’t buy a company that he wouldn’t hold or manage until a very long time. Making amazing gains, like his, takes time. Start young and go for the homeruns.

9. “Only when you combine sound intellect with emotional discipline do you get rational behavior.” 

Investors need these two ingredients to successfully parlay the investment game. The sound intellect comes from doing your homework. It is your research and analysis of a company’s business and value. Discipline on the other hand, refers to your ability to wait for the proper price to enter. You shouldn’t chase prices in bull markets and you shouldn’t get scared in bears. Practice emotional discipline and take your investing to the next level.

10. “Without passion, you don’t have energy. Without energy, you have nothing.” 

Be passionate in what you do and do what you are passionate about. Passion will make you go to the ends of the earth to see a dream fulfilled. It will be your fuel in your journey. It will make you unstoppable. It will see you through when times get tough, and it will make life so worth living.

Courtesy :http://www.wealthlift.com

Thursday, May 14, 2015

SharePoint 2013 Interview Questions!!

http://www.enjoysharepoint.com/Articles/Category/interview-questions-19.aspx


What’s new in SharePoint 2013?

New features are released with every version of SharePoint. SharePoint 2013 also bundled with lots of new features. Few of them are listed here:


  • Improved Performance
  • Cross-Site Publishing
  • Design Manager for Publishing Sites
  • Improved and better Search
  • Changes in SharePoint Workflow Architecture
  • Office Web Apps Server
  • Improved Social Computing Features
  • Optimized User Interface for Mobile Devices
  • Shredded BLOBs for Storage
  • New Features to BCS (Business Connectivity Services)
  • and much more…

What specific features Improve Performance in SharePoint 2013? Kindly elaborate.

SharePoint 2013 introduces following features that improves performance significantly.

  • Distributed Cache Service
  • Minimal Download Strategy and
  • Shredded Storage by introducing Shredded BLOBs.

SharePoint Server 2016 Hardware and Software Requirements

Recently in Ignite, Microsoft's Senior Technical Product Manager Bill Baer disclosed some system requirements for SharePoint server 2016 which will be released in 2016. One more important thing is there will be no SharePoint 2016 Foundation, there will be only SharePoint 2016 Server.


Overall few things are same like SharePoint 2016 requires 64 bit processor with 4 cores. And also RAM 12 to 16 GB.

Below are few System Requirements for SharePoint 2016:

Scenario
Deployment type
Processor
RAM
Hard disk
Database server running a single SQL instance
Development
64-bit, 4 cores
12-16 GB
80GB
Database server running a single SQL instance
QA/Production
64-bit, 4 cores
16-24 GB
80GB
Web server or application server in a three-tier farm
Development
64-bit, 4 cores
12-16 GB
80GB
Web server or application server in a three-tier farm
QA/Production
64-bit, 4 cores
16-24 GB
80GB

Prerequisites for SharePoint 2016:
Below are the prerequisites required to install SharePoint 2016. Like SharePoint 2013, SharePoint 2016 has a Prerequisite Installer (prerequisiteinstaller.exe) which will install the required components.

- Application Server Role, Web Server (IIS) Role.
- Microsoft SQL Server 2012 Native Client
- Microsoft ODBC Driver 11 for SQL Server
- Microsoft Sync Framework Runtime v1.0 SP1 (x64)
- Windows Server AppFabric 1.1
- Cumulative Update Package 1 for Microsoft AppFabric 1.1 for Windows Server (KB2671763)
- Microsoft Identity Extensions
- Microsoft Information Protection and Control Client 
- Microsoft WCF Data Services 5.0
- Microsoft WCF Data Services 5.6
- Microsoft .NET Framework 4.5.2
- Update for Microsoft .NET Framework to disable RC4 in Transport Layer Security (KB2898850)
- Visual C++ Redistributable Package for Visual Studio 2013

Operating System Requirement:
SharePoint Server 2016 will be supported on Windows Server 2012 R2 and Windows Server Technical Preview.

.Net Framework:
Windows Server 2012 R2: SharePoint 2016 requires .NET Framework 4.5.2
Windows Server Technical Preview "Threshold": SharePoint 16 requires .NET Framework 4.6 Preview, which comes with Windows Server Technical Preview "Threshold".

Database Requirements:
SharePoint Server 2016 requires SQL Server 2014 or SQL Server 2016.

Deployment Scenarios:
Below are the deployment Scenarios which are supported or not supported in SharePoint 2016:

Workgroup: Unsupported
Domain Controller: Developer Installation
Client OS: Unsupported
Dynamic Memory: Unsupported
Windows Web Server: Unsupported

Thursday, May 7, 2015

How to debug SharePoint Applications and Timer Jobs?

Step 1: Build the application and place the .dll into GAC and Reset iis

Step 2: On the Debug menu, select Attach to Process


Step 3: Select the Show processes from all users check box.

Step 4: Select the w3w.exe and OSWTIMER.exe can attach
Step 5: Refresh SharePoint Application breakpoint.