Post the checkboxes that are unchecked

Post the checkboxes that are unchecked

I've got a load of checkboxes that are by default checked. My users will probably uncheck a few of the checkboxes (if any) and leave the rest of them checked. Is there any way to get the checkboxes that are NOT checked in a form post, rat

Standard Android Button with a different color

Standard Android Button with a different color

I'd like to change the color of a standard Android button slightly in order to better match a client's branding.The best way I've found to do this so far is to change the Button's drawable to the following drawable located in res/drawable/r

How to cherry pick a range of commits and merge into another branch

How to cherry pick a range of commits and merge into another branch

I have the following repository layout:master branch (production)integrationworkingWhat I want to achieve is to cherry pick a range of commits from the working branch and merge it into the integration branch. I pretty new to git and I can't

Working with $scope.$emit and $scope.$on

Working with $scope.$emit and $scope.$on

How can I send my $scope object from one controller to another using .$emit and .$on methods?function firstCtrl($scope) { $scope.$emit('someEvent', [1,2,3]);}function secondCtrl($scope) { $scope.$on('someEvent', function(mass) { conso

Local variables in Python nested functions

Local variables in Python nested functions

Okay, bear with me on this, I know it's going to look horribly convoluted, but please help me understand what's happening.from functools import partialclass Cage(object): def __init__(self, animal): self.animal = animaldef gotimes

adding UITableView inside UITableViewCell

adding UITableView inside UITableViewCell

I am working on custom UITableViewCell where I want to add UITableView inside UITableViewCell so is there any controller available to do the sameThis is the image of what I want to add in my projectThis is expandable UITableView where after

.parent().remove() issue

.parent().remove() issue

I have a jQuery-based form where you can add extra people to the application. I'm cloning the first fieldset and adding it onto the end up to a max of 3 additional people. When you've added 1 extra person then you have the option to remove

Set own layout in popup window in android

Set own layout in popup window in android

I have a problem with popup window. I want to create popup window with my own layout. This is code:public class PopupWindowView extends PopupWindow{ PopupWindow popup; boolean click = true; LayoutParams params; RelativeLayout ma

CSS using negative relative positioning issue

CSS using negative relative positioning issue

I have a header, mainbody and footer. Header and mainbody are properly styled. Now for footer I want to make it appear behind mainbody, so I used:z-index: -1;position: relative;top: -60px;This gives the desired result, but I get an extra sp

Recursively finding only directories with FileUtils.listFiles

Recursively finding only directories with FileUtils.listFiles

I want to collect a list of all files under a directory, in particular including subdirectories. I like not doing things myself, so I'm using FileUtils.listFiles from Apache Commons IO. So I have something like:import java.io.File;import ja

What's the purpose of the “__package__” attribute in Python?

What's the purpose of the “__package__” attribute in Python?

All I want to know is what exactly does __package__ mean? Didn't find any explanation in the official doc, even on SO.If you could provide some examples I would be very happy. 1:See the PEP 366 and import system reference documentation:

Export to Excel from gridview

Export to Excel from gridview

I have code for exporting to Excel. In my gridview I set paging to display the number of records in pagecount.But in my export to Excel it is not giving me entire records, instead it is showing me the same paging with six records.My code:st

dependent dropdown yii2. How to do?

dependent dropdown yii2. How to do?

can I create a dependent dropdown in yii2?I have two tables: 'id','name_country"'id','name_city','country_id'and have two methods in my model:public function getCountryList(){$models = NetCountry::find()->asArray()->all();return ArrayHelper

c: catch a segfault in exec() which was run in a child process

c: catch a segfault in exec() which was run in a child process

EDIT:I am trying to write a simple smoketest, where all options and reasonable parameters are tested.I used popen() to execute the program that should be tested.Using this approach does not work, because if the process dies with a signal (S

D3 Tree Layout - Custom Vertical Layout when children exceed more than a certain number

D3 Tree Layout - Custom Vertical Layout when children exceed more than a certain number

I'm trying to use the D3 Tree Layout to create a family tree of sorts and one of the things I noticed is that when I have many children nodes, it would stretch out horizontally across the screen. Ideally I would like a more vertical layout

How do I source environment variables for a command shell in a Ruby script?

How do I source environment variables for a command shell in a Ruby script?

I'm trying to run some third party bash scripts from within my ruby program. Before I can run them they require me to source a file. On the command line it all works fine but within Ruby it doesn't work. I've found out that system commands

Gridview - Click image to view image in Viewpager

Gridview - Click image to view image in Viewpager

This is a gridview that get image from json. and it works fine. I want to click image in this gridview to show full image and can slide it. I find the solution of this problem is used Viewpager. how can I click image in gridview to show ima

Using Pylint to display error and warnings

Using Pylint to display error and warnings

So I started using Pylint but since I am using tabs instead of spaces it is giving me as warnings, also since some methods are from base class, that are also as instance of 'GalleryUi' has no 'setModel' member while it is has QAbstractTable

PHP Inherited parent method can't access child's private property

PHP Inherited parent method can't access child's private property

First of all: A quite similar problem has been posted and somehow solved already, but is still not answering my specific problem. More about this later.In words: I have a base class which provides some methods to all childs, but doesn't con

destructors in Qt4

destructors in Qt4

I'm very confused about using destructors in Qt4 and hope, you guys can help me.When I have a method like this (with "Des" is a class):void Widget::create() { Des *test = new Des; test->show();}how can I make sure that this widget is

How to move an element after another element using JS or jquery?

How to move an element after another element using JS or jquery?

I would like to move one DIV element beside another, it is normally like this: ... ... ... ... ... ... ...

safari rounding down on subpixel calculations

safari rounding down on subpixel calculations

i have a container that takes up 829px on a row, and has a background-image of the same size.i have a div within that container that calculates its width based on the 829px container.on safari, the divs width comes out to be something like

“Variable Undeclared” error when compiling to iOS Device, but not for Simulator

“Variable Undeclared” error when compiling to iOS Device, but not for Simulator

I have an custom UIVIewController that is the base class for other controllers and has an instance of a custom UIView variable that is accessed by inherited the [email protected] BaseViewController : UIViewController {

What is exact difference between gravity and layout_gravity [duplicate]

What is exact difference between gravity and layout_gravity [duplicate]

Possible Duplicate: Android - gravity and layout_gravity I have been working on android xml's. I have used android:layout_gravity="center" to align components in specific position.Now a days, when I was working on a Dialog like Activity,

how to find selected elements with Jquery UI selectable

how to find selected elements with Jquery UI selectable

I am looking for info on the event and ui objects the jQuery selectable events: "selecting", and "start" take as parameters. I cannot find this in the documentation and looping through the properties is no help.$('#content_td_account').sele