Posts

Unable to set selected value in AngularJS -

i have several select boxes on edit form, when page loads data loaded it, works textboxes , checkboxes not selectboxes, unable set selected value them have googled many things still cannot seem find doing wrong, html: <div class="form-group" ng-init="getroles()"> <label for="roles">role</label> <select style="width: 100%;" data-toggle="select2" ng-model="form.role_id" ng-options="item.id item.role item in roles"> </select> </div> this function gets , sets user info in controller: $scope.getuserinfo = function() { userservice.get($stateparams.id) .success(function (data, status, headers, config) { if (data.user != undefined) { $scope.form = data.user; } }) }; this function gets , sets roles in controller: $scope.getroles = function() { roleservice.get() .success(function...

Angularjs - how to shuffle the class names using the scope function? -

i have 3 elements, shows conditional. on click of them using 'ng-class' showing or hiding element. here html : <div class="useroptions"> <div class="row designoption" ng-class="{'active':prodesign}"> <span ng-click="categories('prodesign')" class="icon icond">d</span> <span class="info infod">design</span> </div> <div class="row suplyoption" ng-class="{'active':supply}"> <span ng-click="categories('prosupply')" class="icon icons">s</span> <span class="info infos">supply</span> </div> <div class="row constoption" ng-class="{'active':construct}"> <span ng-click="categories('proconstruct')" class="ic...

c# - Winrt, changing a color, depending on a bound value -

i have gridview looks this: <gridview itemcontainerstyle="{staticresource gridviewitemstyle2}" itemssource="{binding mymeetingssquareusers}" grid.row="1" margin="10,10,10,0" selectionmode="none" horizontalcontentalignment="left" verticalcontentalignment="bottom"> <gridview.itemspanel> <itemspaneltemplate> <itemswrapgrid orientation="vertical" maximumrowsorcolumns="1"/> </itemspaneltemplate> </gridview.itemspanel> <gridview.itemtemplate> <datatemplate> <grid height="35" width="35" margin="0,0,10,0" > <border borderbrush="red" borderthickness="1" cornerradius="15"> <ellipse> <ellipse.fill> <imagebrush stretch=...

ios - One provisioning profile more than one team -

i have been working 1 team under apple developers program, using lot of provisioning profile when developing apple applications. for reason needed create team have both teams share provisioning profiles. do think possible? i tried download 1 provisioning profile , upload new team no success :( thanks!! this isn't possible. the provisioning profiles associated 1 team can seen com.apple.developer.team-identifier included in profile. field isn't array. <key>com.apple.developer.team-identifier</key> <string>4jdwf27f87</string>

ruby - "ERROR -- : Actor crashed! Celluloid::DeadActorError: attempted to call a dead actor" when running "jekyll watch" or "jekyll serve" -

when run jekyll watch jekyll detect 1 change stop detecting further changes. upon canceling hitting ctrl+c, output: e, [2015-07-23t15:38:41.307871 #1094] error -- : actor crashed! celluloid::deadactorerror: attempted call dead actor /library/ruby/gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/responses.rb:29:in value' /library/ruby/gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in value' /library/ruby/gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:33:in method_missing' /library/ruby/gems/2.0.0/gems/listen-2.10.1/lib/listen/file.rb:9:in change' /library/ruby/gems/2.0.0/gems/listen-2.10.1/lib/listen/change.rb:40:in change' /library/ruby/gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in public_send' /library/ruby/gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in dispatch' /library/ruby/gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in dispatch' /...

elasticsearch - Elastic Search nested multimatch query -

so problem same described here , still remains unanswered on group. my mapping: { "abstract": { "properties": { "summary": { "type": "string" } } }, "authors": { "type": "nested", "properties": { "first_name": { "type": "string" }, "last_name": { "type": "string" } } } } and perform full-text search on both of these fields, unequally weighted. query comes mind, unfortunately doesn't work, this: { "query": { "bool": { "should": [{ "multi_match": { "query": "higgs boson", "fields": ["abstract.summar...

c++ - What is this template syntax and unsigned type? -

i'm new c++ , have difficulty understanding code: template <typename t = unsigned> what t = unsigned means? does compiler enforce unsigned on given type? that's default template parameter; similar default function parameter. if don't put in argument, default unsigned [int] . imagine this: template <typename t = unsigned> struct foo { t one; t two; }; if declare example foo<char> , resulting structure have 2 char members. default parameter lets me declare foo<> , , that structure have 2 unsigned int members, because unsigned int default.