TFS – How to remove a workspace for another user/computer

We recently had a computer die at work.  After getting the application back up to speed we attempted to checkin to TFS and we were met with an issue.  We could check in, but all of the pending changes could never go in, because some of the new files were locked on the computer that died!  So we had to figure out how to remove the workspace of that user.  Open a Visual Studio Command Prompt and get started:

First, get all the current workspaces for a specific user:

tf workspaces /owner:DOMAIN\UserWithStuckWorkspace /computer:*

You will get a list of workspaces, you can then delete one of those workspaces (by computer) using the following command:

tf workspace /delete COMPUTER;DOMAIN\UserWithStuckWorkspace

For us this cleared up the locks and we were able to fix our projects and check everything into TFS!

I found this information, and much more on TFS and how to delete workspaces etc. on the following blog:

http://www.mikebevers.be/blog/2009/07/tfs-undo-checkout-or-lock-by-another-user/

How to compile all packages in an Oracle Schema?

Every now and again I run into an issue where I need to recompile all of the packages, procedures and triggers in an oracle schema. This query will create a list of commands that can be run in a separate window, or run from a .sql file. This also makes it so that I can generate this script, and deliver the results to a client.  Please not that this only works within the schema that the query is executed for.  If you want to generate it for a different schema, try the “all_objects” view and add an owner to the where clause.

select
case object_type
when ‘PACKAGE’ THEN ‘ALTER ‘||OBJECT_TYPE||’ ‘||OBJECT_NAME||’ COMPILE; ALTER ‘||OBJECT_TYPE||’ ‘||OBJECT_NAME||’ COMPILE BODY;’
else ‘ALTER ‘||OBJECT_TYPE||’ ‘||OBJECT_NAME||’ COMPILE;’
end sql_command
from user_objects t
where object_type in (‘PROCEDURE’,'TRIGGER’,'FUNCTION’,'PACKAGE’)
order by object_name, object_type

AR.Drone

The coolest toy I have seen in a long time!

AR.Drone

Also see the ArsTechnica Article!

Mine is on the way, I will post information once it arrives, and once I start development!