How to programmatically Add a Process Template to TFS Collection [closed] - templates

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
I want to add a new process template to a TFS 2012 collection programmatically or via command line. I have found great examples for updating project build templates but nothing for collections. Does anyone have any examples of how to do what I want?

I haven't been able to try, but this looks like the service that can do it for you:
var uri = new Uri("http://myserver:8080/tfs/DefaultCollection");
using (var tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(uri))
{
tfs.EnsureAuthenticated();
var server = tfs.GetService<Microsoft.TeamFoundation.Server.IProcessTemplates>();
server.AddUpdateTemplate(name, description, metadata, state, zipFileName);
}
Full MSDN Documentation is here: IProcessTemplates.AddUpdateTemplate
*This is based off my LinqPad template for TFS.

Related

Github & Trello lists [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm working on a project that's just about done.
Now I just need a list that shows all the things I've worked on. Luckily I've been using Github and Trello to keep track of all my work.
Does anyone know how to get a simple list of commits/activities from any of these 2 services?
I just need a simple list like this:
Date:
Title:
Description:
I'm working on a Mac but I'm using the Github client.
Github: In the terminal, you can navigate to the folder that you are working in and type git log. It will give you a list of commits. If you would like to save it in a text file you could typegit log > commits.txt.
Trello: In Trello you can go to the board you are working on and select print form the menu. This will give you a list of activities.

Using a push button to switch between a stacked tab in python using PyQt [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I am writing a program that requires a user switch from a page to another with a push button (using next and previous buttons). How do I connect the push button to the next page.
IMHO, the simpliest way is to subclass QStackedWidget like this:
class MyStackWidget(QtGui.QStackedWidget):
def forward(self):
self.setCurrentIndex(self.currentIndex() + 1)
def backward(self):
self.setCurrentIndex(self.currentIndex() - 1)
and then use it like this:
class MyWin(QtGui.QWidget):
def __init__(self):
super().__init__()
self.stack = MyStackWidget(self)
...
self.btnBackward.clicked.connect(self.stack.backward)
self.btnForward.clicked.connect(self.stack.forward)

Make new filetype use custom icon [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am designing a new programming language, and I want to allow my users to embed a custom icon in the output binary file, which is not a standard EXE file.
EXE files allow custom icons (not all .EXE files use the same icon). How can I do that with my own binary files?
If you want to provide different icons for files with the same extension, you need to register an Icon Handler shell extension. For details, see this page in MSDN.
Your handler will need to know how to extract the icon from the file and return it to Explorer.
These instructions should help:
http://msdn.microsoft.com/en-us/library/windows/desktop/hh127427%28v=vs.85%29.aspx
Essentially, create the registry key in HKEY_CLASSES_ROOT for your extension (follow other examples, or that link) to specify an icon, and call SHChangeNotify() with SHCNE_ASSOCCHANGED.
This answer covers registry changes in C++:
Using C++ to edit the registry

Far Manager file view customization [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
maybe some of you use Far Manager as a file manager and could help me with this. I want to be able to call a custom command on viewing a file with a specific extension, i.e. when I press F3 (command for viewing the contents of a file), some custom command is executed on that file and the output is shown in Far Manager's view window.
Appreciate any ideas.
Found what I need - under Commands > File associations need to create new entry with needed file mask, then under View command (used for F3) add this - far:view < your command.
I wanted this to be able to view decompiled Java class files, so I did this:
file mask: *.class
view command: far:view < jad -p !.!

WSDL validator? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there any online service available to validate Web Service WSDL file?
If you're using Eclipse, just have your WSDL in a .wsdl file, eclipse will validate it automatically.
From the Doc
The WSDL validator handles validation
according to the 4 step process
defined above. Steps 1 and 2 are both
delegated to Apache Xerces (and XML
parser). Step 3 is handled by the WSDL
validator and any extension namespace
validators (more on extensions below).
Step 4 is handled by any declared
custom validators (more on this below
as well). Each step must pass in order
for the next step to run.
You can try using one of their tools: http://www.ws-i.org/deliverables/workinggroup.aspx?wg=testingtools
These will check both WSDL validity and Basic Profile 1.1 compliance.
If you would to validate WSDL programatically then you use WSDL Validator out of eclipse. http://wiki.eclipse.org/Using_the_WSDL_Validator_Outside_of_Eclipse should help or try this tool Graphical WSDL 1.1/2.0 editor.
you might want to look at the online version of xsv
You can try out wsdl validator http://docs.wso2.org/wiki/display/ESB451/WSDL+Validator