• MohamedG's Log

    scanf() vs cin

    • 1 Comments
    It has been a while since the last time I wrote some C code, since I come from a C++ background, hence I seldom use scanf(). Without going into many details for the reasons why one should use scanf or cin , I just want to point out one difference on return...
  • MohamedG's Log

    Cartoon #4: Super

    • 1 Comments
    base (C# Reference)
  • MohamedG's Log

    Windbg

    • 1 Comments
    Using Windbg, aka Debugging Tools for Windows , is a great way for debugging, crash analysis, and reading dump files. If you’re not a keyboard person who likes to write commands and be in the driver’s seat, you might not like it at the first glance, but...
  • MohamedG's Log

    Cartoon #3: Partial

    • 1 Comments
    Partial Classes and Methods (C# Programming Guide)
  • MohamedG's Log

    Cartoon #2: Sealed

    • 1 Comments
    Sealed (C# Reference)
  • MohamedG's Log

    How to: Disable Multiple Check-out on a Folder?

    • 1 Comments
    There’s no direct way to do that. Multiple check-out is a property of a team project, it's not namespace specific. However, I can think of 2 alternatives using use the " Lock " feature, because that’s what TFS does when a team projects is set to exclusive...
  • MohamedG's Log

    Cartoon #1: Shelve it!

    • 0 Comments
    Did I mention that I’m a cartoonist? As you can see I draw my cartoons using OneNote. I hope this reminds you to shelve your local changes if you’re not checking them in:
  • MohamedG's Log

    How to: Find Distinct Changes by User?

    • 0 Comments
    You can find changesets if you open Source Control Explorer and hit Ctrl+G or choose Edit > Go to… However, this shows changesets with no details, you have to double click it first. If you want to see detailed info all at once, you can use the command...
  • MohamedG's Log

    How to: Include Missing Files in a Project?

    • 0 Comments
    In a previous post , the solution to that problem included manual intervention. There’s an easier way: click the "show all files" button in the solution explorer toolbar which shows all files on disk, then right-click an excluded item (it has a white...
  • MohamedG's Log

    Deny: Revisited

    • 3 Comments
    In a previous post , I talked about the deny option and how it’s evaluated. The documentation on MSDN is talking about conflicting permissions on the same level, however, in TFS2008 SP1, permissions are evaluated bottom up and the first match wins. If...
  • MohamedG's Log

    !exploitable

    • 0 Comments
    !exploitable is a crash analyzer plug-in for windows debugger (windbg) that does post-mortem analysis of a crash and assists its security risk, very cool! The project is licensed under Microsoft Public License (Ms-PL) and you can download it at codeplex...
  • MohamedG's Log

    Merges

    • 6 Comments
    When you would like to know what changes have been merged already between a source and a target you can run: tf merges sourceItemSpec targetItemSpec Usually you would like to view the merge history recursively when you are using folders are branch roots...
  • MohamedG's Log

    How to: Find Source and Target Names for a Rename?

    • 0 Comments
    If you view the history of an item that was renamed, you will see an entry like this in the history dialog: 123 rename username 06/02/2008 09:11:55 AM Comment Then you try to open the changeset details to know to old name, but it only shows the new name...
  • MohamedG's Log

    Files are Missing from Solution Explorer

    • 0 Comments
    A customer was asking about this issue when he can see a certain file in source control explorer and locally on disk but it doesn’t show in Solution Explorer. What happened was the file was removed from the project file. If you're using C#, the project...
  • MohamedG's Log

    Thoughts on Setting Permissions on Non-existent Items

    • 0 Comments
    Permissions in TFS are namespace based. The namespace doesn't have to exist to set a permission on. I can think of some scenarios when this is actually a requirement: You may like to set permissions on future items so that the permissions are effective...
  • MohamedG's Log

    TFS and HTTPS

    • 0 Comments
    Here’s a walkthrough to setup TFS with HTTPS . There are some tips that you may find useful: You may want to avoid using common port numbers like 444 and 445 for TFS website and WSS admin website as other websites may be using them already You may want...
  • MohamedG's Log

    Deny

    • 0 Comments
    Some thoughts about permissions, especially deny. Why deny? Because deny is the best way to apply the principle of least privilege . When a permission is set, it shouldn't matter what client is used to access TFS, the permissions are evaluated according...
  • MohamedG's Log

    How to: Preview check-in conflicts?

    • 0 Comments
    When you check-in, TFS will warn you that you have conflicts and the check-in fails. However, you may want to preview the conflicts without proceeding with the check-in. In this case you can run tf checkin /validate which lets you test checking in without...
  • MohamedG's Log

    One or More Projects in the Solution Could not be Loaded

    • 0 Comments
    If you see this error: "One or more projects in the solution could not be loaded for the following reason(s): The application for the project is not installed." Then: Unexpected error encountered. It is recommended that you restart the application as...
  • MohamedG's Log

    How to: Change File Encoding?

    • 1 Comments
    While merging or comparing files using the DiffMerge tool, and files have different encoding, you will see this message: "The character encodings on these files are different. Only files with the same character encoding can be merged or compared." If...
  • MohamedG's Log

    How to: Merge Items that were not Branched?

    • 0 Comments
    This post is not about merging an existing item to an non-existing one, which will be a (merge, branch) change. This post is about merging items that already exist but they were not branched. One of our customers had this problem, he had three branches...
  • MohamedG's Log

    New keyboard shortcuts in Windows 7 Beta

    • 0 Comments
    For those who like the keyboard more than the mouse, here are some of the new keyboard shortcuts that Windows 7 is introducing: Win + Spacebar Aero desktop peek, just like that small rectangle at the right bottom corner next to the time display. Win ...
  • MohamedG's Log

    Conflicts

    • 0 Comments
    To understand conflict types please read this article on MSDN . In this post I’ll focus on conflicts that need you to manually merge the files. Let’s rule out binary files first because TFS doesn’t compare them, and doesn’t store deltas of them, it stores...
  • MohamedG's Log

    Teamprise

    • 0 Comments
    Software houses use different development platforms to suit their needs, but it���s more convenient to have one system for ALM . Today, I saw a demo of Teamprise, a product that enables users to access TFS from any machine that runs a JRE, and also has...
  • MohamedG's Log

    How to: Enforce get latest before check-in?

    • 0 Comments
    One of our customers had this problem: developers on his team forget to get latest before check-in and they end up with many conflicts and sometimes they overwrite each others’ changes by mistake. One solution is to enforce a custom check-in policy: Follow...
Page 3 of 5 (117 items) 12345