If you need to do an aggregation in MongoDb on a DateTime property and you want to aggregate only by Date part, you can use a simple trick and use a filter to compose the date part before the grouping. Here is the code   Thanks to the power of aggregation framework, we can construct […]

Continue reading about Aggregate in Mongo using only Date Part of a DateTime property

Today I encountered a strange error during the configuration of a Build Controller in TFS. We installed and configured the first Build Controller for a TFS Instance, everything went good, but both controllers and agent are marked with stopped icon, even if status is “ready” Figure 1: Controller and agents are marked as stopped even […]

Continue reading about Build controller and agent ready but icon shows stopped

Some time ago a friend asked me the easiest way to get code from a specific folder and a specific version in TFVC. The goal is avoiding using Get Specific Version because he do not want to overwrite the Workspace folder he is using, he want also to avoid creating another workspace only to do […]

Continue reading about Download code of a specific changeset in TFVC

It could happens when you clone a Git Repository with submodules, issuing a git submodule update command, you are prompted with this error error. Cloning into ‘src/xxxx’… Warning: Permanently added the RSA host key for IP address xxx.xxx.xxx.xxx to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository. If […]

Continue reading about Git submodule update error: Permission Denied Publickey

Using DPAPI to encrypt password in builds suffers from a serious drawback, the password can be decrypted only by code that runs on the very same computer used to encrypt the password. You can overcome this limitation using roaming profiles, but it is not a option in many scenario. Another technique to enable multiple build […]

Continue reading about Encrypt your password in TFS Build using Certificates