Skip to main content

Posts

Showing posts from June, 2015

How To Update TFS Workspace Using Visual Studio 2013

As part of the information about a workspace, the version control server records the name of the computer that hosts a workspace and the user that owns the workspace.  If you need to change your computer name or your user name, how do you tell the server to update the workspace information? There are different workspace commands that can be used to permission different issues. Some important workspace commands for Team Foundation Server tf workspaces [/owner:ownername] [/computer:computername] [/collection:TeamProjectCollectionUrl] [/format:(brief|detailed)] [/updateUserName:oldUserName] [/updateComputerName:oldComputerName] [workspacename][/login:username,[password]] source: Workspaces Commands For doing it using command prompt, Go to Visual Studio Tools and run the Command Prompt. Then select appropriate directory and run below command. C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE tf workspaces /updateComputerName:OldComputerName /s:"http://...

How To Append Data to HTML5 localStorage or sessionStorage?

The localStorage property allows you to access a local Storage object. localStorage is similar to sessionStorage. The only difference is that, while data stored in localStorage has no expiration time untill unless user deletes his cache, data stored in sessionStorage gets cleared when the originating window or tab get closed. These are new HTML5 objects and provide these methods to deal with it: The following snippet accesses the current domain's local Storage object and adds a data item to it using Storage.setItem() . localStorage.setItem('myFav', 'Taylor Swift'); or you can use the keyname directly as : localStorage.myFav = 'Taylor Swift'; To grab the value set in localStorage or sessionStorage, we can use localStorage.getItem("myFav"); or localStorage.myFav There's no append function for localStorage or sessionStorage objects. It's not hard to write one though.The simplest solution goes here: But we can kee...