In Team Foundation Server, I know that you can use the "Annotate" feature to see who last edited each line in a particular file (equivalent to "Blame" in CVS). What I'd like to do is akin to running Annotate on every file in a project, and get a summary report of all the developers who have edited a file in the project, and how many line...
I am trying to use cvs annotate. This is the what I run:
cvs -d /mycvs/cvsroot/ annotate "projects/dg/SomeClass.java"
However, I get the following error:
cvs annotate: failed to create lock directory for `/mycvs/cvsroot/projects/dg^M' (/mycvs/cvsroot/projects/dg^M/#cvs.lock): No such file or directory
cvs annotate: failed to obtain d...
I am using a custom colour scheme in Visual Studio 2008. The annotate bar (that shows who checked each block of code in and when) is rendering in some illegible colours. I can't identify which colours these are within the relevant Options dialog so I cannot change them to something clearer.
Does anybody know how to change these colours?...
I'm trying to annotate some text onto a base image with a dropshadow. I don't like the results I get from using the -shadow option, so I'm putting down the text, blurring it, then putting down the text again in white, a few pixels offset from the shadow. Here's the command I'm using:
convert base_image.jpg \
-font TT0590M_.ttf \...
So I have two models, a Ranking model and a UserRanking model. The app centers on people taking a list of items and ranking them (ex: "Best Movies of 2008"). The Ranking model is the overall aggregate ranked list, which is calculated from all the different UserRankings that people create for that list. So for each Ranking, there are a bu...
I need a component that I can install on my server that can be used in an ASP.NET Web Application to:
Display word documents, PDF documents, images in the browser.
Allow these documents to be annotated online and have those annotation saved for redisplay later.
Thanks in advance.
...
Hello,
I am working on a script that will get the user name associated with a CVS line number change and am using cvs annotate filepath to do it.
However, sometimes I run accost files that give blank output when annotate is run on them. Is there any solution to this problem?
I should note that I am working within a code base that was ...
I'd like to group records in two categories:
Items having three or more records
Items having less than three items
How do I go about this? I'm looking at using annotate().
...
Hi,
I have managed to implement a very basic PDF viewer within my application, but was wondering if it was possible to add annotations to the PDF. I have looked through the SDK docs, but not found anything. I have 2 questions really:
Is it possible to do this?
What is the best approach to take?
Is there a framework or library that I c...
Hi.
I have following structure with example data:
id season_id title
1 1 Intro
2 1 Second part
3 1 Third part
4 4 Other intro
5 4 Other second part
(don't ask why), where season_id is always point to id of first episode of season...
What i want, to get follo...
Hi
I have a manager for "Dialog" looking like this:
class AnnotationManager(models.Manager):
def get_query_set(self):
return super(AnnotationManager, self).get_query_set().annotate(
num_votes=Count('vote', distinct=True),
num_comments=Count('comment', distinct=True),
num_commentators = Count('comment__user',...
Could someone please add comments to this code? Or, alternatively, what would be the pseudocode equivalent of this Ruby code?
It seems simple enough but I just don't know enough Ruby to convert this to PHP.
data = Hash.new({})
mysql_results.each { |r| data[r['year']][r['week']] = r['count'] }
(year_low..year_high).each do |year|
(1....
Hello,
I have to show entries by date in a django app and i'm a bit blocked :
Here's an example of my models:
class Event(models.Model):
name = models.CharField(max_length=100)
theme = models.ForeignKey(Theme)
...
class Date(models.Model):
event = models.ForeignKey(Event)
start = models.DateField()
en...
It seems i cannot use annotate and extra together when making a queryset
This
discussions = game.gamediscussion_set.filter(reply_to=None).annotate(up_votes = Count('userUpVotes'), down_votes=Count('userDownVotes')).extra(select={'votes':"'userUpVotes' - 'userDownVotes'"}).order_by('votes')
returns
Caught Warning while rendering: Trun...
I searched all over place for an answer to this but couldn't find anything. Perhaps this is just a stupid question or a really tricky one. Here it is:
Let's say my model is this (pseudo django code):
Event
type = ForeignKey(EventType)
name = CharField
date_start = DateField
date_end = DateField
EventType
name = CharField
W...
I need to execute some SQL that looks like this:
select approve_firm_id,approve_dt,approve_result
from main_approve
group by approve_firm_id
having MAX(approve_dt) and approve_result=0;
it runs (mysql-5.1),
but if I try in the Django model like this:
Approve.objects.annotate(max_dt=Max('approve_dt')).
filter(max_dt__gt=0).filte...
I got simple requirement (not simple implementation), and figuring out how to achieve it without making multiple hits to db, and without .extra() in queryset.
Task:
name = xxx
status = models.IntegerField(choices=some_choices)
project = ForeignKey(Project)
Project:
name = xxx
code = xxx
Projects contain Tasks which got vari...
I've got a Django model containing various database model fields.
One of the manager's querysets retrieves various aggregations via some annotate calls. Some of those annotations are custom made and retrieve float values from the database. Those annotations are not part of the model's fields.
However, when the queryset is created, thos...
I'm trying to use Django's annotate feature to add the count of a related model to a queryset. However, I don't want a full count of related objects, I only want to count the active ones (i.e., "is_active=True"). I can't figure out how to filter down the count.
The (simplified) relevant models:
class Post(models.Model):
user = mode...
In my team, some we help each other with the merges.
I.e. my code is merged back to trunk by someone else.
It seems like the author info not is fully preserved during a merge. When I do annotate (blame) the merger is shown as the author.
Have the merger done something wrong or isn’t the original author preserved in a merge?
...