I'm currently trying to recreate the GitHub Network Graph in Java as a school project. I'm using Kohsuke's Github-API to get all the data (repo, commits, etc...) and I actually got a prototype to work with some repositories out there, even though it's still not quite right.
My problem is getting the correct vertical spacing in the network graph.. My prototype is currently spacing the commits via some rules to detect merges/forks/branches but it's not working well with bigger and more complex repositories.
Here I found someone who recreated the old flash version of the network graph in JavaScript. But he is using a variable called "space" to determine the vertical spacing.
When I looked into the .js that creates the current Network Graphs I found that they also use a variable called space and spaceMap to get the spacing right.
It seems that without this variable it's not quite possible to make it look like the original Network Graph, but I didn't find the variable in Kohsuke's GitHub-API nor in GitHub's original API... But then again, I'm quite new to this GitHub-Story so maybe I'm just looking in the wrong places :/
If anyone tried to recreate the graph or knows how to find the spacing data I'd appreciate some hints.
Thanks
Related
I want to hide the vertical line as shown in How to hide/disable VSCode LiveShare "Start Discussion".
However, since I have not started a Live Share session, I do not know how to do this.
I would appreciate it if anyone here could help us solve this problem!
I am a new user here and it doesn't appear I can comment yet, so I am posting this as an answer instead, apologies if it is not applicable or for any confusion: More information on what extensions you're using would be helpful. Do you use the GitHub Pull Requests and Issues extension? I recently had the same issue you describe (and had not started LiveShare) and after examination I concluded the vertical line related to the GitHub Pull Requests and Issues extension (which I was not using in practice anyway) and so I uninstalled the aforementioned GitHub extension and that eliminated the unwanted discussion vertical lines. So, if you've been using aforementioned GitHub extension, perhaps the solution relates to that.
I write an Eclipse plug-in that marks errors in files. With IFile, this is pretty easy, as one can use the createMarker() method.
Now I also have IRemoteFile elements. As IRemoteFile does not implement IResource, I cannot call createMarker(). Does anybody know a way to achieve a similar result with IRemoteFile?
Unfortunately, markers can only be created for resources.
IResource#createMarker(String)
There is a long standing enhancement request but it seems that there are no plans to work on this.
And I don't see how this could be worked around, except maybe that you create shadow resources for each IRemoteFile that you want to have markers for.
And of course synchronize the resources' content with the remote file so that the markers can be opened in an editor, etc.
Has anyone out there in SO land had to deal with this...when you go to build a new deployment profile in JCAPS, you have quite a few little boxes that you have to minimize before you can do the actual mapping (black boxes added to hide company specific info):
We've tried autohotkey and are looking into Sikuli - does anyone know of a good way to get around this silly UI design flaw?
You can build multiple environments that point to the same logical host. Just separate the resources into logical groups to make them more manageable.
I wrote a Netbeans plugin to take care of this. I can't publish the full source, but here is the main idea.
I've found that if you click on the "third" button in the deployment wizard that your logical hosts appear on the lower right. Other than that, the latest EAs you created are on the upper left.
Are there any tutorials or documentation files for drawing Sequence Diagrams with Eclipse MDT-UML2?
I can't put a Lifeline on the page. It took me 10 minutes to figure out that I first have to make a big Iteraction, and then I can put Lifelines into it.
I can't figure out how to make the Participant box wider in the lifeline. Any name more than 4 characters is too wide for the box. When I do the obvious thing of clicking and dragging the handles, the box springs back to its original size.
I can add a Message by clicking "Message" in the pallette and click-dragging an arrow from line Lifeline to another. Now I have an arrow labeled "1: *". I've tried every way I can think of to change that name: double-clicking on it, shift-clicking, ctrl-clicking, changing Name in the properties.
Can anyone help?
As I understand it MDT-UML2 is in the very early stages, it may not work as it should always. Additionally, the sequence diagram is a newer one, see below. There were no tutorial I could find, but I did link to samples below. I also found a comment in the eclipse bug tracker for this feature:
Here are the most important issues from my side: moving of lifelines, create messages,
replies are causing strange behaviour (some kind of auto alignment). Moreover it
should be possible to give the messages names.
They say it is resolved, but you be the judge.
From the wiki (Note:What you want is UML2 Tools):
http://wiki.eclipse.org/MDT-UML2Tools
Interaction diagrams (in progress):
Sequence (new in Galileo)
This may not help, but here is a link to the samples: http://wiki.eclipse.org/images/3/3a/UML2Tools_samples.psf
The tutorial reference does not seem to cover the new stuff, just the class diagram.
http://www.vogella.de/articles/UML/article.html
Search stackoverflow for other open source tools to use. The MDT-UML2 is coming along and can be used for some stuff, especially simple DSMs/DSLs/UML Profiles, but for drawing easily there are a host of good tools. An ok thread: What's the best UML diagramming tool? or
https://stackoverflow.com/questions/390438/good-free-uml-tool-for-java-eclipse
I have been supporting a web application at work for our Call Center unit for about 2 years now. The app is written in ASP.NET 3.5 with SQL server 2005 database. I’ve been asked to expand the call detail section to allow agents to edit the current call note with the ability to revert back to its previous version. Now, that’s all cool but now the manager wants to be able to click on any particular note and see all edits with changes highlighted in yellow (and if something was deleted, he wants to SEE the deleted text crossed out). Actually, what I need is very similar to how Stackoverflow handles edits on their questions. I’ve been thinking about how to go about this and after doing research and Google-ing of course, I am still unsure which route to take. I am fairly new to .NET development. Any ideas on the best technique for highlighting the changes in UI? I am afraid I am going to have to store a copy of the entire note each time they make a change because the manager wants to be able to easily review notes and revert back to ANY version (not just the most recent one) before sending the monthly call report off to our VIP customers. Since this department OFTEN changes their mind on things, I want to make sure the new functionality is scalable and easy to maintain. Any ideas would be greatly appreciated. I am really just looking for someone to point me in the right direction; maybe there are some tools out there that can be useful, recommended keywords in Google lookup, etc.
This will be difficult do to.
You'll need a "text editor" control that can not only edit the text, but which can also tell you what changes were made.
You then need to store not only the final text string, but also the list of changes
You'll then need to be able to display the text plus changes, using strike-outs, and different colors for inserts vs. changes
You'll need to do this not only for the changes of a single user, but you'll need to store each users' changes in the database, and will need to be able to display all the changes, all at once.
Your manager should be really sure he needs this.
Some tools for doing the diff for you can be found at Any decent text diff/merge engine for .NET?.
This would entail storing every version like you say. This should allow you to implement it similarly to SO. I seem to recall reading or hearing Jeff mention it, but wasn't able to find it, likely in one of the SO podcasts.
Easiest would be to store the text for each revision, then when the user wants to see the diff use a diff tool to generate the highlighted text.
Here is some Javascript diff code:
http://ejohn.org/projects/javascript-diff-algorithm/
If all the computers have Word installed you may be able to use a Word control to accomplish this. TortoiseSVN has scripts in its program directory which can take two word documents and produce a document with changes highlighted. To see this create c:\aaa.doc and bbb.doc, then install TortoiseSVN and run:
wscript.exe "C:\program files\tortoisesvn\Diff-Scripts\diff-doc.js" c:\aaa.doc c:\bbb.doc //E:javascript
I think you should see http://en.wikipedia.org/wiki/Revision_control