This blog is subject the DISCLAIMER below.
Showing posts with label Microsoft. Show all posts
Showing posts with label Microsoft. Show all posts

Sunday, January 09, 2011

How to force undo checkout? #TFS

Sometimes you'd pop into cases where you find yourself in a situation where you have to force undo pending code changes of someone else (say a colleague who is no more around, or even temporarily) or your own pending changes if say your machine (along with your workspace on it).

Well, there a Visual Studio tool for that.. That's tf command-line utility, which you can look for in your VS directory under Common7\IDE..

Using tf has lots and lots of uses, here's a really LONG list of them. Note: there's 3 sub-lists for VS2005, 2008, 2010. But for our tiny problem here, we mainly have to options, I'm using here the most straight forward ones:

Undoing pending changes for a specific file:

That will need mainly main parameters to start with: The name/path of the file checkout, User name (of the user who did the checkout), and the Workspace in which the checkout was done (usually your machine name if you didn't create an new workspace).

You could have an issue with the third one (workspace name), so you might have to check the Workspaces command for more details, but generally a small command like the one below will do just ok in most cases:

tf workspaces /owner:UserName

Knowing the above you can easily undo the pending changes as below, note: parameters are in squiggly braces like {these}:

tf undo {file path} /workspace:{workspace};{username} /server:{TFS name/IP}

Of course the "/server" part can be removed if you're on the same server running TFS. An example with some data will look like:

tf undo $/myProject/myFile.cs /workspace:mySpace;FCIH\shady /server:FCIH_TFS

Deleting the whole workspace:

The other option is to delete the whole workspace, which in turn delete any related checkouts. A simple command for that could be:

tf workspace /delete {workspace};{username} /server:{TFS name/IP}

which with some example parameters might look like:

tf workspace /delete Shady-PC;FCIH\shady /server:10.0.0.2

UPDATE:

After a comment by Meligy, I think I needed to add this: Most of the above needs you to be logged in as an account with TFS admin privileges, check the exact required permissions for Undo, Workspace and Workspaces commands.

If you're not logged in as the appropriate account, you can append {/login:username, [password]} to provide the authorized username and password.

Meligy, also, mentioned another tool called TFS Sidekicks that can do similar stuff.

.. more.

Wednesday, September 15, 2010

SQLServer : How to know the last modified table in your DB

Here is simple T-SQL tip but great to be known. It was part of my task today :). It was making auditing tables for tables created after specific date.

Select * from sys.objects where type_desc= 'USER_TABLE' ORDER BY modify_date desc

type_desc : is object type in SQL and here we wrote 'USER_TABLE' as we need tables created by user.

.. more.

Friday, July 09, 2010

Changing regional settings for System accounts (including ASPNET) in Windows 7

One of the small issues I faced while switching my development machine to windows 7 was a bug/exception in an application I was working on in parsing date format.

After switching my regional settings to the “expected” format, I still got the same exception. After playing a little with the regional settings, I realized that I was switching only my account date format, not the whole machine's date format. To push those settings to other system accounts (like ASPNET, etc), I did the following steps:

After setting your your account regional settings, switch to “Administrative” tab:

Click to Enlarge

From “Welcome screen and new user accounts”, click “Copy setting”:

Click to EnlargeMake sure “Welcome screen and system accounts”  check box is checked, press ok, and Voila!

.. more.

Saturday, September 12, 2009

Reading POP3 (secure) SSL like Gmail via C#

Friend of mine asked me about reading messages by pop3 protocol using C#code. After I did some search in Google I got a lot of pop agents that working fine but not with Gmail as it uses secure connection (SSL) so I did new search in google and sourceforge but most of them have exceptions or not working fine and this is the main reason for this post to continue work from the point I have stoped.

After a hard search in alot of pages I got two good result :
1- it is a good project (from this blog) have good description that implements the standard POP3 commands like authenticating, receiving stats, retrieving and deleting messages .

