Author: devonenote

  • Install Remote Server Administration Tools on Windows 7 SP1

    Remote Server Administrator Tools (RSAT) is not compatible with Windows 7 SP1. If you install Remote Server Administration Tools on Windows 7 SP1 slipstreamed media, you will get following error.

    The update is not applicable to your computer

    That’s because current RSAT version only supports Windows 7 RTM. To workaround this issue, you can Install Remote Server Administration Tools before installing Windows 7 SP1. The SP1 upgrade will update RSAT to SP1 version. The other option is wait for official release of Remote Server Administrator Tools for windows 7 SP1, which will happen this April.

    Update 4/8/2011: Microsoft released Windows 7 SP1 RSAT Tools to public today. The download link is here http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d

  • Configure WordPress to Use Proxy

    If you setup a WordPress site on a server in intranet behind a proxy, you might get following error when you search plugins and themes in admin console.

    An Unexpected HTTP Error occured during the API request.

    This is because WordPress does not know the proxy server to talk to external internet. To resolve this, simply enable proxy by adding following lines to wp-config.php file

    define(‘WP_PROXY_HOST’, ‘192.168.110.1’);
    define(‘WP_PROXY_PORT’, ’80’);

    Replace 192.168.110.1 and 80 with your actual proxy server and port.

    If the intranet proxy requires user authentication, appending following lines.

    define(‘WP_PROXY_USERNAME’, ‘UserName_ReplaceMe’);
    define(‘WP_PROXY_PASSWORD’, ‘UserPassword_ReplaceMe’);

  • WordPress Remove Admin Bar

     

    Admin bar is one of new features in WordPress 3.1. It’s automatically enabled for all logged-on user.

    WordPress 3.1 Admin Bar

    To disable the admin bar in WordPress 3.1, append the following code into functions.php file, you can find function.php under the theme folder.

    remove_action( ‘init’, ‘wp_admin_bar_init’ );

  • Common TFS commands

    tf.exe is Team Foundation source control command-line tool which can be used to perform source control operations without GUI interaction. Here are some common tf commands I use in my daily work. You can run command tf /? to view more or visit MSDN TF Command Line Tool Reference

    Common tf commands

    sync Sync files under current folder tf get
    Sync files under current folder and all sub folders tf get . /r
    Sync file to a given revision tf get <filename>;<revision>
    Display what would be synced tf get /preview
    Force sync tf get /all
    Force sync, will override existing files tf get /force
    add Add new file tf add <filename>
    checkout Checkout file for editing tf checkout <filename>
    delete Delete file tf delete <filename>
    rename Rename file tf rename
    checkin Submit open files to tfs server tf checkin
    resolve Resolve file conflicts tf resolve
    Resolve file with automatical merge tf resolve /i /auto:acceptmerge>
    shelve Package pending change and store to tfs server tf shelve <shelvesetname>
    unshelve Unpackage shelve from tfs server into current workspace tf unshelve <shelvesetname>
    workspace Update workspace configurations tf workspace <workspacename>

    Common tfpt commands

    tftp.exe is a command line tool that you can use to work with files and directories under version control, team projects, and work items. Some commands display a graphical user interface when run. tfpt.exe is part of Team Foundation Server Power Tools which can be downloaded here.

    Revert unchanged files tfpt uu /noget
    Search all modified files not in source control and add to pending change list tfpt online
    Scorch – Remove all files in local workspaces but not in source control tfpt treeclean -delete
    Undo submitted change tfpt undo
    View difference of a shelve tfpt review /shelveset
  • How to debug msbuild issues

    To debug msbuild build failures, you can run following from VS command prompt to get more build log output

    msbuild /v:diag <solutionname>

    If you want to log messages for debug during build, you can use Message tasks. For example, use Message task inside a target

    <Target Name="DisplayMessages">
      <Message Text="Project File Name = $(MSBuildProjectFile)" />
      <Message Text="Project Extension = $(MSBuildProjectExtension)" />
    </Target>

    If you are doing build in VS2010 IDE, you can follow these steps to turn on verbose building to help debug msbuild issues.

    1. Open Visual Studio and go into the Tools->Options menu
    2. Go to Projects and Solutions->Build and Run and set MSBuild project build output verbosity to Diagnostic.
    3. Rebuild your project and now the output will show you all the environment variables and parameters.
  • Fix The Windows Search service is not installed error in Windows Server 2008 R2

    If you use Windows Server 2008 R2 as work station for daily work. You might notice that outlook search very slow. This is because by default Windows Search Service is not enabled on windows server 2008 R2.

    (more…)

  • OneNote for iPhone

    Earlier we mentioned that OneNote Sync is lived with SkyDrive. With SkyDrive people can save OneNote to SkyDrive directly and access it from any pc. But it used to impossible to access OneNote from iPhone due to technical safari limitations.

    Today Microsoft releases Official OneNote for mobile completely free for a limited time. Following are detail feature descriptions copied from App Store.

    (more…)

  • Windows Server 2008 R2 SP1 New Features

    Other than rolls up all previous released windows patches since RTM, Windows Server 2008 R2 SP1 contains two new features. Dynamic Memory and RemoteFX.

    Dynamic Memory

    Dynamic Memory is a memory management feature for Hyper-V VM administrators. Dynamic Memory allows administrator allocates a range of memory to indivual VMs and windows system will automatically adjust memory of each VM based on performance.

    RemoteFX

    RemoteFX creates a local like experience for remote users, including windows Aero and 3D contents.

    You can read more about SP1 from Windows 7 Team Blog

  • SQL Server Version History

    By default you can’t restore a sql backup that was taken from a higher version sql server. Otherwise you might get following error when doing restore.

    System.Data.SqlClient.SqlError: The database was backed up on a server running version 10.50.1600. That version is incompatible with this server, which is running version 10.00.2714. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server

    SQL Server version can be checked by running following sql query

    SELECT @@Version

    SQL Server Version History Tracking Table

    Version SQL Server Release
    12.00.2000.8 SQL Server 2014 RTM
    11.00.3000 SQL Server 2012 SP1
    11.00.2100.6 SQL Server 2012 RTM
    10.50.4000 SQL Server 2008 R2 SP2
    10.50.2500 SQL Server 2008 R2 SP1
    10.5.1660.1 SQL Server 2008 R2 RTM
    10.00.5500 SQL Server 2008 SP3
    10.00.4000 SQL Server 2008 SP2
    10.00.2531 SQL Server 2008 SP1
    10.00.1600.22 SQL Server 2008 RTM
    9.00.5000 SQL Server 2005 SP4
    9.00.4035 SQL Server 2005 SP3
    9.00.3042 SQL Server 2005 SP2
    9.00.2047 SQL Server 2005 SP1
    9.00.1399.06 SQL Server 2005 RTM
    8.00.2039 SQL Server 2000 SP4
    8.00.0760 SQL Server 2000 SP3
    8.00.0534 SQL Server 2000 SP2
    8.00.0384 SQL Server 2000 SP1
    8.00.0194 SQL Server 2000 RTM
  • Enable/Disable ipv6 in command line

    By default IPv6 is not enabled on windows XP Pro and Windows Server 2003. However, its very easy to enable IPv6 with netsh (net shell) command line tool.

    Enable ipv6

    netsh interface ipv6 install

    Disable ipv6

    netsh interface ipv6 uninstall

    To verify if ipv6 is enabled, run ipconfig /all and see if ipv6 address is returned.

    Note: you can use netsh to enable/disable ipv4, just change ipv6 to ipv4 in above commands.