=> dimasite

IT for(;;) fun!

  • Advertisements

Archive for September, 2010

How to get current windows user name using ASP .NET

Posted by Dmitrij Ivanov on September 21, 2010

There are three different ways to obtain the same information.
protected void Page_Load(object sender, EventArgs e)
  System.Security.Principal.WindowsPrincipal windowsPrincipal = System.Threading.Thread.CurrentPrincipal as System.Security.Principal.WindowsPrincipal;
  string identityName1way = windowsPrincipal.Identity.Name;
  string identityName2way = HttpContext.Current.User.Identity.Name;
  string identityName3way = Request.ServerVariables["AUTH_USER"];
  Label1.Text = identityName1way + " or " + identityName2way + " or " + identityName3way;

The Web.config file should have authentication mode set to Windows.
     <authentication mode="Windows" />


Posted in ASP .NET | Tagged: , | Leave a Comment »

Install Active Directory on Windows Server 2003 and 2008

Posted by Dmitrij Ivanov on September 20, 2010

If you need to play a little bit with an active directory and you dont know how to insall it on Windows Server 2003 the following link may be can help you. For intallation instructions on Windows Server 2008 check this step by step guide.

Posted in SysAdmin | Tagged: | Leave a Comment »

Visual Studio 2010 could be slow on XP, Vista and Windows Server 2003/2008 systems

Posted by Dmitrij Ivanov on September 17, 2010

The cause of the slowness may depend on UIA  (Windows Automation) installed on your system. UIA3 is shipped with Windows 7  and is raccomended Windows Update patch on Xp and Vista.

If you are running on Windows XP, Vista, or Windows Server 2003 or 2008 and are seeing any performance issues with the editor or IDE,  install the free UIA 3 update that can be downloaded from this page.  If you scroll down the page you’ll find direct links to versions for each OS.

Posted in SysAdmin | Tagged: , | Leave a Comment »

How you could organize your time? The Pomodoro Technique

Posted by Dmitrij Ivanov on September 16, 2010

I would like  to share this usefull technique I’ve found few years ago. It’s really good way to avoid procrastination and stay tuned on what you want to realise. The Pomodoro Tecnique is an imagination fruit of Francesco Cirillo and it works! www.pomodorotechnique.com

Take a look of the five minutes presentation video.

Posted in Management Tip | Tagged: , | Leave a Comment »