2-There are open source project called OpenPOP in sourefourge but have bugs and fixed (here) in this blog by Kiran banda,unfortantualy it have build errors but i fix it (here) but it needs some work to go live.

Related post :
Reading Atom feed of Gmail inbox via C#




.. more.

Friday, September 11, 2009

Reading Atom feed of Gmail inbox via C#



Today I am coming with Gmail feature that may be useful although many people don't know and how to access it via simple C# code.
Gmail Atom feed is xml format file to know the unread messages .

http://mail.google.com/mail/feed/atom/ shows the most recent unread items from your inbox. Gmail also offers feeds for your labels:http://mail.google.com/mail/feed/atom/labelname/ .
To know the feature in detials go to this link @ (the unofficial news and tips about Google).

As a developer you can download the C# example here.
All what you need is create instance a simple class called GmailHandler and drop this lines in your project.


//just 2 steps to get your Gmail Atom
//1- Create the object from GmailHandler class
GmailHandler gmailFeed = new GmailHandler("WriteHereYourGmailUserName(ex: fci-h)", "WriteHereYourGmailPassword(ex: XXX)");
//2-get the feed :) ,Congratulations
XmlDocument myXml = gmailFeed.GetGmailAtom();


Just happy code :)

.. more.

Wednesday, September 09, 2009

Want to learn SQL Server Data Services (SDS)?

Overview of Microsoft SQL Server Data Services
This 1-hour online clinic provides SQL Server developers who are experienced in implementing database solutions with an overview of SQL Server Data Services (SSDS).

The topics covered in the clinic include:
- Introduction to SSDS
- SSDS Object Model
- Working with SSDS

More on: http://learning.microsoft.com/Manager/ResourceDetails.aspx?resourceId=cbe836be-394e-4a23-9f87-5d12127cccd5&clang=en-US&brand=Learning

Developing an Application for Microsoft SQL Server Data Services
This 1-hour online clinic provides SQL Server developers who are experienced in implementing database solutions with an explanation of the knowledge and skills required to develop an application in SQL Server Data Services (SSDS).

Topics covered in the clinic include:
- Building an SSDS Application
- Enhancing an SSDS Application

More on: http://learning.microsoft.com/Manager/ResourceDetails.aspx?resourceId=9b2d7204-9f2e-4657-a4c7-0952b32ae081&clang=en-US&brand=Learning

More on SQL Azure Database: http://www.microsoft.com/azure/data.mspx

.. more.

Tuesday, April 28, 2009

How to create SQL Server Login programmatically?

Q. How to create SQL Server Login programmatically?

I got this question from Daniweb C# forum, and of course when I need to do something against SQL Server object from .net I go to SMO (SQL Server Management Objects) which provides a great functionalities to do anything with SQL Server instead of going on SSMS and create some scripts then embedding them into stored procedure then call it…. off…

Anyway to avoid showing how much I’m talkative…

Create any C# project type (Windows, Class Library or even Console one), add reference to Microsoft.SqlServer.Smo, Microsoft.SqlServer.ConnectionInfo
and Microsoft.SqlServer.SqlEnum

Server sqlServerInstance = new Server(                 new Microsoft.SqlServer.Management.Common.ServerConnection(                 new System.Data.SqlClient.SqlConnection("Data Source=.;Initial Catalog=Master;Integrated Security=True")));// your connection string I place mine for illustration..             Login loginObj = new Login(sqlServerInstance, @"DomainName\UserName");             loginObj.DefaultDatabase = "Master";             loginObj.LoginType = LoginType.WindowsUser;             loginObj.Enable();             loginObj.Create("password"); //set the password             //there're many properties to do some tasks related to Login object...

If you used LoginType.WindowsUser, be sure to provide valid windows username and if you aren’t on Domain use the machine name instead.



If you need to create SQL login use LoginType.SqlLogin…



You can explore Login class more on http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.login.create.aspx

.. more.

Wednesday, December 17, 2008

