For this example data:
Index, State, Food
1, CA, Hamburger
2, NY, Lettuce
3, CA, Cheese
4, NY, Lettuce
5, NY, Cheese
6, AR, Cheese
I would like to group by State and show the most common food for each state. So the result for the example should be:
State, Popular Food
CA, Hamburger
NY, Lettuce
AR, Cheese
The problem is I can't find an…
Hi
Is there a simple way of tracking the change of an Mdi's children i.e. when they are created and closed, something like an event OnMdiChildListChanged (I realise this doesn't actually exist).
I am also aware that I could have a method within my Mdi that handles the creation of child forms and logs the state of them or even create an…
When inserting a record to a database, the server returns an 'undefined index: category', error, but still posts the successfully...
$('#button).click(function(){
var newvendor = $('#input_vendor).val();
newplantcode = $('#input_plantcode).val();
newcategory = $('#input_category).val();
…
We use the ASP.NET profile subsystem to associate key-value pairs of information with users.
I am implementing functionality for the deletion of users.
I have been using the ProfileManager.DeleteProfile(string userName) method, but I have noticed that this leaves a row in the aspnet_Users table in the aspnetdb…
Hi, im trying to add a "rating" system to an existing form (i.e 1 star, 2 Star or poor, average,good,excellent etc).
Does anyone know of a way to achieve this that is aesthetically pleasing with good UX either in .Net or a free 3rd party control?
Thanks
I am trying to extract three segments from a string. As I am not particularly good with regular expressions, I think what I have done could probably be done better...
I would like to extract the bold parts of the following string:
SOMETEXT: ANYTHING_HERE (Old=ANYTHING_HERE,
New=ANYTHING_HERE)
Some…
While I look for a job, I'd like to do something useful with my time. I have a feeling there must be schools or charities or other worthy organisations that could use some of my time, but I've no idea how to go about finding them. Is there a marketplace for this kind of thing? I live in the UK.
Is there anyway to change the coordinates of some of the points within a GraphicsPath object while leaving the other points where they are?
The GraphicsPath object that gets passed into my method will contain a mixture of polygons and lines. My method would want to look something like:
void…
I had a read of the documentation, but couldn't see an example of how it would be possible to use the variable in traditional PHP style of $_POST['var']
I'm pretty sure my URL is legit:
domain.com/module/controller/action/var/value/
Using the above as an example:
$var didn't work
…
I created a Linq-to-SQL DBML for the first time. I dragged and dropped all my tables over to the designer. The tables all appear in the designer.cs file. In Global.asax, I also have model.RegisterContext() with the ScaffoldAllTables = true option. The routes are also setup.
I can…
Whenever I add paddingRight to a column in the flex grid, it adds the padding to the header as well.
Is anyone familiar with how I can add paddingRight just to the column and not to the header? Below is the column code where I was specifying the padding.
<mx:DataGridColumn…
According to the standard, a conversion function has a function-id operator conversion-type-id, which would look like, say, operator char(&)[4] I believe. But I cannot figure out where to put the function parameter list. gcc does not accept either of operator…
Tried removing the overflow hidden, but that does not seem to fix it. Suggestions?
Relevent HTML and problem illustration here: http://mgc.selfip.com/bugscreen01.jpg
Relevent CSS
#nav{padding: 5px 0px; overflow: hidden; background-color: #7af;}…
I'm having quite the brainbuster of an issue right now. I am trying to change a link's hash tag at the end from "respond" to "comments" with jQuery. I have a simple script that should do this, however it does not work. The link does not change.…
How can I create a plot title in ggplot2? Am I making a silly syntax error?
The ggplot2 docs indicate that labs(title = 'foo') should work, but I can only get the arguments x='foo' and y='foo' to work with labs(). Neither ggtitle() nor title()…
Trying to solve this at this hour has gotten my mind into a tail-spin: I want to rearrange a list l into a list of n lists, where n is the number of columns.
e.g.,
l = [1,2,3,4,5,6,7,8]
n = 5
==> [[1,6][2,7][3,8][4][5]]
another…
Can you have a parent class shared pointer return type of a function and then return a new child class without it being a shared pointer? I'm not sure how shared pointers work in these situations, do they act like a regular pointer? Here…
I'm using omnifunc=pythoncomplete. When autocompleting a word (e.g., os.), I get the list of eligible class members and functions, as expected, as well as a scratch buffer preview window with documentation about the selected member or…
At work we have a C# solution with over 80 projects. Is it possible in VS 2010 to automatically stop compilation as soon as an error is encountered rather than the default behaviour which is to continue as far as possible and display…
I performed some modifications on a branch (A).
I then decided to create a brand new branch (B) based on the state of my existing working copy and commit and push to that.
There were a number of files that had been moved during my…
Does anyone know of a good way to calculate the "semantic distance" between two words?
Immediately an algorithm that counts the steps between words in a thesaurus springs to mind.
I am looking to split up multiple lines of text to single them out, for example:
Url/Host:ftp://server.com/1
Login:Admin1
Password:Password1
Url/Host:ftp://server.com/2
Login:Admin2
Password:Password2
…
When I call the function, the dialog does work.
If I move the dialog construction into the showtimes_list function, everything works fine.
I thought that variables declared outside a function were global in…
I'm using a Java wrapper for SQLite called SQLiteJDBC - this may have some bearing on any answers...
I have a table which I've displayed in a GUI, within that UI I have a button for the fields for an…