group

C#, AD: get members of a group recursively, i.e. including subgroups.

Given a group like this in Active Directory: MainGroup GroupA User1 User2 GroupB User3 User4 I can easily determine if User3 is member of MainGroup or any of its subgroups with code like this: using System; using System.DirectoryServices; static class Program { static void Main() { DirectoryEntry user =...

find out user belongs to which groups

I have a windows user accounts which i just created take XYZ for example. This XYZ belongs to a User group and a custom group i created in Computer Management --> Local users and groups. So in properties i see that the user belongs to the 2 groups. Now i want to get those groups and display them. any suggestions??? i have done this ...

Group items in a Sortable list with jQueryUI

I'd like to be able to group items in a sortable list. If I group two items, then those two should be dragged together and be put inside a container that I can style. Those items inside that group should be able to be dragged as well inside the group, but that's just a bonus :) Does anyone know if this is "possible" jQueryUI Sortables?...

Need to have a user in more than one groups in cakePHP

Hello I am trying the ACL component in cakephp for my web application. The example on their website for using their ACL structure has a many to one relationship between groups and users. A user can belong to one group, while a group can have more than one users in it. But I have a situation where I need to have a few users in more than ...

Simplest way to perform grouping/projection using Linq To Objects

I'm getting data from the data layer that I need to transform in the middle tier using Linq To Objects (I don't control that tier of the application). I have to perform a grouping operation using multiple keys followed by a string concatenation on the non key-fields. Given the data below, I want to group by CustomerID and Date, and cre...

LINQ Query That Can Change But Can Group?

This is the sort of thing I want to be able to do. I know you can qury linq results again, but because these results are in groups, I don't know how to. I think the best idea I can think of is to have a query to fetch everything, then do my if statement, then do another query that groups everything (so have 3 separate queries instead o...

how to check group membership of an "NT AUTHORITY\" account ?

[1] informs: Local System account. The name of this account is NT AUTHORITY\System. It is a powerful account that has unrestricted access to all local system resources. It is a member of the Windows Administrators group on the local computer How to determine/check membership of "NT AUTHORITY\" account, such as NT AUTHORITY\SY...

need help grouping a php array

hi all, i've got a mysql query which spits out the following array: Array ( [0] => stdClass Object ( [item1] => foo 0 [item2] => bar 0 [catid] => 3 ) [1] => stdClass Object ( [item1] => foo 1 [item2] => bar 1 [catid] => 7 ) ...

iphone: Transparent background for the Group Table Cell

For group table cell, I fall into this problem. cell.backgroundColor=[UIColor clearColor] make the cell bg black. It works for normal cell, not for group table cell. I want to add some button, e.g. like the detail view of iPhone contact with transparent background. ...

Grouping a 2D array according to its values

I've been trying to get some display logic to behave and stay where it belongs and the code has turned into an interesting little problem that'd be nice to make a general solution for. Bear with me, it looks like a wall of text but I've tried to format it nicely with simple example data so it should be understandable after a quick ski...

ORA-00979: not a GROUP BY expression?

I have found the solution to this, but what in case one of the column is a subquery, how can i include it in group by, or do i need to include that in group by. I will paste the query here.. SELECT s.customerid, s.denomid, (SELECT su.quantity FROM stockupdations su WHERE s.customerid = su.custid AND ...

Recursive Regex Capturing in C#

Hi, I have to read in a file that contains a number of coordinates. The file is structured in the following way: X1/Y1,X2/Y2,X3/Y3,X4/Y4 Where X and Y are positive integers. To solve this problem I want to use a regex (I think this is in general a good idea because of minimal refactoring when the pattern changes). Therefore I have d...

Can I give someone an FTP account so they can only see and edit the files they have made?

Hey, Me and several other people all have FTP access to the same folder. We're working on a website together but I don't want to give the other coders complete access to my site. I only want them to be able to create files and edit their own files that they create. For example I want to give everyone access to public_html/pages but th...

Python regular expression to match file-date.txt

I am trying to match file names in the format filename-isodate.txt >>> DATE_NAME_PATTERN = re.compile("((.*)(-[0-9]{8})?)\\.txt") >>> DATE_NAME_PATTERN.match("myfile-20101019.txt").groups() ('myfile-20101019', 'myfile-20101019', None) However I need to get the filename and -isodate parts in seperate groups. Any suggestions and/or exp...

Wordpress Plugin to group subscribers

Hi guys, do you know a Wordpress plugin that provides the ability to group subscribers. It would be nice if there was a page for each group where a photo and some information can be inserted. The final website will be for a basketball club. So I need the groups as the teams. I haven't found anything so far. Thanks in advance ...

How many queries are required to get the names and numbers of everyone in an Android contact group?

Using the Android 2.0 ContactsContract API, is it possible to build a list of objects representing contacts in a Contact Group like this: public class GroupContact { public String displayName; public List<String> phoneNumbers; } While making fewer than O(n) SQL queries? ...

Linq join, group, count where count greater than value

I have the following linq expression that lets me join two tables, group them by a "DSCID", and then get a count of the grouped values: var qryGeoApppendCount = from a in append join g in geo on a.Field<string>("RNO") equals g.Field<string>("RNO") group g by g.Field<i...

Jasper report / Is it possible to FORCE the header, detail and the footer of a group to appear on the same page

Suppose I have the following group, with a header, a detail and a content. Group 1 HEADER Group 1 DETAIL 1 Group 1 DETAIL 2 ... Group 1 DETAIL n Group 1 FOOTER I want that HEADER, DETAIL and FOOTER are always be rendered togheter, on the same page, as they would be included in unique "unbreakable bloc" An example of what I ...

simple_form: how to create a grouped select box?

I'm using simple_form gem for creating Rails forms. http://github.com/plataformatec/simple_form All is great, except how do I create a grouped select box? Can't find it in the docs or by google-ing. ...

Group MPI tasks by host

I want to easily perform collective communications indepandently on each machine of my cluster. Let say I have 4 machines with 8 cores on each, my mpi program would run 32 MPI tasks. What I would like is, for a given function: on each host, only one task perform a computation, other tasks do nothing during this computation. In my examp...