groups

Can I use re.sub (or regexobject.sub) to replace text in a subgroup?

I need to parse a configuration file which looks like this (simplified): <config> <links> <link name="Link1" id="1"> <encapsulation> <mode>ipsec</mode> </encapsulation> </link> <link name="Link2" id="2"> <encapsulation> <mode>udp</mode> </encapsulation> </link> </links> My goal is to be able to change parameters specific to a ...

Grouping problem

Well, I have a question about what algorithm would be most appropriate for my problem. Let's say that I have 3 groups: Group A) 1 2 3 Group B) 5 4 Group C) 9 6 7 8 Now I would like to get all possible groups with this members (1-8) and groups with capacity 3, 2, 4. Note: Group A) 3 1 2 Group B) 5 4 Group C) 7 8 9 6 counts as same g...

box2d collision groups

does anyone know whether bodies only collide when (body1.categoryBits & body2.maskBits) && (body1.maskBits & body2.categoryBits) ? or do they already collide when (body1.categoryBits & body2.maskBits) || (body1.maskBits & body2.categoryBits) ? ...

box2d edgeshape collision groups ignored

I added collision groups to my game and they are working fine except with concave shapes (Edge Shapes). It seems that they ignore them completely. When I don't use a contact filter and collision groups the collision works. ...

Change description of a SharePoint group

Hi, I'm trying to change the description of an existing SharePoint group which shouldn't be a really tough job but unfortunately it doesn't work as expected. After running the corresponding method the group's description stays the same as before. Here is the code I use to change the description: private void ResetGroupDescription(SP...

Can I replace groups in Java rexex?

I have this code, and I want to know, if I can replace only groups (not all pattern) in Java regex. Code: //... Pattern p = Pattern.compile("(\\d).*(\\d)"); String input = "6 example input 4"; Matcher m = p.matcher(input); if (m.find()) { //Now I want replace group one ( (\\d) ) with number //and group two...

Sharepoint: Check if a user is member of a group

Hi, how can I check if a user (not the one currently logged in) is member of a certain group? Trying to retrieve a user from a group of which he's not a member leads to an SPException, so checking for null is not possible. So how would you solve this problem. At the moment I think about searching in the SPGroup.Users.XML string for th...

linux permission group

I am trying to setup my webserver so that one group will have access to the files. Apache and every user that needs to edit the files will be part of this group. So I've set all the files to have the group psacln. I've added psacln to my groups. But it still won't let me view the files: [tom@166 httpdocs]$ whoami tom [tom@166 httpdocs]...

Sharepoint Javascript Lists

Hi, Is it possible to iterate through a survey response list using javascript on a webform in Sharepoint? Is it also possible to iterate through a user group list as well - again using javascript? Additionally, is it possible to create a table or list or something to: a) Display a group of users b) Display their responses to a survey ...

Email Group Configuration in CC.NET using a single config file

Hello, We have started using CC.NET for continuous integration and as the number of projects monitored builds up I would like configure the email alerts via a single config file. What I mean by this is that I would like to have a list of the users in different groups in a single config file that is referenced by ALL the project configu...

DirectoryEntry.Invoke("groups",null) not retrieving all groups?

I created a WCF web service to return user and group information from Active Directory. It works fine for most groups and users, but not all. I use directoryEntry.Invoke("groups",null) to return the groups a specified user is member of. This returns MOST groups. The odd thing is that I can find any group and enumerate its members, ev...

How do I find Programming Clubs/User Groups in my Area?

Been programming for a while and would like to talk or chat with someone in my same programming language. ...

Common Membership Algorithm

People can belong to one or many groups. What is a good algorithm to output common memberships? ie, Persons A and B are in Groups C, D, and E ... etc My preferred language would be Ruby (or maybe Python), but any code or pseudocode would be greatly appreciated. ...

linux id no_squash_root

The linux 'id' command reports on groups= that process belongs to. When and how does this get filled in? I'm writing an suid/sgid program and it seems that the groups never get filled in for my process and perhaps just coincidentially, but the permissions inregards to an nfs mounted file system don't work correctly for it either (by th...

Hiding Distribution lists from Sharepoint Membership List

On the "My site" feature of Sharepoint there is a "memberships" Web part that shows the distribution list that the user is a member of. This is picking up several groups that we would rather not be shown e.g. some that have been set up for administrative purposes only. Is there any way to control which groups are shown; ideally this wo...

Can different users have same USER ID in MOSS 2007

Hi I am just curious to know whether different users can have same user ID in MOSS 2007. I have two SharePoint groups with different set of permission levels. SharePointGroup1 is in root site. The subsite has unique permissions, i.e., it is having SharePointGroup2 with different set of users. Is there any chance to have same user ID for...

Ordering Groups of Rows by Single Row Criteria in MySQL?

Suppose that I have a database table that contains information on cities across the United States. My display shows information first grouped by State, then County, and finally by City something like below: Alabama Autauga County city 1 city 2 etc Baldwin County city 1 city 2 etc County etc Alaska Alaska county 1 city 1 alaska cou...

LDAP Gettling a list of logon names

I have the need in my program to get the list of user logon names in a group. This is what I have so far but it only returns all the users...which I need cut down to those in a group, of which i have the name of. Option Explicit On Imports System.DirectoryServices Imports System.DirectoryServices.ActiveDirectory Module Module1 ...

Drupal Custom Login by Role

I have a cURL PHP script which is able to validate a username/password against the external source. What is the best way to integrate this as a login requirement for (select) users in Drupal? The idea would be to add the external authentication as a login requirement for a role. ...

Regex help: My regex pattern will match invalid strings

Hello! i really like Regex, unfortantly Im not that good at it yet. So therfore I hope you guys can help me out. The text string I want to validate consists of what I call "segments". A single segment might look like this: [A-Z,S,3] So far I managed to build this regex pattern (?:\[(?<segment>[^,\]\[}' ]+?,[S|D],\d{1})\])+? it w...