group

Moving Delete icon on UITableView in 'grouped' style into the cell?

I have a UITableView style set to grouped. This works correctly except when in edit mode the 'minus' icon for Deleting a cell isn't within the cell. It's to the left. In the Weather App that icon is in the cell. Anyone know how to fix this? Image here: http://i32.tinypic.com/xclv02.png ...

Can I use an OR in regex without capturing what's enclosed?

I have used RegExp before but am far from an expert... I'm reading up right now for a project, but am running into an issue. I'm using rubular.com to build my regex, and their documentation describes the following: (...) Capture everything enclosed (a|b) a or b How can I use an OR expression without capturing what's in it? So if...

Mysql Query group by

Hi, I am trying to make a query to get some results: I have a table with sote data: client | price 1 | 100 1 | 150 1 | 200 2 | 90 2 | 130 2 | 200 3 | 95 3 | 120 3 | 250 I would like with one query to select the results and order it by price and client and get them in this form, ordered by the best price of each clint: 2 | 9...

php capture group

Hi, Im kind of stuck capturing a group with preg_match() in php. This is my pattern: <ns2:uniqueIds>(.*)<\/ns2:uniqueIds> And this is the source: <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"&gt;&lt;env:Header/&gt;&lt;env:Body&gt;&lt;ns2:ListResponse xmlns:ns2="http://censored"&gt;&lt;ns2:uniqueIds&gt;censored&l...

No Field for Pre-shared Key in Group Policy

I am attempting to configure group polocy (Windows 2008 R2) to issues a WPA Pre shared Key on client login. Through Group Policy I can setup WPA and select PSK (Along with TKIP) But there's not field to enter my Pre Shared Key! Any help would be appricaited ...

iphone uitableview grouped by date implementation

Hey guys, I'm very new to iphone development, so you'll have to forgive me. So currently I have a table that displays messages, but I'd like to group the messages by date, e.g. Tuesday 4/5/98 //header message 1 message 2 message 3 Wednesday 4/6/98 message 1 etc. So right now, it's just one long NSMutableArray oldArr (sorte...

How can I specify a custom gallery Group when creating WSS 2.0 web parts?

I've created a custom Sharepoint 2007 web part with WSS 2.0 (using the Microsoft.Sharepoint WebPart class and a DWP file). I deploy it using a CAB file and the stsadm 'addwppack' command, and it gets added to the server gallery under the "miscellaneous" group. How can I make the web part install to a custom group, such as "Company Web P...

Delete Contact Group in Android 2.1

Hi, How can I programatically delete a contact group in Android 2.1? Thanks ...

Populate dropdown menu based on groupnumber and MySQL answer

Hello! I am building an webapplication for retailers to register purchased products in PHP/MySQL. What I like to do now is to populate a dropdown menu in a form with the products the specific retailer sells. The retailer is assigned a value for each product that they are selling, and then the values are summed up and putten into the data...

PHP - Merge and group array data

How to group this: Array( [0] => Array( [brand] => 'ABC', [model] => 'xyz', [size] => 13 ) [1] => Array( [brand] => 'QWE', [model] => 'poi', [size] => 23 ) [2] => Array( [brand] => '...

Executing command from specific user and group context in linux

Hi, I have a User1 belonging to primarygroup Group1 in linux. I want to execute the command in the context of User1 and Group2 (not Group1) in one line. Any way to do that ? One way to do that in multiple steps is to 1) First get into User1 context by running "su user1" 2) Then from User1 context execute command by running "sg group...

How to group by a price confined to a dynamically generated ceiling?

Hello, I have a table of items with several properties but to keep it short, it has property price. I want to group a List<Item> into groups of price ranges. The catch is that the price ranges (ceilings ...) have to be dynamically generated. When the ceilings are static, things work fine (Using LINQ) decimal[] ceilings = new decimal[...

Linq to dataset select row based on max value of column

Hello, I have a dataset table, i want to group it by column "MOID", and then with in this group want to select the row which has max value of coulmn "radi" can anybody show me how to do it via LINQ to dataset ...

postgresql query to show the groups of a user

Hello, If I create a user in a group, like: create role user_1 login inherit in role group_1; later, with which query could I retrieve to which group(s) a user belongs to ? Thanks ! ...

postgresql trigger when user group is changed ?

Hello, I would like to know if it is possible to have a trigger when a user is added to or drop from a group ? Does this trigger could also works when dierctly create a user in a group (create role ... in group ...) ? (In fact, I want some users of a specified group to have a specific search_path, so I can set/reset the search_path in th...

LINQ group items. A single item may be in several groups

I have an IEnumerable of items that I would like to group by associated categories. The items are grouped by the categories that are associated with them - which is a List - so a single item can potentially be a part of multiple categories. var categories = numbers.SelectMany(x => x.Categories).Distinct(); var query = from cat i...

Group objects with iPhone SDK?

Hi In my iPhone app, I have a number of UIImageView that do the same thing, then a second load which do the same thing. Can I some how tag/group these so that I can simply reference all the objects with one name? Otherwise it means having to have dozens of lines of code for a single repetitive action. Thanks! ...

MySQL - select multiple maximum values

I have a table called order which contains columns id, user_id, price and item_id. Item prices aren't fixed and I would like to select each item's most expensive order. I want to select user_id, item_id and price in the same query. I tried the following query but it doesn't return the correct result set. SELECT user_id, item_id, MAX(pri...

Count number of trails and live based on a month in SQL

Please HELP!!! I have the following table in my database where [start date] and [End date] data type is in datetime CompanyID ServiceStartDat BillingStartDate         1               03/01/2010              03/02/2010        2               12/01/2010       ...

Sql Group By Question

Hey all, I have the Following Table: StockID,FundID,DateID,ValueInDate I want to Create a GROUP BY Query that show's the Precentage Of every Fund From The Total Value in the specific Date, Without Parameters. I have the @DateID Parameter only in this Query any ideas? Thanks! ...