Tuesday, 8 April 2014

ng-model not operative properly?

I have some HTML combined as so:and we have a non-static announced in my
AngularJS controller announced as so:$scope.createId = ""; //Initially a
non-static is empty.Now, we can stock a domain by inputting some calm into
it. However, when we try to make a call in another duty to see if
$scope.createId is lifeless or not, even when we quarrel some calm into a
calm field, $scope.createId still shows adult to be empty. This is how we
checked if it was lifeless or not:if(!$scope.createId){
alertify.error("ERROR: Missing Creation Id"); return;}I'm not certain
since $scope.createId is not updating boldly when we put calm into a calm
field. Any ideas? Thanks!

Thursday, 3 April 2014

Remove Items From Ruby Hashes of Array

data = {'results' => [1, 1, 1, 1, 0, 0, 1, 1, 1, 0], 'weather' =>
["bad", "bad", "bad", "good", "good", "good", "good", "good", "bad",
"bad"]}results has 10 entries, and continue has 10 entries, they are
aligned and conform to any other. how can i mislay from a non-static
information twin entries from weather, and a analogous opening from
results, where continue == "bad" ?

Tuesday, 1 April 2014

how to get churned outcome from churned queries

I have this query$query = "Select * FROM list WHERE table.firs_column =
1;Select * FROM list WHERE table.second_column = 1;Select * FROM list
WHERE table.third_column = 1;Select * FROM list WHERE table.column =
1";$stmt = $db->prepare($query);$result = $stmt->execute();I wish to
have churned results, any one have a outcome of one query!how to do
it?UPDATEmore reason this is a list of ingredientsfirst buttress is
dish, second is sweets, third is salad, leading is drink, and a name
columnthe 1 indicates that this ingrediant is for this kind of food.i wish
to fill churned lists with a outcome from this list (only names)one list
is for reduction that is in a dishes, second list is for reduction in
saccharine and so on.so how can we have churned array as a outcome