group

How can I set an individual checkbox in a checkbox group to "checked" based on it's value attr ?

<div id="notifydaydiv" name="notifydaydiv" style="display:none; padding-left:50px"> <input name="notifyday" type="checkbox" value="wed" /> Wednesday <br /> <input name="notifyday" type="checkbox" value="thu" /> Thursday <br /> <span style="color:red; font-size:7pt;">Recommended</span><br /> <input name="notifyday" type="checkbox" va...

How to set default group permissions for SFTP uploads?

I am connecting to a web server running Debian. Our team uses Apache and all users are members of the www-data group. When we connect to this server via SFTP (e.g. Transmit), all of our newly uploaded files take on a group name that is the same as the user's name (i.e. their primary group). Is there a way to change this default group as...

Group permissions reset on mercurial update

I've configured my hg repository according to the docs described here: http://mercurial.selenic.com/wiki/MultipleCommitters However, when I execute "hg update -C" to recreate the working copy locally, the file permissions have changed such that it eventually causes errors on push when other developers attempt to commit changes. Supposi...

How to modify local group policy setting programatically

I am looking for a way to programatically change the value of a group policy setting without having to reboot a machine or install any additional components on it Looking for a solution for Windows 2003, 2008, machines are part of the domain The value is under Administrative Templates\Network\QoS Packet Scheduler, Limit outstanding pac...

Custom sort within 1 instance of a crystal report group

Using vs2008 crystalreports .net c# I have a report with mutlitple nested groups. Im trying to find a way to do different or custom sort, or specifiy specific order within 1 instance of the groups printed on report Eg report grouping as bellow. Report prints 2 lots of the nested groups as shown. I want to specify the sort order ONLY fo...

C# How to create a local group

I'm looking to programatically create a Local User Group. I found plenty of examples on how to query and add users but nothing I can understand about how to create a new group. DirectoryEntry dirEntry = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer"); /* Code to test if the group already exists *...

linq group by and list

i have function public List<string > UserList() { var q = from i in _dataContext.PageStat group i by new { i.UserName } into ii select new { ii.Key.UserName }; } how can i return List ? ...

Regex: How to make a group for each word in a sentence?

This may be a silly question but... Say you have a sentence like: The quick brown fox Or you might get a sentence like: The quick brown fox jumped over the lazy dog The simple regexp (\w*) finds the first word "The" and puts it in a group. For the first sentence, you could write (\w*)\s*(\w*)\s*(\w*)\s*(\w*)\s* to put each ...

Android: mass enable/disable buttons

I have Activity where bunch of buttons are placed inside TableLayout not unlike a dial pad. During some operations I need temporarily disable the buttons. To my unpleasant surprise doing TableLayout.setEnabled(false) has no effect on the nested buttons. Am I stuck with setting each individual button or is there a nifty (better) way to ac...

LINQ : Group by Multiple Columns and Count

I have Table1 and Table2 in the form of IEnumerable. Both the tables have columns Column1 and Column2 I would like to do a left outer join on Column1 and would like to get a count of the rows present in Table2 and load the records into a DataTable. I tried the following query var query = from p in Table1 join q in...

Linq Grouping - aggregate, outside of a group by

hello, i've got a SQL query, that works as follows: SELECT TOP 100 Max(Table_ID) as Max_ID, Col1, Col2, Col3, COUNT(*) AS Occurences FROM myTable GROUP BY Col1, Col2, Col3 ORDER BY Occurences DESC How can I write an identical Linq query? The issue is, that as soon as i apply my grouping, I cannot access the non-grouped columns...

How to make Jasper iReport groups start on new page only when needed?

Hi, I'm using Jasper iReport (output to PDF), and I have a problem with a certain report: Inside the report I have defined a group. On average, each "instance" of that group only contains a small number of detail rows, so I don't want each of them to start on a new page, since it would be a waste of paper (the output is printed on pape...

Can this Mysql query be amended to display invoice only once for the same idinvoice

The query below SELECT <output name="c.name" title="Name" />, <output name="c.reference" title="Reference No." />, <output name="i.idinvoice" title="Invoice ID" />, <output replace="(SUM(v.quantity * s.charges))/COUNT(i.idinvoice)" />As Invoice <output replace="p.amount" />AS Amount, <output replace="p.idpayment" title="Payment ID" />, ...

How to set group headers in listview not selectable (c#)?

Hi i need some help for my listview element, I want to use listview with groups. But i want to make the group headers not selectable, i want to use them as seperator? How can i do this? ty ...

[iPhone] How to make a Grid-like button group?

Hi all, I'm very new to iPhone development, so appreciate if I'm kind of dump. What I want to do, is to create a group of buttons. I know there is something like a button group, but only for buttons in a line. I want to create a button group, which will look like a UITableView, with several rows and at least 2 columns. I know I have see...

How to configure an existing git repo to be shared by a UNIX group

I have an existing git repo (a bare one) which has up to this point only been writable by me. I want to open it up to some UNIX user group, foo, so that all members of foo can push to it. I'm aware that I can easily set up a new git repo with: git init --bare --shared=group repodir chgrp -R foo repodir But I need the equivalent oper...

SQL group by -- can merge?

In SQL we could add group by clause -- then do sum, count, or avg of a particular (numeric) column. Is there a way to "merge" / "concatenate" particular column -- for each group? I need this done in one SQL statement ...

Several RadioButtons in a group unhandling event

Hi, If you have several radiobuttons in a group, and you have Checked event handlers in your code behind, if a radiobutton is checked how do you cancel this event handling so that the new radiobutton clicked does not get selected and your original checked button stays checked? The code in the event handler in the code behind distinguish...

Grouping by X days

Hey, I have a database that shows me different stats about different campaigns, each row has a timestemp value name "date". I wrote the code for choosing and summerizing a range of dates, for example: 21-24/07/2010. Now I need to add an option to choose a range of dates, but also to group the stats for each X days. Let's say the user...

SQL Server: Select Max Limit 1 from Group

Using SQL Server. Ok, I'm making an in webpage cache system. I wanted to make a simple page rank system along with output. The problem is, I want to display the recordset with the highest relevance score per unique domain. One domain may have multiple records but with different titles, descriptions, etc. he probem is,instead of getting 1...