group

Is it valid to have a 'choice' of 'group' elements when defining an XML Schema (XSD)

Is it valid to have a 'choice' or 'group' elements when defining an XML Schema (XSD) i.e. is the following valid <xs:complexType name="HeaderType"> <xs:sequence> <xs:element name="reservation-number" type="ReservationNumberType" minOccurs="1" maxOccurs="1" nillable="false" /> <xs:choice minOccurs="1" maxOccurs="1"> <xs:...

Grouping Activerecord query by a child attribute

Is it possible to use an attribute of a child to group a query? Post.find(:all, :include => [ :authors, :comments ], :group=>'authors.city') does not work. However, I am able to use author.city as part of the conditions. ...

What do you like/dislike about development user groups?

I run a non profit based .net user group called DevEvening (http://www.devevening.co.uk) and am always looking to improve it. I wondered what people liked and disliked about user groups and what could persuade people to attend who did not already? Since your using this site I guess you have some outside of work interest in developmen...

Is there any difference between Group By and Distinct

I learned something simple about SQL the other day: SELECT c FROM myTbl GROUP BY C Has the same result as: SELECT DISTINCT C FROM myTble What I am curious of, is there anything different in the way an SQL engine processes the command, or are they truly the same thing? I personally prefer the distinct syntax, but I am sure it's m...

Fetching Minimum/Maximum for each group in ActiveRecord

This is an age-old question where given a table with attributes 'type', 'variety' and 'price', that you fetch the record with the minimum price for each type there is. In SQL, we can do this by: select f.type, f.variety, f.price from ( select type, min(price) as minprice from table group by type ) as x inner join table as f on f....

Crystal Reports group name error

I am grouping on a date field. The tree explorer for the report when data is displayed shows the date as 3 days before the date that is in the records. The detail in the report lists the correct date. I have verified the field shown in the report and the Group field are pointing to the same database-table-field. I have also set the forma...

How can I get the primary and other groups of the currently logged on user in Perl?

According to this site I can simply write $user = getlogin(); but the group handling functions seem not to be able to accept a username/userid as a parameter. Should I really iterate over all the /etc/group file lines and parse the group names from it? ...

getting users and groups from Windows

Hi all, I'm using a Java program that has to gather info that can be derived from the user's group. How can you get a user's group name from windows? Is it found in a file or is there some method/API for getting it? Please let me know. Thanks, jbu ...

Using JNDI to get a user's group name in Windows XP

Hi all, I have heard - and I'm not sure if it was from a credible source or from someone who actually has done it - that JNDI can be used to access a user's group name in windows. I am using Windows XP. I'm not sure how it works exactly but it sounds windows uses active directory to manage groups (can someone confirm?) and JNDI might ...

Getting a user's group name in Windows XP - using any way possible

Hi all, I've posted a similar question about how to do this in JNDI, but in THIS post I am wondering how to do it using ANY INTERFACE. I'd like to be able to retrieve a user's group name. When I say "group" I mean the group on the computer. Like "administrator" or "user." Can I do it through the command line, application, dll, or ...

group devider in reporting service report

Hi, My SSRS report is using groups to devide the data in group. I would like to have a line seperator at the last row of the group. I did hide the group footer and header since it gives me an extra row when render the report to excel, So the bordering of group header or footer for this is not working. I wanted to avoid the extra rows in...

Use LINQ to concatenate multiple rows into single row (CSV property)

I'm looking for the LINQ equivalent to the Sybase's LIST() or MySQL's group_concat() It'll convert: User Hobby -------------- Bob Football Bob Golf Bob Tennis Sue Sleeping Sue Drinking To: User Hobby -------------- Bob Football, Golf, Tennis Sue Sleeping, Drinking ...

Is there a Java package to read the UNIX /etc/group file?

I have been scouring the Internet looking for a Java package/class that will allow me to parse the UNIX /etc/group file. While it really wouldn't be so hard to write this from scratch, I'm quite surprised not to find something already out there. There is a POSIX passwd class (see http://www.bmsi.com/java/posix/docs/posix.Passwd.html), ...

Changing unix group for files

I have a file that a colleague and I are editing together, on a unix system. We are using unix group permissions to edit it. We have one unix group that we are both members of. Whenever I save the file, it changes the unix group to one that he is not a member of. Is there any way to stop it from doing that? ...

How to make a list comprehension with the group() method in python?

Hi, I'm trying to write a little script to clean my directories. In fact I have: pattern = re.compile(format[i]) ... current_f.append(pattern.search(str(ls))) and I want to use a list comprehension but when I try: In [25]: [i for i in current_f.group(0)] I get: AttributeError: 'list' object has no attribute 'group' So how to ma...

Calling a method group ....

I have a method group that contains elements such as: class Foobar { public static DataSet C(out string SpName) { SpName = "p_C"; return null; } public static DataSet C() { string SpName; C(out SpName); return DataAccess.CallSp( SpName); } } And what I want to do is B...

Android Get Group of Contact by ID

Hello, I have a contact ID, how do I get the group the contact is assigned to? I am sure it is something to do with the Contacts.Groups class but I cannot figure it out. Thanks, Isaac ...

Cruisecontrol Group Projects

Is it possible to group projects in CruiseControl? (I know it is possible to group them using the same prefixes... but is it possible to really group them?). thx, Lieven Cardoen ...

auto_increment by group

Is there a way with MySQL (5.0 specifically) to have an auto_increment field who's value is based on a grouping column? Example: id name group_field 1 test 1 2 test2 1 1 test3 2 2 test4 2 1 test5 3 2 test6 3 I'd like to not have to go through any 'crazy' methods to achive this, but will if necessary. ...

table sorting in groups

Hi all, I have table with folders first and then documents.I want to sort such that sorting applies to both the folders and documents but want to keep sorted folders first and then sorted documents.Is it posible with jQuery table sorter.I am looking forward to hear from. Thanx in advance dushyant joshi ...