Requirements Engineering - FCIH Microsoft Club

Header1
Email_Template_04_02
Microsoft-Club Helwan
Requirements Engineering session
JOIN US FOR THIS EXCITING EVENT
Let's start, to share our knowledge and find ways to make a difference.
Let's Start with our First Session with,
"Requirements Engineering session"
(E.g. RE is the branch of software engineering concerned with the real-world goals for functions of, and constraints on software systems).

Come and join us this event @ FCI-H. :)
Agenda:
· Who Am I; a programmer or developer or…?
· What and Why of Analysis..!!!
· The "Others" needs
· Requirements Management
· Requirements Elicitation
· Requirements Analysis
· Requirements Communication
Speaker's Bios:
Marwan Hamad is currently System Analyst in Link Development. In 2004, He started the journey of analysis in ITWorx while he had the honor of working in the enterprise sales field at Microsoft Egypt. Marwan observed the best practice of Business Process Reengineering (BPR) by providing dynamic workflow based on strategic objectives to Vodafone Egypt and New Horizons. Marwan was honored from the Ministry of Youth in 2004 for transferring European Project Management practices to the Egyptian NGO's. Marwan studied Applied Business Computing in the University of Sunderland, UK.

DON'T MISS OUT
2:00 pm – 4:00 pm
Wednesday, December 17, 2008
FCIH main campus, Hall 7 (beside the mosque, 2nd floor)
Faculty of Computers & Information – Helwan University


Hope to see you there!
Microsoft Club – Helwan
Referral Code: Club08

Contact us: msp-helwan@student-partners.com

P. S. RE session mainly for all students, everyone is welcomed.
P. S. If you know anyone else who'd enjoy this event, please forward this email to them now.
Email_Template_04_04
Footer
SubFooter

.. more.

Monday, October 27, 2008

New .NET Logos announced.

Microsoft announced last friday the new .Net logos.


Source :-
http://blogs.msdn.com/chkoenig/archive/2008/10/24/new-net-logos-announced-today.aspx

.. more.

Tuesday, September 30, 2008

Sunday, August 24, 2008

.NET Framework 3.5 Service Pack 1 has been released

ASP.NET in the .NET Framework 3.5 Service Pack 1 release includes numerous bug fixes. In addition, it includes features for the following:

  • Enabling high-productivity data scenarios by using ASP.NET Dynamic Data.
  • Supporting the browser navigation in ASP.NET AJAX applications by using ASP.NET AJAX browser history.
  • Increasing the download speed for ASP.NET applications by using ASP.NET AJAX script combining.
More about .NET Framework 3.5 Service Pack 1, Press Here

.. more.

Monday, August 04, 2008

Microsoft Infrastructure IT Professional Sessions – August 19

Yet another event invitation from Kareem Salah(IT Professional Audience Marketing Manager Microsoft Egypt)

You are courteously invited to attend our August IT Pro Session on Windows Server 2008. This session is a very special one where we will be having an IT Professional, Waleed Omar, discussing his actual implementation of Windows Server 2008 with a focus on Terminal Services. Waleed from Mantrac is one of the very first IT Professionals in Egypt to deploy the new Terminal Services in Windows Server 2008 in his production environment, which is currently used to provide remote application access to users across multiple countries.
Microsoft has published a case study on the implementation of Windows Server 2008 Terminal Services at Mantrac by Waleed, which you can view at:
http://www.microsoft.com/casestudies/casestudy.aspx?casestudyid=4000002026
Waleed will be providing a technical overview of the new features of Terminal Services in Windows Server 2008, along with hands-on-lab and a discussion of the implementation at Mantrac.
Microsoft is delighted to invite you to attend our August session, entitled Windows Server 2008: Implementation at Mantrac. Attendance is free-of-charge but Seats are limited.

.. more.

Monday, July 21, 2008

C# 4.0 is not a dream, it is comming :)

I Have Nothing to say, just Check this Link

------ Welcome C# 4.0 ------

