group

jQuery - How to sequentially run an animation * only once * after animation on a group (e.g. siblings)

Here's my dilema. I have 2 animations that need to run sequentially. The first animation runs on a group of elements acquired through jQuery's siblings() function. The second animation runs on a single element. (The one upon which siblings() was called.) This needs to take place after the first animation has finished. If I don't use q...

achieving a complex sort via Linq to Objects

I've been asked to apply conditional sorting to a data set and I'm trying to figure out how to achieve this via LINQ. In this particular domain, purchase orders can be marked as primary or secondary. The exact mechanism used to determine primary/secondary status is rather complex and not germane to the problem at hand. Consider the d...

LINQ: query to sum on grouped field

I've a list of tasks. Ie I've struct like struct Task { public DateTime Completed { get; set; } public string TaskKind { get; set; } public float Effort { get; set; } } And I've a IList<Task>. Now I want to group the tasks based on the date and group by TaskKind on each day with the summed effort. For eg for I want to pri...

excel group with hidden rows

I have an Excel sheet where several rows are grouped together using "Group and outline". By default the group is to be expanded but I have one row that I have hidden using vba in Workbook_Open. After I click the [-] to collapse the group and then the [+] to expand it again my hidden row is now visible. Is there a way to keep the hidd...

ASP.Net Repeater Header Per Group (i.e. Month)

I have a datasource which contains dated items per row. These will be bound to the repeater and ordered by date. I'd like to present each month as a seperate table when rendered but is there a way to do this with a repeater control without having to have multiple repeaters added dynamically from the server side code? Ideally I'd like th...

How do I sort the result of an SQL join by a single column in PHP

I have a database with a list of locations e.g.: C_ID | Name 1 | Italy 2 | Germany 3 | France 4 | Spain and in a seperate table, a list of people who are from those countries, P_ID | Name | C_ID 1 | John | 1 2 | Mark | 1 3 | Paul | 2 4 | Pierre | 3 5 | Alan | 2 I have grabbed ...

Is there a way to use a list of string parameters with a regular expression (with groups) to construct a new string?

Let's say for example that I have a regular expression like this: "The quick (red|brown|blue|yellow) fox (jumps|leaps) over the lazy (dog|cat)." This regex has 3 grouped components - if it's matched against a given string, the regex api would allow you to easily extract the value inside each group. Now let's say I have 3 strings: [...

Group Policy on Terminal Server 2008

Hi all, I'll get straight to it. We have a domain controller running Windows Server 2003 and a new Terminal Server running Windows Server 2008. I was wondering what the best way to apply a group policy to the users from the Active Directory on the domain controller to the Terminal Server would be. I am a little confused. Thanks Ben ...

Group BY multiple MySQL Statement

Is it possible to group by more than one column e.g GROUP BY fV.tier_id AND 'f.form_template_id' in a mySQL statement? ...

Remove dupes from recordset excluding columns from dupe condition.

I'm up against a mssql database, having a SQL query like... SELECT id, type, start, stop, one, two, three, four FROM a UNION ALL SELECT id, type, start, stop, one, two, three, four FROM b UNION ALL SELECT id, type, start, stop, one, two, three, four FROM c ORDER BY type ASC Resulting in... row | id type start stop on...

Best and Proper Permissions Settings for Directory

I am interested in knowing the proper, yet security-conscious settings for a directory. Here's my scenario: I have a username for FTP access to my server called "user". For the purpose of the scenario, PHP runs as "nobody" on my server. I have a directory off the document root called "sample". The "sample" directory is chmod'd at 0755 ...

Group and acl on Spring Security

Hello, I want to use Spring Security to manage user, group and permissions. I want to use ACL to secure my domain objects but I can't find a way to assign a group to an acl. For example: I've got users and groups. Each group can have the following securities: - manage forums (can be a role like ROLE____FORUM____MANAGER) - edit a speci...

Why Group.Value always the last matched group string?

Recently, I found one C# Regex API really annoying. I have regular expression "(([0-9]+)|([a-z]+))+". I want to find all matched string. The code is like below. string regularExp = "(([0-9]+)|([a-z]+))+"; string str = "abc123xyz456defFOO"; Match match = Regex.Match(str, regularExp, RegexOptions.None); i...

Magento: Getting Product Url's for Products within a Grouped Product

For a grouped product, I would like to display a link to the simple products it is composed of. For example, if I have a grouped product called Dining Set composed of plates, knives, forks, etc. I'd like each of the subproducts to have a link to that subproduct (click plates goes to the Simple Product for plates) <?php foreach ($_associ...

GroupBy CAMl query is giving Render Failed error

Hello, I have custom list definition.I want to display rows as GroupBy with some column names. I added a query in Schema.xml like below. <Query> <GroupBy> <FieldRef Name="Title" visible="false" /> <FieldRef Name="Followed By" /> </GroupBy> </Query> If i use two filter group its working fine.No iss...

Facebook API: Update Group Description

Does anyone know how to update Facebook Group information using the API? I want to push some information to the facebook group (if the admin is logged in to my site). ...

All Addtional Attributes for Grouped Products in Magento

Similar to the question asked at: http://stackoverflow.com/questions/1005394/magento-show-custom-attributes-in-grouped-product-table I'd like to display attributes of simple products in the grouped product page. However, I need it to work such that you do not explicitly specify which attributes get displayed. Instead, it displays all t...

mysql query - Need a little help with grouping...

I'm wondering how to write this query, it's a little complicated... This is an example of what's being stored in the table: KID Utype Qtype Qname Resp UID Q24-YYY Case T001 HM-99678 N8944 2455 Q24-YYY Case T001 HM-99678 N8944 9874 Q24-YYY Case F099 HM-99678 N8944 6554 Q24-YYY Case F099 HM-99678 SD789 2331 Q24-YYY Case F099 HM...

Linq to SQL with group by

How do I write this query in linq VB.NET? select top 15 count(1), A.Latitude, A.Longitude from Bairro A inner join Empresa B on B.BairroID = A.BairroID where A.CidadeID = 4810 group by A.Latitude, A.Longitude order by COUNT(1) desc I reached this code: Dim TopBairros = (From A In Bairros _ Join B In New BO.Empresa()...

Group totals having a problem

Hi i have a report that gives details about warehouse packages. i was asked to insert shipping address and id number on the top. so as per their requirement it should be on the page header. but as we know we cannot add fields to page header. so what i did was i created a group by ship to name and inserted all the values in it. that was ...