.. more.

Thursday, July 17, 2008

Differences between some references in Enterprise Library 2.0 and 3.1

While working with Microsoft Enterprise Library 3.1 I've found there is difference in some references. I was working with DAAB (Data Access Application Block), in Microsoft Enterprise Library 2.0 we was refer to Microsoft.Practices.EnterpriseLibrary.Data.dll in 3.1 and 4.0 you should browse it manually \bin\Microsoft.Practices.EnterpriseLibrary.Data.dll and for some reasons you need to add reference to Microsoft.Practices.EnterpriseLibrary.Common.dll

.. more.

Friday, July 11, 2008

doNetWork.org first RockStar Day!!!



Date:

17 July 2008,
19:00 - 22:30

Attendance is FREE =)

Speaker
Remi Caron
MVP.

Agenda
19:00 - 20:30:
what's new for reporting services in SQL-2008

20:30 - 21:00: Break

21:00 - 22:30:
Business Data Catalog of Office SharePoint Server 2007

Location:

Faculty of Computers and Information - Ain-Shams University,
El Khalifa el ma'moun street, Heliopolis,
Cairo, Egypt

Please be there before 19:00 coz we will start on time..


For those who wanna keep tuned with further news about this event & other upcoming events of the dotnetwork.org user group, please check the following links:

Yahoo!Group:
http://tech.groups.yahoo.com/group/dotnetworkorg/

Facebook Event:
http://www.facebook.com/event.php?eid=56508835231
You'd better join the above event if you have a facebook account so we can roughly estimate the attendees count..

Facebook Fan Page:
http://www.facebook.com/pages/netWorkorg/13135685545

Facebook Group:
http://www.facebook.com/group.php?gid=2409268236

Please don't hesitate to contact me if you have any further questions..
See u on the gathering ;)

.. more.

Wednesday, June 25, 2008

Microsoft WS08 Virtualization Hyper-V RC now available

I've received that from Kareem Salah(IT Professional Audience Marketing Manager Microsoft Egypt)

I am very happy to announce that we have released the Release Candidate (RC) version of Hyper-V (Windows Server 2008 Virtualization Technology). This release candidate is a feature-complete version of Hyper-V.

You can download the update for Hyper-V RC here (http://www.microsoft.com/downloads/details.aspx?FamilyId=DDD94DDA-9D31-4E6D-88A0-1939DE3E9898&displaylang=en ) and experience the improved stability, usability and performance and also test the support for additional guest operating systems. Kindly note that Hyper-V will be integrated with your existing Windows Server 2008 x64 as an update to simplify the integration process.

Key Features of Hyper-V:
· New and Improved Architecture. New 64-bit micro-kernelized hypervisor architecture enables Hyper-V to provide a broad array of device support methods and improved performance and security.
· Broad OS Support. Broad support for simultaneously running different types of operating systems, including 32-bit and 64-bit systems across different server platforms, such as Windows, Linux, and others.
· Symmetric Multiprocessors (SMP) Support. Ability to support up to four multiple processors in a virtual machine environment enables you to take full advantage of multi-threaded applications in a virtual machine.
· Network Load Balancing. Hyper-V includes new virtual switch capabilities. This means virtual machines can be easily configured to run with Windows Network Load Balancing (NLB) Service to balance load across virtual machines on different servers.
· New Hardware Sharing Architecture. With the new virtual service provider/virtual service client (VSP/VSC) architecture, Hyper-V provides improved access and utilization of core resources, such as disk, networking, and video.
· Quick Migration. Hyper-V enables you to rapidly migrate a running virtual machine from one physical host system to another with minimal downtime, leveraging familiar high-availability capabilities of Windows Server and System Center management tools.
· Virtual Machine Snapshot. Hyper-V provides the ability to take snapshots of a running virtual machine so you can easily revert to a previous state, and improve the overall backup and recoverability solution.
· Scalability. With support for multiple processors and cores at the host level and improved memory access within virtual machines, you can now vertically scale your virtualization environment to support a large number of virtual machines within a given host and continue to leverage quick migration for scalability across multiple hosts.
· Extensible. Standards-based Windows Management Instrumentation (WMI) interfaces and APIs in Hyper-V enable independent software vendors and developers to quickly build custom tools, utilities, and enhancements for the virtualization platform.

Core Scenarios for Hyper-V
Hyper-V provides a dynamic, reliable, and scalable virtualization platform combined with a single set of integrated management tools to manage both physical and virtual resources, enabling you to create an agile and dynamic data center. Hyper-V enables:
· Server Consolidation
Businesses are under pressure to ease management and reduce costs while retaining and enhancing competitive advantages, such as flexibility, reliability, scalability, and security. The fundamental use of virtualization to help consolidate many servers on a single system while maintaining isolation helps address these demands. One of the main benefits of server consolidation is a lower total cost of ownership (TCO), not just from lowering hardware requirements but also from lower power, cooling, and management costs. Businesses also benefit from server virtualization through infrastructure optimization, both from an asset utilization standpoint as well as the ability to balance workloads across different resources. Improved flexibility of the overall environment and the ability to freely integrate 32-bit and 64-bit workloads in the same environment is another benefit.
· Business Continuity and Disaster Recovery
Business continuity is the ability to minimize both scheduled and unscheduled downtime. That includes time lost to routine functions, such as maintenance and backup, as well as unanticipated outages. Hyper-V includes powerful business continuity features, such as live backup and quick migration, enabling businesses to meet stringent uptime and response metrics.Disaster recovery is a key component of business continuity. Natural disasters, malicious attacks, and even simple configuration problems like software conflicts can cripple services and applications until administrators resolve the problems and restore any backed up data. Leveraging the clustering capabilities of Windows Server 2008, Hyper-V now provides support for disaster recovery (DR) within IT environments and across data centers, using geographically dispersed clustering capabilities. Rapid and reliable disaster and business recovery helps ensure minimal data loss and powerful remote management capabilities.
· Testing and Development
Testing and development are frequently the first business functions to take advantage of virtualization technology. Using virtual machines, development staffs can create and test a wide variety of scenarios in a safe, self-contained environment that accurately approximates the operation of physical servers and clients. Hyper-V maximizes utilization of test hardware which can help reduce costs, improve life cycle management, and improve test coverage. With extensive guest OS support and checkpoint features, Hyper-V provides a great platform for your test and development environments.
· Dynamic Data Center
Hyper-V, together with your existing system management solutions, such as Microsoft System Center, can help you realize the dynamic data center vision of providing self-managing dynamic systems and operational agility. With features like automated virtual machine reconfiguration, flexible resource control, and quick migration, you can create a dynamic IT environment that uses virtualization to not only respond to problems, but also to anticipate increased demands.

To install and configure Hyper-V, please review the Installation Guide here:
http://www.microsoft.com/windowsserver2008/en/us/hyperv-install.aspx

.. more.

Friday, May 23, 2008

WorldWide Telescope: The Universe at Your Fingertips

WWT_Embroidery_500w

Microsoft launched its WorldWide Telescope, bringing the free Web-based program for zooming around the universe to a broad audience.

WorldWide Telescope, enables anybody with a Web connection to browse through the universe, to explore distant galaxies, to dance among the stars. A state-of-the-art combination of software and Web 2.0 services, WorldWide Telescope offers terabytes of high-resolution images, astronomical data, and guided tours that bring the universe to your fingertips.

Lots of computer applications offer to add value to your life. WorldWide Telescope, available for download, delivers the sun, the moon, and the stars—for free.

wwt1

"The WorldWide Telescope is a powerful tool for science and education that makes it possible for everyone to explore the universe," said Bill Gates, Microsoft's chairman, in a statement.

Link:

http://www.worldwidetelescope.org

Others links:

http://research.microsoft.com/news/featurestories/publish/WorldWideTelescope.aspx?0hp=n2

http://www.istartedsomething.com/20080513/capturing-screenshots-from-worldwide-telescope/

.. more.

Tuesday, May 20, 2008

dotNetWork.org 4th gathering


31 May 2008

12:00 PM – 4:00 PM

Speakers
Marwan Tarek

MOSS MVP - Team leader - ITWorx.


Hussien Zahran

Development Manager - Link Development.

Agenda
12:00 - 01:30: SharePoint Development by Marwan Tarek
Marwan will give us an overview about SharePoint development. This session will be first session of a SharePoint sessions series.

1:30 PM – 2:00 PM: Coffee Break

2:00 PM – 3:30 PM: Introduction to Silverlight by Hussien Zahran
Hussien will talk about Silverlight. Silverlight™ is the Microsoft® cross-browser, cross-platform, and cross-device plug-in for delivering the next generation of media experiences and rich interactive applications for the Web.

3:30 PM – 4:00 PM: Lunch



Canadian International College
Busses will be available at: Nady El-Sekka (11:00 AM - 11:30 AM)

.. more.

Wednesday, April 16, 2008

Cosmos Operating System

Cosmos is an open source operating system project that aims to be completely implemented in CIL compliant languages, that is currently 100% C#. It signifies everything that is important in Operating Systems: Universalization, Security, and Simplicity.


Design Overview

  • Completely .NET based.
  • Microkernel or close hybrid
  • Configurable using modules
  • Cross platform architecture

User Kit

Build your own shell, build and deploy in 30 seconds or less! See for yourself. The basic steps are:

  1. Install Cosmos user kit
  2. File, New, Cosmos Boot project from within Visual Studio.
  3. Modify the entry point. The default project has just a WriteLine.
  4. Run (F5). Cosmos will now build a boot disk and ask you what emulator to use. Press 3 to use included QEMU, or choose from VMWare, Virtual PC, ISO, PXE and more!
That is all you need to do! User kit tutorial.

Video Demo

Source :- http://www.gocosmos.org/index.en.aspx
http://www.codeplex.com/Cosmos
http://www.facebook.com/pages/Cosmos-Operating-System/102358427

.. more.

Microsoft Visual Studio Team System Code Name "Rosario"

Microsoft® Visual Studio® Team System code name “Rosario” is the version of Team System that follows Visual Studio Team System 2008. It is an integrated Application Life-cycle Management (ALM) solution comprising tools, processes, and guidance.

i heard in the last EDC - Egyptian developers conference- that Rosario will not be released with a new dotnet framework, it will work with dotnet framework 3.5 like VSTS2008.

Some of the major scenarios and features in this release will include:

  • Joint prioritization and management of IT projects through integration with Microsoft Project Server
  • Project management across multiple projects for proactively load balancing resources according to business priorities
  • Full traceability (inc. hierarchical work items) to track project deliverables against business requirements and the ability to conduct rapid impact analysis of proposed changes
  • Comprehensive metrics and dashboards for shared visibility into project status and progress against deliverables
  • Powerful new features to enable developers and testers to quickly identify, communicate, prioritize, diagnose and resolve bugs
  • Integrated test case management to create, organize and manage test cases across both the development and test teams
  • Testing automation and guidance to help developers and testers focus on business-level testing rather than repetitive, manual tasks
  • Quality metrics for a ‘go/no-go’ release decision on whether an application is ready for production and has been fully tested against business requirements
  • Rapid integration of remote, distributed, disconnected and outsourced teams into the development process
  • Easy customization of process and guidance from Microsoft and partners to match the way your team works
  • Integrated support to build setup packages using Windows Installer XML technology
  • Improvements to multi-server administration, build and source control.
Source :- http://msdn2.microsoft.com/en-us/vstudio/bb725993.aspx
for more information :- http://msdn2.microsoft.com/en-us/vstudio/bb936702.aspx

.. more.